content
stringlengths 22
815k
| id
int64 0
4.91M
|
---|---|
def embedding_lookup(input_ids,
vocab_size,
embedding_size=128,
initializer_range=0.02,
word_embedding_name="word_embeddings"):
"""Looks up words embeddings for id tensor.
Args:
input_ids: int32 Tensor of shape [batch_size, seq_length] containing word
ids.
vocab_size: int. Size of the embedding vocabulary.
embedding_size: int. Width of the word embeddings.
initializer_range: float. Embedding initialization range.
word_embedding_name: string. Name of the embedding table.
Returns:
float Tensor of shape [batch_size, seq_length, embedding_size].
"""
# This function assumes that the input is of shape [batch_size, seq_length,
# num_inputs].
#
# If the input is a 2D tensor of shape [batch_size, seq_length], we
# reshape to [batch_size, seq_length, 1].
if input_ids.shape.ndims == 2:
input_ids = tf.expand_dims(input_ids, axis=[-1])
embedding_table = tf.get_variable(
name=word_embedding_name,
shape=[vocab_size, embedding_size],
initializer=create_initializer(initializer_range))
output = tf.nn.embedding_lookup(embedding_table, input_ids)
input_shape = get_shape_list(input_ids)
output = tf.reshape(output,
input_shape[0:-1] + [input_shape[-1] * embedding_size])
return output, embedding_table | 5,353,500 |
def onQQMessage(bot, contact, member, content):
""" QQBot 全局调用入口 """
# print(bot)
# print(contact)
# print(member)
# print(content)
# 获取群名称
group_name = str(contact)
group_name = group_name[2:-1]
# print(group_name)
# 只接收指定群消息
if contact.ctype == 'group' and group_name == Standard.group_name:
# 获得消息内容
message = str(content)
# 只处理触发器开头的消息
if message.startswith(Standard.group_trigger):
# 去掉触发器
message = message.replace(Standard.group_trigger, '')
# 去掉 空格 及 @ 符号
message = message.replace(' ', '')
message = message.replace('[@ME]', '')
# 获得处理完成后,等待发送的消息
result = handle_msg(bot, contact, member, message)
# 消息非空则回复
if len(result) > 0:
bot.SendTo(contact, result) | 5,353,501 |
def find_version(infile):
"""
Given an open file (or some other iterator of lines) holding a
configure.ac file, find the current version line.
"""
for line in infile:
m = re.search(r'AC_INIT\(\[tor\],\s*\[([^\]]*)\]\)', line)
if m:
return m.group(1)
return None | 5,353,502 |
def linear_warmup_decay(warmup_steps, total_steps, cosine=True, linear=False):
"""
Linear warmup for warmup_steps, optionally with cosine annealing or
linear decay to 0 at total_steps
"""
# check if both decays are not True at the same time
assert not (linear and cosine)
def fn(step):
if step < warmup_steps:
return float(step) / float(max(1, warmup_steps))
if not (cosine or linear):
# no decay
return 1.0
progress = float(step - warmup_steps) / float(
max(1, total_steps - warmup_steps)
)
if cosine:
# cosine decay
return 0.5 * (1.0 + math.cos(math.pi * progress))
# linear decay
return 1.0 - progress
return fn | 5,353,503 |
def query_anumbers(bbox,bbox2,bounds2):
"""
Queries anumbers of the reports within region defined
Args:
`bbox`= bounds of the region defined
Returns:
`anumberscode`=list of anumbers
"""
try:
collars_file='http://geo.loop-gis.org/geoserver/loop/wfs?service=WFS&version=1.0.0&request=GetFeature&typeName=loop:collar_4326&bbox='+bbox2+'&srs=EPSG:4326'
collars = gpd.read_file(collars_file, bbox=bbox)
print("Connected to Loop Server")
anumbers=gpd.GeoDataFrame(collars, columns=["anumber"])
anumbers = pd.DataFrame(anumbers.drop_duplicates(subset=["anumber"]))
except HTTPError as err:
if err.code == 404 or err.code == 500 or err.code == 503:
query="""SELECT DISTINCT (collar.anumber)
FROM public.collar
WHERE(longitude BETWEEN %s AND %s) AND
(latitude BETWEEN %s AND %s)
ORDER BY collar.anumber ASC"""
conn = psycopg2.connect(host="130.95.198.59", port = 5432,
database="gswa_dh", user="postgres", password="loopie123pgpw")
cur = conn.cursor()
cur.execute(query, bounds2)
anumbers=pd.DataFrame(cur, columns=["anumber"])
print("Connected to PostgreSQL Server")
else:
raise
#collars_file='http://geo.loop-gis.org/geoserver/loop/wfs?service=WFS&version=1.0.0&request=GetFeature&typeName=loop:collar_4326&bbox='+bbox2+'&srs=EPSG:4326'
#collars = gpd.read_file(collars_file, bbox=bbox)
#anumbers=gpd.GeoDataFrame(collars, columns=["anumber"])
#anumbers = pd.DataFrame(anumbers.drop_duplicates(subset=["anumber"]))
#print(anumbers)
anumbers['anumberlength']=anumbers['anumber'].astype(str).map(len)
anumberscode=[]
for index, row in anumbers.iterrows():
if (int(row[1])==5):
text=str("a0"+ str(row[0]))
text2=str("a"+ str(row[0]))
elif (int(row[1])==4):
text=str("a00"+ str(row[0]))
text2=str("a"+ str(row[0]))
elif (int(row[1])==3):
text=str("a000"+ str(row[0]))
text2=str("a"+ str(row[0]))
elif (int(row[1])==2):
text=str("a0000"+ str(row[0]))
text2=str("a"+ str(row[0]))
elif (int(row[1])==1):
text=str("a00000"+ str(row[0]))
text2=str("a"+ str(row[0]))
else:
text= str("a"+ str(row[0]))
anumberscode.append(text)
anumberscode.append(text2)
print("Report Numbers:", anumberscode)
return anumberscode | 5,353,504 |
def Parse(spec_name, arg_r):
# type: (str, args.Reader) -> args._Attributes
"""Parse argv using a given FlagSpec."""
spec = FLAG_SPEC[spec_name]
return args.Parse(spec, arg_r) | 5,353,505 |
def go_repositories():
"""This Gazelle-generated macro defines repositories for the Go modules in //go.mod."""
go_repository(
name = "co_honnef_go_tools",
importpath = "honnef.co/go/tools",
sum = "h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8=",
version = "v0.0.1-2020.1.4",
)
go_repository(
name = "com_github_a8m_envsubst",
importpath = "github.com/a8m/envsubst",
sum = "h1:yvzAhJD2QKdo35Ut03wIfXQmg+ta3wC/1bskfZynz+Q=",
version = "v1.2.0",
)
go_repository(
name = "com_github_aclements_go_gg",
importpath = "github.com/aclements/go-gg",
sum = "h1:KJgh99JlYRhfgHtb7XyhAZSJMdfkjVmo3PP7XO1/HO8=",
version = "v0.0.0-20170323211221-abd1f791f5ee",
)
go_repository(
name = "com_github_aclements_go_moremath",
importpath = "github.com/aclements/go-moremath",
sum = "h1:a7+Y8VlXRC2VX5ue6tpCutr4PsrkRkWWVZv4zqfaHuc=",
version = "v0.0.0-20190830160640-d16893ddf098",
)
go_repository(
name = "com_github_afex_hystrix_go",
importpath = "github.com/afex/hystrix-go",
sum = "h1:rFw4nCn9iMW+Vajsk51NtYIcwSTkXr+JGrMd36kTDJw=",
version = "v0.0.0-20180502004556-fa1af6a1f4f5",
)
go_repository(
name = "com_github_agnivade_levenshtein",
importpath = "github.com/agnivade/levenshtein",
sum = "h1:3oJU7J3FGFmyhn8KHjmVaZCN5hxTr7GxgRue+sxIXdQ=",
version = "v1.0.1",
)
go_repository(
name = "com_github_ajstarks_deck",
importpath = "github.com/ajstarks/deck",
sum = "h1:30XVZzSxUv+pE25mnlAL5nW/KsUDBmldePggLIAEJgk=",
version = "v0.0.0-20191009173945-82d717002242",
)
go_repository(
name = "com_github_ajstarks_svgo",
importpath = "github.com/ajstarks/svgo",
sum = "h1:kZegOsPGxfV9mM8WzfllNZOx3MvM5zItmhQlvITKVvA=",
version = "v0.0.0-20190826172357-de52242f3d65",
)
go_repository(
name = "com_github_akavel_rsrc",
importpath = "github.com/akavel/rsrc",
sum = "h1:zjWn7ukO9Kc5Q62DOJCcxGpXC18RawVtYAGdz2aLlfw=",
version = "v0.8.0",
)
go_repository(
name = "com_github_alcortesm_tgz",
importpath = "github.com/alcortesm/tgz",
sum = "h1:uSoVVbwJiQipAclBbw+8quDsfcvFjOpI5iCf4p/cqCs=",
version = "v0.0.0-20161220082320-9c5fe88206d7",
)
go_repository(
name = "com_github_alecthomas_template",
importpath = "github.com/alecthomas/template",
sum = "h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM=",
version = "v0.0.0-20190718012654-fb15b899a751",
)
go_repository(
name = "com_github_alecthomas_units",
importpath = "github.com/alecthomas/units",
sum = "h1:UQZhZ2O0vMHr2cI+DC1Mbh0TJxzA3RcLoMsFw+aXw7E=",
version = "v0.0.0-20190924025748-f65c72e2690d",
)
go_repository(
name = "com_github_andreyvit_diff",
importpath = "github.com/andreyvit/diff",
sum = "h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ=",
version = "v0.0.0-20170406064948-c7f18ee00883",
)
go_repository(
name = "com_github_andybalholm_cascadia",
importpath = "github.com/andybalholm/cascadia",
sum = "h1:vuRCkM5Ozh/BfmsaTm26kbjm0mIOM3yS5Ek/F5h18aE=",
version = "v1.2.0",
)
go_repository(
name = "com_github_anmitsu_go_shlex",
importpath = "github.com/anmitsu/go-shlex",
sum = "h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA=",
version = "v0.0.0-20161002113705-648efa622239",
)
go_repository(
name = "com_github_apache_arrow_go_arrow",
importpath = "github.com/apache/arrow/go/arrow",
sum = "h1:5ultmol0yeX75oh1hY78uAFn3dupBQ/QUNxERCkiaUQ=",
version = "v0.0.0-20200601151325-b2287a20f230",
)
go_repository(
name = "com_github_apache_thrift",
importpath = "github.com/apache/thrift",
sum = "h1:5hryIiq9gtn+MiLVn0wP37kb/uTeRZgN08WoCsAhIhI=",
version = "v0.13.0",
)
go_repository(
name = "com_github_armon_circbuf",
importpath = "github.com/armon/circbuf",
sum = "h1:QEF07wC0T1rKkctt1RINW/+RMTVmiwxETico2l3gxJA=",
version = "v0.0.0-20150827004946-bbbad097214e",
)
go_repository(
name = "com_github_armon_consul_api",
importpath = "github.com/armon/consul-api",
sum = "h1:G1bPvciwNyF7IUmKXNt9Ak3m6u9DE1rF+RmtIkBpVdA=",
version = "v0.0.0-20180202201655-eb2c6b5be1b6",
)
go_repository(
name = "com_github_armon_go_metrics",
importpath = "github.com/armon/go-metrics",
sum = "h1:8GUt8eRujhVEGZFFEjBj46YV4rDjvGrNxb0KMWYkL2I=",
version = "v0.0.0-20180917152333-f0300d1749da",
)
go_repository(
name = "com_github_armon_go_radix",
importpath = "github.com/armon/go-radix",
sum = "h1:BUAU3CGlLvorLI26FmByPp2eC2qla6E1Tw+scpcg/to=",
version = "v0.0.0-20180808171621-7fddfc383310",
)
go_repository(
name = "com_github_armon_go_socks5",
importpath = "github.com/armon/go-socks5",
sum = "h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=",
version = "v0.0.0-20160902184237-e75332964ef5",
)
go_repository(
name = "com_github_aryann_difflib",
importpath = "github.com/aryann/difflib",
sum = "h1:pv34s756C4pEXnjgPfGYgdhg/ZdajGhyOvzx8k+23nw=",
version = "v0.0.0-20170710044230-e206f873d14a",
)
go_repository(
name = "com_github_asaskevich_govalidator",
importpath = "github.com/asaskevich/govalidator",
sum = "h1:idn718Q4B6AGu/h5Sxe66HYVdqdGu2l9Iebqhi/AEoA=",
version = "v0.0.0-20190424111038-f61b66f89f4a",
)
go_repository(
name = "com_github_aws_aws_lambda_go",
importpath = "github.com/aws/aws-lambda-go",
sum = "h1:SuCy7H3NLyp+1Mrfp+m80jcbi9KYWAs9/BXwppwRDzY=",
version = "v1.13.3",
)
go_repository(
name = "com_github_aws_aws_sdk_go",
importpath = "github.com/aws/aws-sdk-go",
sum = "h1:Gka1bopihF2e9XFhuVZPrgafmOFpCsRtAPMYLp/0AfA=",
version = "v1.35.18",
)
go_repository(
name = "com_github_aws_aws_sdk_go_v2",
importpath = "github.com/aws/aws-sdk-go-v2",
sum = "h1:qZ+woO4SamnH/eEbjM2IDLhRNwIwND/RQyVlBLp3Jqg=",
version = "v0.18.0",
)
go_repository(
name = "com_github_azure_go_ansiterm",
importpath = "github.com/Azure/go-ansiterm",
sum = "h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8=",
version = "v0.0.0-20170929234023-d6e3b3328b78",
)
go_repository(
name = "com_github_azure_go_autorest",
importpath = "github.com/Azure/go-autorest",
sum = "h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs=",
version = "v14.2.0+incompatible",
)
go_repository(
name = "com_github_azure_go_autorest_autorest",
importpath = "github.com/Azure/go-autorest/autorest",
sum = "h1:gI8ytXbxMfI+IVbI9mP2JGCTXIuhHLgRlvQ9X4PsnHE=",
version = "v0.11.12",
)
go_repository(
name = "com_github_azure_go_autorest_autorest_adal",
importpath = "github.com/Azure/go-autorest/autorest/adal",
sum = "h1:Y3bBUV4rTuxenJJs41HU3qmqsb+auo+a3Lz+PlJPpL0=",
version = "v0.9.5",
)
go_repository(
name = "com_github_azure_go_autorest_autorest_date",
importpath = "github.com/Azure/go-autorest/autorest/date",
sum = "h1:7gUk1U5M/CQbp9WoqinNzJar+8KY+LPI6wiWrP/myHw=",
version = "v0.3.0",
)
go_repository(
name = "com_github_azure_go_autorest_autorest_mocks",
importpath = "github.com/Azure/go-autorest/autorest/mocks",
sum = "h1:K0laFcLE6VLTOwNgSxaGbUcLPuGXlNkbVvq4cW4nIHk=",
version = "v0.4.1",
)
go_repository(
name = "com_github_azure_go_autorest_logger",
importpath = "github.com/Azure/go-autorest/logger",
sum = "h1:e4RVHVZKC5p6UANLJHkM4OfR1UKZPj8Wt8Pcx+3oqrE=",
version = "v0.2.0",
)
go_repository(
name = "com_github_azure_go_autorest_tracing",
importpath = "github.com/Azure/go-autorest/tracing",
sum = "h1:TYi4+3m5t6K48TGI9AUdb+IzbnSxvnvUMfuitfgcfuo=",
version = "v0.6.0",
)
go_repository(
name = "com_github_bazelbuild_bazel_gazelle",
importpath = "github.com/bazelbuild/bazel-gazelle",
sum = "h1:Ks6YN+WkOv2lYWlvf7ksxUpLvrDbBHPBXXUrBFQ3BZM=",
version = "v0.23.0",
)
go_repository(
name = "com_github_bazelbuild_buildtools",
# The BUILD files included in this Go module use the go_default_library naming convention.
# See https://github.com/bazelbuild/bazel-gazelle/blob/master/repository.rst#go_repository.
build_naming_convention = "go_default_library",
importpath = "github.com/bazelbuild/buildtools",
sum = "h1:a+J2VBrlAmgdb1eXDTFxdoPA/wA/L2+33DcdfzhnhXM=",
version = "v0.0.0-20201102150426-f0f162f0456b",
)
go_repository(
name = "com_github_bazelbuild_remote_apis",
# The BUILD files included in this Go module use the go_default_library naming convention.
# See https://github.com/bazelbuild/bazel-gazelle/blob/master/repository.rst#go_repository.
build_naming_convention = "go_default_library",
importpath = "github.com/bazelbuild/remote-apis",
sum = "h1:/EMHYfINZDLrrr4f72+MxCYvmJ9EYcL8PYbQFHrnm38=",
version = "v0.0.0-20201209220655-9e72daff42c9",
)
go_repository(
name = "com_github_bazelbuild_remote_apis_sdks",
# The BUILD files included in this Go module use the go_default_library naming convention.
# See https://github.com/bazelbuild/bazel-gazelle/blob/master/repository.rst#go_repository.
build_naming_convention = "go_default_library",
importpath = "github.com/bazelbuild/remote-apis-sdks",
sum = "h1:0SkXdQd6uHU6pDzy0ZJw4KUWsBnil6QAzBj+SljxRaM=",
version = "v0.0.0-20201110004117-e776219c9bb7",
)
go_repository(
name = "com_github_bazelbuild_rules_go",
importpath = "github.com/bazelbuild/rules_go",
sum = "h1:wzbawlkLtl2ze9w/312NHZ84c7kpUCtlkD8HgFY27sw=",
version = "v0.0.0-20190719190356-6dae44dc5cab",
)
go_repository(
name = "com_github_beorn7_perks",
importpath = "github.com/beorn7/perks",
sum = "h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=",
version = "v1.0.1",
)
go_repository(
name = "com_github_bgentry_speakeasy",
importpath = "github.com/bgentry/speakeasy",
sum = "h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY=",
version = "v0.1.0",
)
go_repository(
name = "com_github_bitly_go_hostpool",
importpath = "github.com/bitly/go-hostpool",
sum = "h1:mXoPYz/Ul5HYEDvkta6I8/rnYM5gSdSV2tJ6XbZuEtY=",
version = "v0.0.0-20171023180738-a3a6125de932",
)
go_repository(
name = "com_github_bkaradzic_go_lz4",
importpath = "github.com/bkaradzic/go-lz4",
sum = "h1:RXc4wYsyz985CkXXeX04y4VnZFGG8Rd43pRaHsOXAKk=",
version = "v1.0.0",
)
go_repository(
name = "com_github_bketelsen_crypt",
importpath = "github.com/bketelsen/crypt",
sum = "h1:+0HFd5KSZ/mm3JmhmrDukiId5iR6w4+BdFtfSy4yWIc=",
version = "v0.0.3-0.20200106085610-5cbc8cc4026c",
)
go_repository(
name = "com_github_blang_semver",
importpath = "github.com/blang/semver",
sum = "h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ=",
version = "v3.5.1+incompatible",
)
go_repository(
name = "com_github_bmatcuk_doublestar",
importpath = "github.com/bmatcuk/doublestar",
sum = "h1:oC24CykoSAB8zd7XgruHo33E0cHJf/WhQA/7BeXj+x0=",
version = "v1.2.2",
)
go_repository(
name = "com_github_bmizerany_assert",
importpath = "github.com/bmizerany/assert",
sum = "h1:DDGfHa7BWjL4YnC6+E63dPcxHo2sUxDIu8g3QgEJdRY=",
version = "v0.0.0-20160611221934-b7ed37b82869",
)
go_repository(
name = "com_github_boombuler_barcode",
importpath = "github.com/boombuler/barcode",
sum = "h1:s1TvRnXwL2xJRaccrdcBQMZxq6X7DvsMogtmJeHDdrc=",
version = "v1.0.0",
)
go_repository(
name = "com_github_bradfitz_go_smtpd",
importpath = "github.com/bradfitz/go-smtpd",
sum = "h1:ckJgFhFWywOx+YLEMIJsTb+NV6NexWICk5+AMSuz3ss=",
version = "v0.0.0-20170404230938-deb6d6237625",
)
go_repository(
name = "com_github_bradfitz_gomemcache",
importpath = "github.com/bradfitz/gomemcache",
sum = "h1:L/QXpzIa3pOvUGt1D1lA5KjYhPBAN/3iWdP7xeFS9F0=",
version = "v0.0.0-20190913173617-a41fca850d0b",
)
go_repository(
name = "com_github_burntsushi_toml",
importpath = "github.com/BurntSushi/toml",
sum = "h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=",
version = "v0.3.1",
)
go_repository(
name = "com_github_burntsushi_xgb",
importpath = "github.com/BurntSushi/xgb",
sum = "h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc=",
version = "v0.0.0-20160522181843-27f122750802",
)
go_repository(
name = "com_github_casbin_casbin_v2",
importpath = "github.com/casbin/casbin/v2",
sum = "h1:bTwon/ECRx9dwBy2ewRVr5OiqjeXSGiTUY74sDPQi/g=",
version = "v2.1.2",
)
go_repository(
name = "com_github_cenkalti_backoff",
importpath = "github.com/cenkalti/backoff",
sum = "h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4=",
version = "v2.2.1+incompatible",
)
go_repository(
name = "com_github_cenkalti_backoff_v4",
importpath = "github.com/cenkalti/backoff/v4",
sum = "h1:JIufpQLbh4DkbQoii76ItQIUFzevQSqOLZca4eamEDs=",
version = "v4.0.2",
)
go_repository(
name = "com_github_census_instrumentation_opencensus_proto",
# This repository includes .proto files under /src[1], and generated code for said protos
# under /gen-go[2]. If we don't ignore the /src directory, Gazelle will generate
# go_proto_library targets for the .proto files under /src, and go_library targets for the
# corresponding .pb.go files under /gen-go. These libraries will have the same importpath[3]
# attribute, which causes the build to fail.
#
# The work around is to tell Bazel to ignore /src, which forces Bazel to use the go_library
# targets generated for the .pb.go files under /gen-go.
#
# See https://github.com/census-instrumentation/opencensus-proto/issues/200 for details.
#
# [1] https://github.com/census-instrumentation/opencensus-proto/tree/master/src
# [2] https://github.com/census-instrumentation/opencensus-proto/tree/master/gen-go
# [3] https://github.com/bazelbuild/rules_go/blob/master/go/core.rst#attributes
build_extra_args = ["-exclude=src"],
importpath = "github.com/census-instrumentation/opencensus-proto",
sum = "h1:t/LhUZLVitR1Ow2YOnduCsavhwFUklBMoGVYUCqmCqk=",
version = "v0.3.0",
)
go_repository(
name = "com_github_cespare_xxhash",
importpath = "github.com/cespare/xxhash",
sum = "h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=",
version = "v1.1.0",
)
go_repository(
name = "com_github_cespare_xxhash_v2",
importpath = "github.com/cespare/xxhash/v2",
sum = "h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY=",
version = "v2.1.1",
)
go_repository(
name = "com_github_chai2010_gettext_go",
importpath = "github.com/chai2010/gettext-go",
sum = "h1:7aWHqerlJ41y6FOsEUvknqgXnGmJyJSbjhAWq5pO4F8=",
version = "v0.0.0-20160711120539-c6fed771bfd5",
)
go_repository(
name = "com_github_chzyer_logex",
importpath = "github.com/chzyer/logex",
sum = "h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE=",
version = "v1.1.10",
)
go_repository(
name = "com_github_chzyer_readline",
importpath = "github.com/chzyer/readline",
sum = "h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8=",
version = "v0.0.0-20180603132655-2972be24d48e",
)
go_repository(
name = "com_github_chzyer_test",
importpath = "github.com/chzyer/test",
sum = "h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8=",
version = "v0.0.0-20180213035817-a1ea475d72b1",
)
go_repository(
name = "com_github_clbanning_x2j",
importpath = "github.com/clbanning/x2j",
sum = "h1:EdRZT3IeKQmfCSrgo8SZ8V3MEnskuJP0wCYNpe+aiXo=",
version = "v0.0.0-20191024224557-825249438eec",
)
go_repository(
name = "com_github_clickhouse_clickhouse_go",
importpath = "github.com/ClickHouse/clickhouse-go",
sum = "h1:HvD2NhKPLSeO3Ots6YV0ePgs4l3wO0bLqa9Uk1yeMOs=",
version = "v1.3.12",
)
go_repository(
name = "com_github_client9_misspell",
importpath = "github.com/client9/misspell",
sum = "h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI=",
version = "v0.3.4",
)
go_repository(
name = "com_github_cloudflare_golz4",
importpath = "github.com/cloudflare/golz4",
sum = "h1:F1EaeKL/ta07PY/k9Os/UFtwERei2/XzGemhpGnBKNg=",
version = "v0.0.0-20150217214814-ef862a3cdc58",
)
go_repository(
name = "com_github_cncf_udpa_go",
importpath = "github.com/cncf/udpa/go",
sum = "h1:WBZRG4aNOuI15bLRrCgN8fCq8E5Xuty6jGbmSNEvSsU=",
version = "v0.0.0-20191209042840-269d4d468f6f",
)
go_repository(
name = "com_github_cockroachdb_apd",
importpath = "github.com/cockroachdb/apd",
sum = "h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I=",
version = "v1.1.0",
)
go_repository(
name = "com_github_cockroachdb_cockroach_go",
importpath = "github.com/cockroachdb/cockroach-go",
sum = "h1:eApuUG8W2EtBVwxqLlY2wgoqDYOg3WvIHGvW4fUbbow=",
version = "v0.0.0-20190925194419-606b3d062051",
)
go_repository(
name = "com_github_cockroachdb_cockroach_go_v2",
importpath = "github.com/cockroachdb/cockroach-go/v2",
sum = "h1:zicZlBhWZu6wfK7Ezg4Owdc3HamLpRdBllPTT9tb+2k=",
version = "v2.1.0",
)
go_repository(
name = "com_github_cockroachdb_datadriven",
importpath = "github.com/cockroachdb/datadriven",
sum = "h1:OaNxuTZr7kxeODyLWsRMC+OD03aFUH+mW6r2d+MWa5Y=",
version = "v0.0.0-20190809214429-80d97fb3cbaa",
)
go_repository(
name = "com_github_codahale_hdrhistogram",
importpath = "github.com/codahale/hdrhistogram",
sum = "h1:qMd81Ts1T2OTKmB4acZcyKaMtRnY5Y44NuXGX2GFJ1w=",
version = "v0.0.0-20161010025455-3a0bb77429bd",
)
go_repository(
name = "com_github_codegangsta_negroni",
importpath = "github.com/codegangsta/negroni",
sum = "h1:+aYywywx4bnKXWvoWtRfJ91vC59NbEhEY03sZjQhbVY=",
version = "v1.0.0",
)
go_repository(
name = "com_github_containerd_containerd",
importpath = "github.com/containerd/containerd",
sum = "h1:pASeJT3R3YyVn+94qEPk0SnU1OQ20Jd/T+SPKy9xehY=",
version = "v1.4.1",
)
go_repository(
name = "com_github_coreos_bbolt",
importpath = "github.com/coreos/bbolt",
sum = "h1:wZwiHHUieZCquLkDL0B8UhzreNWsPHooDAG3q34zk0s=",
version = "v1.3.2",
)
go_repository(
name = "com_github_coreos_etcd",
importpath = "github.com/coreos/etcd",
sum = "h1:8F3hqu9fGYLBifCmRCJsicFqDx/D68Rt3q1JMazcgBQ=",
version = "v3.3.13+incompatible",
)
go_repository(
name = "com_github_coreos_go_etcd",
importpath = "github.com/coreos/go-etcd",
sum = "h1:bXhRBIXoTm9BYHS3gE0TtQuyNZyeEMux2sDi4oo5YOo=",
version = "v2.0.0+incompatible",
)
go_repository(
name = "com_github_coreos_go_semver",
importpath = "github.com/coreos/go-semver",
sum = "h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM=",
version = "v0.3.0",
)
go_repository(
name = "com_github_coreos_go_systemd",
importpath = "github.com/coreos/go-systemd",
sum = "h1:JOrtw2xFKzlg+cbHpyrpLDmnN1HqhBfnX7WDiW7eG2c=",
version = "v0.0.0-20190719114852-fd7a80b32e1f",
)
go_repository(
name = "com_github_coreos_go_systemd_v22",
importpath = "github.com/coreos/go-systemd/v22",
sum = "h1:kq/SbG2BCKLkDKkjQf5OWwKWUKj1lgs3lFI4PxnR5lg=",
version = "v22.1.0",
)
go_repository(
name = "com_github_coreos_pkg",
importpath = "github.com/coreos/pkg",
sum = "h1:lBNOc5arjvs8E5mO2tbpBpLoyyu8B6e44T7hJy6potg=",
version = "v0.0.0-20180928190104-399ea9e2e55f",
)
go_repository(
name = "com_github_cpuguy83_go_md2man",
importpath = "github.com/cpuguy83/go-md2man",
sum = "h1:BSKMNlYxDvnunlTymqtgONjNnaRV1sTpcovwwjF22jk=",
version = "v1.0.10",
)
go_repository(
name = "com_github_cpuguy83_go_md2man_v2",
importpath = "github.com/cpuguy83/go-md2man/v2",
sum = "h1:EoUDS0afbrsXAZ9YQ9jdu/mZ2sXgT1/2yyNng4PGlyM=",
version = "v2.0.0",
)
go_repository(
name = "com_github_creack_pty",
importpath = "github.com/creack/pty",
sum = "h1:07n33Z8lZxZ2qwegKbObQohDhXDQxiMMz1NOUGYlesw=",
version = "v1.1.11",
)
go_repository(
name = "com_github_cznic_cc",
importpath = "github.com/cznic/cc",
sum = "h1:AePLLLsGE1yOEDAmaJlQ9zd/9qiaEVskYukZ1f2srAA=",
version = "v0.0.0-20181122101902-d673e9b70d4d",
)
go_repository(
name = "com_github_cznic_fileutil",
importpath = "github.com/cznic/fileutil",
sum = "h1:94XgeeTZ+3Xi9zsdgBjP1Byx/wywCImjF8FzQ7OaKdU=",
version = "v0.0.0-20181122101858-4d67cfea8c87",
)
go_repository(
name = "com_github_cznic_golex",
importpath = "github.com/cznic/golex",
sum = "h1:G8zTsaqyVfIHpgMFcGgdbhHSFhlNc77rAKkhVbQ9kQg=",
version = "v0.0.0-20181122101858-9c343928389c",
)
go_repository(
name = "com_github_cznic_internal",
importpath = "github.com/cznic/internal",
sum = "h1:58AcyflCe84EONph4gkyo3eDOEQcW5HIPfQBrD76W68=",
version = "v0.0.0-20181122101858-3279554c546e",
)
go_repository(
name = "com_github_cznic_ir",
importpath = "github.com/cznic/ir",
sum = "h1:GelTfvbS1tZtnyCTx3aMIHbRw5euyrfHd6H3rLqLlHU=",
version = "v0.0.0-20181122101859-da7ba2ecce8b",
)
go_repository(
name = "com_github_cznic_lex",
importpath = "github.com/cznic/lex",
sum = "h1:KJtZdP0G3jUnpgEWZdJ7326WvTbREwcwlDSOpkpNZGY=",
version = "v0.0.0-20181122101858-ce0fb5e9bb1b",
)
go_repository(
name = "com_github_cznic_lexer",
importpath = "github.com/cznic/lexer",
sum = "h1:K5kIaw68kxYw40mp8YKuwKrb63R0BPCR1iEGvBR6Mfs=",
version = "v0.0.0-20181122101858-e884d4bd112e",
)
go_repository(
name = "com_github_cznic_mathutil",
importpath = "github.com/cznic/mathutil",
sum = "h1:iwZdTE0PVqJCos1vaoKsclOGD3ADKpshg3SRtYBbwso=",
version = "v0.0.0-20181122101859-297441e03548",
)
go_repository(
name = "com_github_cznic_strutil",
importpath = "github.com/cznic/strutil",
sum = "h1:MZRmHqDBd0vxNwenEbKSQqRVT24d3C05ft8kduSwlqM=",
version = "v0.0.0-20181122101858-275e90344537",
)
go_repository(
name = "com_github_cznic_xc",
importpath = "github.com/cznic/xc",
sum = "h1:U9mUTtTukbCdFuphv3QiJBjtImXsUTHcX5toZZi4OzY=",
version = "v0.0.0-20181122101856-45b06973881e",
)
go_repository(
name = "com_github_daaku_go_zipexe",
importpath = "github.com/daaku/go.zipexe",
sum = "h1:wV4zMsDOI2SZ2m7Tdz1Ps96Zrx+TzaK15VbUaGozw0M=",
version = "v1.0.1",
)
go_repository(
name = "com_github_danjacques_gofslock",
importpath = "github.com/danjacques/gofslock",
sum = "h1:IKVDBWlOZykX5WFI5DyYjX8oL+6+YuovdUvOf+1WHNQ=",
version = "v0.0.0-20200623023034-5d0bd0fa6ef0",
)
go_repository(
name = "com_github_davecgh_go_spew",
importpath = "github.com/davecgh/go-spew",
sum = "h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=",
version = "v1.1.1",
)
go_repository(
name = "com_github_daviddengcn_go_colortext",
importpath = "github.com/daviddengcn/go-colortext",
sum = "h1:uVsMphB1eRx7xB1njzL3fuMdWRN8HtVzoUOItHMwv5c=",
version = "v0.0.0-20160507010035-511bcaf42ccd",
)
go_repository(
name = "com_github_denisenkom_go_mssqldb",
importpath = "github.com/denisenkom/go-mssqldb",
sum = "h1:NfhRXXFDPxcF5Cwo06DzeIaE7uuJtAUhsDwH3LNsjos=",
version = "v0.0.0-20200620013148-b91950f658ec",
)
go_repository(
name = "com_github_dgraph_io_ristretto",
importpath = "github.com/dgraph-io/ristretto",
sum = "h1:jh22xisGBjrEVnRZ1DVTpBVQm0Xndu8sMl0CWDzSIBI=",
version = "v0.0.3",
)
go_repository(
name = "com_github_dgrijalva_jwt_go",
importpath = "github.com/dgrijalva/jwt-go",
sum = "h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=",
version = "v3.2.0+incompatible",
)
go_repository(
name = "com_github_dgryski_go_farm",
importpath = "github.com/dgryski/go-farm",
sum = "h1:tdlZCpZ/P9DhczCTSixgIKmwPv6+wP5DGjqLYw5SUiA=",
version = "v0.0.0-20190423205320-6a90982ecee2",
)
go_repository(
name = "com_github_dgryski_go_sip13",
importpath = "github.com/dgryski/go-sip13",
sum = "h1:RMLoZVzv4GliuWafOuPuQDKSm1SJph7uCRnnS61JAn4=",
version = "v0.0.0-20181026042036-e10d5fee7954",
)
go_repository(
name = "com_github_dhui_dktest",
importpath = "github.com/dhui/dktest",
sum = "h1:nZSDcnkpbotzT/nEHNsO+JCKY8i1Qoki1AYOpeLRb6M=",
version = "v0.3.2",
)
go_repository(
name = "com_github_disintegration_gift",
importpath = "github.com/disintegration/gift",
sum = "h1:Y005a1X4Z7Uc+0gLpSAsKhWi4qLtsdEcMIbbdvdZ6pc=",
version = "v1.2.1",
)
go_repository(
name = "com_github_docker_distribution",
importpath = "github.com/docker/distribution",
sum = "h1:a5mlkVzth6W5A4fOsS3D2EO5BUmsJpcB+cRlLU7cSug=",
version = "v2.7.1+incompatible",
)
go_repository(
name = "com_github_docker_docker",
importpath = "github.com/docker/docker",
sum = "h1:tmV+YbYOUAYDmAiamzhRKqQXaAUyUY2xVt27Rv7rCzA=",
version = "v1.4.2-0.20200213202729-31a86c4ab209",
)
go_repository(
name = "com_github_docker_go_connections",
importpath = "github.com/docker/go-connections",
sum = "h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=",
version = "v0.4.0",
)
go_repository(
name = "com_github_docker_go_units",
importpath = "github.com/docker/go-units",
sum = "h1:3uh0PgVws3nIA0Q+MwDC8yjEPf9zjRfZZWXZYDct3Tw=",
version = "v0.4.0",
)
go_repository(
name = "com_github_docker_spdystream",
importpath = "github.com/docker/spdystream",
sum = "h1:cenwrSVm+Z7QLSV/BsnenAOcDXdX4cMv4wP0B/5QbPg=",
version = "v0.0.0-20160310174837-449fdfce4d96",
)
go_repository(
name = "com_github_docopt_docopt_go",
importpath = "github.com/docopt/docopt-go",
sum = "h1:bWDMxwH3px2JBh6AyO7hdCn/PkvCZXii8TGj7sbtEbQ=",
version = "v0.0.0-20180111231733-ee0de3bc6815",
)
go_repository(
name = "com_github_dustin_go_humanize",
importpath = "github.com/dustin/go-humanize",
sum = "h1:qk/FSDDxo05wdJH28W+p5yivv7LuLYLRXPPD8KQCtZs=",
version = "v0.0.0-20171111073723-bb3d318650d4",
)
go_repository(
name = "com_github_eapache_go_resiliency",
importpath = "github.com/eapache/go-resiliency",
sum = "h1:1NtRmCAqadE2FN4ZcN6g90TP3uk8cg9rn9eNK2197aU=",
version = "v1.1.0",
)
go_repository(
name = "com_github_eapache_go_xerial_snappy",
importpath = "github.com/eapache/go-xerial-snappy",
sum = "h1:YEetp8/yCZMuEPMUDHG0CW/brkkEp8mzqk2+ODEitlw=",
version = "v0.0.0-20180814174437-776d5712da21",
)
go_repository(
name = "com_github_eapache_queue",
importpath = "github.com/eapache/queue",
sum = "h1:YOEu7KNc61ntiQlcEeUIoDTJ2o8mQznoNvUhiigpIqc=",
version = "v1.1.0",
)
go_repository(
name = "com_github_edsrzf_mmap_go",
importpath = "github.com/edsrzf/mmap-go",
sum = "h1:CEBF7HpRnUCSJgGUb5h1Gm7e3VkmVDrR8lvWVLtrOFw=",
version = "v1.0.0",
)
go_repository(
name = "com_github_elazarl_goproxy",
importpath = "github.com/elazarl/goproxy",
sum = "h1:yUdfgN0XgIJw7foRItutHYUIhlcKzcSf5vDpdhQAKTc=",
version = "v0.0.0-20180725130230-947c36da3153",
)
go_repository(
name = "com_github_emicklei_go_restful",
importpath = "github.com/emicklei/go-restful",
sum = "h1:spTtZBk5DYEvbxMVutUuTyh1Ao2r4iyvLdACqsl/Ljk=",
version = "v2.9.5+incompatible",
)
go_repository(
name = "com_github_emirpasic_gods",
importpath = "github.com/emirpasic/gods",
sum = "h1:QAUIPSaCu4G+POclxeqb3F+WPpdKqFGlw36+yOzGlrg=",
version = "v1.12.0",
)
go_repository(
name = "com_github_envoyproxy_go_control_plane",
importpath = "github.com/envoyproxy/go-control-plane",
sum = "h1:rEvIZUSZ3fx39WIi3JkQqQBitGwpELBIYWeBVh6wn+E=",
version = "v0.9.4",
)
go_repository(
name = "com_github_envoyproxy_protoc_gen_validate",
importpath = "github.com/envoyproxy/protoc-gen-validate",
sum = "h1:EQciDnbrYxy13PgWoY8AqoxGiPrpgBZ1R8UNe3ddc+A=",
version = "v0.1.0",
)
go_repository(
name = "com_github_evanphx_json_patch",
importpath = "github.com/evanphx/json-patch",
sum = "h1:kLcOMZeuLAJvL2BPWLMIj5oaZQobrkAqrL+WFZwQses=",
version = "v4.9.0+incompatible",
)
go_repository(
name = "com_github_exponent_io_jsonpath",
importpath = "github.com/exponent-io/jsonpath",
sum = "h1:105gxyaGwCFad8crR9dcMQWvV9Hvulu6hwUh4tWPJnM=",
version = "v0.0.0-20151013193312-d6023ce2651d",
)
go_repository(
name = "com_github_fatih_camelcase",
importpath = "github.com/fatih/camelcase",
sum = "h1:hxNvNX/xYBp0ovncs8WyWZrOrpBNub/JfaMvbURyft8=",
version = "v1.0.0",
)
go_repository(
name = "com_github_fatih_color",
importpath = "github.com/fatih/color",
sum = "h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=",
version = "v1.7.0",
)
go_repository(
name = "com_github_fiorix_go_web",
importpath = "github.com/fiorix/go-web",
sum = "h1:P/Czr+qFBdKELw4nys0x2e5nkT9niVq/2FS63ArJzm4=",
version = "v1.0.1-0.20150221144011-5b593f1e8966",
)
go_repository(
name = "com_github_flynn_go_shlex",
importpath = "github.com/flynn/go-shlex",
sum = "h1:BHsljHzVlRcyQhjrss6TZTdY2VfCqZPbv5k3iBFa2ZQ=",
version = "v0.0.0-20150515145356-3f9db97f8568",
)
go_repository(
name = "com_github_flynn_json5",
importpath = "github.com/flynn/json5",
sum = "h1:xJMmr4GMYIbALX5edyoDIOQpc2bOQTeJiWMeCl9lX/8=",
version = "v0.0.0-20160717195620-7620272ed633",
)
go_repository(
name = "com_github_fogleman_gg",
importpath = "github.com/fogleman/gg",
sum = "h1:/7zJX8F6AaYQc57WQCyN9cAIz+4bCJGO9B+dyW29am8=",
version = "v1.3.0",
)
go_repository(
name = "com_github_form3tech_oss_jwt_go",
importpath = "github.com/form3tech-oss/jwt-go",
sum = "h1:TcekIExNqud5crz4xD2pavyTgWiPvpYe4Xau31I0PRk=",
version = "v3.2.2+incompatible",
)
go_repository(
name = "com_github_fortytw2_leaktest",
importpath = "github.com/fortytw2/leaktest",
sum = "h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=",
version = "v1.3.0",
)
go_repository(
name = "com_github_franela_goblin",
importpath = "github.com/franela/goblin",
sum = "h1:gb2Z18BhTPJPpLQWj4T+rfKHYCHxRHCtRxhKKjRidVw=",
version = "v0.0.0-20200105215937-c9ffbefa60db",
)
go_repository(
name = "com_github_franela_goreq",
importpath = "github.com/franela/goreq",
sum = "h1:a9ENSRDFBUPkJ5lCgVZh26+ZbGyoVJG7yb5SSzF5H54=",
version = "v0.0.0-20171204163338-bcd34c9993f8",
)
go_repository(
name = "com_github_fsnotify_fsnotify",
importpath = "github.com/fsnotify/fsnotify",
sum = "h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=",
version = "v1.4.9",
)
go_repository(
name = "com_github_fsouza_fake_gcs_server",
importpath = "github.com/fsouza/fake-gcs-server",
sum = "h1:OeH75kBZcZa3ZE+zz/mFdJ2btt9FgqfjI7gIh9+5fvk=",
version = "v1.17.0",
)
go_repository(
name = "com_github_fvbommel_sortorder",
importpath = "github.com/fvbommel/sortorder",
sum = "h1:dSnXLt4mJYH25uDDGa3biZNQsozaUWDSWeKJ0qqFfzE=",
version = "v1.0.1",
)
go_repository(
name = "com_github_garyburd_redigo",
importpath = "github.com/garyburd/redigo",
sum = "h1:0VruCpn7yAIIu7pWVClQC8wxCJEcG3nyzpMSHKi1PQc=",
version = "v1.6.0",
)
go_repository(
name = "com_github_geertjohan_go_incremental",
importpath = "github.com/GeertJohan/go.incremental",
sum = "h1:7AH+pY1XUgQE4Y1HcXYaMqAI0m9yrFqo/jt0CW30vsg=",
version = "v1.0.0",
)
go_repository(
name = "com_github_ghodss_yaml",
importpath = "github.com/ghodss/yaml",
sum = "h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=",
version = "v1.0.0",
)
go_repository(
name = "com_github_gliderlabs_ssh",
importpath = "github.com/gliderlabs/ssh",
sum = "h1:6zsha5zo/TWhRhwqCD3+EarCAgZ2yN28ipRnGPnwkI0=",
version = "v0.2.2",
)
go_repository(
name = "com_github_globalsign_mgo",
importpath = "github.com/globalsign/mgo",
sum = "h1:DujepqpGd1hyOd7aW59XpK7Qymp8iy83xq74fLr21is=",
version = "v0.0.0-20181015135952-eeefdecb41b8",
)
go_repository(
name = "com_github_go_errors_errors",
importpath = "github.com/go-errors/errors",
sum = "h1:LUHzmkK3GUKUrL/1gfBUxAHzcev3apQlezX/+O7ma6w=",
version = "v1.0.1",
)
go_repository(
name = "com_github_go_gl_glfw",
importpath = "github.com/go-gl/glfw",
sum = "h1:QbL/5oDUmRBzO9/Z7Seo6zf912W/a6Sr4Eu0G/3Jho0=",
version = "v0.0.0-20190409004039-e6da0acd62b1",
)
go_repository(
name = "com_github_go_gl_glfw_v3_3_glfw",
importpath = "github.com/go-gl/glfw/v3.3/glfw",
sum = "h1:WtGNWLvXpe6ZudgnXrq0barxBImvnnJoMEhXAzcbM0I=",
version = "v0.0.0-20200222043503-6f7a984d4dc4",
)
go_repository(
name = "com_github_go_kit_kit",
importpath = "github.com/go-kit/kit",
sum = "h1:dXFJfIHVvUcpSgDOV+Ne6t7jXri8Tfv2uOLHUZ2XNuo=",
version = "v0.10.0",
)
go_repository(
name = "com_github_go_logfmt_logfmt",
importpath = "github.com/go-logfmt/logfmt",
sum = "h1:TrB8swr/68K7m9CcGut2g3UOihhbcbiMAYiuTXdEih4=",
version = "v0.5.0",
)
go_repository(
name = "com_github_go_logr_logr",
importpath = "github.com/go-logr/logr",
sum = "h1:K7/B1jt6fIBQVd4Owv2MqGQClcgf0R266+7C/QjRcLc=",
version = "v0.4.0",
)
go_repository(
name = "com_github_go_openapi_analysis",
importpath = "github.com/go-openapi/analysis",
sum = "h1:8b2ZgKfKIUTVQpTb77MoRDIMEIwvDVw40o3aOXdfYzI=",
version = "v0.19.5",
)
go_repository(
name = "com_github_go_openapi_errors",
importpath = "github.com/go-openapi/errors",
sum = "h1:a2kIyV3w+OS3S97zxUndRVD46+FhGOUBDFY7nmu4CsY=",
version = "v0.19.2",
)
go_repository(
name = "com_github_go_openapi_jsonpointer",
importpath = "github.com/go-openapi/jsonpointer",
sum = "h1:gihV7YNZK1iK6Tgwwsxo2rJbD1GTbdm72325Bq8FI3w=",
version = "v0.19.3",
)
go_repository(
name = "com_github_go_openapi_jsonreference",
importpath = "github.com/go-openapi/jsonreference",
sum = "h1:5cxNfTy0UVC3X8JL5ymxzyoUZmo8iZb+jeTWn7tUa8o=",
version = "v0.19.3",
)
go_repository(
name = "com_github_go_openapi_loads",
importpath = "github.com/go-openapi/loads",
sum = "h1:5I4CCSqoWzT+82bBkNIvmLc0UOsoKKQ4Fz+3VxOB7SY=",
version = "v0.19.4",
)
go_repository(
name = "com_github_go_openapi_runtime",
importpath = "github.com/go-openapi/runtime",
sum = "h1:csnOgcgAiuGoM/Po7PEpKDoNulCcF3FGbSnbHfxgjMI=",
version = "v0.19.4",
)
go_repository(
name = "com_github_go_openapi_spec",
importpath = "github.com/go-openapi/spec",
sum = "h1:Xm0Ao53uqnk9QE/LlYV5DEU09UAgpliA85QoT9LzqPw=",
version = "v0.19.5",
)
go_repository(
name = "com_github_go_openapi_strfmt",
importpath = "github.com/go-openapi/strfmt",
sum = "h1:0utjKrw+BAh8s57XE9Xz8DUBsVvPmRUB6styvl9wWIM=",
version = "v0.19.5",
)
go_repository(
name = "com_github_go_openapi_swag",
importpath = "github.com/go-openapi/swag",
sum = "h1:lTz6Ys4CmqqCQmZPBlbQENR1/GucA2bzYTE12Pw4tFY=",
version = "v0.19.5",
)
go_repository(
name = "com_github_go_openapi_validate",
importpath = "github.com/go-openapi/validate",
sum = "h1:YFzsdWIDfVuLvIOF+ZmKjVg1MbPJ1QgY9PihMwei1ys=",
version = "v0.19.8",
)
go_repository(
name = "com_github_go_python_gpython",
importpath = "github.com/go-python/gpython",
sum = "h1:QNFZ0h540Lajx7Pi/os06XzzdYUQG+2sV7IvPo/Mvmg=",
version = "v0.0.3",
)
go_repository(
name = "com_github_go_sql_driver_mysql",
importpath = "github.com/go-sql-driver/mysql",
sum = "h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs=",
version = "v1.5.0",
)
go_repository(
name = "com_github_go_stack_stack",
importpath = "github.com/go-stack/stack",
sum = "h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=",
version = "v1.8.0",
)
go_repository(
name = "com_github_gobuffalo_here",
importpath = "github.com/gobuffalo/here",
sum = "h1:hYrd0a6gDmWxBM4TnrGw8mQg24iSVoIkHEk7FodQcBI=",
version = "v0.6.0",
)
go_repository(
name = "com_github_gobwas_glob",
importpath = "github.com/gobwas/glob",
sum = "h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y=",
version = "v0.2.3",
)
go_repository(
name = "com_github_gocql_gocql",
importpath = "github.com/gocql/gocql",
sum = "h1:vF83LI8tAakwEwvWZtrIEx7pOySacl2TOxx6eXk4ePo=",
version = "v0.0.0-20190301043612-f6df8288f9b4",
)
go_repository(
name = "com_github_godbus_dbus",
importpath = "github.com/godbus/dbus",
sum = "h1:WqqLRTsQic3apZUK9qC5sGNfXthmPXzUZ7nQPrNITa4=",
version = "v4.1.0+incompatible",
)
go_repository(
name = "com_github_godbus_dbus_v5",
importpath = "github.com/godbus/dbus/v5",
sum = "h1:ZqHaoEF7TBzh4jzPmqVhE/5A1z9of6orkAe5uHoAeME=",
version = "v5.0.3",
)
go_repository(
name = "com_github_gofrs_uuid",
importpath = "github.com/gofrs/uuid",
sum = "h1:8K4tyRfvU1CYPgJsveYFQMhpFd/wXNM7iK6rR7UHz84=",
version = "v3.3.0+incompatible",
)
go_repository(
name = "com_github_gogo_googleapis",
importpath = "github.com/gogo/googleapis",
sum = "h1:kFkMAZBNAn4j7K0GiZr8cRYzejq68VbheufiV3YuyFI=",
version = "v1.1.0",
)
go_repository(
name = "com_github_gogo_protobuf",
importpath = "github.com/gogo/protobuf",
sum = "h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=",
version = "v1.3.2",
)
go_repository(
name = "com_github_golang_freetype",
importpath = "github.com/golang/freetype",
sum = "h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g=",
version = "v0.0.0-20170609003504-e2365dfdc4a0",
)
go_repository(
name = "com_github_golang_glog",
importpath = "github.com/golang/glog",
sum = "h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=",
version = "v0.0.0-20160126235308-23def4e6c14b",
)
go_repository(
name = "com_github_golang_groupcache",
importpath = "github.com/golang/groupcache",
sum = "h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY=",
version = "v0.0.0-20200121045136-8c9f03a8e57e",
)
go_repository(
name = "com_github_golang_migrate_migrate_v4",
importpath = "github.com/golang-migrate/migrate/v4",
sum = "h1:5S7HMjiq9u50X3+WXpzXPbUj1qUFuZRm8NCsX989Tn4=",
version = "v4.13.0",
)
go_repository(
name = "com_github_golang_mock",
importpath = "github.com/golang/mock",
sum = "h1:l75CXGRSwbaYNpl/Z2X1XIIAMSCquvXgpVZDhwEIJsc=",
version = "v1.4.4",
)
go_repository(
name = "com_github_golang_protobuf",
importpath = "github.com/golang/protobuf",
sum = "h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM=",
version = "v1.4.3",
)
go_repository(
name = "com_github_golang_snappy",
importpath = "github.com/golang/snappy",
sum = "h1:aeE13tS0IiQgFjYdoL8qN3K1N2bXXtI6Vi51/y7BpMw=",
version = "v0.0.2",
)
go_repository(
name = "com_github_golang_sql_civil",
importpath = "github.com/golang-sql/civil",
sum = "h1:lXe2qZdvpiX5WZkZR4hgp4KJVfY3nMkvmwbVkpv1rVY=",
version = "v0.0.0-20190719163853-cb61b32ac6fe",
)
go_repository(
name = "com_github_golangplus_testing",
importpath = "github.com/golangplus/testing",
sum = "h1:KhcknUwkWHKZPbFy2P7jH5LKJ3La+0ZeknkkmrSgqb0=",
version = "v0.0.0-20180327235837-af21d9c3145e",
)
go_repository(
name = "com_github_gonum_blas",
importpath = "github.com/gonum/blas",
sum = "h1:Q0Jsdxl5jbxouNs1TQYt0gxesYMU4VXRbsTlgDloZ50=",
version = "v0.0.0-20181208220705-f22b278b28ac",
)
go_repository(
name = "com_github_gonum_floats",
importpath = "github.com/gonum/floats",
sum = "h1:EvokxLQsaaQjcWVWSV38221VAK7qc2zhaO17bKys/18=",
version = "v0.0.0-20181209220543-c233463c7e82",
)
go_repository(
name = "com_github_gonum_internal",
importpath = "github.com/gonum/internal",
sum = "h1:8jtTdc+Nfj9AR+0soOeia9UZSvYBvETVHZrugUowJ7M=",
version = "v0.0.0-20181124074243-f884aa714029",
)
go_repository(
name = "com_github_gonum_lapack",
importpath = "github.com/gonum/lapack",
sum = "h1:7qnwS9+oeSiOIsiUMajT+0R7HR6hw5NegnKPmn/94oI=",
version = "v0.0.0-20181123203213-e4cdc5a0bff9",
)
go_repository(
name = "com_github_gonum_matrix",
importpath = "github.com/gonum/matrix",
sum = "h1:V2IgdyerlBa/MxaEFRbV5juy/C3MGdj4ePi+g6ePIp4=",
version = "v0.0.0-20181209220409-c518dec07be9",
)
go_repository(
name = "com_github_google_btree",
importpath = "github.com/google/btree",
sum = "h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo=",
version = "v1.0.0",
)
go_repository(
name = "com_github_google_flatbuffers",
importpath = "github.com/google/flatbuffers",
sum = "h1:O7CEyB8Cb3/DmtxODGtLHcEvpr81Jm5qLg/hsHnxA2A=",
version = "v1.11.0",
)
go_repository(
name = "com_github_google_go_cmp",
importpath = "github.com/google/go-cmp",
sum = "h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M=",
version = "v0.5.4",
)
go_repository(
name = "com_github_google_go_github",
importpath = "github.com/google/go-github",
sum = "h1:N0LgJ1j65A7kfXrZnUDaYCs/Sf4rEjNlfyDHW9dolSY=",
version = "v17.0.0+incompatible",
)
go_repository(
name = "com_github_google_go_github_v29",
importpath = "github.com/google/go-github/v29",
sum = "h1:IktKCTwU//aFHnpA+2SLIi7Oo9uhAzgsdZNbcAqhgdc=",
version = "v29.0.3",
)
go_repository(
name = "com_github_google_go_licenses",
importpath = "github.com/google/go-licenses",
sum = "h1:I98OR2rkA0BbILgkFO989xoVZA7nKMgBoDjFbaompSE=",
version = "v0.0.0-20210611153034-83e603ed469e",
)
go_repository(
name = "com_github_google_go_querystring",
importpath = "github.com/google/go-querystring",
sum = "h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=",
version = "v1.0.0",
)
go_repository(
name = "com_github_google_gofuzz",
importpath = "github.com/google/gofuzz",
sum = "h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0=",
version = "v1.2.0",
)
go_repository(
name = "com_github_google_licenseclassifier",
importpath = "github.com/google/licenseclassifier",
sum = "h1:EfzlPF5MRmoWsCGvSkPZ1Nh9uVzHf4FfGnDQ6CXd2NA=",
version = "v0.0.0-20210325184830-bb04aff29e72",
)
go_repository(
name = "com_github_google_martian",
importpath = "github.com/google/martian",
sum = "h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no=",
version = "v2.1.0+incompatible",
)
go_repository(
name = "com_github_google_martian_v3",
importpath = "github.com/google/martian/v3",
sum = "h1:wCKgOCHuUEVfsaQLpPSJb7VdYCdTVZQAuOdYm1yc/60=",
version = "v3.1.0",
)
go_repository(
name = "com_github_google_pprof",
importpath = "github.com/google/pprof",
sum = "h1:WL9iUw2tSwvaCb3++2fMsg2dAmpZd5AykgFftgfHETc=",
version = "v0.0.0-20201009210932-67992a1a5a35",
)
go_repository(
name = "com_github_google_renameio",
importpath = "github.com/google/renameio",
sum = "h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA=",
version = "v0.1.0",
)
go_repository(
name = "com_github_google_shlex",
importpath = "github.com/google/shlex",
sum = "h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4=",
version = "v0.0.0-20191202100458-e7afc7fbc510",
)
go_repository(
name = "com_github_google_uuid",
importpath = "github.com/google/uuid",
sum = "h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y=",
version = "v1.1.2",
)
go_repository(
name = "com_github_googleapis_gax_go",
importpath = "github.com/googleapis/gax-go",
sum = "h1:silFMLAnr330+NRuag/VjIGF7TLp/LBrV2CJKFLWEww=",
version = "v2.0.2+incompatible",
)
go_repository(
name = "com_github_googleapis_gax_go_v2",
importpath = "github.com/googleapis/gax-go/v2",
sum = "h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM=",
version = "v2.0.5",
)
go_repository(
name = "com_github_googleapis_gnostic",
importpath = "github.com/googleapis/gnostic",
sum = "h1:2qsuRm+bzgwSIKikigPASa2GhW8H2Dn4Qq7UxD8K/48=",
version = "v0.5.3",
)
go_repository(
name = "com_github_gophercloud_gophercloud",
importpath = "github.com/gophercloud/gophercloud",
sum = "h1:P/nh25+rzXouhytV2pUHBb65fnds26Ghl8/391+sT5o=",
version = "v0.1.0",
)
go_repository(
name = "com_github_gopherjs_gopherjs",
importpath = "github.com/gopherjs/gopherjs",
sum = "h1:l5lAOZEym3oK3SQ2HBHWsJUfbNBiTXJDeW2QDxw9AQ0=",
version = "v0.0.0-20200217142428-fce0ec30dd00",
)
go_repository(
name = "com_github_gopherjs_gopherwasm",
importpath = "github.com/gopherjs/gopherwasm",
sum = "h1:32nge/RlujS1Im4HNCJPp0NbBOAeBXFuT1KonUuLl+Y=",
version = "v1.0.0",
)
go_repository(
name = "com_github_gorilla_context",
importpath = "github.com/gorilla/context",
sum = "h1:AWwleXJkX/nhcU9bZSnZoi3h/qGYqQAGhq6zZe/aQW8=",
version = "v1.1.1",
)
go_repository(
name = "com_github_gorilla_csrf",
importpath = "github.com/gorilla/csrf",
sum = "h1:mMPjV5/3Zd460xCavIkppUdvnl5fPXMpv2uz2Zyg7/Y=",
version = "v1.7.0",
)
go_repository(
name = "com_github_gorilla_handlers",
importpath = "github.com/gorilla/handlers",
sum = "h1:0QniY0USkHQ1RGCLfKxeNHK9bkDHGRYGNDFBCS+YARg=",
version = "v1.4.2",
)
go_repository(
name = "com_github_gorilla_mux",
importpath = "github.com/gorilla/mux",
sum = "h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=",
version = "v1.8.0",
)
go_repository(
name = "com_github_gorilla_securecookie",
importpath = "github.com/gorilla/securecookie",
sum = "h1:miw7JPhV+b/lAHSXz4qd/nN9jRiAFV5FwjeKyCS8BvQ=",
version = "v1.1.1",
)
go_repository(
name = "com_github_gorilla_websocket",
importpath = "github.com/gorilla/websocket",
sum = "h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc=",
version = "v1.4.2",
)
go_repository(
name = "com_github_gregjones_httpcache",
importpath = "github.com/gregjones/httpcache",
sum = "h1:pdN6V1QBWetyv/0+wjACpqVH+eVULgEjkurDLq3goeM=",
version = "v0.0.0-20180305231024-9cad4c3443a7",
)
go_repository(
name = "com_github_grpc_ecosystem_go_grpc_middleware",
importpath = "github.com/grpc-ecosystem/go-grpc-middleware",
sum = "h1:z53tR0945TRRQO/fLEVPI6SMv7ZflF0TEaTAoU7tOzg=",
version = "v1.0.1-0.20190118093823-f849b5445de4",
)
go_repository(
name = "com_github_grpc_ecosystem_go_grpc_prometheus",
importpath = "github.com/grpc-ecosystem/go-grpc-prometheus",
sum = "h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho=",
version = "v1.2.0",
)
go_repository(
name = "com_github_grpc_ecosystem_grpc_gateway",
importpath = "github.com/grpc-ecosystem/grpc-gateway",
sum = "h1:UImYN5qQ8tuGpGE16ZmjvcTtTw24zw1QAp/SlnNrZhI=",
version = "v1.9.5",
)
go_repository(
name = "com_github_hailocab_go_hostpool",
importpath = "github.com/hailocab/go-hostpool",
sum = "h1:5upAirOpQc1Q53c0bnx2ufif5kANL7bfZWcc6VJWJd8=",
version = "v0.0.0-20160125115350-e80d13ce29ed",
)
go_repository(
name = "com_github_hako_durafmt",
importpath = "github.com/hako/durafmt",
sum = "h1:BpJ2o0OR5FV7vrkDYfXYVJQeMNWa8RhklZOpW2ITAIQ=",
version = "v0.0.0-20200710122514-c0fb7b4da026",
)
go_repository(
name = "com_github_hashicorp_consul_api",
importpath = "github.com/hashicorp/consul/api",
sum = "h1:HXNYlRkkM/t+Y/Yhxtwcy02dlYwIaoxzvxPnS+cqy78=",
version = "v1.3.0",
)
go_repository(
name = "com_github_hashicorp_consul_sdk",
importpath = "github.com/hashicorp/consul/sdk",
sum = "h1:UOxjlb4xVNF93jak1mzzoBatyFju9nrkxpVwIp/QqxQ=",
version = "v0.3.0",
)
go_repository(
name = "com_github_hashicorp_errwrap",
importpath = "github.com/hashicorp/errwrap",
sum = "h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I=",
version = "v1.1.0",
)
go_repository(
name = "com_github_hashicorp_go_cleanhttp",
importpath = "github.com/hashicorp/go-cleanhttp",
sum = "h1:dH3aiDG9Jvb5r5+bYHsikaOUIpcM0xvgMXVoDkXMzJM=",
version = "v0.5.1",
)
go_repository(
name = "com_github_hashicorp_go_immutable_radix",
importpath = "github.com/hashicorp/go-immutable-radix",
sum = "h1:AKDB1HM5PWEA7i4nhcpwOrO2byshxBjXVn/J/3+z5/0=",
version = "v1.0.0",
)
go_repository(
name = "com_github_hashicorp_go_msgpack",
importpath = "github.com/hashicorp/go-msgpack",
sum = "h1:zKjpN5BK/P5lMYrLmBHdBULWbJ0XpYR+7NGzqkZzoD4=",
version = "v0.5.3",
)
go_repository(
name = "com_github_hashicorp_go_multierror",
importpath = "github.com/hashicorp/go-multierror",
sum = "h1:B9UzwGQJehnUY1yNrnwREHc3fGbC2xefo8g4TbElacI=",
version = "v1.1.0",
)
go_repository(
name = "com_github_hashicorp_go_net",
importpath = "github.com/hashicorp/go.net",
sum = "h1:sNCoNyDEvN1xa+X0baata4RdcpKwcMS6DH+xwfqPgjw=",
version = "v0.0.1",
)
go_repository(
name = "com_github_hashicorp_go_rootcerts",
importpath = "github.com/hashicorp/go-rootcerts",
sum = "h1:Rqb66Oo1X/eSV1x66xbDccZjhJigjg0+e82kpwzSwCI=",
version = "v1.0.0",
)
go_repository(
name = "com_github_hashicorp_go_sockaddr",
importpath = "github.com/hashicorp/go-sockaddr",
sum = "h1:GeH6tui99pF4NJgfnhp+L6+FfobzVW3Ah46sLo0ICXs=",
version = "v1.0.0",
)
go_repository(
name = "com_github_hashicorp_go_syslog",
importpath = "github.com/hashicorp/go-syslog",
sum = "h1:KaodqZuhUoZereWVIYmpUgZysurB1kBLX2j0MwMrUAE=",
version = "v1.0.0",
)
go_repository(
name = "com_github_hashicorp_go_uuid",
importpath = "github.com/hashicorp/go-uuid",
sum = "h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE=",
version = "v1.0.1",
)
go_repository(
name = "com_github_hashicorp_go_version",
importpath = "github.com/hashicorp/go-version",
sum = "h1:3vNe/fWF5CBgRIguda1meWhsZHy3m8gCJ5wx+dIzX/E=",
version = "v1.2.0",
)
go_repository(
name = "com_github_hashicorp_golang_lru",
importpath = "github.com/hashicorp/golang-lru",
sum = "h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=",
version = "v0.5.4",
)
go_repository(
name = "com_github_hashicorp_hcl",
importpath = "github.com/hashicorp/hcl",
sum = "h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=",
version = "v1.0.0",
)
go_repository(
name = "com_github_hashicorp_logutils",
importpath = "github.com/hashicorp/logutils",
sum = "h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y=",
version = "v1.0.0",
)
go_repository(
name = "com_github_hashicorp_mdns",
importpath = "github.com/hashicorp/mdns",
sum = "h1:WhIgCr5a7AaVH6jPUwjtRuuE7/RDufnUvzIr48smyxs=",
version = "v1.0.0",
)
go_repository(
name = "com_github_hashicorp_memberlist",
importpath = "github.com/hashicorp/memberlist",
sum = "h1:EmmoJme1matNzb+hMpDuR/0sbJSUisxyqBGG676r31M=",
version = "v0.1.3",
)
go_repository(
name = "com_github_hashicorp_serf",
importpath = "github.com/hashicorp/serf",
sum = "h1:YZ7UKsJv+hKjqGVUUbtE3HNj79Eln2oQ75tniF6iPt0=",
version = "v0.8.2",
)
go_repository(
name = "com_github_hpcloud_tail",
importpath = "github.com/hpcloud/tail",
sum = "h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=",
version = "v1.0.0",
)
go_repository(
name = "com_github_huandu_xstrings",
importpath = "github.com/huandu/xstrings",
sum = "h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw=",
version = "v1.3.2",
)
go_repository(
name = "com_github_hudl_fargo",
importpath = "github.com/hudl/fargo",
sum = "h1:0U6+BtN6LhaYuTnIJq4Wyq5cpn6O2kWrxAtcqBmYY6w=",
version = "v1.3.0",
)
go_repository(
name = "com_github_ianlancetaylor_demangle",
importpath = "github.com/ianlancetaylor/demangle",
sum = "h1:mV02weKRL81bEnm8A0HT1/CAelMQDBuQIfLw8n+d6xI=",
version = "v0.0.0-20200824232613-28f6c0f3b639",
)
go_repository(
name = "com_github_imdario_mergo",
importpath = "github.com/imdario/mergo",
sum = "h1:3tnifQM4i+fbajXKBHXWEH+KvNHqojZ778UH75j3bGA=",
version = "v0.3.11",
)
go_repository(
name = "com_github_inconshreveable_mousetrap",
importpath = "github.com/inconshreveable/mousetrap",
sum = "h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=",
version = "v1.0.0",
)
go_repository(
name = "com_github_influxdata_influxdb1_client",
importpath = "github.com/influxdata/influxdb1-client",
sum = "h1:/WZQPMZNsjZ7IlCpsLGdQBINg5bxKQ1K1sh6awxLtkA=",
version = "v0.0.0-20191209144304-8bf82d3c094d",
)
go_repository(
name = "com_github_jackc_chunkreader",
importpath = "github.com/jackc/chunkreader",
sum = "h1:4s39bBR8ByfqH+DKm8rQA3E1LHZWB9XWcrz8fqaZbe0=",
version = "v1.0.0",
)
go_repository(
name = "com_github_jackc_chunkreader_v2",
importpath = "github.com/jackc/chunkreader/v2",
sum = "h1:i+RDz65UE+mmpjTfyz0MoVTnzeYxroil2G82ki7MGG8=",
version = "v2.0.1",
)
go_repository(
name = "com_github_jackc_fake",
importpath = "github.com/jackc/fake",
sum = "h1:vr3AYkKovP8uR8AvSGGUK1IDqRa5lAAvEkZG1LKaCRc=",
version = "v0.0.0-20150926172116-812a484cc733",
)
go_repository(
name = "com_github_jackc_pgconn",
importpath = "github.com/jackc/pgconn",
sum = "h1:195tt17jkjy+FrFlY0pgyrul5kRLb7BGXY3JTrNxeXU=",
version = "v1.7.2",
)
go_repository(
name = "com_github_jackc_pgio",
importpath = "github.com/jackc/pgio",
sum = "h1:g12B9UwVnzGhueNavwioyEEpAmqMe1E/BN9ES+8ovkE=",
version = "v1.0.0",
)
go_repository(
name = "com_github_jackc_pgmock",
importpath = "github.com/jackc/pgmock",
sum = "h1:JVX6jT/XfzNqIjye4717ITLaNwV9mWbJx0dLCpcRzdA=",
version = "v0.0.0-20190831213851-13a1b77aafa2",
)
go_repository(
name = "com_github_jackc_pgpassfile",
importpath = "github.com/jackc/pgpassfile",
sum = "h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=",
version = "v1.0.0",
)
go_repository(
name = "com_github_jackc_pgproto3",
importpath = "github.com/jackc/pgproto3",
sum = "h1:FYYE4yRw+AgI8wXIinMlNjBbp/UitDJwfj5LqqewP1A=",
version = "v1.1.0",
)
go_repository(
name = "com_github_jackc_pgproto3_v2",
importpath = "github.com/jackc/pgproto3/v2",
sum = "h1:b1105ZGEMFe7aCvrT1Cca3VoVb4ZFMaFJLJcg/3zD+8=",
version = "v2.0.6",
)
go_repository(
name = "com_github_jackc_pgservicefile",
importpath = "github.com/jackc/pgservicefile",
sum = "h1:C8S2+VttkHFdOOCXJe+YGfa4vHYwlt4Zx+IVXQ97jYg=",
version = "v0.0.0-20200714003250-2b9c44734f2b",
)
go_repository(
name = "com_github_jackc_pgtype",
importpath = "github.com/jackc/pgtype",
sum = "h1:CAtFD7TS95KrxRAh3bidgLwva48WYxk8YkbHZsSWfbI=",
version = "v1.6.1",
)
go_repository(
name = "com_github_jackc_pgx_v4",
importpath = "github.com/jackc/pgx/v4",
sum = "h1:1V7EAc5jvIqXwdzgk8+YyOK+4071hhePzBCAF6gxUUw=",
version = "v4.9.2",
)
go_repository(
name = "com_github_jackc_puddle",
importpath = "github.com/jackc/puddle",
sum = "h1:mpQEXihFnWGDy6X98EOTh81JYuxn7txby8ilJ3iIPGM=",
version = "v1.1.2",
)
go_repository(
name = "com_github_jbenet_go_context",
importpath = "github.com/jbenet/go-context",
sum = "h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=",
version = "v0.0.0-20150711004518-d14ea06fba99",
)
go_repository(
name = "com_github_jcgregorio_logger",
importpath = "github.com/jcgregorio/logger",
sum = "h1:kHiF857oOObzlUer5ANZ95U08A7k2INjivnss4IyMCg=",
version = "v0.1.2",
)
go_repository(
name = "com_github_jcgregorio_slog",
importpath = "github.com/jcgregorio/slog",
sum = "h1:H8hiPQr5PtkrB5z3Do/9iR5tEwuAFNim68cqcoAlHeY=",
version = "v0.0.0-20190423190439-e6f2d537f900",
)
go_repository(
name = "com_github_jeffail_gabs_v2",
importpath = "github.com/Jeffail/gabs/v2",
sum = "h1:WdCnGaDhNa4LSRTMwhLZzJ7SRDXjABNP13SOKvCpL5w=",
version = "v2.6.0",
)
go_repository(
name = "com_github_jellevandenhooff_dkim",
importpath = "github.com/jellevandenhooff/dkim",
sum = "h1:ujPKutqRlJtcfWk6toYVYagwra7HQHbXOaS171b4Tg8=",
version = "v0.0.0-20150330215556-f50fe3d243e1",
)
go_repository(
name = "com_github_jessevdk_go_flags",
importpath = "github.com/jessevdk/go-flags",
sum = "h1:4IU2WS7AumrZ/40jfhf4QVDMsQwqA7VEHozFRrGARJA=",
version = "v1.4.0",
)
go_repository(
name = "com_github_jinzhu_inflection",
importpath = "github.com/jinzhu/inflection",
sum = "h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E=",
version = "v1.0.0",
)
go_repository(
name = "com_github_jinzhu_now",
importpath = "github.com/jinzhu/now",
sum = "h1:g39TucaRWyV3dwDO++eEc6qf8TVIQ/Da48WmqjZ3i7E=",
version = "v1.1.1",
)
go_repository(
name = "com_github_jmespath_go_jmespath",
importpath = "github.com/jmespath/go-jmespath",
sum = "h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=",
version = "v0.4.0",
)
go_repository(
name = "com_github_jmespath_go_jmespath_internal_testify",
importpath = "github.com/jmespath/go-jmespath/internal/testify",
sum = "h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8=",
version = "v1.5.1",
)
go_repository(
name = "com_github_jmoiron_sqlx",
importpath = "github.com/jmoiron/sqlx",
sum = "h1:41Ip0zITnmWNR/vHV+S4m+VoUivnWY5E4OJfLZjCJMA=",
version = "v1.2.0",
)
go_repository(
name = "com_github_jonboulle_clockwork",
importpath = "github.com/jonboulle/clockwork",
sum = "h1:VKV+ZcuP6l3yW9doeqz6ziZGgcynBVQO+obU0+0hcPo=",
version = "v0.1.0",
)
go_repository(
name = "com_github_josharian_intern",
importpath = "github.com/josharian/intern",
sum = "h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=",
version = "v1.0.0",
)
go_repository(
name = "com_github_jpillora_backoff",
importpath = "github.com/jpillora/backoff",
sum = "h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA=",
version = "v1.0.0",
)
go_repository(
name = "com_github_json_iterator_go",
importpath = "github.com/json-iterator/go",
sum = "h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr68=",
version = "v1.1.10",
)
go_repository(
name = "com_github_jstemmer_go_junit_report",
importpath = "github.com/jstemmer/go-junit-report",
sum = "h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o=",
version = "v0.9.1",
)
go_repository(
name = "com_github_jtolds_gls",
importpath = "github.com/jtolds/gls",
sum = "h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=",
version = "v4.20.0+incompatible",
)
go_repository(
name = "com_github_julienschmidt_httprouter",
importpath = "github.com/julienschmidt/httprouter",
sum = "h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U=",
version = "v1.3.0",
)
go_repository(
name = "com_github_jung_kurt_gofpdf",
importpath = "github.com/jung-kurt/gofpdf",
sum = "h1:OrLyhb9VU2dNdxzDu5lpMhX5/vpfm6RY5Jlr4iPQ6ME=",
version = "v1.13.0",
)
go_repository(
name = "com_github_kardianos_osext",
importpath = "github.com/kardianos/osext",
sum = "h1:iQTw/8FWTuc7uiaSepXwyf3o52HaUYcV+Tu66S3F5GA=",
version = "v0.0.0-20190222173326-2bc1f35cddc0",
)
go_repository(
name = "com_github_kevinburke_ssh_config",
importpath = "github.com/kevinburke/ssh_config",
sum = "h1:Coekwdh0v2wtGp9Gmz1Ze3eVRAWJMLokvN3QjdzCHLY=",
version = "v0.0.0-20190725054713-01f96b0aa0cd",
)
go_repository(
name = "com_github_kisielk_errcheck",
importpath = "github.com/kisielk/errcheck",
sum = "h1:e8esj/e4R+SAOwFwN+n3zr0nYeCyeweozKfO23MvHzY=",
version = "v1.5.0",
)
go_repository(
name = "com_github_kisielk_gotool",
importpath = "github.com/kisielk/gotool",
sum = "h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg=",
version = "v1.0.0",
)
go_repository(
name = "com_github_klauspost_compress",
importpath = "github.com/klauspost/compress",
sum = "h1:MiK62aErc3gIiVEtyzKfeOHgW7atJb5g/KNX5m3c2nQ=",
version = "v1.11.2",
)
go_repository(
name = "com_github_knetic_govaluate",
importpath = "github.com/Knetic/govaluate",
sum = "h1:1G1pk05UrOh0NlF1oeaaix1x8XzrfjIDK47TY0Zehcw=",
version = "v3.0.1-0.20171022003610-9aa49832a739+incompatible",
)
go_repository(
name = "com_github_konsorten_go_windows_terminal_sequences",
importpath = "github.com/konsorten/go-windows-terminal-sequences",
sum = "h1:CE8S1cTafDpPvMhIxNJKvHsGVBgn1xWYf1NbHQhywc8=",
version = "v1.0.3",
)
go_repository(
name = "com_github_kr_fs",
importpath = "github.com/kr/fs",
sum = "h1:Jskdu9ieNAYnjxsi0LbQp1ulIKZV1LAFgK1tWhpZgl8=",
version = "v0.1.0",
)
go_repository(
name = "com_github_kr_logfmt",
importpath = "github.com/kr/logfmt",
sum = "h1:T+h1c/A9Gawja4Y9mFVWj2vyii2bbUNDw3kt9VxK2EY=",
version = "v0.0.0-20140226030751-b84e30acd515",
)
go_repository(
name = "com_github_kr_pretty",
importpath = "github.com/kr/pretty",
sum = "h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs=",
version = "v0.2.0",
)
go_repository(
name = "com_github_kr_pty",
importpath = "github.com/kr/pty",
sum = "h1:AkaSdXYQOWeaO3neb8EM634ahkXXe3jYbVh/F9lq+GI=",
version = "v1.1.8",
)
go_repository(
name = "com_github_kr_text",
importpath = "github.com/kr/text",
sum = "h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=",
version = "v0.2.0",
)
go_repository(
name = "com_github_kylelemons_godebug",
importpath = "github.com/kylelemons/godebug",
sum = "h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=",
version = "v1.1.0",
)
go_repository(
name = "com_github_lib_pq",
importpath = "github.com/lib/pq",
sum = "h1:9xohqzkUwzR4Ga4ivdTcawVS89YSDVxXMa3xJX3cGzg=",
version = "v1.8.0",
)
go_repository(
name = "com_github_liggitt_tabwriter",
importpath = "github.com/liggitt/tabwriter",
sum = "h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0=",
version = "v0.0.0-20181228230101-89fcab3d43de",
)
go_repository(
name = "com_github_lightstep_lightstep_tracer_common_golang_gogo",
importpath = "github.com/lightstep/lightstep-tracer-common/golang/gogo",
sum = "h1:143Bb8f8DuGWck/xpNUOckBVYfFbBTnLevfRZ1aVVqo=",
version = "v0.0.0-20190605223551-bc2310a04743",
)
go_repository(
name = "com_github_lightstep_lightstep_tracer_go",
importpath = "github.com/lightstep/lightstep-tracer-go",
sum = "h1:vi1F1IQ8N7hNWytK9DpJsUfQhGuNSc19z330K6vl4zk=",
version = "v0.18.1",
)
go_repository(
name = "com_github_lithammer_dedent",
importpath = "github.com/lithammer/dedent",
sum = "h1:VNzHMVCBNG1j0fh3OrsFRkVUwStdDArbgBWoPAffktY=",
version = "v1.1.0",
)
go_repository(
name = "com_github_luci_gtreap",
importpath = "github.com/luci/gtreap",
sum = "h1:Kkxfmkf53vnIADWIhzvJ0GvwVR/gz9U7F7Wqofqd7dU=",
version = "v0.0.0-20161228054646-35df89791e8f",
)
go_repository(
name = "com_github_lyft_protoc_gen_validate",
importpath = "github.com/lyft/protoc-gen-validate",
sum = "h1:KNt/RhmQTOLr7Aj8PsJ7mTronaFyx80mRTT9qF261dA=",
version = "v0.0.13",
)
go_repository(
name = "com_github_magiconair_properties",
importpath = "github.com/magiconair/properties",
sum = "h1:8KGKTcQQGm0Kv7vEbKFErAoAOFyyacLStRtQSeYtvkY=",
version = "v1.8.4",
)
go_repository(
name = "com_github_mailru_easyjson",
importpath = "github.com/mailru/easyjson",
sum = "h1:mdxE1MF9o53iCb2Ghj1VfWvh7ZOwHpnVG/xwXrV90U8=",
version = "v0.7.1",
)
go_repository(
name = "com_github_makenowjust_heredoc",
importpath = "github.com/MakeNowJust/heredoc",
sum = "h1:sjQovDkwrZp8u+gxLtPgKGjk5hCxuy2hrRejBTA9xFU=",
version = "v0.0.0-20170808103936-bb23615498cd",
)
go_repository(
name = "com_github_markbates_pkger",
importpath = "github.com/markbates/pkger",
sum = "h1:/MKEtWqtc0mZvu9OinB9UzVN9iYCwLWuyUv4Bw+PCno=",
version = "v0.17.1",
)
go_repository(
name = "com_github_maruel_subcommands",
importpath = "github.com/maruel/subcommands",
sum = "h1:PlujZ2Y2Lq0VCaDu7SshaGpfm0iv4cML2AGUyS5By9I=",
version = "v0.0.0-20200206125935-de1d40e70d4b",
)
go_repository(
name = "com_github_maruel_ut",
importpath = "github.com/maruel/ut",
sum = "h1:H7jW7DsmXwjptrU4qDe+xdIOO9iE0n7bkNJOYNYlyYE=",
version = "v1.0.1",
)
go_repository(
name = "com_github_masterminds_goutils",
importpath = "github.com/Masterminds/goutils",
sum = "h1:zukEsf/1JZwCMgHiK3GZftabmxiCw4apj3a28RPBiVg=",
version = "v1.1.0",
)
go_repository(
name = "com_github_masterminds_semver",
importpath = "github.com/Masterminds/semver",
sum = "h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww=",
version = "v1.5.0",
)
go_repository(
name = "com_github_masterminds_sprig",
importpath = "github.com/Masterminds/sprig",
sum = "h1:z4yfnGrZ7netVz+0EDJ0Wi+5VZCSYp4Z0m2dk6cEM60=",
version = "v2.22.0+incompatible",
)
go_repository(
name = "com_github_mattn_go_colorable",
importpath = "github.com/mattn/go-colorable",
sum = "h1:6Su7aK7lXmJ/U79bYtBjLNaha4Fs1Rg9plHpcH+vvnE=",
version = "v0.1.6",
)
go_repository(
name = "com_github_mattn_go_isatty",
importpath = "github.com/mattn/go-isatty",
sum = "h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=",
version = "v0.0.12",
)
go_repository(
name = "com_github_mattn_go_runewidth",
importpath = "github.com/mattn/go-runewidth",
sum = "h1:Ei8KR0497xHyKJPAv59M1dkC+rOZCMBJ+t3fZ+twI54=",
version = "v0.0.7",
)
go_repository(
name = "com_github_mattn_go_sqlite3",
importpath = "github.com/mattn/go-sqlite3",
sum = "h1:gXHsfypPkaMZrKbD5209QV9jbUTJKjyR5WD3HYQSd+U=",
version = "v2.0.3+incompatible",
)
go_repository(
name = "com_github_matttproud_golang_protobuf_extensions",
importpath = "github.com/matttproud/golang_protobuf_extensions",
sum = "h1:I0XW9+e1XWDxdcEniV4rQAIOPUGDq67JSCiRCgGCZLI=",
version = "v1.0.2-0.20181231171920-c182affec369",
)
go_repository(
name = "com_github_microsoft_go_winio",
importpath = "github.com/Microsoft/go-winio",
sum = "h1:+hMXMk01us9KgxGb7ftKQt2Xpf5hH/yky+TDA+qxleU=",
version = "v0.4.14",
)
go_repository(
name = "com_github_miekg_dns",
importpath = "github.com/miekg/dns",
sum = "h1:9jZdLNd/P4+SfEJ0TNyxYpsK8N4GtfylBLqtbYN1sbA=",
version = "v1.0.14",
)
go_repository(
name = "com_github_mitchellh_cli",
importpath = "github.com/mitchellh/cli",
sum = "h1:iGBIsUe3+HZ/AD/Vd7DErOt5sU9fa8Uj7A2s1aggv1Y=",
version = "v1.0.0",
)
go_repository(
name = "com_github_mitchellh_copystructure",
importpath = "github.com/mitchellh/copystructure",
sum = "h1:Laisrj+bAB6b/yJwB5Bt3ITZhGJdqmxquMKeZ+mmkFQ=",
version = "v1.0.0",
)
go_repository(
name = "com_github_mitchellh_go_homedir",
importpath = "github.com/mitchellh/go-homedir",
sum = "h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=",
version = "v1.1.0",
)
go_repository(
name = "com_github_mitchellh_go_testing_interface",
importpath = "github.com/mitchellh/go-testing-interface",
sum = "h1:fzU/JVNcaqHQEcVFAKeR41fkiLdIPrefOvVG1VZ96U0=",
version = "v1.0.0",
)
go_repository(
name = "com_github_mitchellh_go_wordwrap",
importpath = "github.com/mitchellh/go-wordwrap",
sum = "h1:6GlHJ/LTGMrIJbwgdqdl2eEH8o+Exx/0m8ir9Gns0u4=",
version = "v1.0.0",
)
go_repository(
name = "com_github_mitchellh_gox",
importpath = "github.com/mitchellh/gox",
sum = "h1:lfGJxY7ToLJQjHHwi0EX6uYBdK78egf954SQl13PQJc=",
version = "v0.4.0",
)
go_repository(
name = "com_github_mitchellh_iochan",
importpath = "github.com/mitchellh/iochan",
sum = "h1:C+X3KsSTLFVBr/tK1eYN/vs4rJcvsiLU338UhYPJWeY=",
version = "v1.0.0",
)
go_repository(
name = "com_github_mitchellh_mapstructure",
importpath = "github.com/mitchellh/mapstructure",
sum = "h1:SzB1nHZ2Xi+17FP0zVQBHIZqvwRN9408fJO8h+eeNA8=",
version = "v1.3.3",
)
go_repository(
name = "com_github_mitchellh_reflectwalk",
importpath = "github.com/mitchellh/reflectwalk",
sum = "h1:FVzMWA5RllMAKIdUSC8mdWo3XtwoecrH79BY70sEEpE=",
version = "v1.0.1",
)
go_repository(
name = "com_github_moby_spdystream",
importpath = "github.com/moby/spdystream",
sum = "h1:cjW1zVyyoiM0T7b6UoySUFqzXMoqRckQtXwGPiBhOM8=",
version = "v0.2.0",
)
go_repository(
name = "com_github_moby_term",
importpath = "github.com/moby/term",
sum = "h1:rzf0wL0CHVc8CEsgyygG0Mn9CNCCPZqOPaz8RiiHYQk=",
version = "v0.0.0-20201216013528-df9cb8a40635",
)
go_repository(
name = "com_github_modern_go_concurrent",
importpath = "github.com/modern-go/concurrent",
sum = "h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=",
version = "v0.0.0-20180306012644-bacd9c7ef1dd",
)
go_repository(
name = "com_github_modern_go_reflect2",
importpath = "github.com/modern-go/reflect2",
sum = "h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI=",
version = "v1.0.1",
)
go_repository(
name = "com_github_monochromegane_go_gitignore",
importpath = "github.com/monochromegane/go-gitignore",
sum = "h1:n6/2gBQ3RWajuToeY6ZtZTIKv2v7ThUy5KKusIT0yc0=",
version = "v0.0.0-20200626010858-205db1a8cc00",
)
go_repository(
name = "com_github_morikuni_aec",
importpath = "github.com/morikuni/aec",
sum = "h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A=",
version = "v1.0.0",
)
go_repository(
name = "com_github_munnerz_goautoneg",
importpath = "github.com/munnerz/goautoneg",
sum = "h1:7PxY7LVfSZm7PEeBTyK1rj1gABdCO2mbri6GKO1cMDs=",
version = "v0.0.0-20120707110453-a547fc61f48d",
)
go_repository(
name = "com_github_mutecomm_go_sqlcipher_v4",
importpath = "github.com/mutecomm/go-sqlcipher/v4",
sum = "h1:sV1tWCWGAVlPhNGT95Q+z/txFxuhAYWwHD1afF5bMZg=",
version = "v4.4.0",
)
go_repository(
name = "com_github_mwitkow_go_conntrack",
importpath = "github.com/mwitkow/go-conntrack",
sum = "h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU=",
version = "v0.0.0-20190716064945-2f068394615f",
)
go_repository(
name = "com_github_mxk_go_flowrate",
importpath = "github.com/mxk/go-flowrate",
sum = "h1:y5//uYreIhSUg3J1GEMiLbxo1LJaP8RfCpH6pymGZus=",
version = "v0.0.0-20140419014527-cca7078d478f",
)
go_repository(
name = "com_github_nakagami_firebirdsql",
importpath = "github.com/nakagami/firebirdsql",
sum = "h1:P48LjvUQpTReR3TQRbxSeSBsMXzfK0uol7eRcr7VBYQ=",
version = "v0.0.0-20190310045651-3c02a58cfed8",
)
go_repository(
name = "com_github_nats_io_jwt",
importpath = "github.com/nats-io/jwt",
sum = "h1:+RB5hMpXUUA2dfxuhBTEkMOrYmM+gKIZYS1KjSostMI=",
version = "v0.3.2",
)
go_repository(
name = "com_github_nats_io_nats_go",
importpath = "github.com/nats-io/nats.go",
sum = "h1:ik3HbLhZ0YABLto7iX80pZLPw/6dx3T+++MZJwLnMrQ=",
version = "v1.9.1",
)
go_repository(
name = "com_github_nats_io_nats_server_v2",
importpath = "github.com/nats-io/nats-server/v2",
sum = "h1:i2Ly0B+1+rzNZHHWtD4ZwKi+OU5l+uQo1iDHZ2PmiIc=",
version = "v2.1.2",
)
go_repository(
name = "com_github_nats_io_nkeys",
importpath = "github.com/nats-io/nkeys",
sum = "h1:6JrEfig+HzTH85yxzhSVbjHRJv9cn0p6n3IngIcM5/k=",
version = "v0.1.3",
)
go_repository(
name = "com_github_nats_io_nuid",
importpath = "github.com/nats-io/nuid",
sum = "h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=",
version = "v1.0.1",
)
go_repository(
name = "com_github_nbutton23_zxcvbn_go",
importpath = "github.com/nbutton23/zxcvbn-go",
sum = "h1:AREM5mwr4u1ORQBMvzfzBgpsctsbQikCVpvC+tX285E=",
version = "v0.0.0-20180912185939-ae427f1e4c1d",
)
go_repository(
name = "com_github_neo4j_drivers_gobolt",
importpath = "github.com/neo4j-drivers/gobolt",
sum = "h1:80c7W+vtw39ES9Q85q9GZh4tJo+1MpQGpFTuo28CP+Y=",
version = "v1.7.4",
)
go_repository(
name = "com_github_neo4j_neo4j_go_driver",
importpath = "github.com/neo4j/neo4j-go-driver",
sum = "h1:fhFP5RliM2HW/8XdcO5QngSfFli9GcRIpMXvypTQt6E=",
version = "v1.8.1-0.20200803113522-b626aa943eba",
)
go_repository(
name = "com_github_nfnt_resize",
importpath = "github.com/nfnt/resize",
sum = "h1:zYyBkD/k9seD2A7fsi6Oo2LfFZAehjjQMERAvZLEDnQ=",
version = "v0.0.0-20180221191011-83c6a9932646",
)
go_repository(
name = "com_github_niemeyer_pretty",
importpath = "github.com/niemeyer/pretty",
sum = "h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=",
version = "v0.0.0-20200227124842-a10e7caefd8e",
)
go_repository(
name = "com_github_nkovacs_streamquote",
importpath = "github.com/nkovacs/streamquote",
sum = "h1:E2B8qYyeSgv5MXpmzZXRNp8IAQ4vjxIjhpAf5hv/tAg=",
version = "v0.0.0-20170412213628-49af9bddb229",
)
go_repository(
name = "com_github_nxadm_tail",
importpath = "github.com/nxadm/tail",
sum = "h1:obHEce3upls1IBn1gTw/o7bCv7OJb6Ib/o7wNO+4eKw=",
version = "v1.4.5",
)
go_repository(
name = "com_github_nytimes_gziphandler",
importpath = "github.com/NYTimes/gziphandler",
sum = "h1:lsxEuwrXEAokXB9qhlbKWPpo3KMLZQ5WB5WLQRW1uq0=",
version = "v0.0.0-20170623195520-56545f4a5d46",
)
go_repository(
name = "com_github_oklog_oklog",
importpath = "github.com/oklog/oklog",
sum = "h1:wVfs8F+in6nTBMkA7CbRw+zZMIB7nNM825cM1wuzoTk=",
version = "v0.3.2",
)
go_repository(
name = "com_github_oklog_run",
importpath = "github.com/oklog/run",
sum = "h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw=",
version = "v1.0.0",
)
go_repository(
name = "com_github_oklog_ulid",
importpath = "github.com/oklog/ulid",
sum = "h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4=",
version = "v1.3.1",
)
go_repository(
name = "com_github_olekukonko_tablewriter",
importpath = "github.com/olekukonko/tablewriter",
sum = "h1:vHD/YYe1Wolo78koG299f7V/VAS08c6IpCLn+Ejf/w8=",
version = "v0.0.4",
)
go_repository(
name = "com_github_olivere_elastic_v7",
importpath = "github.com/olivere/elastic/v7",
sum = "h1:91kj/UMKWQt8VAHBm5BDHpVmzdfPCmICaUFy2oH4LkQ=",
version = "v7.0.12",
)
go_repository(
name = "com_github_oneofone_struct2ts",
importpath = "github.com/OneOfOne/struct2ts",
sum = "h1:q6oBD4F+2wOPwCwDHK6scvJDs6MG77b4RZXfHAdZisg=",
version = "v1.0.4",
)
go_repository(
name = "com_github_oneofone_xxhash",
importpath = "github.com/OneOfOne/xxhash",
sum = "h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE=",
version = "v1.2.2",
)
go_repository(
name = "com_github_onsi_ginkgo",
importpath = "github.com/onsi/ginkgo",
sum = "h1:8mVmC9kjFFmA8H4pKMUhcblgifdkOIXPvbhN1T36q1M=",
version = "v1.14.2",
)
go_repository(
name = "com_github_onsi_gomega",
importpath = "github.com/onsi/gomega",
sum = "h1:gph6h/qe9GSUw1NhH1gp+qb+h8rXD8Cy60Z32Qw3ELA=",
version = "v1.10.3",
)
go_repository(
name = "com_github_op_go_logging",
importpath = "github.com/op/go-logging",
sum = "h1:lDH9UUVJtmYCjyT0CI4q8xvlXPxeZ0gYCVvWbmPlp88=",
version = "v0.0.0-20160315200505-970db520ece7",
)
go_repository(
name = "com_github_opencontainers_go_digest",
importpath = "github.com/opencontainers/go-digest",
sum = "h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=",
version = "v1.0.0",
)
go_repository(
name = "com_github_opencontainers_image_spec",
importpath = "github.com/opencontainers/image-spec",
sum = "h1:JMemWkRwHx4Zj+fVxWoMCFm/8sYGGrUVojFA6h/TRcI=",
version = "v1.0.1",
)
go_repository(
name = "com_github_opentracing_basictracer_go",
importpath = "github.com/opentracing/basictracer-go",
sum = "h1:YyUAhaEfjoWXclZVJ9sGoNct7j4TVk7lZWlQw5UXuoo=",
version = "v1.0.0",
)
go_repository(
name = "com_github_opentracing_contrib_go_observer",
importpath = "github.com/opentracing-contrib/go-observer",
sum = "h1:lM6RxxfUMrYL/f8bWEUqdXrANWtrL7Nndbm9iFN0DlU=",
version = "v0.0.0-20170622124052-a52f23424492",
)
go_repository(
name = "com_github_opentracing_opentracing_go",
importpath = "github.com/opentracing/opentracing-go",
sum = "h1:pWlfV3Bxv7k65HYwkikxat0+s3pV4bsqf19k25Ur8rU=",
version = "v1.1.0",
)
go_repository(
name = "com_github_openzipkin_contrib_zipkin_go_opentracing",
importpath = "github.com/openzipkin-contrib/zipkin-go-opentracing",
sum = "h1:ZCnq+JUrvXcDVhX/xRolRBZifmabN1HcS1wrPSvxhrU=",
version = "v0.4.5",
)
go_repository(
name = "com_github_openzipkin_zipkin_go",
importpath = "github.com/openzipkin/zipkin-go",
sum = "h1:nY8Hti+WKaP0cRsSeQ026wU03QsM762XBeCXBb9NAWI=",
version = "v0.2.2",
)
go_repository(
name = "com_github_otiai10_copy",
importpath = "github.com/otiai10/copy",
sum = "h1:IinKAryFFuPONZ7cm6T6E2QX/vcJwSnlaA5lfoaXIiQ=",
version = "v1.6.0",
)
go_repository(
name = "com_github_otiai10_curr",
importpath = "github.com/otiai10/curr",
sum = "h1:TJIWdbX0B+kpNagQrjgq8bCMrbhiuX73M2XwgtDMoOI=",
version = "v1.0.0",
)
go_repository(
name = "com_github_otiai10_mint",
importpath = "github.com/otiai10/mint",
sum = "h1:VYWnrP5fXmz1MXvjuUvcBrXSjGE6xjON+axB/UrpO3E=",
version = "v1.3.2",
)
go_repository(
name = "com_github_pact_foundation_pact_go",
importpath = "github.com/pact-foundation/pact-go",
sum = "h1:OYkFijGHoZAYbOIb1LWXrwKQbMMRUv1oQ89blD2Mh2Q=",
version = "v1.0.4",
)
go_repository(
name = "com_github_pascaldekloe_goe",
importpath = "github.com/pascaldekloe/goe",
sum = "h1:Lgl0gzECD8GnQ5QCWA8o6BtfL6mDH5rQgM4/fX3avOs=",
version = "v0.0.0-20180627143212-57f6aae5913c",
)
go_repository(
name = "com_github_patrickmn_go_cache",
importpath = "github.com/patrickmn/go-cache",
sum = "h1:HRMgzkcYKYpi3C8ajMPV8OFXaaRUnok+kx1WdO15EQc=",
version = "v2.1.0+incompatible",
)
go_repository(
name = "com_github_pborman_uuid",
importpath = "github.com/pborman/uuid",
sum = "h1:+ZZIw58t/ozdjRaXh/3awHfmWRbzYxJoAdNJxe/3pvw=",
version = "v1.2.1",
)
go_repository(
name = "com_github_pelletier_go_buffruneio",
importpath = "github.com/pelletier/go-buffruneio",
sum = "h1:U4t4R6YkofJ5xHm3dJzuRpPZ0mr5MMCoAWooScCR7aA=",
version = "v0.2.0",
)
go_repository(
name = "com_github_pelletier_go_toml",
importpath = "github.com/pelletier/go-toml",
sum = "h1:1Nf83orprkJyknT6h7zbuEGUEjcyVlCxSUGTENmNCRM=",
version = "v1.8.1",
)
go_repository(
name = "com_github_performancecopilot_speed",
importpath = "github.com/performancecopilot/speed",
sum = "h1:2WnRzIquHa5QxaJKShDkLM+sc0JPuwhXzK8OYOyt3Vg=",
version = "v3.0.0+incompatible",
)
go_repository(
name = "com_github_peterbourgon_diskv",
importpath = "github.com/peterbourgon/diskv",
sum = "h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI=",
version = "v2.0.1+incompatible",
)
go_repository(
name = "com_github_peterh_liner",
importpath = "github.com/peterh/liner",
sum = "h1:f+aAedNJA6uk7+6rXsYBnhdo4Xux7ESLe+kcuVUF5os=",
version = "v1.1.0",
)
go_repository(
name = "com_github_phpdave11_gofpdi",
importpath = "github.com/phpdave11/gofpdi",
sum = "h1:k2oy4yhkQopCK+qW8KjCla0iU2RpDow+QUDmH9DDt44=",
version = "v1.0.7",
)
go_repository(
name = "com_github_pierrec_lz4",
importpath = "github.com/pierrec/lz4",
sum = "h1:2xWsjqPFWcplujydGg4WmhC/6fZqK42wMM8aXeqhl0I=",
version = "v2.0.5+incompatible",
)
go_repository(
name = "com_github_pkg_browser",
importpath = "github.com/pkg/browser",
sum = "h1:49lOXmGaUpV9Fz3gd7TFZY106KVlPVa5jcYD1gaQf98=",
version = "v0.0.0-20180916011732-0a3d74bf9ce4",
)
go_repository(
name = "com_github_pkg_errors",
importpath = "github.com/pkg/errors",
sum = "h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=",
version = "v0.9.1",
)
go_repository(
name = "com_github_pkg_profile",
importpath = "github.com/pkg/profile",
sum = "h1:F++O52m40owAmADcojzM+9gyjmMOY/T4oYJkgFDH8RE=",
version = "v1.2.1",
)
go_repository(
name = "com_github_pkg_sftp",
importpath = "github.com/pkg/sftp",
sum = "h1:VasscCm72135zRysgrJDKsntdmPN+OuU3+nnHYA9wyc=",
version = "v1.10.1",
)
go_repository(
name = "com_github_pmezard_go_difflib",
importpath = "github.com/pmezard/go-difflib",
sum = "h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=",
version = "v1.0.0",
)
go_repository(
name = "com_github_posener_complete",
importpath = "github.com/posener/complete",
sum = "h1:ccV59UEOTzVDnDUEFdT95ZzHVZ+5+158q8+SJb2QV5w=",
version = "v1.1.1",
)
go_repository(
name = "com_github_prometheus_client_golang",
importpath = "github.com/prometheus/client_golang",
sum = "h1:zvJNkoCFAnYFNC24FV8nW4JdRJ3GIFcLbg65lL/JDcw=",
version = "v1.8.0",
)
go_repository(
name = "com_github_prometheus_client_model",
importpath = "github.com/prometheus/client_model",
sum = "h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M=",
version = "v0.2.0",
)
go_repository(
name = "com_github_prometheus_common",
importpath = "github.com/prometheus/common",
sum = "h1:RHRyE8UocrbjU+6UvRzwi6HjiDfxrrBU91TtbKzkGp4=",
version = "v0.14.0",
)
go_repository(
name = "com_github_prometheus_procfs",
importpath = "github.com/prometheus/procfs",
sum = "h1:wH4vA7pcjKuZzjF7lM8awk4fnuJO6idemZXoKnULUx4=",
version = "v0.2.0",
)
go_repository(
name = "com_github_prometheus_tsdb",
importpath = "github.com/prometheus/tsdb",
sum = "h1:YZcsG11NqnK4czYLrWd9mpEuAJIHVQLwdrleYfszMAA=",
version = "v0.7.1",
)
go_repository(
name = "com_github_puerkitobio_goquery",
importpath = "github.com/PuerkitoBio/goquery",
sum = "h1:j7taAbelrdcsOlGeMenZxc2AWXD5fieT1/znArdnx94=",
version = "v1.6.0",
)
go_repository(
name = "com_github_puerkitobio_purell",
importpath = "github.com/PuerkitoBio/purell",
sum = "h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI=",
version = "v1.1.1",
)
go_repository(
name = "com_github_puerkitobio_urlesc",
importpath = "github.com/PuerkitoBio/urlesc",
sum = "h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M=",
version = "v0.0.0-20170810143723-de5bf2ad4578",
)
go_repository(
name = "com_github_rcrowley_go_metrics",
importpath = "github.com/rcrowley/go-metrics",
sum = "h1:9ZKAASQSHhDYGoxY8uLVpewe1GDZ2vu2Tr/vTdVAkFQ=",
version = "v0.0.0-20181016184325-3113b8401b8a",
)
go_repository(
name = "com_github_remyoudompheng_bigfft",
importpath = "github.com/remyoudompheng/bigfft",
sum = "h1:HQagqIiBmr8YXawX/le3+O26N+vPPC1PtjaF3mwnook=",
version = "v0.0.0-20190728182440-6a916e37a237",
)
go_repository(
name = "com_github_robertkrimen_otto",
importpath = "github.com/robertkrimen/otto",
sum = "h1:kYPjbEN6YPYWWHI6ky1J813KzIq/8+Wg4TO4xU7A/KU=",
version = "v0.0.0-20200922221731-ef014fd054ac",
)
go_repository(
name = "com_github_rogpeppe_fastuuid",
importpath = "github.com/rogpeppe/fastuuid",
sum = "h1:gu+uRPtBe88sKxUCEXRoeCvVG90TJmwhiqRpvdhQFng=",
version = "v0.0.0-20150106093220-6724a57986af",
)
go_repository(
name = "com_github_rogpeppe_go_internal",
importpath = "github.com/rogpeppe/go-internal",
sum = "h1:RR9dF3JtopPvtkroDZuVD7qquD0bnHlKSqaQhgwt8yk=",
version = "v1.3.0",
)
go_repository(
name = "com_github_rs_cors",
importpath = "github.com/rs/cors",
sum = "h1:G9tHG9lebljV9mfp9SNPDL36nCDxmo3zTlAf1YgvzmI=",
version = "v1.6.0",
)
go_repository(
name = "com_github_rs_xid",
importpath = "github.com/rs/xid",
sum = "h1:mhH9Nq+C1fY2l1XIpgxIiUOfNpRBYH1kKcr+qfKgjRc=",
version = "v1.2.1",
)
go_repository(
name = "com_github_rs_zerolog",
importpath = "github.com/rs/zerolog",
sum = "h1:uPRuwkWF4J6fGsJ2R0Gn2jB1EQiav9k3S6CSdygQJXY=",
version = "v1.15.0",
)
go_repository(
name = "com_github_russross_blackfriday",
importpath = "github.com/russross/blackfriday",
sum = "h1:HyvC0ARfnZBqnXwABFeSZHpKvJHJJfPz81GNueLj0oo=",
version = "v1.5.2",
)
go_repository(
name = "com_github_russross_blackfriday_v2",
importpath = "github.com/russross/blackfriday/v2",
sum = "h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=",
version = "v2.0.1",
)
go_repository(
name = "com_github_ruudk_golang_pdf417",
importpath = "github.com/ruudk/golang-pdf417",
sum = "h1:nlG4Wa5+minh3S9LVFtNoY+GVRiudA2e3EVfcCi3RCA=",
version = "v0.0.0-20181029194003-1af4ab5afa58",
)
go_repository(
name = "com_github_rwcarlsen_goexif",
importpath = "github.com/rwcarlsen/goexif",
sum = "h1:CmH9+J6ZSsIjUK3dcGsnCnO41eRBOnY12zwkn5qVwgc=",
version = "v0.0.0-20190401172101-9e8deecbddbd",
)
go_repository(
name = "com_github_ryanuber_columnize",
importpath = "github.com/ryanuber/columnize",
sum = "h1:UFr9zpz4xgTnIE5yIMtWAMngCdZ9p/+q6lTbgelo80M=",
version = "v0.0.0-20160712163229-9b3edd62028f",
)
go_repository(
name = "com_github_samuel_go_zookeeper",
importpath = "github.com/samuel/go-zookeeper",
sum = "h1:p3Vo3i64TCLY7gIfzeQaUJ+kppEO5WQG3cL8iE8tGHU=",
version = "v0.0.0-20190923202752-2cc03de413da",
)
go_repository(
name = "com_github_satori_go_uuid",
importpath = "github.com/satori/go.uuid",
sum = "h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=",
version = "v1.2.0",
)
go_repository(
name = "com_github_sean_seed",
importpath = "github.com/sean-/seed",
sum = "h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I=",
version = "v0.0.0-20170313163322-e2103e2c3529",
)
go_repository(
name = "com_github_sergi_go_diff",
importpath = "github.com/sergi/go-diff",
sum = "h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=",
version = "v1.1.0",
)
go_repository(
name = "com_github_shopify_sarama",
importpath = "github.com/Shopify/sarama",
sum = "h1:9oksLxC6uxVPHPVYUmq6xhr1BOF/hHobWH2UzO67z1s=",
version = "v1.19.0",
)
go_repository(
name = "com_github_shopify_toxiproxy",
importpath = "github.com/Shopify/toxiproxy",
sum = "h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc=",
version = "v2.1.4+incompatible",
)
go_repository(
name = "com_github_shopspring_decimal",
importpath = "github.com/shopspring/decimal",
sum = "h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ=",
version = "v1.2.0",
)
go_repository(
name = "com_github_shurcool_sanitized_anchor_name",
importpath = "github.com/shurcooL/sanitized_anchor_name",
sum = "h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=",
version = "v1.0.0",
)
go_repository(
name = "com_github_sirupsen_logrus",
importpath = "github.com/sirupsen/logrus",
sum = "h1:ShrD1U9pZB12TX0cVy0DtePoCH97K8EtX+mg7ZARUtM=",
version = "v1.7.0",
)
go_repository(
name = "com_github_skia_dev_go2ts",
importpath = "github.com/skia-dev/go2ts",
sum = "h1:AHQe+t5W18HFoTuApMeShiVMu2nBMHdHgLWo2b2y7/U=",
version = "v1.5.0",
)
go_repository(
name = "com_github_skia_dev_go_systemd",
importpath = "github.com/skia-dev/go-systemd",
sum = "h1:KPlmEyLo5r9hnWZq8O0B0Rj4AcRv/tJMqEgS6p0JMeQ=",
version = "v0.0.0-20181025131956-1cc903e82ae4",
)
go_repository(
name = "com_github_skia_dev_google_api_go_client",
importpath = "github.com/skia-dev/google-api-go-client",
sum = "h1:Id5JdSD66PKQQiiVFG1VXDVCT5U3DcDzJSReXRxKRLk=",
version = "v0.10.1-0.20200109184256-16c3d6f408b2",
)
go_repository(
name = "com_github_smartystreets_assertions",
importpath = "github.com/smartystreets/assertions",
sum = "h1:42S6lae5dvLc7BrLu/0ugRtcFVjoJNMC/N3yZFZkDFs=",
version = "v1.2.0",
)
go_repository(
name = "com_github_smartystreets_go_aws_auth",
importpath = "github.com/smartystreets/go-aws-auth",
sum = "h1:hp2CYQUINdZMHdvTdXtPOY2ainKl4IoMcpAXEf2xj3Q=",
version = "v0.0.0-20180515143844-0c1422d1fdb9",
)
go_repository(
name = "com_github_smartystreets_goconvey",
importpath = "github.com/smartystreets/goconvey",
sum = "h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=",
version = "v1.6.4",
)
go_repository(
name = "com_github_smartystreets_gunit",
importpath = "github.com/smartystreets/gunit",
sum = "h1:32x+htJCu3aMswhPw3teoJ+PnWPONqdNgaGs6Qt8ZaU=",
version = "v1.1.3",
)
go_repository(
name = "com_github_snowflakedb_glog",
importpath = "github.com/snowflakedb/glog",
sum = "h1:CGR1hXCOeoZ1aJhCs8qdKJuEu3xoZnxsLcYoh5Bnr+4=",
version = "v0.0.0-20180824191149-f5055e6f21ce",
)
go_repository(
name = "com_github_snowflakedb_gosnowflake",
importpath = "github.com/snowflakedb/gosnowflake",
sum = "h1:/Ep0cXv4/3o+iXQvh+6CDjHCRPk2AM42l/AMR9PM94Q=",
version = "v1.3.5",
)
go_repository(
name = "com_github_soheilhy_cmux",
importpath = "github.com/soheilhy/cmux",
sum = "h1:0HKaf1o97UwFjHH9o5XsHUOF+tqmdA7KEzXLpiyaw0E=",
version = "v0.1.4",
)
go_repository(
name = "com_github_sony_gobreaker",
importpath = "github.com/sony/gobreaker",
sum = "h1:oMnRNZXX5j85zso6xCPRNPtmAycat+WcoKbklScLDgQ=",
version = "v0.4.1",
)
go_repository(
name = "com_github_spaolacci_murmur3",
importpath = "github.com/spaolacci/murmur3",
sum = "h1:qLC7fQah7D6K1B0ujays3HV9gkFtllcxhzImRR7ArPQ=",
version = "v0.0.0-20180118202830-f09979ecbc72",
)
go_repository(
name = "com_github_spf13_afero",
importpath = "github.com/spf13/afero",
sum = "h1:asw9sl74539yqavKaglDM5hFpdJVK0Y5Dr/JOgQ89nQ=",
version = "v1.4.1",
)
go_repository(
name = "com_github_spf13_cast",
importpath = "github.com/spf13/cast",
sum = "h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng=",
version = "v1.3.1",
)
go_repository(
name = "com_github_spf13_cobra",
importpath = "github.com/spf13/cobra",
sum = "h1:KfztREH0tPxJJ+geloSLaAkaPkr4ki2Er5quFV1TDo4=",
version = "v1.1.1",
)
go_repository(
name = "com_github_spf13_jwalterweatherman",
importpath = "github.com/spf13/jwalterweatherman",
sum = "h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=",
version = "v1.1.0",
)
go_repository(
name = "com_github_spf13_pflag",
importpath = "github.com/spf13/pflag",
sum = "h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=",
version = "v1.0.5",
)
go_repository(
name = "com_github_spf13_viper",
importpath = "github.com/spf13/viper",
sum = "h1:pM5oEahlgWv/WnHXpgbKz7iLIxRf65tye2Ci+XFK5sk=",
version = "v1.7.1",
)
go_repository(
name = "com_github_src_d_gcfg",
importpath = "github.com/src-d/gcfg",
sum = "h1:xXbNR5AlLSA315x2UO+fTSSAXCDf+Ar38/6oyGbDKQ4=",
version = "v1.4.0",
)
go_repository(
name = "com_github_stoewer_go_strcase",
importpath = "github.com/stoewer/go-strcase",
sum = "h1:Z2iHWqGXH00XYgqDmNgQbIBxf3wrNq0F3feEy0ainaU=",
version = "v1.2.0",
)
go_repository(
name = "com_github_streadway_amqp",
importpath = "github.com/streadway/amqp",
sum = "h1:WhxRHzgeVGETMlmVfqhRn8RIeeNoPr2Czh33I4Zdccw=",
version = "v0.0.0-20190827072141-edfb9018d271",
)
go_repository(
name = "com_github_streadway_handy",
importpath = "github.com/streadway/handy",
sum = "h1:AhmOdSHeswKHBjhsLs/7+1voOxT+LLrSk/Nxvk35fug=",
version = "v0.0.0-20190108123426-d5acb3125c2a",
)
go_repository(
name = "com_github_stretchr_objx",
importpath = "github.com/stretchr/objx",
sum = "h1:NGXK3lHquSN08v5vWalVI/L8XU9hdzE/G6xsrze47As=",
version = "v0.3.0",
)
go_repository(
name = "com_github_stretchr_testify",
importpath = "github.com/stretchr/testify",
sum = "h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=",
version = "v1.6.1",
)
go_repository(
name = "com_github_subosito_gotenv",
importpath = "github.com/subosito/gotenv",
sum = "h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s=",
version = "v1.2.0",
)
go_repository(
name = "com_github_syndtr_goleveldb",
importpath = "github.com/syndtr/goleveldb",
sum = "h1:fBdIW9lB4Iz0n9khmH8w27SJ3QEJ7+IgjPEwGSZiFdE=",
version = "v1.0.0",
)
go_repository(
name = "com_github_tarm_serial",
importpath = "github.com/tarm/serial",
sum = "h1:UyzmZLoiDWMRywV4DUYb9Fbt8uiOSooupjTq10vpvnU=",
version = "v0.0.0-20180830185346-98f6abe2eb07",
)
go_repository(
name = "com_github_texttheater_golang_levenshtein",
importpath = "github.com/texttheater/golang-levenshtein",
sum = "h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U=",
version = "v1.0.1",
)
go_repository(
name = "com_github_tidwall_pretty",
importpath = "github.com/tidwall/pretty",
sum = "h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4=",
version = "v1.0.0",
)
go_repository(
name = "com_github_tmc_grpc_websocket_proxy",
importpath = "github.com/tmc/grpc-websocket-proxy",
sum = "h1:LnC5Kc/wtumK+WB441p7ynQJzVuNRJiqddSIE3IlSEQ=",
version = "v0.0.0-20190109142713-0ad062ec5ee5",
)
go_repository(
name = "com_github_twitchtv_twirp",
importpath = "github.com/twitchtv/twirp",
sum = "h1:3fNSDoSPyq+fTrifIvGue9XM/tptzuhiGY83rxPVNUg=",
version = "v7.1.0+incompatible",
)
go_repository(
name = "com_github_ugorji_go",
importpath = "github.com/ugorji/go",
sum = "h1:j4s+tAvLfL3bZyefP2SEWmhBzmuIlH/eqNuPdFPgngw=",
version = "v1.1.4",
)
go_repository(
name = "com_github_ugorji_go_codec",
importpath = "github.com/ugorji/go/codec",
sum = "h1:3SVOIvH7Ae1KRYyQWRjXWJEA9sS/c/pjvH++55Gr648=",
version = "v0.0.0-20181204163529-d75b2dcb6bc8",
)
go_repository(
name = "com_github_unrolled_secure",
importpath = "github.com/unrolled/secure",
sum = "h1:JaMvKbe4CRt8oyxVXn+xY+6jlqd7pyJNSVkmsBxxQsM=",
version = "v1.0.8",
)
go_repository(
name = "com_github_urfave_cli",
importpath = "github.com/urfave/cli",
sum = "h1:+mkCCcOFKPnCmVYVcURKps1Xe+3zP90gSYGNfRkjoIY=",
version = "v1.22.1",
)
go_repository(
name = "com_github_urfave_cli_v2",
importpath = "github.com/urfave/cli/v2",
sum = "h1:qph92Y649prgesehzOrQjdWyxFOp/QVM+6imKHad91M=",
version = "v2.3.0",
)
go_repository(
name = "com_github_urfave_negroni",
importpath = "github.com/urfave/negroni",
sum = "h1:kIimOitoypq34K7TG7DUaJ9kq/N4Ofuwi1sjz0KipXc=",
version = "v1.0.0",
)
go_repository(
name = "com_github_valyala_bytebufferpool",
importpath = "github.com/valyala/bytebufferpool",
sum = "h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=",
version = "v1.0.0",
)
go_repository(
name = "com_github_valyala_fasttemplate",
importpath = "github.com/valyala/fasttemplate",
sum = "h1:tY9CJiPnMXf1ERmG2EyK7gNUd+c6RKGD0IfU8WdUSz8=",
version = "v1.0.1",
)
go_repository(
name = "com_github_vektah_gqlparser",
importpath = "github.com/vektah/gqlparser",
sum = "h1:ZsyLGn7/7jDNI+y4SEhI4yAxRChlv15pUHMjijT+e68=",
version = "v1.1.2",
)
go_repository(
name = "com_github_vividcortex_gohistogram",
importpath = "github.com/VividCortex/gohistogram",
sum = "h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE=",
version = "v1.0.0",
)
go_repository(
name = "com_github_willf_bitset",
importpath = "github.com/willf/bitset",
sum = "h1:N7Z7E9UvjW+sGsEl7k/SJrvY2reP1A07MrGuCjIOjRE=",
version = "v1.1.11",
)
go_repository(
name = "com_github_xanzy_go_gitlab",
importpath = "github.com/xanzy/go-gitlab",
sum = "h1:rWtwKTgEnXyNUGrOArN7yyc3THRkpYcKXIXia9abywQ=",
version = "v0.15.0",
)
go_repository(
name = "com_github_xanzy_ssh_agent",
importpath = "github.com/xanzy/ssh-agent",
sum = "h1:TCbipTQL2JiiCprBWx9frJ2eJlCYT00NmctrHxVAr70=",
version = "v0.2.1",
)
go_repository(
name = "com_github_xdg_scram",
importpath = "github.com/xdg/scram",
sum = "h1:u40Z8hqBAAQyv+vATcGgV0YCnDjqSL7/q/JyPhhJSPk=",
version = "v0.0.0-20180814205039-7eeb5667e42c",
)
go_repository(
name = "com_github_xdg_stringprep",
importpath = "github.com/xdg/stringprep",
sum = "h1:d9X0esnoa3dFsV0FG35rAT0RIhYFlPq7MiP+DW89La0=",
version = "v1.0.0",
)
go_repository(
name = "com_github_xiang90_probing",
importpath = "github.com/xiang90/probing",
sum = "h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8=",
version = "v0.0.0-20190116061207-43a291ad63a2",
)
go_repository(
name = "com_github_xlab_treeprint",
importpath = "github.com/xlab/treeprint",
sum = "h1:1CFlNzQhALwjS9mBAUkycX616GzgsuYUOCHA5+HSlXI=",
version = "v0.0.0-20181112141820-a009c3971eca",
)
go_repository(
name = "com_github_xordataexchange_crypt",
importpath = "github.com/xordataexchange/crypt",
sum = "h1:ESFSdwYZvkeru3RtdrYueztKhOBCSAAzS4Gf+k0tEow=",
version = "v0.0.3-0.20170626215501-b2862e3d0a77",
)
go_repository(
name = "com_github_yosuke_furukawa_json5",
importpath = "github.com/yosuke-furukawa/json5",
sum = "h1:0F9mNwTvOuDNH243hoPqvf+dxa5QsKnZzU20uNsh3ZI=",
version = "v0.1.1",
)
go_repository(
name = "com_github_yuin_goldmark",
importpath = "github.com/yuin/goldmark",
sum = "h1:ruQGxdhGHe7FWOJPT0mKs5+pD2Xs1Bm/kdGlHO04FmM=",
version = "v1.2.1",
)
go_repository(
name = "com_github_zeebo_bencode",
importpath = "github.com/zeebo/bencode",
sum = "h1:zgop0Wu1nu4IexAZeCZ5qbsjU4O1vMrfCrVgUjbHVuA=",
version = "v1.0.0",
)
go_repository(
name = "com_github_zenazn_goji",
importpath = "github.com/zenazn/goji",
sum = "h1:RSQQAbXGArQ0dIDEq+PI6WqN6if+5KHu6x2Cx/GXLTQ=",
version = "v0.9.0",
)
go_repository(
name = "com_gitlab_nyarla_go_crypt",
importpath = "gitlab.com/nyarla/go-crypt",
sum = "h1:7gd+rd8P3bqcn/96gOZa3F5dpJr/vEiDQYlNb/y2uNs=",
version = "v0.0.0-20160106005555-d9a5dc2b789b",
)
go_repository(
name = "com_google_cloud_go",
importpath = "cloud.google.com/go",
sum = "h1:ujhG1RejZYi+HYfJNlgBh3j/bVKD8DewM7AkJ5UPyBc=",
version = "v0.70.0",
)
go_repository(
name = "com_google_cloud_go_bigquery",
importpath = "cloud.google.com/go/bigquery",
sum = "h1:PQcPefKFdaIzjQFbiyOgAqyx8q5djaE7x9Sqe712DPA=",
version = "v1.8.0",
)
go_repository(
name = "com_google_cloud_go_bigtable",
importpath = "cloud.google.com/go/bigtable",
sum = "h1:hcHWHVX8sfXW4qgfB0fYVd3i22Od2TK6gxoN7EWsbwY=",
version = "v1.6.0",
)
go_repository(
name = "com_google_cloud_go_datastore",
importpath = "cloud.google.com/go/datastore",
sum = "h1:+T3aKNlZd+MABChjtgQqz5kVysNrFubz5HmljVQG4Zg=",
version = "v1.3.0",
)
go_repository(
name = "com_google_cloud_go_firestore",
importpath = "cloud.google.com/go/firestore",
sum = "h1:QaBSisuvNi9/o+3nCHqUEfduHCPfhEw2jcUofi0n8oY=",
version = "v1.3.0",
)
go_repository(
name = "com_google_cloud_go_logging",
importpath = "cloud.google.com/go/logging",
sum = "h1:mU+6wZyP0llWyobJ+aJFqeEfDzMp95R449wEPPILVX0=",
version = "v1.1.1",
)
go_repository(
name = "com_google_cloud_go_pubsub",
importpath = "cloud.google.com/go/pubsub",
sum = "h1:PpS9dq+D7eSjQ0YAx5fxO33LjqHVpAlXFrpvt/LoVy8=",
version = "v1.8.2",
)
go_repository(
name = "com_google_cloud_go_spanner",
importpath = "cloud.google.com/go/spanner",
sum = "h1:WXuGWhUp5i7MeUMzMrJlodqJvSGtU0Cdw6BdHGgCgVo=",
version = "v1.9.0",
)
go_repository(
name = "com_google_cloud_go_storage",
importpath = "cloud.google.com/go/storage",
sum = "h1:4y3gHptW1EHVtcPAVE0eBBlFuGqEejTTG3KdIE0lUX4=",
version = "v1.12.0",
)
go_repository(
name = "com_larrymyers_go_protoc_gen_twirp_typescript",
importpath = "go.larrymyers.com/protoc-gen-twirp_typescript",
replace = "github.com/skia-dev/protoc-gen-twirp_typescript",
sum = "h1:aVRC547XgCbd6d5FEu+Dliz0nb+VQADHboBzrVK94FI=",
version = "v0.0.0-20200902150932-4a52797b9171",
)
go_repository(
name = "com_shuralyov_dmitri_gpu_mtl",
importpath = "dmitri.shuralyov.com/gpu/mtl",
sum = "h1:VpgP7xuJadIUuKccphEpTJnWhS2jkQyMt6Y7pJCD7fY=",
version = "v0.0.0-20190408044501-666a987793e9",
)
go_repository(
name = "com_sourcegraph_sourcegraph_appdash",
importpath = "sourcegraph.com/sourcegraph/appdash",
sum = "h1:ucqkfpjg9WzSUubAO62csmucvxl4/JeW3F4I4909XkM=",
version = "v0.0.0-20190731080439-ebfcffb1b5c0",
)
go_repository(
name = "in_gopkg_alecthomas_kingpin_v2",
importpath = "gopkg.in/alecthomas/kingpin.v2",
sum = "h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc=",
version = "v2.2.6",
)
go_repository(
name = "in_gopkg_check_v1",
importpath = "gopkg.in/check.v1",
sum = "h1:QRR6H1YWRnHb4Y/HeNFCTJLFVxaq6wH4YuVdsUOr75U=",
version = "v1.0.0-20200902074654-038fdea0a05b",
)
go_repository(
name = "in_gopkg_cheggaaa_pb_v1",
importpath = "gopkg.in/cheggaaa/pb.v1",
sum = "h1:Ev7yu1/f6+d+b3pi5vPdRPc6nNtP1umSfcWiEfRqv6I=",
version = "v1.0.25",
)
go_repository(
name = "in_gopkg_errgo_v2",
importpath = "gopkg.in/errgo.v2",
sum = "h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8=",
version = "v2.1.0",
)
go_repository(
name = "in_gopkg_fsnotify_v1",
importpath = "gopkg.in/fsnotify.v1",
sum = "h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=",
version = "v1.4.7",
)
go_repository(
name = "in_gopkg_gcfg_v1",
importpath = "gopkg.in/gcfg.v1",
sum = "h1:m8OOJ4ccYHnx2f4gQwpno8nAX5OGOh7RLaaz0pj3Ogs=",
version = "v1.2.3",
)
go_repository(
name = "in_gopkg_inconshreveable_log15_v2",
importpath = "gopkg.in/inconshreveable/log15.v2",
sum = "h1:RlWgLqCMMIYYEVcAR5MDsuHlVkaIPDAF+5Dehzg8L5A=",
version = "v2.0.0-20180818164646-67afb5ed74ec",
)
go_repository(
name = "in_gopkg_inf_v0",
importpath = "gopkg.in/inf.v0",
sum = "h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=",
version = "v0.9.1",
)
go_repository(
name = "in_gopkg_ini_v1",
importpath = "gopkg.in/ini.v1",
sum = "h1:duBzk771uxoUuOlyRLkHsygud9+5lrlGjdFBb4mSKDU=",
version = "v1.62.0",
)
go_repository(
name = "in_gopkg_olivere_elastic_v5",
importpath = "gopkg.in/olivere/elastic.v5",
sum = "h1:xFy6qRCGAmo5Wjx96srho9BitLhZl2fcnpuidPwduXM=",
version = "v5.0.86",
)
go_repository(
name = "in_gopkg_resty_v1",
importpath = "gopkg.in/resty.v1",
sum = "h1:CuXP0Pjfw9rOuY6EP+UvtNvt5DSqHpIxILZKT/quCZI=",
version = "v1.12.0",
)
go_repository(
name = "in_gopkg_sourcemap_v1",
importpath = "gopkg.in/sourcemap.v1",
sum = "h1:inv58fC9f9J3TK2Y2R1NPntXEn3/wjWHkonhIUODNTI=",
version = "v1.0.5",
)
go_repository(
name = "in_gopkg_src_d_go_billy_v4",
importpath = "gopkg.in/src-d/go-billy.v4",
sum = "h1:0SQA1pRztfTFx2miS8sA97XvooFeNOmvUenF4o0EcVg=",
version = "v4.3.2",
)
go_repository(
name = "in_gopkg_src_d_go_git_fixtures_v3",
importpath = "gopkg.in/src-d/go-git-fixtures.v3",
sum = "h1:ivZFOIltbce2Mo8IjzUHAFoq/IylO9WHhNOAJK+LsJg=",
version = "v3.5.0",
)
go_repository(
name = "in_gopkg_src_d_go_git_v4",
importpath = "gopkg.in/src-d/go-git.v4",
sum = "h1:SRtFyV8Kxc0UP7aCHcijOMQGPxHSmMOPrzulQWolkYE=",
version = "v4.13.1",
)
go_repository(
name = "in_gopkg_tomb_v1",
importpath = "gopkg.in/tomb.v1",
sum = "h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=",
version = "v1.0.0-20141024135613-dd632973f1e7",
)
go_repository(
name = "in_gopkg_warnings_v0",
importpath = "gopkg.in/warnings.v0",
sum = "h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME=",
version = "v0.1.2",
)
go_repository(
name = "in_gopkg_yaml_v1",
importpath = "gopkg.in/yaml.v1",
sum = "h1:POO/ycCATvegFmVuPpQzZFJ+pGZeX22Ufu6fibxDVjU=",
version = "v1.0.0-20140924161607-9f9df34309c0",
)
go_repository(
name = "in_gopkg_yaml_v2",
importpath = "gopkg.in/yaml.v2",
sum = "h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=",
version = "v2.4.0",
)
go_repository(
name = "in_gopkg_yaml_v3",
importpath = "gopkg.in/yaml.v3",
sum = "h1:tQIYjPdBoyREyB9XMu+nnTclpTYkz2zFM+lzLJFO4gQ=",
version = "v3.0.0-20200615113413-eeeca48fe776",
)
go_repository(
name = "io_etcd_go_bbolt",
importpath = "go.etcd.io/bbolt",
sum = "h1:MUGmc65QhB3pIlaQ5bB4LwqSj6GIonVJXpZiaKNyaKk=",
version = "v1.3.3",
)
go_repository(
name = "io_etcd_go_etcd",
importpath = "go.etcd.io/etcd",
sum = "h1:VcrIfasaLFkyjk6KNlXQSzO+B0fZcnECiDrKJsfxka0=",
version = "v0.0.0-20191023171146-3cf2f69b5738",
)
go_repository(
name = "io_gorm_driver_postgres",
importpath = "gorm.io/driver/postgres",
sum = "h1:raX6ezL/ciUmaYTvOq48jq1GE95aMC0CmxQYbxQ4Ufw=",
version = "v1.0.5",
)
go_repository(
name = "io_gorm_gorm",
importpath = "gorm.io/gorm",
sum = "h1:qa7tC1WcU+DBI/ZKMxvXy1FcrlGsvxlaKufHrT2qQ08=",
version = "v1.20.6",
)
go_repository(
name = "io_k8s_api",
# This module is distributed with pre-generated .pb.go files, so we disable generation of
# go_proto_library targets.
build_file_proto_mode = "disable",
importpath = "k8s.io/api",
sum = "h1:gu5iGF4V6tfVCQ/R+8Hc0h7H1JuEhzyEi9S4R5LM8+Y=",
version = "v0.21.0",
)
go_repository(
name = "io_k8s_apimachinery",
# This module is distributed with pre-generated .pb.go files, so we disable generation of
# go_proto_library targets.
build_file_proto_mode = "disable",
importpath = "k8s.io/apimachinery",
sum = "h1:3Fx+41if+IRavNcKOz09FwEXDBG6ORh6iMsTSelhkMA=",
version = "v0.21.0",
)
go_repository(
name = "io_k8s_cli_runtime",
importpath = "k8s.io/cli-runtime",
sum = "h1:/V2Kkxtf6x5NI2z+Sd/mIrq4FQyQ8jzZAUD6N5RnN7Y=",
version = "v0.21.0",
)
go_repository(
name = "io_k8s_client_go",
importpath = "k8s.io/client-go",
sum = "h1:n0zzzJsAQmJngpC0IhgFcApZyoGXPrDIAD601HD09ag=",
version = "v0.21.0",
)
go_repository(
name = "io_k8s_code_generator",
importpath = "k8s.io/code-generator",
sum = "h1:LGWJOvkbBNpuRBqBRXUjzfvymUh7F/iR2KDpwLnqCM4=",
version = "v0.21.0",
)
go_repository(
name = "io_k8s_component_base",
importpath = "k8s.io/component-base",
sum = "h1:tLLGp4BBjQaCpS/KiuWh7m2xqvAdsxLm4ATxHSe5Zpg=",
version = "v0.21.0",
)
go_repository(
name = "io_k8s_component_helpers",
importpath = "k8s.io/component-helpers",
sum = "h1:SoWLsd63LI5uwofcHVSO4jtlmZEJRycfwNBKU4eAGPQ=",
version = "v0.21.0",
)
go_repository(
name = "io_k8s_gengo",
importpath = "k8s.io/gengo",
sum = "h1:Uusb3oh8XcdzDF/ndlI4ToKTYVlkCSJP39SRY2mfRAw=",
version = "v0.0.0-20201214224949-b6c5ce23f027",
)
go_repository(
name = "io_k8s_klog",
importpath = "k8s.io/klog",
sum = "h1:Pt+yjF5aB1xDSVbau4VsWe+dQNzA0qv1LlXdC2dF6Q8=",
version = "v1.0.0",
)
go_repository(
name = "io_k8s_klog_v2",
importpath = "k8s.io/klog/v2",
sum = "h1:Q3gmuM9hKEjefWFFYF0Mat+YyFJvsUyYuwyNNJ5C9Ts=",
version = "v2.8.0",
)
go_repository(
name = "io_k8s_kube_openapi",
importpath = "k8s.io/kube-openapi",
sum = "h1:vEx13qjvaZ4yfObSSXW7BrMc/KQBBT/Jyee8XtLf4x0=",
version = "v0.0.0-20210305001622-591a79e4bda7",
)
go_repository(
name = "io_k8s_kubectl",
importpath = "k8s.io/kubectl",
sum = "h1:WZXlnG/yjcE4LWO2g6ULjFxtzK6H1TKzsfaBFuVIhNg=",
version = "v0.21.0",
)
go_repository(
name = "io_k8s_metrics",
importpath = "k8s.io/metrics",
sum = "h1:uwS3CgheLKaw3PTpwhjMswnm/PMqeLbdLH88VI7FMQQ=",
version = "v0.21.0",
)
go_repository(
name = "io_k8s_sigs_kustomize_api",
importpath = "sigs.k8s.io/kustomize/api",
sum = "h1:bfCXGXDAbFbb/Jv5AhMj2BB8a5VAJuuQ5/KU69WtDjQ=",
version = "v0.8.5",
)
go_repository(
name = "io_k8s_sigs_kustomize_cmd_config",
importpath = "sigs.k8s.io/kustomize/cmd/config",
sum = "h1:xxvL/np/zYHVuCH1tNFehlyEtSW5oXjoI6ycejiyOwQ=",
version = "v0.9.7",
)
go_repository(
name = "io_k8s_sigs_kustomize_kustomize_v4",
importpath = "sigs.k8s.io/kustomize/kustomize/v4",
sum = "h1:0xQWp03aKWilF6UJrupcA2rCoCn3jejkJ+m/CCI/Fis=",
version = "v4.0.5",
)
go_repository(
name = "io_k8s_sigs_kustomize_kyaml",
importpath = "sigs.k8s.io/kustomize/kyaml",
sum = "h1:dSLgG78KyaxN4HylPXdK+7zB3k7sW6q3IcCmcfKA+aI=",
version = "v0.10.15",
)
go_repository(
name = "io_k8s_sigs_structured_merge_diff_v3",
importpath = "sigs.k8s.io/structured-merge-diff/v3",
sum = "h1:dOmIZBMfhcHS09XZkMyUgkq5trg3/jRyJYFZUiaOp8E=",
version = "v3.0.0",
)
go_repository(
name = "io_k8s_sigs_structured_merge_diff_v4",
importpath = "sigs.k8s.io/structured-merge-diff/v4",
sum = "h1:C4r9BgJ98vrKnnVCjwCSXcWjWe0NKcUQkmzDXZXGwH8=",
version = "v4.1.0",
)
go_repository(
name = "io_k8s_sigs_yaml",
importpath = "sigs.k8s.io/yaml",
sum = "h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q=",
version = "v1.2.0",
)
go_repository(
name = "io_k8s_utils",
importpath = "k8s.io/utils",
sum = "h1:CbnUZsM497iRC5QMVkHwyl8s2tB3g7yaSHkYPkpgelw=",
version = "v0.0.0-20201110183641-67b214c5f920",
)
go_repository(
name = "io_opencensus_go",
importpath = "go.opencensus.io",
sum = "h1:dntmOdLpSpHlVqbW5Eay97DelsZHe+55D+xC6i0dDS0=",
version = "v0.22.5",
)
go_repository(
name = "io_opencensus_go_contrib_exporter_stackdriver",
importpath = "contrib.go.opencensus.io/exporter/stackdriver",
sum = "h1:ksUxwH3OD5sxkjzEqGxNTl+Xjsmu3BnC/300MhSVTSc=",
version = "v0.13.4",
)
go_repository(
name = "io_rsc_binaryregexp",
importpath = "rsc.io/binaryregexp",
sum = "h1:HfqmD5MEmC0zvwBuF187nq9mdnXjXsSivRiXN7SmRkE=",
version = "v0.2.0",
)
go_repository(
name = "io_rsc_quote_v3",
importpath = "rsc.io/quote/v3",
sum = "h1:9JKUTTIUgS6kzR9mK1YuGKv6Nl+DijDNIc0ghT58FaY=",
version = "v3.1.0",
)
go_repository(
name = "io_rsc_sampler",
importpath = "rsc.io/sampler",
sum = "h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4=",
version = "v1.3.0",
)
go_repository(
name = "net_starlark_go",
importpath = "go.starlark.net",
sum = "h1:+FNtrFTmVw0YZGpBGX56XDee331t6JAXeK2bcyhLOOc=",
version = "v0.0.0-20200306205701-8dd3e2ee1dd5",
)
go_repository(
name = "org_chromium_go_gae",
importpath = "go.chromium.org/gae",
sum = "h1:1Ia0zTIyW9IktCoEQOHPqlBsohu5n/Vzqmupj4B4tqg=",
version = "v0.0.0-20190826183307-50a499513efa",
)
go_repository(
name = "org_chromium_go_luci",
# This module is distributed with pre-generated .pb.go files, so we disable generation of
# go_proto_library targets.
build_file_proto_mode = "disable",
importpath = "go.chromium.org/luci",
sum = "h1:NU60UEpWAebRM4M5vF/ZzhyPH+v6kZQF0SIeQ0wMjxs=",
version = "v0.0.0-20201029184154-594d11850ebf",
)
go_repository(
name = "org_go4",
importpath = "go4.org",
sum = "h1:+hE86LblG4AyDgwMCLTE6FOlM9+qjHSYS+rKqxUVdsM=",
version = "v0.0.0-20180809161055-417644f6feb5",
)
go_repository(
name = "org_go4_grpc",
importpath = "grpc.go4.org",
sum = "h1:tmXTu+dfa+d9Evp8NpJdgOy6+rt8/x4yG7qPBrtNfLY=",
version = "v0.0.0-20170609214715-11d0a25b4919",
)
go_repository(
name = "org_golang_google_api",
importpath = "google.golang.org/api",
sum = "h1:k40adF3uR+6x/+hO5Dh4ZFUqFp67vxvbpafFiJxl10A=",
version = "v0.34.0",
)
go_repository(
name = "org_golang_google_appengine",
importpath = "google.golang.org/appengine",
sum = "h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c=",
version = "v1.6.7",
)
go_repository(
name = "org_golang_google_genproto",
importpath = "google.golang.org/genproto",
sum = "h1:2BaavIGjmdbQJl0IFOYI8SBd5WLIjH+tIOMIFf9QENo=",
version = "v0.0.0-20201029200359-8ce4113da6f7",
)
go_repository(
name = "org_golang_google_grpc",
# Uncomment if we ever need to build go_proto_library targets with the gRPC plugin.
# https://github.com/bazelbuild/rules_go/blob/master/go/dependencies.rst#grpc-dependencies
#
# build_file_proto_mode = "disable",
importpath = "google.golang.org/grpc",
sum = "h1:DGeFlSan2f+WEtCERJ4J9GJWk15TxUi8QGagfI87Xyc=",
version = "v1.33.1",
)
go_repository(
name = "org_golang_google_protobuf",
importpath = "google.golang.org/protobuf",
sum = "h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c=",
version = "v1.25.0",
)
go_repository(
name = "org_golang_x_build",
importpath = "golang.org/x/build",
sum = "h1:jjNoDZTS0vmbqBhqD5MPXauZW+kcGyflfDDFBNCPSVI=",
version = "v0.0.0-20191031202223-0706ea4fce0c",
)
go_repository(
name = "org_golang_x_crypto",
importpath = "golang.org/x/crypto",
sum = "h1:/ZScEX8SfEmUGRHs0gxpqteO5nfNW6axyZbBdw9A12g=",
version = "v0.0.0-20210220033148-5ea612d1eb83",
)
go_repository(
name = "org_golang_x_exp",
importpath = "golang.org/x/exp",
sum = "h1:QE6XYQK6naiK1EPAe1g/ILLxN5RBoH5xkJk3CqlMI/Y=",
version = "v0.0.0-20200224162631-6cc2880d07d6",
)
go_repository(
name = "org_golang_x_image",
importpath = "golang.org/x/image",
sum = "h1:hVwzHzIUGRjiF7EcUjqNxk3NCfkPxbDKRdnNE1Rpg0U=",
version = "v0.0.0-20191009234506-e7c1f5e7dbb8",
)
go_repository(
name = "org_golang_x_lint",
importpath = "golang.org/x/lint",
sum = "h1:Wh+f8QHJXR411sJR8/vRBTZ7YapZaRvUcLFFJhusH0k=",
version = "v0.0.0-20200302205851-738671d3881b",
)
go_repository(
name = "org_golang_x_mobile",
importpath = "golang.org/x/mobile",
sum = "h1:CrJ8+QyIm2tcw/zt9Rp/vGFsey+jndL1y5EnFwzgGOg=",
version = "v0.0.0-20191031020345-0945064e013a",
)
go_repository(
name = "org_golang_x_mod",
importpath = "golang.org/x/mod",
sum = "h1:Kvvh58BN8Y9/lBi7hTekvtMpm07eUZ0ck5pRHpsMWrY=",
version = "v0.4.1",
)
go_repository(
name = "org_golang_x_net",
importpath = "golang.org/x/net",
sum = "h1:OgUuv8lsRpBibGNbSizVwKWlysjaNzmC9gYMhPVfqFM=",
version = "v0.0.0-20210224082022-3d97a244fca7",
)
go_repository(
name = "org_golang_x_oauth2",
importpath = "golang.org/x/oauth2",
sum = "h1:ld7aEMNHoBnnDAX15v1T6z31v8HwR2A9FYOuAhWqkwc=",
version = "v0.0.0-20200902213428-5d25da1a8d43",
)
go_repository(
name = "org_golang_x_perf",
importpath = "golang.org/x/perf",
sum = "h1:xYq6+9AtI+xP3M4r0N1hCkHrInHDBohhquRgx9Kk6gI=",
version = "v0.0.0-20180704124530-6e6d33e29852",
)
go_repository(
name = "org_golang_x_sync",
importpath = "golang.org/x/sync",
sum = "h1:SQFwaSi55rU7vdNs9Yr0Z324VNlrF+0wMqRXT4St8ck=",
version = "v0.0.0-20201020160332-67f06af15bc9",
)
go_repository(
name = "org_golang_x_sys",
importpath = "golang.org/x/sys",
sum = "h1:8qxJSnu+7dRq6upnbntrmriWByIakBuct5OM/MdQC1M=",
version = "v0.0.0-20210225134936-a50acf3fe073",
)
go_repository(
name = "org_golang_x_term",
importpath = "golang.org/x/term",
sum = "h1:SZxvLBoTP5yHO3Frd4z4vrF+DBX9vMVanchswa69toE=",
version = "v0.0.0-20210220032956-6a3ed077a48d",
)
go_repository(
name = "org_golang_x_text",
importpath = "golang.org/x/text",
sum = "h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc=",
version = "v0.3.4",
)
go_repository(
name = "org_golang_x_time",
importpath = "golang.org/x/time",
sum = "h1:O8mE0/t419eoIwhTFpKVkHiTs/Igowgfkj25AcZrtiE=",
version = "v0.0.0-20210220033141-f8bda1e9f3ba",
)
go_repository(
name = "org_golang_x_tools",
importpath = "golang.org/x/tools",
sum = "h1:po9/4sTYwZU9lPhi1tOrb4hCv3qrhiQ77LZfGa2OjwY=",
version = "v0.1.0",
)
go_repository(
name = "org_golang_x_xerrors",
importpath = "golang.org/x/xerrors",
sum = "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=",
version = "v0.0.0-20200804184101-5ec99f83aff1",
)
go_repository(
name = "org_modernc_b",
importpath = "modernc.org/b",
sum = "h1:vpvqeyp17ddcQWF29Czawql4lDdABCDRbXRAS4+aF2o=",
version = "v1.0.0",
)
go_repository(
name = "org_modernc_db",
importpath = "modernc.org/db",
sum = "h1:2c6NdCfaLnshSvY7OU09cyAY0gYXUZj4lmg5ItHyucg=",
version = "v1.0.0",
)
go_repository(
name = "org_modernc_file",
importpath = "modernc.org/file",
sum = "h1:9/PdvjVxd5+LcWUQIfapAWRGOkDLK90rloa8s/au06A=",
version = "v1.0.0",
)
go_repository(
name = "org_modernc_fileutil",
importpath = "modernc.org/fileutil",
sum = "h1:Z1AFLZwl6BO8A5NldQg/xTSjGLetp+1Ubvl4alfGx8w=",
version = "v1.0.0",
)
go_repository(
name = "org_modernc_golex",
importpath = "modernc.org/golex",
sum = "h1:wWpDlbK8ejRfSyi0frMyhilD3JBvtcx2AdGDnU+JtsE=",
version = "v1.0.0",
)
go_repository(
name = "org_modernc_internal",
importpath = "modernc.org/internal",
sum = "h1:XMDsFDcBDsibbBnHB2xzljZ+B1yrOVLEFkKL2u15Glw=",
version = "v1.0.0",
)
go_repository(
name = "org_modernc_lldb",
importpath = "modernc.org/lldb",
sum = "h1:6vjDJxQEfhlOLwl4bhpwIz00uyFK4EmSYcbwqwbynsc=",
version = "v1.0.0",
)
go_repository(
name = "org_modernc_mathutil",
importpath = "modernc.org/mathutil",
sum = "h1:93vKjrJopTPrtTNpZ8XIovER7iCIH1QU7wNbOQXC60I=",
version = "v1.0.0",
)
go_repository(
name = "org_modernc_ql",
importpath = "modernc.org/ql",
sum = "h1:bIQ/trWNVjQPlinI6jdOQsi195SIturGo3mp5hsDqVU=",
version = "v1.0.0",
)
go_repository(
name = "org_modernc_sortutil",
importpath = "modernc.org/sortutil",
sum = "h1:oP3U4uM+NT/qBQcbg/K2iqAX0Nx7B1b6YZtq3Gk/PjM=",
version = "v1.1.0",
)
go_repository(
name = "org_modernc_strutil",
importpath = "modernc.org/strutil",
sum = "h1:+1/yCzZxY2pZwwrsbH+4T7BQMoLQ9QiBshRC9eicYsc=",
version = "v1.1.0",
)
go_repository(
name = "org_modernc_zappy",
importpath = "modernc.org/zappy",
sum = "h1:dPVaP+3ueIUv4guk8PuZ2wiUGcJ1WUVvIheeSSTD0yk=",
version = "v1.0.0",
)
go_repository(
name = "org_mongodb_go_mongo_driver",
importpath = "go.mongodb.org/mongo-driver",
sum = "h1:jxcFYjlkl8xaERsgLo+RNquI0epW6zuy/ZRQs6jnrFA=",
version = "v1.1.2",
)
go_repository(
name = "org_uber_go_atomic",
importpath = "go.uber.org/atomic",
sum = "h1:Ezj3JGmsOnG1MoRWQkPBsKLe9DwWD9QeXzTRzzldNVk=",
version = "v1.6.0",
)
go_repository(
name = "org_uber_go_multierr",
importpath = "go.uber.org/multierr",
sum = "h1:KCa4XfM8CWFCpxXRGok+Q0SS/0XBhMDbHHGABQLvD2A=",
version = "v1.5.0",
)
go_repository(
name = "org_uber_go_tools",
importpath = "go.uber.org/tools",
sum = "h1:0mgffUl7nfd+FpvXMVz4IDEaUSmT1ysygQC7qYo7sG4=",
version = "v0.0.0-20190618225709-2cfd321de3ee",
)
go_repository(
name = "org_uber_go_zap",
importpath = "go.uber.org/zap",
sum = "h1:nR6NoDBgAf67s68NhaXbsojM+2gxp3S1hWkHDl27pVU=",
version = "v1.13.0",
)
go_repository(
name = "tools_gotest_v3",
importpath = "gotest.tools/v3",
sum = "h1:4AuOwCGf4lLR9u3YOe2awrHygurzhO/HeQ6laiA6Sx0=",
version = "v3.0.3",
) | 5,353,506 |
def get_path_url(path: PathOrString) -> str:
"""Covert local path to URL
Arguments:
path {str} -- path to file
Returns:
str -- URL to file
"""
path_obj, path_str = get_path_forms(path)
if is_supported_scheme(path_str):
return build_request(path_str)
return path_obj.absolute().as_uri() | 5,353,507 |
def process_keyqueue(codes, more_available):
"""
codes -- list of key codes
more_available -- if True then raise MoreInputRequired when in the
middle of a character sequence (escape/utf8/wide) and caller
will attempt to send more key codes on the next call.
returns (list of input, list of remaining key codes).
"""
code = codes[0]
if code >= 32 and code <= 126:
key = chr(code)
return [key], codes[1:]
if code in _keyconv:
return [_keyconv[code]], codes[1:]
if code >0 and code <27:
return ["ctrl %s" % chr(ord('a')+code-1)], codes[1:]
if code >27 and code <32:
return ["ctrl %s" % chr(ord('A')+code-1)], codes[1:]
em = str_util.get_byte_encoding()
if (em == 'wide' and code < 256 and
within_double_byte(chr(code),0,0)):
if not codes[1:]:
if more_available:
raise MoreInputRequired()
if codes[1:] and codes[1] < 256:
db = chr(code)+chr(codes[1])
if within_double_byte(db, 0, 1):
return [db], codes[2:]
if em == 'utf8' and code>127 and code<256:
if code & 0xe0 == 0xc0: # 2-byte form
need_more = 1
elif code & 0xf0 == 0xe0: # 3-byte form
need_more = 2
elif code & 0xf8 == 0xf0: # 4-byte form
need_more = 3
else:
return ["<%d>"%code], codes[1:]
for i in range(need_more):
if len(codes)-1 <= i:
if more_available:
raise MoreInputRequired()
else:
return ["<%d>"%code], codes[1:]
k = codes[i+1]
if k>256 or k&0xc0 != 0x80:
return ["<%d>"%code], codes[1:]
s = bytes3(codes[:need_more+1])
assert isinstance(s, bytes)
try:
return [s.decode("utf-8")], codes[need_more+1:]
except UnicodeDecodeError:
return ["<%d>"%code], codes[1:]
if code >127 and code <256:
key = chr(code)
return [key], codes[1:]
if code != 27:
return ["<%d>"%code], codes[1:]
result = input_trie.get(codes[1:], more_available)
if result is not None:
result, remaining_codes = result
return [result], remaining_codes
if codes[1:]:
# Meta keys -- ESC+Key form
run, remaining_codes = process_keyqueue(codes[1:],
more_available)
if urwid.util.is_mouse_event(run[0]):
return ['esc'] + run, remaining_codes
if run[0] == "esc" or run[0].find("meta ") >= 0:
return ['esc']+run, remaining_codes
return ['meta '+run[0]]+run[1:], remaining_codes
return ['esc'], codes[1:] | 5,353,508 |
def allowed_transitions(constraint_type: str, labels: Dict[int, str]) -> List[Tuple[int, int]]:
"""
Given labels and a constraint type, returns the allowed transitions. It will
additionally include transitions for the start and end states, which are used
by the conditional random field.
# Parameters
constraint_type : `str`, required
Indicates which constraint to apply. Current choices are
"BIO", "IOB1", "BIOUL", and "BMES".
labels : `Dict[int, str]`, required
A mapping {label_id -> label}.
# Returns
`List[Tuple[int, int]]`
The allowed transitions (from_label_id, to_label_id).
"""
num_labels = len(labels)
start_tag = num_labels
end_tag = num_labels + 1
labels_with_boundaries = list(labels.items()) + [(start_tag, "START"), (end_tag, "END")]
allowed = []
for from_label_index, from_label in labels_with_boundaries:
if from_label in ("START", "END"):
from_tag = from_label
from_entity = ""
else:
from_tag = from_label[0]
from_entity = from_label[1:]
for to_label_index, to_label in labels_with_boundaries:
if to_label in ("START", "END"):
to_tag = to_label
to_entity = ""
else:
to_tag = to_label[0]
to_entity = to_label[1:]
if is_transition_allowed(constraint_type, from_tag, from_entity, to_tag, to_entity):
allowed.append((from_label_index, to_label_index))
return allowed | 5,353,509 |
def get_args(**kwargs):
"""
"""
cfg = deepcopy(kwargs)
parser = argparse.ArgumentParser(
description="Train the Model on CINC2019",
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
# parser.add_argument(
# "-l", "--learning-rate",
# metavar="LR", type=float, nargs="?", default=0.001,
# help="Learning rate",
# dest="learning_rate")
parser.add_argument(
"-b", "--batch-size",
type=int, default=128,
help="the batch size for training",
dest="batch_size")
parser.add_argument(
"-m", "--model-name",
type=str, default="crnn",
help="name of the model to train, `cnn` or `crnn`",
dest="model_name")
parser.add_argument(
"-c", "--cnn-name",
type=str, default="multi_scopic",
help="choice of cnn feature extractor",
dest="cnn_name")
parser.add_argument(
"-r", "--rnn-name",
type=str, default="lstm",
help="choice of rnn structures",
dest="rnn_name")
parser.add_argument(
"-a", "--attn-name",
type=str, default="se",
help="choice of attention block",
dest="attn_name")
parser.add_argument(
"--keep-checkpoint-max", type=int, default=50,
help="maximum number of checkpoints to keep. If set 0, all checkpoints will be kept",
dest="keep_checkpoint_max")
parser.add_argument(
"--optimizer", type=str, default="adam",
help="training optimizer",
dest="train_optimizer")
parser.add_argument(
"--debug", type=str2bool, default=False,
help="train with more debugging information",
dest="debug")
args = vars(parser.parse_args())
cfg.update(args)
return CFG(cfg) | 5,353,510 |
def initialize(cfg, args):
""" purpose: load information and add to config """
if cfg.sessionId in (None, '') or cfg.useSessionTimestamp is True:
cfg.useSessionTimestamp = True
cfg.sessionId = utils.dateStr30(time.localtime())
else:
cfg.useSessionTimestamp = False
# MERGE WITH PARAMS
if args.runs != '' and args.scans != '':
# use the run and scan numbers passed in as parameters
cfg.runNum = [int(x) for x in args.runs.split(',')]
cfg.scanNum = [int(x) for x in args.scans.split(',')]
else: # when you're not specifying on the command line it's already in a list
cfg.runNum = [int(x) for x in cfg.runNum]
cfg.scanNum = [int(x) for x in cfg.scanNum]
# GET DICOM DIRECTORY
if cfg.buildImgPath:
imgDirDate = datetime.now()
dateStr = cfg.date.lower()
if dateStr != 'now' and dateStr != 'today':
try:
imgDirDate = parser.parse(cfg.date)
except ValueError as err:
raise RequestError('Unable to parse date string {} {}'.format(cfg.date, err))
datestr = imgDirDate.strftime("%Y%m%d")
imgDirName = "{}.{}.{}".format(datestr, cfg.subjectName, cfg.subjectName)
cfg.dicomDir = os.path.join(cfg.local.dicomDir,imgDirName)
else:
cfg.dicomDir = cfg.local.dicomDir # then the whole path was supplied
########
cfg.bids_id = 'sub-{0:03d}'.format(cfg.subjectNum)
cfg.ses_id = 'ses-{0:02d}'.format(cfg.subjectDay)
# specify local directories
cfg.local.codeDir = os.path.join(cfg.local.rtcloudDir, 'projects', cfg.projectName)
cfg.local.dataDir = os.path.join(cfg.local.codeDir, 'data')
cfg.local.subject_full_day_path = os.path.join(cfg.local.dataDir, cfg.bids_id, cfg.ses_id)
cfg.local.subject_reg_dir = os.path.join(cfg.local.subject_full_day_path, 'registration_outputs')
cfg.local.wf_dir = os.path.join(cfg.local.dataDir, cfg.bids_id, 'ses-01', 'registration')
cfg.local.maskDir = os.path.join(cfg.local.codeDir, 'ROI')
cfg.subject_reg_dir = cfg.local.subject_reg_dir
cfg.wf_dir = cfg.local.wf_dir
cfg.n_masks = len(cfg.MASK)
if args.filesremote: # here we will need to specify separate paths for processing
cfg.server.codeDir = os.path.join(cfg.server.rtcloudDir, 'projects', cfg.projectName)
cfg.server.dataDir = os.path.join(cfg.server.codeDir, cfg.server.serverDataDir)
cfg.server.subject_full_day_path = os.path.join(cfg.server.dataDir, cfg.bids_id, cfg.ses_id)
cfg.server.subject_reg_dir = os.path.join(cfg.server.subject_full_day_path, 'registration_outputs')
cfg.server.wf_dir = os.path.join(cfg.server.dataDir, cfg.bids_id, 'ses-01', 'registration')
cfg.server.maskDir = os.path.join(cfg.server.codeDir, 'ROI')
cfg.subject_reg_dir = cfg.server.subject_reg_dir
cfg.wf_dir = cfg.server.wf_dir
cfg.ref_BOLD = os.path.join(cfg.wf_dir,'ref_image.nii.gz')
cfg.MNI_ref_filename = os.path.join(cfg.wf_dir, cfg.MNI_ref_BOLD)
cfg.T1_to_BOLD = os.path.join(cfg.wf_dir, 'affine.txt')
cfg.MNI_to_T1 = os.path.join(cfg.wf_dir, 'ants_t1_to_mniInverseComposite.h5')
cfg.MASK_transformed = [''] * cfg.n_masks
cfg.local_MASK_transformed = [''] * cfg.n_masks
for m in np.arange(cfg.n_masks):
mask_name = cfg.MASK[m].split('.')[0] + '_space-native.nii.gz'
cfg.MASK_transformed[m] = os.path.join(cfg.subject_reg_dir, mask_name)
cfg.local_MASK_transformed[m] = os.path.join(cfg.local.subject_reg_dir, mask_name)
# get conversion to flip dicom to nifti files
cfg.axesTransform = getTransform(('L', 'A', 'S'),('P', 'L', 'S'))
return cfg | 5,353,511 |
def modulated_count_dist(count_dist, mult_gain, add_gain, samples):
"""
Generate distribution samples from the modulated count process with additive and multiplicate gains.
.. math::
P_{mod}(n|\lambda) = \int P_{count}(n|G_{mul}\lambda + G_{add}) P(G_{mu]}, G_{add}) \mathrm{d}G_{mul} \mathrm{d}G_{add},
where :math:`p(y \mid f)` is the likelihood.
References:
[1] `Dethroning the Fano Factor: A Flexible, Model-Based Approach to Partitioning Neural Variability`,
Adam S. Charles, Mijung Park, J. PatrickWeller, Gregory D. Horwitz, Jonathan W. Pillow (2018)
"""
raise NotImplementedError | 5,353,512 |
def simple_linear(parent = None, element_count=16, element_pitch=7e-3):
"""1D line of elements, starting at xyz=0, along y, with given element_pitch
Parameters
----------
parent : handybeam.world.World
the world to give to this array as parent
element_count : int
count of elements.
element_pitch : float
distance between elements
"""
this = TxArray(parent)
this.name = 'a line of elements, starting at xyz=0, along y, spaced by {:0.1f}mm'.format(element_pitch*1e3)
this.tx_array_element_descriptor = np.zeros((element_count, 16), dtype=np.float32)
half_length = (element_count*element_pitch)/2
for array_element_iy in range(element_count):
# add an element at that indexed location
element_idx = array_element_iy
loc_x = 0
loc_y = (array_element_iy-(element_pitch/2)+0.5) * element_pitch - half_length
this.tx_array_element_descriptor[element_idx, :] = \
this.generate_tx_array_element(x=loc_x, y=loc_y, amplitude_ratio_setting=1.0)
return this | 5,353,513 |
def for_all_methods(decorator, exclude_methods=None):
"""
Class decorator
"""
if exclude_methods is None:
exclude_methods = []
def decorate(cls):
for attr in cls.__dict__:
if (
callable(getattr(cls, attr))
and attr not in DO_NOT_DECORATE_METHODS
and attr not in exclude_methods
):
setattr(cls, attr, decorator(getattr(cls, attr)))
return cls
return decorate | 5,353,514 |
def download_if_not_there(file, url, path, force=False, local_file=None):
"""Downloads a file from the given url if and only if the file doesn't
already exist in the provided path or ``force=True``
Args:
file (str): File name
url (str): Url where the file can be found (without the filename)
path (str): Path to the local folder where the file should be stored
force (bool, optional): Force the file download (useful if you suspect
that the file might have changed)
file (str): File name for the local file (defaults to ``file``)
"""
# Path to local file
abs_path = os.path.abspath(path)
local_file = local_file or file
local_file_path = os.path.join(abs_path, local_file)
# Create dir if it doesn't exist
if not os.path.isdir(abs_path):
os.mkdir(abs_path)
# Download if needed
if force or not os.path.isfile(local_file_path):
print(f"Downloading file {local_file} to folder {abs_path} from {url}")
file_url = urljoin(url, file)
return urlretrieve(file_url, local_file_path)
return None | 5,353,515 |
def test_atomic_g_month_min_exclusive_nistxml_sv_iv_atomic_g_month_min_exclusive_1_3(mode, save_output, output_format):
"""
Type atomic/gMonth is restricted by facet minExclusive with value
--01.
"""
assert_bindings(
schema="nistData/atomic/gMonth/Schema+Instance/NISTSchema-SV-IV-atomic-gMonth-minExclusive-1.xsd",
instance="nistData/atomic/gMonth/Schema+Instance/NISTXML-SV-IV-atomic-gMonth-minExclusive-1-3.xml",
class_name="NistschemaSvIvAtomicGMonthMinExclusive1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
) | 5,353,516 |
def _kuramoto_sivashinsky_old(dimensions, system_size, dt, time_steps):
""" This function INCORRECTLY simulates the Kuramoto–Sivashinsky PDE
It is kept here only for historical reasons.
DO NOT USE UNLESS YOU WANT INCORRECT RESULTS
Even though it doesn't use the RK4 algorithm, it is bundled with the other
simulation functions in simulate_trajectory() for consistency.
Reference for the numerical integration:
"fourth order time stepping for stiff pde-kassam trefethen 2005" at
https://people.maths.ox.ac.uk/trefethen/publication/PDF/2005_111.pdf
Python implementation at: https://github.com/E-Renshaw/kuramoto-sivashinsky
Args:
dimensions (int): nr. of dimensions of the system grid
system_size (int): physical size of the system
dt (float): time step size
time_steps (int): nr. of time steps to simulate
Returns:
(np.ndarray): simulated trajectory of shape (time_steps, dimensions)
"""
n = dimensions # No. of grid points in real space (and hence dimensionality of the output)
size = system_size #
# Define initial conditions and Fourier Transform them
x = np.transpose(np.conj(np.arange(1, n + 1))) / n
u = np.cos(2 * np.pi * x / size) * (1 + np.sin(2 * np.pi * x / size))
v = np.fft.fft(u)
h = dt # time step
nmax = time_steps # No. of time steps to simulate
# Wave numbers
k = np.transpose(
np.conj(np.concatenate((np.arange(0, n / 2), np.array([0]), np.arange(-n / 2 + 1, 0))))) * 2 * np.pi / size
# Just copied from the paper, it works
L = k ** 2 - k ** 4
E = np.exp(h * L)
E_2 = np.exp(h * L / 2)
M = 16
# M = (size * np.pi) //2
r = np.exp(1j * np.pi * (np.arange(1, M + 1) - 0.5) / M)
LR = h * np.transpose(np.repeat([L], M, axis=0)) + np.repeat([r], n, axis=0)
Q = h * np.real(np.mean((np.exp(LR / 2) - 1) / LR, axis=1))
f1 = h * np.real(np.mean((-4 - LR + np.exp(LR) * (4 - 3 * LR + LR ** 2)) / LR ** 3, axis=1))
f2 = h * np.real(np.mean((2 + LR + np.exp(LR) * (-2 + LR)) / LR ** 3, axis=1))
f3 = h * np.real(np.mean((-4 - 3 * LR - LR ** 2 + np.exp(LR) * (4 - LR)) / LR ** 3, axis=1))
uu = [np.array(u)] # List of Real space solutions, later converted to a np.array
g = -0.5j * k
# See paper for details
for n in range(1, nmax + 1):
Nv = g * np.fft.fft(np.real(np.fft.ifft(v)) ** 2)
a = E_2 * v + Q * Nv
Na = g * np.fft.fft(np.real(np.fft.ifft(a)) ** 2)
b = E_2 * v + Q * Na
Nb = g * np.fft.fft(np.real(np.fft.ifft(b)) ** 2)
c = E_2 * a + Q * (2 * Nb - Nv)
Nc = g * np.fft.fft(np.real(np.fft.ifft(c)) ** 2)
v = E * v + Nv * f1 + 2 * (Na + Nb) * f2 + Nc * f3
u = np.real(np.fft.ifft(v))
uu.append(np.array(u))
uu = np.array(uu)
# print("PDE simulation finished")
return uu | 5,353,517 |
def get_geneids_of_user_entity_ids(cursor, unification_table, user_entity_ids):
"""
Get the Entrez Gene IDs of targets using their BIANA user entity ids
"""
query_geneid = ("""SELECT G.value, G.type
FROM externalEntityGeneID G, {} U
WHERE U.externalEntityID = G.externalEntityID AND U.userEntityID = %s
""".format(unification_table))
print('\nRETRIEVING GENE IDS ASSOCIATED TO USER ENTITY IDS...\n')
ueid_to_geneid_to_types = {}
for ueid in user_entity_ids:
cursor.execute(query_geneid, (ueid,))
for row in cursor:
geneid, geneid_type = row
#print(ueid, geneid, geneid_type)
ueid_to_geneid_to_types.setdefault(ueid, {})
ueid_to_geneid_to_types[ueid].setdefault(str(geneid), set()).add(geneid_type.lower())
print('NUMBER OF USER ENTITIES ASSOCIATED WITH GENE IDS: {}'.format(len(ueid_to_geneid_to_types)))
return ueid_to_geneid_to_types | 5,353,518 |
def create_table(dataset_id, table_id, schema_list, client_bq):
"""
Create a table if it does not exist, form a schema
:param dataset_id:
:param table_id:
:param schema_list: Columns definitions separate by "," character,
A column definition is NAME: TYPE
:param client_bq:
:return:
"""
dataset_ref = client_bq.dataset(dataset_id)
table_ref = dataset_ref.table(table_id)
schema = get_schema_from_list(schema_list)
table = bigquery.Table(table_ref, schema=schema)
try:
client_bq.create_table(table)
except exceptions.Conflict:
pass | 5,353,519 |
def alpha_015(enddate, index='all'):
"""
Inputs:
enddate: 必选参数,计算哪一天的因子
index: 默认参数,股票指数,默认为所有股票'all'
Outputs:
Series:index 为成分股代码,values为对应的因子值
公式:
(-1\*sum(rank(correlation(rank(high), rank(volume), 3)), 3))
"""
enddate = to_date_str(enddate)
func_name = sys._getframe().f_code.co_name
return JQDataClient.instance().get_alpha_101(**locals()) | 5,353,520 |
def query_process( pheader, pworkers, pworker, qry_template, tqueue ):
"""
A sub-process which constructs and executes queries in a loop until all rows from file are exhausted
"""
if DEBUG:
print("Init Separate Process: ",pworker)
conn = get_connection(thread_id=pworker)
t_start = time.time()
for qindex in range(args.iterations):
#qry_string = qry_template % ( STATE[random.randint(0,len(STATE)-1)] )
qry_string = qry_template
conn.execute(qry_string)
if DEBUG:
if qindex % PROGRESS_COUNT == 0:
print("Queried ",qindex,"...")
t_end = time.time()
avg_latency = 1000*(t_end-t_start) / args.iterations
duration = round(t_end - t_start,4)
qry_rate = args.iterations / duration
# push duration result for this thread to queue
tqueue.put( duration )
prline = args.database + "," + pheader + "," + str(len(hosts)) + "," + \
str(pworkers) + "," + str(round(avg_latency,5)) + "," + str(round(qry_rate,2))
print(prline)
# close connection at end of run
conn.close() | 5,353,521 |
def get_path(root, path):
"""
Shortcut for ``os.path.join(os.path.dirname(root), path)``.
:param root: root path
:param path: path to file or folder
:returns: path to file or folder relative to root
"""
return os.path.join(os.path.dirname(root), path) | 5,353,522 |
def int_array_to_hex(iv_array):
"""
Converts an integer array to a hex string.
"""
iv_hex = ''
for b in iv_array:
iv_hex += '{:02x}'.format(b)
return iv_hex | 5,353,523 |
def minimal_sphinx_app(
configuration=None, sourcedir=None, with_builder=False, raise_on_warning=False
):
"""Create a minimal Sphinx environment; loading sphinx roles, directives, etc."""
class MockSphinx(Sphinx):
"""Minimal sphinx init to load roles and directives."""
def __init__(self, confoverrides=None, srcdir=None, raise_on_warning=False):
self.extensions = {}
self.registry = SphinxComponentRegistry()
self.html_themes = {}
self.events = EventManager(self)
# logging
self.verbosity = 0
self._warncount = 0
self.warningiserror = raise_on_warning
self._status = StringIO()
self._warning = StringIO()
logging.setup(self, self._status, self._warning)
self.tags = Tags([])
self.config = Config({}, confoverrides or {})
self.config.pre_init_values()
self._init_i18n()
for extension in builtin_extensions:
self.registry.load_extension(self, extension)
# fresh env
self.doctreedir = ""
self.srcdir = srcdir
self.confdir = None
self.outdir = ""
self.project = Project(srcdir=srcdir, source_suffix={".md": "markdown"})
self.project.docnames = {"mock_docname"}
self.env = BuildEnvironment()
self.env.setup(self)
self.env.temp_data["docname"] = "mock_docname"
# Ignore type checkers because we disrespect superclass typing here
self.builder = None # type: ignore[assignment]
if not with_builder:
return
# this code is only required for more complex parsing with extensions
for extension in self.config.extensions:
self.setup_extension(extension)
buildername = "dummy"
self.preload_builder(buildername)
self.config.init_values()
self.events.emit("config-inited", self.config)
with tempfile.TemporaryDirectory() as tempdir:
# creating a builder attempts to make the doctreedir
self.doctreedir = tempdir
self.builder = self.create_builder(buildername)
self.doctreedir = ""
app = MockSphinx(
confoverrides=configuration, srcdir=sourcedir, raise_on_warning=raise_on_warning
)
return app | 5,353,524 |
def calc_Mo_from_M(M, C=C):
"""
Calculate seismic moment (Mo) from
moment magnitude (M) given a scaling law.
C is a scaling constant; should be set at 6,
but is defined elsewhere in the module so
that all functions using it share a value.
"""
term1 = 3/2. * C * (np.log(2) + np.log(5) )
term2 = 3/2. * M * (np.log(2) + np.log(5) )
Mo = np.exp( term1 + term2)
return Mo | 5,353,525 |
def main():
"""
stdin: tsv
stdout: jsonl
"""
parser = argparse.ArgumentParser()
parser.add_argument('--pas-dir', required=True, type=str,
help='path to directory where tagged knp files are located')
parser.add_argument('--skipped-file', required=True, type=str,
help='path to a file in which skipped knp files are listed')
args = parser.parse_args()
skipped = []
did2topic = {}
did2sentences = defaultdict(list)
for line in tqdm(sys.stdin.readlines()):
sid, topic, sent = line.strip().split('\t')
did = '-'.join(sid.split('-')[:-1])
did2topic[did] = topic
did2sentences[did].append(sent)
for did, sentences in did2sentences.items():
output_obj = {
'id': did,
'user_id': '',
'category': did2topic[did],
'sub_category': did2topic[did],
'company': '',
'branch': '',
'product': '',
'text': ''.join(sentences),
'created_at': '',
'sentences': [
sentences
],
'fuman_split_knp': []
}
tagged_knp_file = Path(args.pas_dir) / f'{did}.knp'
if tagged_knp_file.exists():
with tagged_knp_file.open() as f:
buff = []
for knp_line in f:
buff.append(knp_line)
if knp_line.rstrip() == 'EOS':
output_obj['fuman_split_knp'].append(buff)
buff = []
else:
skipped.append(tagged_knp_file)
logger.info(f'skipped: {tagged_knp_file}')
print(json.dumps(output_obj, ensure_ascii=False))
with open(args.skipped_file, mode='wt') as f:
for path in skipped:
f.write(path.name + '\n') | 5,353,526 |
def resource_path(*args):
""" Get absolute path to resource, works for dev and for PyInstaller """
base_path = getattr(sys, '_MEIPASS', path.dirname(path.abspath(__file__)))
return path.join(base_path, *args) | 5,353,527 |
def _file_format_from_filename(filename):
"""Determine file format from its name."""
import pathlib
filename = pathlib.Path(filename).name
return _file_formats[filename] if filename in _file_formats else "" | 5,353,528 |
def r2k(value):
"""
converts temperature in R(degrees Rankine) to K(Kelvins)
:param value: temperature in R(degrees Rankine)
:return: temperature in K(Kelvins)
"""
return const.convert_temperature(value, 'R', 'K') | 5,353,529 |
def test_get_params(tfm):
"""Test the get_params method."""
for dname in ['aperiodic_params', 'peak_params', 'error', 'r_squared', 'gaussian_params']:
assert np.any(tfm.get_params(dname))
if dname == 'aperiodic_params':
for dtype in ['offset', 'exponent']:
assert np.any(tfm.get_params(dname, dtype))
if dname == 'peak_params':
for dtype in ['CF', 'PW', 'BW']:
assert np.any(tfm.get_params(dname, dtype)) | 5,353,530 |
def add_version(project, publication_id):
"""
Takes "title", "filename", "published", "sort_order", "type" as JSON data
"type" denotes version type, 1=base text, 2=other variant
Returns "msg" and "version_id" on success, otherwise 40x
"""
request_data = request.get_json()
if not request_data:
return jsonify({"msg": "No data provided."}), 400
title = request_data.get("title", None)
filename = request_data.get("filename", None)
published = request_data.get("published", None)
sort_order = request_data.get("sort_order", None)
version_type = request_data.get("type", None)
publications = get_table("publication")
versions = get_table("publication_version")
query = select([publications]).where(publications.c.id == int_or_none(publication_id))
connection = db_engine.connect()
result = connection.execute(query).fetchone()
if result is None:
connection.close()
return jsonify("No such publication exists."), 404
values = {"publication_id": int(publication_id)}
if title is not None:
values["name"] = title
if filename is not None:
values["original_filename"] = filename
if published is not None:
values["published"] = published
if sort_order is not None:
values["sort_order"] = sort_order
if version_type is not None:
values["type"] = version_type
insert = versions.insert().values(**values)
result = connection.execute(insert)
return jsonify({
"msg": "Created new version object.",
"version_id": int(result.inserted_primary_key[0])
}), 201 | 5,353,531 |
def verifyPinConnections():
"""
Runs through each LED on the display to verify its function
Cycle order should be (right to left) White, Red, Yellow, Blue,
Green. The same order they are in the perf board
Notes
-----
This is largely just so I can be sure that the LEDs still work.
"""
def blink(pin):
pinState = False
for i in range(6):
pinState = not pinState
GPIO.output(pin, pinState)
time.sleep(0.15)
GPIO.output(pin, False)
white = 16
red = 12
yellow = 13
blue = 15
green = 18
blink(white)
blink(red)
blink(yellow)
blink(blue)
blink(green)
print("Quickly Press the button")
buttonListener(testing=True)
print("Hold the button for a bit")
buttonListener(testing=True)
print("All tests concluded")
GPIO.output(12, False)
GPIO.output(13, False)
GPIO.output(15, False)
GPIO.output(16, False)
GPIO.output(18, False)
return | 5,353,532 |
def to_decorator(wrapped_func):
"""
Encapsulates the decorator logic for most common use cases.
Expects a wrapped function with compatible type signature to:
wrapped_func(func, args, kwargs, *outer_args, **outer_kwargs)
Example:
@to_decorator
def foo(func, args, kwargs):
print(func)
return func(*args, **kwargs)
@foo()
def bar():
print(42)
"""
@functools.wraps(wrapped_func)
def arg_wrapper(*outer_args, **outer_kwargs):
def decorator(func):
@functools.wraps(func)
def wrapped(*args, **kwargs):
return wrapped_func(func,
args,
kwargs,
*outer_args,
**outer_kwargs)
return wrapped
return decorator
return arg_wrapper | 5,353,533 |
def _get_unit(my_str):
""" Get unit label from suffix """
#
matches = [my_str.endswith(suffix) for suffix in _known_units]
# check to see if unit makes sense
if not any(matches):
raise KeyError('Unit unit not recognized <{}>!'.format(my_str))
# pick unit that matches, with prefix
matched_unit = [unit for unit,match in zip(_known_units,matches) if match][0]
unit_dict = _unit_dict(matched_unit)
return matched_unit,unit_dict[my_str] | 5,353,534 |
def spec_augment(spectrogram, time_mask_para=70, freq_mask_para=20, time_mask_num=2, freq_mask_num=2):
"""
Provides Augmentation for audio
Args: spectrogram, time_mask_para, freq_mask_para, time_mask_num, freq_mask_num
spectrogram (torch.Tensor): spectrum
time_mask_para (int): Hyper Parameter for Time Masking to limit time masking length
freq_mask_para (int): Hyper Parameter for Freq Masking to limit freq masking length
time_mask_num (int): how many time-masked area to make
freq_mask_num (int): how many freq-masked area to make
Returns: feat
- **feat**: Augmented feature
Reference:
「SpecAugment: A Simple Data Augmentation Method for Automatic Speech Recognition」Google Brain Team. 2019.
https://github.com/DemisEom/SpecAugment/blob/master/SpecAugment/spec_augment_pytorch.py
Examples::
Generate spec augmentation from a feature
>>> spec_augment(spectrogram, time_mask_para=70, freq_mask_para=20, n_time_mask=2, freq_mask_num=2)
Tensor([[ -5.229e+02, 0, ..., -5.229e+02, -5.229e+02],
[ 7.105e-15, 0, ..., -7.105e-15, -7.105e-15],
...,
[ 0, 0, ..., 0, 0],
[ 3.109e-14, 0, ..., 2.931e-14, 2.931e-14]])
"""
length = spectrogram.size(0)
n_mels = spectrogram.size(1)
# time mask
for _ in range(time_mask_num):
t = np.random.uniform(low=0.0, high=time_mask_para)
t = int(t)
if length - t > 0:
t0 = random.randint(0, length - t)
spectrogram[t0: t0 + t, :] = 0
# freq mask
for _ in range(freq_mask_num):
f = np.random.uniform(low=0.0, high=freq_mask_para)
f = int(f)
f0 = random.randint(0, n_mels - f)
spectrogram[:, f0: f0 + f] = 0
return spectrogram | 5,353,535 |
def scale(a: tuple, scalar: float) -> tuple:
"""Scales the point."""
return a[0] * scalar, a[1] * scalar | 5,353,536 |
def parse_env(env):
"""Parse the given environment and return useful information about it,
such as whether it is continuous or not and the size of the action space.
"""
# Determine whether input is continuous or discrete. Generally, for
# discrete actions, we will take the softmax of the output
# probabilities and for the continuous we will use the linear output,
# rescaled to the action space.
action_is_continuous = False
action_low = None
action_high = None
if isinstance(env.action_space, gym.spaces.Discrete):
action_size = env.action_space.n
else:
action_is_continuous = True
action_low = env.action_space.low
action_high = env.action_space.high
action_size = env.action_space.low.shape[0]
return action_is_continuous, action_size, action_low, action_high | 5,353,537 |
def encode_dataset(dataset, tester, mode="gate"):
"""
dataset: object from the `word-embeddings-benchmarks` repo
dataset.X: a list of lists of pairs of word
dataset.y: similarity between these pairs
tester: tester implemented in my `tester.py`"""
words_1 = [x[0] for x in dataset["X"]]
encoded_words_1 = encode_words(
words_1, tester, mode=mode
)
encoded_words_2 = encode_words(
[x[1] for x in dataset["X"]], tester, mode=mode
)
return encoded_words_1, encoded_words_2 | 5,353,538 |
def _RunSetupTools(package_root, setup_py_path, output_dir):
"""Executes the setuptools `sdist` command.
Specifically, runs `python setup.py sdist` (with the full path to `setup.py`
given by setup_py_path) with arguments to put the final output in output_dir
and all possible temporary files in a temporary directory. package_root is
used as the working directory.
May attempt to run setup.py multiple times with different
environments/commands if any execution fails:
1. Using the Cloud SDK Python environment, with a full setuptools invocation
(`egg_info`, `build`, and `sdist`).
2. Using the system Python environment, with a full setuptools invocation
(`egg_info`, `build`, and `sdist`).
3. Using the Cloud SDK Python environment, with an intermediate setuptools
invocation (`build` and `sdist`).
4. Using the system Python environment, with an intermediate setuptools
invocation (`build` and `sdist`).
5. Using the Cloud SDK Python environment, with a simple setuptools
invocation which will also work for plain distutils-based setup.py (just
`sdist`).
6. Using the system Python environment, with a simple setuptools
invocation which will also work for plain distutils-based setup.py (just
`sdist`).
The reason for this order is that it prefers first the setup.py invocations
which leave the fewest files on disk. Then, we prefer the Cloud SDK execution
environment as it will be the most stable.
package_root must be writable, or setuptools will fail (there are
temporary files from setuptools that get put in the CWD).
Args:
package_root: str, the directory containing the package (that is, the
*parent* of the package itself).
setup_py_path: str, the path to the `setup.py` file to execute.
output_dir: str, path to a directory in which the built packages should be
created.
Returns:
list of str, the full paths to the generated packages.
Raises:
SysExecutableMissingError: if sys.executable is None
RuntimeError: if the execution of setuptools exited non-zero.
"""
# Unfortunately, there doesn't seem to be any easy way to move *all*
# temporary files out of the current directory, so we'll fail here if we
# can't write to it.
with _TempDirOrBackup(package_root) as working_dir:
# Simpler, but more messy (leaves artifacts on disk) command. This will work
# for both distutils- and setuputils-based setup.py files.
sdist_args = ['sdist', '--dist-dir', output_dir]
# The 'build' and 'egg_info commands (which are invoked anyways as a
# subcommands of 'sdist') are included to ensure that the fewest possible
# artifacts are left on disk.
build_args = [
'build', '--build-base', working_dir, '--build-temp', working_dir]
# Some setuptools versions don't support directly running the egg_info
# command
egg_info_args = ['egg_info', '--egg-base', working_dir]
setup_py_arg_sets = (
egg_info_args + build_args + sdist_args,
build_args + sdist_args,
sdist_args)
# See docstring for the reasoning behind this order.
setup_py_commands = []
for setup_py_args in setup_py_arg_sets:
setup_py_commands.append(_CloudSdkPythonSetupPyCommand(
setup_py_path, setup_py_args, package_root))
setup_py_commands.append(_SystemPythonSetupPyCommand(
setup_py_path, setup_py_args, package_root))
for setup_py_command in setup_py_commands:
out = io.StringIO()
return_code = setup_py_command.Execute(out)
if not return_code:
break
else:
raise RuntimeError(out.getvalue())
local_paths = [os.path.join(output_dir, rel_file)
for rel_file in os.listdir(output_dir)]
log.debug('Python packaging resulted in [%s]', ', '.join(local_paths))
return local_paths | 5,353,539 |
def default_search_func(search_dict):
"""
Defaults to calling the data broker's search function
Parameters
----------
search_dict : dict
The search_dict gets unpacked into the databroker's search function
Returns
-------
search_results: list
The results from the data broker's search function
Raises
------
ImportError
Raised if the metadatastore cannot be found
ValueError
Raised if the search dictionary is empty
"""
logger.info("default_search_func() in broker_query_example.py")
print(search_dict)
# check to see if the dictionary is empty
if len(search_dict) == 0:
logger.error("search_dict has no keys. Raising a value error")
raise ValueError("The search_dict input parameter has no keys")
print(search_dict)
logger.info("search_dict")
try:
from metadataStore.userapi.commands import search
logger.info("Search command from metadataStore.userapi.commands "
"imported successfully")
except ImportError:
#todo add logging statement about import error
logger.info("The data broker cannot be found, returning an empty "
"search")
return _defaults["empty_search"]
result=search(**search_dict)
print(result)
return result | 5,353,540 |
def readData(filename):
"""
Read in our data from a CSV file and create a dictionary of records,
where the key is a unique record ID and each value is dict
"""
data_d = {}
with open(filename) as f:
reader = csv.DictReader(f)
for row in reader:
clean_row = [(k, preProcess(v)) for (k, v) in row.items()]
row_id = str(int(row[fieldNameFileNo])) + '.' + str(int(row[fieldNameIdCol]))
data_d[row_id] = dict(clean_row)
return data_d | 5,353,541 |
def share(request, token):
"""
Serve a shared file.
This view does not require login, but requires a token.
"""
share = get_object_or_404(
Share,
Q(expires__isnull=True) | Q(expires__gt=datetime.datetime.now()),
token=token)
# Increment number of views.
share.views += 1
share.save()
return sendfile(
request, os.path.join(settings.MEDIA_ROOT, share.media_file.path),
mimetype=share.media_file.mime_type) | 5,353,542 |
def update_roi_mask(roi_mask1, roi_mask2):
"""Y.G. Dec 31, 2016
Update qval_dict1 with qval_dict2
Input:
roi_mask1, 2d-array, label array, same shape as xpcs frame,
roi_mask2, 2d-array, label array, same shape as xpcs frame,
Output:
roi_mask, 2d-array, label array, same shape as xpcs frame, update roi_mask1 with roi_mask2
"""
roi_mask = roi_mask1.copy()
w = np.where(roi_mask2)
roi_mask[w] = roi_mask2[w] + np.max(roi_mask)
return roi_mask | 5,353,543 |
def get_latest_recipes(recipe_folder, config, package="*"):
"""
Generator of recipes.
Finds (possibly nested) directories containing a `meta.yaml` file and returns
the latest version of each recipe.
Parameters
----------
recipe_folder : str
Top-level dir of the recipes
config : dict or filename
package : str or iterable
Pattern or patterns to restrict the results.
"""
def toplevel(x):
return x.replace(
recipe_folder, '').strip(os.path.sep).split(os.path.sep)[0]
config = load_config(config)
recipes = sorted(get_recipes(recipe_folder, package), key=toplevel)
for package, group in groupby(recipes, key=toplevel):
group = list(group)
if len(group) == 1:
yield group[0]
else:
def get_version(p):
meta_path = os.path.join(p, 'meta.yaml')
meta = load_first_metadata(meta_path, finalize=False)
version = meta.get_value('package/version')
return VersionOrder(version)
sorted_versions = sorted(group, key=get_version)
if sorted_versions:
yield sorted_versions[-1] | 5,353,544 |
def allocate_db(ctx, redis_host, redis_port, environment_name, app_name):
"""Allocate a Redis database for a specified application and environment"""
redis_config_instance = RedisConfig(
redis_host=redis_host,
redis_port=redis_port,
app_name=app_name,
environment=environment_name,
put_metrics=False,
)
db = redis_config_instance.allocate_db()
click.secho("Allocated Database %s to %s/%s" % (db, environment_name, app_name), fg='green')
click.secho(object2table(redis_config_instance.redis_db_allocations), fg="cyan") | 5,353,545 |
def spectral_synthesis(image, palette, n, h):
"""Plasma texture computation using spectral synthesis."""
width, height = image.size # rozmery obrazku
bitmap = np.zeros([height, width])
A = np.empty([n//2, n//2]) # koeficienty Ak
B = np.empty([n//2, n//2]) # koeficienty Bk
beta = 2.0 * h + 1 # promenna svazana s Hurstovym koeficientem
print("calculate coefficients")
# vypocet koeficientu Ak a Bk
for j in range(n//2):
for i in range(n//2):
rad_i = pow((i+1), -beta/2.0)*random_gauss()
rad_j = pow((j+1), -beta/2.0)*random_gauss()
phase_i = 2.0*math.pi*random()
phase_j = 2.0*math.pi*random()
A[j][i] = rad_i*math.cos(phase_i)*rad_j*math.cos(phase_j)
B[j][i] = rad_i*math.sin(phase_i)*rad_j*math.sin(phase_j)
print("plasma synthesis")
# vygenerovani plasmy
for j in range(height):
for i in range(width):
z = 0
# inverzni Fourierova transformace
for k in range(n//2):
for l in range(n//2):
u = (i-n/2)*2.0*math.pi/width
v = (j-n/2)*2.0*math.pi/height
z += A[k][l]*math.cos(k*u+l*v)+B[k][l]*math.sin(k*u+l*v)
bitmap[j][i] = z
convert_to_image(bitmap, image, width, height, palette) | 5,353,546 |
def training_loop(
train_sequences: List[Tuple[pd.DataFrame, float]],
val_sequences: List[Tuple[pd.DataFrame, float]],
test_sequences: List[Tuple[pd.DataFrame, float]],
parameters: Dict[str, Any],
dir_path: str,
):
"""
Training loop for the LSTM model.
Parameters
----------
train_sequences: List[Tuple[pd.DataFrame, float]]
List of training sequences.
val_sequences: List[Tuple[pd.DataFrame, float]]
List of validation sequences.
test_sequences: List[Tuple[pd.DataFrame, float]]
List of test sequences.
parameters: Dict[str, Any]
Hyperparameters for the model.
dir_path: str
Path to the directory where the model will be saved.
"""
seed_everything(42, workers=True)
logger = WandbLogger(project=parameters["wandb_project"])
gpu_value = 1 if parameters["run_on_gpu"] is True else 0
model = PricePredictor(
batch_size=parameters["train_batch_size"],
dropout_rate=parameters["dropout_rate"],
hidden_size=parameters["hidden_size"],
learning_rate=parameters["learning_rate"],
number_of_features=parameters["number_of_features"],
number_of_layers=parameters["number_of_layers"],
run_on_gpu=parameters["run_on_gpu"],
)
data_module = LSTMDataLoader(
train_sequences=train_sequences,
val_sequences=val_sequences,
test_sequences=test_sequences,
train_batch_size=parameters["train_batch_size"],
val_batch_size=parameters["val_batch_size"],
train_workers=parameters["train_workers"],
val_workers=parameters["val_workers"],
)
checkpoint_callback = callbacks.ModelCheckpoint(
dirpath=dir_path,
save_top_k=1,
verbose=True,
monitor="valid/loss",
mode="min",
)
early_stopping_callback = callbacks.EarlyStopping(
monitor="valid/loss",
patience=2,
verbose=True,
mode="min",
)
trainer = Trainer(
max_epochs=parameters["max_epochs"],
logger=logger,
callbacks=[checkpoint_callback, early_stopping_callback],
gpus=gpu_value,
log_every_n_steps=parameters["log_n_steps"],
progress_bar_refresh_rate=10,
deterministic=True,
)
trainer.fit(model, data_module)
trainer.test(model, data_module)
return {"training_done": True} | 5,353,547 |
def test_empty_headers(tiny_template):
"""Test that a spreadsheet with empty headers raises a validation error"""
tiny_missing_header = {
"TEST_SHEET": [
TemplateRow(1, RowType.HEADER, ("test_property", None, "test_time"))
]
}
search_error_message(
tiny_missing_header, tiny_template, ValidationError, "empty header cell"
) | 5,353,548 |
def update(ctx, client_uid):
"""Updates a client"""
client_service = ClientService(ctx.obj['clients_table'])
client_list = client_service.list_clients()
client = [cl for cl in client_list if cl['uid'] == client_uid]
if client:
client = _update_client_flow(Client(**client[0]))
client_service.update_client(client)
click.echo('Client updated')
else:
click.echo('Client not found') | 5,353,549 |
def eliminate_nanoverlap(sen_directory, shape_path):
"""
eliminates the scenes which would'nt match with all weather stations
:return:
"""
import_list = import_polygons(shape_path=shape_path)
file_list = extract_files_to_list(path_to_folder=sen_directory, datatype=".tif")
tifs_selected = sen_directory + "/selected"
if os.path.exists(tifs_selected):
shutil.rmtree(tifs_selected)
os.mkdir(sen_directory + "/selected")
for i, files in enumerate(file_list):
src1 = rio.open(file_list[i])
try:
for j, polygons in enumerate(import_list):
rio.mask.mask(src1, [import_list[0][j]], all_touched=0, crop=True, nodata=np.nan)
shutil.copy(file_list[i], tifs_selected)
except ValueError:
pass | 5,353,550 |
def nmi(X, y):
"""
Normalized mutual information between X and y.
:param X:
:param y:
"""
mi = mutual_info_regression(X, y)
return mi / mi.max() | 5,353,551 |
def attribute_as_str(path: str, name: str) -> Optional[str]:
"""Return the two numbers found behind --[A-Z] in path.
If several matches are found, the last one is returned.
Parameters
----------
path : string
String with path of file/folder to get attribute from.
name : string
Name of attribute to get. Should be A-Z or a-z (implicit converted to
uppercase).
Returns
-------
string
Returns two digit number found in path behind --name.
"""
matches = re.findall("--" + name.upper() + "([0-9]{2})", path)
if matches:
return str(matches[-1])
return None | 5,353,552 |
def racket_module(value):
""" a very minimal racket -> python interpreter """
_awaiting = object()
_provide_expect = object()
def car(tup): return tup[0]
def cdr(tup): return tup[1:]
def eval(env, tup):
last = None
for value in tup:
if isinstance(value, tuple):
if car(value) == 'module-unexp':
_, file, lang, rest = value
return eval(None, rest)
elif car(value) == 'module-begin':
env = {_provide_expect: set()}
eval(env, cdr(value))
provide_expect = env.pop(_provide_expect)
out = {name:value for name, value in env.items() if name in provide_expect}
missing = provide_expect - set(out)
if missing:
raise ValueError(f'not provided {missing}')
return out
elif car(value) == 'provide':
for v in cdr(value): # FIXME too simple
env[_provide_expect].add(v)
last = None
elif car(value) == 'define':
if isinstance(value[2], tuple) and len(value[2:]) > 1:
raise NotImplementedError('havent implemented functions yet')
env[value[1]] = eval(env, value[2:])
elif car(value) == 'quote':
rest = value[1]
return rest
last = None
else:
last = value
return last
return eval(None, value) | 5,353,553 |
def validate_inputs(input_data: pd.DataFrame) -> pd.DataFrame:
"""Check model for unprocessable values."""
valudated_data = input_data.copy()
# check for numerical variables with NA not seen during training
return validated_data | 5,353,554 |
def train_model(model, *, train_generator, validation_generator, train_samples,
class_weight, validation_samples, batch_size, epochs):
"""Train model"""
# Configure early stopping to monitor validation accuracy
early_stopping = EarlyStopping(
monitor='val_acc', min_delta=0, patience=10, verbose=1, mode='auto')
model.fit_generator(
train_generator,
steps_per_epoch=train_samples // batch_size,
epochs=epochs,
class_weight=class_weight,
validation_data=validation_generator,
validation_steps=validation_samples // batch_size,
callbacks=[early_stopping]) | 5,353,555 |
def index():
"""
Check if user is authenticated and render index page
Or login page
"""
if current_user.is_authenticated:
user_id = current_user._uid
return render_template('index.html', score=get_score(user_id), username=get_username(user_id))
else:
return redirect(url_for('login')) | 5,353,556 |
def pick(
seq: Iterable[_T], func: Callable[[_T], float], maxobj: Optional[_T] = None
) -> Optional[_T]:
"""Picks the object obj where func(obj) has the highest value."""
maxscore = None
for obj in seq:
score = func(obj)
if maxscore is None or maxscore < score:
(maxscore, maxobj) = (score, obj)
return maxobj | 5,353,557 |
def rsync_public_key(server_list):
"""
推送PublicKey
:return: 只返回推送成功的,失败的直接写错误日志
"""
# server_list = [('47.100.231.147', 22, 'root', '-----BEGIN RSA PRIVATE KEYxxxxxEND RSA PRIVATE KEY-----', 'false')]
ins_log.read_log('info', 'rsync public key to server')
rsync_error_list = []
rsync_sucess_list = []
sync_key_obj = RsyncPublicKey()
check = sync_key_obj.check_rsa()
if check:
res_data = start_rsync(server_list)
if not res_data.get('status'):
rsync_error_list.append(res_data)
else:
rsync_sucess_list.append(res_data)
if rsync_error_list:
write_error_log(rsync_error_list)
return rsync_sucess_list | 5,353,558 |
def create_one(url, alias=None):
"""
Shortens a URL using the TinyURL API.
"""
if url != '' and url is not None:
regex = re.compile(pattern)
searchres = regex.search(url)
if searchres is not None:
if alias is not None:
if alias != '':
payload = {
'url': url,
'submit': 'Make TinyURL!',
'alias': alias
}
data = parse_helper.urlencode(payload)
full_url = API_CREATE_LIST[1] + data
ret = request_helper.urlopen(full_url)
soup = BeautifulSoup(ret, 'html.parser')
check_error = soup.p.b.string
if 'The custom alias' in check_error:
raise errors.AliasUsed(
"The given Alias you have provided is already"
" being used.")
else:
return soup.find_all(
'div', {'class': 'indent'}
)[1].b.string
else:
raise errors.InvalidAlias(
"The given Alias cannot be 'empty'.")
else:
url_data = parse_helper.urlencode(dict(url=url))
byte_data = str.encode(url_data)
ret = request_helper.urlopen(
API_CREATE_LIST[0], data=byte_data).read()
result = str(ret).replace('b', '').replace("\'", '')
return result
else:
raise errors.InvalidURL("The given URL is invalid.")
else:
raise errors.URLError("The given URL Cannot be 'empty'.") | 5,353,559 |
def duplicate_each_element(vector: tf.Tensor, repeat: int):
"""This method takes a vector and duplicates each element the number of times supplied."""
height = tf.shape(vector)[0]
exp_vector = tf.expand_dims(vector, 1)
tiled_states = tf.tile(exp_vector, [1, repeat])
mod_vector = tf.reshape(tiled_states, [repeat * height])
return mod_vector | 5,353,560 |
def apk(actual, predicted, k=3):
"""
Computes the average precision at k.
This function computes the average precision at k for single predictions.
Parameters
----------
actual : int
The true label
predicted : list
A list of predicted elements (order does matter)
k : int, optional
The maximum number of predicted elements
Returns
-------
score : double
The average precision at k over the input lists
"""
if len(predicted) > k:
predicted = predicted[:k]
score = 0.0
num_hits = 0.0
for i, p in enumerate(predicted):
if p == actual and p not in predicted[:i]:
num_hits += 1.0
score += num_hits / (i+1.0)
return score | 5,353,561 |
def make_predictor(model):
"""
Factory to build predictor based on model type provided
Args:
model (DeployedModel): model to use when instantiating a predictor
Returns:
BasePredictor Child: instantiated predictor object
"""
verify = False if model.example == '' else True
if model.model_type == ModelType.vw:
return VWPredictor(model=model, verify_on_load=verify)
elif model.model_type == ModelType.sklearn:
return SKLearnPredictor(model=model, sep=app.config.get('SKLEARN_SEPARATOR', None), verify_on_load=verify)
else:
raise ApiException(name='Invalid Input', message='unknown model type: {type}'.format(type=model.model_type)) | 5,353,562 |
def get(identifier: str) -> RewardScheme:
"""Gets the `RewardScheme` that matches with the identifier.
Arguments:
identifier: The identifier for the `RewardScheme`
Raises:
KeyError: if identifier is not associated with any `RewardScheme`
"""
if identifier not in _registry.keys():
raise KeyError(
'Identifier {} is not associated with any `RewardScheme`.'.format(identifier))
return _registry[identifier]() | 5,353,563 |
def add_query_params(url: str, query_params: dict) -> str:
"""Add query params dict to a given url (which can already contain some query parameters)."""
path_result = parse.urlsplit(url)
base_url = path_result.path
# parse existing query parameters if any
existing_query_params = dict(parse.parse_qsl(path_result.query))
all_query_params = {**existing_query_params, **query_params}
# add query parameters to url if any
if all_query_params:
base_url += "?" + parse.urlencode(all_query_params)
return base_url | 5,353,564 |
def test_commandline_abbrev_interp(tmpdir):
"""Specifying abbreviated forms of the Python interpreter should work"""
if sys.platform == "win32":
fmt = "%s.%s"
else:
fmt = "python%s.%s"
abbrev = fmt % (sys.version_info[0], sys.version_info[1])
subprocess.check_call([sys.executable, VIRTUALENV_SCRIPT, "-p", abbrev, str(tmpdir.join("venv"))]) | 5,353,565 |
def activate_agent(
ctx: typer.Context,
agent_ids: List[str],
) -> None:
"""
Activate pending agent
"""
api = get_api(ctx)
for i in agent_ids:
a = _get_agent_by_id(api.syn, i)
if a["status"] != "AGENT_STATUS_WAIT":
typer.echo(f"id: {i} agent not pending (status: {a['status']})")
continue
a["status"] = "AGENT_STATUS_OK"
a = api_request(api.syn.update_agent, "AgentUpdate", i, a)
if a["status"] != "AGENT_STATUS_OK":
typer.echo(f"id: {i} FAILED to activate (status: {a['status']}")
else:
typer.echo(f"id: {i} agent activated") | 5,353,566 |
def tokenize_lexicon_str(vocab, lexicon_str, pad_max_length, device):
"""
#todo add documentation
:param lexicon_str:
:return: a tensor of ids from vocabulary for each . shape=(batch_size,max_length?)
"""
out_tensor = []
out_mask = []
for row in lexicon_str:
lexicon_words = []
row_lst = ast.literal_eval(row)
for phrase in row_lst:
# handle phrase = False
if not phrase:
continue
tokenized_words = en_tokenizer(phrase)
lexicon_words.extend(tokenized_words)
# remove duplicates
lexicon_words = list(dict.fromkeys(lexicon_words))
lexicon_words.extend(get_specials_program())
# Pad and create a mask
padded = ['<pad>'] * pad_max_length
mask = [0] * pad_max_length
data_len = min(len(lexicon_words), pad_max_length)
padded[:data_len] = lexicon_words[:data_len]
mask[:data_len] = [1] * data_len
tensor = torch.tensor([vocab[token] for token in padded], dtype=torch.long)
mask = torch.tensor(mask, dtype=torch.long)
# Add to list
out_tensor.append(tensor)
out_mask.append(mask)
# Stack
out_tensor = torch.stack(out_tensor).to(device)
out_mask = torch.stack(out_mask).to(device)
return out_tensor, out_mask | 5,353,567 |
def try_get_mark(obj, mark_name):
"""Tries getting a specific mark by name from an object, returning None if no such mark is found
"""
marks = get_marks(obj)
if marks is None:
return None
return marks.get(mark_name, None) | 5,353,568 |
def classSizable(class_):
"""Monkey the class to be sizable through Five"""
# tuck away the original method if necessary
if hasattr(class_, "get_size") and not isFiveMethod(class_.get_size):
class_.__five_original_get_size = class_.get_size
class_.get_size = get_size
# remember class for clean up
_monkied.append(class_) | 5,353,569 |
def release(args):
"""Peform a release.
This will:
- check there are no unpushed/unpulled commits
- bump the version number and commit
- release the package to the cheeseshop
Example:
$> paver release patch
"""
# Check we don't have pending commits
sh('git diff --quiet HEAD')
# Check we don't have unstaged changes
sh('git diff --cached --quiet HEAD')
# Tag
bumptypes = ['major', 'minor', 'patch']
bumptype = args.pop()
if not bumptype or bumptype not in bumptypes:
raise BuildFailure('Unknown bumptype: %s != %s' % (
bumptype, bumptypes))
call_task('bump', args=['--verbose', bumptype])
# Push
sh('git push')
sh('git push --tags') | 5,353,570 |
def timedelta_to_seconds(ts):
""" Convert the TimedeltaIndex of a pandas.Series into a numpy
array of seconds. """
seconds = ts.index.values.astype(float)
seconds -= seconds[-1]
seconds /= 1e9
return seconds | 5,353,571 |
async def test_disconnection_when_already_disconnected():
"""Test the case when disconnecting a connection already disconnected."""
tmpdir = Path(tempfile.mkdtemp())
d = tmpdir / "test_stub"
d.mkdir(parents=True)
input_file_path = d / "input_file.csv"
output_file_path = d / "output_file.csv"
connection = _make_stub_connection(input_file_path, output_file_path)
assert not connection.is_connected
await connection.disconnect()
assert not connection.is_connected | 5,353,572 |
def parse_gage(s):
"""Parse a streamgage key-value pair.
Parse a streamgage key-value pair, separated by '='; that's the reverse of ShellArgs.
On the command line (argparse) a declaration will typically look like::
foo=hello or foo="hello world"
:param s: str
:rtype: tuple(key, value)
"""
# Adapted from: https://gist.github.com/fralau/061a4f6c13251367ef1d9a9a99fb3e8d
items = s.split('=')
key = items[0].strip() # we remove blanks around keys, as is logical
value = ''
if len(items) > 1:
# rejoin the rest:
value = '='.join(items[1:])
return key, value | 5,353,573 |
def get_attribute(instance, attrs):
"""
Similar to Python's built in `getattr(instance, attr)`,
but takes a list of nested attributes, instead of a single attribute.
Also accepts either attribute lookup on objects or dictionary lookups.
"""
for attr in attrs:
try:
# pylint: disable=isinstance-second-argument-not-valid-type
if isinstance(instance, Mapping):
instance = instance[attr]
else:
instance = getattr(instance, attr)
except ObjectDoesNotExist:
return None
return instance | 5,353,574 |
def pull_cv_project(request, project_id):
"""pull_cv_project.
Delete the local project, parts and images. Pull the
remote project from Custom Vision.
Args:
request:
project_id:
"""
# FIXME: open a Thread/Task
logger.info("Pulling CustomVision Project")
# Check Customvision Project id
customvision_project_id = request.query_params.get(
"customvision_project_id")
logger.info("customvision_project_id: %s", {customvision_project_id})
# Check Partial
try:
is_partial = bool(strtobool(request.query_params.get("partial")))
except Exception:
is_partial = True
logger.info("Loading Project in Partial Mode: %s", is_partial)
try:
pull_cv_project_helper(project_id=project_id,
customvision_project_id=customvision_project_id,
is_partial=is_partial)
return Response({"status": "ok"}, status=status.HTTP_200_OK)
except Exception:
err_msg = traceback.format_exc()
return Response(
{
"status": "failed",
"log":
str(err_msg) # Change line plz...
},
status=status.HTTP_400_BAD_REQUEST) | 5,353,575 |
def get_log_line_components(s_line):
"""
given a log line, returns its datetime as a datetime object
and its log level as a string and the message itself as another
string - those three are returned as a tuple. the log level
is returned as a single character (first character of the level's
name, capitalized).
"""
try:
dtime = datetime.strptime(s_line[0:19], "%Y-%m-%d %H:%M:%S")
except ValueError:
raise LogUtilsError("Not a proper date/time at start of log line!")
if dtime is None:
raise LogUtilsError("Not a proper date/time at start of log line!")
log_level = s_line[24]
if log_level == "D":
s_line = s_line[30:]
elif log_level == "I":
s_line = s_line[29:]
elif log_level == "W":
s_line = s_line[32:]
elif log_level == "E":
s_line = s_line[30:]
elif log_level == "C":
s_line = s_line[33:]
else:
raise LogUtilsError("log-level not in log line!")
return s_line, dtime, log_level | 5,353,576 |
def is_eligible_for_bulletpoint_vote(recipient, voter):
"""
Returns True if the recipient is eligible to receive an award.
Checks to ensure recipient is not also the voter.
"""
if voter is None:
return True
return (recipient != voter) and is_eligible_user(recipient) | 5,353,577 |
def test_atomic_duration_min_exclusive_nistxml_sv_iv_atomic_duration_min_exclusive_1_4(mode, save_output, output_format):
"""
Type atomic/duration is restricted by facet minExclusive with value
P1970Y01M01DT00H00M00S.
"""
assert_bindings(
schema="nistData/atomic/duration/Schema+Instance/NISTSchema-SV-IV-atomic-duration-minExclusive-1.xsd",
instance="nistData/atomic/duration/Schema+Instance/NISTXML-SV-IV-atomic-duration-minExclusive-1-4.xml",
class_name="NistschemaSvIvAtomicDurationMinExclusive1",
version="1.1",
mode=mode,
save_output=save_output,
output_format=output_format,
structure_style="filenames",
) | 5,353,578 |
def test_resolve_validation():
"""Resolve validates first."""
assert tools.resolve(',saoi9w3k490q2k4') == (False, True) | 5,353,579 |
def _get_in_collection_filter_directive(input_filter_name):
"""Create a @filter directive with in_collecion operation and the desired variable name."""
return DirectiveNode(
name=NameNode(value=FilterDirective.name),
arguments=[
ArgumentNode(
name=NameNode(value="op_name"),
value=StringValueNode(value="in_collection"),
),
ArgumentNode(
name=NameNode(value="value"),
value=ListValueNode(
values=[
StringValueNode(value="$" + input_filter_name),
],
),
),
],
) | 5,353,580 |
def load_labelmap(path):
"""Loads label map proto.
Args:
path: path to StringIntLabelMap proto text file.
Returns:
a StringIntLabelMapProto
"""
with tf.gfile.GFile(path, 'r') as fid:
label_map_string = fid.read()
label_map = string_int_label_map_pb2.StringIntLabelMap()
try:
text_format.Merge(label_map_string, label_map)
except text_format.ParseError:
label_map.ParseFromString(label_map_string)
_validate_label_map(label_map)
return label_map | 5,353,581 |
def changenodata_value(
inputfile,
outputfile,
topotypein,
topotypeout=None,
nodata_valuein=None,
nodata_valueout=np.nan,
):
"""
change the nodata_values in a topo file by interpolating from meaningful values.
"""
(X, Y, Z) = topofile2griddata(inputfile, topotypein)
if topotypein > 1 and not nodata_valuein:
topoheader = topoheaderread(inputfile)
nodata_valuein = topoheader["nodata_value"]
elif not nodata_valuein:
print("provide a value for nodata_valuein when using topotype1")
if not topotypeout:
topotypeout = topotypein
nrows = shape(Z)[0]
ncols = shape(Z)[1]
npts = nrows * ncols
ind = np.where(Z == nodata_valuein)
Z[ind] = nodata_valueout
if size(ind) > 0:
print(("Changing %s nodata_value points" % size(ind)))
griddata2topofile(X, Y, Z, outputfile, topotypeout, nodata_valuein, nodata_valueout)
return
# end removenodata_value ================================================================= | 5,353,582 |
def calc_internal_hours(entries):
"""
Calculates internal utilizable hours from an array of entry dictionaries
"""
internal_hours = 0.0
for entry in entries:
if entry['project_name'][:22] == "TTS Acq / Internal Acq" and not entry['billable']:
internal_hours = internal_hours + float(entry['hours_spent'])
return internal_hours | 5,353,583 |
def format_str_strip(form_data, key):
"""
"""
if key not in form_data:
return ''
return form_data[key].strip() | 5,353,584 |
def get_element(element_path: str):
"""
For base extension to get main window's widget,event and function,\n
pay attention,you must be sure the element's path
grammar: element's path (father>attribute>attribute...) like UI_WIDGETS>textViewer
"""
try:
listed_element_path = element_path.split('>')
attribute = getattr(top, listed_element_path[0])
for nowAttributeName in listed_element_path[1:]:
attribute = getattr(attribute, nowAttributeName)
return attribute
except Exception as msg:
print(msg)
return None | 5,353,585 |
def plot_bargraph(df:pd.core.frame.DataFrame,
x_axis_column:str='product',
y_axis_column:str='avg_order_rev',
hue_column_name:str = None,
x_label_name:str= 'Product',
y_label_name:str='Average Revenue per order',
title:str='Tirle',
save_file:str='barplot.png',
conf_interval:bool=False,
color_dict:dict = None,
save_path:str = None)->None:
"""
This function plots the bargraph of the given two columns of the dataframe.
Args:
df:pd.core.frame.DataFrame
x_axis_column:str -> Dataframe Column name to put on x-axis
y_axis_column:str -> Dataframe Column name to put on y-axis
hue_column_name:str -> Dataframe Column name to put on hue
x_label_name:str
y_label_name:str
title:str
save_file:str
color_dict:dict
save_path:str
"""
try:
order = df.groupby([x_axis_column])[y_axis_column].mean().sort_values(ascending=False).index
ax = None
if conf_interval:
ax = sns.barplot(x = x_axis_column, y = y_axis_column, hue=hue_column_name, data=df, order=order, palette = color_dict)
else:
ax = sns.barplot(x = x_axis_column, y = y_axis_column, hue=hue_column_name, data=df, order=order, ci=None, palette = color_dict)
ax.set(xlabel=x_label_name, ylabel=y_label_name)
ax.set_title(title)
# #plot bar values
add_value_labels(ax)
if save_path:
plt.savefig( f"{save_path}/"+ save_file, dpi=300, bbox_inches = "tight")
except Exception as error:
raise Exception('Caught this error: ' + repr(error)) | 5,353,586 |
def test_file_open_bug():
"""ensure errors raised during reads or writes don't lock the namespace open."""
value = Value('test', clsmap['file']('reentrant_test', data_dir='./cache'))
if os.path.exists(value.namespace.file):
os.remove(value.namespace.file)
value.set_value("x")
f = open(value.namespace.file, 'w')
f.write("BLAH BLAH BLAH")
f.close()
# TODO: do we have an assertRaises() in nose to use here ?
try:
value.set_value("y")
assert False
except:
pass
_synchronizers.clear()
value = Value('test', clsmap['file']('reentrant_test', data_dir='./cache'))
# TODO: do we have an assertRaises() in nose to use here ?
try:
value.set_value("z")
assert False
except:
pass | 5,353,587 |
def gravatar_for_email(email, size=None, rating=None):
"""
Generates a Gravatar URL for the given email address.
Syntax::
{% gravatar_for_email <email> [size] [rating] %}
Example::
{% gravatar_for_email [email protected] 48 pg %}
"""
gravatar_url = "%savatar/%s" % (GRAVATAR_URL_PREFIX,
_get_gravatar_id(email))
parameters = [p for p in (
('d', GRAVATAR_DEFAULT_IMAGE),
('s', size or GRAVATAR_DEFAULT_SIZE),
('r', rating or GRAVATAR_DEFAULT_RATING),
) if p[1]]
if parameters:
gravatar_url += '?' + urllib.urlencode(parameters, doseq=True)
return gravatar_url | 5,353,588 |
def test_node_exporter_binary_which(host):
"""Tests output of command matches /usr/local/bin/node_exporter"""
assert host.check_output('which node_exporter') == NE_BINARY_FILE | 5,353,589 |
def decmin_to_decdeg(pos, decimals=4):
"""Convert degrees and decimal minutes into decimal degrees."""
pos = float(pos)
output = np.floor(pos / 100.) + (pos % 100) / 60.
return round_value(output, nr_decimals=decimals) | 5,353,590 |
def get_selector(selector_list, identifiers, specified_workflow=None):
"""
Determine the correct workflow selector from a list of selectors, series of identifiers and user specified workflow if defined.
Parameters
----------
selector_list list
List of dictionaries, where the value of all dictionaries are workflow selectors.
identifiers list
List of identifiers specified in order of precedence that are to be looked up in selector_list.
specified_workflow str
User specified workflow for build.
Returns
-------
selector(BasicWorkflowSelector)
selector object which can specify a workflow configuration that can be passed to `aws-lambda-builders`
"""
# Create a combined view of all the selectors
all_selectors = {}
for selector in selector_list:
all_selectors = {**all_selectors, **selector}
# Check for specified workflow being supported at all and if it's not, raise an UnsupportedBuilderException.
if specified_workflow and specified_workflow not in all_selectors:
raise UnsupportedBuilderException("'{}' does not have a supported builder".format(specified_workflow))
# Loop through all identifers to gather list of selectors with potential matches.
selectors = [all_selectors.get(identifier, None) for identifier in identifiers]
# Intialize a `None` selector.
selector = None
try:
# Find first non-None selector.
# Return the first selector with a match.
selector = next(_selector for _selector in selectors if _selector)
except StopIteration:
pass
return selector | 5,353,591 |
def register_pth_hook(fname, func=None):
"""
::
# Add a pth hook.
@setup.register_pth_hook("hook_name.pth")
def _hook():
'''hook contents.'''
"""
if func is None:
return functools.partial(register_pth_hook, fname)
source = inspect.getsource(func)
if not re.match(
rf"@setup\.register_pth_hook.*\ndef {re.escape(func.__name__)}\(",
source):
raise SyntaxError("register_pth_hook must be used as a toplevel "
"decorator to a function")
_, source = source.split("\n", 1)
_pth_hook_mixin._pth_hooks.append((fname, func.__name__, source)) | 5,353,592 |
def feedzone_to_GIS(input_dictionary):
"""It writes a shapefile (point type) from the wells feedzones position
Parameters
----------
input_dictionary : dictionary
Dictionary contaning the path and name of database on keyword 'db_path'.
Returns
-------
file
well_survey: on the path ../mesh/GIS
Examples
--------
>>> feedzone_to_GIS(input_dictionary)
"""
db_path=input_dictionary['db_path']
conn=sqlite3.connect(db_path)
c=conn.cursor()
wells_data=pd.read_sql_query("SELECT * FROM wellfeedzone ORDER BY well DESC;",conn)
wells=wells_data.well.unique()
wells_info=pd.read_sql_query("SELECT * FROM wells ORDER BY well DESC;",conn)
if len(wells)!=0:
w=shapefile.Writer('../mesh/GIS/well_feedzone')
w.field('WELL', 'C', size=10)
w.field('TYPE', 'C', size=10)
w.field('CONTRIBUTION', 'F', decimal=2)
for i, row in wells_data.iterrows():
x,y,z=MD_to_TVD(row['well'],row['MeasuredDepth'])
w.pointz(x,y,z)
w.record(row['well'],wells_info.loc[wells_info['well']==row['well'],'type'].values[0],row['contribution'])
w.close()
else:
sys.exit("There is no well survey store on the database") | 5,353,593 |
def callable_or_raise(obj):
"""Check that an object is callable, else raise a :exc:`ValueError`.
"""
if not callable(obj):
raise ValueError('Object {0!r} is not callable.'.format(obj))
return obj | 5,353,594 |
def extractLandMarks(fm_results):
"""TODO: add preprocessing/normalization step here"""
x = []
y = []
z = []
for i in range(468):
x.append(fm_results.multi_face_landmarks[0].landmark[i].x)
y.append(fm_results.multi_face_landmarks[0].landmark[i].y)
z.append(fm_results.multi_face_landmarks[0].landmark[i].z)
return x + y + z | 5,353,595 |
def conv_coef(posture="standing", va=0.1, ta=28.8, tsk=34.0,):
"""
Calculate convective heat transfer coefficient (hc) [W/K.m2]
Parameters
----------
posture : str, optional
Select posture from standing, sitting or lying.
The default is "standing".
va : float or iter, optional
Air velocity [m/s]. If iter is input, its length should be 17.
The default is 0.1.
ta : float or iter, optional
Air temperature [oC]. If iter is input, its length should be 17.
The default is 28.8.
tsk : float or iter, optional
Skin temperature [oC]. If iter is input, its length should be 17.
The default is 34.0.
Returns
-------
hc : numpy.ndarray
Convective heat transfer coefficient (hc) [W/K.m2].
"""
# Natural convection
if posture.lower() == "standing":
# Ichihara et al., 1997, https://doi.org/10.3130/aija.62.45_5
hc_natural = np.array([
4.48, 4.48, 2.97, 2.91, 2.85,
3.61, 3.55, 3.67, 3.61, 3.55, 3.67,
2.80, 2.04, 2.04, 2.80, 2.04, 2.04,])
elif posture.lower() in ["sitting", "sedentary"]:
# Ichihara et al., 1997, https://doi.org/10.3130/aija.62.45_5
hc_natural = np.array([
4.75, 4.75, 3.12, 2.48, 1.84,
3.76, 3.62, 2.06, 3.76, 3.62, 2.06,
2.98, 2.98, 2.62, 2.98, 2.98, 2.62,])
elif posture.lower() in ["lying", "supine"]:
# Kurazumi et al., 2008, https://doi.org/10.20718/jjpa.13.1_17
# The values are applied under cold environment.
hc_a = np.array([
1.105, 1.105, 1.211, 1.211, 1.211,
0.913, 2.081, 2.178, 0.913, 2.081, 2.178,
0.945, 0.385, 0.200, 0.945, 0.385, 0.200,])
hc_b = np.array([
0.345, 0.345, 0.046, 0.046, 0.046,
0.373, 0.850, 0.297, 0.373, 0.850, 0.297,
0.447, 0.580, 0.966, 0.447, 0.580, 0.966,])
hc_natural = hc_a * (abs(ta - tsk) ** hc_b)
# Forced convection
# Ichihara et al., 1997, https://doi.org/10.3130/aija.62.45_5
hc_a = np.array([
15.0, 15.0, 11.0, 17.0, 13.0,
17.0, 17.0, 20.0, 17.0, 17.0, 20.0,
14.0, 15.8, 15.1, 14.0, 15.8, 15.1,])
hc_b = np.array([
0.62, 0.62, 0.67, 0.49, 0.60,
0.59, 0.61, 0.60, 0.59, 0.61, 0.60,
0.61, 0.74, 0.62, 0.61, 0.74, 0.62,])
hc_forced = hc_a * (va ** hc_b)
# Select natural or forced hc.
# If local va is under 0.2 m/s, the hc valuse is natural.
hc = np.where(va<0.2, hc_natural, hc_forced) # hc [W/K.m2)]
return hc | 5,353,596 |
def _one_formula(lex, fmt, varname, nvars):
"""Return one DIMACS SAT formula."""
f = _sat_formula(lex, fmt, varname, nvars)
_expect_token(lex, {RPAREN})
return f | 5,353,597 |
def _split_variables(variables):
"""Split variables into always passed (std) and specified (file).
We always pass some variables to each step but need to
explicitly define file and algorithm variables so they can
be linked in as needed.
"""
file_vs = []
std_vs = []
for v in variables:
cur_type = v["type"]
while isinstance(cur_type, dict):
if "items" in cur_type:
cur_type = cur_type["items"]
else:
cur_type = cur_type["type"]
if (cur_type in ["File", "null", "record"] or
(isinstance(cur_type, (list, tuple)) and
("File" in cur_type or {'items': 'File', 'type': 'array'} in cur_type))):
file_vs.append(v)
elif v["id"] in ALWAYS_AVAILABLE:
std_vs.append(v)
else:
file_vs.append(v)
return file_vs, std_vs | 5,353,598 |
def percentiles_fn(data, columns, values=[0.0, 0.25, 0.5, 0.75, 1.0], remove_missing=False):
"""
Task: Get the data values corresponding to the percentile chosen at
the "values" (array of percentiles) after sorting the data.
return -1 if no data was found
:param data: data structure for partitioning
:type data: numpy.ndarray
:param columns: columns or variable names of the data to be used
:type columns: str array
:param values: percentile values to be processed
:type values: float array
:param remove_missing: flag to remove missing values
:type remove_missing: boolean
"""
result = -1
n_elements = data[columns[0]].shape[0]
if n_elements <= 0:
return result
if remove_missing:
data = nomi(data, columns)
n_elements = data[columns[0]].shape[0]
values = numpy.array(values)
if max(values) > 1.0:
values = values * 0.01
#### Get an array of indices of the sorted data
sorted_index_arr = numpy.argsort(data[columns[0]])
ind = None
#### Iterate through each percentile and get the corresponding
#### value at that percentile of the sorted data
for i in range(len(values)):
if (values[i] < 0.0) or (values[i] > 1.0):
return -1
#### Setting ind to the percentile wanted
if values[i] <= 0.5:
ind = int(values[i] * n_elements)
else:
ind = int(values[i] * (n_elements + 1))
if ind >= n_elements:
ind = n_elements - int(1)
if i == 0:
result = data[columns[0]][sorted_index_arr[ind]]
else:
result = numpy.append(result, data[columns[0]][sorted_index_arr[ind]])
return result | 5,353,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.