hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 248 | max_forks_repo_name stringlengths 5 125 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
07c5ea304ad9e83dcc3f691f719157c2c8a1317f | 85 | py | Python | app/auth/__init__.py | louisenje/Pitches | 11248906ffa7d1b6ed6c47db0c5e7bd3b4768825 | [
"Unlicense"
] | null | null | null | app/auth/__init__.py | louisenje/Pitches | 11248906ffa7d1b6ed6c47db0c5e7bd3b4768825 | [
"Unlicense"
] | null | null | null | app/auth/__init__.py | louisenje/Pitches | 11248906ffa7d1b6ed6c47db0c5e7bd3b4768825 | [
"Unlicense"
] | null | null | null | from flask import Blueprint
auth=Blueprint('auth',__name__)
from .import views,forms | 21.25 | 31 | 0.811765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0.070588 |
07c638a7630e99e901331aada0e29b538ff7310d | 1,482 | py | Python | forms/QRGenerator.py | Rono-Barto-Co/Project-QR | e80fc5a41f25542038c090311844912790cb1478 | [
"MIT"
] | 3 | 2019-07-04T03:27:06.000Z | 2019-09-06T08:52:35.000Z | forms/QRGenerator.py | Rono-Barto-Co/Project-QR | e80fc5a41f25542038c090311844912790cb1478 | [
"MIT"
] | null | null | null | forms/QRGenerator.py | Rono-Barto-Co/Project-QR | e80fc5a41f25542038c090311844912790cb1478 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, SelectField
from wtforms.validators import DataRequired
class QRGenerator(FlaskForm):
code_content = StringField('Content', validators=[DataRequired()])
code_size = SelectField('Size', choices=[('15', 'Size'),
... | 54.888889 | 89 | 0.323887 | 1,345 | 0.907557 | 0 | 0 | 0 | 0 | 0 | 0 | 246 | 0.165992 |
07c6a477f6bfebee04a539e1d02b2df95226ab91 | 1,259 | py | Python | Quiz/m2_advanced_quants/l5_volatility/volatility_estimation.py | jcrangel/AI-for-Trading | c3b865e992f8eb8deda91e7641428eef1d343636 | [
"Apache-2.0"
] | null | null | null | Quiz/m2_advanced_quants/l5_volatility/volatility_estimation.py | jcrangel/AI-for-Trading | c3b865e992f8eb8deda91e7641428eef1d343636 | [
"Apache-2.0"
] | null | null | null | Quiz/m2_advanced_quants/l5_volatility/volatility_estimation.py | jcrangel/AI-for-Trading | c3b865e992f8eb8deda91e7641428eef1d343636 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import numpy as np
def estimate_volatility(prices, l):
"""Create an exponential moving average model of the volatility of a stock
price, and return the most recent (last) volatility estimate.
Parameters
----------
prices : pandas.Series
A series of adjusted closing... | 31.475 | 96 | 0.659253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 898 | 0.713264 |
07c6e4237d951b4abd908ba105b7d327ebecef98 | 484 | py | Python | jp.atcoder/abc122/abc122_c/9516079.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc122/abc122_c/9516079.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc122/abc122_c/9516079.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
n, q = map(int, sys.stdin.readline().split())
s = '$' + sys.stdin.readline().rstrip()
lr = zip(*[map(int, sys.stdin.read().split())] * 2)
def main():
res = [None] * (n + 1); res[0] = 0
prev = '$'
for i in range(1, n+1):
res[i] = res[i-1]
res[i] += (prev == 'A' and s[i... | 23.047619 | 52 | 0.452479 | 0 | 0 | 251 | 0.518595 | 0 | 0 | 0 | 0 | 26 | 0.053719 |
07c71ca4f5171ffec7ba2da60f8676b83050c69c | 2,262 | py | Python | Decoder.py | gokulsg/Attention-is-all-you-need-implementation-from-scratch | f5eb591d169cbef3ef8b066d8d462fee11badc3b | [
"MIT"
] | 1 | 2022-02-19T03:51:38.000Z | 2022-02-19T03:51:38.000Z | Decoder.py | gokulsg/Attention-is-all-you-need-implementation-from-scratch | f5eb591d169cbef3ef8b066d8d462fee11badc3b | [
"MIT"
] | null | null | null | Decoder.py | gokulsg/Attention-is-all-you-need-implementation-from-scratch | f5eb591d169cbef3ef8b066d8d462fee11badc3b | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from DecoderLayer import DecoderLayer
import math
class Decoder(nn.Module):
def __init__(self, output_dim, embed_dim, num_layers, num_heads, expand_dim, dropout, device, max_length = 30):
super().__init__()
self.tok_embedding = nn.Embedding(output_dim, emb... | 42.679245 | 122 | 0.597259 | 2,171 | 0.95977 | 0 | 0 | 0 | 0 | 0 | 0 | 370 | 0.163572 |
07c821ec1109c1e7667cac57580d2ee557fe694c | 901 | py | Python | salt/grains/nxos.py | babs/salt | c536ea716d5308880b244e7980f4b659d86fc104 | [
"Apache-2.0"
] | 9,425 | 2015-01-01T05:59:24.000Z | 2022-03-31T20:44:05.000Z | salt/grains/nxos.py | babs/salt | c536ea716d5308880b244e7980f4b659d86fc104 | [
"Apache-2.0"
] | 33,507 | 2015-01-01T00:19:56.000Z | 2022-03-31T23:48:20.000Z | salt/grains/nxos.py | babs/salt | c536ea716d5308880b244e7980f4b659d86fc104 | [
"Apache-2.0"
] | 5,810 | 2015-01-01T19:11:45.000Z | 2022-03-31T02:37:20.000Z | """
Grains for Cisco NX-OS minions
.. versionadded:: 2016.11.0
For documentation on setting up the nxos proxy minion look in the documentation
for :mod:`salt.proxy.nxos<salt.proxy.nxos>`.
"""
import logging
import salt.utils.nxos
import salt.utils.platform
from salt.exceptions import NxosClientError
log = logging.... | 21.97561 | 79 | 0.675916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 242 | 0.26859 |
07c8e1478041c57a7ff67d2397fd305a48517875 | 3,356 | py | Python | tmsproviderapisdk/tms_device.py | tvip/tmsproviderapisdk | f385ddb0d7e87e7a62d1caef3e2c9769e844a4a1 | [
"MIT"
] | null | null | null | tmsproviderapisdk/tms_device.py | tvip/tmsproviderapisdk | f385ddb0d7e87e7a62d1caef3e2c9769e844a4a1 | [
"MIT"
] | null | null | null | tmsproviderapisdk/tms_device.py | tvip/tmsproviderapisdk | f385ddb0d7e87e7a62d1caef3e2c9769e844a4a1 | [
"MIT"
] | null | null | null | from typing import List, Optional, Tuple
from tmsproviderapisdk.tms_extended_model import TmsExtendedModel
class TmsDevice(TmsExtendedModel):
_path_url = "/devices/"
def __init__(self, unique_id: str, account: int, device_id: int = None, ipaddr: str = None, mac: str = None,
remote_custom_fie... | 40.926829 | 120 | 0.598033 | 3,246 | 0.967223 | 0 | 0 | 1,481 | 0.441299 | 0 | 0 | 435 | 0.129619 |
07ca1045f3d1ae1412959e210adfbad3cf54eff0 | 7,676 | py | Python | fealty/fields.py | eddiejessup/fealty | 03745eb98d85bc2a5d08920773ab9c4515462d30 | [
"BSD-3-Clause"
] | null | null | null | fealty/fields.py | eddiejessup/fealty | 03745eb98d85bc2a5d08920773ab9c4515462d30 | [
"BSD-3-Clause"
] | null | null | null | fealty/fields.py | eddiejessup/fealty | 03745eb98d85bc2a5d08920773ab9c4515462d30 | [
"BSD-3-Clause"
] | null | null | null | """
A class hierarchy relating to fields of all kinds.
"""
from __future__ import print_function, division
import numpy as np
from ciabatta.meta import make_repr_str
from fealty import lattice, field_numerics, walled_field_numerics
class Space(object):
def __init__(self, L, dim):
self.L = L
self.... | 29.186312 | 74 | 0.60839 | 3,388 | 0.441376 | 0 | 0 | 301 | 0.039213 | 0 | 0 | 737 | 0.096014 |
07cb2143ea47874c58c2e1ce2165dfb24f78e2e2 | 583 | py | Python | examples/example_django/example_django/asgi.py | cpascariello/aleph-vm | 1b4920bec211ef3bd379e9359f57f06b9308c1a1 | [
"MIT"
] | 19 | 2021-04-13T14:01:06.000Z | 2022-02-19T00:45:05.000Z | examples/example_django/example_django/asgi.py | cpascariello/aleph-vm | 1b4920bec211ef3bd379e9359f57f06b9308c1a1 | [
"MIT"
] | 65 | 2021-04-14T09:02:24.000Z | 2022-03-29T07:56:03.000Z | examples/example_django/example_django/asgi.py | cpascariello/aleph-vm | 1b4920bec211ef3bd379e9359f57f06b9308c1a1 | [
"MIT"
] | 9 | 2021-06-01T23:03:28.000Z | 2022-02-17T20:24:57.000Z | """
ASGI config for example_django project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANG... | 26.5 | 78 | 0.766724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 418 | 0.716981 |
07cc54388c8061e52f8dc1aa33c14d904afe5143 | 3,964 | py | Python | lectures/extensions/hyperbolic_discounting/replication_code/src/analysis/get_bivariate_distr_data.py | loikein/ekw-lectures | a2f5436f10515ab26eab323fca8c37c91bdc5dcd | [
"MIT"
] | 4 | 2019-11-15T15:21:27.000Z | 2020-07-08T15:04:30.000Z | lectures/extensions/hyperbolic_discounting/replication_code/src/analysis/get_bivariate_distr_data.py | loikein/ekw-lectures | a2f5436f10515ab26eab323fca8c37c91bdc5dcd | [
"MIT"
] | 9 | 2019-11-18T15:54:36.000Z | 2020-07-14T13:56:53.000Z | lectures/extensions/hyperbolic_discounting/replication_code/src/analysis/get_bivariate_distr_data.py | loikein/ekw-lectures | a2f5436f10515ab26eab323fca8c37c91bdc5dcd | [
"MIT"
] | 3 | 2021-01-25T15:41:30.000Z | 2021-09-21T08:51:36.000Z | """Generate values of Method of Simulated Moments criterion function.
Given observed moments and weighting matrix in `OUT_ANALYSIS`, "msm_estimation",
generate values of Method of Simulated Moments criterion function for combinations
of discount factor and present bias values.
The goal is to study the bivariate distr... | 36.703704 | 97 | 0.726791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,411 | 0.355954 |
07cdddcbeb3cb4de7a49a05fd2f00ba890200e08 | 180 | py | Python | space_game/events/KeyPressedEvent.py | Iwomichu/probable-giggle | 2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc | [
"MIT"
] | 1 | 2020-11-30T11:21:21.000Z | 2020-11-30T11:21:21.000Z | space_game/events/KeyPressedEvent.py | Iwomichu/probable-giggle | 2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc | [
"MIT"
] | 5 | 2020-11-03T16:46:49.000Z | 2021-01-24T14:29:24.000Z | space_game/events/KeyPressedEvent.py | Iwomichu/probable-giggle | 2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from space_game.domain_names import KeyId
from space_game.events.Event import Event
@dataclass
class KeyPressedEvent(Event):
key_id: KeyId
| 18 | 41 | 0.822222 | 47 | 0.261111 | 0 | 0 | 58 | 0.322222 | 0 | 0 | 0 | 0 |
07cebbfa2f7886d8fbfa5e82f77ae6da2ef52744 | 703 | py | Python | src/oncall/messengers/teams_messenger.py | navoday-91/oncall | 0a977f06bbf308978d0d2c2b46e0aca23937ca9a | [
"BSD-2-Clause"
] | 857 | 2017-05-03T00:59:10.000Z | 2022-03-29T06:45:23.000Z | src/oncall/messengers/teams_messenger.py | navoday-91/oncall | 0a977f06bbf308978d0d2c2b46e0aca23937ca9a | [
"BSD-2-Clause"
] | 142 | 2017-05-03T02:00:58.000Z | 2022-03-25T20:58:11.000Z | src/oncall/messengers/teams_messenger.py | navoday-91/oncall | 0a977f06bbf308978d0d2c2b46e0aca23937ca9a | [
"BSD-2-Clause"
] | 218 | 2017-05-03T02:04:56.000Z | 2022-03-25T18:28:04.000Z | import pymsteams
import logging
from oncall.constants import TEAMS_SUPPORT
class teams_messenger(object):
supports = frozenset([TEAMS_SUPPORT])
def __init__(self, config):
self.webhook = config['webhook']
def send(self, message):
heading = message.get("subject")
final_message = "... | 30.565217 | 91 | 0.651494 | 625 | 0.889047 | 0 | 0 | 0 | 0 | 0 | 0 | 109 | 0.15505 |
07cf43823d8f9a2b976bcf3456b4ba03ebef67d9 | 11,632 | py | Python | python/chronos/src/bigdl/chronos/autots/model/auto_prophet.py | Laniakea94/BigDL | 4d01734086dda893a7f08ba53251dc3c5c8ecfd1 | [
"Apache-2.0"
] | 3 | 2021-07-14T01:28:47.000Z | 2022-03-02T01:16:32.000Z | python/chronos/src/bigdl/chronos/autots/model/auto_prophet.py | liangs6212/BigDL | 3c89ff7e8bbdc713110536c18099506811cd2b3a | [
"Apache-2.0"
] | null | null | null | python/chronos/src/bigdl/chronos/autots/model/auto_prophet.py | liangs6212/BigDL | 3c89ff7e8bbdc713110536c18099506811cd2b3a | [
"Apache-2.0"
] | null | null | null | # +
#
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 48.066116 | 121 | 0.616145 | 10,862 | 0.933803 | 0 | 0 | 0 | 0 | 0 | 0 | 6,656 | 0.572215 |
07cfa7c073692f7ff81f78defb2e3541ec3803be | 13,313 | py | Python | nf/flows.py | arita37/normalizing-flows | c9896656bfd2007b0c17b801c0fe068560127301 | [
"MIT"
] | 1 | 2019-11-11T05:40:30.000Z | 2019-11-11T05:40:30.000Z | nf/flows.py | arita37/normalizing-flows | c9896656bfd2007b0c17b801c0fe068560127301 | [
"MIT"
] | null | null | null | nf/flows.py | arita37/normalizing-flows | c9896656bfd2007b0c17b801c0fe068560127301 | [
"MIT"
] | null | null | null | import math
import numpy as np
import scipy as sp
import scipy.linalg
import torch
import torch.nn as nn
import torch.nn.init as init
import torch.nn.functional as F
from nf.utils import unconstrained_RQS
# supported non-linearities: note that the function must be invertible
functional_derivatives = {
torch.tanh: ... | 35.312997 | 80 | 0.533539 | 12,669 | 0.951198 | 0 | 0 | 0 | 0 | 0 | 0 | 1,033 | 0.077558 |
07d1d3b232129762c8438710d6931bc551a36122 | 5,286 | py | Python | ioos_qc/config_creator/fx_parser.py | HakaiInstitute/ioos_qc | dfb28ee404a17c8355747b792fba0471093953c4 | [
"Apache-2.0"
] | null | null | null | ioos_qc/config_creator/fx_parser.py | HakaiInstitute/ioos_qc | dfb28ee404a17c8355747b792fba0471093953c4 | [
"Apache-2.0"
] | null | null | null | ioos_qc/config_creator/fx_parser.py | HakaiInstitute/ioos_qc | dfb28ee404a17c8355747b792fba0471093953c4 | [
"Apache-2.0"
] | 1 | 2021-01-20T23:20:06.000Z | 2021-01-20T23:20:06.000Z | # module pyparsing.py
#
# Copyright (c) 2003-2019 Paul T. McGuire
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, cop... | 31.278107 | 112 | 0.600643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,632 | 0.497919 |
07d274563189ebc57a38c1571e12c09ed638080d | 18,828 | py | Python | scanlogger.py | pythonhacker/pyscanlogd | 64d6ad38127243e5c422be7f899ecfa802e1ad21 | [
"BSD-3-Clause"
] | 1 | 2021-04-03T22:15:06.000Z | 2021-04-03T22:15:06.000Z | scanlogger.py | pythonhacker/pyscanlogd | 64d6ad38127243e5c422be7f899ecfa802e1ad21 | [
"BSD-3-Clause"
] | null | null | null | scanlogger.py | pythonhacker/pyscanlogd | 64d6ad38127243e5c422be7f899ecfa802e1ad21 | [
"BSD-3-Clause"
] | 2 | 2020-12-18T20:06:21.000Z | 2021-04-08T02:47:40.000Z | # -- coding: utf-8
#!/usr/bin/env python
"""
pyscanlogger: Port scan detector/logger tool, inspired
by scanlogd {http://www.openwall.com/scanlogd} but with
added ability to log slow port-scans.
Features
1. Detects all stealth (half-open) and full-connect scans.
2. Detects Idle scan and logs it correctly usi... | 37.8833 | 132 | 0.468929 | 16,718 | 0.887933 | 0 | 0 | 0 | 0 | 0 | 0 | 4,753 | 0.252443 |
07d2a6693b06381833978cbf344d430f2c2b518b | 4,539 | py | Python | src/util/util.py | ashleylst/DSDmodel | 4276c832e0335539aef2ae2b33e23719957a3f08 | [
"MIT"
] | 1 | 2021-07-26T17:30:16.000Z | 2021-07-26T17:30:16.000Z | src/util/util.py | ashleylst/DSDmodel | 4276c832e0335539aef2ae2b33e23719957a3f08 | [
"MIT"
] | null | null | null | src/util/util.py | ashleylst/DSDmodel | 4276c832e0335539aef2ae2b33e23719957a3f08 | [
"MIT"
] | 2 | 2020-06-29T15:43:22.000Z | 2021-05-12T08:25:03.000Z | from itertools import combinations
import copy
def get_reverse(n):
if n == 1:
return 0
else:
return 1
def get_edge_info(e):
v = [0 for i in range(2)]
n = [0 for i in range(2)]
t = 0
for x in e:
v[t], n[t] = x
t += 1
return v, n
def sort_e_by_domain(val)... | 22.695 | 89 | 0.516193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 304 | 0.066975 |
07d5b427e69bdc09287f1c66c02797e0db0b274b | 1,218 | py | Python | examples/question_answering/qa_sparse_train.py | ebell495/nn_pruning | 41263ab898117a639f3f219c23a4cecc8bc0e3f3 | [
"Apache-2.0"
] | 250 | 2021-02-22T15:50:04.000Z | 2022-03-31T08:12:02.000Z | examples/question_answering/qa_sparse_train.py | vuiseng9/nn_pruning | 8f4a14dd63d621483cbc1bc4eb34600d66e9e71b | [
"Apache-2.0"
] | 28 | 2021-02-22T15:54:34.000Z | 2022-03-17T08:57:38.000Z | examples/question_answering/qa_sparse_train.py | vuiseng9/nn_pruning | 8f4a14dd63d621483cbc1bc4eb34600d66e9e71b | [
"Apache-2.0"
] | 31 | 2021-02-22T16:07:17.000Z | 2022-03-28T09:17:24.000Z | # coding=utf-8
# Copyright 2020 The HuggingFace Team All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 43.5 | 128 | 0.769294 | 202 | 0.165846 | 0 | 0 | 0 | 0 | 0 | 0 | 912 | 0.748768 |
07d6951331a7c029a2698e9098ae813a023bef49 | 10,729 | py | Python | ironic/drivers/modules/ilo/raid.py | armohamm/ironic | 21093ca886ed736a7a25bf5e71e05d41e132fd2f | [
"Apache-2.0"
] | 2 | 2019-06-17T21:37:53.000Z | 2020-07-11T03:58:39.000Z | ironic/drivers/modules/ilo/raid.py | armohamm/ironic | 21093ca886ed736a7a25bf5e71e05d41e132fd2f | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | ironic/drivers/modules/ilo/raid.py | armohamm/ironic | 21093ca886ed736a7a25bf5e71e05d41e132fd2f | [
"Apache-2.0"
] | 6 | 2019-06-13T12:49:33.000Z | 2021-04-17T16:33:19.000Z | # Copyright 2018 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 45.461864 | 79 | 0.609004 | 9,456 | 0.88135 | 0 | 0 | 7,435 | 0.692982 | 0 | 0 | 3,737 | 0.348308 |
07d7992d7ae8299b452c378aa6d4664a38bab354 | 1,252 | py | Python | src/petronia/aid/bootstrap/__init__.py | groboclown/petronia | 486338023d19cee989e92f0c5692680f1a37811f | [
"MIT"
] | 19 | 2017-06-21T10:28:24.000Z | 2021-12-31T11:49:28.000Z | src/petronia/aid/bootstrap/__init__.py | groboclown/petronia | 486338023d19cee989e92f0c5692680f1a37811f | [
"MIT"
] | 10 | 2016-11-11T18:57:57.000Z | 2021-02-01T15:33:43.000Z | src/petronia/aid/bootstrap/__init__.py | groboclown/petronia | 486338023d19cee989e92f0c5692680f1a37811f | [
"MIT"
] | 3 | 2017-09-17T03:29:35.000Z | 2019-06-03T10:43:08.000Z |
"""
Common Petronia imports for bootstrap parts of an extension.
This should be imported along with the `simp` module.
"""
from ...base.bus import (
EventBus,
ListenerRegistrar,
ListenerSetup,
QueuePriority,
ExtensionMetadataStruct,
register_event,
EVENT_WILDCARD,
TARGET_WILDCARD,
... | 19.261538 | 60 | 0.747604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 167 | 0.133387 |
07d9159827c315605286d46a4f7de494b7d7489e | 3,251 | py | Python | examples/dump-properties.py | zachjweiner/pyopencl | 4e2e4f3150c331680e6d9e36c59290411e4a0c40 | [
"Apache-2.0"
] | 7 | 2020-11-23T09:26:17.000Z | 2021-01-26T08:23:30.000Z | examples/dump-properties.py | zachjweiner/pyopencl | 4e2e4f3150c331680e6d9e36c59290411e4a0c40 | [
"Apache-2.0"
] | null | null | null | examples/dump-properties.py | zachjweiner/pyopencl | 4e2e4f3150c331680e6d9e36c59290411e4a0c40 | [
"Apache-2.0"
] | 1 | 2020-12-14T05:12:10.000Z | 2020-12-14T05:12:10.000Z | import pyopencl as cl
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-s", "--short", action="store_true",
help="don't print all device properties")
(options, args) = parser.parse_args()
def print_info(obj, info_cls):
for info_name in sorted(dir(info_cls)):
... | 38.702381 | 83 | 0.450015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 408 | 0.1255 |
07da573d0a32afbfa2ea160efcad1a4e21eef4c3 | 42,106 | py | Python | interfaces/acados_template/acados_template/acados_ocp_solver.py | jgillis/acados | 3119e2dda636a8358fbd52247eb0163a167cbc97 | [
"BSD-2-Clause"
] | 1 | 2020-07-30T10:54:35.000Z | 2020-07-30T10:54:35.000Z | interfaces/acados_template/acados_template/acados_ocp_solver.py | jgillis/acados | 3119e2dda636a8358fbd52247eb0163a167cbc97 | [
"BSD-2-Clause"
] | null | null | null | interfaces/acados_template/acados_template/acados_ocp_solver.py | jgillis/acados | 3119e2dda636a8358fbd52247eb0163a167cbc97 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: future_fstrings -*-
#
# Copyright 2019 Gianluca Frison, Dimitris Kouzoupis, Robin Verschueren,
# Andrea Zanelli, Niels van Duijkeren, Jonathan Frey, Tommaso Sartor,
# Branimir Novoselnik, Rien Quirynen, Rezart Qelibari, Dang Doan,
# Jonas Koenemann, Yutao Chen, Tobias Schöls, Jonas Schlagenhauf, Moritz Di... | 40.525505 | 175 | 0.644682 | 17,462 | 0.414705 | 0 | 0 | 0 | 0 | 0 | 0 | 12,470 | 0.29615 |
07da9e40651ed6fdc8a2ae109d81653125f5c378 | 5,128 | py | Python | noise/estimation/PCA/analyticNoiseEstimation_PCA.py | MaikWischow/Camera-Condition-Monitoring | 910f9192d6309a6803ab76c346269fa5029c38e6 | [
"MIT"
] | 3 | 2021-12-10T14:52:23.000Z | 2022-03-22T08:48:08.000Z | noise/estimation/PCA/analyticNoiseEstimation_PCA.py | MaikWischow/Camera-Condition-Monitoring | 910f9192d6309a6803ab76c346269fa5029c38e6 | [
"MIT"
] | null | null | null | noise/estimation/PCA/analyticNoiseEstimation_PCA.py | MaikWischow/Camera-Condition-Monitoring | 910f9192d6309a6803ab76c346269fa5029c38e6 | [
"MIT"
] | 2 | 2021-12-13T08:12:52.000Z | 2022-01-17T14:00:48.000Z | import numpy as np
import cv2
import sys
import os
import glob
def im2patch(im, pch_size, stride=1):
'''
Transform image to patches.
Input:
im: 3 x H x W or 1 X H x W image, numpy format
pch_size: (int, int) tuple or integer
stride: (int, int) tuple or integer
'''
if isinsta... | 34.884354 | 136 | 0.576248 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,712 | 0.333853 |
07dab8d1754575bc1f3f83e4e0cadea3c8dcd3af | 8,104 | py | Python | src/biotite/application/application.py | claudejrogers/biotite | 3635bc9071506ecb85ddd9b1dbe6a430295e060e | [
"BSD-3-Clause"
] | null | null | null | src/biotite/application/application.py | claudejrogers/biotite | 3635bc9071506ecb85ddd9b1dbe6a430295e060e | [
"BSD-3-Clause"
] | null | null | null | src/biotite/application/application.py | claudejrogers/biotite | 3635bc9071506ecb85ddd9b1dbe6a430295e060e | [
"BSD-3-Clause"
] | null | null | null | # This source code is part of the Biotite package and is distributed
# under the 3-Clause BSD License. Please see 'LICENSE.rst' for further
# information.
__name__ = "biotite.application"
__author__ = "Patrick Kunzmann"
__all__ = ["Application", "AppStateError", "TimeoutError", "VersionError",
"AppState", "... | 31.169231 | 79 | 0.604516 | 6,536 | 0.806515 | 0 | 0 | 3,705 | 0.457182 | 0 | 0 | 5,525 | 0.681762 |
07db7794b6d98e1a7fc4b7e5727cce2c98e1474f | 8,162 | py | Python | python/paddle/tensor/attribute.py | douch/Paddle | 81c40722869935d6e897f4b1aeb6e6f67606188a | [
"Apache-2.0"
] | 1 | 2021-12-27T02:40:41.000Z | 2021-12-27T02:40:41.000Z | python/paddle/tensor/attribute.py | LiYuRio/Paddle | dbd6e2df9d074973b7ee177e2d6b96ed2318008e | [
"Apache-2.0"
] | null | null | null | python/paddle/tensor/attribute.py | LiYuRio/Paddle | dbd6e2df9d074973b7ee177e2d6b96ed2318008e | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 33.178862 | 115 | 0.590787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,163 | 0.632566 |
07de8a38f3e34f5218e591e882773caeb8f88eba | 1,256 | py | Python | ocdsmerge/exceptions.py | open-contracting/ocds-merge | 80c7cb380d191c75f88feefd34b607bc0de13ee1 | [
"BSD-3-Clause"
] | 4 | 2017-09-06T06:14:09.000Z | 2019-07-05T13:11:40.000Z | ocdsmerge/exceptions.py | open-contracting/ocds-merge | 80c7cb380d191c75f88feefd34b607bc0de13ee1 | [
"BSD-3-Clause"
] | 20 | 2017-11-25T02:29:41.000Z | 2020-01-08T18:45:49.000Z | ocdsmerge/exceptions.py | open-contracting/ocds-merge | 80c7cb380d191c75f88feefd34b607bc0de13ee1 | [
"BSD-3-Clause"
] | 1 | 2018-11-07T14:05:12.000Z | 2018-11-07T14:05:12.000Z | class OCDSMergeError(Exception):
"""Base class for exceptions from within this package"""
class MissingDateKeyError(OCDSMergeError, KeyError):
"""Raised when a release is missing a 'date' key"""
def __init__(self, key, message):
self.key = key
self.message = message
def __str__(self)... | 27.304348 | 97 | 0.700637 | 1,234 | 0.982484 | 0 | 0 | 0 | 0 | 0 | 0 | 479 | 0.381369 |
07dedb4b0df0aef6400f3a4ca8f79f22e2a6cabd | 2,990 | py | Python | appcodec.py | guardhunt/TelemterRC | 679f99b317ecc6cbef6e022ae861cde18594f6a0 | [
"MIT"
] | null | null | null | appcodec.py | guardhunt/TelemterRC | 679f99b317ecc6cbef6e022ae861cde18594f6a0 | [
"MIT"
] | null | null | null | appcodec.py | guardhunt/TelemterRC | 679f99b317ecc6cbef6e022ae861cde18594f6a0 | [
"MIT"
] | null | null | null | import evdev
import time
import struct
class appcodec():
def __init__(self):
self.device = evdev.InputDevice("/dev/input/event2")
self.capabilities = self.device.capabilities(verbose=True)
self.capaRAW = self.device.capabilities(absinfo=False)
self.config = {}
self.state = {... | 37.375 | 262 | 0.585619 | 2,949 | 0.986288 | 0 | 0 | 0 | 0 | 0 | 0 | 357 | 0.119398 |
07dee507ce31e115b2b94a29d53cdc5c3d4bd0df | 2,316 | py | Python | scripts/examples/OpenMV/16-Codes/find_barcodes.py | jiskra/openmv | a0f321836f77f94d8118910598dcdb79eb784d58 | [
"MIT"
] | 1,761 | 2015-07-10T23:14:17.000Z | 2022-03-30T07:49:49.000Z | scripts/examples/OpenMV/16-Codes/find_barcodes.py | jiskra/openmv | a0f321836f77f94d8118910598dcdb79eb784d58 | [
"MIT"
] | 487 | 2015-07-07T23:21:20.000Z | 2022-03-30T17:13:22.000Z | scripts/examples/OpenMV/16-Codes/find_barcodes.py | jiskra/openmv | a0f321836f77f94d8118910598dcdb79eb784d58 | [
"MIT"
] | 882 | 2015-08-01T08:34:19.000Z | 2022-03-30T07:36:23.000Z | # Barcode Example
#
# This example shows off how easy it is to detect bar codes using the
# OpenMV Cam M7. Barcode detection does not work on the M4 Camera.
import sensor, image, time, math
sensor.reset()
sensor.set_pixformat(sensor.GRAYSCALE)
sensor.set_framesize(sensor.VGA) # High Res!
sensor.set_windowing((640, 80... | 35.090909 | 121 | 0.638169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 814 | 0.351468 |
07df8ef3eee337410a8a9059f852b86e3f074f99 | 102 | py | Python | Python/factorial.py | devaslooper/Code-Overflow | d7d55ea0f5015bccb5c4100c4240464fcda8504a | [
"MIT"
] | null | null | null | Python/factorial.py | devaslooper/Code-Overflow | d7d55ea0f5015bccb5c4100c4240464fcda8504a | [
"MIT"
] | null | null | null | Python/factorial.py | devaslooper/Code-Overflow | d7d55ea0f5015bccb5c4100c4240464fcda8504a | [
"MIT"
] | null | null | null | n=int(input("Enter number "))
fact=1
for i in range(1,n+1):
fact=fact*i
print("Factorial is ",fact)
| 17 | 29 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 30 | 0.294118 |
07e01a30113159cdf23415b99ef5107294e27bab | 606 | py | Python | mundo 3/099.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | 1 | 2021-08-04T13:21:22.000Z | 2021-08-04T13:21:22.000Z | mundo 3/099.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | null | null | null | mundo 3/099.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | null | null | null | import time
# O * é para desempacotar o paramêtro. Permite atribuir inumeros parametros.
def maior(* num):
contador = maior = 0
print('Analisando os valores passados...')
for v in num:
contador = contador + 1
print(f'{v} ', end='', flush=True)
time.sleep(0.3)
if contador == 1... | 23.307692 | 76 | 0.544554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 206 | 0.338816 |
07e0af37e19269400d7c0cf5ac0dc3b1672e18e4 | 10,752 | py | Python | tests/test_packed_to_padded.py | theycallmepeter/pytorch3d_PBR | bc83c23969ff7843fc05d2da001952b368926174 | [
"BSD-3-Clause"
] | null | null | null | tests/test_packed_to_padded.py | theycallmepeter/pytorch3d_PBR | bc83c23969ff7843fc05d2da001952b368926174 | [
"BSD-3-Clause"
] | null | null | null | tests/test_packed_to_padded.py | theycallmepeter/pytorch3d_PBR | bc83c23969ff7843fc05d2da001952b368926174 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import unittest
import torch
from common_testing import TestCaseMixin, get_random_cuda_device
from pyt... | 39.384615 | 89 | 0.628255 | 10,324 | 0.960193 | 0 | 0 | 3,877 | 0.360584 | 0 | 0 | 815 | 0.0758 |
07e0ba1b41406f219565825c5f80d1ee0cfaded5 | 8,638 | py | Python | easyric/tests/test_io_geotiff.py | HowcanoeWang/EasyRIC | a3420bc7b1e0f1013411565cf0e66dd2d2ba5371 | [
"MIT"
] | 12 | 2021-01-25T07:11:52.000Z | 2022-02-14T11:57:03.000Z | easyric/tests/test_io_geotiff.py | HowcanoeWang/EasyRIC | a3420bc7b1e0f1013411565cf0e66dd2d2ba5371 | [
"MIT"
] | null | null | null | easyric/tests/test_io_geotiff.py | HowcanoeWang/EasyRIC | a3420bc7b1e0f1013411565cf0e66dd2d2ba5371 | [
"MIT"
] | null | null | null | import pyproj
import pytest
import numpy as np
from easyric.io import geotiff, shp
from skimage.io import imread
from skimage.color import rgb2gray
import matplotlib.pyplot as plt
def test_prase_header_string_width():
out_dict = geotiff._prase_header_string("* 256 image_width (1H) 13503")
assert out_dict['widt... | 37.232759 | 117 | 0.683376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,735 | 0.316624 |
07e0cae8b52445fc39f360d69691eeb8e3e8f35e | 9,833 | py | Python | src/ebay_rest/api/buy_marketplace_insights/models/item_location.py | matecsaj/ebay_rest | dd23236f39e05636eff222f99df1e3699ce47d4a | [
"MIT"
] | 3 | 2021-12-12T04:28:03.000Z | 2022-03-10T03:29:18.000Z | src/ebay_rest/api/buy_marketplace_insights/models/item_location.py | jdavv/ebay_rest | 20fc88c6aefdae9ab90f9c1330e79abddcd750cd | [
"MIT"
] | 33 | 2021-06-16T20:44:36.000Z | 2022-03-30T14:55:06.000Z | src/ebay_rest/api/buy_marketplace_insights/models/item_location.py | jdavv/ebay_rest | 20fc88c6aefdae9ab90f9c1330e79abddcd750cd | [
"MIT"
] | 7 | 2021-06-03T09:30:23.000Z | 2022-03-08T19:51:33.000Z | # coding: utf-8
"""
Marketplace Insights API
<a href=\"https://developer.ebay.com/api-docs/static/versioning.html#limited\" target=\"_blank\"> <img src=\"/cms/img/docs/partners-api.svg\" class=\"legend-icon partners-icon\" title=\"Limited Release\" alt=\"Limited Release\" />(Limited Release)</a> The Marketpl... | 34.992883 | 442 | 0.616699 | 9,169 | 0.932472 | 0 | 0 | 5,635 | 0.57307 | 0 | 0 | 5,975 | 0.607648 |
07e1c7308c17fb9509fe646f19b12d537b946ccf | 502 | py | Python | fractionalKnapsack.py | aadishgoel2013/Algos-with-Python | 19541607c8ede9a76a8cbbe047e01343080cfd5b | [
"Apache-2.0"
] | 6 | 2017-11-12T05:13:27.000Z | 2022-03-13T07:58:31.000Z | fractionalKnapsack.py | aadishgoel2013/Algos-with-Python | 19541607c8ede9a76a8cbbe047e01343080cfd5b | [
"Apache-2.0"
] | null | null | null | fractionalKnapsack.py | aadishgoel2013/Algos-with-Python | 19541607c8ede9a76a8cbbe047e01343080cfd5b | [
"Apache-2.0"
] | null | null | null | # Fractional Knapsack
wt = [40,50,30,10,10,40,30]
pro = [30,20,20,25,5,35,15]
n = len(wt)
data = [ (i,pro[i],wt[i]) for i in range(n) ]
bag = 100
data.sort(key=lambda x: x[1]/x[2], reverse=True)
profit=0
ans=[]
i=0
while i<n:
if data[i][2]<=bag:
bag-=data[i][2]
ans.append(data[i... | 17.310345 | 49 | 0.498008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 22 | 0.043825 |
07e2537b3e43653ce0616ed6421ef634050042c8 | 3,085 | py | Python | pysrc/classifier.py | CrackerCat/xed | 428712c28e831573579b7f749db63d3a58dcdbd9 | [
"Apache-2.0"
] | 1,261 | 2016-12-16T14:29:30.000Z | 2022-03-30T20:21:25.000Z | pysrc/classifier.py | CrackerCat/xed | 428712c28e831573579b7f749db63d3a58dcdbd9 | [
"Apache-2.0"
] | 190 | 2016-12-17T13:44:09.000Z | 2022-03-27T09:28:13.000Z | pysrc/classifier.py | CrackerCat/xed | 428712c28e831573579b7f749db63d3a58dcdbd9 | [
"Apache-2.0"
] | 155 | 2016-12-16T22:17:20.000Z | 2022-02-16T20:53:59.000Z | #!/usr/bin/env python
# -*- python -*-
#BEGIN_LEGAL
#
#Copyright (c) 2019 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-... | 39.551282 | 96 | 0.647326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,324 | 0.429173 |
07e2d1b8a7c46e378298b64b296fe93ed48acbf5 | 1,828 | py | Python | tests/integration/api/test_target_groups.py | lanz/Tenable.io-SDK-for-Python | e81a61c369ac103d1524b0898153a569536a131e | [
"MIT"
] | 90 | 2017-02-02T18:36:17.000Z | 2022-02-05T17:58:50.000Z | tests/integration/api/test_target_groups.py | lanz/Tenable.io-SDK-for-Python | e81a61c369ac103d1524b0898153a569536a131e | [
"MIT"
] | 64 | 2017-02-03T00:54:00.000Z | 2020-08-06T14:06:50.000Z | tests/integration/api/test_target_groups.py | lanz/Tenable.io-SDK-for-Python | e81a61c369ac103d1524b0898153a569536a131e | [
"MIT"
] | 49 | 2017-02-03T01:01:00.000Z | 2022-02-25T13:25:28.000Z | import pytest
from tenable_io.api.target_groups import TargetListEditRequest
from tenable_io.api.models import TargetGroup, TargetGroupList
@pytest.mark.vcr()
def test_target_groups_create(new_target_group):
assert isinstance(new_target_group, TargetGroup), u'The `create` method did not return type `TargetGroup`... | 44.585366 | 119 | 0.784464 | 0 | 0 | 0 | 0 | 1,672 | 0.914661 | 0 | 0 | 507 | 0.277352 |
07e312b03c9acc9dee5930a523090053e38045ca | 85,560 | py | Python | Installation/nnAudio/Spectrogram.py | tasercake/nnAudio | 5edc37b7b73674598d533261314429b875ba285d | [
"MIT"
] | null | null | null | Installation/nnAudio/Spectrogram.py | tasercake/nnAudio | 5edc37b7b73674598d533261314429b875ba285d | [
"MIT"
] | null | null | null | Installation/nnAudio/Spectrogram.py | tasercake/nnAudio | 5edc37b7b73674598d533261314429b875ba285d | [
"MIT"
] | null | null | null | """
Module containing all the spectrogram classes
"""
# 0.2.0
import torch
import torch.nn as nn
from torch.nn.functional import conv1d, conv2d, fold
import numpy as np
from time import time
from nnAudio.librosa_functions import *
from nnAudio.utils import *
sz_float = 4 # size of a float
epsilon = 10e-8 # fudg... | 41.695906 | 172 | 0.593233 | 85,031 | 0.993457 | 0 | 0 | 0 | 0 | 0 | 0 | 43,422 | 0.50732 |
07e4a4e5e49ff1a01f2886f954c1382ba8822f86 | 9,352 | py | Python | train.py | hui-won/KoBART_Project | 105608997473abc669d777c588d56382efb524c6 | [
"MIT"
] | 13 | 2020-12-30T15:09:08.000Z | 2022-01-02T08:11:18.000Z | train.py | hui-won/KoBART_Project | 105608997473abc669d777c588d56382efb524c6 | [
"MIT"
] | 2 | 2021-11-21T11:49:31.000Z | 2022-03-18T05:09:13.000Z | train.py | hui-won/KoBART_Project | 105608997473abc669d777c588d56382efb524c6 | [
"MIT"
] | 1 | 2021-06-15T01:24:18.000Z | 2021-06-15T01:24:18.000Z | import argparse
import logging
import os
import numpy as np
import pandas as pd
import pytorch_lightning as pl
import torch
from pytorch_lightning import loggers as pl_loggers
from torch.utils.data import DataLoader, Dataset
from dataset import KoBARTSummaryDataset
from transformers import BartForConditionalGeneration,... | 39.627119 | 153 | 0.559773 | 7,034 | 0.752139 | 0 | 0 | 2,182 | 0.233319 | 0 | 0 | 978 | 0.104577 |
07e4f4a4fe370f9d6aeaae97b9bd2ee2d9364898 | 11,945 | py | Python | homeassistant/components/shelly/sensor.py | RavensburgOP/core | 0ea76e848b182ca0ebb0fdb54558f7f733898ad7 | [
"Apache-2.0"
] | 1 | 2019-08-28T00:54:28.000Z | 2019-08-28T00:54:28.000Z | homeassistant/components/shelly/sensor.py | RavensburgOP/core | 0ea76e848b182ca0ebb0fdb54558f7f733898ad7 | [
"Apache-2.0"
] | 71 | 2020-07-14T09:08:56.000Z | 2022-03-31T06:01:47.000Z | homeassistant/components/shelly/sensor.py | Vaarlion/core | f3de8b9f28de01abf72c0f5bb0b457eb1841f201 | [
"Apache-2.0"
] | null | null | null | """Sensor for Shelly."""
from __future__ import annotations
from datetime import timedelta
import logging
from typing import Final, cast
import aioshelly
from homeassistant.components import sensor
from homeassistant.components.sensor import SensorEntity
from homeassistant.config_entries import ConfigEntry
from home... | 34.226361 | 84 | 0.669904 | 2,721 | 0.227794 | 0 | 0 | 1,665 | 0.139389 | 640 | 0.053579 | 1,322 | 0.110674 |
07e5b14fe954fccf9ada38a8fb44f9dd227c6830 | 1,301 | py | Python | tests/web/config.py | zcqian/biothings.api | 61c0300317cf2ac7db8310b5b5741ad9b08c4163 | [
"Apache-2.0"
] | null | null | null | tests/web/config.py | zcqian/biothings.api | 61c0300317cf2ac7db8310b5b5741ad9b08c4163 | [
"Apache-2.0"
] | null | null | null | tests/web/config.py | zcqian/biothings.api | 61c0300317cf2ac7db8310b5b5741ad9b08c4163 | [
"Apache-2.0"
] | null | null | null | """
Web settings to override for testing.
"""
import os
from biothings.web.settings.default import QUERY_KWARGS
# *****************************************************************************
# Elasticsearch Variables
# *****************************************************************************
ES_INDEX = 'bts_... | 34.236842 | 79 | 0.362798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 946 | 0.727133 |
07e700a1cf3d3463190722de4956e44165a923c7 | 1,969 | py | Python | InvenTree/InvenTree/management/commands/rebuild_thumbnails.py | rocheparadox/InvenTree | 76c1e936db78424e0d6953c4062eb32863e302c6 | [
"MIT"
] | 656 | 2017-03-29T22:06:14.000Z | 2022-03-30T11:23:52.000Z | InvenTree/InvenTree/management/commands/rebuild_thumbnails.py | rocheparadox/InvenTree | 76c1e936db78424e0d6953c4062eb32863e302c6 | [
"MIT"
] | 1,545 | 2017-04-10T23:26:04.000Z | 2022-03-31T18:32:10.000Z | InvenTree/InvenTree/management/commands/rebuild_thumbnails.py | fablabbcn/InvenTree | 1d7ea7716cc96c6ffd151c822b01cd1fb5dcfecd | [
"MIT"
] | 196 | 2017-03-28T03:06:21.000Z | 2022-03-28T11:53:29.000Z | """
Custom management command to rebuild thumbnail images
- May be required after importing a new dataset, for example
"""
import os
import logging
from PIL import UnidentifiedImageError
from django.core.management.base import BaseCommand
from django.conf import settings
from django.db.utils import OperationalError... | 27.732394 | 82 | 0.630269 | 1,509 | 0.766379 | 0 | 0 | 0 | 0 | 0 | 0 | 530 | 0.269172 |
07e88f36bd18f9a9dc8241de858cfab239c3ca4a | 1,758 | py | Python | cogs/carbon.py | Baracchino-Della-Scuola/Bot | 65c1ef37ca9eae5d104de7d7de5cc58cc138402d | [
"MIT"
] | 6 | 2021-12-18T10:15:01.000Z | 2022-03-25T18:11:04.000Z | cogs/carbon.py | Baracchino-Della-Scuola/Bot | 65c1ef37ca9eae5d104de7d7de5cc58cc138402d | [
"MIT"
] | 3 | 2022-01-13T12:44:46.000Z | 2022-02-21T17:40:52.000Z | cogs/carbon.py | Baracchino-Della-Scuola/Bot | 65c1ef37ca9eae5d104de7d7de5cc58cc138402d | [
"MIT"
] | 1 | 2022-02-14T21:54:07.000Z | 2022-02-14T21:54:07.000Z | import discord
from discord.ext import commands
import urllib.parse
from .constants import themes, controls, languages, fonts, escales
import os
from pathlib import Path
from typing import Any
# from pyppeteer import launch
from io import *
import requests
def encode_url(text: str) -> str:
first_encoding = urlli... | 21.975 | 86 | 0.633675 | 327 | 0.186007 | 0 | 0 | 242 | 0.137656 | 274 | 0.155859 | 317 | 0.180319 |
07e994b02286199ddba77a78c4751e4388520310 | 267 | py | Python | examples/show_artist.py | jimcortez/spotipy_twisted | 49ff2a4a5a5a9b3184b22adbe068eb91a38f3102 | [
"MIT"
] | null | null | null | examples/show_artist.py | jimcortez/spotipy_twisted | 49ff2a4a5a5a9b3184b22adbe068eb91a38f3102 | [
"MIT"
] | null | null | null | examples/show_artist.py | jimcortez/spotipy_twisted | 49ff2a4a5a5a9b3184b22adbe068eb91a38f3102 | [
"MIT"
] | null | null | null | # shows artist info for a URN or URL
import spotipy_twisted
import sys
import pprint
if len(sys.argv) > 1:
urn = sys.argv[1]
else:
urn = 'spotify:artist:3jOstUTkEu2JkjvRdBA5Gu'
sp = spotipy_twisted.Spotify()
artist = sp.artist(urn)
pprint.pprint(artist)
| 15.705882 | 49 | 0.726592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 75 | 0.280899 |
07ea3ff52f1fa71b79053f13390d47944be9bd66 | 499 | py | Python | examples/mcp3xxx_mcp3002_single_ended_simpletest.py | sommersoft/Adafruit_CircuitPython_MCP3xxx | 94088a7e2b30f1b34e8a5fd7076075d88aad460b | [
"MIT"
] | null | null | null | examples/mcp3xxx_mcp3002_single_ended_simpletest.py | sommersoft/Adafruit_CircuitPython_MCP3xxx | 94088a7e2b30f1b34e8a5fd7076075d88aad460b | [
"MIT"
] | null | null | null | examples/mcp3xxx_mcp3002_single_ended_simpletest.py | sommersoft/Adafruit_CircuitPython_MCP3xxx | 94088a7e2b30f1b34e8a5fd7076075d88aad460b | [
"MIT"
] | null | null | null | import busio
import digitalio
import board
import adafruit_mcp3xxx.mcp3002 as MCP
from adafruit_mcp3xxx.analog_in import AnalogIn
# create the spi bus
spi = busio.SPI(clock=board.SCK, MISO=board.MISO, MOSI=board.MOSI)
# create the cs (chip select)
cs = digitalio.DigitalInOut(board.D5)
# create the mcp object
mcp = M... | 23.761905 | 66 | 0.747495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 148 | 0.296593 |
07eb8c54a1c0d882798ebdd645e52dda754bb70e | 759 | py | Python | glue/core/data_factories/tables.py | rosteen/glue | ed71979f8e0e41f993a2363b3b5a8f8c3167a130 | [
"BSD-3-Clause"
] | 550 | 2015-01-08T13:51:06.000Z | 2022-03-31T11:54:47.000Z | glue/core/data_factories/tables.py | mmorys/glue | b58ced518ba6f56c59a4e03ffe84afa47235e193 | [
"BSD-3-Clause"
] | 1,362 | 2015-01-03T19:15:52.000Z | 2022-03-30T13:23:11.000Z | glue/core/data_factories/tables.py | mmorys/glue | b58ced518ba6f56c59a4e03ffe84afa47235e193 | [
"BSD-3-Clause"
] | 142 | 2015-01-08T13:08:00.000Z | 2022-03-18T13:25:57.000Z | from glue.core.data_factories.helpers import has_extension
from glue.config import data_factory
__all__ = ['tabular_data']
@data_factory(label="ASCII Table",
identifier=has_extension('csv txt tsv tbl dat '
'csv.gz txt.gz tbl.bz '
... | 33 | 75 | 0.613966 | 0 | 0 | 0 | 0 | 631 | 0.831357 | 0 | 0 | 106 | 0.139657 |
07ebcae81863c1e60bd65e743d7f7961451a23cf | 2,895 | py | Python | code_doc/views/author_views.py | coordt/code_doc | c2fac64ac3ad61952a2d9f036727166741f9aff9 | [
"BSD-3-Clause"
] | null | null | null | code_doc/views/author_views.py | coordt/code_doc | c2fac64ac3ad61952a2d9f036727166741f9aff9 | [
"BSD-3-Clause"
] | null | null | null | code_doc/views/author_views.py | coordt/code_doc | c2fac64ac3ad61952a2d9f036727166741f9aff9 | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import render
from django.http import Http404
from django.views.generic.edit import UpdateView
from django.views.generic import ListView, View
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.utils.decorators import method_decorator... | 28.382353 | 88 | 0.680484 | 1,729 | 0.597237 | 0 | 0 | 521 | 0.179965 | 0 | 0 | 697 | 0.24076 |
07ee95bf0289bb4f328ba250a0e725c6cb917270 | 2,073 | py | Python | d00dfeed/analyses/print_sloc_per_soc.py | rehosting/rehosting_sok | 499b625c8aa60020f311df97a6253820982f20d4 | [
"MIT"
] | 4 | 2021-09-17T02:37:08.000Z | 2022-02-15T01:44:41.000Z | d00dfeed/analyses/print_sloc_per_soc.py | rehosting/rehosting_sok | 499b625c8aa60020f311df97a6253820982f20d4 | [
"MIT"
] | null | null | null | d00dfeed/analyses/print_sloc_per_soc.py | rehosting/rehosting_sok | 499b625c8aa60020f311df97a6253820982f20d4 | [
"MIT"
] | null | null | null | # External deps
import os, sys, json
from pathlib import Path
from typing import Dict, List
# Internal deps
os.chdir(sys.path[0])
sys.path.append("..")
import df_common as dfc
import analyses_common as ac
# Generated files directory
GEN_FILE_DIR = str(Path(__file__).resolve().parent.parent) + os.sep + "generated_file... | 32.904762 | 122 | 0.673903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 474 | 0.228654 |
07eea84b8f7990a608b685c1a60f3250095ce8a2 | 1,271 | py | Python | mingpt/lr_decay.py | asigalov61/minGPT | b4f8d57aaf1bb5c64d480f8005b73d39b075ae4b | [
"MIT"
] | 18 | 2020-09-10T02:29:38.000Z | 2022-03-16T03:17:35.000Z | mingpt/lr_decay.py | asigalov61/minGPT | b4f8d57aaf1bb5c64d480f8005b73d39b075ae4b | [
"MIT"
] | null | null | null | mingpt/lr_decay.py | asigalov61/minGPT | b4f8d57aaf1bb5c64d480f8005b73d39b075ae4b | [
"MIT"
] | 7 | 2020-08-20T16:35:38.000Z | 2022-01-10T21:57:49.000Z | import math
import pytorch_lightning as pl
class LearningRateDecayCallback(pl.Callback):
def __init__(self, learning_rate, warmup_tokens=375e6, final_tokens=260e9, lr_decay=True):
super().__init__()
self.learning_rate = learning_rate
self.tokens = 0
self.final_tokens = final_token... | 41 | 106 | 0.609756 | 1,226 | 0.964595 | 0 | 0 | 0 | 0 | 0 | 0 | 110 | 0.086546 |
07ef68929a367d76f0cb572e51ac36b254e815b0 | 40,518 | py | Python | apprise/config/ConfigBase.py | calvinbui/apprise | a5510790baf5aa1d74afabab25ff57d6b2304d56 | [
"MIT"
] | null | null | null | apprise/config/ConfigBase.py | calvinbui/apprise | a5510790baf5aa1d74afabab25ff57d6b2304d56 | [
"MIT"
] | null | null | null | apprise/config/ConfigBase.py | calvinbui/apprise | a5510790baf5aa1d74afabab25ff57d6b2304d56 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2020 Chris Caron <lead2gold@gmail.com>
# All rights reserved.
#
# This code is licensed under the MIT License.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files(the "Software"), to deal
# in th... | 38.116651 | 79 | 0.550768 | 38,784 | 0.957204 | 0 | 0 | 24,488 | 0.604373 | 0 | 0 | 18,989 | 0.468656 |
07f0b2b68417d129704d340d100e569555824ebc | 977 | py | Python | ffmpeg_util.py | manuel-fischer/ScrollRec | ec5662d3f61630f939613481290a166133d23a20 | [
"MIT"
] | null | null | null | ffmpeg_util.py | manuel-fischer/ScrollRec | ec5662d3f61630f939613481290a166133d23a20 | [
"MIT"
] | null | null | null | ffmpeg_util.py | manuel-fischer/ScrollRec | ec5662d3f61630f939613481290a166133d23a20 | [
"MIT"
] | null | null | null | import sys
import subprocess
from subprocess import Popen, PIPE
AV_LOG_QUIET = "quiet"
AV_LOG_PANIC = "panic"
AV_LOG_FATAL = "fatal"
AV_LOG_ERROR = "error"
AV_LOG_WARNING = "warning"
AV_LOG_INFO = "info"
AV_LOG_VERBOSE = "verbose"
AV_LOG_DEBUG = "debug"
ffmpeg_loglevel = AV_LOG_ERROR
IS_WIN32 = 'win32' ... | 24.425 | 89 | 0.698055 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 123 | 0.125896 |
07f0cc1a2096d19875fd8be0522fd82d52ff8b5c | 128 | py | Python | setup.py | rizar/CLOSURE | 57f80d4e89fa281830bb9c8b6a7a2498747e727a | [
"MIT"
] | 14 | 2019-12-08T04:38:57.000Z | 2021-07-13T15:46:57.000Z | setup.py | rizar/CLOSURE | 57f80d4e89fa281830bb9c8b6a7a2498747e727a | [
"MIT"
] | null | null | null | setup.py | rizar/CLOSURE | 57f80d4e89fa281830bb9c8b6a7a2498747e727a | [
"MIT"
] | 2 | 2020-09-01T10:21:27.000Z | 2021-01-15T02:38:25.000Z | from setuptools import setup
setup(
name="nmn-iwp",
version="0.1",
keywords="",
packages=["vr", "vr.models"]
)
| 14.222222 | 32 | 0.585938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 31 | 0.242188 |
07f1195aa55500ccfbdb1eb16ce8a5e553bfeb5d | 11,381 | py | Python | analysis_tools/PYTHON_RICARDO/output_ingress_egress/scripts/uniform_grid.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | analysis_tools/PYTHON_RICARDO/output_ingress_egress/scripts/uniform_grid.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | analysis_tools/PYTHON_RICARDO/output_ingress_egress/scripts/uniform_grid.py | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | """ Represent a triangulated surface using a 3D boolean grid"""
import logging
import numpy as np
from rpl.tools.ray_tracing.bsp_tree_poly import BSP_Element
from rpl.tools.geometry import geom_utils
import data_io
class BSP_Grid(object):
def __init__(self, node_array, tris, allocate_step=100000):
... | 42.30855 | 99 | 0.567613 | 1,739 | 0.152799 | 0 | 0 | 0 | 0 | 0 | 0 | 3,535 | 0.310605 |
07f12eb8f08aef21196193b3111071cb20b8013a | 1,884 | py | Python | silver_bullet/crypto.py | Hojung-Jeong/Silver-Bullet-Encryption-Tool | 5ea29b3cd78cf7488e0cbdcf4ea60d7c9151c2a7 | [
"Apache-2.0"
] | null | null | null | silver_bullet/crypto.py | Hojung-Jeong/Silver-Bullet-Encryption-Tool | 5ea29b3cd78cf7488e0cbdcf4ea60d7c9151c2a7 | [
"Apache-2.0"
] | null | null | null | silver_bullet/crypto.py | Hojung-Jeong/Silver-Bullet-Encryption-Tool | 5ea29b3cd78cf7488e0cbdcf4ea60d7c9151c2a7 | [
"Apache-2.0"
] | null | null | null | '''
>List of functions
1. encrypt(user_input,passphrase) - Encrypt the given string with the given passphrase. Returns cipher text and locked pad.
2. decrypt(cipher_text,locked_pad,passphrase) - Decrypt the cipher text encrypted with SBET. It requires cipher text, locked pad, and passphrase.
'''
# CODE ============... | 24.789474 | 146 | 0.735669 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 389 | 0.206476 |
07f1ea6de606abc50abb899228cdc43831fa522e | 876 | py | Python | pyfire/errors.py | RavidLevi98/pyfire | 404ae2082fd5be3ef652b3e15a66ad0d79b7a1b5 | [
"BSD-3-Clause"
] | null | null | null | pyfire/errors.py | RavidLevi98/pyfire | 404ae2082fd5be3ef652b3e15a66ad0d79b7a1b5 | [
"BSD-3-Clause"
] | 1 | 2021-05-22T21:34:44.000Z | 2021-05-22T21:34:44.000Z | pyfire/errors.py | RavidLevi98/pyfire | 404ae2082fd5be3ef652b3e15a66ad0d79b7a1b5 | [
"BSD-3-Clause"
] | 1 | 2021-05-22T21:21:11.000Z | 2021-05-22T21:21:11.000Z | # -*- coding: utf-8 -*-
"""
pyfire.errors
~~~~~~~~~~~~~~~~~~~~~~
Holds the global used base errors
:copyright: 2011 by the pyfire Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
import xml.etree.ElementTree as ET
class XMPPProtocolError(Exception):
"""Ba... | 28.258065 | 72 | 0.651826 | 600 | 0.684932 | 0 | 0 | 0 | 0 | 0 | 0 | 368 | 0.420091 |
07f21adedf8ef7aa0ba52361a9cf4372ad43ac9a | 4,967 | py | Python | app/nextMoveLogic.py | thekitbag/starter-snake-python | 48d12d2fa61ecfc976cd5750316b1db49a641f7f | [
"MIT"
] | null | null | null | app/nextMoveLogic.py | thekitbag/starter-snake-python | 48d12d2fa61ecfc976cd5750316b1db49a641f7f | [
"MIT"
] | null | null | null | app/nextMoveLogic.py | thekitbag/starter-snake-python | 48d12d2fa61ecfc976cd5750316b1db49a641f7f | [
"MIT"
] | null | null | null | import random
class Status(object):
def getHeadPosition(gamedata):
me = gamedata['you']
my_position = me['body']
head = my_position[0]
return head
def getMyLength(gamedata):
me = gamedata['you']
my_position = me['body']
if my_position[0] == my_position[1] == my_position[2]:
return 1
elif my_... | 29.217647 | 122 | 0.655124 | 4,933 | 0.993155 | 0 | 0 | 0 | 0 | 0 | 0 | 1,237 | 0.249044 |
07f27b728b22aae57de29b0aad696e2f245d31dd | 2,921 | py | Python | generator/util.py | gbtami/lichess-puzzler | e7338b35f592481141acefe39c7aaa444b26aa9e | [
"MIT"
] | 1 | 2021-02-20T11:21:53.000Z | 2021-02-20T11:21:53.000Z | generator/util.py | gbtami/lichess-puzzler | e7338b35f592481141acefe39c7aaa444b26aa9e | [
"MIT"
] | null | null | null | generator/util.py | gbtami/lichess-puzzler | e7338b35f592481141acefe39c7aaa444b26aa9e | [
"MIT"
] | null | null | null | from dataclasses import dataclass
import math
import chess
import chess.engine
from model import EngineMove, NextMovePair
from chess import Color, Board
from chess.pgn import GameNode
from chess.engine import SimpleEngine, Score
nps = []
def material_count(board: Board, side: Color) -> int:
values = { chess.PAWN:... | 38.946667 | 442 | 0.66176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 542 | 0.185553 |
07f699666466b24dd921c96e35a918f2fe5e627b | 293 | py | Python | sleep.py | SkylerHoward/O | 989246a5cdc297ab9f76cb6b26daebd799a03741 | [
"MIT"
] | null | null | null | sleep.py | SkylerHoward/O | 989246a5cdc297ab9f76cb6b26daebd799a03741 | [
"MIT"
] | null | null | null | sleep.py | SkylerHoward/O | 989246a5cdc297ab9f76cb6b26daebd799a03741 | [
"MIT"
] | null | null | null | import time, morning
from datetime import datetime
def main():
while True:
a = time.mktime(datetime.now().timetuple())
n = datetime.now()
if n.hour == 6 and (n.minute-(n.minute%5)) == 15:
return morning.main()
time.sleep(300 - (time.mktime(datetime.now().timetuple())-a)) | 29.3 | 63 | 0.648464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
07f6a33d952a989c19f3efa056df22e95ace1f20 | 4,526 | py | Python | tests/unit/commands/local/start_lambda/test_cli.py | ourobouros/aws-sam-cli | 3fba861f5106d604fde6d023923a9b83377a35d9 | [
"Apache-2.0"
] | 2 | 2018-11-09T04:43:41.000Z | 2018-11-20T06:39:45.000Z | tests/unit/commands/local/start_lambda/test_cli.py | ourobouros/aws-sam-cli | 3fba861f5106d604fde6d023923a9b83377a35d9 | [
"Apache-2.0"
] | null | null | null | tests/unit/commands/local/start_lambda/test_cli.py | ourobouros/aws-sam-cli | 3fba861f5106d604fde6d023923a9b83377a35d9 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from mock import patch, Mock
from samcli.commands.local.start_lambda.cli import do_cli as start_lambda_cli
from samcli.commands.local.cli_common.user_exceptions import UserException
from samcli.commands.validate.lib.exceptions import InvalidSamDocumentException
from samcli.commands.local.... | 45.26 | 96 | 0.579319 | 4,152 | 0.917366 | 0 | 0 | 2,786 | 0.615555 | 0 | 0 | 436 | 0.096332 |
07f8b674abd2c96105f1e6a593d1a4ae299e109a | 5,389 | py | Python | restapi/services/Utils/test_getters.py | Varun487/CapstoneProject_TradingSystem | b21e3f2c6c5e75596927666bf65294a2014babcf | [
"MIT"
] | 3 | 2022-01-10T01:39:00.000Z | 2022-01-11T13:17:36.000Z | restapi/services/Utils/test_getters.py | Varun487/CapstoneProject_TradingSystem | b21e3f2c6c5e75596927666bf65294a2014babcf | [
"MIT"
] | null | null | null | restapi/services/Utils/test_getters.py | Varun487/CapstoneProject_TradingSystem | b21e3f2c6c5e75596927666bf65294a2014babcf | [
"MIT"
] | 1 | 2022-01-09T07:30:36.000Z | 2022-01-09T07:30:36.000Z | from django.test import TestCase
import pandas as pd
from .getters import Getter
from .converter import Converter
from strategies.models import Company
from strategies.models import IndicatorType
class GetDataTestCase(TestCase):
def setUp(self) -> None:
# Dummy company data
Company.objects.cre... | 52.833333 | 119 | 0.660419 | 5,187 | 0.962516 | 0 | 0 | 0 | 0 | 0 | 0 | 871 | 0.161626 |
07f928cd0ad75195469f95ed414958ac002210c7 | 3,376 | py | Python | pytorch_toolkit/ote/ote/modules/trainers/mmdetection.py | abhatikar/training_extensions | 1c96e0f5f39688f8b79735e8dfa90646afc3d5e6 | [
"Apache-2.0"
] | 2 | 2021-01-07T05:09:17.000Z | 2021-10-15T05:13:46.000Z | pytorch_toolkit/ote/ote/modules/trainers/mmdetection.py | abhatikar/training_extensions | 1c96e0f5f39688f8b79735e8dfa90646afc3d5e6 | [
"Apache-2.0"
] | 9 | 2021-09-08T03:12:59.000Z | 2022-03-12T00:57:19.000Z | pytorch_toolkit/ote/ote/modules/trainers/mmdetection.py | abhatikar/training_extensions | 1c96e0f5f39688f8b79735e8dfa90646afc3d5e6 | [
"Apache-2.0"
] | null | null | null | """
Copyright (c) 2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 34.44898 | 101 | 0.627073 | 2,604 | 0.771327 | 0 | 0 | 2,632 | 0.779621 | 0 | 0 | 1,167 | 0.345675 |
07fabd24f913f0cde7669692291156d001f2e833 | 1,979 | py | Python | svn-go-stats/transform.py | BT-OpenSource/bt-betalab | af5a1b0d778c1746312149f62da0c4159f387293 | [
"MIT"
] | 1 | 2021-03-02T10:44:07.000Z | 2021-03-02T10:44:07.000Z | svn-go-stats/transform.py | BT-OpenSource/bt-betalab | af5a1b0d778c1746312149f62da0c4159f387293 | [
"MIT"
] | null | null | null | svn-go-stats/transform.py | BT-OpenSource/bt-betalab | af5a1b0d778c1746312149f62da0c4159f387293 | [
"MIT"
] | null | null | null | import sys
import json
import subprocess
import re
import statistics
def get_complexity():
# Load the cyclomatic complexity info
cyclostats = subprocess.check_output(['./gocyclo', 'repo']).decode("utf-8")
results = re.findall('([0-9]+)\s([^\s]+)\s([^\s]+)\s([^:]+):([0-9]+):([0-9]+)', cyclostats)
# S... | 29.102941 | 106 | 0.623042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 647 | 0.326933 |
07fb390e2fe8908e8e3a429d629ca30f1d77df66 | 11,225 | py | Python | test/test_python_errors.py | yangyangxcf/parso | e496b07b6342f6182225a60aad6031d7ad08f24d | [
"PSF-2.0"
] | null | null | null | test/test_python_errors.py | yangyangxcf/parso | e496b07b6342f6182225a60aad6031d7ad08f24d | [
"PSF-2.0"
] | null | null | null | test/test_python_errors.py | yangyangxcf/parso | e496b07b6342f6182225a60aad6031d7ad08f24d | [
"PSF-2.0"
] | null | null | null | """
Testing if parso finds syntax errors and indentation errors.
"""
import sys
import warnings
import pytest
import parso
from parso._compatibility import is_pypy
from .failing_examples import FAILING_EXAMPLES, indent, build_nested
if is_pypy:
# The errors in PyPy might be different. Just skip the module for n... | 34.860248 | 96 | 0.625568 | 0 | 0 | 0 | 0 | 2,285 | 0.203563 | 0 | 0 | 4,327 | 0.385479 |
07fb5058c7a297096cbf1ff7f21aedcf66b7d3ad | 985 | py | Python | shogitk/usikif.py | koji-hirono/pytk-shogi-replayer | a10819a797faecbee5c7b0654beb3694eb522840 | [
"MIT"
] | null | null | null | shogitk/usikif.py | koji-hirono/pytk-shogi-replayer | a10819a797faecbee5c7b0654beb3694eb522840 | [
"MIT"
] | null | null | null | shogitk/usikif.py | koji-hirono/pytk-shogi-replayer | a10819a797faecbee5c7b0654beb3694eb522840 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from shogitk.shogi import Coords, Move, BLACK, WHITE, DROP, PROMOTE
RANKNUM = {
'a': 1,
'b': 2,
'c': 3,
'd': 4,
'e': 5,
'f': 6,
'g': 7,
'h': 8,
'i': 9
}
def decoder(f):
color = ... | 25.921053 | 74 | 0.450761 | 0 | 0 | 692 | 0.702538 | 0 | 0 | 0 | 0 | 56 | 0.056853 |
07fca3ec2f3896a49c6703b50dabc9ec79e258a9 | 2,160 | py | Python | etherbank_cli/oracles.py | ideal-money/etherbank-cli | d957daa13aa951331cadc35c246c1ce8459ca8df | [
"BSD-2-Clause"
] | 1 | 2018-12-29T02:12:25.000Z | 2018-12-29T02:12:25.000Z | etherbank_cli/oracles.py | ideal-money/etherbank-cli | d957daa13aa951331cadc35c246c1ce8459ca8df | [
"BSD-2-Clause"
] | 5 | 2018-12-20T12:45:39.000Z | 2019-01-08T06:16:01.000Z | etherbank_cli/oracles.py | ideal-money/etherbank-cli | d957daa13aa951331cadc35c246c1ce8459ca8df | [
"BSD-2-Clause"
] | null | null | null | import click
from . import utils
@click.group()
def main():
"Simple CLI for oracles to work with Ether dollar"
pass
@main.command()
@click.option('--ether-price', type=float, help="The ether price in ether dollar")
@click.option('--collateral-ratio', type=float, help="The collateral ratio")
@click.option(
... | 30 | 82 | 0.697222 | 0 | 0 | 0 | 0 | 2,075 | 0.960648 | 0 | 0 | 599 | 0.277315 |
07fd108f6337b8e7a88da0155cf318b6098e4ae4 | 2,585 | py | Python | src/grader/machine.py | MrKaStep/csc230-grader | 559846f4d921c5c4be6b6e9ba8629fb24b448e41 | [
"MIT"
] | null | null | null | src/grader/machine.py | MrKaStep/csc230-grader | 559846f4d921c5c4be6b6e9ba8629fb24b448e41 | [
"MIT"
] | null | null | null | src/grader/machine.py | MrKaStep/csc230-grader | 559846f4d921c5c4be6b6e9ba8629fb24b448e41 | [
"MIT"
] | null | null | null | import getpass
from plumbum import local
from plumbum.machines.paramiko_machine import ParamikoMachine
from plumbum.path.utils import copy
def _once(f):
res = None
def wrapped(*args, **kwargs):
nonlocal res
if res is None:
res = f(*args, **kwargs)
return res
return wrapp... | 32.3125 | 133 | 0.600387 | 0 | 0 | 0 | 0 | 344 | 0.133075 | 0 | 0 | 278 | 0.107544 |
07fdb99131cb0d8251646bea304d79ad58fc7ab6 | 157 | py | Python | Mundo 1/Ex33.py | legna7/Python | 52e0b642d1b7acc592ec82dd360c5697fb0765db | [
"MIT"
] | null | null | null | Mundo 1/Ex33.py | legna7/Python | 52e0b642d1b7acc592ec82dd360c5697fb0765db | [
"MIT"
] | null | null | null | Mundo 1/Ex33.py | legna7/Python | 52e0b642d1b7acc592ec82dd360c5697fb0765db | [
"MIT"
] | null | null | null | salario = float(input('digite o seu salario: '))
aumento = (salario + (salario * 15)/100 if salario <= 1250 else salario + (salario * 10)/100)
print(aumento) | 52.333333 | 93 | 0.687898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 24 | 0.152866 |
07ff0da6e717ab9585c2e512803b8604ff985d37 | 2,793 | py | Python | tests/test_tree.py | andreax79/airflow-code-editor | 031170387496bbc6d540179c6c2f1765e1e70694 | [
"Apache-2.0"
] | 194 | 2019-08-06T13:03:11.000Z | 2022-03-25T15:29:29.000Z | tests/test_tree.py | andreax79/airflow-code-editor | 031170387496bbc6d540179c6c2f1765e1e70694 | [
"Apache-2.0"
] | 29 | 2019-08-23T16:07:17.000Z | 2022-03-31T03:43:47.000Z | tests/test_tree.py | andreax79/airflow-code-editor | 031170387496bbc6d540179c6c2f1765e1e70694 | [
"Apache-2.0"
] | 32 | 2019-08-15T12:13:37.000Z | 2022-03-31T17:27:24.000Z | #!/usr/bin/env python
import os
import os.path
import airflow
import airflow.plugins_manager
from airflow import configuration
from flask import Flask
from unittest import TestCase, main
from airflow_code_editor.commons import PLUGIN_NAME
from airflow_code_editor.tree import (
get_tree,
)
assert airflow.plugins_m... | 31.382022 | 85 | 0.583602 | 2,398 | 0.858575 | 0 | 0 | 0 | 0 | 0 | 0 | 343 | 0.122807 |
07ff31219d3e42ddfa090b695c0d4b6ede8d31e9 | 2,826 | py | Python | examples/token_freshness.py | greenape/flask-jwt-extended | 11ac3bf0937ee199aea7d6dc47c748bef9bf1d2f | [
"MIT"
] | 2 | 2021-03-20T01:55:08.000Z | 2021-11-14T12:20:23.000Z | examples/token_freshness.py | greenape/flask-jwt-extended | 11ac3bf0937ee199aea7d6dc47c748bef9bf1d2f | [
"MIT"
] | 1 | 2020-08-06T23:02:45.000Z | 2020-09-26T01:36:21.000Z | examples/token_freshness.py | greenape/flask-jwt-extended | 11ac3bf0937ee199aea7d6dc47c748bef9bf1d2f | [
"MIT"
] | 1 | 2020-10-28T20:09:00.000Z | 2020-10-28T20:09:00.000Z | from quart import Quart, jsonify, request
from quart_jwt_extended import (
JWTManager,
jwt_required,
create_access_token,
jwt_refresh_token_required,
create_refresh_token,
get_jwt_identity,
fresh_jwt_required,
)
app = Quart(__name__)
app.config["JWT_SECRET_KEY"] = "super-secret" # Change ... | 33.247059 | 75 | 0.714084 | 0 | 0 | 0 | 0 | 1,727 | 0.611111 | 1,450 | 0.513093 | 1,223 | 0.432767 |
07ff9a1f5ea3709124ad1fb347eb63a9284a7ad2 | 195 | py | Python | env/lib/python3.7/site-packages/tinvest/typedefs.py | umchemurziev/Practics | 82b49f9d58e67f1ecff9e6303e7d914bc1905730 | [
"MIT"
] | 1 | 2021-03-29T18:47:32.000Z | 2021-03-29T18:47:32.000Z | env/lib/python3.7/site-packages/tinvest/typedefs.py | umchemurziev/Practics | 82b49f9d58e67f1ecff9e6303e7d914bc1905730 | [
"MIT"
] | null | null | null | env/lib/python3.7/site-packages/tinvest/typedefs.py | umchemurziev/Practics | 82b49f9d58e67f1ecff9e6303e7d914bc1905730 | [
"MIT"
] | null | null | null | from datetime import datetime
from typing import Any, Dict, Union
__all__ = 'AnyDict'
AnyDict = Dict[str, Any] # pragma: no mutate
datetime_or_str = Union[datetime, str] # pragma: no mutate
| 21.666667 | 59 | 0.738462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 47 | 0.241026 |
07ffdb3c18cae37c2fe662c5c84ed5398af39b35 | 1,345 | py | Python | keras/linear/model/pipeline_train.py | PipelineAI/models | d8df07877aa8b10ce9b84983bb440af75e84dca7 | [
"Apache-2.0"
] | 44 | 2017-11-17T06:19:05.000Z | 2021-11-03T06:00:56.000Z | keras/linear/model/pipeline_train.py | PipelineAI/models | d8df07877aa8b10ce9b84983bb440af75e84dca7 | [
"Apache-2.0"
] | 3 | 2018-08-09T14:28:17.000Z | 2018-09-10T03:32:42.000Z | keras/linear/model/pipeline_train.py | PipelineAI/models | d8df07877aa8b10ce9b84983bb440af75e84dca7 | [
"Apache-2.0"
] | 21 | 2017-11-18T15:12:12.000Z | 2020-08-15T07:08:33.000Z | import os
os.environ['KERAS_BACKEND'] = 'theano'
os.environ['THEANO_FLAGS'] = 'floatX=float32,device=cpu'
import cloudpickle as pickle
import pipeline_invoke
import pandas as pd
import numpy as np
import keras
from keras.layers import Input, Dense
from keras.models import Model
from keras.models import save_model, loa... | 30.568182 | 92 | 0.709294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 392 | 0.29145 |
580077f8f713a612aa61ab64e08f6fd83f19a081 | 1,454 | py | Python | tests/effects/test_cheerlights.py | RatJuggler/led-shim-effects | 3c63f5f2ce3f35f52e784489deb9212757c18cd2 | [
"MIT"
] | 1 | 2021-04-17T16:18:14.000Z | 2021-04-17T16:18:14.000Z | tests/effects/test_cheerlights.py | RatJuggler/led-shim-effects | 3c63f5f2ce3f35f52e784489deb9212757c18cd2 | [
"MIT"
] | 12 | 2019-07-26T18:01:56.000Z | 2019-08-31T15:35:17.000Z | tests/effects/test_cheerlights.py | RatJuggler/led-shim-demo | 3c63f5f2ce3f35f52e784489deb9212757c18cd2 | [
"MIT"
] | null | null | null | from unittest import TestCase
from unittest.mock import Mock, patch
import sys
sys.modules['smbus'] = Mock() # Mock the hardware layer to avoid errors.
from ledshimdemo.canvas import Canvas
from ledshimdemo.effects.cheerlights import CheerLightsEffect
class TestCheerLights(TestCase):
TEST_CANVAS_SIZE = 3 # t... | 39.297297 | 106 | 0.72696 | 1,196 | 0.822558 | 0 | 0 | 436 | 0.299862 | 0 | 0 | 277 | 0.190509 |
5800997c4a49cdfc01a368bf3ebf423b84d98d2c | 7,074 | py | Python | figures/Figure_7/02_generate_images.py | Jhsmit/ColiCoords-Paper | 7b92e67600930f64859d14867113b6de3edf1379 | [
"MIT"
] | 2 | 2019-05-12T12:06:50.000Z | 2020-11-11T16:44:49.000Z | figures/Figure_7/02_generate_images.py | Jhsmit/ColiCoords-Paper | 7b92e67600930f64859d14867113b6de3edf1379 | [
"MIT"
] | null | null | null | figures/Figure_7/02_generate_images.py | Jhsmit/ColiCoords-Paper | 7b92e67600930f64859d14867113b6de3edf1379 | [
"MIT"
] | 2 | 2019-06-17T16:00:56.000Z | 2020-02-07T22:17:47.000Z | from colicoords.synthetic_data import add_readout_noise, draw_poisson
from colicoords import load
import numpy as np
import mahotas as mh
from tqdm import tqdm
import os
import tifffile
def chunk_list(l, sizes):
prev = 0
for s in sizes:
result = l[prev:prev+s]
prev += s
yield result
... | 40.890173 | 126 | 0.602771 | 0 | 0 | 129 | 0.018236 | 0 | 0 | 0 | 0 | 1,086 | 0.15352 |
5800bf043c25e136451e6eec4f012f681fa98619 | 336 | py | Python | epiphancloud/models/settings.py | epiphan-video/epiphancloud_api | 8799591ea4d3a7285976e0038716b23c9ffe7061 | [
"MIT"
] | null | null | null | epiphancloud/models/settings.py | epiphan-video/epiphancloud_api | 8799591ea4d3a7285976e0038716b23c9ffe7061 | [
"MIT"
] | null | null | null | epiphancloud/models/settings.py | epiphan-video/epiphancloud_api | 8799591ea4d3a7285976e0038716b23c9ffe7061 | [
"MIT"
] | null | null | null | class DeviceSettings:
def __init__(self, settings):
self._id = settings["id"]
self._title = settings["title"]
self._type = settings["type"]["name"]
self._value = settings["value"]
@property
def id(self):
return self._id
@property
def value(self):
ret... | 22.4 | 45 | 0.583333 | 335 | 0.997024 | 0 | 0 | 108 | 0.321429 | 0 | 0 | 30 | 0.089286 |
580134063c60e1903557dccde046d7a394258b01 | 319 | py | Python | dictionary.py | SchmitzAndrew/OSS-101-example | 1efecd4c5bfef4495904568d11e3f8d0a5ed9bd0 | [
"MIT"
] | null | null | null | dictionary.py | SchmitzAndrew/OSS-101-example | 1efecd4c5bfef4495904568d11e3f8d0a5ed9bd0 | [
"MIT"
] | null | null | null | dictionary.py | SchmitzAndrew/OSS-101-example | 1efecd4c5bfef4495904568d11e3f8d0a5ed9bd0 | [
"MIT"
] | null | null | null | word = input("Enter a word: ")
if word == "a":
print("one; any")
elif word == "apple":
print("familiar, round fleshy fruit")
elif word == "rhinoceros":
print("large thick-skinned animal with one or two horns on its nose")
else:
print("That word must not exist. This dictionary is very comprehensive.")
| 29 | 77 | 0.667712 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 206 | 0.645768 |
58023a0843c7993ed1535e882c1755e33a7a8544 | 116 | py | Python | solved_bronze/num11720.py | ilmntr/white_study | 51d69d122b07e9a0922dddb134bff4ec79077eb9 | [
"MIT"
] | null | null | null | solved_bronze/num11720.py | ilmntr/white_study | 51d69d122b07e9a0922dddb134bff4ec79077eb9 | [
"MIT"
] | null | null | null | solved_bronze/num11720.py | ilmntr/white_study | 51d69d122b07e9a0922dddb134bff4ec79077eb9 | [
"MIT"
] | null | null | null | cnt = int(input())
num = list(map(int, input()))
sum = 0
for i in range(len(num)):
sum = sum + num[i]
print(sum) | 19.333333 | 29 | 0.586207 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
58035ad02fa85d7c60de0ef4d5c14279175bc2ac | 566 | py | Python | setup.py | sdnhub/kube-navi | d16a9289ba7261011e6c8d19c48cdc9bd533e629 | [
"Apache-2.0"
] | null | null | null | setup.py | sdnhub/kube-navi | d16a9289ba7261011e6c8d19c48cdc9bd533e629 | [
"Apache-2.0"
] | null | null | null | setup.py | sdnhub/kube-navi | d16a9289ba7261011e6c8d19c48cdc9bd533e629 | [
"Apache-2.0"
] | null | null | null | from distutils.core import setup
setup(
name = 'kube_navi',
packages = ['kube_navi'], # this must be the same as the name above
version = '0.1',
description = 'Kubernetes resource discovery toolkit',
author = 'Srini Seetharaman',
author_email = 'srini.seetharaman@gmail.com',
url = 'https://github.com/sdnh... | 40.428571 | 106 | 0.69788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 358 | 0.632509 |
5804951a8f92330526763d3f11395d318d54d180 | 10,444 | py | Python | flink-ai-flow/ai_flow/metric/utils.py | MarvinMiao/flink-ai-extended | e45eecf2deea6976ba3d7ba821ffb8d9ce0a17f4 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 1 | 2020-12-12T15:21:05.000Z | 2020-12-12T15:21:05.000Z | flink-ai-flow/ai_flow/metric/utils.py | MarvinMiao/flink-ai-extended | e45eecf2deea6976ba3d7ba821ffb8d9ce0a17f4 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 1 | 2021-01-30T11:28:37.000Z | 2021-01-30T11:28:37.000Z | flink-ai-flow/ai_flow/metric/utils.py | MarvinMiao/flink-ai-extended | e45eecf2deea6976ba3d7ba821ffb8d9ce0a17f4 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 49.032864 | 122 | 0.627633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 886 | 0.084833 |
58055aabc65a23b166d03e3a5c7b5b2ffaa06173 | 3,154 | py | Python | src/moduels/gui/Tab_Help.py | HaujetZhao/Caps_Writer | f2b2038a2c0984a1d356f024cbac421fe594601a | [
"MIT"
] | 234 | 2020-07-10T11:23:09.000Z | 2022-03-31T09:41:40.000Z | src/moduels/gui/Tab_Help.py | HaujetZhao/Caps_Writer | f2b2038a2c0984a1d356f024cbac421fe594601a | [
"MIT"
] | 9 | 2020-07-11T08:31:11.000Z | 2022-03-01T04:30:08.000Z | src/moduels/gui/Tab_Help.py | HaujetZhao/Caps_Writer | f2b2038a2c0984a1d356f024cbac421fe594601a | [
"MIT"
] | 23 | 2020-07-14T08:58:44.000Z | 2022-03-17T06:38:10.000Z | # -*- coding: UTF-8 -*-
from PySide2.QtWidgets import QWidget, QPushButton, QVBoxLayout
from PySide2.QtCore import Signal
from moduels.component.NormalValue import 常量
from moduels.component.SponsorDialog import SponsorDialog
import os, webbrowser
class Tab_Help(QWidget):
状态栏消息 = Signal(str, int)
def __init... | 45.057143 | 132 | 0.69499 | 3,190 | 0.925711 | 0 | 0 | 0 | 0 | 0 | 0 | 863 | 0.250435 |
5805a2c8d616906daf19682b40baa91f10a88715 | 1,845 | py | Python | app/routes/register.py | AuFeld/COAG | 3874a9c1c6ceb908a6bbabfb49e2c701d8e54f20 | [
"MIT"
] | 1 | 2021-06-03T10:29:12.000Z | 2021-06-03T10:29:12.000Z | app/routes/register.py | AuFeld/COAG | 3874a9c1c6ceb908a6bbabfb49e2c701d8e54f20 | [
"MIT"
] | 45 | 2021-06-05T14:47:09.000Z | 2022-03-30T06:16:44.000Z | app/routes/register.py | AuFeld/COAG | 3874a9c1c6ceb908a6bbabfb49e2c701d8e54f20 | [
"MIT"
] | null | null | null | from typing import Callable, Optional, Type, cast
from fastapi import APIRouter, HTTPException, Request, status
from app.models import users
from app.common.user import ErrorCode, run_handler
from app.users.user import (
CreateUserProtocol,
InvalidPasswordException,
UserAlreadyExists,
ValidatePassword... | 32.946429 | 83 | 0.648238 | 0 | 0 | 0 | 0 | 1,101 | 0.596748 | 993 | 0.538211 | 110 | 0.059621 |
5805ce50d417618b337a1e60276ff06de0f997f8 | 1,425 | py | Python | utils/visual.py | xizaoqu/Panoptic-PolarNet | 8ce05f437f54e030eac7de150f43caab2810cfbb | [
"BSD-3-Clause"
] | 90 | 2021-03-30T08:02:15.000Z | 2022-03-30T03:29:56.000Z | utils/visual.py | xizaoqu/Panoptic-PolarNet | 8ce05f437f54e030eac7de150f43caab2810cfbb | [
"BSD-3-Clause"
] | 11 | 2021-04-01T02:29:08.000Z | 2022-03-04T07:30:50.000Z | utils/visual.py | xizaoqu/Panoptic-PolarNet | 8ce05f437f54e030eac7de150f43caab2810cfbb | [
"BSD-3-Clause"
] | 21 | 2021-04-01T09:29:38.000Z | 2022-03-28T01:36:02.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import cv2
import numpy as np
def flow_to_img(flow, normalize=True):
"""Convert flow to viewable image, using color hue to encode flow vector orientation, and color saturation to
encode vector length. This is similar to the OpenCV tutorial on dense optical flow, e... | 39.583333 | 116 | 0.665263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 743 | 0.521404 |
5806fd8ba37feb4c4d823dfb9c4c105ed07bdd0c | 624 | py | Python | DistributedRL/Gateway/build/Code/sim/Parser/LAI/GreenIndex.py | zhkmxx9302013/SoftwarePilot | 826098465b800085774946c20a7a283f369f1d21 | [
"MIT"
] | 4 | 2019-03-20T17:46:01.000Z | 2019-03-31T17:32:44.000Z | DistributedRL/Gateway/build/Code/sim/Parser/LAI/GreenIndex.py | zhkmxx9302013/SoftwarePilot | 826098465b800085774946c20a7a283f369f1d21 | [
"MIT"
] | null | null | null | DistributedRL/Gateway/build/Code/sim/Parser/LAI/GreenIndex.py | zhkmxx9302013/SoftwarePilot | 826098465b800085774946c20a7a283f369f1d21 | [
"MIT"
] | null | null | null | import argparse
from PIL import Image, ImageStat
import math
parser = argparse.ArgumentParser()
parser.add_argument('fname')
parser.add_argument('pref', default="", nargs="?")
args = parser.parse_args()
im = Image.open(args.fname)
RGB = im.convert('RGB')
imWidth, imHeight = im.size
ratg = 1.2
ratgb = 1.66
ming = 10... | 20.8 | 50 | 0.684295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 29 | 0.046474 |
58077bea9c4435d13d9ff119348291eadd3323f7 | 4,561 | py | Python | reports/heliosV1/python/heliosStorageStats/heliosStorageStats.py | ped998/scripts | 0dcaaf47f9676210e1c972a5d59d8d0de82a1d93 | [
"Apache-2.0"
] | null | null | null | reports/heliosV1/python/heliosStorageStats/heliosStorageStats.py | ped998/scripts | 0dcaaf47f9676210e1c972a5d59d8d0de82a1d93 | [
"Apache-2.0"
] | null | null | null | reports/heliosV1/python/heliosStorageStats/heliosStorageStats.py | ped998/scripts | 0dcaaf47f9676210e1c972a5d59d8d0de82a1d93 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""cluster storage stats for python"""
# import pyhesity wrapper module
from pyhesity import *
from datetime import datetime
import codecs
# command line arguments
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-v', '--vip', type=str, default='helios.cohesity.com') # cl... | 49.043011 | 293 | 0.726814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,021 | 0.443105 |
580792f2d4c1bf5c14b84d5f807f69b1126aead4 | 5,422 | py | Python | src/advanceoperate/malimgthread.py | zengrx/S.M.A.R.T | 47a9abe89008e9b34f9b9d057656dbf3fb286456 | [
"MIT"
] | 10 | 2017-07-11T01:08:28.000Z | 2021-05-07T01:49:00.000Z | src/advanceoperate/malimgthread.py | YanqiangHuang/S.M.A.R.T | 47a9abe89008e9b34f9b9d057656dbf3fb286456 | [
"MIT"
] | null | null | null | src/advanceoperate/malimgthread.py | YanqiangHuang/S.M.A.R.T | 47a9abe89008e9b34f9b9d057656dbf3fb286456 | [
"MIT"
] | 6 | 2017-05-02T14:27:15.000Z | 2017-05-15T05:56:40.000Z | #coding=utf-8
from PyQt4 import QtCore
import os, glob, numpy, sys
from PIL import Image
from sklearn.cross_validation import StratifiedKFold
from sklearn.metrics import confusion_matrix
from sklearn.neighbors import KNeighborsClassifier
from sklearn.neighbors import BallTree
from sklearn import cross_validation
from ... | 31.34104 | 87 | 0.568241 | 5,311 | 0.91854 | 0 | 0 | 0 | 0 | 0 | 0 | 1,349 | 0.23331 |
5807aa2f208ead7fccb84b1ddddcf37b4c200266 | 12,661 | py | Python | tests/unittests/command_parse/test_stream.py | itamarhaber/iredis | 61208aab34c731f88232abd2cacdf0e075e701f2 | [
"BSD-3-Clause"
] | 1,857 | 2019-08-09T02:36:13.000Z | 2022-03-31T05:53:09.000Z | tests/unittests/command_parse/test_stream.py | itamarhaber/iredis | 61208aab34c731f88232abd2cacdf0e075e701f2 | [
"BSD-3-Clause"
] | 281 | 2019-08-08T16:00:59.000Z | 2022-03-07T14:05:36.000Z | tests/unittests/command_parse/test_stream.py | itamarhaber/iredis | 61208aab34c731f88232abd2cacdf0e075e701f2 | [
"BSD-3-Clause"
] | 105 | 2019-08-09T04:36:12.000Z | 2022-02-03T13:27:29.000Z | def test_xrange(judge_command):
judge_command(
"XRANGE somestream - +",
{"command": "XRANGE", "key": "somestream", "stream_id": ["-", "+"]},
)
judge_command(
"XRANGE somestream 1526985054069 1526985055069",
{
"command": "XRANGE",
"key": "somestream",
... | 27.523913 | 86 | 0.477766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6,226 | 0.491746 |
6af1bee4f8dfc29969377047eaf5953641fb77f7 | 4,823 | py | Python | tests/test_find_forks/test_find_forks.py | ivan2kh/find_forks | 409251282a85da48445afc03c5a1797df393ca95 | [
"MIT"
] | 41 | 2015-05-15T14:37:42.000Z | 2022-02-05T01:52:00.000Z | tests/test_find_forks/test_find_forks.py | ivan2kh/find_forks | 409251282a85da48445afc03c5a1797df393ca95 | [
"MIT"
] | 12 | 2015-05-15T22:10:36.000Z | 2021-12-05T14:21:58.000Z | tests/test_find_forks/test_find_forks.py | ivan2kh/find_forks | 409251282a85da48445afc03c5a1797df393ca95 | [
"MIT"
] | 16 | 2015-05-15T14:44:33.000Z | 2020-11-18T00:54:18.000Z | # coding: utf-8
"""test_find_fork."""
# pylint: disable=no-self-use
from __future__ import absolute_import, division, print_function, unicode_literals
from os import path
import unittest
from six import PY3
from find_forks.__init__ import CONFIG
from find_forks.find_forks import add_forks, determine_names, find_fork... | 41.577586 | 146 | 0.644412 | 4,308 | 0.89322 | 0 | 0 | 879 | 0.182252 | 0 | 0 | 1,562 | 0.323865 |
6af1e67adc2134fb57f91c04b0e1763048fc52e2 | 15,853 | py | Python | neutron/agent/l3/dvr_router.py | insequent/neutron | 2b1c4f121e3e8ba1c5eb2ba6661bf6326e1507c5 | [
"Apache-2.0"
] | null | null | null | neutron/agent/l3/dvr_router.py | insequent/neutron | 2b1c4f121e3e8ba1c5eb2ba6661bf6326e1507c5 | [
"Apache-2.0"
] | null | null | null | neutron/agent/l3/dvr_router.py | insequent/neutron | 2b1c4f121e3e8ba1c5eb2ba6661bf6326e1507c5 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2015 Openstack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 43.196185 | 79 | 0.6272 | 14,730 | 0.929162 | 0 | 0 | 966 | 0.060935 | 0 | 0 | 4,212 | 0.265691 |
6af266c300822127b8933d07e4d514dfddafdca3 | 575 | py | Python | sider/warnings.py | PCManticore/sider | cd11b38b2a1bf1ea3600eb287abfe3c2b40c67c1 | [
"MIT"
] | 19 | 2015-01-17T18:24:36.000Z | 2022-02-05T06:33:41.000Z | sider/warnings.py | PCManticore/sider | cd11b38b2a1bf1ea3600eb287abfe3c2b40c67c1 | [
"MIT"
] | 5 | 2016-01-13T14:19:44.000Z | 2016-06-01T18:50:36.000Z | sider/warnings.py | PCManticore/sider | cd11b38b2a1bf1ea3600eb287abfe3c2b40c67c1 | [
"MIT"
] | 6 | 2015-08-16T10:32:09.000Z | 2019-11-29T09:57:06.000Z | """:mod:`sider.warnings` --- Warning categories
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module defines several custom warning category classes.
"""
class SiderWarning(Warning):
"""All warning classes used by Sider extend this base class."""
class PerformanceWarning(SiderWarning, RuntimeWarning):
... | 25 | 71 | 0.683478 | 402 | 0.69913 | 0 | 0 | 0 | 0 | 0 | 0 | 411 | 0.714783 |
6af312eaf5ecd0a0c44737d1362c73e2f2338489 | 2,512 | py | Python | kadal/query.py | Bucolo/Kadal | a0085f15df4f8ebbf5ec4cd4344e207773c6b498 | [
"MIT"
] | 1 | 2022-03-12T15:04:01.000Z | 2022-03-12T15:04:01.000Z | kadal/query.py | Bucolo/Kadal | a0085f15df4f8ebbf5ec4cd4344e207773c6b498 | [
"MIT"
] | null | null | null | kadal/query.py | Bucolo/Kadal | a0085f15df4f8ebbf5ec4cd4344e207773c6b498 | [
"MIT"
] | null | null | null | MEDIA_SEARCH = """
query ($search: String, $type: MediaType, $exclude: MediaFormat, $isAdult: Boolean) {
Media(search: $search, type: $type, format_not: $exclude, isAdult: $isAdult) {
id
type
format
title {
english
romaji
native
}
synonyms
status
description
start... | 14.03352 | 104 | 0.515525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,433 | 0.968551 |
6af335ed4a4087ef091d5830d5a795b074596342 | 1,032 | py | Python | sandbox/test/testChainop.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | 1 | 2021-05-26T19:22:17.000Z | 2021-05-26T19:22:17.000Z | sandbox/test/testChainop.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | null | null | null | sandbox/test/testChainop.py | turkeydonkey/nzmath3 | a48ae9efcf0d9ad1485c2e9863c948a7f1b20311 | [
"BSD-3-Clause"
] | null | null | null | import unittest
import operator
import sandbox.chainop as chainop
class BasicChainTest (unittest.TestCase):
def testBasicChain(self):
double = lambda x: x * 2
self.assertEqual(62, chainop.basic_chain((operator.add, double), 2, 31))
square = lambda x: x ** 2
self.assertEqual(2**31, ... | 31.272727 | 98 | 0.650194 | 633 | 0.613372 | 0 | 0 | 0 | 0 | 0 | 0 | 22 | 0.021318 |
6af3beecef5460df43fd5570a5ba8ce1f6a0d13d | 1,131 | py | Python | labs_final/lab5/experiments/run_trpo_pendulum.py | mrmotallebi/berkeley-deeprl-bootcamp | 9257c693724c38edfa4571e3510667ca168b7ca1 | [
"MIT"
] | 3 | 2018-03-26T14:13:11.000Z | 2020-07-23T22:26:28.000Z | labs_final/lab5/experiments/run_trpo_pendulum.py | mrmotallebi/berkeley-deeprl-bootcamp | 9257c693724c38edfa4571e3510667ca168b7ca1 | [
"MIT"
] | null | null | null | labs_final/lab5/experiments/run_trpo_pendulum.py | mrmotallebi/berkeley-deeprl-bootcamp | 9257c693724c38edfa4571e3510667ca168b7ca1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import chainer
from algs import trpo
from env_makers import EnvMaker
from models import GaussianMLPPolicy, MLPBaseline
from utils import SnapshotSaver
import numpy as np
import os
import logger
log_dir = "data/local/trpo-pendulum"
np.random.seed(42)
# Clean up existing logs
os.system("rm -rf {... | 24.586957 | 51 | 0.678161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 95 | 0.083996 |
6af3f2a17f291a65e5f9b17cbe9f19d00752f642 | 2,098 | py | Python | jtyoui/regular/regexengine.py | yy1244/Jtyoui | d3c212ed9d6ffa6b37a8ca49098ab59c89216f09 | [
"MIT"
] | 1 | 2019-12-05T09:46:51.000Z | 2019-12-05T09:46:51.000Z | jtyoui/regular/regexengine.py | yy1244/Jtyoui | d3c212ed9d6ffa6b37a8ca49098ab59c89216f09 | [
"MIT"
] | null | null | null | jtyoui/regular/regexengine.py | yy1244/Jtyoui | d3c212ed9d6ffa6b37a8ca49098ab59c89216f09 | [
"MIT"
] | null | null | null | #!/usr/bin/python3.7
# -*- coding: utf-8 -*-
# @Time : 2019/12/2 10:17
# @Author: Jtyoui@qq.com
"""
正则解析器
"""
try:
import xml.etree.cElementTree as et
except ModuleNotFoundError:
import xml.etree.ElementTree as et
import re
class RegexEngine:
def __init__(self, xml, str_):
"""加载正则表。正则表为xml
... | 27.246753 | 87 | 0.479981 | 1,979 | 0.889039 | 0 | 0 | 165 | 0.074124 | 0 | 0 | 526 | 0.236298 |
6af4d5fe8b77a49f0cbdce7b5f8e3248894cc3b5 | 5,117 | py | Python | proglearn/transformers.py | rflperry/ProgLearn | 9f799b4a8cf2157ba40b04842dc88eaf646e6420 | [
"MIT"
] | null | null | null | proglearn/transformers.py | rflperry/ProgLearn | 9f799b4a8cf2157ba40b04842dc88eaf646e6420 | [
"MIT"
] | 1 | 2020-11-25T19:21:54.000Z | 2020-11-25T19:21:54.000Z | proglearn/transformers.py | rflperry/ProgLearn | 9f799b4a8cf2157ba40b04842dc88eaf646e6420 | [
"MIT"
] | null | null | null | """
Main Author: Will LeVine
Corresponding Email: levinewill@icloud.com
"""
import keras
import numpy as np
from sklearn.tree import DecisionTreeClassifier
from sklearn.utils.validation import check_array, check_is_fitted, check_X_y
from .base import BaseTransformer
class NeuralClassificationTransformer(BaseTransfor... | 26.931579 | 94 | 0.587063 | 4,843 | 0.946453 | 0 | 0 | 0 | 0 | 0 | 0 | 3,234 | 0.632011 |
6af5766ae43b84c8b76547fb51e5b56cfdb7f3af | 9,900 | py | Python | morphelia/external/saphire.py | marx-alex/Morphelia | 809278b07f1a535789455d54df3cbddc850d609c | [
"MIT"
] | null | null | null | morphelia/external/saphire.py | marx-alex/Morphelia | 809278b07f1a535789455d54df3cbddc850d609c | [
"MIT"
] | null | null | null | morphelia/external/saphire.py | marx-alex/Morphelia | 809278b07f1a535789455d54df3cbddc850d609c | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.collections as mcoll
from matplotlib.ticker import MaxNLocator
plt.style.use('seaborn-darkgrid')
class BaseTraj:
def __init__(self, model, X):
self.model = model
assert len(X.shape) == 2, f"X should be 2... | 34.256055 | 114 | 0.58101 | 8,115 | 0.819697 | 0 | 0 | 308 | 0.031111 | 0 | 0 | 2,460 | 0.248485 |
6af5ea523e6e4b25159d80c12448780bfd106c8c | 4,824 | py | Python | account/views.py | Stfuncode/food-beverage-investigator | 0fea4943a5c2634068dc04118f83742327937c25 | [
"MIT"
] | null | null | null | account/views.py | Stfuncode/food-beverage-investigator | 0fea4943a5c2634068dc04118f83742327937c25 | [
"MIT"
] | null | null | null | account/views.py | Stfuncode/food-beverage-investigator | 0fea4943a5c2634068dc04118f83742327937c25 | [
"MIT"
] | null | null | null | import imp
from venv import create
from django.shortcuts import render, redirect
from django.views import View
from django.views.generic import (
ListView,
)
from account.models import *
from account.forms import *
from data.models import *
from django.contrib.auth import login as auth_login
from django.contrib.a... | 33.5 | 87 | 0.645522 | 2,353 | 0.487769 | 0 | 0 | 0 | 0 | 0 | 0 | 662 | 0.137231 |
6af67173be2103fc04ef7a7c51b006d1f866e003 | 2,697 | py | Python | fpds/client.py | mgradowski/aiproject | 855332bd982bef2530ad935a209ae8be35963165 | [
"MIT"
] | null | null | null | fpds/client.py | mgradowski/aiproject | 855332bd982bef2530ad935a209ae8be35963165 | [
"MIT"
] | null | null | null | fpds/client.py | mgradowski/aiproject | 855332bd982bef2530ad935a209ae8be35963165 | [
"MIT"
] | null | null | null | import cv2
import aiohttp
import asyncio
import concurrent.futures
import argparse
import numpy as np
async def camera_source(ws: aiohttp.ClientWebSocketResponse, threadpool: concurrent.futures.ThreadPoolExecutor, src_id: int=0):
loop = asyncio.get_running_loop()
try:
src = await loop.run_in_executor(... | 35.025974 | 127 | 0.668891 | 0 | 0 | 0 | 0 | 0 | 0 | 2,052 | 0.760845 | 133 | 0.049314 |
6af759aad1d331394cb7f013c9559f17569541f2 | 3,619 | py | Python | Giveme5W1H/extractor/tools/key_value_cache.py | bkrrr/Giveme5W | 657738781fe387d76e6e0da35ed009ccf81f4290 | [
"Apache-2.0"
] | 410 | 2018-05-02T12:53:02.000Z | 2022-03-28T16:11:34.000Z | Giveme5W1H/extractor/tools/key_value_cache.py | bkrrr/Giveme5W | 657738781fe387d76e6e0da35ed009ccf81f4290 | [
"Apache-2.0"
] | 51 | 2018-05-02T13:53:19.000Z | 2022-03-22T00:16:39.000Z | Giveme5W1H/extractor/tools/key_value_cache.py | TU-Berlin/Giveme5W1H | b1586328393a50acde86015d22f78a4c15bf2f34 | [
"Apache-2.0"
] | 81 | 2018-05-29T14:03:27.000Z | 2022-02-08T08:59:38.000Z | import logging
import os
import pickle
import sys
import threading
import time
from typing import List
from Giveme5W1H.extractor.root import path
from Giveme5W1H.extractor.tools.util import bytes_2_human_readable
class KeyValueCache(object):
def __init__(self, cache_path):
"""
:param cache_path: ... | 30.931624 | 115 | 0.585797 | 3,402 | 0.940039 | 0 | 0 | 0 | 0 | 0 | 0 | 1,255 | 0.346781 |
6af7f07129b756fc33dfdd705556d009ef89fe63 | 3,121 | py | Python | nsst_translate_corpus.py | AlexanderJenke/nsst | 75f6afa39568c72c9c513ac0313db33b80bb67d5 | [
"Apache-2.0"
] | null | null | null | nsst_translate_corpus.py | AlexanderJenke/nsst | 75f6afa39568c72c9c513ac0313db33b80bb67d5 | [
"Apache-2.0"
] | null | null | null | nsst_translate_corpus.py | AlexanderJenke/nsst | 75f6afa39568c72c9c513ac0313db33b80bb67d5 | [
"Apache-2.0"
] | null | null | null | from argparse import ArgumentParser
from tqdm import tqdm
import NSST
from nsst_translate import best_transition_sequence
if __name__ == '__main__':
parser = ArgumentParser()
parser.add_argument("--nsst_file", default="output/nsst_tss20_th4_nSt100_Q0.pkl", help="nsst file")
parser.add_argument("--src_lan... | 32.852632 | 104 | 0.544056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 681 | 0.218199 |
6afa2508436ad02c7fe767127789a72b5fa053d8 | 382 | py | Python | 10 Days of Statistics/Day 1/Standard Deviation.py | dhyanpatel110/HACKERRANK | 949b1ff468ff3487663bf063a8fe6cdfb9dea26b | [
"Apache-2.0"
] | null | null | null | 10 Days of Statistics/Day 1/Standard Deviation.py | dhyanpatel110/HACKERRANK | 949b1ff468ff3487663bf063a8fe6cdfb9dea26b | [
"Apache-2.0"
] | null | null | null | 10 Days of Statistics/Day 1/Standard Deviation.py | dhyanpatel110/HACKERRANK | 949b1ff468ff3487663bf063a8fe6cdfb9dea26b | [
"Apache-2.0"
] | null | null | null | # Import library
import math
# Define functionts
def mean(data):
return sum(data) / len(data)
def stddev(data, size):
sum = 0
for i in range(size):
sum = sum + (data[i] - mean(data)) ** 2
return math.sqrt(sum / size)
# Set data
size = int(input())
numbers = list(map(int, input().split()))
# ... | 19.1 | 47 | 0.63089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 69 | 0.180628 |
6afb588f82055ac18339fc17c00162ed0a0496d8 | 314 | py | Python | Homework/Hw4/Solution/problem5a.py | jmsevillam/Herramientas-Computacionales-UniAndes | 957338873bd6a17201dfd4629c7edd5760e2271d | [
"MIT"
] | null | null | null | Homework/Hw4/Solution/problem5a.py | jmsevillam/Herramientas-Computacionales-UniAndes | 957338873bd6a17201dfd4629c7edd5760e2271d | [
"MIT"
] | null | null | null | Homework/Hw4/Solution/problem5a.py | jmsevillam/Herramientas-Computacionales-UniAndes | 957338873bd6a17201dfd4629c7edd5760e2271d | [
"MIT"
] | 5 | 2019-05-27T13:35:51.000Z | 2020-09-30T15:19:39.000Z | def decode(word1,word2,code):
if len(word1)==1:
code+=word1+word2
return code
else:
code+=word1[0]+word2[0]
return decode(word1[1:],word2[1:],code)
Alice='Ti rga eoe esg o h ore"ermetsCmuainls'
Bob='hspormdcdsamsaefrtecus Hraina optcoae"'
print(decode(Alice,Bob,''))
| 24.153846 | 47 | 0.630573 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 82 | 0.261146 |
6afbbfc0a8b4d96b676b80363b2e541af846b662 | 7,415 | py | Python | pychron/lasers/power/composite_calibration_manager.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 31 | 2016-03-07T02:38:17.000Z | 2022-02-14T18:23:43.000Z | pychron/lasers/power/composite_calibration_manager.py | ASUPychron/pychron | dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76 | [
"Apache-2.0"
] | 1,626 | 2015-01-07T04:52:35.000Z | 2022-03-25T19:15:59.000Z | pychron/lasers/power/composite_calibration_manager.py | UIllinoisHALPychron/pychron | f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc | [
"Apache-2.0"
] | 26 | 2015-05-23T00:10:06.000Z | 2022-03-07T16:51:57.000Z | # ===============================================================================
# Copyright 2012 Jake Ross
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licens... | 30.142276 | 88 | 0.552124 | 5,650 | 0.761969 | 0 | 0 | 0 | 0 | 0 | 0 | 1,692 | 0.228186 |