hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
ffdc6f30b9679a7a080046484740e15d56bc7d78
3,532
py
Python
src/teams/views/tasks.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
7
2017-04-14T15:28:29.000Z
2021-09-10T09:45:38.000Z
src/teams/views/tasks.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
799
2016-04-28T09:31:50.000Z
2022-03-29T09:05:02.000Z
src/teams/views/tasks.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
35
2016-04-28T09:23:53.000Z
2021-05-02T12:36:01.000Z
from django import forms from django.contrib import messages from django.contrib.auth.mixins import LoginRequiredMixin from django.http import HttpResponseNotAllowed, HttpResponseRedirect from django.views.generic import CreateView, DetailView, UpdateView from camps.mixins import CampViewMixin from ..models import Ta...
28.483871
86
0.660532
ffdcaa0954950f31098f8fadf76dc8ddfe1324fb
985
py
Python
tests/core/test_core_user.py
MojixCoder/authx
0bb6e70dd4e3c64eaa4e994d761ceb0e3a4f85c2
[ "MIT" ]
null
null
null
tests/core/test_core_user.py
MojixCoder/authx
0bb6e70dd4e3c64eaa4e994d761ceb0e3a4f85c2
[ "MIT" ]
null
null
null
tests/core/test_core_user.py
MojixCoder/authx
0bb6e70dd4e3c64eaa4e994d761ceb0e3a4f85c2
[ "MIT" ]
null
null
null
import pytest from authx.core.jwt import JWTBackend from authx.core.user import User from tests.utils import MockCacheBackend, private_key, public_key jwt_backend = JWTBackend(MockCacheBackend(), private_key, public_key, 60, 60 * 10) ID = 1 USERNAME = "admin" PERMISSIONS = ["admin"] sample_access_token = jwt_backend...
25.25641
82
0.732995
ffdcb1e3a764d8a538ffd761e749e45a8fa2c1fe
49,708
py
Python
fury/tests/test_actors.py
sreekarchigurupati/fury
07ed10123954d3ce3197c45f8ee54a7d4909656d
[ "BSD-3-Clause" ]
null
null
null
fury/tests/test_actors.py
sreekarchigurupati/fury
07ed10123954d3ce3197c45f8ee54a7d4909656d
[ "BSD-3-Clause" ]
null
null
null
fury/tests/test_actors.py
sreekarchigurupati/fury
07ed10123954d3ce3197c45f8ee54a7d4909656d
[ "BSD-3-Clause" ]
null
null
null
import os import itertools from tempfile import TemporaryDirectory as InTemporaryDirectory import pytest import numpy as np import numpy.testing as npt from scipy.ndimage.measurements import center_of_mass from scipy.signal import convolve from fury import shaders from fury import actor, window, primitive as fp from ...
33.249498
79
0.597087
ffdcc8e092bd9701f9d716ee3ac6619da6b3b96c
778
py
Python
tests/test_permutations.py
TLESORT/Continual_Learning_Data_Former
51b43d770d97e441bb6e63e0a568c2f3d5bc8866
[ "MIT" ]
34
2019-07-25T13:22:29.000Z
2021-04-25T02:12:04.000Z
tests/test_permutations.py
TLESORT/Continual_Learning_Data_Former
51b43d770d97e441bb6e63e0a568c2f3d5bc8866
[ "MIT" ]
null
null
null
tests/test_permutations.py
TLESORT/Continual_Learning_Data_Former
51b43d770d97e441bb6e63e0a568c2f3d5bc8866
[ "MIT" ]
4
2019-07-26T03:24:27.000Z
2020-06-13T08:01:37.000Z
import pytest from tests.utils_tests import check_task_sequences_files from continuum.permutations import Permutations import os dataset_size = 100 dir_data = "./Archives" # #@pytest.mark.parametrize("datasets", ["mnist", "fashion", "kmnist","cifar10","LSUN","core50"]) @pytest.mark.slow @pytest.mark.parametrize("dat...
43.222222
115
0.767352
ffdd075b16a31d7b50aa6120015b54aa2eb4fdcf
464
py
Python
LC/388.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/388.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/388.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def lengthLongestPath(self, input): """ :type input: str :rtype: int """ res=0 lines=input.split('\n') stack=[] for line in lines: name=line.lstrip('\t') level=len(line)-len(name) stack=stack[...
27.294118
53
0.467672
ffdd16c0af0ece887966ce38f0b2fc601d96baa0
6,603
py
Python
src/scripts/add_kegg_pathway_info.py
secimTools/gait-gm
758394addb95b09e794132a23a1f7e95ba39df0b
[ "MIT" ]
null
null
null
src/scripts/add_kegg_pathway_info.py
secimTools/gait-gm
758394addb95b09e794132a23a1f7e95ba39df0b
[ "MIT" ]
1
2021-07-09T11:54:15.000Z
2021-07-09T11:54:15.000Z
src/scripts/add_kegg_pathway_info.py
secimTools/gait-gm
758394addb95b09e794132a23a1f7e95ba39df0b
[ "MIT" ]
1
2021-02-23T18:12:19.000Z
2021-02-23T18:12:19.000Z
#!/usr/bin/env python ###################################################################################### # AUTHOR: Francisco Huertas <f.huertas@ufl.edu> # CONTRIBUTORS: Alison Morse <ammorse@ufl.edu>, Oleksandr Moskalenko <om@rc.ufl.edu> # # DESCRIPTION: Download the Kegg information of the selected species and ass...
28.339056
98
0.580948
ffdd60abdc7c345f94f956c7fb278ef85d6bafb0
3,158
py
Python
omen/settings.py
route2kernel/omen
62521690ead4341a562d27da7bceb45eae8b778f
[ "MIT" ]
null
null
null
omen/settings.py
route2kernel/omen
62521690ead4341a562d27da7bceb45eae8b778f
[ "MIT" ]
null
null
null
omen/settings.py
route2kernel/omen
62521690ead4341a562d27da7bceb45eae8b778f
[ "MIT" ]
null
null
null
""" Django settings for omen project. Generated by 'django-admin startproject' using Django 2.2.3. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # Bu...
25.674797
91
0.69601
ffdd8efa946310cb6fa1c3fe61b33546919b2176
21,488
py
Python
tools/wpt/run.py
yinghuazhilian/wpt
3efff9b2d66aed3d8e2061205069883fd54df2be
[ "BSD-3-Clause" ]
1
2019-05-11T02:17:28.000Z
2019-05-11T02:17:28.000Z
tools/wpt/run.py
yinghuazhilian/wpt
3efff9b2d66aed3d8e2061205069883fd54df2be
[ "BSD-3-Clause" ]
null
null
null
tools/wpt/run.py
yinghuazhilian/wpt
3efff9b2d66aed3d8e2061205069883fd54df2be
[ "BSD-3-Clause" ]
null
null
null
import argparse import os import platform import sys from distutils.spawn import find_executable from six.moves import input wpt_root = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) sys.path.insert(0, os.path.abspath(os.path.join(wpt_root, "tools"))) from . import browser, install, te...
34.939837
127
0.627373
ffdd8f461442591ac54c64c4b8e47d6c7c775d62
4,915
py
Python
large_image/cache_util/cachefactory.py
ds2268/large_image
edab179aabdca31e0852866e66b34adbab410f5b
[ "Apache-2.0" ]
null
null
null
large_image/cache_util/cachefactory.py
ds2268/large_image
edab179aabdca31e0852866e66b34adbab410f5b
[ "Apache-2.0" ]
null
null
null
large_image/cache_util/cachefactory.py
ds2268/large_image
edab179aabdca31e0852866e66b34adbab410f5b
[ "Apache-2.0" ]
null
null
null
############################################################################# # Copyright Kitware 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/licen...
39.007937
96
0.614649
ffddb5624ad7c187d930601632c9d8046be49e85
2,633
py
Python
tests/test_benchmark.py
dabiged/devito
3cea137538b641bb1788fde65176ffcf82ab0990
[ "MIT" ]
null
null
null
tests/test_benchmark.py
dabiged/devito
3cea137538b641bb1788fde65176ffcf82ab0990
[ "MIT" ]
3
2020-11-30T05:38:22.000Z
2022-03-07T14:02:05.000Z
tests/test_benchmark.py
maelso/devito
d45932b08733ea7437e6a83fff816ee20d3fbada
[ "MIT" ]
null
null
null
import pytest import os import sys from benchmarks.user.benchmark import run from devito import configuration, switchconfig from subprocess import check_call @pytest.mark.parametrize('mode, problem, op', [ ('bench', 'acoustic', 'forward'), ('run', 'acoustic', 'adjoint'), ('run', 'acoustic', 'jacobian'), ('be...
30.264368
86
0.559818
ffde0fedf9ba21c9c8705ae0c3c802a8df927b90
1,046
py
Python
setup.py
MPIB/qsiprep
76c306305538a1d439838683c923f114e0cf3e89
[ "BSD-3-Clause" ]
36
2019-04-07T18:53:15.000Z
2021-04-04T10:35:54.000Z
setup.py
MPIB/qsiprep
76c306305538a1d439838683c923f114e0cf3e89
[ "BSD-3-Clause" ]
178
2019-02-27T16:36:06.000Z
2021-04-06T12:48:38.000Z
setup.py
MPIB/qsiprep
76c306305538a1d439838683c923f114e0cf3e89
[ "BSD-3-Clause" ]
20
2019-04-05T19:17:26.000Z
2021-03-25T14:47:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ fmriprep setup script """ import sys from setuptools import setup from setuptools.extension import Extension import versioneer # Give setuptools a hint to complain if it's too old a version # 30.3.0 allows us to put most metadata in setup.cfg # Should match pyproject....
29.885714
73
0.672084
ffde1ff9d2328855eaef072291e53acfa54bc0ad
7,639
py
Python
MeerK40t.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
MeerK40t.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
MeerK40t.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
import argparse import sys from Console import Console from DefaultModules import * from GrblDevice import GrblDevice from LhystudiosDevice import LhystudiosDevice from MoshiboardDevice import MoshiboardDevice from RuidaDevice import RuidaDevice from LaserServer import * try: from math import tau exc...
37.446078
94
0.630842
ffde2c46910fbb6356521f493cc08d08cf04cc8c
8,037
py
Python
app/tasks/ept/ep_priority_worker.py
Akeru/ACI-EnhancedEndpointTracker
498bc4c07604b27a57f82cde12967eaa9117b5bc
[ "MIT" ]
null
null
null
app/tasks/ept/ep_priority_worker.py
Akeru/ACI-EnhancedEndpointTracker
498bc4c07604b27a57f82cde12967eaa9117b5bc
[ "MIT" ]
null
null
null
app/tasks/ept/ep_priority_worker.py
Akeru/ACI-EnhancedEndpointTracker
498bc4c07604b27a57f82cde12967eaa9117b5bc
[ "MIT" ]
null
null
null
""" Endpoint Priority Worker @author agossett@cisco.com """ from . import utils as ept_utils from .node_manager import Node_Monitor from .ep_job import EPJob from Queue import Empty import re, time, traceback # setup logger for this package import logging logger = logging.getLogger(__name__) ept_utils.setup_l...
40.386935
79
0.569367
ffde2e7c1880ee0a17d8e2bab4a9f919dd6e25dc
6,197
py
Python
salt/states/mysql_grants.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
1
2016-12-20T20:11:21.000Z
2016-12-20T20:11:21.000Z
salt/states/mysql_grants.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
salt/states/mysql_grants.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
''' Management of MySQL grants (user permissions). ============================================== :depends: - MySQLdb Python module :configuration: See :py:mod:`salt.modules.mysql` for setup instructions. The mysql_grants module is used to grant and revoke MySQL permissions. The ``name`` you pass in purely symboli...
28.557604
78
0.52477
ffde630b3b42e36db07e1eec8530ac6b04cab4d9
106
py
Python
Code/07/function1.py
nolongerwait/Python_Tutorial
3961d6ee9c371fa7666a26b7a114e276170724dd
[ "MIT" ]
null
null
null
Code/07/function1.py
nolongerwait/Python_Tutorial
3961d6ee9c371fa7666a26b7a114e276170724dd
[ "MIT" ]
null
null
null
Code/07/function1.py
nolongerwait/Python_Tutorial
3961d6ee9c371fa7666a26b7a114e276170724dd
[ "MIT" ]
null
null
null
def say_hello(): # 该块属于这一函数 print('hello world') # 函数结束 say_hello() # 调用函数 say_hello() # 再次调用函数
15.142857
24
0.632075
ffde98550f13f07278e5c2ddcb34d276cc0d9624
234
py
Python
pyargcbr/knowledge_resources/solution.py
jaumejordan/pyargcbr
70892360a500e83215449d98ef06746adb1ab51a
[ "MIT" ]
1
2021-06-24T17:15:16.000Z
2021-06-24T17:15:16.000Z
pyargcbr/knowledge_resources/solution.py
jaumejordan/pyargcbr
70892360a500e83215449d98ef06746adb1ab51a
[ "MIT" ]
null
null
null
pyargcbr/knowledge_resources/solution.py
jaumejordan/pyargcbr
70892360a500e83215449d98ef06746adb1ab51a
[ "MIT" ]
null
null
null
from dataclasses import dataclass from .conclusion import Conclusion @dataclass class Solution: """Implementation of the concept Solution""" conclusion: Conclusion = Conclusion() value: str = "" times_used: int = 0
19.5
48
0.717949
ffdeabb52771d6f2cee535bc15fb9447dfa6aa0c
1,111
py
Python
satella/instrumentation/memory/get_object_size.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
12
2019-12-13T10:17:38.000Z
2022-01-05T09:01:36.000Z
satella/instrumentation/memory/get_object_size.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
26
2016-04-01T11:55:26.000Z
2021-12-30T17:03:59.000Z
satella/instrumentation/memory/get_object_size.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
1
2021-05-31T08:45:22.000Z
2021-05-31T08:45:22.000Z
import sys # shamelessly stolen from # https://goshippo.com/blog/measure-real-size-any-python-object/ def get_size(obj, seen=None) -> int: """ Recursively finds the total size of an object (object + it's components). :param obj: object to measure :return: size in bytes of the object and all of it's s...
32.676471
83
0.642664
ffdebc55e0e042fc5507178b3dd730ab4e74d078
3,544
py
Python
aries-cloudagent-python/aries_cloudagent/protocols/issue_credential/v1_0/handlers/credential_request_handler.py
sed-szeged/IndyPerf
68bb48c7c651cae113cf30696110825ff3267ccc
[ "CC0-1.0" ]
null
null
null
aries-cloudagent-python/aries_cloudagent/protocols/issue_credential/v1_0/handlers/credential_request_handler.py
sed-szeged/IndyPerf
68bb48c7c651cae113cf30696110825ff3267ccc
[ "CC0-1.0" ]
null
null
null
aries-cloudagent-python/aries_cloudagent/protocols/issue_credential/v1_0/handlers/credential_request_handler.py
sed-szeged/IndyPerf
68bb48c7c651cae113cf30696110825ff3267ccc
[ "CC0-1.0" ]
1
2022-02-02T17:05:27.000Z
2022-02-02T17:05:27.000Z
"""Credential request message handler.""" from .....indy.issuer import IndyIssuerError from .....ledger.error import LedgerError from .....messaging.base_handler import BaseHandler, HandlerException from .....messaging.request_context import RequestContext from .....messaging.responder import BaseResponder from .....s...
39.820225
88
0.602144
ffdebdaa179fa5751935d83c1a93cb03f9748edf
148
py
Python
lib/sequentia/classifiers/hmm/topologies/__init__.py
Prhmma/sequentia
9d15fc494e4e932174e9c321b6929b624bbccfc6
[ "MIT" ]
32
2019-12-31T15:53:47.000Z
2022-03-31T12:40:40.000Z
lib/sequentia/classifiers/hmm/topologies/__init__.py
Prhmma/sequentia
9d15fc494e4e932174e9c321b6929b624bbccfc6
[ "MIT" ]
25
2020-06-01T18:32:47.000Z
2022-01-22T13:15:36.000Z
lib/sequentia/classifiers/hmm/topologies/__init__.py
Prhmma/sequentia
9d15fc494e4e932174e9c321b6929b624bbccfc6
[ "MIT" ]
6
2019-12-31T15:54:26.000Z
2022-01-23T07:09:28.000Z
from .topology import _Topology from .left_right import _LeftRightTopology from .linear import _LinearTopology from .ergodic import _ErgodicTopology
37
42
0.871622
ffdf3cc6a66f5f490162a0627b78d547d13c7fb1
5,404
py
Python
generate_data/merge_lines.py
ukjinChoe/Open-OCR-Engine
54a11e8baec505c9eb1ad5496a279a429fd9c5a2
[ "MIT" ]
8
2021-05-20T07:36:50.000Z
2022-03-22T08:38:30.000Z
generate_data/merge_lines.py
ukjinChoe/Open-OCR-Engine
54a11e8baec505c9eb1ad5496a279a429fd9c5a2
[ "MIT" ]
null
null
null
generate_data/merge_lines.py
ukjinChoe/Open-OCR-Engine
54a11e8baec505c9eb1ad5496a279a429fd9c5a2
[ "MIT" ]
4
2021-08-24T01:19:36.000Z
2022-03-18T04:01:55.000Z
import numpy as np import sys import random import pickle import argparse from tqdm import tqdm from PIL import Image, ImageDraw from pathlib import Path def cutList(li, mini=2, maxi=6): chunk_size = [] while sum(chunk_size) <= len(li): if len(li)-sum(chunk_size) <= maxi: chunk_size.appe...
35.552632
123
0.606218
ffdf4b2e3705a6f026f513ed619c1025cf4e602e
1,802
py
Python
data/convert_tfrecord.py
hyk95/yolov3_with_mobilenet
de2a49ac7c6faf2881a42f8c41873421daa77377
[ "MIT" ]
12
2019-04-29T09:57:22.000Z
2020-06-24T06:44:42.000Z
data/convert_tfrecord.py
hyk95/yolov2_with_mobilenet
de2a49ac7c6faf2881a42f8c41873421daa77377
[ "MIT" ]
6
2019-05-05T08:51:42.000Z
2020-02-12T08:39:01.000Z
data/convert_tfrecord.py
hyk95/yolov2_with_mobilenet
de2a49ac7c6faf2881a42f8c41873421daa77377
[ "MIT" ]
5
2019-06-22T16:01:55.000Z
2020-04-06T12:15:22.000Z
import sys import argparse import numpy as np import tensorflow as tf import os def main(argv): parser = argparse.ArgumentParser() parser.add_argument("--dataset_txt", default='./2012_train.txt') parser.add_argument("--tfrecord_path_prefix", default='./train_data/train') parser.add_argument("--basic_pa...
36.04
97
0.613762
ffdf773705f8475629d23046dfca8a24966d99d1
3,113
py
Python
sc_drv/normtests.py
leliel12/sc_drv
26e37e6801c9cd80fdfec736e23ef2cbf5fdbdd5
[ "BSD-3-Clause" ]
null
null
null
sc_drv/normtests.py
leliel12/sc_drv
26e37e6801c9cd80fdfec736e23ef2cbf5fdbdd5
[ "BSD-3-Clause" ]
1
2018-06-05T18:29:28.000Z
2018-06-05T18:29:28.000Z
sc_drv/normtests.py
leliel12/sc_drv
26e37e6801c9cd80fdfec736e23ef2cbf5fdbdd5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2018, Cabral, Juan; Luczywo, Nadia; Zanazi Jose Luis # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source co...
39.910256
79
0.616447
ffdf77baa5fbfda7d5c21aff5a85828009ae21eb
31,829
py
Python
demisto_sdk/commands/create_artifacts/tests/content_creator_test.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
demisto_sdk/commands/create_artifacts/tests/content_creator_test.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
demisto_sdk/commands/create_artifacts/tests/content_creator_test.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
import filecmp from tempfile import mkdtemp from demisto_sdk.commands.common.git_tools import git_path from demisto_sdk.commands.create_artifacts.content_creator import * from TestSuite.test_tools import ChangeCWD class TestContentCreator: def setup(self): tests_dir = f'{git_path()}/demisto_sdk/tests' ...
46.533626
120
0.662446
ffdf8469df88aa8a9b5e7b2c458dce94f79bae9d
348
py
Python
tests/test_action.py
dimaka-wix/chaostoolkit-lib
e5d88ab33ea08baaf06f59564392971c249887d1
[ "Apache-2.0" ]
73
2017-11-26T13:43:53.000Z
2022-02-25T02:52:54.000Z
tests/test_action.py
dimaka-wix/chaostoolkit-lib
e5d88ab33ea08baaf06f59564392971c249887d1
[ "Apache-2.0" ]
191
2017-10-09T14:33:12.000Z
2022-03-23T16:23:06.000Z
tests/test_action.py
dimaka-wix/chaostoolkit-lib
e5d88ab33ea08baaf06f59564392971c249887d1
[ "Apache-2.0" ]
48
2017-12-05T16:39:01.000Z
2022-02-14T12:01:30.000Z
import pytest from fixtures import actions from chaoslib.activity import ensure_activity_is_valid from chaoslib.exceptions import InvalidActivity def test_empty_action_is_invalid(): with pytest.raises(InvalidActivity) as exc: ensure_activity_is_valid(actions.EmptyAction) assert "empty activity is no ...
29
60
0.813218
ffdf9acae1847cef8a633d9505e0c29f1c512f4c
6,352
py
Python
homeassistant/components/launch_library/sensor.py
GPDixon/core
c28574362145d808e4f882473f4b9b0c445a8f00
[ "Apache-2.0" ]
null
null
null
homeassistant/components/launch_library/sensor.py
GPDixon/core
c28574362145d808e4f882473f4b9b0c445a8f00
[ "Apache-2.0" ]
7
2022-01-27T06:32:08.000Z
2022-03-31T06:29:00.000Z
homeassistant/components/launch_library/sensor.py
ebfio/home-assistant
5a1e5e1cef3cdcc9b876b768be99bd6844646365
[ "Apache-2.0" ]
null
null
null
"""Support for Launch Library sensors.""" from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass from datetime import datetime import logging from typing import Any from pylaunches.objects.launch import Launch import voluptuous as vol from homeassistant.components.s...
31.76
89
0.702141
ffdfac86155258412e1df9ec52ef7dff1f4201a2
7,207
py
Python
mcc/templates.py
lanl/materialsCloudCompute
6aa5019638b830a79f35a0cf3ef879ff0ab4f2bb
[ "BSD-3-Clause" ]
null
null
null
mcc/templates.py
lanl/materialsCloudCompute
6aa5019638b830a79f35a0cf3ef879ff0ab4f2bb
[ "BSD-3-Clause" ]
null
null
null
mcc/templates.py
lanl/materialsCloudCompute
6aa5019638b830a79f35a0cf3ef879ff0ab4f2bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Create and Manage Launch Templates""" import os import time import boto3 import botocore def create_security_group(security_groups=None, ips=None, ports=None, rules=None, ec2=boto3.resource("ec2")): "Create Security Group" vpc_id = ec2.meta.client.describe_vpcs().get('Vpcs', [{}])[...
44.487654
209
0.61246
ffdfbd3d8b5452127bbb23bcba4198c8f7464c4b
1,007
py
Python
clickModel/AbstractClickModel.py
ielab/fpdgd-ictir2021
8fa18846bd7399e08b368f3ae81150d2465e90bf
[ "MIT" ]
3
2021-06-28T05:13:22.000Z
2021-09-04T11:57:55.000Z
clickModel/AbstractClickModel.py
ielab/fpdgd-ictir2021
8fa18846bd7399e08b368f3ae81150d2465e90bf
[ "MIT" ]
null
null
null
clickModel/AbstractClickModel.py
ielab/fpdgd-ictir2021
8fa18846bd7399e08b368f3ae81150d2465e90bf
[ "MIT" ]
null
null
null
class AbstractClickModel: def set_probs(self, pc, ps): raise NotImplementedError("Derived class needs to implement " "set_probs.") def simulate(self, query, result_list, dataset): raise NotImplementedError("Derived class needs to implement " ...
38.730769
69
0.575968
ffdfc2b5a9833ce7552d0074d28256af8f80fdf1
140
py
Python
rate/apps.py
Mark-Muiri/rater
865d4450b9c41f4ed12bd5a540b3c31419450902
[ "MIT" ]
null
null
null
rate/apps.py
Mark-Muiri/rater
865d4450b9c41f4ed12bd5a540b3c31419450902
[ "MIT" ]
null
null
null
rate/apps.py
Mark-Muiri/rater
865d4450b9c41f4ed12bd5a540b3c31419450902
[ "MIT" ]
null
null
null
from django.apps import AppConfig class RateConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'rate'
20
56
0.75
ffdfe66fe38d85e3c698ebef7316e47b75d460b1
8,423
py
Python
lemur/schemas.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/schemas.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
lemur/schemas.py
x-lhan/lemur
1d8aaa4a242af610363e961167bc31691b358773
[ "Apache-2.0" ]
null
null
null
""" .. module: lemur.schemas :platform: unix :copyright: (c) 2018 by Netflix Inc., see AUTHORS for more :license: Apache, see LICENSE for more details. .. moduleauthor:: Kevin Glisson <kglisson@netflix.com> """ from sqlalchemy.orm.exc import NoResultFound from marshmallow import fields, post_load, pre_lo...
29.763251
136
0.686691
ffe028654828cecf6e002204f193c688f34d298e
29,932
py
Python
train/src/test_obstacle_env_move.py
tku-iarc/collision_avoidance_without_img
981e32e9f2b366fbf5eaa6d006fbb75f29c34028
[ "MIT" ]
null
null
null
train/src/test_obstacle_env_move.py
tku-iarc/collision_avoidance_without_img
981e32e9f2b366fbf5eaa6d006fbb75f29c34028
[ "MIT" ]
null
null
null
train/src/test_obstacle_env_move.py
tku-iarc/collision_avoidance_without_img
981e32e9f2b366fbf5eaa6d006fbb75f29c34028
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """classic Acrobot task""" import sys sys.path.insert(1, "/home/yue/.local/lib/python3.5/site-packages/") sys.path.insert(2, "/home/yue/yuetin/collision_surrouding/catkin_workspace/install/lib/python3/dist-packages") # sys.path.insert(1, "/home/yue/.local/lib/python3.5/site-packages/") # sys.pat...
40.779292
183
0.55282
ffe02cfd260dc4fd421547ec268e3e957c30d93f
3,790
py
Python
TCN/mnist_pixel/utils.py
Neronjust2017/BayesianCNN
33fc227b3ec2ff9cde816403db6aa4ae68d586e2
[ "MIT" ]
2
2020-07-07T12:29:07.000Z
2021-04-12T12:49:40.000Z
TCN/mnist_pixel/utils.py
Neronjust2017/BayesianCNN
33fc227b3ec2ff9cde816403db6aa4ae68d586e2
[ "MIT" ]
1
2021-05-18T13:12:18.000Z
2021-05-18T13:12:18.000Z
TCN/mnist_pixel/utils.py
Neronjust2017/BayesianCNN
33fc227b3ec2ff9cde816403db6aa4ae68d586e2
[ "MIT" ]
3
2020-05-29T08:05:51.000Z
2021-05-26T13:19:36.000Z
import torch from torchvision import datasets, transforms import os import torch import numpy as np def data_generator(root, batch_size): train_set = datasets.MNIST(root=root, train=True, download=True, transform=transforms.Compose([ transforms.To...
29.84252
80
0.571768
ffe08377a1140b7dad9d35213b595f645354b11a
5,801
py
Python
tests/test_all.py
kuviokelluja/DefuseZip
e0c49b1bababa1495b9f824d918d3254a22fd33e
[ "MIT" ]
null
null
null
tests/test_all.py
kuviokelluja/DefuseZip
e0c49b1bababa1495b9f824d918d3254a22fd33e
[ "MIT" ]
14
2021-04-25T07:53:03.000Z
2022-02-28T19:11:58.000Z
tests/test_all.py
kuviokelluja/SecureZip
e0c49b1bababa1495b9f824d918d3254a22fd33e
[ "MIT" ]
1
2021-05-08T01:04:03.000Z
2021-05-08T01:04:03.000Z
import sys import tempfile from pathlib import Path from shutil import copy import pytest from DefuseZip.loader import DefuseZip class Test_all: DANGEROUS = True SAFE = False testdata = [ ("LICENSE.zip", SAFE), ("single.zip", SAFE), ("double_nested.zip", SAFE), ("travelsa...
31.873626
93
0.574384
ffe08a18819434c4e242b3fcf9ea765612f8a8e0
768
py
Python
tests/test_api_request.py
sammchardy/python-exx
b48b7ad28e6a8fe352f934527e6dc912429f0889
[ "MIT" ]
3
2018-01-19T06:22:44.000Z
2018-02-05T03:19:38.000Z
tests/test_api_request.py
sammchardy/python-exx
b48b7ad28e6a8fe352f934527e6dc912429f0889
[ "MIT" ]
4
2018-01-20T02:33:57.000Z
2019-10-03T04:52:42.000Z
tests/test_api_request.py
sammchardy/python-exx
b48b7ad28e6a8fe352f934527e6dc912429f0889
[ "MIT" ]
6
2018-01-27T13:19:49.000Z
2021-09-05T21:10:28.000Z
# coding=utf-8 from exx.client import Client from exx.exceptions import ExxAPIException, ExxRequestException import pytest import requests_mock client = Client('api_key', 'api_secret') def test_invalid_json(): """Test Invalid response Exception""" with pytest.raises(ExxRequestException): with requ...
24.774194
88
0.664063
ffe0a739606d694052845db38a2a3136ba5995a7
179
py
Python
backtester/execution_handler/base.py
mortendaehli/backtester
aecb25862c696f69ac7f455cf3882411c3fc7636
[ "MIT" ]
1
2021-06-26T17:22:31.000Z
2021-06-26T17:22:31.000Z
backtester/execution_handler/base.py
mortendaehli/backtester
aecb25862c696f69ac7f455cf3882411c3fc7636
[ "MIT" ]
null
null
null
backtester/execution_handler/base.py
mortendaehli/backtester
aecb25862c696f69ac7f455cf3882411c3fc7636
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from backtester.event import Event class ExecutionHandler(ABC): @abstractmethod def execute_order(self, event: Event): pass
17.9
42
0.73743
ffe0ac56fd4fba6fbc115cef415668f932dfd347
3,975
py
Python
test/transformer/test_pipeline.py
Zeroto521/my-data-toolkit
bde37f625aa81e65b97648798535f6d931864888
[ "MIT" ]
1
2021-10-09T04:50:58.000Z
2021-10-09T04:50:58.000Z
test/transformer/test_pipeline.py
Zeroto521/my-data-toolkit
bde37f625aa81e65b97648798535f6d931864888
[ "MIT" ]
427
2021-06-04T02:40:22.000Z
2022-03-30T12:55:52.000Z
test/transformer/test_pipeline.py
Zeroto521/my-data-toolkit
bde37f625aa81e65b97648798535f6d931864888
[ "MIT" ]
1
2021-07-09T09:56:44.000Z
2021-07-09T09:56:44.000Z
from test.transformer import df_iris from test.transformer import df_label from test.transformer import df_mixed from test.transformer import feature_names from test.transformer import s import joblib import pandas as pd import pytest from scipy import sparse from sklearn.pipeline import make_pipeline from dtoolkit.a...
26.324503
75
0.477233
ffe0ae1c98762c16253a53895170ceb0b0b11a7b
3,085
py
Python
twister2/python-support/src/main/python/twister2/tset/KeyedTSet.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
63
2017-08-31T10:02:52.000Z
2021-12-18T21:42:14.000Z
twister2/python-support/src/main/python/twister2/tset/KeyedTSet.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
284
2017-10-20T15:35:26.000Z
2020-09-11T15:25:40.000Z
twister2/python-support/src/main/python/twister2/tset/KeyedTSet.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
44
2017-08-21T19:47:57.000Z
2020-11-22T22:45:50.000Z
import twister2.tset.TLink as Tl from twister2.tset.fn import PartitionFunc from twister2.utils import function_wrapper class KeyedTSet: def __init__(self, java_ref, env): self.__java_ref = java_ref self.__env = env def direct(self): return Tl.TLink(self.__java_ref.keyedDirect(), self...
37.168675
87
0.698865
ffe0b9fbc79d4f9f1e59592dad4ce54a3a74394e
5,904
py
Python
demo/demo.py
superclass-FSIS/test
9bb2844c77704a609291135b75e94a794f235aa0
[ "Apache-2.0" ]
45
2021-04-09T12:52:44.000Z
2022-03-30T09:08:58.000Z
demo/demo.py
superclass-FSIS/test
9bb2844c77704a609291135b75e94a794f235aa0
[ "Apache-2.0" ]
8
2021-06-29T07:47:07.000Z
2022-03-23T04:21:00.000Z
demo/demo.py
superclass-FSIS/test
9bb2844c77704a609291135b75e94a794f235aa0
[ "Apache-2.0" ]
10
2021-05-23T05:48:29.000Z
2022-03-16T06:42:13.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import argparse import glob import multiprocessing as mp import os import time import cv2 import tqdm import random from collections import Counter from detectron2.config import get_cfg from detectron2.data.detection_utils import read_image from de...
36.9
108
0.629065
ffe0bb4fedcb1b3f51debe8431d821469dd47196
1,653
py
Python
asposewordscloud/models/responses/insert_run_online_response.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/responses/insert_run_online_response.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/responses/insert_run_online_response.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="insert_run_online_response.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a c...
48.617647
85
0.669691
ffe0c2a514f19feca213effa9a0fadc7efc83d03
6,197
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_usage_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_usage_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/_usage_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
41.039735
134
0.661449
ffe0d44e7892dc4b4e8183d30e2faa5f4fa05820
1,668
py
Python
alipay/aop/api/domain/MarketOddsSelection.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/MarketOddsSelection.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/MarketOddsSelection.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class MarketOddsSelection(object): def __init__(self): self._code = None self._price = None self._result = None @property def code(self): return self._code ...
23.492958
63
0.533573
ffe0ff6106224a92fcfa0192480399537971ae59
13,984
py
Python
maltpynt/tests/test_unit.py
matteobachetti/MaLTPyNT
6c93d2e23041b6c932810b5a8d727ee1b6dabfed
[ "BSD-3-Clause" ]
8
2015-02-23T13:43:21.000Z
2021-07-17T11:35:24.000Z
maltpynt/tests/test_unit.py
matteobachetti/MaLTPyNT
6c93d2e23041b6c932810b5a8d727ee1b6dabfed
[ "BSD-3-Clause" ]
1
2017-09-14T07:55:07.000Z
2017-09-14T07:55:07.000Z
maltpynt/tests/test_unit.py
matteobachetti/MaLTPyNT
6c93d2e23041b6c932810b5a8d727ee1b6dabfed
[ "BSD-3-Clause" ]
4
2016-03-02T20:36:07.000Z
2018-02-26T13:23:53.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """First set of tests.""" from __future__ import (absolute_import, unicode_literals, division, print_function) import maltpynt as mp import numpy as np import logging import os import unittest import pytest MP_FILE_EXTENSION = mp...
39.502825
77
0.552918
ffe1144b53ee20c4fddf312c859dc4c1dfa4f3b3
9,840
py
Python
lib/galaxy/tools/toolbox/watcher.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
lib/galaxy/tools/toolbox/watcher.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/tools/toolbox/watcher.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
import logging import os.path import threading import time try: from watchdog.events import FileSystemEventHandler from watchdog.observers import Observer from watchdog.observers.polling import PollingObserver can_watch = True except ImportError: Observer = None FileSystemEventHandler = object ...
32.582781
110
0.609451
ffe1322a32a490e8d272734622156b4c8a55534f
3,852
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2017_03_01_preview/aio/_monitor_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2017_03_01_preview/aio/_monitor_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2017_03_01_preview/aio/_monitor_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.8
126
0.695483
ffe1445ef56e220112f0024bffbeaa566324d828
5,304
py
Python
windows/streamer.py
euloggeradmin/LootNanny
ae421fcc8d67276b6f081feb1788d89727d9da38
[ "MIT" ]
9
2021-11-23T04:11:00.000Z
2022-03-28T17:36:27.000Z
windows/streamer.py
euloggeradmin/LootNanny
ae421fcc8d67276b6f081feb1788d89727d9da38
[ "MIT" ]
2
2021-12-09T13:53:29.000Z
2021-12-11T03:38:49.000Z
windows/streamer.py
euloggeradmin/LootNanny
ae421fcc8d67276b6f081feb1788d89727d9da38
[ "MIT" ]
3
2022-01-04T00:03:28.000Z
2022-02-26T05:08:00.000Z
from PyQt5.QtWidgets import QMainWindow, QLabel, QHBoxLayout, QVBoxLayout, QWidget from PyQt5.QtGui import * from PyQt5.QtCore import Qt, QPoint from enum import Enum from typing import Dict, List from collections import defaultdict import sys from decimal import Decimal class LayoutValue(str, Enum): PERCENTAGE_...
34.894737
131
0.602376
ffe14909888203d799d7e6d47d786cc522b02741
933
py
Python
utils/facebook_posts.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
1
2020-11-17T18:50:44.000Z
2020-11-17T18:50:44.000Z
utils/facebook_posts.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
9
2020-10-23T18:42:45.000Z
2022-03-12T00:39:57.000Z
utils/facebook_posts.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
null
null
null
import requests from news.models import FacebookPost from schronisko_krakow.settings import PAGE_ID, USER_ACCESS_TOKEN def get_facebook_posts(): """ Makes a call to Facebook Graph API, checks if the post's id is already in database. If not, saves the post credentials to database. """ parameters =...
37.32
87
0.675241
ffe1639ba6ca80a7b6db179b561845d5651b7bd0
128
py
Python
examples/breakstmt.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
206
2021-06-24T16:16:13.000Z
2022-03-31T07:44:17.000Z
examples/breakstmt.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
13
2021-06-24T17:51:36.000Z
2022-02-23T10:07:17.000Z
examples/breakstmt.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
14
2021-06-26T02:19:45.000Z
2022-03-30T03:02:49.000Z
def main(): for i in range(10): if i > 7: break print(i) if __name__ == '__main__': main()
14.222222
26
0.445313
ffe166efc304429be09d3e02691431373512d388
8,365
py
Python
validation_efficientdet.py
DerryHub/the-TaobaoLive-Commodity-Identify-Competition
7e5e5c4fbddd9949fe01810d58bd7994889c007c
[ "MIT" ]
4
2020-08-15T14:49:37.000Z
2022-01-16T08:34:07.000Z
validation_efficientdet.py
weilin-droid/the-TaobaoLive-Commodity-Identify-Competition
7e5e5c4fbddd9949fe01810d58bd7994889c007c
[ "MIT" ]
null
null
null
validation_efficientdet.py
weilin-droid/the-TaobaoLive-Commodity-Identify-Competition
7e5e5c4fbddd9949fe01810d58bd7994889c007c
[ "MIT" ]
2
2021-05-26T05:16:09.000Z
2021-06-09T09:07:49.000Z
import os import argparse import torch from torchvision import transforms from torch.utils.data import DataLoader from dataset import EfficientdetDataset from utils import Resizer, Normalizer, collater, iou, area from utils import colors import cv2 import shutil from efficientdet.efficientdet import EfficientDet from c...
42.897436
148
0.490377
ffe1849ddcd0817eeab6e957c07988ca04349591
6,677
py
Python
src/deathbeam/game.py
noonat/deathbeam
3060fd5c08a9d4a243faccdd3bb3b95f340c1c3a
[ "MIT" ]
null
null
null
src/deathbeam/game.py
noonat/deathbeam
3060fd5c08a9d4a243faccdd3bb3b95f340c1c3a
[ "MIT" ]
null
null
null
src/deathbeam/game.py
noonat/deathbeam
3060fd5c08a9d4a243faccdd3bb3b95f340c1c3a
[ "MIT" ]
null
null
null
from __future__ import absolute_import import logging import time import pyglet from pyglet import gl from pyglet.window.key import C, ENTER, SPACE from . import defs, helpers, worlds from .actors import iter_registered_actors from .draw import Draw from .effects import iter_registered_effects from .particles import ...
32.891626
79
0.588737
ffe1859f0907286bb0062f6fff53168d949e2017
402
py
Python
fiepipedesktoplib/shells/ui/subpath_input_ui.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fiepipedesktoplib/shells/ui/subpath_input_ui.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fiepipedesktoplib/shells/ui/subpath_input_ui.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
from fiepipelib.ui.subpath_input_ui import AbstractSubpathInputUI, AbstractSubpathDefaultInputUI from fieuishell.ModalInputDefaultUI import InputDefaultModalShellUI from fieuishell.ModalInputUI import InputModalShellUI class SubpathInputUI(AbstractSubpathInputUI, InputModalShellUI[str]): pass class SubpathInput...
33.5
96
0.875622
ffe18e5a19a7d8e2456531dfe10bb0da294eca00
3,953
py
Python
KristaBackup/core/actions/rsync.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
7
2020-07-28T06:53:02.000Z
2022-03-18T05:23:03.000Z
KristaBackup/core/actions/rsync.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
1
2020-11-25T16:13:26.000Z
2020-11-25T16:13:26.000Z
KristaBackup/core/actions/rsync.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
1
2020-07-28T13:47:09.000Z
2020-07-28T13:47:09.000Z
# -*- coding: UTF-8 -*- import logging import os import re from .action import Action class Rsync(Action): """Обёртка над rsync. Синхронизирует файлы между src_path и dest_path При желании, в конфиге можно переопределить опции, установить лимит скорости и добавить исключения """ # src_path...
27.838028
79
0.533266
ffe199b40c797fe253537e3e11014b14f7a99d86
1,662
py
Python
examples/bin_data.py
dhuppenkothen/astroABC
a4d04a3f2735883918b880b0de536119ad976585
[ "MIT" ]
38
2016-08-30T09:53:44.000Z
2022-01-20T03:26:08.000Z
examples/bin_data.py
dhuppenkothen/astroABC
a4d04a3f2735883918b880b0de536119ad976585
[ "MIT" ]
8
2016-11-11T19:07:39.000Z
2021-11-17T17:48:13.000Z
examples/bin_data.py
dhuppenkothen/astroABC
a4d04a3f2735883918b880b0de536119ad976585
[ "MIT" ]
24
2016-08-30T13:14:34.000Z
2021-09-08T08:33:23.000Z
import numpy as np def read_fitres(fname): dtype=[('z',np.float32),('mu',np.float32),('mu_err',np.float32)] data=np.loadtxt(fname,skiprows = 15,dtype =dtype, usecols=(34,48,50)) return data def bin_data(z,mu,err,Nbins=10): binw = (z.max()-z.min())/Nbins #print b...
34.625
102
0.569795
ffe1a24ea1464e56e00166e3c1bb6e4c1eb9b19d
659
py
Python
src/oscar/apps/dashboard/catalogue/widgets.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/dashboard/catalogue/widgets.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/dashboard/catalogue/widgets.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django.core.urlresolvers import reverse_lazy from oscar.forms.widgets import MultipleRemoteSelect, RemoteSelect class ProductSelect(RemoteSelect): # Implemented as separate class instead of just calling # AjaxSelect(data_url=...) for overridability and backwards compatibility lookup_url = re...
38.764706
78
0.776935
ffe1b0c492cf542982e4096bae611f5a2e5af1c4
1,567
py
Python
CHAPTER 10 (maps, hash tables and skip lists)/unsorted_table_map.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
CHAPTER 10 (maps, hash tables and skip lists)/unsorted_table_map.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
CHAPTER 10 (maps, hash tables and skip lists)/unsorted_table_map.py
ahammadshawki8/Data-Structures-Algorithms-in-Python-
fc18b54128cd5bc7639a14999d8f990190b524eb
[ "MIT" ]
null
null
null
from map_base_class import * class UnsortedTableMap(MapBase): """Map implementation using an unordered list.""" def __init__(self): """Create an empty map.""" self._table = [] # list of _Items def __getitem__(self,k): """Return value associated with key. Ra...
32.645833
74
0.517549
ffe1cfcfd2ef2d649b9faa01e2be2849c34f1470
4,538
py
Python
cinder/tests/functional/test_groups.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/functional/test_groups.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/functional/test_groups.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 EMC Corporation # 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 ...
40.517857
79
0.642353
ffe1f5d06f87d046603843cf795dc020f4ce966f
7,360
py
Python
master/arip-master/python/aripClient2.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
python/aripClient2.py
alexandrainst/arip
834ee8a988506dff02bcdf14d6abeeb8b20d8072
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
python/aripClient2.py
alexandrainst/arip
834ee8a988506dff02bcdf14d6abeeb8b20d8072
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
# Developer and idea: Lasse Steenbock Vestergaard (lasse.vestergaard@alexandra.dk) # # The software is distributed under the MIT license # # Copyright (C) 2014 The Alexandra Institute A/S www.alexandra.dk/uk # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software a...
37.74359
164
0.583696
ffe2142e298fed7066a71f184a8d5905e33ffb4e
2,483
py
Python
data/sqlite/__init__.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
3
2021-11-09T09:43:21.000Z
2021-12-16T18:15:43.000Z
data/sqlite/__init__.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
null
null
null
data/sqlite/__init__.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
2
2022-03-10T11:24:46.000Z
2022-03-25T06:39:17.000Z
# -*- coding: utf-8 -*- # created: 2021-04-27 # creator: liguopeng@liguopeng.net import logging import os import threading from contextlib import contextmanager from gcommon.utils.gobject import ObjectWithLogger from sqlalchemy import MetaData from sqlalchemy import create_engine from sqlalchemy.orm import sessionmak...
29.915663
120
0.614579
ffe2162bcccb90bc1ea04b313c934873190f0c35
742
py
Python
backend/volontulo_org/settings/dev.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
backend/volontulo_org/settings/dev.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
backend/volontulo_org/settings/dev.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
""" Development Settings Module """ from .base import * DEBUG = True ALLOWED_HOSTS = [ 'localhost', 'backend', ] DEBUG_TOOLBAR_PATCH_SETTINGS = False INSTALLED_APPS += ( 'debug_toolbar', 'django_coverage', 'django_extensions', 'django_nose', 'corsheaders', ) MIDDLEWARE_CLASSES += ( ...
17.666667
66
0.729111
ffe2379d08773e6964f61f56712e2585156f2b5f
281
py
Python
collective/ckeditor/Extensions/Install.py
vindula/collective.ckeditor
43129d98c77fa567fca4ffc0ce4a911f47b721d0
[ "ZPL-1.1" ]
null
null
null
collective/ckeditor/Extensions/Install.py
vindula/collective.ckeditor
43129d98c77fa567fca4ffc0ce4a911f47b721d0
[ "ZPL-1.1" ]
null
null
null
collective/ckeditor/Extensions/Install.py
vindula/collective.ckeditor
43129d98c77fa567fca4ffc0ce4a911f47b721d0
[ "ZPL-1.1" ]
null
null
null
from Products.CMFCore.utils import getToolByName def uninstall(portal): setup_tool = getToolByName(portal, 'portal_setup') profile = 'profile-collective.ckeditor:uninstall' setup_tool.runAllImportStepsFromProfile(profile) return "CKeditor for Plone uninstalled."
31.222222
54
0.786477
ffe2434b7b987e76fa59c551bcfcf997b87b26f2
4,095
py
Python
mtp_noms_ops/apps/security/forms/object_detail.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-noms-ops
eb537fb8a8e3adc588d50af1b000402c957b32a7
[ "MIT" ]
3
2016-12-22T15:56:57.000Z
2020-03-10T10:37:40.000Z
mtp_noms_ops/apps/security/forms/object_detail.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-noms-ops
eb537fb8a8e3adc588d50af1b000402c957b32a7
[ "MIT" ]
61
2016-06-10T08:37:23.000Z
2022-01-28T12:41:29.000Z
mtp_noms_ops/apps/security/forms/object_detail.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-noms-ops
eb537fb8a8e3adc588d50af1b000402c957b32a7
[ "MIT" ]
1
2021-04-11T06:13:53.000Z
2021-04-11T06:13:53.000Z
from urllib.parse import urljoin from django import forms from django.utils.translation import gettext_lazy as _ from security.forms.object_base import SecurityDetailForm class SendersDetailForm(SecurityDetailForm): ordering = forms.ChoiceField(label=_('Order by'), required=False, ...
53.881579
113
0.527717
ffe25ef55b4005933bf876278c0bb947f1acf732
11,641
py
Python
glowingwaffle/__main__.py
chews0n/glowing-waffle
b381421f64bc6a5202421d3870548c7737f93bce
[ "Apache-2.0" ]
null
null
null
glowingwaffle/__main__.py
chews0n/glowing-waffle
b381421f64bc6a5202421d3870548c7737f93bce
[ "Apache-2.0" ]
5
2021-07-20T19:11:39.000Z
2021-07-21T03:10:27.000Z
glowingwaffle/__main__.py
chews0n/glowing-waffle
b381421f64bc6a5202421d3870548c7737f93bce
[ "Apache-2.0" ]
2
2021-02-25T15:43:59.000Z
2022-03-20T13:57:34.000Z
import argparse import os from glowingwaffle.data import ScrapeOGC from glowingwaffle.modelling import RandomForestModel import pandas as pd import scipy.stats import numpy as np OGC_URLS = ['https://reports.bcogc.ca/ogc/app001/r/ams_reports/bc_total_production?request=CSV_Y', 'https://reports.bcogc.ca/ogc...
42.330909
151
0.584142
ffe26261a19a9622efbf8bb29f24b7b9da21b690
12,643
py
Python
SafeRLBench/bench.py
befelix/Safe-RL-Benchmark
6a126f215c3d72e2d56d5b516087f820554ad9c8
[ "MIT" ]
19
2017-04-05T09:42:20.000Z
2021-03-26T00:56:43.000Z
SafeRLBench/bench.py
befelix/Safe-RL-Benchmark
6a126f215c3d72e2d56d5b516087f820554ad9c8
[ "MIT" ]
null
null
null
SafeRLBench/bench.py
befelix/Safe-RL-Benchmark
6a126f215c3d72e2d56d5b516087f820554ad9c8
[ "MIT" ]
5
2017-10-16T10:58:33.000Z
2018-11-14T14:13:42.000Z
"""Benchmarking facilities.""" from SafeRLBench import EnvironmentBase, AlgorithmBase from SafeRLBench import config from concurrent.futures import ProcessPoolExecutor from itertools import product import logging import pprint try: from string import maketrans except ImportError: def maketrans(a, b): ...
30.761557
79
0.612117
ffe2718eabe71ee60eaabfec2f0e2c82178dc81a
1,530
py
Python
host/ui/panel_ui.py
zhaomh1998/ESP-data-tunnel
032596033677cdf625f2a80d1a3b6e4b1b393e10
[ "MIT" ]
null
null
null
host/ui/panel_ui.py
zhaomh1998/ESP-data-tunnel
032596033677cdf625f2a80d1a3b6e4b1b393e10
[ "MIT" ]
null
null
null
host/ui/panel_ui.py
zhaomh1998/ESP-data-tunnel
032596033677cdf625f2a80d1a3b6e4b1b393e10
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'panel_ui.ui' # # Created by: PyQt5 UI code generator 5.14.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainW...
34.772727
73
0.715033
ffe2f828f4f508109c87aaa28c714f25e7e93693
7
py
Python
GPSVI/__init__.py
AlchemicalChest/gaussian-process-svi
56111e9a125cdd322473685b1b7ef875d584653e
[ "MIT" ]
null
null
null
GPSVI/__init__.py
AlchemicalChest/gaussian-process-svi
56111e9a125cdd322473685b1b7ef875d584653e
[ "MIT" ]
null
null
null
GPSVI/__init__.py
AlchemicalChest/gaussian-process-svi
56111e9a125cdd322473685b1b7ef875d584653e
[ "MIT" ]
1
2017-02-08T03:45:25.000Z
2017-02-08T03:45:25.000Z
# GPSVI
7
7
0.714286
ffe2ff05d6c9c2162db8bf4ee4d09000de9289d7
18,489
py
Python
tensorflow/contrib/learn/python/learn/estimators/kmeans_test.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
1
2017-02-24T05:09:40.000Z
2017-02-24T05:09:40.000Z
tensorflow/contrib/learn/python/learn/estimators/kmeans_test.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/learn/python/learn/estimators/kmeans_test.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
1
2018-06-05T05:02:16.000Z
2018-06-05T05:02:16.000Z
# Copyright 2016 The TensorFlow 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 applica...
35.017045
81
0.680729
ffe334230be72e50d298a92bcbca7d7180a9f649
2,731
py
Python
tests/models/validators/v1_3_3/jsd_fc9538fe43d9884d.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v1_3_3/jsd_fc9538fe43d9884d.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v1_3_3/jsd_fc9538fe43d9884d.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Delete SSID and provision it to devices data model. Copyright (c) 2019 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without r...
32.903614
78
0.59978
ffe353dc68211407d351d8dd548580c841524d3b
3,084
py
Python
app/utils/insert/trends_country_and_towns.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
10
2019-03-22T07:07:41.000Z
2022-01-26T00:57:45.000Z
app/utils/insert/trends_country_and_towns.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
70
2017-07-12T19:49:38.000Z
2020-09-02T10:03:28.000Z
app/utils/insert/trends_country_and_towns.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
2
2017-06-30T07:13:39.000Z
2020-12-04T00:39:12.000Z
#!/usr/bin/env python """ Utility to get and store trend data for a country and its towns. This expects a single country name then looks up the WOEID of the country and child towns from the DB, then gets trending data for each. """ import time # Allow imports to be done when executing this file directly. import os im...
32.125
79
0.612192
ffe3543b802d3bec66471babfe33dd4556195b7b
6,190
py
Python
python/1segment_arm/muscles_AC1_multiActuation.py
srl-ethz/diffPD_sim2real
e491668995a163b8ff7542d99f0b4e0c0f4ed2df
[ "MIT" ]
4
2022-02-10T02:28:42.000Z
2022-02-10T07:28:35.000Z
python/1segment_arm/muscles_AC1_multiActuation.py
srl-ethz/diffPD_sim2real
e491668995a163b8ff7542d99f0b4e0c0f4ed2df
[ "MIT" ]
null
null
null
python/1segment_arm/muscles_AC1_multiActuation.py
srl-ethz/diffPD_sim2real
e491668995a163b8ff7542d99f0b4e0c0f4ed2df
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # AC1 Design - Multiple Actuation Values Optimization # ------------------------------------------------------------------------------ ### Import some useful functions import sys sys.path.append('../') from pathlib import Path import time...
33.825137
191
0.636995
ffe35e863eddcac341569ea8d528987da453dcb8
371
py
Python
py/2154.keep-multiplying-found-values-by-two.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
py/2154.keep-multiplying-found-values-by-two.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
py/2154.keep-multiplying-found-values-by-two.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
# @lc app=leetcode id=2154 lang=python3 # # [2154] Keep Multiplying Found Values by Two # # @lc code=start class Solution: def findFinalValue(self, nums: List[int], original: int) -> int: if not nums: return orginal s = set(nums) while original in s: origina...
20.611111
68
0.574124
ffe3be3ecbe88c7f30b5dbe7f5a37fd56c2a6bc0
4,539
py
Python
metalibm_core/opt/p_check_support.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
2
2019-02-18T13:42:04.000Z
2021-03-12T18:54:53.000Z
metalibm_core/opt/p_check_support.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
null
null
null
metalibm_core/opt/p_check_support.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################### # This file is part of metalibm (https://github.com/kalray/metalibm) ############################################################################### # MIT License # # Copyright (c) 2018 Kalray # # Permission is hereb...
44.067961
110
0.70412
ffe3c1d231587eecdacf5f1a9fa932ad1e396f72
1,890
py
Python
literacy/weave.py
tonyfast/markdownmagic
a8eb687b6418fac3bfe2ac64e6a5d24ef2f33b71
[ "BSD-3-Clause" ]
6
2016-04-19T22:15:37.000Z
2019-08-26T02:31:15.000Z
literacy/weave.py
tonyfast/markdownmagic
a8eb687b6418fac3bfe2ac64e6a5d24ef2f33b71
[ "BSD-3-Clause" ]
2
2016-04-28T18:15:51.000Z
2016-05-01T13:00:01.000Z
literacy/weave.py
tonyfast/markdownmagic
a8eb687b6418fac3bfe2ac64e6a5d24ef2f33b71
[ "BSD-3-Clause" ]
4
2020-06-19T00:02:53.000Z
2021-02-23T07:01:47.000Z
from .blocks import ( Block, ) from .query import ( PyQueryUTF, ) class Tokenize(object): def weave(self,block): """ Weave executable, html, css, and javascript codes together. """ tokens={'html':""""""} if block.is_code: code=self.render(block.code) ...
36.346154
106
0.53545
ffe3cc045d5c25bdd5fe838bba1dd0bb17c8ecad
3,516
py
Python
miniworld/model/network/linkqualitymodels/LinkQualityModel.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
miniworld/model/network/linkqualitymodels/LinkQualityModel.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
miniworld/model/network/linkqualitymodels/LinkQualityModel.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
import importlib import sys from miniworld import log from miniworld.model.network.linkqualitymodels import LinkQualityConstants VAL_DISTANCE_ZERO = 0 VAL_DISTANCE_UNLIMITED = sys.maxsize __author__ = 'Nils Schmidt' # TODO: DOC class LinkQualityModel: def __init__(self, # link quality stuff ...
28.585366
110
0.571388
ffe3e9b6b5d3fd1dd71173fcb09ad69d56b2d16b
3,804
py
Python
src/lyxnotebook/keymap.py
abarker/lyxNotebook
c458b21e1b183b94172414e14dea671e1f3d4b22
[ "MIT" ]
12
2015-07-16T13:39:04.000Z
2022-02-14T15:36:10.000Z
src/lyxnotebook/keymap.py
abarker/lyxNotebook
c458b21e1b183b94172414e14dea671e1f3d4b22
[ "MIT" ]
4
2020-03-11T00:33:50.000Z
2020-05-21T22:05:13.000Z
src/lyxnotebook/keymap.py
abarker/lyxNotebook
c458b21e1b183b94172414e14dea671e1f3d4b22
[ "MIT" ]
3
2015-07-16T13:39:06.000Z
2020-04-15T19:17:45.000Z
""" This file only contains the keymap for Lyx Notebook. The keys can be arbitrarily set by changing them from this file (though, of course, collisions with other key mappings and convenience should be considered). Any key which is bound to a Lyx Notebook function should also be bound to the Lyx LFUN "server-notify"...
43.227273
83
0.692955
ffe4218261ab56191442d37875e7a83a43f545ea
721,403
py
Python
phonenumbers/geodata/data6.py
albertpadin/supercode-validate-phone-number
d2cc06091693524da8a08b86f62ad431e8620d0f
[ "MIT" ]
null
null
null
phonenumbers/geodata/data6.py
albertpadin/supercode-validate-phone-number
d2cc06091693524da8a08b86f62ad431e8620d0f
[ "MIT" ]
null
null
null
phonenumbers/geodata/data6.py
albertpadin/supercode-validate-phone-number
d2cc06091693524da8a08b86f62ad431e8620d0f
[ "MIT" ]
null
null
null
"""Per-prefix data, mapping each prefix to a dict of locale:name. Auto-generated file, do not edit by hand. """ from ..util import u # Copyright (C) 2011-2016 The Libphonenumber Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
71.974758
139
0.559657
ffe42387f305c107a0edc57247e1203640f0c66d
452
py
Python
tests/mockapp/migrations/0005_mockperson_birthdate.py
d1g1tinc/drf-haystack
7bf138948562ebcf3470954a4627dc12f6b09b96
[ "MIT" ]
null
null
null
tests/mockapp/migrations/0005_mockperson_birthdate.py
d1g1tinc/drf-haystack
7bf138948562ebcf3470954a4627dc12f6b09b96
[ "MIT" ]
null
null
null
tests/mockapp/migrations/0005_mockperson_birthdate.py
d1g1tinc/drf-haystack
7bf138948562ebcf3470954a4627dc12f6b09b96
[ "MIT" ]
null
null
null
# Generated by Django 1.9.4 on 2016-04-16 07:05 from django.db import migrations, models import tests.mockapp.models class Migration(migrations.Migration): dependencies = [ ("mockapp", "0002_mockperson"), ] operations = [ migrations.AddField( model_name="mockperson", ...
23.789474
92
0.637168
ffe434e030779c674d5e8bfa62dde45c08768db6
30,609
py
Python
applications/tensorflow/cnns/inference/resnet18/imagenet_categories.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/tensorflow/cnns/inference/resnet18/imagenet_categories.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/tensorflow/cnns/inference/resnet18/imagenet_categories.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
# Copyright 2019 Graphcore Ltd. labels = { 0: 'tench, Tinca tinca', 1: 'goldfish, Carassius auratus', 2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias', 3: 'tiger shark, Galeocerdo cuvieri', 4: 'hammerhead, hammerhead shark', 5: 'electric ray, crampfish, numbfish, torpedo',...
30.517448
130
0.680519
ffe441cb9c4cf9c75f5c961ef1be9018e52304dc
2,793
py
Python
test/distributed/pressure_kernel.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
111
2017-05-03T06:58:31.000Z
2019-11-10T14:36:48.000Z
test/distributed/pressure_kernel.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
48
2017-07-13T11:51:30.000Z
2019-11-12T15:43:32.000Z
test/distributed/pressure_kernel.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
16
2017-06-01T11:48:03.000Z
2019-07-16T00:27:58.000Z
import sys import numpy as onp from mpi4py import MPI from veros import runtime_settings as rs, runtime_state as rst rs.diskless_mode = True if rst.proc_num > 1: rs.num_proc = (2, 2) assert rst.proc_num == 4 from veros.state import get_default_state, resize_dimension # noqa: E402 from veros.distributed im...
29.09375
115
0.623344
ffe4678b9518b1fc844008b5b39cbcb50e2b6eda
8,865
py
Python
tests/test_layers/test_2p5d/test_layer.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
1
2021-11-02T14:00:27.000Z
2021-11-02T14:00:27.000Z
tests/test_layers/test_2p5d/test_layer.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
null
null
null
tests/test_layers/test_2p5d/test_layer.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
null
null
null
from torch.nn import Parameter from colossalai.context.parallel_mode import ParallelMode from colossalai.core import global_context as gpc from colossalai.nn import (Linear2p5D, LayerNorm2p5D, TransformerSelfAttention2p5D, TransformerMLP2p5D, TransformerLayer2p5D) from colossalai.utils impor...
33.327068
108
0.697236
ffe487419913c5891cbc0539a105a08437c9b895
5,278
py
Python
hoverxref/extension.py
StefanIliev545/sphinx-hoverxref
59e405bb1d6219134848024168de1c9f19fe5365
[ "MIT" ]
null
null
null
hoverxref/extension.py
StefanIliev545/sphinx-hoverxref
59e405bb1d6219134848024168de1c9f19fe5365
[ "MIT" ]
null
null
null
hoverxref/extension.py
StefanIliev545/sphinx-hoverxref
59e405bb1d6219134848024168de1c9f19fe5365
[ "MIT" ]
null
null
null
import os import inspect from docutils import nodes from sphinx.roles import XRefRole from sphinx.util.fileutil import copy_asset from sphinx.util import logging from . import version from .domains import HoverXRefPythonDomain, HoverXRefStandardDomain from .translators import HoverXRefHTMLTranslator logger = logging....
36.909091
111
0.672982
ffe497dd41aacb87510071ecaa04a550b868f36d
3,027
py
Python
backend/config_app/config_ternum/config_app_tabs.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
1
2019-12-17T22:31:00.000Z
2019-12-17T22:31:00.000Z
backend/config_app/config_ternum/config_app_tabs.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
10
2019-05-28T19:57:28.000Z
2021-06-01T23:46:00.000Z
backend/config_app/config_ternum/config_app_tabs.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from . import version, uuid_models default_app_tabs = [ ### MAIN TABS ### - - - - - - - - - - - - - - - ### ### CONFIG PING CARTO { "field" : "app_tabs_test", "tabs_uri" : "tabs-tl-test", "content" : u"apiviz tabs test", "app_version" ...
50.45
246
0.434093
ffe4aa45ded590bd5cf7f9f4c2174e3fb50d70b9
5,547
py
Python
src/ggrc/access_control/role.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/access_control/role.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc/access_control/role.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Access Control Role model""" import collections import sqlalchemy as sa from sqlalchemy import inspect from sqlalchemy.orm.session import Session import flask from werkzeug.exceptions import Forbidden ...
33.215569
79
0.713178
ffe4abcfc9905adf51816964cd196b4b7eaa48fa
26,288
py
Python
pytype/load_pytd_test.py
google/pytype
b5a40b8afb497a2217fc366492b894c027383c83
[ "Apache-2.0" ]
3,882
2015-03-22T12:17:15.000Z
2022-03-31T17:13:20.000Z
pytype/load_pytd_test.py
google/pytype
b5a40b8afb497a2217fc366492b894c027383c83
[ "Apache-2.0" ]
638
2015-11-03T06:34:44.000Z
2022-03-31T23:41:48.000Z
pytype/load_pytd_test.py
google/pytype
b5a40b8afb497a2217fc366492b894c027383c83
[ "Apache-2.0" ]
301
2015-08-14T10:21:17.000Z
2022-03-08T11:03:40.000Z
"""Tests for load_pytd.py.""" import collections import contextlib import io import os import textwrap from pytype import file_utils from pytype import load_pytd from pytype.pytd import pytd from pytype.pytd import pytd_utils from pytype.pytd import serialize_ast from pytype.pytd import visitors from pytype.tests imp...
35.191432
80
0.604002
ffe4fc556aafa25efe185328632231341a60cd82
2,962
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
41.71831
104
0.646523
ffe5092c5f1df924ebd7a8b82aefbe81387909a2
4,911
py
Python
planet/tools/attr_dict.py
dingyiming0427/planet
a6c810855e8824c244d527ab57ccf7178e302a12
[ "Apache-2.0" ]
null
null
null
planet/tools/attr_dict.py
dingyiming0427/planet
a6c810855e8824c244d527ab57ccf7178e302a12
[ "Apache-2.0" ]
null
null
null
planet/tools/attr_dict.py
dingyiming0427/planet
a6c810855e8824c244d527ab57ccf7178e302a12
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The PlaNet 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 applicable...
31.683871
76
0.677255
ffe51080b75f2a1ff2d09e9f3c867040dfb9e354
1,648
py
Python
src/tests/test_seq2seq.py
dailai/quick-nlp
d27ae90c0788d0899af7f45b323ca64ed0c33868
[ "MIT" ]
null
null
null
src/tests/test_seq2seq.py
dailai/quick-nlp
d27ae90c0788d0899af7f45b323ca64ed0c33868
[ "MIT" ]
null
null
null
src/tests/test_seq2seq.py
dailai/quick-nlp
d27ae90c0788d0899af7f45b323ca64ed0c33868
[ "MIT" ]
null
null
null
import pytest from fastai.core import V, to_gpu from torch.optim import Adam from quicknlp.data.s2s_model_data_loader import decoder_loss from quicknlp.models import Seq2Seq from quicknlp.models.seq2seq_attention import Seq2SeqAttention from quicknlp.utils import get_trainable_parameters params = [(True), (False)] id...
33.632653
112
0.716626
ffe53c225460ef40e333b17e17243a681788af37
3,291
py
Python
Tensorflow_OpenCV_Nightly/source/markdown/postprocessors.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Tensorflow_OpenCV_Nightly/source/markdown/postprocessors.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Tensorflow_OpenCV_Nightly/source/markdown/postprocessors.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
""" POST-PROCESSORS ============================================================================= Markdown also allows post-processors, which are similar to preprocessors in that they need to implement a "run" method. However, they are run after core processing. """ import re from . import util from . import odict ...
32.264706
80
0.582498
ffe53e568da8817dfd6ac655ce01b626ef41f7ca
1,995
py
Python
src/sentry/tasks/base.py
NetEaseGame/Sentry
b2804c3e4b7fea61294e12d9b608b5fbdeeac5a3
[ "BSD-3-Clause" ]
20
2016-10-01T04:29:24.000Z
2020-10-09T07:23:34.000Z
src/sentry/tasks/base.py
NetEaseGame/Sentry
b2804c3e4b7fea61294e12d9b608b5fbdeeac5a3
[ "BSD-3-Clause" ]
null
null
null
src/sentry/tasks/base.py
NetEaseGame/Sentry
b2804c3e4b7fea61294e12d9b608b5fbdeeac5a3
[ "BSD-3-Clause" ]
7
2016-10-27T05:12:45.000Z
2021-05-01T14:29:53.000Z
""" sentry.tasks.base ~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import resource from celery.task import current from contextlib import contextmanager from functools import wraps...
28.5
80
0.608521
ffe57715faae9c683c3ef88d0509624ab0aa3e3b
6,952
py
Python
tutorials/image_processing/process_image.py
rizavelioglu/AIDO-CITEC
97f4d8564dc6eb743063a7902a8932a429349c04
[ "MIT" ]
18
2020-08-31T11:30:41.000Z
2022-02-15T07:35:12.000Z
tutorials/image_processing/process_image.py
rizavelioglu/AIDO-CITEC
97f4d8564dc6eb743063a7902a8932a429349c04
[ "MIT" ]
5
2020-09-27T02:15:56.000Z
2022-01-23T17:56:24.000Z
tutorials/image_processing/process_image.py
rizavelioglu/AIDO-CITEC
97f4d8564dc6eb743063a7902a8932a429349c04
[ "MIT" ]
2
2020-05-29T08:27:38.000Z
2020-09-30T03:32:13.000Z
""" Explanation on how Canny Edge Detector works: https://www.youtube.com/watch?v=5dL7FvL-oy0 """ import cv2 from matplotlib import pyplot as plt import numpy as np # Load an RGB image on a gray scale img = cv2.imread("../images/road.png", 0) # One way to get rid of the noise on the image, is by applying Gaussian ...
37.782609
120
0.621835
ffe584522020438e55a3073b7bf36bb7fba8e7aa
13,290
py
Python
src/scrapers.py
GeoAnalytic-code/daas-catseaice
3e0c93fa316a95bca4c7fcc468728440e93fa84b
[ "MIT" ]
null
null
null
src/scrapers.py
GeoAnalytic-code/daas-catseaice
3e0c93fa316a95bca4c7fcc468728440e93fa84b
[ "MIT" ]
5
2020-12-30T21:23:42.000Z
2021-02-04T17:33:06.000Z
src/scrapers.py
GeoAnalytic-code/daas-catseaice
3e0c93fa316a95bca4c7fcc468728440e93fa84b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: Icechart STAC Service # Purpose: Scrape NIC and CIS web sites for ice charts # Author: David Currie <dcurrie at geoanalytic dot com> # ###################################...
48.860294
148
0.67705
ffe59dd2efd1b123ccc6bcc6f63a9f1793fa4c6d
947
py
Python
api/src/helper/response.py
daleu/hackfromhome-talks
8b09cdd395d6723f97618df2e778a62ce2aa5b1d
[ "MIT" ]
7
2020-03-17T09:38:39.000Z
2020-10-17T00:16:42.000Z
api/src/helper/response.py
daleu/hackfromhome-talks
8b09cdd395d6723f97618df2e778a62ce2aa5b1d
[ "MIT" ]
null
null
null
api/src/helper/response.py
daleu/hackfromhome-talks
8b09cdd395d6723f97618df2e778a62ce2aa5b1d
[ "MIT" ]
3
2020-03-19T17:35:18.000Z
2020-03-19T18:23:11.000Z
def make(error, message=None, response=None): """ Make error or success API response. :param error: True if the response format has to be as an error, False otherwise. :param message: Error message. :param response: Success dictionary response. :return: API response. """ response_dict = ...
33.821429
92
0.69377
ffe5a6b1e5db48fb20d88cd581c3175012768993
1,205
py
Python
examples/example_inference.py
NunoEdgarGFlowHub/torchio
656e96c8863ecff0bb29bf880af054675bbb30fd
[ "MIT" ]
1
2020-03-19T08:30:18.000Z
2020-03-19T08:30:18.000Z
examples/example_inference.py
NunoEdgarGFlowHub/torchio
656e96c8863ecff0bb29bf880af054675bbb30fd
[ "MIT" ]
null
null
null
examples/example_inference.py
NunoEdgarGFlowHub/torchio
656e96c8863ecff0bb29bf880af054675bbb30fd
[ "MIT" ]
null
null
null
""" Example of segmenting a big image using patch-based dense inference. """ import torch import torch.nn as nn from torch.utils.data import DataLoader from tqdm import tqdm from torchio import IMAGE, LOCATION from torchio.data.inference import GridSampler, GridAggregator patch_size = 128, 128, 128 # or just 128 pa...
30.897436
68
0.756017
ffe5cb6dd48845d0ff688f61dcf3b26eda47d313
69,092
py
Python
ads/dataset/dataset.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
20
2022-02-22T19:07:09.000Z
2022-03-16T17:21:42.000Z
ads/dataset/dataset.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
ads/dataset/dataset.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*-- # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ from __future__ import print_function, absolute_import, division import copy import datetime import fsspec i...
37.246361
126
0.584959
ffe5f5cc1c83475363b345b49ee28bd20241633c
18,123
py
Python
examples/pytorch/rgcn/entity_classify_mp.py
jinghuix/dgl
fae26dd15caac92458a08ad34889086e1e333ddd
[ "Apache-2.0" ]
2
2020-07-24T19:26:51.000Z
2021-08-21T21:04:11.000Z
examples/pytorch/rgcn/entity_classify_mp.py
jinghuix/dgl
fae26dd15caac92458a08ad34889086e1e333ddd
[ "Apache-2.0" ]
null
null
null
examples/pytorch/rgcn/entity_classify_mp.py
jinghuix/dgl
fae26dd15caac92458a08ad34889086e1e333ddd
[ "Apache-2.0" ]
1
2021-03-09T12:42:46.000Z
2021-03-09T12:42:46.000Z
""" Modeling Relational Data with Graph Convolutional Networks Paper: https://arxiv.org/abs/1703.06103 Code: https://github.com/tkipf/relational-gcn Difference compared to tkipf/relation-gcn * l2norm applied to all weights * remove nodes that won't be touched """ import argparse import itertools import numpy as np impo...
38.974194
102
0.580423
ffe64521c883d176c1fe201085e25279f23d1c4a
3,991
py
Python
pyseas/maps/rasters.py
GlobalFishingWatch/pyseas
7559c4e07db3f7df8d42281029b793c8a30c552c
[ "Apache-2.0" ]
1
2021-11-04T01:49:59.000Z
2021-11-04T01:49:59.000Z
pyseas/maps/rasters.py
GlobalFishingWatch/pyseas
7559c4e07db3f7df8d42281029b793c8a30c552c
[ "Apache-2.0" ]
7
2021-07-15T00:16:13.000Z
2021-11-30T13:50:26.000Z
pyseas/maps/rasters.py
GlobalFishingWatch/pyseas
7559c4e07db3f7df8d42281029b793c8a30c552c
[ "Apache-2.0" ]
1
2021-11-04T01:51:34.000Z
2021-11-04T01:51:34.000Z
import numpy as np KM_PER_DEG_LAT = 110.574 KM_PER_DEG_LON0 = 111.320 # Add test class LonLat2Km2Scaler(object): def __init__(self, xyscale, scale=1): self.xyscale = xyscale self.scale = scale self._scale0 = KM_PER_DEG_LAT * KM_PER_DEG_LON0 / xyscale ** 2 def __call__(self, x, y, v):...
31.425197
87
0.625407
ffe69e42c95054570587c86abffa89f833147818
3,779
py
Python
Code/stack.py
alexbarksdale/CS-1.3-Core-Data-Structures
43e9d71d90dce5d3fa06fd00c3e174bfcfdbe5af
[ "MIT" ]
null
null
null
Code/stack.py
alexbarksdale/CS-1.3-Core-Data-Structures
43e9d71d90dce5d3fa06fd00c3e174bfcfdbe5af
[ "MIT" ]
6
2020-02-15T17:40:00.000Z
2020-03-09T22:32:05.000Z
Code/stack.py
alexbarksdale/CS-1.3-Core-Data-Structures
43e9d71d90dce5d3fa06fd00c3e174bfcfdbe5af
[ "MIT" ]
null
null
null
#!python from linkedlist import LinkedList # Implement LinkedStack below, then change the assignment at the bottom # to use this Stack implementation to verify it passes all tests class LinkedStack(object): def __init__(self, iterable=None): """Initialize this stack and push the given items, if any.""" ...
34.669725
87
0.631913
ffe6a017a9a814e78262f3e2943c1ae05ce4c7e8
10,725
py
Python
flagging_site/app.py
danivalades/flagging
b1a097594e9b7d9e101edef9bb6abf98a333383c
[ "MIT" ]
null
null
null
flagging_site/app.py
danivalades/flagging
b1a097594e9b7d9e101edef9bb6abf98a333383c
[ "MIT" ]
null
null
null
flagging_site/app.py
danivalades/flagging
b1a097594e9b7d9e101edef9bb6abf98a333383c
[ "MIT" ]
null
null
null
""" This file handles the construction of the Flask application object. """ import os import click import time import json import decimal import datetime from typing import Optional from typing import Dict from typing import Union from flask import Flask, render_template, jsonify, request from flask import current_ap...
33.101852
96
0.620886
ffe6c8b94a2766737e457516252787ec8efc065f
38
py
Python
src/bromine/webdriver/__init__.py
Etiqa/bromine
cabf0931f5a06796c26fdc7fb9f7ecf147554fd5
[ "BSD-2-Clause" ]
2
2018-09-20T12:37:01.000Z
2021-08-30T14:44:25.000Z
src/bromine/webdriver/__init__.py
Etiqa/bromine
cabf0931f5a06796c26fdc7fb9f7ecf147554fd5
[ "BSD-2-Clause" ]
null
null
null
src/bromine/webdriver/__init__.py
Etiqa/bromine
cabf0931f5a06796c26fdc7fb9f7ecf147554fd5
[ "BSD-2-Clause" ]
null
null
null
from .webdriver import WebDriverMixin
19
37
0.868421
ffe6cb3729dcbc15ec7296cfde8bef0dc11cc30d
1,105
py
Python
references/cpsc2019/CPSC0416_1st_qrs9214_hr9489/CPSC2019_challenge.py
DeepPSP/cpsc2020
47acb884ea1f2f819e564d8a17ad37001ed0df27
[ "BSD-3-Clause" ]
1
2021-12-07T11:44:48.000Z
2021-12-07T11:44:48.000Z
references/cpsc2019/CPSC0416_1st_qrs9214_hr9489/CPSC2019_challenge.py
wenh06/cpsc2020
47acb884ea1f2f819e564d8a17ad37001ed0df27
[ "BSD-3-Clause" ]
null
null
null
references/cpsc2019/CPSC0416_1st_qrs9214_hr9489/CPSC2019_challenge.py
wenh06/cpsc2020
47acb884ea1f2f819e564d8a17ad37001ed0df27
[ "BSD-3-Clause" ]
1
2021-05-25T14:56:02.000Z
2021-05-25T14:56:02.000Z
import numpy as np def CPSC2019_challenge(result): pos = np.argwhere(result>0.5).flatten() rpos = [] pre = 0 last = len(pos) # to intervals of qrs for j in np.where(np.diff(pos)>2)[0]: if j-pre>2: # duration > 2 * (8 * 2 ms) rpos.append((pos[pre]+pos[j])*4) # avg of onset ...
30.694444
78
0.479638
ffe6f8104d7a0814fecbd78926a9a9017c74854f
125
py
Python
src/rMETL/rMETL_version.py
tjiangHIT/rMETL
538c0e4058424d4a0aeaaf34ba8ba98a3b8a813b
[ "MIT" ]
12
2018-06-07T08:27:31.000Z
2022-01-26T01:24:52.000Z
src/rMETL/rMETL_version.py
hitbc/rMETL
1b6b8419c9412cc8c7420d18448b559157059b9e
[ "MIT" ]
6
2019-01-19T10:59:00.000Z
2021-07-16T15:26:32.000Z
src/rMETL/rMETL_version.py
hitbc/rMETL
1b6b8419c9412cc8c7420d18448b559157059b9e
[ "MIT" ]
3
2018-06-08T07:02:39.000Z
2020-03-05T05:00:41.000Z
# * @author: Jiang Tao (tjiang@hit.edu.cn) __version__ = '1.0.4' __author__ = 'Jiang Tao' __contact__ = 'tjiang@hit.edu.cn'
20.833333
42
0.68
ffe70e4366dfcf41fa6fe2fd7a155c7a07f47abf
338
py
Python
profiles/migrations/0003_remove_userprofile_birthday.py
kevin-ci/janeric2
df07508a76ad8194a63be7786d8b84a905b3d2e9
[ "MIT" ]
1
2021-02-28T11:54:14.000Z
2021-02-28T11:54:14.000Z
profiles/migrations/0003_remove_userprofile_birthday.py
kevin-ci/janeric2
df07508a76ad8194a63be7786d8b84a905b3d2e9
[ "MIT" ]
6
2021-12-01T11:39:03.000Z
2021-12-04T22:28:57.000Z
profiles/migrations/0003_remove_userprofile_birthday.py
kevin-ci/janeric2
df07508a76ad8194a63be7786d8b84a905b3d2e9
[ "MIT" ]
1
2021-12-21T16:20:49.000Z
2021-12-21T16:20:49.000Z
# Generated by Django 3.1.4 on 2020-12-16 17:17 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('profiles', '0002_userprofile_birthday'), ] operations = [ migrations.RemoveField( model_name='userprofile', name='birthday',...
18.777778
50
0.60355
ffe72224cd2f6f84663d8145ac18c034f19c0ed3
29,236
py
Python
LearningCurves/lrn_crv.py
NCI-DOE-Cababilities-Transfer/DOE-NCI-Pilot1-Learning
152a6e256304d7e4adfe73e7c8ad8e05d2b160e0
[ "MIT" ]
null
null
null
LearningCurves/lrn_crv.py
NCI-DOE-Cababilities-Transfer/DOE-NCI-Pilot1-Learning
152a6e256304d7e4adfe73e7c8ad8e05d2b160e0
[ "MIT" ]
null
null
null
LearningCurves/lrn_crv.py
NCI-DOE-Cababilities-Transfer/DOE-NCI-Pilot1-Learning
152a6e256304d7e4adfe73e7c8ad8e05d2b160e0
[ "MIT" ]
null
null
null
""" Functions to generate learning curves. Records performance (error or score) vs training set size. TODO: move utils.calc_scores to a more local function. """ import os import sys from pathlib import Path from collections import OrderedDict import sklearn import numpy as np import pandas as pd import matplotlib # ...
43.120944
205
0.597312