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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0ecedb23d891d612188b09f34a36b454a3d85a93 | 6,674 | py | Python | src/oci/apm_traces/models/query_result_row_type_summary.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 249 | 2017-09-11T22:06:05.000Z | 2022-03-04T17:09:29.000Z | src/oci/apm_traces/models/query_result_row_type_summary.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 228 | 2017-09-11T23:07:26.000Z | 2022-03-23T10:58:50.000Z | src/oci/apm_traces/models/query_result_row_type_summary.py | Manny27nyc/oci-python-sdk | de60b04e07a99826254f7255e992f41772902df7 | [
"Apache-2.0",
"BSD-3-Clause"
] | 224 | 2017-09-27T07:32:43.000Z | 2022-03-25T16:55:42.000Z | # coding: utf-8
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 33.878173 | 245 | 0.674408 | 6,134 | 0.919089 | 0 | 0 | 6,164 | 0.923584 | 0 | 0 | 4,653 | 0.697183 |
0ecf9572bf4b2d6c4df42c5a6542407de0db8c29 | 6,920 | py | Python | jaxformer/hf/sample.py | salesforce/CodeGen | 2ca076874ca2d26c2437df2968f6c43df92748bc | [
"BSD-3-Clause"
] | 105 | 2022-03-29T23:45:55.000Z | 2022-03-31T23:57:14.000Z | jaxformer/hf/sample.py | salesforce/CodeGen | 2ca076874ca2d26c2437df2968f6c43df92748bc | [
"BSD-3-Clause"
] | 2 | 2022-03-31T04:18:49.000Z | 2022-03-31T17:58:09.000Z | jaxformer/hf/sample.py | salesforce/CodeGen | 2ca076874ca2d26c2437df2968f6c43df92748bc | [
"BSD-3-Clause"
] | 6 | 2022-03-30T06:05:39.000Z | 2022-03-31T21:01:27.000Z | # Copyright (c) 2022, salesforce.com, inc.
# All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
# For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
import os
import re
import time
import random
import argparse
import torch
from transformers import ... | 27.244094 | 224 | 0.619509 | 263 | 0.038006 | 0 | 0 | 0 | 0 | 0 | 0 | 1,464 | 0.211561 |
0ecfc00a422b2dc3bba9eb71d7782113b804c267 | 4,351 | py | Python | tests/services/test_rover_runner_service.py | dev-11/mars-rover-challenge | 67569fcc4b93e5ec4cbe466d7a2fd5b3e9a316b0 | [
"MIT"
] | null | null | null | tests/services/test_rover_runner_service.py | dev-11/mars-rover-challenge | 67569fcc4b93e5ec4cbe466d7a2fd5b3e9a316b0 | [
"MIT"
] | null | null | null | tests/services/test_rover_runner_service.py | dev-11/mars-rover-challenge | 67569fcc4b93e5ec4cbe466d7a2fd5b3e9a316b0 | [
"MIT"
] | null | null | null | import unittest
from services import RoverRunnerService
from tests.test_environment.marses import small_mars_with_one_rover_empty_commands
from tests.test_environment import mocks as m
from data_objects import Rover
class TestRoverRunnerService(unittest.TestCase):
def test_rover_runner_moves_rover_forward(self):... | 51.188235 | 85 | 0.746495 | 4,132 | 0.949667 | 0 | 0 | 0 | 0 | 0 | 0 | 42 | 0.009653 |
0ed02b6b55177c4481e9ea0e870de71a75e2629f | 12,734 | py | Python | retrain_with_rotnet.py | ericdaat/self-label | 7c12f834c7b6bd5bee2f7f165aab33d4c4e50b51 | [
"MIT"
] | 440 | 2020-02-17T06:54:38.000Z | 2022-03-24T09:32:13.000Z | retrain_with_rotnet.py | ericdaat/self-label | 7c12f834c7b6bd5bee2f7f165aab33d4c4e50b51 | [
"MIT"
] | 21 | 2020-02-28T06:40:20.000Z | 2022-03-11T10:59:09.000Z | retrain_with_rotnet.py | ericdaat/self-label | 7c12f834c7b6bd5bee2f7f165aab33d4c4e50b51 | [
"MIT"
] | 53 | 2020-02-27T13:05:49.000Z | 2022-03-07T02:33:01.000Z | import argparse
import warnings
warnings.simplefilter("ignore", UserWarning)
import files
from tensorboardX import SummaryWriter
import os
import numpy as np
import time
import torch
import torch.optim
import torch.nn as nn
import torch.utils.data
import torchvision
import torchvision.transforms as tfs
from data impo... | 44.369338 | 154 | 0.569185 | 7,057 | 0.554186 | 0 | 0 | 0 | 0 | 0 | 0 | 2,071 | 0.162635 |
0ed057bb216be080ba95c6d1f2a7ce1ab1dfd4f5 | 1,341 | py | Python | tests/vie.py | Jinwithyoo/han | 931a271e56134dcc35029bf75260513b60884f6c | [
"BSD-3-Clause"
] | null | null | null | tests/vie.py | Jinwithyoo/han | 931a271e56134dcc35029bf75260513b60884f6c | [
"BSD-3-Clause"
] | null | null | null | tests/vie.py | Jinwithyoo/han | 931a271e56134dcc35029bf75260513b60884f6c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from tests import HangulizeTestCase
from hangulize.langs.vie import Vietnamese
class VietnameseTestCase(HangulizeTestCase):
""" http://korean.go.kr/09_new/dic/rule/rule_foreign_0218.jsp """
lang = Vietnamese()
def test_1st(self):
"""제1항
nh는 이어지는 모음과 합쳐서 한 음절로 적는다.... | 24.833333 | 69 | 0.463833 | 1,624 | 0.939271 | 0 | 0 | 0 | 0 | 0 | 0 | 1,101 | 0.636784 |
0ed0e5f6ef98dbca0fc996f3f87ca29e7cb4b7a2 | 1,054 | py | Python | tests/test_functions/test_trig.py | jackromo/mathLibPy | b80badd293b93da85aaf122c3d3da022f6dab361 | [
"MIT"
] | 1 | 2020-06-09T05:43:33.000Z | 2020-06-09T05:43:33.000Z | tests/test_functions/test_trig.py | jackromo/mathLibPy | b80badd293b93da85aaf122c3d3da022f6dab361 | [
"MIT"
] | 15 | 2016-03-06T17:10:40.000Z | 2016-05-28T14:06:16.000Z | tests/test_functions/test_trig.py | jackromo/mathLibPy | b80badd293b93da85aaf122c3d3da022f6dab361 | [
"MIT"
] | null | null | null | from mathlibpy.functions import *
import unittest
class SinTester(unittest.TestCase):
def setUp(self):
self.sin = Sin()
def test_call(self):
self.assertEqual(self.sin(0), 0)
def test_eq(self):
self.assertEqual(self.sin, Sin())
def test_get_derivative_call(self):
sel... | 20.269231 | 66 | 0.63852 | 946 | 0.897533 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0.009488 |
0ed195167a4ca32696adae9b1a096d1817a006fd | 639 | py | Python | src/smallestLetter/target.py | rajitbanerjee/leetcode | 720fcdd88d371e2d6592ceec8370a6760a77bb89 | [
"CC0-1.0"
] | null | null | null | src/smallestLetter/target.py | rajitbanerjee/leetcode | 720fcdd88d371e2d6592ceec8370a6760a77bb89 | [
"CC0-1.0"
] | null | null | null | src/smallestLetter/target.py | rajitbanerjee/leetcode | 720fcdd88d371e2d6592ceec8370a6760a77bb89 | [
"CC0-1.0"
] | 1 | 2021-04-28T18:17:55.000Z | 2021-04-28T18:17:55.000Z | class Solution:
def nextGreatestLetter(self, letters: list, target: str) -> str:
if target < letters[0] or target >= letters[-1]:
return letters[0]
left, right = 0, len(letters) - 1
while left < right:
mid = left + (right - left) // 2
if letters[mid] > tar... | 31.95 | 70 | 0.528951 | 431 | 0.674491 | 0 | 0 | 0 | 0 | 0 | 0 | 129 | 0.201878 |
0ed3370d325b05dcd0ff4ac3d8d74980237e624c | 1,004 | py | Python | anti_cpdaily/command.py | hyx0329/nonebot_plugin_anti_cpdaily | 5868626fb95876f9638aaa1edd9a2f914ea7bed1 | [
"MIT"
] | 2 | 2021-11-07T10:33:16.000Z | 2021-12-20T08:25:19.000Z | anti_cpdaily/command.py | hyx0329/nonebot_plugin_anti_cpdaily | 5868626fb95876f9638aaa1edd9a2f914ea7bed1 | [
"MIT"
] | null | null | null | anti_cpdaily/command.py | hyx0329/nonebot_plugin_anti_cpdaily | 5868626fb95876f9638aaa1edd9a2f914ea7bed1 | [
"MIT"
] | null | null | null | import nonebot
from nonebot import on_command
from nonebot.rule import to_me
from nonebot.typing import T_State
from nonebot.adapters import Bot, Event
from nonebot.log import logger
from .config import global_config
from .schedule import anti_cpdaily_check_routine
cpdaily = on_command('cpdaily')
scheduler = nonebot... | 32.387097 | 124 | 0.76494 | 0 | 0 | 0 | 0 | 532 | 0.519531 | 631 | 0.616211 | 271 | 0.264648 |
0ed367645577a295c7ca8d2261bca85d6a1facb8 | 978 | py | Python | matplotlib/gallery_python/pyplots/dollar_ticks.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | matplotlib/gallery_python/pyplots/dollar_ticks.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | matplotlib/gallery_python/pyplots/dollar_ticks.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | """
============
Dollar Ticks
============
Use a `~.ticker.FormatStrFormatter` to prepend dollar signs on y axis labels.
"""
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
# Fixing random state for reproducibility
np.random.seed(19680801)
fig, ax = plt.subplots()
ax.plot(100*np... | 22.227273 | 77 | 0.673824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 392 | 0.400818 |
0ed3c5718d5548ba82fc7cde7bd8e347ef468e10 | 6,746 | py | Python | Chibrary/utils.py | chiro2001/chibrary | da31ef80df394cfb260fbe2c1e675f28717fea3e | [
"MIT"
] | null | null | null | Chibrary/utils.py | chiro2001/chibrary | da31ef80df394cfb260fbe2c1e675f28717fea3e | [
"MIT"
] | null | null | null | Chibrary/utils.py | chiro2001/chibrary | da31ef80df394cfb260fbe2c1e675f28717fea3e | [
"MIT"
] | 1 | 2021-09-21T16:40:58.000Z | 2021-09-21T16:40:58.000Z | import json
import re
from flask import request, abort, jsonify
from Chibrary import config
from Chibrary.config import logger
from Chibrary.exceptions import *
from functools import wraps
from urllib import parse
from Chibrary.server import db
def parse_url_query(url: str) -> dict:
if not url.lower().startswith(... | 28.82906 | 116 | 0.554996 | 0 | 0 | 0 | 0 | 1,035 | 0.147352 | 0 | 0 | 2,460 | 0.350228 |
0ed495b3d64a671dbd7202470a06b2b18d6c7be4 | 155 | py | Python | tests/inputs/loops/51-arrays-in-loop.py | helq/pytropos | 497ed5902e6e4912249ca0a46b477f9bfa6ae80a | [
"MIT"
] | 4 | 2019-10-06T18:01:24.000Z | 2020-07-03T05:27:35.000Z | tests/inputs/loops/51-arrays-in-loop.py | helq/pytropos | 497ed5902e6e4912249ca0a46b477f9bfa6ae80a | [
"MIT"
] | 5 | 2021-06-07T15:50:04.000Z | 2021-06-07T15:50:06.000Z | tests/inputs/loops/51-arrays-in-loop.py | helq/pytropos | 497ed5902e6e4912249ca0a46b477f9bfa6ae80a | [
"MIT"
] | null | null | null | import numpy as np
from something import Top
i = 0
while i < 10:
a = np.ndarray((10,4))
b = np.ones((10, Top))
i += 1
del Top
# show_store()
| 12.916667 | 26 | 0.580645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 14 | 0.090323 |
0ed4e33e928545ea0125662f34b75db4ebefd622 | 897 | py | Python | tests/mappers/fields/test_float_field.py | Arfey/aiohttp_admin2 | 2b3782389ec9e25809635811b76ef8111b27d8ba | [
"MIT"
] | 12 | 2021-10-15T11:48:12.000Z | 2022-03-24T07:31:43.000Z | tests/mappers/fields/test_float_field.py | Arfey/aiohttp_admin2 | 2b3782389ec9e25809635811b76ef8111b27d8ba | [
"MIT"
] | 2 | 2021-12-29T16:31:05.000Z | 2021-12-30T00:50:40.000Z | tests/mappers/fields/test_float_field.py | Arfey/aiohttp_admin2 | 2b3782389ec9e25809635811b76ef8111b27d8ba | [
"MIT"
] | null | null | null | from aiohttp_admin2.mappers import Mapper
from aiohttp_admin2.mappers import fields
class FloatMapper(Mapper):
field = fields.FloatField()
def test_correct_float_type():
"""
In this test we check success convert to float type.
"""
mapper = FloatMapper({"field": 1})
mapper.is_valid()
ass... | 21.878049 | 66 | 0.645485 | 58 | 0.06466 | 0 | 0 | 0 | 0 | 0 | 0 | 224 | 0.249721 |
0ed5587a827c8b8f54d7f90abf4042432f650675 | 1,163 | py | Python | autotest/t038_test.py | jdlarsen-UA/flopy | bf2c59aaa689de186bd4c80685532802ac7149cd | [
"CC0-1.0",
"BSD-3-Clause"
] | 2 | 2021-09-06T01:08:58.000Z | 2021-09-06T06:02:15.000Z | autotest/t038_test.py | jdlarsen-UA/flopy | bf2c59aaa689de186bd4c80685532802ac7149cd | [
"CC0-1.0",
"BSD-3-Clause"
] | null | null | null | autotest/t038_test.py | jdlarsen-UA/flopy | bf2c59aaa689de186bd4c80685532802ac7149cd | [
"CC0-1.0",
"BSD-3-Clause"
] | null | null | null | """
Try to load all of the MODFLOW-USG examples in ../examples/data/mfusg_test.
These are the examples that are distributed with MODFLOW-USG.
"""
import os
import flopy
# make the working directory
tpth = os.path.join("temp", "t038")
if not os.path.isdir(tpth):
os.makedirs(tpth)
# build list of name files to try... | 25.844444 | 78 | 0.663801 | 0 | 0 | 113 | 0.097163 | 0 | 0 | 0 | 0 | 384 | 0.330181 |
0ed56ff83d82e72563699b9ea8ce0b02dcd84908 | 999 | py | Python | botlib/cli.py | relikd/botlib | d0c5072d27db1aa3fad432457c90c9e3f23f22cc | [
"MIT"
] | null | null | null | botlib/cli.py | relikd/botlib | d0c5072d27db1aa3fad432457c90c9e3f23f22cc | [
"MIT"
] | null | null | null | botlib/cli.py | relikd/botlib | d0c5072d27db1aa3fad432457c90c9e3f23f22cc | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
from argparse import ArgumentParser, ArgumentTypeError, FileType, Namespace
from typing import Any
def DirType(string: str) -> str:
if os.path.isdir(string):
return string
raise ArgumentTypeError(
'Directory does not exist: "{}"'.format(os.path.abspath(string))... | 31.21875 | 75 | 0.640641 | 674 | 0.674675 | 0 | 0 | 0 | 0 | 0 | 0 | 69 | 0.069069 |
0ed9a8ae3cb2f6c51bd79bc87c61d261f1d3fcce | 3,488 | py | Python | pyhanko_certvalidator/asn1_types.py | MatthiasValvekens/certvalidator | 246c5075ecdb6d50b14c93fdc97a9d0470f84821 | [
"MIT"
] | 4 | 2020-11-11T13:59:05.000Z | 2022-03-13T14:06:10.000Z | pyhanko_certvalidator/asn1_types.py | MatthiasValvekens/certvalidator | 246c5075ecdb6d50b14c93fdc97a9d0470f84821 | [
"MIT"
] | 1 | 2020-11-11T11:29:37.000Z | 2020-11-11T11:29:37.000Z | pyhanko_certvalidator/asn1_types.py | MatthiasValvekens/certvalidator | 246c5075ecdb6d50b14c93fdc97a9d0470f84821 | [
"MIT"
] | 2 | 2020-11-11T10:33:32.000Z | 2022-03-13T14:06:11.000Z | from typing import Optional
from asn1crypto import core, x509, cms
__all__ = [
'Target', 'TargetCert', 'Targets', 'SequenceOfTargets',
'AttrSpec', 'AAControls'
]
class TargetCert(core.Sequence):
_fields = [
('target_certificate', cms.IssuerSerial),
('target_name', x509.GeneralName, {'opt... | 30.068966 | 73 | 0.663417 | 2,075 | 0.594897 | 0 | 0 | 494 | 0.141628 | 0 | 0 | 1,090 | 0.3125 |
0ed9b178770e9775a60fa8ee66730cd786425565 | 448 | py | Python | test/test_delete_group.py | ruslankl9/ironpython_training | 51eaad4da24fdce60fbafee556160a9e847c08cf | [
"Apache-2.0"
] | null | null | null | test/test_delete_group.py | ruslankl9/ironpython_training | 51eaad4da24fdce60fbafee556160a9e847c08cf | [
"Apache-2.0"
] | null | null | null | test/test_delete_group.py | ruslankl9/ironpython_training | 51eaad4da24fdce60fbafee556160a9e847c08cf | [
"Apache-2.0"
] | null | null | null | from model.group import Group
import random
def test_delete_some_group(app):
if len(app.group.get_group_list()) <= 1:
app.group.add_new_group(Group(name='test'))
old_list = app.group.get_group_list()
index = random.randrange(len(old_list))
app.group.delete_group_by_index(index)
new_list = ... | 32 | 51 | 0.712054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0.013393 |
0ed9d9ea2d863109661ee50e679a897b97a003a9 | 3,173 | py | Python | Evaluation/batch_detection.py | gurkirt/actNet-inAct | 1930bcb41553e50ddd83985a497a9d5ce4f1fcf2 | [
"MIT"
] | 27 | 2016-05-04T07:13:05.000Z | 2021-12-05T04:45:45.000Z | Evaluation/batch_detection.py | gurkirt/actNet-inAct | 1930bcb41553e50ddd83985a497a9d5ce4f1fcf2 | [
"MIT"
] | 1 | 2017-12-28T08:29:00.000Z | 2017-12-28T08:29:00.000Z | Evaluation/batch_detection.py | gurkirt/actNet-inAct | 1930bcb41553e50ddd83985a497a9d5ce4f1fcf2 | [
"MIT"
] | 12 | 2016-05-15T21:40:06.000Z | 2019-11-27T09:43:55.000Z | '''
Autor: Gurkirt Singh
Start data: 15th May 2016
purpose: of this file is read frame level predictions and process them to produce a label per video
'''
from sklearn.svm import LinearSVC
from sklearn.ensemble import RandomForestClassifier
import numpy as np
import pickle
import os
import time,json
import pylab as pl... | 36.056818 | 157 | 0.627167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,186 | 0.373779 |
0eda0495743701a807a727479d2ba40e2e1b5552 | 910 | py | Python | python/csv/csv_dict_writer.py | y2ghost/study | c5278611b0a732fe19e3d805c0c079e530b1d3b2 | [
"MIT"
] | null | null | null | python/csv/csv_dict_writer.py | y2ghost/study | c5278611b0a732fe19e3d805c0c079e530b1d3b2 | [
"MIT"
] | null | null | null | python/csv/csv_dict_writer.py | y2ghost/study | c5278611b0a732fe19e3d805c0c079e530b1d3b2 | [
"MIT"
] | null | null | null | import csv
def csv_dict_writer(path, headers, data):
with open(path, 'w', newline='') as csvfile:
writer = csv.DictWriter(csvfile, delimiter=',',
fieldnames=headers)
writer.writeheader()
for record in data:
writer.writerow(record)
if __name__ =... | 31.37931 | 74 | 0.650549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 281 | 0.308791 |
0eda1b4f399b44a556364cedf6c955fb55a3872c | 2,355 | py | Python | src/decisionengine/framework/modules/tests/test_module_decorators.py | moibenko/decisionengine | 4c458e0c225ec2ce1e82d56e752724983331b7d1 | [
"Apache-2.0"
] | 9 | 2018-06-11T20:06:50.000Z | 2020-10-01T17:02:02.000Z | src/decisionengine/framework/modules/tests/test_module_decorators.py | moibenko/decisionengine | 4c458e0c225ec2ce1e82d56e752724983331b7d1 | [
"Apache-2.0"
] | 551 | 2018-06-25T21:06:37.000Z | 2022-03-31T13:47:32.000Z | src/decisionengine/framework/modules/tests/test_module_decorators.py | goodenou/decisionengine | b203e2c493cf501562accf1013c6257c348711b7 | [
"Apache-2.0"
] | 70 | 2018-06-11T20:07:01.000Z | 2022-02-10T16:18:24.000Z | # SPDX-FileCopyrightText: 2017 Fermi Research Alliance, LLC
# SPDX-License-Identifier: Apache-2.0
import pytest
from decisionengine.framework.modules import Publisher, Source
from decisionengine.framework.modules.Module import verify_products
from decisionengine.framework.modules.Source import Parameter
def test_mu... | 31.4 | 113 | 0.656476 | 451 | 0.191507 | 0 | 0 | 742 | 0.315074 | 0 | 0 | 638 | 0.270913 |
0edaae48c98ecfaf21b42f1bc713fce970f11754 | 1,687 | py | Python | models/cnn_layer.py | RobinRojowiec/intent-recognition-in-doctor-patient-interviews | b91c7a9f3ad70edd0f39b56e3219f48d1fcf2078 | [
"Apache-2.0"
] | null | null | null | models/cnn_layer.py | RobinRojowiec/intent-recognition-in-doctor-patient-interviews | b91c7a9f3ad70edd0f39b56e3219f48d1fcf2078 | [
"Apache-2.0"
] | null | null | null | models/cnn_layer.py | RobinRojowiec/intent-recognition-in-doctor-patient-interviews | b91c7a9f3ad70edd0f39b56e3219f48d1fcf2078 | [
"Apache-2.0"
] | 1 | 2021-11-24T18:48:47.000Z | 2021-11-24T18:48:47.000Z | import torch
import torch.nn as nn
from torch.nn.functional import max_pool1d
from utility.model_parameter import Configuration, ModelParameter
class CNNLayer(nn.Module):
def __init__(self, config: Configuration, vocab_size=30000, use_embeddings=True, embed_dim=-1, **kwargs):
super(CNNLayer, self).__init... | 37.488889 | 109 | 0.670421 | 1,539 | 0.91227 | 0 | 0 | 0 | 0 | 0 | 0 | 46 | 0.027267 |
0edc64834d9ac7d861217e389cda5a4bf52a203f | 1,129 | py | Python | musicscore/musicxml/types/complextypes/backup.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | 2 | 2020-06-22T13:33:28.000Z | 2020-12-30T15:09:00.000Z | musicscore/musicxml/types/complextypes/backup.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | 37 | 2020-02-18T12:15:00.000Z | 2021-12-13T20:01:14.000Z | musicscore/musicxml/types/complextypes/backup.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | null | null | null | '''
<xs:complexType name="backup">
<xs:annotation>
<xs:documentation></xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="duration"/>
<xs:group ref="editorial"/>
</xs:sequence>
</xs:complexType>
'''
from musicscore.dtd.dtd import Sequence, GroupReference, Element
from musicscore.musicxml... | 35.28125 | 119 | 0.732507 | 644 | 0.570416 | 0 | 0 | 0 | 0 | 0 | 0 | 646 | 0.572188 |
0edcbb01b3b82f3bf4be9564d133e3829ce06411 | 4,429 | py | Python | NLP programmes in Python/9.Text Clustering/kmeans.py | AlexandrosPlessias/NLP-Greek-Presentations | 4ae9d635a777f24bae5238b9f195bd17d00040ea | [
"MIT"
] | null | null | null | NLP programmes in Python/9.Text Clustering/kmeans.py | AlexandrosPlessias/NLP-Greek-Presentations | 4ae9d635a777f24bae5238b9f195bd17d00040ea | [
"MIT"
] | null | null | null | NLP programmes in Python/9.Text Clustering/kmeans.py | AlexandrosPlessias/NLP-Greek-Presentations | 4ae9d635a777f24bae5238b9f195bd17d00040ea | [
"MIT"
] | null | null | null | import nltk
import re
import csv
import string
import collections
import numpy as np
from nltk.corpus import wordnet
from nltk.corpus import stopwords
from nltk.stem import WordNetLemmatizer
from nltk.tokenize import WordPunctTokenizer
from sklearn.metrics import classification_report
from sklearn.metric... | 34.069231 | 141 | 0.685482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,308 | 0.295326 |
0edd17d0b784bbe0102b923ddf6f8c3e0cea3855 | 7,304 | py | Python | common/utils.py | paTRICK-swk/P-STMO | def1bff3fcc4f1e3b1dd69c8d3c2d77f412e3b75 | [
"MIT"
] | 8 | 2022-03-16T02:55:45.000Z | 2022-03-31T08:29:05.000Z | common/utils.py | paTRICK-swk/P-STMO | def1bff3fcc4f1e3b1dd69c8d3c2d77f412e3b75 | [
"MIT"
] | 2 | 2022-03-24T23:29:23.000Z | 2022-03-31T02:59:39.000Z | common/utils.py | paTRICK-swk/P-STMO | def1bff3fcc4f1e3b1dd69c8d3c2d77f412e3b75 | [
"MIT"
] | null | null | null | import torch
import numpy as np
import hashlib
from torch.autograd import Variable
import os
def deterministic_random(min_value, max_value, data):
digest = hashlib.sha256(data.encode()).digest()
raw_value = int.from_bytes(digest[:4], byteorder='little', signed=False)
return int(raw_value / (2 ** 32 - 1... | 32.035088 | 118 | 0.607065 | 279 | 0.038198 | 0 | 0 | 0 | 0 | 0 | 0 | 765 | 0.104737 |
0edda9355db51eae6f5202748937966f72f31878 | 1,362 | py | Python | personal_ad/advice/converter.py | Sailer43/CSE5914Project | ebb47bff9a6101fac5173b5520e6002563da67d5 | [
"MIT"
] | null | null | null | personal_ad/advice/converter.py | Sailer43/CSE5914Project | ebb47bff9a6101fac5173b5520e6002563da67d5 | [
"MIT"
] | 1 | 2019-10-15T21:48:27.000Z | 2019-10-15T21:48:27.000Z | personal_ad/advice/converter.py | Sailer43/CSE5914Project | ebb47bff9a6101fac5173b5520e6002563da67d5 | [
"MIT"
] | null | null | null | from ibm_watson import TextToSpeechV1, SpeechToTextV1, DetailedResponse
from os import system
from json import loads
class Converter:
k_s2t_api_key = "0pxCnJQ_r5Yy3SZDRhYS4XshrTMJyZEsuc45SbBcfGgf"
k_t2s_api_key = "euoR7ZdLMOBd29wP1fNaZFJsqwKt45TUmwcVwpzbQBcA"
k_s2t_url = "https://stream.watsonplatform.n... | 30.954545 | 84 | 0.679883 | 1,178 | 0.864905 | 0 | 0 | 0 | 0 | 0 | 0 | 354 | 0.259912 |
0eddc7235cfdc03253ec66ce28f34006def0e26e | 301 | py | Python | warg_client/client/apis/controller/attack_controller.py | neel4os/warg-client | 4d97904977a6f6865610afd04ca00ddfbad38ff9 | [
"MIT"
] | null | null | null | warg_client/client/apis/controller/attack_controller.py | neel4os/warg-client | 4d97904977a6f6865610afd04ca00ddfbad38ff9 | [
"MIT"
] | null | null | null | warg_client/client/apis/controller/attack_controller.py | neel4os/warg-client | 4d97904977a6f6865610afd04ca00ddfbad38ff9 | [
"MIT"
] | null | null | null | from subprocess import run
def perform_shutdown(body):
arg = ""
if body["reboot"]:
_is_reboot = arg + "-r"
else:
_is_reboot = arg + "-h"
time_to_shutdown = str(body['timeToShutdown'])
result = run(["/sbin/shutdown", _is_reboot, time_to_shutdown])
return body
| 23.153846 | 66 | 0.621262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 0.166113 |
0edddd954e6572bd2613d0926da19b7e62f01353 | 346 | py | Python | torrents/migrations/0011_auto_20190223_2345.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 9 | 2019-03-26T14:50:00.000Z | 2020-11-10T16:44:08.000Z | torrents/migrations/0011_auto_20190223_2345.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 22 | 2019-03-02T23:16:13.000Z | 2022-02-27T10:36:36.000Z | torrents/migrations/0011_auto_20190223_2345.py | 2600box/harvest | 57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd | [
"Apache-2.0"
] | 5 | 2019-04-24T00:51:30.000Z | 2020-11-06T18:31:49.000Z | # Generated by Django 2.1.7 on 2019-02-23 23:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('torrents', '0010_auto_20190223_0326'),
]
operations = [
migrations.AlterModelOptions(
name='realm',
options={'ordering': ('n... | 19.222222 | 48 | 0.586705 | 261 | 0.754335 | 0 | 0 | 0 | 0 | 0 | 0 | 105 | 0.303468 |
0ede1b7c3e14b744474c60d6f5f4a702ad5ce8ca | 281 | py | Python | common/__init__.py | whyh/FavourDemo | 1b19882fb2e79dee9c3332594bf45c91e7476eaa | [
"Unlicense"
] | 1 | 2020-09-14T12:10:22.000Z | 2020-09-14T12:10:22.000Z | common/__init__.py | whyh/FavourDemo | 1b19882fb2e79dee9c3332594bf45c91e7476eaa | [
"Unlicense"
] | 4 | 2021-04-30T20:54:31.000Z | 2021-06-02T00:28:04.000Z | common/__init__.py | whyh/FavourDemo | 1b19882fb2e79dee9c3332594bf45c91e7476eaa | [
"Unlicense"
] | null | null | null | from . import (emoji as emj,
keyboards as kb,
telegram as tg,
phrases as phr,
finance as fin,
utils,
glossary,
bots,
gcp,
sed,
db)
| 23.416667 | 31 | 0.33452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0ee18d6b7b8309b3efbe99ae9ad5cbadde515b83 | 1,136 | py | Python | questions/serializers.py | aneumeier/questions | fe5451b70d85cd5203b4cb624103c1eb154587d9 | [
"BSD-3-Clause"
] | null | null | null | questions/serializers.py | aneumeier/questions | fe5451b70d85cd5203b4cb624103c1eb154587d9 | [
"BSD-3-Clause"
] | null | null | null | questions/serializers.py | aneumeier/questions | fe5451b70d85cd5203b4cb624103c1eb154587d9 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8
"""
:mod:`question.serializers` -- serializers
"""
from rest_framework import serializers
from .models import Question, PossibleAnswer
from category.models import Category
class PossibleAnswerSerializer(serializers.ModelSerializer):
class Meta:
model = PossibleA... | 21.846154 | 63 | 0.588028 | 911 | 0.801937 | 0 | 0 | 0 | 0 | 0 | 0 | 278 | 0.244718 |
0ee18e4216ec08fa76991908f8a448c6f9b7427c | 2,147 | py | Python | widgets/ui_ShowResultDialog.py | JaySon-Huang/SecertPhotos | e741cc26c19a5b249d45cc70959ac6817196cb8a | [
"MIT"
] | null | null | null | widgets/ui_ShowResultDialog.py | JaySon-Huang/SecertPhotos | e741cc26c19a5b249d45cc70959ac6817196cb8a | [
"MIT"
] | 3 | 2015-05-19T08:43:46.000Z | 2015-06-10T17:55:28.000Z | widgets/ui_ShowResultDialog.py | JaySon-Huang/SecertPhotos | e741cc26c19a5b249d45cc70959ac6817196cb8a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'src/ui_ShowResultDialog.ui'
#
# Created: Sat May 16 17:05:43 2015
# by: PyQt5 UI code generator 5.4
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def s... | 43.816327 | 115 | 0.72054 | 1,817 | 0.846297 | 0 | 0 | 0 | 0 | 0 | 0 | 340 | 0.158361 |
0ee1c1606231abe837f3edc4544d4485e01f3d4a | 6,484 | py | Python | mixcoatl/admin/api_key.py | zomGreg/mixcoatl | dd8d7e206682955b251d7f858fffee56b11df8c6 | [
"Apache-2.0"
] | null | null | null | mixcoatl/admin/api_key.py | zomGreg/mixcoatl | dd8d7e206682955b251d7f858fffee56b11df8c6 | [
"Apache-2.0"
] | null | null | null | mixcoatl/admin/api_key.py | zomGreg/mixcoatl | dd8d7e206682955b251d7f858fffee56b11df8c6 | [
"Apache-2.0"
] | null | null | null | """
mixcoatl.admin.api_key
----------------------
Implements access to the DCM ApiKey API
"""
from mixcoatl.resource import Resource
from mixcoatl.decorators.lazy import lazy_property
from mixcoatl.decorators.validations import required_attrs
from mixcoatl.utils import uncamel, camelize, camel_keys, uncamel_keys
impor... | 31.173077 | 105 | 0.610734 | 6,145 | 0.947717 | 0 | 0 | 4,943 | 0.762338 | 0 | 0 | 2,717 | 0.419031 |
0ee1c3866e5f2d77866339896a7b340616b1337d | 414 | py | Python | Python tests/dictionaries.py | Johnny-QA/Python_training | a15de68195eb155c99731db3e4ff1d9d75681752 | [
"Apache-2.0"
] | null | null | null | Python tests/dictionaries.py | Johnny-QA/Python_training | a15de68195eb155c99731db3e4ff1d9d75681752 | [
"Apache-2.0"
] | null | null | null | Python tests/dictionaries.py | Johnny-QA/Python_training | a15de68195eb155c99731db3e4ff1d9d75681752 | [
"Apache-2.0"
] | null | null | null | my_set = {1, 3, 5}
my_dict = {'name': 'Jose', 'age': 90}
another_dict = {1: 15, 2: 75, 3: 150}
lottery_players = [
{
'name': 'Rolf',
'numbers': (13, 45, 66, 23, 22)
},
{
'name': 'John',
'numbers': (14, 56, 80, 23, 22)
}
]
universities = [
{
'name': 'Oxford',... | 16.56 | 39 | 0.398551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 112 | 0.270531 |
0ee3d5ffc425ea5928ae83711b91532c1603b60f | 7,589 | py | Python | psdaq/psdaq/control_gui/QWTable.py | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 16 | 2017-11-09T17:10:56.000Z | 2022-03-09T23:03:10.000Z | psdaq/psdaq/control_gui/QWTable.py | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 6 | 2017-12-12T19:30:05.000Z | 2020-07-09T00:28:33.000Z | psdaq/psdaq/control_gui/QWTable.py | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 25 | 2017-09-18T20:02:43.000Z | 2022-03-27T22:27:42.000Z |
"""Class :py:class:`QWTable` is a QTableView->QWidget for tree model
======================================================================
Usage ::
# Run test: python lcls2/psdaq/psdaq/control_gui/QWTable.py
from psdaq.control_gui.QWTable import QWTable
w = QWTable()
Created on 2019-03-28 by Mikhail D... | 32.431624 | 122 | 0.644617 | 6,490 | 0.855185 | 0 | 0 | 0 | 0 | 0 | 0 | 1,781 | 0.234682 |
0ee3f4cb54a20c54630494d1b68aa8ef7ce66afa | 1,948 | py | Python | src/grailbase/mtloader.py | vadmium/grailbrowser | ca94e6db2359bcb16c0da256771550d1327c6d33 | [
"CNRI-Python",
"CNRI-Jython"
] | 9 | 2015-03-23T23:21:42.000Z | 2021-08-01T01:47:22.000Z | src/grailbase/mtloader.py | vadmium/grailbrowser | ca94e6db2359bcb16c0da256771550d1327c6d33 | [
"CNRI-Python",
"CNRI-Jython"
] | null | null | null | src/grailbase/mtloader.py | vadmium/grailbrowser | ca94e6db2359bcb16c0da256771550d1327c6d33 | [
"CNRI-Python",
"CNRI-Jython"
] | 11 | 2015-03-23T23:22:22.000Z | 2020-06-08T14:24:17.000Z | """Extension loader for filetype handlers.
The extension objects provided by MIMEExtensionLoader objects have four
attributes: parse, embed, add_options, and update_options. The first two
are used as handlers for supporting the MIME type as primary and embeded
resources. The last two are (currently) only used for pr... | 31.934426 | 77 | 0.602669 | 1,537 | 0.789014 | 0 | 0 | 0 | 0 | 0 | 0 | 536 | 0.275154 |
0ee482f843ff11fa45eb748eba4af3c343f6b618 | 38,737 | py | Python | eventstreams_sdk/adminrest_v1.py | IBM/eventstreams-python-sdk | cc898e6901c35d1b43e2be7d152c6d770d967b23 | [
"Apache-2.0"
] | 2 | 2021-05-06T10:18:21.000Z | 2021-09-17T05:19:57.000Z | eventstreams_sdk/eventstreams_sdk/adminrest_v1.py | IBM/eventstreams-python-sdk | cc898e6901c35d1b43e2be7d152c6d770d967b23 | [
"Apache-2.0"
] | 1 | 2021-03-16T17:08:20.000Z | 2021-03-18T18:13:49.000Z | eventstreams_sdk/eventstreams_sdk/adminrest_v1.py | IBM/eventstreams-python-sdk | cc898e6901c35d1b43e2be7d152c6d770d967b23 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# (C) Copyright IBM Corp. 2021.
#
# 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 a... | 37.755361 | 115 | 0.596226 | 37,288 | 0.962594 | 0 | 0 | 5,612 | 0.144874 | 0 | 0 | 17,970 | 0.463898 |
0ee4cfc2dd5204b72c6c610aac6abe376e79a7c9 | 3,765 | py | Python | 3-functions/pytest-exercises/test_functions.py | BaseCampCoding/python-fundamentals | 3804c07841d6604b1e5a1c15126b3301aa8ae306 | [
"MIT"
] | null | null | null | 3-functions/pytest-exercises/test_functions.py | BaseCampCoding/python-fundamentals | 3804c07841d6604b1e5a1c15126b3301aa8ae306 | [
"MIT"
] | 1 | 2018-07-18T18:01:22.000Z | 2019-06-14T15:06:28.000Z | 3-functions/pytest-exercises/test_functions.py | BaseCampCoding/python-fundamentals | 3804c07841d6604b1e5a1c15126b3301aa8ae306 | [
"MIT"
] | null | null | null | import functions
from pytest import approx
from bcca.test import should_print
def test_add_em_up():
assert functions.add_em_up(1, 2, 3) == 6
assert functions.add_em_up(4, 5, 6) == 15
def test_sub_sub_hubbub():
assert functions.sub_sub_hubbub(1, 2, 3) == -4
def test_square_area():
assert functions.... | 22.957317 | 74 | 0.733068 | 0 | 0 | 0 | 0 | 2,125 | 0.564409 | 0 | 0 | 1,141 | 0.303054 |
0ee50094e88f5107ffe4383858e5ac2e6c4ea6ec | 90 | py | Python | src/products/admin.py | apabaad/django_ecommerce | ca04143477b306413158e5311062563f7418700c | [
"bzip2-1.0.6"
] | null | null | null | src/products/admin.py | apabaad/django_ecommerce | ca04143477b306413158e5311062563f7418700c | [
"bzip2-1.0.6"
] | null | null | null | src/products/admin.py | apabaad/django_ecommerce | ca04143477b306413158e5311062563f7418700c | [
"bzip2-1.0.6"
] | null | null | null | from django.contrib import admin
from .models import Product
admin.site.register(Product) | 22.5 | 32 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0ee558decdd72d80756553cbdc2a73e521956143 | 134 | py | Python | cio/plugins/txt.py | beshrkayali/content-io | ae44aa4c4eba2234f940ca9d7a4bb310e25075b3 | [
"BSD-3-Clause"
] | 6 | 2015-02-12T20:23:42.000Z | 2020-01-10T09:42:32.000Z | cio/plugins/txt.py | beshrkayali/content-io | ae44aa4c4eba2234f940ca9d7a4bb310e25075b3 | [
"BSD-3-Clause"
] | 5 | 2015-09-08T08:54:39.000Z | 2020-01-10T12:13:21.000Z | cio/plugins/txt.py | beshrkayali/content-io | ae44aa4c4eba2234f940ca9d7a4bb310e25075b3 | [
"BSD-3-Clause"
] | 4 | 2015-06-29T15:21:41.000Z | 2019-12-06T09:29:30.000Z | # coding=utf-8
from __future__ import unicode_literals
from .base import BasePlugin
class TextPlugin(BasePlugin):
ext = 'txt'
| 13.4 | 39 | 0.753731 | 46 | 0.343284 | 0 | 0 | 0 | 0 | 0 | 0 | 19 | 0.141791 |
0ee595b8e0ae941415e84128e8515b5e48db04fe | 2,013 | py | Python | ml-scripts/dump-data-to-learn.py | thejoeejoee/SUI-MIT-VUT-2020-2021 | aee307aa772c5a0e97578da5ebedd3e2cd39ab91 | [
"MIT"
] | null | null | null | ml-scripts/dump-data-to-learn.py | thejoeejoee/SUI-MIT-VUT-2020-2021 | aee307aa772c5a0e97578da5ebedd3e2cd39ab91 | [
"MIT"
] | null | null | null | ml-scripts/dump-data-to-learn.py | thejoeejoee/SUI-MIT-VUT-2020-2021 | aee307aa772c5a0e97578da5ebedd3e2cd39ab91 | [
"MIT"
] | 1 | 2021-01-15T19:01:45.000Z | 2021-01-15T19:01:45.000Z | #!/usr/bin/env python3
# Project: VUT FIT SUI Project - Dice Wars
# Authors:
# - Josef Kolář <[email protected]>
# - Dominik Harmim <[email protected]>
# - Petr Kapoun <[email protected]>
# - Jindřich Šesták <[email protected]>
# Year: 2020
# Description: Genera... | 25.807692 | 116 | 0.623448 | 0 | 0 | 195 | 0.09663 | 0 | 0 | 0 | 0 | 628 | 0.311199 |
0ee5bd4b8f792f655e11610a4d7c25b151f76873 | 4,041 | py | Python | testing/conftest.py | davidszotten/pdbpp | 3d90d83902e1d19840d0419362a41c654f93251e | [
"BSD-3-Clause"
] | null | null | null | testing/conftest.py | davidszotten/pdbpp | 3d90d83902e1d19840d0419362a41c654f93251e | [
"BSD-3-Clause"
] | null | null | null | testing/conftest.py | davidszotten/pdbpp | 3d90d83902e1d19840d0419362a41c654f93251e | [
"BSD-3-Clause"
] | null | null | null | import functools
import sys
from contextlib import contextmanager
import pytest
_orig_trace = None
def pytest_configure():
global _orig_trace
_orig_trace = sys.gettrace()
@pytest.fixture(scope="session", autouse=True)
def term():
"""Configure TERM for predictable output from Pygments."""
from _pyt... | 28.0625 | 80 | 0.659985 | 0 | 0 | 1,999 | 0.49468 | 3,701 | 0.915862 | 0 | 0 | 1,147 | 0.283841 |
0ee60185bcf81d5e6fbf52b5b69fb40616c44fa1 | 1,279 | py | Python | thing_gym_ros/envs/utils.py | utiasSTARS/thing-gym-ros | 6e8a034ac0d1686f29bd29e2aaa63f39a5b188d4 | [
"MIT"
] | 1 | 2021-12-25T01:10:32.000Z | 2021-12-25T01:10:32.000Z | thing_gym_ros/envs/utils.py | utiasSTARS/thing-gym-ros | 6e8a034ac0d1686f29bd29e2aaa63f39a5b188d4 | [
"MIT"
] | null | null | null | thing_gym_ros/envs/utils.py | utiasSTARS/thing-gym-ros | 6e8a034ac0d1686f29bd29e2aaa63f39a5b188d4 | [
"MIT"
] | null | null | null | """ Various generic env utilties. """
def center_crop_img(img, crop_zoom):
""" crop_zoom is amount to "zoom" into the image. E.g. 2.0 would cut out half of the width,
half of the height, and only give the center. """
raw_height, raw_width = img.shape[:2]
center = raw_height // 2, raw_width // 2
cro... | 53.291667 | 97 | 0.6638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 450 | 0.351837 |
0ee65ef56e608d8cc1f10a29c3d522f07069ba46 | 9,006 | py | Python | tests/sentry/utils/http/tests.py | arya-s/sentry | 959ffbd37cb4a7821f7a2676c137be54cad171a8 | [
"BSD-3-Clause"
] | 1 | 2021-06-16T06:57:35.000Z | 2021-06-16T06:57:35.000Z | tests/sentry/utils/http/tests.py | arya-s/sentry | 959ffbd37cb4a7821f7a2676c137be54cad171a8 | [
"BSD-3-Clause"
] | null | null | null | tests/sentry/utils/http/tests.py | arya-s/sentry | 959ffbd37cb4a7821f7a2676c137be54cad171a8 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import mock
from exam import fixture
from sentry import options
from sentry.models import Project
from sentry.testutils import TestCase
from sentry.utils.http import (
is_same_domain, is_valid_origin, get_origins, absolute_uri, is_valid_ip,
)
clas... | 38.652361 | 94 | 0.663002 | 8,677 | 0.963469 | 0 | 0 | 58 | 0.00644 | 0 | 0 | 1,986 | 0.22052 |
0ee6801d23fab1803ee54e727965d043d1914412 | 224 | py | Python | comcenterproject/project/helpers.py | tongpa/bantak_program | 66edfe225e8018f65c9c5a6cd7745c17ba557bd5 | [
"Apache-2.0"
] | null | null | null | comcenterproject/project/helpers.py | tongpa/bantak_program | 66edfe225e8018f65c9c5a6cd7745c17ba557bd5 | [
"Apache-2.0"
] | null | null | null | comcenterproject/project/helpers.py | tongpa/bantak_program | 66edfe225e8018f65c9c5a6cd7745c17ba557bd5 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""WebHelpers used in project."""
#from webhelpers import date, feedgenerator, html, number, misc, text
from markupsafe import Markup
def bold(text):
return Markup('<strong>%s</strong>' % text) | 24.888889 | 69 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 146 | 0.651786 |
0ee6ceb6e274923689476909061cf2ae7181004e | 1,555 | py | Python | Thesis/load/runRiakLoads.py | arnaudsjs/YCSB-1 | dc557d209244df72d68c9cb0a048d54e7bd72637 | [
"Apache-2.0"
] | null | null | null | Thesis/load/runRiakLoads.py | arnaudsjs/YCSB-1 | dc557d209244df72d68c9cb0a048d54e7bd72637 | [
"Apache-2.0"
] | null | null | null | Thesis/load/runRiakLoads.py | arnaudsjs/YCSB-1 | dc557d209244df72d68c9cb0a048d54e7bd72637 | [
"Apache-2.0"
] | null | null | null | import sys;
from Thesis.load.loadBenchmark import runLoadBenchmarkAsBatch;
from Thesis.cluster.RiakCluster import RiakCluster;
NORMAL_BINDING = 'riak';
CONSISTENCY_BINDING = 'riak_consistency';
IPS_IN_CLUSTER = ['172.16.33.14', '172.16.33.15', '172.16.33.16', '172.16.33.17', '172.16.33.18'];
def main():
if len(s... | 42.027027 | 161 | 0.664309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 356 | 0.228939 |
0ee83db3e5e99371f123bcdb50f3fcc2018ce29b | 4,947 | py | Python | auto_nag/tests/test_round_robin.py | Mozilla-GitHub-Standards/f9c78643f5862cda82001d4471255ac29ef0c6b2c6171e2c1cbecab3d2fef4dd | 28d999fcba9ad47d1dd0b2222880b71726ddd47c | [
"BSD-3-Clause"
] | null | null | null | auto_nag/tests/test_round_robin.py | Mozilla-GitHub-Standards/f9c78643f5862cda82001d4471255ac29ef0c6b2c6171e2c1cbecab3d2fef4dd | 28d999fcba9ad47d1dd0b2222880b71726ddd47c | [
"BSD-3-Clause"
] | null | null | null | auto_nag/tests/test_round_robin.py | Mozilla-GitHub-Standards/f9c78643f5862cda82001d4471255ac29ef0c6b2c6171e2c1cbecab3d2fef4dd | 28d999fcba9ad47d1dd0b2222880b71726ddd47c | [
"BSD-3-Clause"
] | null | null | null | # coding: utf-8
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
import unittest
from mock import patch
from auto_nag.people import People
from auto_nag.round_robin im... | 31.711538 | 86 | 0.439256 | 4,595 | 0.928846 | 0 | 0 | 79 | 0.015969 | 0 | 0 | 1,646 | 0.332727 |
0ee87adc70e779b9ff0da63b63fc29dd8e09baec | 21,473 | py | Python | scipy/weave/inline_tools.py | tacaswell/scipy | 4d7e924a319299e39c9a9514e021fbfdfceb854e | [
"BSD-3-Clause"
] | 1 | 2017-01-18T20:32:35.000Z | 2017-01-18T20:32:35.000Z | scipy/weave/inline_tools.py | tacaswell/scipy | 4d7e924a319299e39c9a9514e021fbfdfceb854e | [
"BSD-3-Clause"
] | null | null | null | scipy/weave/inline_tools.py | tacaswell/scipy | 4d7e924a319299e39c9a9514e021fbfdfceb854e | [
"BSD-3-Clause"
] | null | null | null | # should re-write compiled functions to take a local and global dict
# as input.
from __future__ import absolute_import, print_function
import sys
import os
from . import ext_tools
from . import catalog
from . import common_info
from numpy.core.multiarray import _get_ndarray_c_version
ndarray_api_version = '/* NDARRA... | 42.7749 | 93 | 0.593862 | 5,065 | 0.235878 | 0 | 0 | 0 | 0 | 0 | 0 | 11,704 | 0.545057 |
0ee8c1be25a8a7813888c36156d1084e0932af6f | 22,062 | py | Python | trove/guestagent/common/configuration.py | sapcc/trove | c03ec0827687fba202f72f4d264ab70158604857 | [
"Apache-2.0"
] | 1 | 2020-04-08T07:42:19.000Z | 2020-04-08T07:42:19.000Z | trove/guestagent/common/configuration.py | sapcc/trove | c03ec0827687fba202f72f4d264ab70158604857 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | trove/guestagent/common/configuration.py | sapcc/trove | c03ec0827687fba202f72f4d264ab70158604857 | [
"Apache-2.0"
] | 2 | 2020-03-15T01:24:15.000Z | 2020-07-22T20:34:26.000Z | # Copyright 2015 Tesora Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | 40.629834 | 79 | 0.631629 | 21,180 | 0.960022 | 0 | 0 | 2,597 | 0.117714 | 0 | 0 | 9,796 | 0.444021 |
0ee8cb45529200e0a449b9203826ebdcb7530c60 | 18,018 | py | Python | API-Reference-Code-Generator.py | sawyercade/Documentation | 257b68c8ca2928e8a730ea44196297a400587437 | [
"Apache-2.0"
] | 116 | 2017-09-13T17:11:07.000Z | 2022-03-13T00:33:03.000Z | API-Reference-Code-Generator.py | sawyercade/Documentation | 257b68c8ca2928e8a730ea44196297a400587437 | [
"Apache-2.0"
] | 148 | 2017-09-14T01:07:09.000Z | 2022-03-28T21:47:55.000Z | API-Reference-Code-Generator.py | sawyercade/Documentation | 257b68c8ca2928e8a730ea44196297a400587437 | [
"Apache-2.0"
] | 124 | 2017-09-07T22:05:43.000Z | 2022-03-26T05:44:32.000Z | import pathlib
import yaml
documentations = {"Our Platform": "QuantConnect-Platform-2.0.0.yaml",
"Alpha Streams": "QuantConnect-Alpha-0.8.yaml"}
def RequestTable(api_call, params):
writeUp = '<table class="table qc-table">\n<thead>\n<tr>\n'
writeUp += f'<th colspan="2"><code>{api_call}</code... | 41.04328 | 195 | 0.466811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,185 | 0.287768 |
0eea2bc9a6e4ca781595beca55133b3f45fb4b7b | 551 | py | Python | forge_api_client/hubs.py | dmh126/forge-python-data-management-api | 9c33f220021251a0340346065e3dd1998fc49a12 | [
"MIT"
] | 1 | 2019-07-02T08:32:22.000Z | 2019-07-02T08:32:22.000Z | forge_api_client/hubs.py | dmh126/forge-python-data-management-api | 9c33f220021251a0340346065e3dd1998fc49a12 | [
"MIT"
] | null | null | null | forge_api_client/hubs.py | dmh126/forge-python-data-management-api | 9c33f220021251a0340346065e3dd1998fc49a12 | [
"MIT"
] | 2 | 2019-07-04T05:13:42.000Z | 2020-05-09T22:15:05.000Z | from .utils import get_request, authorized
class Hubs:
@authorized
def getHubs(self):
url = self.api_url + '/project/v1/hubs'
headers = {
'Authorization': '%s %s' % (self.token_type, self.access_token)
}
return get_request(url, headers)
@authorized
def g... | 21.192308 | 75 | 0.575318 | 506 | 0.91833 | 0 | 0 | 483 | 0.876588 | 0 | 0 | 83 | 0.150635 |
0eeb15222dc7d564fdca952a76722513fa52548a | 144 | py | Python | tlp/django_app/app/urls.py | munisisazade/create-django-app | f62395af2adaacacc4d3a3857c6570c9647d13a1 | [
"MIT"
] | 14 | 2018-01-08T12:50:10.000Z | 2021-12-26T18:38:14.000Z | tlp/django_app/app/urls.py | munisisazade/create-django-app | f62395af2adaacacc4d3a3857c6570c9647d13a1 | [
"MIT"
] | 10 | 2018-03-01T14:17:05.000Z | 2022-03-11T23:26:11.000Z | tlp/django_app/app/urls.py | munisisazade/create-django-app | f62395af2adaacacc4d3a3857c6570c9647d13a1 | [
"MIT"
] | 4 | 2019-04-09T17:29:34.000Z | 2020-06-07T14:46:23.000Z | from django.conf.urls import url
# from .views import BaseIndexView
urlpatterns = [
# url(r'^$', BaseIndexView.as_view(), name="index"),
] | 20.571429 | 56 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 86 | 0.597222 |
0eeba77c6034df540d6e02d1c1935e84c28bdcd9 | 10,427 | py | Python | tools/archive/create_loadable_configs.py | madelinemccombe/iron-skillet | f7bb805ac5ed0f2b44e4b438f8c021eaf2f5c66b | [
"MIT"
] | null | null | null | tools/archive/create_loadable_configs.py | madelinemccombe/iron-skillet | f7bb805ac5ed0f2b44e4b438f8c021eaf2f5c66b | [
"MIT"
] | null | null | null | tools/archive/create_loadable_configs.py | madelinemccombe/iron-skillet | f7bb805ac5ed0f2b44e4b438f8c021eaf2f5c66b | [
"MIT"
] | null | null | null | # Copyright (c) 2018, Palo Alto Networks
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS... | 38.762082 | 118 | 0.720629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6,368 | 0.610722 |
0eebd18c0a711ceedaa9842ae51084a3bb575a36 | 8,841 | py | Python | pactman/verifier/pytest_plugin.py | piotrantosz/pactman | 2838e273d79831721da9c1b658b8f9d249efc789 | [
"MIT"
] | 67 | 2018-08-26T03:39:16.000Z | 2022-02-24T10:05:18.000Z | pactman/verifier/pytest_plugin.py | piotrantosz/pactman | 2838e273d79831721da9c1b658b8f9d249efc789 | [
"MIT"
] | 82 | 2018-08-29T00:09:32.000Z | 2022-02-08T02:46:15.000Z | pactman/verifier/pytest_plugin.py | piotrantosz/pactman | 2838e273d79831721da9c1b658b8f9d249efc789 | [
"MIT"
] | 37 | 2018-08-22T04:40:31.000Z | 2022-02-08T13:31:31.000Z | import glob
import logging
import os
import warnings
import pytest
from _pytest.outcomes import Failed
from _pytest.reports import TestReport
from .broker_pact import BrokerPact, BrokerPacts, PactBrokerConfig
from .result import PytestResult, log
def pytest_addoption(parser):
group = parser.getgroup("pact speci... | 38.776316 | 109 | 0.658862 | 1,704 | 0.192738 | 753 | 0.085171 | 651 | 0.073634 | 0 | 0 | 3,057 | 0.345775 |
0eec4303c142298ab8af1f1876c980b2e097801b | 1,503 | py | Python | interface/docstring.py | karttur/geoimagine02-grass | 09c207707ddd0dae04a871e006e184409aa87d99 | [
"BSD-3-Clause"
] | null | null | null | interface/docstring.py | karttur/geoimagine02-grass | 09c207707ddd0dae04a871e006e184409aa87d99 | [
"BSD-3-Clause"
] | null | null | null | interface/docstring.py | karttur/geoimagine02-grass | 09c207707ddd0dae04a871e006e184409aa87d99 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
def docstring_property(class_doc):
"""Property attribute for docstrings.
Took from: https://gist.github.com/bfroehle/4041015
>>> class A(object):
... '''Main docstring'''
... def __init__(self, x):
... self.x = x
... @docstring_property(__doc__)... | 26.839286 | 78 | 0.611444 | 889 | 0.591484 | 0 | 0 | 0 | 0 | 0 | 0 | 950 | 0.632069 |
0eec9d3074b439e55c9718c0b6f3f23b0eb54adb | 1,906 | py | Python | autocnet/matcher/cuda_matcher.py | gsn9/autocnet | ddcca3ce3a6b59f720804bb3da03857efa4ff534 | [
"CC0-1.0"
] | null | null | null | autocnet/matcher/cuda_matcher.py | gsn9/autocnet | ddcca3ce3a6b59f720804bb3da03857efa4ff534 | [
"CC0-1.0"
] | 1 | 2018-09-13T16:03:53.000Z | 2018-09-13T16:03:53.000Z | autocnet/matcher/cuda_matcher.py | gsn9/autocnet | ddcca3ce3a6b59f720804bb3da03857efa4ff534 | [
"CC0-1.0"
] | 1 | 2018-09-13T15:12:51.000Z | 2018-09-13T15:12:51.000Z | import warnings
try:
import cudasift as cs
except:
cs = None
import numpy as np
import pandas as pd
def match(edge, aidx=None, bidx=None, **kwargs):
"""
Apply a composite CUDA matcher and ratio check. If this method is used,
no additional ratio check is necessary and no symmetry check is requir... | 35.962264 | 77 | 0.707765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 652 | 0.342078 |
0eed163a13b8bf28c8e3cc3018df9acf80f8ef9a | 199 | py | Python | app/apis/__init__.py | FabienArcellier/blueprint-webapp-flask-restx | 84bc9dbe697c4b0f6667d2a2d8144a3f934a307a | [
"MIT"
] | null | null | null | app/apis/__init__.py | FabienArcellier/blueprint-webapp-flask-restx | 84bc9dbe697c4b0f6667d2a2d8144a3f934a307a | [
"MIT"
] | null | null | null | app/apis/__init__.py | FabienArcellier/blueprint-webapp-flask-restx | 84bc9dbe697c4b0f6667d2a2d8144a3f934a307a | [
"MIT"
] | null | null | null | from flask_restx import Api
from app.apis.hello import api as hello
api = Api(
title='api',
version='1.0',
description='',
prefix='/api',
doc='/api'
)
api.add_namespace(hello)
| 14.214286 | 39 | 0.633166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 24 | 0.120603 |
0eed2f6be467201cff2adf42d27d251ad3cba2b3 | 1,339 | py | Python | tests/test_core.py | Kantouzin/brainfuck | 812834320b080e2317d3fac377db64782057c8f4 | [
"WTFPL"
] | null | null | null | tests/test_core.py | Kantouzin/brainfuck | 812834320b080e2317d3fac377db64782057c8f4 | [
"WTFPL"
] | null | null | null | tests/test_core.py | Kantouzin/brainfuck | 812834320b080e2317d3fac377db64782057c8f4 | [
"WTFPL"
] | null | null | null | # coding: utf-8
import unittest
from test.support import captured_stdout
from brainfuck import BrainFuck
class TestCore(unittest.TestCase):
def test_hello_world(self):
bf = BrainFuck()
with captured_stdout() as stdout:
bf.run()
self.assertEqual(stdout.getvalue(), "Hello, wo... | 24.345455 | 68 | 0.546677 | 1,222 | 0.884866 | 0 | 0 | 0 | 0 | 0 | 0 | 219 | 0.158581 |
0eed507c0a7d908570e5345420f87553a7bbdb5d | 788 | py | Python | main.py | poltavski/social-network-frontend | ccc3410e23e42cfc65efd811aba262ec88163481 | [
"MIT"
] | null | null | null | main.py | poltavski/social-network-frontend | ccc3410e23e42cfc65efd811aba262ec88163481 | [
"MIT"
] | null | null | null | main.py | poltavski/social-network-frontend | ccc3410e23e42cfc65efd811aba262ec88163481 | [
"MIT"
] | null | null | null | from fastapi import FastAPI, Request, Response
from fastapi.responses import HTMLResponse
from fastapi.staticfiles import StaticFiles
from fastapi.templating import Jinja2Templates
from utils import get_page_data, process_initial
import uvicorn
app = FastAPI()
templates = Jinja2Templates(directory="templates")
app.mou... | 29.185185 | 74 | 0.769036 | 0 | 0 | 0 | 0 | 296 | 0.375635 | 206 | 0.261421 | 143 | 0.181472 |
0eed571d3bbd262c5cff9905eccfdacc18b2c6bf | 4,515 | py | Python | Core/Python/create_static_group.py | Ku-Al/OpenManage-Enterprise | 5cc67435d7cedb091edb07311ed9dceeda43277f | [
"Apache-2.0"
] | null | null | null | Core/Python/create_static_group.py | Ku-Al/OpenManage-Enterprise | 5cc67435d7cedb091edb07311ed9dceeda43277f | [
"Apache-2.0"
] | null | null | null | Core/Python/create_static_group.py | Ku-Al/OpenManage-Enterprise | 5cc67435d7cedb091edb07311ed9dceeda43277f | [
"Apache-2.0"
] | null | null | null | #
# Python script using OME API to create a new static group
#
# _author_ = Raajeev Kalyanaraman <[email protected]>
# _version_ = 0.1
#
# Copyright (c) 2020 Dell EMC Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Lic... | 44.70297 | 108 | 0.61041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,036 | 0.450941 |
0eed82297822ff3d19f2f5807a4ad2a8d7e8d1d9 | 4,531 | py | Python | examples/references/segmentation/pascal_voc2012/code/dataflow/dataloaders.py | kagrze/ignite | 18708a76f86623545311d35bc48673eac9e55591 | [
"BSD-3-Clause"
] | null | null | null | examples/references/segmentation/pascal_voc2012/code/dataflow/dataloaders.py | kagrze/ignite | 18708a76f86623545311d35bc48673eac9e55591 | [
"BSD-3-Clause"
] | null | null | null | examples/references/segmentation/pascal_voc2012/code/dataflow/dataloaders.py | kagrze/ignite | 18708a76f86623545311d35bc48673eac9e55591 | [
"BSD-3-Clause"
] | null | null | null | from typing import Callable, Optional, Tuple, Union
import numpy as np
from torch.utils.data import DataLoader, Sampler
from torch.utils.data.dataset import Subset, ConcatDataset
import torch.utils.data.distributed as data_dist
from dataflow.datasets import get_train_dataset, get_val_dataset, TransformedDataset, get... | 43.990291 | 116 | 0.637387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 131 | 0.028912 |
0eef441f20577a797d6570e849cc35b3e4804f14 | 6,309 | py | Python | saleor/core/jwt.py | autobotasia/saleor | e03e9f6ab1bddac308a6609d6b576a87e90ae655 | [
"CC-BY-4.0"
] | 1 | 2022-02-19T13:27:40.000Z | 2022-02-19T13:27:40.000Z | saleor/core/jwt.py | autobotasia/saleor | e03e9f6ab1bddac308a6609d6b576a87e90ae655 | [
"CC-BY-4.0"
] | null | null | null | saleor/core/jwt.py | autobotasia/saleor | e03e9f6ab1bddac308a6609d6b576a87e90ae655 | [
"CC-BY-4.0"
] | 2 | 2021-12-03T16:59:37.000Z | 2022-02-19T13:05:42.000Z | from datetime import datetime, timedelta
from typing import Any, Dict, Optional
import graphene
import jwt
from django.conf import settings
from django.core.handlers.wsgi import WSGIRequest
from ..account.models import User
from ..app.models import App
from .permissions import (
get_permission_names,
get_perm... | 30.926471 | 84 | 0.703598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 864 | 0.136947 |
0eef6d139660d7b5753e9bf6938554e0499dccc1 | 3,513 | py | Python | locust/configuration.py | pancaprima/locust | dba803fcdd13ff2fada4e8b8ee37a163aa519a48 | [
"MIT"
] | 1 | 2018-09-03T10:05:55.000Z | 2018-09-03T10:05:55.000Z | locust/configuration.py | pancaprima/locust | dba803fcdd13ff2fada4e8b8ee37a163aa519a48 | [
"MIT"
] | 14 | 2017-09-20T11:01:44.000Z | 2020-02-21T18:37:58.000Z | locust/configuration.py | erlanggakrisnamukti/locust | dba803fcdd13ff2fada4e8b8ee37a163aa519a48 | [
"MIT"
] | 3 | 2018-01-24T09:39:56.000Z | 2018-08-24T06:30:23.000Z | import os, json, logging, jsonpath_rw_ext, jsonpath_rw
from jsonpath_rw import jsonpath, parse
from . import events
from ast import literal_eval
from flask import make_response
logger = logging.getLogger(__name__)
CONFIG_PATH = '/tests/settings/config.json'
class ClientConfiguration:
"""
This class is a handl... | 34.782178 | 114 | 0.562767 | 3,251 | 0.92542 | 351 | 0.099915 | 1,011 | 0.287788 | 0 | 0 | 625 | 0.177911 |
0eefcd2d4671b89d12e5ea2a56457ebf60bf3929 | 458 | py | Python | data/migrations/0023_discardaction_answers.py | SIXMON/peps | 48c09a951a0193ada7b91c8bb6efc4b1232c3520 | [
"MIT"
] | 5 | 2019-08-29T13:55:47.000Z | 2021-11-15T08:30:33.000Z | data/migrations/0023_discardaction_answers.py | SIXMON/peps | 48c09a951a0193ada7b91c8bb6efc4b1232c3520 | [
"MIT"
] | 295 | 2019-08-19T12:40:29.000Z | 2022-01-24T14:03:20.000Z | data/migrations/0023_discardaction_answers.py | SIXMON/peps | 48c09a951a0193ada7b91c8bb6efc4b1232c3520 | [
"MIT"
] | 7 | 2020-05-27T06:28:48.000Z | 2021-11-17T10:00:54.000Z | # Generated by Django 2.2.4 on 2019-11-14 16:48
import django.contrib.postgres.fields.jsonb
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('data', '0022_discardaction'),
]
operations = [
migrations.AddField(
model_name='discardactio... | 22.9 | 88 | 0.637555 | 329 | 0.718341 | 0 | 0 | 0 | 0 | 0 | 0 | 97 | 0.21179 |
0eefd82c5da7e16c24688892ee11d187a2303e65 | 1,297 | py | Python | app/models.py | juanitodread/pitaya-falcon | f4b889f9fa39072aeb9f1c71fe5f3bb259082e93 | [
"Apache-2.0"
] | null | null | null | app/models.py | juanitodread/pitaya-falcon | f4b889f9fa39072aeb9f1c71fe5f3bb259082e93 | [
"Apache-2.0"
] | null | null | null | app/models.py | juanitodread/pitaya-falcon | f4b889f9fa39072aeb9f1c71fe5f3bb259082e93 | [
"Apache-2.0"
] | null | null | null | from json import JSONEncoder
from time import time
class Jsonable:
"""Abstract class to standardize the toJson method to be implemented by any class that wants to be
serialized to JSON"""
def toJson(self):
"""Abstract method"""
raise NotImplementedError('You should implement this method in... | 27.595745 | 109 | 0.621434 | 1,236 | 0.952968 | 0 | 0 | 0 | 0 | 0 | 0 | 299 | 0.230532 |
0ef004434fa16f22e39f1c30a252704c35a2362e | 2,034 | py | Python | compute_pi.py | jakobkogler/pi_memorize | c82c24f26407f1728ad1e73851b72dea9bf779f6 | [
"MIT"
] | null | null | null | compute_pi.py | jakobkogler/pi_memorize | c82c24f26407f1728ad1e73851b72dea9bf779f6 | [
"MIT"
] | null | null | null | compute_pi.py | jakobkogler/pi_memorize | c82c24f26407f1728ad1e73851b72dea9bf779f6 | [
"MIT"
] | null | null | null | """Compute pi."""
from decimal import Decimal, getcontext
import argparse
import itertools
class ComputePi:
"""Compute pi to a specific precision using multiple algorithms."""
@staticmethod
def BBP(precision):
"""Compute pi using the Bailey-Borwein-Plouffe formula."""
getcontext().prec = ... | 29.478261 | 102 | 0.564897 | 1,584 | 0.778761 | 0 | 0 | 1,478 | 0.726647 | 0 | 0 | 498 | 0.244838 |
0ef0299af0be6f4403ddbf6bc9801b26ba188122 | 1,657 | py | Python | scripts/01_deploy_data_types.py | LaMemeBete/nodys-smart-contract | f67b88d98ebf7063b72f46cb2b014d5de96eb56d | [
"MIT",
"Unlicense"
] | null | null | null | scripts/01_deploy_data_types.py | LaMemeBete/nodys-smart-contract | f67b88d98ebf7063b72f46cb2b014d5de96eb56d | [
"MIT",
"Unlicense"
] | null | null | null | scripts/01_deploy_data_types.py | LaMemeBete/nodys-smart-contract | f67b88d98ebf7063b72f46cb2b014d5de96eb56d | [
"MIT",
"Unlicense"
] | null | null | null | #!/usr/bin/python3
import time
from brownie import (
DataTypes,
TransparentUpgradeableProxy,
ProxyAdmin,
config,
network,
Contract,
)
from scripts.helpful_scripts import get_account, encode_function_data
def main():
account = get_account()
print(config["networks"][network.show_active()... | 35.255319 | 93 | 0.692818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 625 | 0.377188 |
0ef0869b952bf4b7857333b5caa682157e430b0a | 659 | py | Python | modules/BidirectionalLSTM.py | omni-us/pytorch-retinanet | 8d3ee38d50df0afec2ab4dfa0eabb8219eb399f5 | [
"Apache-2.0"
] | 12 | 2019-08-14T13:32:30.000Z | 2022-03-09T15:25:33.000Z | modules/BidirectionalLSTM.py | omni-us/pytorch-retinanet | 8d3ee38d50df0afec2ab4dfa0eabb8219eb399f5 | [
"Apache-2.0"
] | 2 | 2019-12-29T21:15:00.000Z | 2020-01-14T13:51:54.000Z | modules/BidirectionalLSTM.py | omni-us/pytorch-retinanet | 8d3ee38d50df0afec2ab4dfa0eabb8219eb399f5 | [
"Apache-2.0"
] | 6 | 2019-08-03T16:22:41.000Z | 2020-09-27T16:55:40.000Z | import torch.nn as nn
class BidirectionalLSTM(nn.Module):
# Module to extract BLSTM features from convolutional feature map
def __init__(self, nIn, nHidden, nOut):
super(BidirectionalLSTM, self).__init__()
self.rnn = nn.LSTM(nIn, nHidden, bidirectional=True)
self.embedding = nn.Linear... | 28.652174 | 69 | 0.614568 | 635 | 0.963581 | 0 | 0 | 0 | 0 | 0 | 0 | 80 | 0.121396 |
0ef0b2cd3d796c7cb5a1c89e97057d03988cd5cd | 1,436 | py | Python | release/stubs.min/System/Windows/Forms/__init___parts/PaintEventArgs.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/PaintEventArgs.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | release/stubs.min/System/Windows/Forms/__init___parts/PaintEventArgs.py | tranconbv/ironpython-stubs | a601759e6c6819beff8e6b639d18a24b7e351851 | [
"MIT"
] | null | null | null | class PaintEventArgs(EventArgs,IDisposable):
"""
Provides data for the System.Windows.Forms.Control.Paint event.
PaintEventArgs(graphics: Graphics,clipRect: Rectangle)
"""
def Instance(self):
""" This function has been arbitrarily put into the stubs"""
return PaintEventArgs()
def Dispose(self):... | 31.911111 | 215 | 0.699164 | 1,430 | 0.995822 | 0 | 0 | 129 | 0.089833 | 0 | 0 | 932 | 0.649025 |
0ef1f7b69f59398c929a14885bdad0d62cb19dca | 5,173 | py | Python | main.py | JaekwangCha/my_pytorch_templet | 7b6b67116e9d69abd64631d90b38fedc79be6c8c | [
"MIT"
] | null | null | null | main.py | JaekwangCha/my_pytorch_templet | 7b6b67116e9d69abd64631d90b38fedc79be6c8c | [
"MIT"
] | null | null | null | main.py | JaekwangCha/my_pytorch_templet | 7b6b67116e9d69abd64631d90b38fedc79be6c8c | [
"MIT"
] | null | null | null | # written by Jaekwang Cha
# version 0.1
# ================== IMPORT CUSTOM LEARNING LIBRARIES ===================== #
from customs.train import train, test
from customs.dataset import load_dataset
from customs.model import load_model
# ================== TRAINING SETTINGS ================== #
import argparse... | 52.785714 | 159 | 0.605838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,687 | 0.326116 |
0ef37debe8fbb6d99817c5ad659e3ff1f210c644 | 4,812 | py | Python | test/core/024-sc4-gridftp-http/Rosetta.py | ahnitz/pegasus | e269b460f4d87eb3f3a7e91cd82e2c28fdb55573 | [
"Apache-2.0"
] | 127 | 2015-01-28T19:19:13.000Z | 2022-03-31T05:57:40.000Z | test/core/024-sc4-gridftp-http/Rosetta.py | ahnitz/pegasus | e269b460f4d87eb3f3a7e91cd82e2c28fdb55573 | [
"Apache-2.0"
] | 14 | 2015-04-15T17:44:20.000Z | 2022-02-22T22:48:49.000Z | test/core/024-sc4-gridftp-http/Rosetta.py | ahnitz/pegasus | e269b460f4d87eb3f3a7e91cd82e2c28fdb55573 | [
"Apache-2.0"
] | 70 | 2015-01-22T15:20:32.000Z | 2022-02-21T22:50:23.000Z | #!/usr/bin/env python3
import logging
import sys
import subprocess
from pathlib import Path
from datetime import datetime
from Pegasus.api import *
logging.basicConfig(level=logging.DEBUG)
# --- Work Dir Setup -----------------------------------------------------------
RUN_ID = "024-sc4-gridftp-http-" + datetime.no... | 24.932642 | 86 | 0.588113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,221 | 0.461554 |
0ef391d627e7c29662611237b93dc0cbb0bb55b3 | 1,600 | py | Python | tests/nls_smoother_test.py | sisl/CEEM | 6154587fe3cdb92e8b7f70eedb1262caa1553cc8 | [
"MIT"
] | 5 | 2020-06-21T16:50:42.000Z | 2021-03-14T04:02:01.000Z | tests/nls_smoother_test.py | sisl/CEEM | 6154587fe3cdb92e8b7f70eedb1262caa1553cc8 | [
"MIT"
] | 1 | 2021-03-13T07:46:36.000Z | 2021-03-16T05:14:47.000Z | tests/nls_smoother_test.py | sisl/CEEM | 6154587fe3cdb92e8b7f70eedb1262caa1553cc8 | [
"MIT"
] | 1 | 2021-03-30T12:08:20.000Z | 2021-03-30T12:08:20.000Z | import torch
from ceem.opt_criteria import *
from ceem.systems import LorenzAttractor
from ceem.dynamics import *
from ceem.smoother import *
from ceem import utils
def test_smoother():
utils.set_rng_seed(1)
torch.set_default_dtype(torch.float64)
sigma = torch.tensor([10.])
rho = torch.tensor([28.... | 23.880597 | 89 | 0.6325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 192 | 0.12 |
0ef3a6ff8273269894257cdbba761bebf9bbfde6 | 5,787 | py | Python | qiskit/visualization/pulse_v2/device_info.py | godspeed5/qiskit-terra | a5d87c3e4a663ab962704585fba0caef15061246 | [
"Apache-2.0"
] | 15 | 2020-06-29T08:33:39.000Z | 2022-02-12T00:28:51.000Z | qiskit/visualization/pulse_v2/device_info.py | godspeed5/qiskit-terra | a5d87c3e4a663ab962704585fba0caef15061246 | [
"Apache-2.0"
] | 4 | 2020-11-27T09:34:13.000Z | 2021-04-30T21:13:41.000Z | qiskit/visualization/pulse_v2/device_info.py | godspeed5/qiskit-terra | a5d87c3e4a663ab962704585fba0caef15061246 | [
"Apache-2.0"
] | 11 | 2020-06-29T08:40:24.000Z | 2022-02-24T17:39:16.000Z | # This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 39.910345 | 96 | 0.681355 | 3,779 | 0.653015 | 0 | 0 | 2,248 | 0.388457 | 0 | 0 | 2,760 | 0.476931 |
0ef3c67e54e013586a797d3526f9d748c2da9ba4 | 8,401 | py | Python | django_gotolong/mfund/views.py | ParikhKadam/gotolong | 839beb8aa37055a2078eaa289b8ae05b62e8905e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 15 | 2019-12-06T16:19:45.000Z | 2021-08-20T13:22:22.000Z | django_gotolong/mfund/views.py | ParikhKadam/gotolong | 839beb8aa37055a2078eaa289b8ae05b62e8905e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 14 | 2020-12-08T10:45:05.000Z | 2021-09-21T17:23:45.000Z | django_gotolong/mfund/views.py | ParikhKadam/gotolong | 839beb8aa37055a2078eaa289b8ae05b62e8905e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 9 | 2020-01-01T03:04:29.000Z | 2021-04-18T08:42:30.000Z | # Create your views here.
from .models import Mfund
import plotly.graph_objects as go
from plotly.offline import plot
from plotly.tools import make_subplots
from django.db.models import Q
from django.conf import settings
from django.shortcuts import redirect
from django.contrib.auth.decorators import login_require... | 31.464419 | 104 | 0.644209 | 7,432 | 0.884657 | 0 | 0 | 142 | 0.016903 | 0 | 0 | 983 | 0.11701 |
0ef63c39ffdfa491eb48d1233a4ab5b8fb12a49a | 5,444 | py | Python | m3u8.py | akria00/m3u8-Downloader-master | 37bf4683b0390998a819d0bb5b8af18ffb2166f6 | [
"Apache-2.0"
] | 2 | 2020-01-10T20:31:12.000Z | 2020-03-04T19:34:15.000Z | m3u8.py | akria00/m3u8-Downloader-master | 37bf4683b0390998a819d0bb5b8af18ffb2166f6 | [
"Apache-2.0"
] | null | null | null | m3u8.py | akria00/m3u8-Downloader-master | 37bf4683b0390998a819d0bb5b8af18ffb2166f6 | [
"Apache-2.0"
] | 1 | 2019-04-19T08:04:05.000Z | 2019-04-19T08:04:05.000Z | #coding: utf-8
from gevent import monkey
monkey.patch_all()
from gevent.pool import Pool
import gevent
import requests
import urllib
import os
import time
import re
import ssl
class Downloader:
def __init__(self, pool_size, retry=3):
self.pool = Pool(pool_size)
self.session = self._get_http_sessio... | 38.609929 | 171 | 0.517083 | 5,119 | 0.940301 | 0 | 0 | 0 | 0 | 0 | 0 | 603 | 0.110764 |
0ef760e6a3a5620b5876eba10c68bc7b0bb1b6c8 | 474 | py | Python | buzzbox/restaurants/migrations/0002_restaurant_description.py | Danielvalev/kutiika | 661b850163de942a137157a97d98d90553861044 | [
"MIT"
] | null | null | null | buzzbox/restaurants/migrations/0002_restaurant_description.py | Danielvalev/kutiika | 661b850163de942a137157a97d98d90553861044 | [
"MIT"
] | null | null | null | buzzbox/restaurants/migrations/0002_restaurant_description.py | Danielvalev/kutiika | 661b850163de942a137157a97d98d90553861044 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-12-06 10:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('restaurants', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='restaurant',
name='description',
... | 23.7 | 102 | 0.620253 | 381 | 0.803797 | 0 | 0 | 0 | 0 | 0 | 0 | 125 | 0.263713 |
0ef7742a3f6f5d085c7065159824fcf2edcb86c7 | 5,910 | py | Python | src/dsrlib/ui/utils.py | fraca7/dsremap | fb8f4fb13e74b512ed0cac05387fbe9694faebcf | [
"MIT"
] | 8 | 2020-09-06T02:15:10.000Z | 2022-01-12T22:49:20.000Z | src/dsrlib/ui/utils.py | fraca7/dsremap | fb8f4fb13e74b512ed0cac05387fbe9694faebcf | [
"MIT"
] | 5 | 2021-03-29T20:37:46.000Z | 2021-09-19T13:20:24.000Z | src/dsrlib/ui/utils.py | fraca7/dsremap | fb8f4fb13e74b512ed0cac05387fbe9694faebcf | [
"MIT"
] | 2 | 2020-09-16T01:45:49.000Z | 2021-06-12T12:38:15.000Z | #!/usr/bin/env python3
import os
import contextlib
from PyQt5 import QtCore, QtWidgets
from dsrlib.settings import Settings
class LayoutBuilder:
def __init__(self, target):
self.target = target
self._stack = []
@contextlib.contextmanager
def _layout(self, cls, *args, **kwargs):
... | 37.884615 | 160 | 0.57445 | 3,814 | 0.645347 | 664 | 0.112352 | 757 | 0.128088 | 0 | 0 | 277 | 0.04687 |
0ef7cab0d5cd63afd5bc70bd0539a8ffbacf39c0 | 37,201 | py | Python | src/tiden/tidenrunner.py | mshonichev/example_pkg | 556a703fe8ea4a7737b8cae9c5d4d19c1397a70b | [
"Apache-2.0"
] | null | null | null | src/tiden/tidenrunner.py | mshonichev/example_pkg | 556a703fe8ea4a7737b8cae9c5d4d19c1397a70b | [
"Apache-2.0"
] | null | null | null | src/tiden/tidenrunner.py | mshonichev/example_pkg | 556a703fe8ea4a7737b8cae9c5d4d19c1397a70b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright 2017-2020 GridGain Systems.
#
# 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 applicab... | 42.858295 | 121 | 0.597403 | 35,729 | 0.960431 | 271 | 0.007285 | 3,312 | 0.08903 | 0 | 0 | 8,305 | 0.223247 |
0ef87bb853368bafa20ca953ac321175f6e8c5af | 5,425 | py | Python | ludwig/data/cache/manager.py | ludwig-ai/ludw | b9d95bbdb474bc22260269de1bc094bc5455f37c | [
"Apache-2.0"
] | 970 | 2020-12-17T15:09:20.000Z | 2022-03-31T22:58:03.000Z | ludwig/data/cache/manager.py | ludwig-ai/ludw | b9d95bbdb474bc22260269de1bc094bc5455f37c | [
"Apache-2.0"
] | 503 | 2020-12-16T21:44:40.000Z | 2022-03-31T18:21:52.000Z | ludwig/data/cache/manager.py | ludwig-ai/ludw | b9d95bbdb474bc22260269de1bc094bc5455f37c | [
"Apache-2.0"
] | 145 | 2020-12-18T07:38:30.000Z | 2022-03-29T19:05:08.000Z | import logging
import os
import re
import uuid
from pathlib import Path
from ludwig.constants import CHECKSUM, META, TEST, TRAINING, VALIDATION
from ludwig.data.cache.util import calculate_checksum
from ludwig.utils import data_utils
from ludwig.utils.fs_utils import delete, path_exists
logger = logging.getLogger(__n... | 37.413793 | 111 | 0.650323 | 4,976 | 0.917235 | 0 | 0 | 85 | 0.015668 | 0 | 0 | 505 | 0.093088 |
0ef896d76fe90ca7521ad1e92767789c5b227b40 | 2,629 | py | Python | test_calc_base.py | kshshkim/factorioCalcPy | 2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205 | [
"MIT"
] | 1 | 2021-09-21T01:42:05.000Z | 2021-09-21T01:42:05.000Z | test_calc_base.py | kshshkim/factorioCalcPy | 2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205 | [
"MIT"
] | null | null | null | test_calc_base.py | kshshkim/factorioCalcPy | 2a7c6ca567a3bf0d2b19f3cf0bc05274f83d4205 | [
"MIT"
] | null | null | null | import pprint
from FactorioCalcBase.data.binary import sorted_recipe_list, production_machine_category_list_dict
from FactorioCalcBase.recipe import Recipe
from FactorioCalcBase.calculator_base import CalculatorBase
from FactorioCalcBase.dependency_dict_common_function import dict_add_number
import time
def test_chan... | 40.446154 | 104 | 0.637885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 286 | 0.108787 |
0ef9b198b443266a7fb573c35726d29675e45f68 | 2,561 | py | Python | lib/py/src/Thrift.py | ahfeel/thrift | 3ac3fa6fede4b2446209cfeb6fcae5900da543cc | [
"BSL-1.0"
] | 3 | 2016-02-03T07:28:51.000Z | 2017-02-28T06:20:21.000Z | lib/py/src/Thrift.py | shigin/thrift | 4ca9547ffa73082fc4c3ff349dc23a1fda8dcc48 | [
"BSL-1.0"
] | null | null | null | lib/py/src/Thrift.py | shigin/thrift | 4ca9547ffa73082fc4c3ff349dc23a1fda8dcc48 | [
"BSL-1.0"
] | 8 | 2020-03-12T13:42:59.000Z | 2021-05-27T06:34:33.000Z | # Copyright (c) 2006- Facebook
# Distributed under the Thrift Software License
#
# See accompanying file LICENSE or visit the Thrift site at:
# http://developers.facebook.com/thrift/
class TType:
STOP = 0
VOID = 1
BOOL = 2
BYTE = 3
I08 = 3
DOUBLE = 4
I16 = 6
I32 = 8
I64 = 10
STR... | 23.281818 | 62 | 0.635689 | 2,368 | 0.924639 | 0 | 0 | 0 | 0 | 0 | 0 | 492 | 0.192112 |
0ef9be0b4faecf741290076154fb3c5bae164853 | 6,546 | py | Python | engine.py | nyumaya/wake-word-benchmark | d2f7ac091d31403f3398bc3ef2e2de4876a4629e | [
"Apache-2.0"
] | null | null | null | engine.py | nyumaya/wake-word-benchmark | d2f7ac091d31403f3398bc3ef2e2de4876a4629e | [
"Apache-2.0"
] | null | null | null | engine.py | nyumaya/wake-word-benchmark | d2f7ac091d31403f3398bc3ef2e2de4876a4629e | [
"Apache-2.0"
] | null | null | null | #
# Copyright 2018 Picovoice Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 33.397959 | 122 | 0.669111 | 5,587 | 0.853498 | 0 | 0 | 1,322 | 0.201955 | 0 | 0 | 1,464 | 0.223648 |
0efb8a4758e96798acb51aad7950963bd5e398c7 | 1,549 | py | Python | objO_and_ctxMgr/harakiri.py | thirschbuechler/didactic-barnacles | 88d0a2b572aacb2cb45e68bb4f05fa5273224439 | [
"MIT"
] | null | null | null | objO_and_ctxMgr/harakiri.py | thirschbuechler/didactic-barnacles | 88d0a2b572aacb2cb45e68bb4f05fa5273224439 | [
"MIT"
] | null | null | null | objO_and_ctxMgr/harakiri.py | thirschbuechler/didactic-barnacles | 88d0a2b572aacb2cb45e68bb4f05fa5273224439 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 20 22:18:58 2020
@author: https://stackoverflow.com/questions/293431/python-object-deleting-itself
@editor: thirschbuechler
this is probably overkill to alternatively exit a with-context, rather than by exception,
but hey, maybe it will be needed, ... | 29.226415 | 92 | 0.666882 | 546 | 0.352485 | 0 | 0 | 0 | 0 | 0 | 0 | 825 | 0.532602 |
0efbf67a5c5c854b7696ec4d515b55094ea51fb7 | 6,593 | py | Python | chapter2/gestures.py | srimani-programmer/Opencv-with-Python-Blueprints-second-Edition | 8762022a58a379229f02d7250d8344087d98516d | [
"MIT"
] | 39 | 2019-11-25T21:30:14.000Z | 2022-03-29T05:12:43.000Z | chapter2/gestures.py | srimani-programmer/Opencv-with-Python-Blueprints-second-Edition | 8762022a58a379229f02d7250d8344087d98516d | [
"MIT"
] | 2 | 2020-04-19T20:38:15.000Z | 2021-09-29T05:02:48.000Z | chapter2/gestures.py | srimani-programmer/Opencv-with-Python-Blueprints-second-Edition | 8762022a58a379229f02d7250d8344087d98516d | [
"MIT"
] | 29 | 2019-12-22T15:18:18.000Z | 2021-12-25T13:52:44.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""A module containing an algorithm for hand gesture recognition"""
import numpy as np
import cv2
from typing import Tuple
__author__ = "Michael Beyeler"
__license__ = "GNU GPL 3.0 or later"
def recognize(img_gray):
"""Recognizes hand gesture in a single-channel dep... | 36.425414 | 97 | 0.64341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,538 | 0.53663 |
0efc0f40ba7d7a4e242df39e71061af9c4be7d55 | 4,224 | py | Python | satt/trace/logger/panic.py | jnippula/satt | aff4562b7e94f095d2e13eb10b9ac872484bb5cd | [
"Apache-2.0"
] | 54 | 2016-11-09T13:26:40.000Z | 2019-04-30T16:29:45.000Z | satt/trace/logger/panic.py | jnippula/satt | aff4562b7e94f095d2e13eb10b9ac872484bb5cd | [
"Apache-2.0"
] | 2 | 2016-11-09T13:25:19.000Z | 2017-03-27T04:09:35.000Z | satt/trace/logger/panic.py | jnippula/satt | aff4562b7e94f095d2e13eb10b9ac872484bb5cd | [
"Apache-2.0"
] | 10 | 2016-11-28T07:55:40.000Z | 2019-03-23T12:40:36.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
// Copyright (c) 2015 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... | 38.054054 | 125 | 0.615057 | 3,484 | 0.824811 | 0 | 0 | 0 | 0 | 0 | 0 | 1,834 | 0.434186 |
0efc1162d67d89e44bbe7d9f3dc36378c583e84a | 688 | py | Python | xlab/cli.py | csalcedo001/xlab | 8c51f035a870dd57339ff0208a3ab27ef6b8b41f | [
"Apache-2.0"
] | 1 | 2022-03-23T23:44:14.000Z | 2022-03-23T23:44:14.000Z | xlab/cli.py | csalcedo001/xlab | 8c51f035a870dd57339ff0208a3ab27ef6b8b41f | [
"Apache-2.0"
] | null | null | null | xlab/cli.py | csalcedo001/xlab | 8c51f035a870dd57339ff0208a3ab27ef6b8b41f | [
"Apache-2.0"
] | null | null | null | import sys
import os
from . import filesys
MAIN_USAGE_MESSAGE = """
usage: xlab command ...
Options:
positional arguments:
command
project
"""
def project(args):
if len(args) != 1:
print("error: Invalid arguments.")
exit()
if args[0] == 'init':
root = os.getcwd()
... | 16.380952 | 61 | 0.543605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 158 | 0.229651 |
0efc40d3300b3d6d0a1fa06e980fe71072140597 | 16,294 | py | Python | python/paddle/optimizer/adamw.py | jzhang533/Paddle | 3227b2c401a80104e0c01dedcef2061ffa1ebbed | [
"Apache-2.0"
] | null | null | null | python/paddle/optimizer/adamw.py | jzhang533/Paddle | 3227b2c401a80104e0c01dedcef2061ffa1ebbed | [
"Apache-2.0"
] | 1 | 2021-09-07T10:31:38.000Z | 2021-09-08T09:18:20.000Z | python/paddle/optimizer/adamw.py | jzhang533/Paddle | 3227b2c401a80104e0c01dedcef2061ffa1ebbed | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021 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 appli... | 42.543081 | 130 | 0.603044 | 15,398 | 0.94501 | 0 | 0 | 0 | 0 | 0 | 0 | 8,041 | 0.493495 |
0efde6b5a9c1239ffa852e70caccc25e5c41c1dd | 1,880 | py | Python | tests/resources/test_interactions.py | VinLau/BAR_API | 0719a5fbc08872f667590b27347af9bfed669bca | [
"MIT"
] | 1 | 2020-07-06T20:12:25.000Z | 2020-07-06T20:12:25.000Z | tests/resources/test_interactions.py | VinLau/BAR_API | 0719a5fbc08872f667590b27347af9bfed669bca | [
"MIT"
] | 37 | 2020-06-27T02:58:23.000Z | 2022-03-29T00:35:28.000Z | tests/resources/test_interactions.py | VinLau/BAR_API | 0719a5fbc08872f667590b27347af9bfed669bca | [
"MIT"
] | 9 | 2020-06-26T23:09:16.000Z | 2022-01-26T21:20:46.000Z | from api import app
from unittest import TestCase
class TestIntegrations(TestCase):
maxDiff = None
def setUp(self):
self.app_client = app.test_client()
def test_get_itrns(self):
"""
This function test retrieving protein interactions for various species' genes.
"""
... | 31.864407 | 86 | 0.519149 | 1,827 | 0.971809 | 0 | 0 | 0 | 0 | 0 | 0 | 670 | 0.356383 |
0efdfc79a9eea6c3e7cf614d63469062b5917d5a | 2,261 | py | Python | src/dialogflow-java-client-master/samples/clients/VirtualTradingAssistant/src/main/java/ai/examples/scraper/historicalScrape.py | 16kozlowskim/Group-20-SE | ceb8c319643964a3f478772d8f10090962df567c | [
"MIT"
] | null | null | null | src/dialogflow-java-client-master/samples/clients/VirtualTradingAssistant/src/main/java/ai/examples/scraper/historicalScrape.py | 16kozlowskim/Group-20-SE | ceb8c319643964a3f478772d8f10090962df567c | [
"MIT"
] | null | null | null | src/dialogflow-java-client-master/samples/clients/VirtualTradingAssistant/src/main/java/ai/examples/scraper/historicalScrape.py | 16kozlowskim/Group-20-SE | ceb8c319643964a3f478772d8f10090962df567c | [
"MIT"
] | null | null | null | # install BeautifulSoup4 before running
#
# prints out historical data in csv format:
#
# [date, open, high, low, close, volume]
#
import re, csv, sys, urllib2
from bs4 import BeautifulSoup
# If start date and end date is the same only one value will be returned and
# if not the multiple values which can be used to ma... | 29.75 | 205 | 0.658116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,024 | 0.452897 |
0eff08358676f71813cab0fd67b31eed87ddaad4 | 5,460 | py | Python | client/client.py | odontomachus/hotbox | d42c48d7f056f2b1f7bd707ad674e737a3c2fe08 | [
"MIT"
] | null | null | null | client/client.py | odontomachus/hotbox | d42c48d7f056f2b1f7bd707ad674e737a3c2fe08 | [
"MIT"
] | null | null | null | client/client.py | odontomachus/hotbox | d42c48d7f056f2b1f7bd707ad674e737a3c2fe08 | [
"MIT"
] | null | null | null | import sys
import io
from collections import defaultdict
import struct
from time import sleep
import queue
import threading
import serial
from serial import SerialException
RUN_LABELS = ('Time left', 'Temp 1', 'Temp 2', 'Off Goal', 'Temp Change', 'Duty cycle (/30)', 'Heating', 'Cycle', 'Total time', 'Goal temp')
MSG... | 26.25 | 140 | 0.512637 | 4,449 | 0.814835 | 0 | 0 | 421 | 0.077106 | 0 | 0 | 815 | 0.149267 |
0eff0ae716a4c5a7fc1773362d577d2a440094dc | 2,549 | py | Python | test/functional/abc-sync-chain.py | ComputerCraftr/devault | 546b54df85e3392f85e7ea5fcd4ea9b395ba8f4c | [
"MIT"
] | 35 | 2019-02-23T06:21:13.000Z | 2021-11-15T11:35:13.000Z | test/functional/abc-sync-chain.py | ComputerCraftr/devault | 546b54df85e3392f85e7ea5fcd4ea9b395ba8f4c | [
"MIT"
] | 60 | 2019-02-25T18:17:03.000Z | 2021-07-13T00:14:00.000Z | test/functional/abc-sync-chain.py | ComputerCraftr/devault | 546b54df85e3392f85e7ea5fcd4ea9b395ba8f4c | [
"MIT"
] | 24 | 2019-02-20T05:37:02.000Z | 2021-10-29T18:42:10.000Z | #!/usr/bin/env python3
# Copyright (c) 2018 The Bitcoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""
Test that a node receiving many (potentially out of order) blocks exits
initial block download (IBD; this occur... | 31.085366 | 77 | 0.629266 | 1,604 | 0.629266 | 0 | 0 | 0 | 0 | 0 | 0 | 652 | 0.255787 |
16004b3ebbf7944e6af5eebfe55aa2baa0c582bb | 1,325 | py | Python | djangostagram/posts/models.py | hongsemy/InstagramWithDjango | 18cb273668809fb48d829e1ac11438c51505623a | [
"MIT"
] | null | null | null | djangostagram/posts/models.py | hongsemy/InstagramWithDjango | 18cb273668809fb48d829e1ac11438c51505623a | [
"MIT"
] | null | null | null | djangostagram/posts/models.py | hongsemy/InstagramWithDjango | 18cb273668809fb48d829e1ac11438c51505623a | [
"MIT"
] | null | null | null | from django.db import models
from djangostagram.users import models as user_model
# Create your models here.
# This class is used in other models as an inheritance.
# An often-used pattern
class TimeStamedModel(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeFi... | 30.813953 | 90 | 0.627925 | 1,126 | 0.849811 | 0 | 0 | 0 | 0 | 0 | 0 | 239 | 0.180377 |
160140a1d069dde69b115daae82f3d8b2a6cf9c6 | 497 | py | Python | guillotina/contrib/workflows/events.py | rboixaderg/guillotina | fcae65c2185222272f3b8fee4bc2754e81e0e983 | [
"BSD-2-Clause"
] | 173 | 2017-03-10T18:26:12.000Z | 2022-03-03T06:48:56.000Z | guillotina/contrib/workflows/events.py | rboixaderg/guillotina | fcae65c2185222272f3b8fee4bc2754e81e0e983 | [
"BSD-2-Clause"
] | 921 | 2017-03-08T14:04:43.000Z | 2022-03-30T10:28:56.000Z | guillotina/contrib/workflows/events.py | rboixaderg/guillotina | fcae65c2185222272f3b8fee4bc2754e81e0e983 | [
"BSD-2-Clause"
] | 60 | 2017-03-16T19:59:44.000Z | 2022-03-03T06:48:59.000Z | from guillotina.contrib.workflows.interfaces import IWorkflowChangedEvent
from guillotina.events import ObjectEvent
from zope.interface import implementer
@implementer(IWorkflowChangedEvent)
class WorkflowChangedEvent(ObjectEvent):
"""An object has been moved"""
def __init__(self, object, workflow, action, c... | 31.0625 | 73 | 0.744467 | 303 | 0.609658 | 0 | 0 | 339 | 0.682093 | 0 | 0 | 30 | 0.060362 |
1601ac11a20c04fcd9a8cadea05debe08ac71228 | 6,340 | py | Python | data_steward/cdr_cleaner/cleaning_rules/covid_ehr_vaccine_concept_suppression.py | lrwb-aou/curation | e80447e56d269dc2c9c8bc79e78218d4b0dc504c | [
"MIT"
] | 16 | 2017-06-30T20:05:05.000Z | 2022-03-08T21:03:19.000Z | data_steward/cdr_cleaner/cleaning_rules/covid_ehr_vaccine_concept_suppression.py | lrwb-aou/curation | e80447e56d269dc2c9c8bc79e78218d4b0dc504c | [
"MIT"
] | 342 | 2017-06-23T21:37:40.000Z | 2022-03-30T16:44:16.000Z | data_steward/cdr_cleaner/cleaning_rules/covid_ehr_vaccine_concept_suppression.py | lrwb-aou/curation | e80447e56d269dc2c9c8bc79e78218d4b0dc504c | [
"MIT"
] | 33 | 2017-07-01T00:12:20.000Z | 2022-01-26T18:06:53.000Z | """
Suppress COVID EHR vaccine concepts.
Original Issues: DC-1692
"""
# Python imports
import logging
# Project imports
from cdr_cleaner.cleaning_rules.deid.concept_suppression import AbstractBqLookupTableConceptSuppression
from constants.cdr_cleaner import clean_cdr as cdr_consts
from common import JINJA_ENV, CDM_T... | 37.964072 | 108 | 0.681388 | 3,261 | 0.514353 | 0 | 0 | 0 | 0 | 0 | 0 | 3,549 | 0.559779 |
160368ea260cbc50567d2f17656bb9f30dc2af47 | 3,494 | py | Python | pydbhub/httphub.py | sum3105/pydbhub | 501ea2c0ec7785bc06a38961a1366c3c04d7fabd | [
"MIT"
] | 18 | 2021-06-03T14:27:55.000Z | 2022-02-25T17:55:33.000Z | pydbhub/httphub.py | sum3105/pydbhub | 501ea2c0ec7785bc06a38961a1366c3c04d7fabd | [
"MIT"
] | 3 | 2021-06-20T07:17:51.000Z | 2021-12-10T15:24:19.000Z | pydbhub/httphub.py | sum3105/pydbhub | 501ea2c0ec7785bc06a38961a1366c3c04d7fabd | [
"MIT"
] | 5 | 2021-06-29T09:50:40.000Z | 2021-12-31T12:10:57.000Z | import pydbhub
from typing import Any, Dict, List, Tuple
from json.decoder import JSONDecodeError
import requests
import io
def send_request_json(query_url: str, data: Dict[str, Any]) -> Tuple[List[Any], str]:
"""
send_request_json sends a request to DBHub.io, formatting the returned result as JSON
Param... | 30.649123 | 108 | 0.61763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,363 | 0.390097 |
1603becbcb60a137e24357b35d07d2dd6b8de743 | 809 | py | Python | test_calcscore.py | BrandonLeiran/bracket-scoring | a099e9a56ee3083c3a9db7d085b11b1dc7fe77f8 | [
"MIT"
] | null | null | null | test_calcscore.py | BrandonLeiran/bracket-scoring | a099e9a56ee3083c3a9db7d085b11b1dc7fe77f8 | [
"MIT"
] | null | null | null | test_calcscore.py | BrandonLeiran/bracket-scoring | a099e9a56ee3083c3a9db7d085b11b1dc7fe77f8 | [
"MIT"
] | null | null | null | import pytest
from calcscore import round_score
# you'll be picking what teams make it to the next round
# - so picking 32, then 16, then 8, 4, 2, 1...i.e. round 1-6 winners
# teams will have a name & a seed
# seed doesn't change, so maybe make that not passed around w/ results
def test_round_score_invalid_round():... | 31.115385 | 74 | 0.68974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 326 | 0.402967 |
16045e96f3ff12b08a6e4885879fa2b0a083c578 | 4,803 | py | Python | tests/test_get.py | bgyori/pyobo | f199f62f65fc7faff307b56f979a369202c8ad33 | [
"MIT"
] | null | null | null | tests/test_get.py | bgyori/pyobo | f199f62f65fc7faff307b56f979a369202c8ad33 | [
"MIT"
] | null | null | null | tests/test_get.py | bgyori/pyobo | f199f62f65fc7faff307b56f979a369202c8ad33 | [
"MIT"
] | null | null | null | import unittest
from operator import attrgetter
import obonet
from pyobo import SynonymTypeDef, get
from pyobo.struct import Reference
from pyobo.struct.struct import (
iterate_graph_synonym_typedefs, iterate_graph_typedefs, iterate_node_parents, iterate_node_properties,
iterate_node_relationships, iterate_no... | 39.694215 | 111 | 0.636269 | 4,394 | 0.914845 | 0 | 0 | 102 | 0.021237 | 0 | 0 | 1,225 | 0.255049 |
16054aa866f43fe130ae74a4adb86263728710d3 | 2,676 | py | Python | src/commons.py | ymontilla/WebScrapingCatastro | a184b5c92199305e28ca7346c01d1e78e0a92c13 | [
"MIT"
] | null | null | null | src/commons.py | ymontilla/WebScrapingCatastro | a184b5c92199305e28ca7346c01d1e78e0a92c13 | [
"MIT"
] | null | null | null | src/commons.py | ymontilla/WebScrapingCatastro | a184b5c92199305e28ca7346c01d1e78e0a92c13 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# +
## Utilidades comunes entre places y OSM.
# +
import csv
import ast
import codecs
from math import cos, asin, sqrt
# +
def read_csv_with_encoding(filename, delimiter="|", encoding="iso-8859-1"):
with codecs.open(filename, encoding=encoding) as fp:
reader = csv.reader(fp, deli... | 36.162162 | 114 | 0.612855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 625 | 0.233296 |
160586a7f083f1efa16456b4bf747dcafc4be695 | 7,851 | py | Python | GamesGetter.py | JamescMcE/BasketBet | f87719ac793ea50822e8c52fc23191dba9ad6418 | [
"CC0-1.0"
] | null | null | null | GamesGetter.py | JamescMcE/BasketBet | f87719ac793ea50822e8c52fc23191dba9ad6418 | [
"CC0-1.0"
] | null | null | null | GamesGetter.py | JamescMcE/BasketBet | f87719ac793ea50822e8c52fc23191dba9ad6418 | [
"CC0-1.0"
] | null | null | null | #This script Imports Game Data from ESPN, and Odds from the ODDS-API, and then imports them into a MySQL table, example in workbench here https://puu.sh/HOKCj/ce199eec8e.png
import mysql.connector
import requests
import json
import datetime
import time
#Connection to the MYSQL Server.
mydb = mysql.connector.... | 42.668478 | 257 | 0.584639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,061 | 0.389887 |
16071d9e180a990b1f3b40b4034a6c704c0e2258 | 4,302 | py | Python | neurodocker/tests/test_neurodocker.py | effigies/neurodocker | 4b0f32d2915b8b0308e3e391d534e05eb29b8d09 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:00:35.000Z | 2021-01-27T06:00:35.000Z | neurodocker/tests/test_neurodocker.py | giovtorres/neurodocker | 65575f5e44f2c5ef96a5da51d0df54b1af80bb79 | [
"Apache-2.0"
] | null | null | null | neurodocker/tests/test_neurodocker.py | giovtorres/neurodocker | 65575f5e44f2c5ef96a5da51d0df54b1af80bb79 | [
"Apache-2.0"
] | null | null | null | """Tests for neurodocker.main"""
# Author: Jakub Kaczmarzyk <[email protected]>
from __future__ import absolute_import, unicode_literals
import sys
import pytest
from neurodocker.neurodocker import create_parser, parse_args, main
def test_generate():
args = ("generate -b ubuntu:17.04 -p apt"
" --arg ... | 31.173913 | 79 | 0.58066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,798 | 0.417945 |
1607f8c0c3d6768327bf886d9e6092523f205171 | 2,778 | py | Python | fuzzers/011-cle-ffconfig/generate.py | tmichalak/prjuray | 53f3c94b58ffc6d405ac20a3b340ae726717ed47 | [
"0BSD"
] | 39 | 2020-07-17T19:43:40.000Z | 2022-01-07T02:05:48.000Z | fuzzers/011-cle-ffconfig/generate.py | tmichalak/prjuray | 53f3c94b58ffc6d405ac20a3b340ae726717ed47 | [
"0BSD"
] | 24 | 2020-07-17T20:15:54.000Z | 2022-01-21T08:29:51.000Z | fuzzers/011-cle-ffconfig/generate.py | tmichalak/prjuray | 53f3c94b58ffc6d405ac20a3b340ae726717ed47 | [
"0BSD"
] | 11 | 2020-07-17T19:43:45.000Z | 2022-02-09T08:43:23.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 The Project U-Ray Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
'''
FDCE Primitive: D Flip-Flop with Clock... | 28.060606 | 101 | 0.596472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,546 | 0.556515 |
1608246c353096fff06ae6f3c3c9e80955bceb92 | 2,697 | py | Python | hmc/integrators/states/riemannian_leapfrog_state.py | JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo | 7ee1b530db0eb536666dbc872fbf8200e53dd49b | [
"MIT"
] | 1 | 2021-11-23T15:40:07.000Z | 2021-11-23T15:40:07.000Z | hmc/integrators/states/riemannian_leapfrog_state.py | JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo | 7ee1b530db0eb536666dbc872fbf8200e53dd49b | [
"MIT"
] | null | null | null | hmc/integrators/states/riemannian_leapfrog_state.py | JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo | 7ee1b530db0eb536666dbc872fbf8200e53dd49b | [
"MIT"
] | null | null | null | from typing import Callable
import numpy as np
from hmc.integrators.states.leapfrog_state import LeapfrogState
from hmc.integrators.fields import riemannian
from hmc.linalg import solve_psd
class RiemannianLeapfrogState(LeapfrogState):
"""The Riemannian leapfrog state uses the Fisher information matrix to provi... | 32.890244 | 104 | 0.68743 | 2,502 | 0.927697 | 0 | 0 | 835 | 0.309603 | 0 | 0 | 270 | 0.100111 |
1608a15c941a14be0a253388b661310efd0d4787 | 2,834 | py | Python | MultirangerTest.py | StuartLiam/DroneNavigationOnboard | 11ac6a301dfc72b15e337ddf09f5ddc79265a03f | [
"MIT"
] | null | null | null | MultirangerTest.py | StuartLiam/DroneNavigationOnboard | 11ac6a301dfc72b15e337ddf09f5ddc79265a03f | [
"MIT"
] | null | null | null | MultirangerTest.py | StuartLiam/DroneNavigationOnboard | 11ac6a301dfc72b15e337ddf09f5ddc79265a03f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# || ____ _ __
# +------+ / __ )(_) /_______________ _____ ___
# | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
# +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
# || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
#
# Copyright (C) 2... | 31.488889 | 77 | 0.693013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,745 | 0.615737 |