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
466e8b57966faf4a0cc17febbe2a82c29fab5e61
802
py
Python
setup.py
greenaddress/txjsonrpc
272d44db43d36645ba981c6e7fa73e33c1fbb7d5
[ "MIT" ]
null
null
null
setup.py
greenaddress/txjsonrpc
272d44db43d36645ba981c6e7fa73e33c1fbb7d5
[ "MIT" ]
1
2019-10-16T14:00:25.000Z
2019-11-11T16:23:20.000Z
setup.py
greenaddress/txjsonrpc
272d44db43d36645ba981c6e7fa73e33c1fbb7d5
[ "MIT" ]
2
2017-05-15T06:03:27.000Z
2019-07-21T09:04:24.000Z
from __future__ import absolute_import from setuptools import setup from txjsonrpc import meta from txjsonrpc.util import dist setup( name=meta.display_name, version=meta.version, description=meta.description, author=meta.author, author_email=meta.author_email, url=meta.url, license=meta....
24.30303
50
0.63591
0
0
0
0
0
0
0
0
204
0.254364
466e8e7393dfb5f6f03f625478a37ff5c418e4db
28,135
py
Python
gsflow/gsflow.py
pygsflow/pygsflow
83860cd58078017a65e1633b1192469777f1ce15
[ "CC0-1.0", "BSD-3-Clause" ]
17
2019-11-11T02:49:29.000Z
2022-02-17T03:45:19.000Z
gsflow/gsflow.py
pygsflow/pygsflow
83860cd58078017a65e1633b1192469777f1ce15
[ "CC0-1.0", "BSD-3-Clause" ]
21
2019-07-10T21:45:11.000Z
2022-02-22T17:57:20.000Z
gsflow/gsflow.py
pygsflow/pygsflow
83860cd58078017a65e1633b1192469777f1ce15
[ "CC0-1.0", "BSD-3-Clause" ]
8
2019-11-11T02:49:36.000Z
2021-09-30T18:43:45.000Z
# -*- coding: utf-8 -*- import os from .control import ControlFile from .prms import PrmsModel from .utils import gsflow_io, GsConstant from .prms import Helper from .modflow import Modflow from .modsim import Modsim import flopy import subprocess as sp import platform import warnings warnings.simplefilter("always", P...
33.816106
95
0.530087
27,741
0.985996
0
0
4,519
0.160618
0
0
9,382
0.333464
466e94eb6dad2cfea42284bb23559a0aba280ee0
6,818
py
Python
tests/integration/storage_memory/test_storage_memory_write.py
Sam-Martin/cloud-wanderer
1879f9bb150054be5bf33fd46a47414b4939529e
[ "MIT" ]
1
2020-12-07T10:37:41.000Z
2020-12-07T10:37:41.000Z
tests/integration/storage_memory/test_storage_memory_write.py
Sam-Martin/cloud-wanderer
1879f9bb150054be5bf33fd46a47414b4939529e
[ "MIT" ]
null
null
null
tests/integration/storage_memory/test_storage_memory_write.py
Sam-Martin/cloud-wanderer
1879f9bb150054be5bf33fd46a47414b4939529e
[ "MIT" ]
null
null
null
import logging import pytest from moto import mock_ec2, mock_iam, mock_sts from cloudwanderer.cloud_wanderer_resource import CloudWandererResource from cloudwanderer.storage_connectors import MemoryStorageConnector from cloudwanderer.urn import URN from tests.pytest_helpers import create_ec2_instances logger = loggi...
34.434343
109
0.661044
0
0
0
0
4,158
0.609856
0
0
838
0.12291
466f047e17e0d6d7208910c763a4df77317279f9
4,596
py
Python
tt/satisfiability/picosat.py
fkromer/tt
b4dfc90f7d0f9b5794e1f5054b640e22f6f75bf7
[ "MIT" ]
233
2016-02-05T20:13:06.000Z
2022-03-26T13:01:10.000Z
tt/satisfiability/picosat.py
fkromer/tt
b4dfc90f7d0f9b5794e1f5054b640e22f6f75bf7
[ "MIT" ]
8
2017-12-20T17:07:58.000Z
2020-08-06T15:44:55.000Z
tt/satisfiability/picosat.py
fkromer/tt
b4dfc90f7d0f9b5794e1f5054b640e22f6f75bf7
[ "MIT" ]
15
2016-03-22T23:37:56.000Z
2022-02-27T17:51:08.000Z
"""Python wrapper around the _clibs PicoSAT extension.""" import os from tt.errors.arguments import ( InvalidArgumentTypeError, InvalidArgumentValueError) if os.environ.get('READTHEDOCS') != 'True': from tt._clibs import picosat as _c_picosat VERSION = _c_picosat.VERSION def sat_one(clauses, assump...
37.672131
79
0.650131
0
0
0
0
0
0
0
0
3,833
0.833986
466f1e4523ee66d1060bcbe9b327e33221329528
3,745
py
Python
tests/test_text_visualization.py
dianna-ai/dianna
88bcaec001e640c35e5e1e08517ef1624fd661cb
[ "Apache-2.0" ]
9
2021-11-16T09:53:47.000Z
2022-03-02T13:28:53.000Z
tests/test_text_visualization.py
dianna-ai/dianna
88bcaec001e640c35e5e1e08517ef1624fd661cb
[ "Apache-2.0" ]
340
2021-03-03T12:55:37.000Z
2022-03-31T13:53:44.000Z
tests/test_text_visualization.py
dianna-ai/dianna
88bcaec001e640c35e5e1e08517ef1624fd661cb
[ "Apache-2.0" ]
5
2021-08-19T08:14:35.000Z
2022-03-17T21:12:46.000Z
import os import re import shutil import unittest from pathlib import Path from dianna.visualization.text import highlight_text class Example1: original_text = 'Doloremque aliquam totam ut. Aspernatur repellendus autem quia deleniti. Natus accusamus ' \ 'doloribus et in quam officiis veniam et...
42.556818
131
0.646996
3,201
0.85474
0
0
0
0
0
0
879
0.234713
466fca56f7b6e59caf823a738ec5c36d18b27c25
2,983
py
Python
setup.py
guilhermeleobas/rbc
4b568b91c6ce3ef7727fee001169302c3803c4fd
[ "BSD-3-Clause" ]
null
null
null
setup.py
guilhermeleobas/rbc
4b568b91c6ce3ef7727fee001169302c3803c4fd
[ "BSD-3-Clause" ]
null
null
null
setup.py
guilhermeleobas/rbc
4b568b91c6ce3ef7727fee001169302c3803c4fd
[ "BSD-3-Clause" ]
null
null
null
import os import sys import builtins import versioneer if sys.version_info[:2] < (3, 7): raise RuntimeError("Python version >= 3.7 required.") builtins.__RBC_SETUP__ = True if os.path.exists('MANIFEST'): os.remove('MANIFEST') CONDA_BUILD = int(os.environ.get('CONDA_BUILD', '0')) CONDA_ENV = os.environ.get('...
32.78022
76
0.650352
0
0
0
0
0
0
0
0
1,337
0.448207
46701c0193cfd9ee406763922c026176cc2a2fc9
1,126
py
Python
src/prefect/schedules/adjustments.py
concreted/prefect
dd732f5990ee2b0f3d816adb285168fd63b239e4
[ "Apache-2.0" ]
8,633
2019-03-23T17:51:03.000Z
2022-03-31T22:17:42.000Z
src/prefect/schedules/adjustments.py
concreted/prefect
dd732f5990ee2b0f3d816adb285168fd63b239e4
[ "Apache-2.0" ]
3,903
2019-03-23T19:11:21.000Z
2022-03-31T23:21:23.000Z
src/prefect/schedules/adjustments.py
ngriffiths13/prefect
7f5613abcb182494b7dc12159277c3bc5f3c9898
[ "Apache-2.0" ]
937
2019-03-23T18:49:44.000Z
2022-03-31T21:45:13.000Z
""" Schedule adjustments are functions that accept a `datetime` and modify it in some way. Adjustments have the signature `Callable[[datetime], datetime]`. """ from datetime import datetime, timedelta from typing import Callable import pendulum import prefect.schedules.filters def add(interval: timedelta) -> Calla...
24.478261
90
0.683837
0
0
0
0
0
0
0
0
623
0.553286
4671817d5486f1ffa5048135771d27e1109e5cdd
12,349
py
Python
src/pyfmodex/sound.py
Loodoor/UnamedPy
7d154c3a652992b3c1f28050f0353451f57b2a2d
[ "MIT" ]
1
2017-02-21T16:46:21.000Z
2017-02-21T16:46:21.000Z
src/pyfmodex/sound.py
Loodoor/UnamedPy
7d154c3a652992b3c1f28050f0353451f57b2a2d
[ "MIT" ]
1
2017-02-21T17:57:05.000Z
2017-02-22T11:28:51.000Z
src/pyfmodex/sound.py
Loodoor/UnamedPy
7d154c3a652992b3c1f28050f0353451f57b2a2d
[ "MIT" ]
null
null
null
from .fmodobject import * from .fmodobject import _dll from .structures import TAG, VECTOR from .globalvars import get_class class ConeSettings(object): def __init__(self, sptr): self._sptr = sptr self._in = c_float() self._out = c_float() self._outvol = c_float() ckresult(...
31.745501
128
0.639809
12,219
0.989473
0
0
8,142
0.659325
0
0
1,131
0.091586
4671cf40aee848a7cf0a11db6406cdad41f3981d
7,667
py
Python
src/pynwb/retinotopy.py
weiglszonja/pynwb
441c64f332b32eb8141a9d03d92e0fda2fd1ad83
[ "BSD-3-Clause-LBNL" ]
132
2017-08-05T00:35:18.000Z
2022-03-22T08:14:18.000Z
src/pynwb/retinotopy.py
weiglszonja/pynwb
441c64f332b32eb8141a9d03d92e0fda2fd1ad83
[ "BSD-3-Clause-LBNL" ]
1,273
2017-08-04T05:14:47.000Z
2022-03-28T13:00:27.000Z
src/pynwb/retinotopy.py
weiglszonja/pynwb
441c64f332b32eb8141a9d03d92e0fda2fd1ad83
[ "BSD-3-Clause-LBNL" ]
68
2017-08-04T16:45:19.000Z
2022-03-22T08:14:15.000Z
from collections.abc import Iterable import warnings from hdmf.utils import docval, popargs, call_docval_func, get_docval from . import register_class, CORE_NAMESPACE from .core import NWBDataInterface, NWBData class RetinotopyImage(NWBData): """Gray-scale anatomical image of cortical surface. Array structure: ...
52.513699
119
0.626842
7,386
0.963349
0
0
6,510
0.849094
0
0
3,991
0.520543
46725864f7a8f29464ea63af729e3e78c2a1218d
370
py
Python
GreenMoon/forms.py
ma010/green-moon
25ed395f1e19c180995b22508143c8819bf40fae
[ "CNRI-Python" ]
null
null
null
GreenMoon/forms.py
ma010/green-moon
25ed395f1e19c180995b22508143c8819bf40fae
[ "CNRI-Python" ]
null
null
null
GreenMoon/forms.py
ma010/green-moon
25ed395f1e19c180995b22508143c8819bf40fae
[ "CNRI-Python" ]
null
null
null
""" Implement a class function for user to put in a zip-code and search relevant information about business entities in that zip-code area. """ from flask.ext.wtf import Form from wtforms import StringField, BooleanField from wtforms.validators import DataRequired class inputZipForm(Form): inputZip = Stri...
28.461538
78
0.77027
93
0.251351
0
0
0
0
0
0
161
0.435135
46750d2f3ef713a053808ca00fc559cb70158512
283
py
Python
Phase-2/Linked List/Day-70.py
CodedLadiesInnovateTech/python-challenges
22ce26c68fea6c7c243ada831e47c52e27a62127
[ "MIT" ]
11
2020-05-11T08:41:21.000Z
2022-02-27T08:21:37.000Z
Phase-2/Linked List/Day-70.py
CodedLadiesInnovateTech/python-challenges
22ce26c68fea6c7c243ada831e47c52e27a62127
[ "MIT" ]
9
2020-05-12T10:46:06.000Z
2020-05-28T17:37:19.000Z
Phase-2/Linked List/Day-70.py
CodedLadiesInnovateTech/python-challenges
22ce26c68fea6c7c243ada831e47c52e27a62127
[ "MIT" ]
44
2020-05-10T20:53:32.000Z
2021-04-25T18:47:08.000Z
''' 1. Write a Python program to access a specific item in a singly linked list using index value. 2. Write a Python program to set a new value of an item in a singly linked list using index value. 3. Write a Python program to delete the first item from a singly linked list. '''
31.444444
98
0.749117
0
0
0
0
0
0
0
0
282
0.996466
46759a54fd059282243dcf32a6f899667fd72ec3
25
py
Python
ngboost/version.py
dsharpc/ngboost
8c05e0cb3b95bb23d8f30f17042d2fd8926c4014
[ "Apache-2.0" ]
null
null
null
ngboost/version.py
dsharpc/ngboost
8c05e0cb3b95bb23d8f30f17042d2fd8926c4014
[ "Apache-2.0" ]
null
null
null
ngboost/version.py
dsharpc/ngboost
8c05e0cb3b95bb23d8f30f17042d2fd8926c4014
[ "Apache-2.0" ]
null
null
null
__version__ = "0.3.4dev"
12.5
24
0.68
0
0
0
0
0
0
0
0
10
0.4
467608de6f71ab4b616b2d09915c4d849b7654e0
624
py
Python
premailer/tests/test_utils.py
p12tic/premailer
ebfd310dbd0a88b465e811411f67a360e11f3292
[ "BSD-3-Clause" ]
null
null
null
premailer/tests/test_utils.py
p12tic/premailer
ebfd310dbd0a88b465e811411f67a360e11f3292
[ "BSD-3-Clause" ]
1
2018-11-23T11:58:22.000Z
2018-11-23T13:58:13.000Z
premailer/tests/test_utils.py
lavr/premailer
ebfd310dbd0a88b465e811411f67a360e11f3292
[ "BSD-3-Clause" ]
null
null
null
import unittest from premailer.premailer import capitalize_float_margin class UtilsTestCase(unittest.TestCase): def testcapitalize_float_margin(self): self.assertEqual( capitalize_float_margin('margin:1em'), 'Margin:1em') self.assertEqual( capitalize_float_marg...
31.2
70
0.639423
548
0.878205
0
0
0
0
0
0
150
0.240385
4676a784f66c68a2faf6e33e2c3d3bf09c476661
1,652
py
Python
home/vscode/extensions/ms-python.python-2021.12.1559732655/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py
qwertzy-antonio-godinho/dots
65cd657f785e7da3a3ccb1a808c0fc1b8496e5b1
[ "Apache-2.0" ]
6
2021-12-26T13:34:32.000Z
2022-02-08T22:09:38.000Z
src/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py
ev3dev/ptvsd
cea22767dd78a812a14e2330a540a368f615224e
[ "MIT" ]
8
2020-07-19T23:39:31.000Z
2022-02-27T01:38:46.000Z
vscode/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/old_ptvsd/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py
Adespinoza/dotfiles
e2509402a7fd2623a3ea401b6f9fcbf6a372fc60
[ "CC0-1.0" ]
3
2020-08-04T02:48:32.000Z
2020-08-17T01:20:09.000Z
import sys try: try: from _pydevd_bundle_ext import pydevd_cython as mod except ImportError: from _pydevd_bundle import pydevd_cython as mod except ImportError: import struct try: is_python_64bit = (struct.calcsize('P') == 8) except: # In Jython this ...
31.169811
107
0.725787
0
0
0
0
0
0
0
0
576
0.348668
4677191c1771ec77d8d7c68a2a88766f05fcf790
2,843
py
Python
tests/test_thumbnails.py
pypeclub/openpype4-tests
c0c32b643f63e66609772270fff71e88dcd5b922
[ "Apache-2.0" ]
null
null
null
tests/test_thumbnails.py
pypeclub/openpype4-tests
c0c32b643f63e66609772270fff71e88dcd5b922
[ "Apache-2.0" ]
null
null
null
tests/test_thumbnails.py
pypeclub/openpype4-tests
c0c32b643f63e66609772270fff71e88dcd5b922
[ "Apache-2.0" ]
null
null
null
from tests.fixtures import api, PROJECT_NAME assert api THUMB_DATA1 = b"thisisaveryrandomthumbnailcontent" THUMB_DATA2 = b"thisihbhihjhuuyiooanothbnlcontent" def test_folder_thumbnail(api): response = api.post( f"projects/{PROJECT_NAME}/folders", name="testicek", folderType="Asset", ...
23.890756
86
0.65248
0
0
0
0
0
0
0
0
1,280
0.450229
4677247e7b07ffee44bb30042c587480349f229e
914
py
Python
POO/Heranca/aula107_classes.py
pinheirogus/Curso-Python-Udemy
d6d52320426172e924081b9df619490baa8c6016
[ "MIT" ]
1
2021-09-01T01:58:13.000Z
2021-09-01T01:58:13.000Z
POO/Heranca/aula107_classes.py
pinheirogus/Curso-Python-Udemy
d6d52320426172e924081b9df619490baa8c6016
[ "MIT" ]
null
null
null
POO/Heranca/aula107_classes.py
pinheirogus/Curso-Python-Udemy
d6d52320426172e924081b9df619490baa8c6016
[ "MIT" ]
null
null
null
# Generalizando para não repetir o código! class Pessoa: def __init__(self, nome, idade): self.nome = nome self.idade = idade self.nomeclasse = self.__class__.__name__ def falar(self): print(f'{self.nomeclasse} está falando.') class Cliente(Pessoa): def comprar(self): ...
28.5625
100
0.63895
868
0.941432
0
0
0
0
0
0
337
0.36551
467742b9ee49da3193dfeffba9fb6976ebe7eb72
2,391
py
Python
nncf/experimental/onnx/algorithms/quantization/default_quantization.py
vuiseng9/nncf_pytorch
c2b1f069c867327203629201aecae3b7815e7895
[ "Apache-2.0" ]
136
2020-06-01T14:03:31.000Z
2020-10-28T06:10:50.000Z
nncf/experimental/onnx/algorithms/quantization/default_quantization.py
vuiseng9/nncf_pytorch
c2b1f069c867327203629201aecae3b7815e7895
[ "Apache-2.0" ]
133
2020-05-26T13:48:04.000Z
2020-10-28T05:25:55.000Z
nncf/experimental/onnx/algorithms/quantization/default_quantization.py
vuiseng9/nncf_pytorch
c2b1f069c867327203629201aecae3b7815e7895
[ "Apache-2.0" ]
36
2020-05-28T08:18:39.000Z
2020-10-27T14:46:58.000Z
""" Copyright (c) 2022 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
49.8125
89
0.79632
0
0
0
0
0
0
0
0
577
0.241322
46779bc59fb8e412188640c04f3538454363b415
13,483
py
Python
Package/CONFIG.py
YuanYuLin/samba
ef8aaca2c539b0d241414e7f335b4ff939461558
[ "MIT" ]
null
null
null
Package/CONFIG.py
YuanYuLin/samba
ef8aaca2c539b0d241414e7f335b4ff939461558
[ "MIT" ]
null
null
null
Package/CONFIG.py
YuanYuLin/samba
ef8aaca2c539b0d241414e7f335b4ff939461558
[ "MIT" ]
null
null
null
import ops import iopc TARBALL_FILE="samba-4.8.4.tar.gz" TARBALL_DIR="samba-4.8.4" INSTALL_DIR="samba-bin" pkg_path = "" output_dir = "" tarball_pkg = "" tarball_dir = "" install_dir = "" install_tmp_dir = "" cc_host = "" tmp_include_dir = "" dst_include_dir = "" dst_lib_dir = "" dst_usr_local_lib_dir = "" def set_gl...
42.533123
112
0.705555
0
0
0
0
0
0
0
0
6,368
0.472298
4677cd39827e65c98f0ade72fd58eb0f79b2c0cc
671
py
Python
packages/pyre/tracking/Chain.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
3
2019-08-02T21:02:47.000Z
2021-09-08T13:59:43.000Z
packages/pyre/tracking/Chain.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
null
null
null
packages/pyre/tracking/Chain.py
lijun99/pyre
004dfd4c06489b4ba5b32877338ca6440f2d523b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # michael a.g. aïvázis # orthologue # (c) 1998-2019 all rights reserved # # declaration class Chain: """ A locator that ties together two others in order to express that something in {next} caused {this} to be recorded """ # meta methods def __init__(self, this, nex...
18.638889
88
0.593145
538
0.799406
0
0
0
0
0
0
394
0.585438
467ab5f703a873dbd5ce9a6760742fdfbfa8b614
30
py
Python
tests/resources/accepted/res_0_minpyversion_3_0.py
matteogabburo/python-ast-utils
5069e9e53e8ed1f5305167254139b95967102aeb
[ "MIT" ]
3
2020-12-22T10:43:39.000Z
2021-01-01T16:42:32.000Z
tests/resources/accepted/res_0_minpyversion_3_0.py
matteogabburo/python-ast-utils
5069e9e53e8ed1f5305167254139b95967102aeb
[ "MIT" ]
null
null
null
tests/resources/accepted/res_0_minpyversion_3_0.py
matteogabburo/python-ast-utils
5069e9e53e8ed1f5305167254139b95967102aeb
[ "MIT" ]
null
null
null
import os x = 7 print(x + 1)
6
12
0.566667
0
0
0
0
0
0
0
0
0
0
467b69ecaf5ca591ddc3465f82457df4ea005caa
448
py
Python
Mod 03/03 Prova.py
SauloCav/CN
e8de20dbcf1b3ff043743728b7dde2eff1ae8f87
[ "MIT" ]
null
null
null
Mod 03/03 Prova.py
SauloCav/CN
e8de20dbcf1b3ff043743728b7dde2eff1ae8f87
[ "MIT" ]
null
null
null
Mod 03/03 Prova.py
SauloCav/CN
e8de20dbcf1b3ff043743728b7dde2eff1ae8f87
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- import math def f(x): return math.exp(x)/x**3 def int(a,b): h = (b-a)/104 x_par = a+h x_impar = a+2*h soma_par = 0 soma_impar = 0 for i in range(52): soma_par += f(x_par) x_par += 2*h for i in range(51): soma_impar...
18.666667
58
0.504464
0
0
0
0
0
0
0
0
46
0.102679
467ea3052543109008b133a68620b40cb725a84a
2,055
py
Python
almetro/al.py
arnour/almetro
7d00b1bb746b49dc9dd464395abdf4fe93f028fe
[ "Apache-2.0" ]
null
null
null
almetro/al.py
arnour/almetro
7d00b1bb746b49dc9dd464395abdf4fe93f028fe
[ "Apache-2.0" ]
1
2019-08-21T23:02:49.000Z
2019-08-21T23:02:49.000Z
almetro/al.py
arnour/almetro
7d00b1bb746b49dc9dd464395abdf4fe93f028fe
[ "Apache-2.0" ]
null
null
null
from almetro.instance import growing from almetro.metro import Metro import timeit class ExecutionSettings: def __init__(self, trials=1, runs=1): if not trials or trials < 1: raise TypeError('#trials must be provided') if not runs or runs < 1: raise TypeError('#runs must be...
34.830508
139
0.685158
1,963
0.955231
0
0
125
0.060827
0
0
179
0.087105
467fe487527b89370f3c2d1bfc1b416969557a05
31,434
py
Python
yt_dlp/extractor/archiveorg.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
80
2021-05-25T11:33:49.000Z
2022-03-29T20:36:53.000Z
yt_dlp/extractor/archiveorg.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
53
2017-04-12T19:53:18.000Z
2022-02-22T10:33:13.000Z
yt_dlp/extractor/archiveorg.py
mrBliss/yt-dlp
aecd021656b672dbb617e5bae54a8986f9c4ebaf
[ "Unlicense" ]
22
2021-05-07T05:01:27.000Z
2022-03-26T19:10:54.000Z
# coding: utf-8 from __future__ import unicode_literals import re import json from .common import InfoExtractor from .youtube import YoutubeIE, YoutubeBaseInfoExtractor from ..compat import ( compat_urllib_parse_unquote, compat_urllib_parse_unquote_plus, compat_HTTPError ) from ..utils import ( bug_rep...
46.776786
213
0.558822
30,704
0.976777
0
0
417
0.013266
0
0
14,283
0.454381
4680d6848613dfb9b8af98b8d4dd6e1f33bd4389
1,008
py
Python
Interfas Grafica XI (GUI)/InterfasGraficaXI.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
20
2020-08-19T23:27:01.000Z
2022-02-03T12:02:17.000Z
Interfas Grafica XI (GUI)/InterfasGraficaXI.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
1
2021-04-10T18:06:05.000Z
2021-04-10T18:06:05.000Z
Interfas Grafica XI (GUI)/InterfasGraficaXI.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
2
2020-12-03T19:35:36.000Z
2021-11-10T14:58:39.000Z
# Interfas Grafica XI # Menu from tkinter import * root=Tk() barraMenu=Menu(root) root.config(menu=barraMenu, width=600, height=400) archivoMenu=Menu(barraMenu, tearoff=0) archivoMenu.add_command(label="Nuevo") archivoMenu.add_command(label="Guardar") archivoMenu.add_command(label="Guardar Como") archivoMenu.add_s...
28
68
0.8125
0
0
0
0
0
0
0
0
157
0.155754
46812ee3bdef976af898f29d2c99337fc3788ea0
91
py
Python
virtual/lib/python3.6/site-packages/macaroonbakery/tests/__init__.py
marknesh/pitches
0a480d9bc2beafaefa0121393b1502cc05edab89
[ "MIT" ]
null
null
null
virtual/lib/python3.6/site-packages/macaroonbakery/tests/__init__.py
marknesh/pitches
0a480d9bc2beafaefa0121393b1502cc05edab89
[ "MIT" ]
11
2020-06-05T20:57:31.000Z
2021-09-22T18:35:03.000Z
flask/lib/python3.6/site-packages/macaroonbakery/tests/__init__.py
JOFLIX/grapevines
34576e01184570d79cc140b42ffb71d322132da6
[ "MIT", "Unlicense" ]
1
2020-11-04T06:48:34.000Z
2020-11-04T06:48:34.000Z
# Copyright 2017 Canonical Ltd. # Licensed under the LGPLv3, see LICENCE file for details.
30.333333
58
0.78022
0
0
0
0
0
0
0
0
89
0.978022
4681cb44945ca44b04cb55846c39c0d1d3ca721a
5,589
py
Python
08/postgresql_demo.py
catcherwong-archive/2019
f9672920113b1ec0a5fcd6a6bde681f62d805763
[ "MIT" ]
27
2019-04-07T15:31:53.000Z
2021-08-28T16:18:34.000Z
08/postgresql_demo.py
hca1120/2019
09e5f49407b8239409e857f8117877eedb6b0134
[ "MIT" ]
5
2019-08-10T08:19:28.000Z
2022-02-11T02:38:41.000Z
08/postgresql_demo.py
hca1120/2019
09e5f49407b8239409e857f8117877eedb6b0134
[ "MIT" ]
31
2019-04-07T15:31:57.000Z
2022-02-02T20:36:58.000Z
# -*- coding: UTF-8 -*- import psycopg2 #postgresql import time import datetime class PgDemo: def __init__(self, host, port, db, user, pwd): self.host = host self.port = port self.db = db self.user = user self.pwd = pwd def getConnection(s...
35.598726
138
0.429236
4,822
0.862458
0
0
0
0
0
0
1,160
0.207476
46820f0e1937a8a50c1292d89054f263875a439f
686
py
Python
examples/convert/pipe2sparky_2d.py
thegooglecodearchive/nmrglue
34ffb5247f457c19b93c584e048df4042dea0482
[ "BSD-3-Clause" ]
1
2019-04-22T06:08:13.000Z
2019-04-22T06:08:13.000Z
examples/convert/pipe2sparky_2d.py
thegooglecodearchive/nmrglue
34ffb5247f457c19b93c584e048df4042dea0482
[ "BSD-3-Clause" ]
null
null
null
examples/convert/pipe2sparky_2d.py
thegooglecodearchive/nmrglue
34ffb5247f457c19b93c584e048df4042dea0482
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python import nmrglue as ng # read in the varian data dic,data = ng.pipe.read("../common_data/2d_pipe/test.ft2") # Set the parameters u = ng.pipe.guess_udic(dic,data) # create the converter object and initilize with varian data C = ng.convert.converter() C.from_pipe(dic,data,u) # create pipe data ...
29.826087
67
0.759475
0
0
0
0
0
0
0
0
364
0.530612
46821c4a15686b2fb3b7ea49bee70f910667b4c7
36,931
py
Python
jaqs/trade/analyze/analyze.py
WayneWan413/JAQS
e7362fc261f49dd7a4353c9a9a3f98d6ef9a78b4
[ "Apache-2.0" ]
null
null
null
jaqs/trade/analyze/analyze.py
WayneWan413/JAQS
e7362fc261f49dd7a4353c9a9a3f98d6ef9a78b4
[ "Apache-2.0" ]
null
null
null
jaqs/trade/analyze/analyze.py
WayneWan413/JAQS
e7362fc261f49dd7a4353c9a9a3f98d6ef9a78b4
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 from __future__ import print_function import os import json from collections import OrderedDict import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.ticker import Formatter from jaqs.trade.analyze.report import Report from jaqs.data import ...
39.583065
139
0.584198
29,648
0.802794
0
0
2,361
0.06393
0
0
10,724
0.290379
4682bbaf850d64b54a79c88a195b6f6e2f183e48
114
py
Python
lightnet/data/transform/__init__.py
eavise-kul/lightnet
d2d5d3fff8f929c3683c34f176217649375b98e1
[ "MIT" ]
6
2019-10-10T05:42:50.000Z
2022-02-27T04:59:29.000Z
lightnet/data/transform/__init__.py
eavise-kul/lightnet
d2d5d3fff8f929c3683c34f176217649375b98e1
[ "MIT" ]
null
null
null
lightnet/data/transform/__init__.py
eavise-kul/lightnet
d2d5d3fff8f929c3683c34f176217649375b98e1
[ "MIT" ]
4
2020-01-25T20:16:23.000Z
2021-04-29T13:02:34.000Z
# # Lightnet data transforms # Copyright EAVISE # from .pre import * from .post import * from .util import *
12.666667
28
0.684211
0
0
0
0
0
0
0
0
50
0.438596
46830865694c3242ec731476bef2c0bab11ffa36
420
py
Python
ufdl-core-app/src/ufdl/core_app/exceptions/_BadSource.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
null
null
null
ufdl-core-app/src/ufdl/core_app/exceptions/_BadSource.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
85
2020-07-24T00:04:28.000Z
2022-02-10T10:35:15.000Z
ufdl-core-app/src/ufdl/core_app/exceptions/_BadSource.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
null
null
null
from rest_framework import status from rest_framework.exceptions import APIException class BadSource(APIException): """ Exception for when a lazily-loaded data source can't be accessed for some reason """ status_code = status.HTTP_417_EXPECTATION_FAILED default_code = 'bad_source' def __i...
28
60
0.719048
332
0.790476
0
0
0
0
0
0
146
0.347619
468313da2c3cc1e70694859bf5264667fcd82781
8,935
py
Python
build_tools/docker/manage_images.py
BernhardRiemann/iree
471349762b316f7d6b83eb5f9089255d78052758
[ "Apache-2.0" ]
1
2021-03-15T13:53:30.000Z
2021-03-15T13:53:30.000Z
build_tools/docker/manage_images.py
BernhardRiemann/iree
471349762b316f7d6b83eb5f9089255d78052758
[ "Apache-2.0" ]
null
null
null
build_tools/docker/manage_images.py
BernhardRiemann/iree
471349762b316f7d6b83eb5f9089255d78052758
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2020 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
32.140288
80
0.675993
0
0
0
0
0
0
0
0
4,097
0.458534
4684141f6543556bf465b101be71f060f3b08131
27,570
py
Python
suncasa/pygsfit/gsutils.py
wyq24/suncasa
e6ed6d8b9bd2186c4af6d0354d03af5fff9aef7a
[ "BSD-2-Clause" ]
null
null
null
suncasa/pygsfit/gsutils.py
wyq24/suncasa
e6ed6d8b9bd2186c4af6d0354d03af5fff9aef7a
[ "BSD-2-Clause" ]
null
null
null
suncasa/pygsfit/gsutils.py
wyq24/suncasa
e6ed6d8b9bd2186c4af6d0354d03af5fff9aef7a
[ "BSD-2-Clause" ]
null
null
null
import numpy as np # import sys import math import os, sys, platform import astropy.units as u from sunpy import map as smap from astropy.coordinates import SkyCoord from suncasa.io import ndfits import lmfit from astropy.time import Time import matplotlib.pyplot as plt import matplotlib.colors as colors import matplot...
40.784024
145
0.551904
18,293
0.663487
0
0
0
0
0
0
5,316
0.192811
4685248be49c1c014500014593ebd58e99994652
1,496
py
Python
msgvis/apps/questions/migrations/0001_initial.py
hds-lab/textvis-drg
bfb136b6105df84fb6c1c89cc595bf9e9f22c5fe
[ "MIT" ]
10
2015-12-04T07:43:11.000Z
2021-01-23T00:44:56.000Z
msgvis/apps/questions/migrations/0001_initial.py
hds-lab/textvis-drg
bfb136b6105df84fb6c1c89cc595bf9e9f22c5fe
[ "MIT" ]
200
2015-02-11T05:41:57.000Z
2015-11-13T03:47:25.000Z
msgvis/apps/questions/migrations/0001_initial.py
hds-lab/textvis-drg
bfb136b6105df84fb6c1c89cc595bf9e9f22c5fe
[ "MIT" ]
6
2015-10-02T18:01:09.000Z
2021-01-23T00:44:58.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('dimensions', '0001_initial'), ] operations = [ migrations.CreateModel( name='Article', fields=[ ...
36.487805
114
0.556818
1,387
0.927139
0
0
0
0
0
0
186
0.124332
4685622823bb3cb792b6697fa854e6d940a37ece
7,412
py
Python
test/test_check_alert.py
russ-lewis/cs120-queuebot
6b121ef9b0d7db7bbb1810f71129d995ce6a1659
[ "MIT" ]
null
null
null
test/test_check_alert.py
russ-lewis/cs120-queuebot
6b121ef9b0d7db7bbb1810f71129d995ce6a1659
[ "MIT" ]
null
null
null
test/test_check_alert.py
russ-lewis/cs120-queuebot
6b121ef9b0d7db7bbb1810f71129d995ce6a1659
[ "MIT" ]
1
2021-05-18T02:32:54.000Z
2021-05-18T02:32:54.000Z
import io import sys import unittest import asyncio import random from contextlib import redirect_stdout from .utils import * from queuebot import QueueBot, QueueConfig, DiscordUser config = { "SECRET_TOKEN": "NOONEWILLEVERGUESSTHISSUPERSECRETSTRINGMWAHAHAHA", "TA_ROLES": ["UGTA"], "LISTEN_CHANNELS": ["jo...
34.314815
91
0.625472
6,716
0.905854
0
0
0
0
0
0
920
0.12409
4685d4b1728860e781a678cd76d788dda6fe260b
236
py
Python
iam/__init__.py
dataday/aws-utilities-sdk
7b1236f27a27e2830ccbbf905bbc05f864a1aecf
[ "MIT" ]
null
null
null
iam/__init__.py
dataday/aws-utilities-sdk
7b1236f27a27e2830ccbbf905bbc05f864a1aecf
[ "MIT" ]
null
null
null
iam/__init__.py
dataday/aws-utilities-sdk
7b1236f27a27e2830ccbbf905bbc05f864a1aecf
[ "MIT" ]
null
null
null
""" .. module:: aws_utilities_cli.iam :platform: OS X :synopsis: Small collection of utilities that use the Amazon Web Services (AWS) SDK .. moduleauthor:: dataday """ __all__ = ['generate_identity', 'generate_policy']
23.6
50
0.686441
0
0
0
0
0
0
0
0
220
0.932203
46869ee7c4058bcc60c1e873b09ca6bac3bb10d7
2,556
py
Python
tests/common/test_run/triangle_run.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
tests/common/test_run/triangle_run.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
tests/common/test_run/triangle_run.py
KnowingNothing/akg-test
114d8626b824b9a31af50a482afc07ab7121862b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
35.5
114
0.711659
0
0
0
0
0
0
0
0
757
0.296166
4686dbf11ea2488f7a45d2ed0c1748432a5a0064
394
py
Python
profiles/migrations/0018_auto_20180514_2106.py
brentfraser/geotabloid
772106b2d39b5405045814b5f013ece5713469b1
[ "MIT" ]
2
2018-12-03T09:19:31.000Z
2020-02-11T15:32:12.000Z
{{cookiecutter.project_slug}}/profiles/migrations/0018_auto_20180514_2106.py
brentfraser/cookiecutter-geopaparazzi-server
f9cd705991879deac67365007e9589142afc09bf
[ "BSD-3-Clause" ]
2
2019-02-20T17:50:55.000Z
2019-02-21T15:19:51.000Z
profiles/migrations/0018_auto_20180514_2106.py
GeoAnalytic-code/geotabloid
af017d470ef4553d5fbd24d865cb22ca643fd999
[ "MIT" ]
2
2018-10-19T17:07:01.000Z
2021-01-13T06:54:55.000Z
# Generated by Django 2.0.3 on 2018-05-14 21:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profiles', '0017_otherfiles_location'), ] operations = [ migrations.AlterField( model_name='project', name='url', ...
20.736842
58
0.598985
301
0.763959
0
0
0
0
0
0
108
0.274112
46873638ac399bb3c28bf800bc92bbfd39940934
15,189
py
Python
orio/main/tuner/tuner.py
parsabee/Orio
64de0f7ee422483b60a9f02793472e20e864aa08
[ "MIT" ]
24
2015-01-26T03:14:19.000Z
2021-09-27T23:10:12.000Z
orio/main/tuner/tuner.py
parsabee/Orio
64de0f7ee422483b60a9f02793472e20e864aa08
[ "MIT" ]
30
2015-04-17T18:14:27.000Z
2021-05-30T15:01:47.000Z
orio/main/tuner/tuner.py
parsabee/Orio
64de0f7ee422483b60a9f02793472e20e864aa08
[ "MIT" ]
20
2015-02-11T08:20:19.000Z
2022-01-15T17:55:00.000Z
# # The tuner class to initiate the empirical performance tuning process # import re, sys, os from orio.main.util.globals import * import orio.main.dyn_loader, orio.main.tspec.tspec, orio.main.tuner.ptest_codegen, orio.main.tuner.ptest_driver #-------------------------------------------------- # the name of the mo...
43.397143
169
0.55448
14,728
0.969649
0
0
0
0
0
0
4,594
0.302456
46882caba8a1bc1cb57f8753adac56b5f9b622b8
1,862
py
Python
verify_data.py
goowell/DrAdvice
d1f9d70671500599b3a36eb9c83390e39c521d25
[ "MIT" ]
null
null
null
verify_data.py
goowell/DrAdvice
d1f9d70671500599b3a36eb9c83390e39c521d25
[ "MIT" ]
null
null
null
verify_data.py
goowell/DrAdvice
d1f9d70671500599b3a36eb9c83390e39c521d25
[ "MIT" ]
null
null
null
from transformer import * from logger import logger def find_missing(): from db import paients_source, paients_info import re for pi in paients_info.find(): if paients_source.find({'_id': re.compile(pi['住院号'], re.IGNORECASE)}).count()>0: pass else: print(pi['住院号']) ...
29.09375
119
0.538131
0
0
0
0
0
0
0
0
424
0.226013
46885ee1267724c58d93c90bd0626ea4f768c7c7
1,904
py
Python
jvm-packages/cudautils.py
NVIDIA/spark-xgboost
983159f52784e3d9dfd8e9957c5f8ca18e64f934
[ "Apache-2.0" ]
15
2020-06-11T02:20:26.000Z
2022-03-09T07:18:23.000Z
jvm-packages/cudautils.py
NVIDIA/spark-xgboost
983159f52784e3d9dfd8e9957c5f8ca18e64f934
[ "Apache-2.0" ]
4
2021-01-20T03:24:23.000Z
2021-11-01T05:33:38.000Z
jvm-packages/cudautils.py
NVIDIA/spark-xgboost
983159f52784e3d9dfd8e9957c5f8ca18e64f934
[ "Apache-2.0" ]
6
2020-06-24T03:28:58.000Z
2021-10-01T16:04:11.000Z
#!/usr/bin/env python import os import re import subprocess import sys # version -> classifier # '' means default classifier cuda_vers = { '11.2': ['cuda11', ''] } def check_classifier(classifier): ''' Check the mapping from cuda version to jar classifier. Used by maven build. ''' cu_ver = detec...
25.386667
108
0.644958
0
0
0
0
0
0
0
0
623
0.327206
4688b12d1b22b922d562bb53aed309b70230470c
294
py
Python
hitchhikeproject/hitchhikeapp/migrations/0011_delete_dog.py
AlexW57/HitchHikeProject
54e02a82fb322cb7ea5d4fdc323e2e3c9d1e9b89
[ "MIT" ]
null
null
null
hitchhikeproject/hitchhikeapp/migrations/0011_delete_dog.py
AlexW57/HitchHikeProject
54e02a82fb322cb7ea5d4fdc323e2e3c9d1e9b89
[ "MIT" ]
null
null
null
hitchhikeproject/hitchhikeapp/migrations/0011_delete_dog.py
AlexW57/HitchHikeProject
54e02a82fb322cb7ea5d4fdc323e2e3c9d1e9b89
[ "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-03-29 19:11 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('hitchhikeapp', '0010_userdata_userid'), ] operations = [ migrations.DeleteModel( name='Dog', ), ]
17.294118
49
0.602041
209
0.710884
0
0
0
0
0
0
88
0.29932
4689c871990ae00114397708dbcc29fc3f6a6ac6
5,087
py
Python
support/models.py
gurupratap-matharu/django-tickets-app
8200af606e382f8806511c318961589f34375cdf
[ "MIT" ]
1
2020-10-16T16:37:04.000Z
2020-10-16T16:37:04.000Z
support/models.py
gurupratap-matharu/django-tickets-app
8200af606e382f8806511c318961589f34375cdf
[ "MIT" ]
null
null
null
support/models.py
gurupratap-matharu/django-tickets-app
8200af606e382f8806511c318961589f34375cdf
[ "MIT" ]
null
null
null
import pytz from datetime import date, time, datetime, timedelta from django.core.exceptions import ValidationError from django.db import models START_HOUR = 9 END_HOUR = 18 workingHours = END_HOUR - START_HOUR class Vendor(models.Model): """ This class defines which vendors are allowed raise tickets with ...
30.279762
98
0.649892
2,960
0.581875
0
0
0
0
0
0
1,966
0.386475
4689fd0a503a48da1fc4fb1000e346ebf2f7be93
605
py
Python
tests/port_tests/point_tests/test_bounding_box.py
skrat/martinez
86db48324cb50ecb52be8ab2e4278a6d5cdd562b
[ "MIT" ]
7
2020-05-07T08:13:44.000Z
2021-12-17T07:33:51.000Z
tests/port_tests/point_tests/test_bounding_box.py
skrat/martinez
86db48324cb50ecb52be8ab2e4278a6d5cdd562b
[ "MIT" ]
17
2019-11-29T23:17:26.000Z
2020-12-20T15:47:17.000Z
tests/port_tests/point_tests/test_bounding_box.py
skrat/martinez
86db48324cb50ecb52be8ab2e4278a6d5cdd562b
[ "MIT" ]
1
2020-12-17T22:44:21.000Z
2020-12-17T22:44:21.000Z
from hypothesis import given from tests.port_tests.hints import (PortedBoundingBox, PortedPoint) from tests.utils import equivalence from . import strategies @given(strategies.points) def test_basic(point: PortedPoint) -> None: assert isinstance(point.bounding_box, PortedBound...
31.842105
77
0.707438
0
0
0
0
404
0.667769
0
0
0
0
468a1af4f4a7334446b0e0152db92174a4f3295b
424
py
Python
test/conftest.py
alexandonian/lightning
90350fd454cd7a51c35adadf5b9753868ac6dccd
[ "Apache-2.0" ]
null
null
null
test/conftest.py
alexandonian/lightning
90350fd454cd7a51c35adadf5b9753868ac6dccd
[ "Apache-2.0" ]
null
null
null
test/conftest.py
alexandonian/lightning
90350fd454cd7a51c35adadf5b9753868ac6dccd
[ "Apache-2.0" ]
null
null
null
import pytest # import station def pytest_addoption(parser): parser.addoption("--engine", action="store", default="local", help="engine to run tests with") @pytest.fixture(scope='module') def eng(request): engine = request.config.getoption("--engine") if engine == 'local': ...
23.555556
66
0.625
0
0
0
0
237
0.558962
0
0
98
0.231132
468ce700bfaf82c4969d9da9bf954d79c010ee00
7,960
py
Python
pytorch_translate/dual_learning/dual_learning_models.py
dzhulgakov/translate
018d3eed8d93ff32e86c912e68045c7a3f4ed0b7
[ "BSD-3-Clause" ]
1
2020-07-24T10:59:17.000Z
2020-07-24T10:59:17.000Z
pytorch_translate/dual_learning/dual_learning_models.py
dzhulgakov/translate
018d3eed8d93ff32e86c912e68045c7a3f4ed0b7
[ "BSD-3-Clause" ]
null
null
null
pytorch_translate/dual_learning/dual_learning_models.py
dzhulgakov/translate
018d3eed8d93ff32e86c912e68045c7a3f4ed0b7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import logging import torch.nn as nn from fairseq import checkpoint_utils from fairseq.models import BaseFairseqModel, register_model from pytorch_translate import rnn from pytorch_translate.rnn import ( LSTMSequenceEncoder, RNNDecoder, RNNEncoder, RNNModel, base_architectur...
38.829268
91
0.650377
7,440
0.934673
0
0
7,510
0.943467
0
0
1,454
0.182663
468d721e5802a550fe36c1b0efccab7310faf51c
697
py
Python
thgsp/sampling/__init__.py
qiuyy20/thgsp
2cd09ba09716cc716a3d4e125d2d0b20f5cc942d
[ "BSD-3-Clause" ]
null
null
null
thgsp/sampling/__init__.py
qiuyy20/thgsp
2cd09ba09716cc716a3d4e125d2d0b20f5cc942d
[ "BSD-3-Clause" ]
null
null
null
thgsp/sampling/__init__.py
qiuyy20/thgsp
2cd09ba09716cc716a3d4e125d2d0b20f5cc942d
[ "BSD-3-Clause" ]
null
null
null
from ._utils import construct_dia, construct_hth, construct_sampling_matrix from .bsgda import bsgda, computing_sets, recon_bsgda, solving_set_covering from .ess import ess, ess_sampling, recon_ess from .fastgsss import fastgsss, recon_fastssss from .rsbs import cheby_coeff4ideal_band_pass, estimate_lk, recon_rsbs, rsb...
25.814815
76
0.71736
0
0
0
0
0
0
0
0
254
0.364419
468df8250e372c77ba85fdae3eaf93df4bca1fda
3,382
py
Python
h2o-py/tests/testdir_generic_model/pyunit_generic_model_mojo_glm.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
1
2022-03-15T06:08:14.000Z
2022-03-15T06:08:14.000Z
h2o-py/tests/testdir_generic_model/pyunit_generic_model_mojo_glm.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
58
2021-10-01T12:43:37.000Z
2021-12-08T22:58:43.000Z
h2o-py/tests/testdir_generic_model/pyunit_generic_model_mojo_glm.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
null
null
null
import tempfile import os import sys sys.path.insert(1,"../../") import h2o from h2o.estimators import H2OGeneralizedLinearEstimator, H2OGenericEstimator from tests import pyunit_utils from tests.testdir_generic_model import compare_output, Capturing, compare_params def test(x, y, output_test, strip_part, algo_name, ...
46.328767
136
0.77262
0
0
0
0
0
0
0
0
767
0.226789
468f2faee1688669d20b891ff6fb1ee641d68824
9,160
py
Python
test/HPE3ParClient_base.py
jyotsnalothe/python-3parclient
aa6ece402c2e3e83cae102f04ffc83f9e2421bf3
[ "Apache-2.0" ]
35
2015-12-03T16:46:11.000Z
2022-01-19T10:50:35.000Z
test/HPE3ParClient_base.py
jyotsnalothe/python-3parclient
aa6ece402c2e3e83cae102f04ffc83f9e2421bf3
[ "Apache-2.0" ]
57
2015-12-01T00:34:39.000Z
2022-03-25T12:00:50.000Z
test/HPE3ParClient_base.py
jyotsnalothe/python-3parclient
aa6ece402c2e3e83cae102f04ffc83f9e2421bf3
[ "Apache-2.0" ]
64
2016-04-24T00:22:43.000Z
2021-08-06T09:29:38.000Z
# (c) Copyright 2015 Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
37.235772
78
0.533188
8,085
0.882642
0
0
260
0.028384
0
0
2,043
0.223035
468fc07953c8147b25a2f944027c5638901e823c
4,452
py
Python
test/drivers/second_quantization/hdf5d/test_driver_hdf5.py
jschuhmac/qiskit-nature
b8b1181d951cf8fa76fe0db9e5ea192dad5fb186
[ "Apache-2.0" ]
null
null
null
test/drivers/second_quantization/hdf5d/test_driver_hdf5.py
jschuhmac/qiskit-nature
b8b1181d951cf8fa76fe0db9e5ea192dad5fb186
[ "Apache-2.0" ]
null
null
null
test/drivers/second_quantization/hdf5d/test_driver_hdf5.py
jschuhmac/qiskit-nature
b8b1181d951cf8fa76fe0db9e5ea192dad5fb186
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2022. # # 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 derivat...
39.75
99
0.655885
3,484
0.78257
0
0
0
0
0
0
1,667
0.374438
469076a38899f95c1e7c8c2bdfb61492327f8f5d
11,269
py
Python
01_test_pytorch.py
yokaji/dcase2021_task2_baseline_ae
47b621e6abd0502fed2123c31c61b081bce5c223
[ "MIT" ]
null
null
null
01_test_pytorch.py
yokaji/dcase2021_task2_baseline_ae
47b621e6abd0502fed2123c31c61b081bce5c223
[ "MIT" ]
null
null
null
01_test_pytorch.py
yokaji/dcase2021_task2_baseline_ae
47b621e6abd0502fed2123c31c61b081bce5c223
[ "MIT" ]
null
null
null
######################################################################## # import default libraries ######################################################################## import os import csv import sys import gc ######################################################################## ####################...
50.308036
151
0.460112
0
0
0
0
0
0
0
0
3,309
0.293637
4690da1c3b97e01a8795122d75752b424704a346
1,706
py
Python
Replace Downloads/replace_downloads.py
crake7/Defensor-Fortis-
086b055a10b9ac55f444e8d13b4031f998415438
[ "MIT" ]
null
null
null
Replace Downloads/replace_downloads.py
crake7/Defensor-Fortis-
086b055a10b9ac55f444e8d13b4031f998415438
[ "MIT" ]
null
null
null
Replace Downloads/replace_downloads.py
crake7/Defensor-Fortis-
086b055a10b9ac55f444e8d13b4031f998415438
[ "MIT" ]
1
2021-12-20T11:44:51.000Z
2021-12-20T11:44:51.000Z
#!/usr/bin/env python import netfilterqueue import scapy.all as scapy ack_list = [] def set_load(packet, load): packet[scapy.Raw].load = load del packet[scapy.IP].len del packet[scapy.IP].chksum del packet[scapy.TCP].chksum return packet def process_packet(packet): """Modify downloads files...
37.086957
193
0.654162
0
0
0
0
0
0
0
0
686
0.40211
46917396382ee9f0addf54bb780182338681e694
1,757
py
Python
tmpmodels.py
firaan1/iamgrateful
445260313ab94dfdaf310a6766e848c8df94b624
[ "MIT" ]
null
null
null
tmpmodels.py
firaan1/iamgrateful
445260313ab94dfdaf310a6766e848c8df94b624
[ "MIT" ]
null
null
null
tmpmodels.py
firaan1/iamgrateful
445260313ab94dfdaf310a6766e848c8df94b624
[ "MIT" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import create_engine from sqlalchemy import Column, Integer, String, Text, ForeignKey, DateTime, func, Boolean from sqlalchemy.orm import relation, sessionmaker, relationship, backref from datetime import datetime import os # Database DATABASE = ...
30.824561
89
0.712009
1,088
0.619237
0
0
0
0
0
0
239
0.136027
4691f105e7b4e6d56ef7ec3a85a8060f44a867c1
579
py
Python
doc/filters.py
CargobaseDev/openpyxl
782ba90d26be452379fc06f45227e12bca9bade4
[ "MIT" ]
6
2018-05-15T05:08:52.000Z
2021-12-23T12:31:28.000Z
doc/filters.py
CargobaseDev/openpyxl
782ba90d26be452379fc06f45227e12bca9bade4
[ "MIT" ]
1
2022-01-01T15:08:26.000Z
2022-01-01T15:08:36.000Z
doc/filters.py
CargobaseDev/openpyxl
782ba90d26be452379fc06f45227e12bca9bade4
[ "MIT" ]
6
2020-03-23T15:59:14.000Z
2021-09-18T09:54:57.000Z
from openpyxl import Workbook wb = Workbook() ws = wb.active data = [ ["Fruit", "Quantity"], ["Kiwi", 3], ["Grape", 15], ["Apple", 3], ["Peach", 3], ["Pomegranate", 3], ["Pear", 3], ["Tangerine", 3], ["Blueberry", 3], ["Mango", 3], ["Watermelon", 3], ["Blackberry", 3], ...
18.09375
63
0.544041
0
0
0
0
0
0
0
0
194
0.33506
4692314ed6b0b1046dcbfa825a3d464141899b16
1,150
py
Python
Bleak/two_devices.py
mbdev2/MIS_FindMyProfessor
fa6a8e9b787013b2eadbc021b0d74210de689872
[ "MIT" ]
null
null
null
Bleak/two_devices.py
mbdev2/MIS_FindMyProfessor
fa6a8e9b787013b2eadbc021b0d74210de689872
[ "MIT" ]
null
null
null
Bleak/two_devices.py
mbdev2/MIS_FindMyProfessor
fa6a8e9b787013b2eadbc021b0d74210de689872
[ "MIT" ]
null
null
null
from bleak import BleakClient import asyncio import functools notify_uuid = "00002a19-0000-1000-8000-00805f9b34fb".format(0x2A19) def callback(sender, data, mac_address): #data = bytearray(data) dataint = int.from_bytes(data, byteorder='little', signed=True) print(mac_address, dataint) def run(addresses...
27.380952
100
0.691304
0
0
0
0
0
0
536
0.466087
252
0.21913
4692c2ff5367cf7fc52d9c66cbd5187236f80e7d
655
py
Python
binary search tree insertion.py
buhuhaha/python
4ff72ac711f0948ae5bcb0886d68e8df77fe515b
[ "MIT" ]
null
null
null
binary search tree insertion.py
buhuhaha/python
4ff72ac711f0948ae5bcb0886d68e8df77fe515b
[ "MIT" ]
null
null
null
binary search tree insertion.py
buhuhaha/python
4ff72ac711f0948ae5bcb0886d68e8df77fe515b
[ "MIT" ]
null
null
null
class Node: left = right = None def __init__(self, data): self.data = data def inorder(root): if root is None: return inorder(root.left) print(root.data, end=' ') inorder(root.right) def insert(root, key): if root is None: return Node(key) if key < root.data: ...
22.586207
44
0.58626
90
0.137405
0
0
0
0
0
0
13
0.019847
469393ea6c4b1c5c7b78ca579da1a18fef848cb3
625
py
Python
tests/test_env_helpers.py
Azraeht/py-ndebug
b7d13b39adc6c0ece6b0d527752869fd94eb9f8a
[ "MIT" ]
null
null
null
tests/test_env_helpers.py
Azraeht/py-ndebug
b7d13b39adc6c0ece6b0d527752869fd94eb9f8a
[ "MIT" ]
1
2020-03-24T17:29:40.000Z
2020-03-24T17:29:40.000Z
tests/test_env_helpers.py
Azraeht/py-ndebug
b7d13b39adc6c0ece6b0d527752869fd94eb9f8a
[ "MIT" ]
1
2020-03-24T16:41:31.000Z
2020-03-24T16:41:31.000Z
from ndebug import env_helpers def test_inspect_ops(mocker): mocker.patch.dict('os.environ', {'DEBUG_COLORS': 'no', 'DEBUG_DEPTH': '10', 'DEBUG_SHOW_HIDDEN': 'enabled', 'DEBUG_SOMETHING': 'null'}) ac...
31.25
91
0.5536
0
0
0
0
0
0
0
0
161
0.2576
4693fb42192c5502c57c49f8441c5cf7ba66b002
1,709
py
Python
relay_lib_seeed_test_2.py
johnwargo/seeed-studio-relay-v2
ce1b84b0f0001baa7ec4729dc2967531da3bdc22
[ "MIT" ]
1
2021-05-07T07:40:27.000Z
2021-05-07T07:40:27.000Z
relay_lib_seeed_test_2.py
johnwargo/seeed-studio-relay-v2
ce1b84b0f0001baa7ec4729dc2967531da3bdc22
[ "MIT" ]
null
null
null
relay_lib_seeed_test_2.py
johnwargo/seeed-studio-relay-v2
ce1b84b0f0001baa7ec4729dc2967531da3bdc22
[ "MIT" ]
null
null
null
#!/usr/bin/python '''***************************************************************************************************************** Seeed Studio Relay Board Library V2 Test Application #2 By John M. Wargo (https://www.johnwargo.com) ************************************************************************...
26.703125
119
0.504389
0
0
0
0
0
0
0
0
771
0.451141
469452474a032213255cf5547c78a4dee27d7d79
2,087
py
Python
quasar/sa_database.py
stevencyrway/quasar
db8ff733ec1becf95defc7097890232cd5944d48
[ "MIT" ]
12
2017-05-17T17:22:47.000Z
2021-05-24T17:24:42.000Z
quasar/sa_database.py
stevencyrway/quasar
db8ff733ec1becf95defc7097890232cd5944d48
[ "MIT" ]
484
2015-12-02T19:24:34.000Z
2022-02-22T16:36:47.000Z
quasar/sa_database.py
stevencyrway/quasar
db8ff733ec1becf95defc7097890232cd5944d48
[ "MIT" ]
8
2017-04-27T20:42:05.000Z
2022-01-11T19:43:57.000Z
import os from sqlalchemy import bindparam, create_engine, exc from sqlalchemy.dialects.postgresql.json import JSONB from sqlalchemy.engine.url import URL from sqlalchemy.sql import text from .utils import log, logerr # Setup SQL Alchemy vars. pg_opts = { 'drivername': os.getenv('PG_DRIVER'), 'username': os....
32.107692
75
0.632966
1,562
0.748443
0
0
0
0
0
0
730
0.349784
4694573c6edf0ff0ed4f4786ad3fb6ae431575db
29,122
py
Python
commands/__init__.py
CorneliaXaos/Command-Block-Assembly
6ed002c7df856d95d8cb2b8e5346c2bb807bf4bc
[ "MIT" ]
1
2020-06-13T13:57:11.000Z
2020-06-13T13:57:11.000Z
commands/__init__.py
CorneliaXaos/Command-Block-Assembly
6ed002c7df856d95d8cb2b8e5346c2bb807bf4bc
[ "MIT" ]
null
null
null
commands/__init__.py
CorneliaXaos/Command-Block-Assembly
6ed002c7df856d95d8cb2b8e5346c2bb807bf4bc
[ "MIT" ]
null
null
null
import abc class CommandBlock: def __init__(self, command, conditional=True, mode='CHAIN', auto=True, opposite=False, single_use=True): self.command = command self.cond = conditional self.mode = mode self.auto = auto self.opposite = opposite self.sin...
29.327291
86
0.588215
28,211
0.968718
0
0
428
0.014697
0
0
1,518
0.052126
46950a30a497c84732798b48f44483d04a01233a
217
py
Python
top/clearlight/reptile/bilibili/bj_tech_mooc/example_04_360.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/reptile/bilibili/bj_tech_mooc/example_04_360.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/reptile/bilibili/bj_tech_mooc/example_04_360.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
import requests keyword = "python" try: kv = {'q':keyword} r = requests.get('http://www.so.com/s', params=kv) print(r.request.url) r.raise_for_status() print(len(r.text)) except: print('爬取失败')
19.727273
54
0.617512
0
0
0
0
0
0
0
0
46
0.204444
4695279b1ca8306d24c6c58add7de32e6798011f
4,489
py
Python
rodnet/models/backbones/cdc_deep.py
zhengzangw/RODNet
eca5f2bd1f3051c2b823d279532ddafa71b009c1
[ "MIT" ]
null
null
null
rodnet/models/backbones/cdc_deep.py
zhengzangw/RODNet
eca5f2bd1f3051c2b823d279532ddafa71b009c1
[ "MIT" ]
null
null
null
rodnet/models/backbones/cdc_deep.py
zhengzangw/RODNet
eca5f2bd1f3051c2b823d279532ddafa71b009c1
[ "MIT" ]
null
null
null
import torch.nn as nn class RODEncode(nn.Module): def __init__(self, in_channels=2): super(RODEncode, self).__init__() self.conv1a = nn.Conv3d( in_channels=in_channels, out_channels=64, kernel_size=(9, 5, 5), stride=(1, 1, 1), padding=(4,...
32.294964
101
0.461573
4,461
0.993763
0
0
0
0
0
0
697
0.155268
46955a61d6eda18fd04e0a7384414c8a588922bf
85
py
Python
File/admin.py
alstn2468/Likelion_DRF_Project
35a359a05185f551ed2e999ab17e0108a69d6b57
[ "MIT" ]
28
2019-10-15T13:15:26.000Z
2021-11-08T08:23:45.000Z
15_LikeLionDRFProject/File/admin.py
jhleed/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
1
2021-05-22T18:27:01.000Z
2021-05-22T18:27:01.000Z
15_LikeLionDRFProject/File/admin.py
jhleed/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
17
2019-09-09T00:15:36.000Z
2021-01-28T13:08:51.000Z
from django.contrib import admin from .models import File admin.site.register(File)
17
32
0.811765
0
0
0
0
0
0
0
0
0
0
469862e42b088f23b41b49c8734db4c50395bddc
28,022
py
Python
agent/windows/agent.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
21
2019-10-24T04:59:52.000Z
2021-05-11T12:47:17.000Z
agent/windows/agent.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
null
null
null
agent/windows/agent.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
9
2019-10-26T16:56:08.000Z
2021-03-15T14:10:21.000Z
import shutil import socket import subprocess import threading import json import pickle import tempfile import time import box import threading import os import base64 import getpass import urllib import requests import zipfile import sys import pprint import platform DEBUG = True BPH_TEMPLATE_...
40.552822
126
0.554386
26,482
0.945043
0
0
0
0
0
0
6,282
0.224181
469870ae47593eb387aa34d03ce486676acb3094
2,599
py
Python
python/src/learn/lstmSequence.py
kakaba2009/MachineLearning
26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33
[ "Apache-2.0" ]
null
null
null
python/src/learn/lstmSequence.py
kakaba2009/MachineLearning
26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33
[ "Apache-2.0" ]
null
null
null
python/src/learn/lstmSequence.py
kakaba2009/MachineLearning
26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33
[ "Apache-2.0" ]
null
null
null
# LSTM with Variable Length Input Sequences to One Character Output import numpy from keras.models import Sequential from keras.layers import Dense from keras.layers import LSTM from keras.utils import np_utils from keras.preprocessing.sequence import pad_sequences from theano.tensor.shared_randomstreams import ...
41.919355
91
0.719123
0
0
0
0
0
0
0
0
654
0.251635
4699a0bfa6dd1ddc3a1e8897780df54022543382
8,541
py
Python
DATA/prediction/direction/pred_script.py
korcsmarosgroup/ARN2DataBase
8931cec0387e5c8b599df40d652ac5fdb5c49a8f
[ "MIT" ]
null
null
null
DATA/prediction/direction/pred_script.py
korcsmarosgroup/ARN2DataBase
8931cec0387e5c8b599df40d652ac5fdb5c49a8f
[ "MIT" ]
null
null
null
DATA/prediction/direction/pred_script.py
korcsmarosgroup/ARN2DataBase
8931cec0387e5c8b599df40d652ac5fdb5c49a8f
[ "MIT" ]
null
null
null
""" Direction prediction based on learning dataset from reactome PPI direction calculated from domain interaction directions """ # Imports import sqlite3, csv, os import pandas as pd import logging import pickle # # Initiating logger # logger = logging.getLogger() # handler = logging.FileHandler('../../workflow/SLK3.l...
45.673797
125
0.550872
7,764
0.909027
0
0
0
0
0
0
2,892
0.338602
4699a1827567dd51a8a50f85f10e57138d48a545
1,398
py
Python
src/main.py
vcodrins/json_to_folder
3e07259b1c5757587a5235b2412441d87607597f
[ "MIT" ]
null
null
null
src/main.py
vcodrins/json_to_folder
3e07259b1c5757587a5235b2412441d87607597f
[ "MIT" ]
null
null
null
src/main.py
vcodrins/json_to_folder
3e07259b1c5757587a5235b2412441d87607597f
[ "MIT" ]
null
null
null
import json import os.path import sys from exceptions import * from create_folder_structure import create_folder_structure def main(): try: if len(sys.argv) != 3: raise InvalidArgumentCount if not os.path.exists(sys.argv[2]): raise InvalidFilePath if not os.path.exi...
26.884615
96
0.556509
0
0
0
0
0
0
0
0
607
0.434192
469a1ea0ba86db2759c0a614f1ca8112b547ba08
277
py
Python
app/conftest.py
hbyyy/newsmailing
53f7bbff438a5dcd19708dc8738d4407d156dd7f
[ "MIT" ]
null
null
null
app/conftest.py
hbyyy/newsmailing
53f7bbff438a5dcd19708dc8738d4407d156dd7f
[ "MIT" ]
7
2020-06-19T15:32:07.000Z
2021-08-23T20:49:39.000Z
app/conftest.py
hbyyy/newsmailing
53f7bbff438a5dcd19708dc8738d4407d156dd7f
[ "MIT" ]
null
null
null
from datetime import timedelta import pytest from model_bakery import baker @pytest.fixture() def create_expire_user(): def make_user(**kwargs): user = baker.make('members.User') user.created -= timedelta(days=4) return user return make_user
19.785714
41
0.693141
0
0
0
0
197
0.711191
0
0
14
0.050542
469ba49461fc882de80bb1d478b0aec8c3c11361
3,952
py
Python
src/SecurityDecorator.py
JanCwik/SoftwarePraktikum
d4a2b196f21a5379188cb78b31c59d69f739964f
[ "RSA-MD" ]
7
2020-05-18T14:20:17.000Z
2020-07-27T17:37:38.000Z
src/SecurityDecorator.py
JanCwik/SoftwarePraktikum
d4a2b196f21a5379188cb78b31c59d69f739964f
[ "RSA-MD" ]
null
null
null
src/SecurityDecorator.py
JanCwik/SoftwarePraktikum
d4a2b196f21a5379188cb78b31c59d69f739964f
[ "RSA-MD" ]
2
2020-05-18T14:20:22.000Z
2020-07-27T17:37:05.000Z
from flask import request from google.auth.transport import requests import google.oauth2.id_token from server.ApplikationsAdministration import ApplikationsAdministration #Benutzer.py, BenutzerMapper + BenutzerMethoden in ApplikationsAdministration def secured(function): """Decorator zur Google Firebase-basiert...
45.953488
97
0.603492
0
0
0
0
0
0
0
0
2,147
0.542035
469bf8d9da5f7e85ca99597046844afc1b477cd9
213
py
Python
code/django18/django18/newsletter/forms.py
dvl/celerytalk
312de04ea24bb073357684a3a35cfd782b2b7aae
[ "MIT" ]
null
null
null
code/django18/django18/newsletter/forms.py
dvl/celerytalk
312de04ea24bb073357684a3a35cfd782b2b7aae
[ "MIT" ]
null
null
null
code/django18/django18/newsletter/forms.py
dvl/celerytalk
312de04ea24bb073357684a3a35cfd782b2b7aae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms class NewsletterForm(forms.Form): assunto = forms.CharField() mensagem = forms.CharField(widget=forms.Textarea)
19.363636
53
0.737089
119
0.558685
0
0
0
0
0
0
23
0.107981
469d18528989ab40a67eb477eeda37c2533ddfd8
5,448
py
Python
RecoEgamma/ElectronIdentification/python/Identification/mvaElectronID_Fall17_noIso_V1_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoEgamma/ElectronIdentification/python/Identification/mvaElectronID_Fall17_noIso_V1_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoEgamma/ElectronIdentification/python/Identification/mvaElectronID_Fall17_noIso_V1_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from RecoEgamma.ElectronIdentification.Identification.mvaElectronID_tools import * # Documentation of the MVA # https://twiki.cern.ch/twiki/bin/viewauth/CMS/MultivariateElectronIdentificationRun2 # https://rembserj.web.cern.ch/rembserj/notes/Electron_MVA_ID_2017_documentation ...
54.48
124
0.727423
0
0
0
0
0
0
0
0
3,794
0.696402
469d299beef21a4f12403e1476091e6f816d16ea
1,676
py
Python
dqn_plus/notebooks/code/train_ram.py
hadleyhzy34/reinforcement_learning
14371756c2ff8225dc800d146452b7956875410c
[ "MIT" ]
null
null
null
dqn_plus/notebooks/code/train_ram.py
hadleyhzy34/reinforcement_learning
14371756c2ff8225dc800d146452b7956875410c
[ "MIT" ]
null
null
null
dqn_plus/notebooks/code/train_ram.py
hadleyhzy34/reinforcement_learning
14371756c2ff8225dc800d146452b7956875410c
[ "MIT" ]
null
null
null
import numpy as np import gym from utils import * from agent import * from config import * def train(env, agent, num_episode, eps_init, eps_decay, eps_min, max_t): rewards_log = [] average_log = [] eps = eps_init for i in range(1, 1 + num_episode): episodic_reward = 0 done = False ...
33.52
150
0.613365
0
0
0
0
0
0
0
0
101
0.060263
469d44404e5e5089163e7fb2cbe8fd08587f00ec
4,274
py
Python
tools/parallel_launcher/parallel_launcher.py
Gitman1989/chromium
2b1cceae1075ef012fb225deec8b4c8bbe4bc897
[ "BSD-3-Clause" ]
2
2017-09-02T19:08:28.000Z
2021-11-15T15:15:14.000Z
tools/parallel_launcher/parallel_launcher.py
meego-tablet-ux/meego-app-browser
0f4ef17bd4b399c9c990a2f6ca939099495c2b9c
[ "BSD-3-Clause" ]
null
null
null
tools/parallel_launcher/parallel_launcher.py
meego-tablet-ux/meego-app-browser
0f4ef17bd4b399c9c990a2f6ca939099495c2b9c
[ "BSD-3-Clause" ]
1
2020-11-04T07:22:28.000Z
2020-11-04T07:22:28.000Z
#!/usr/bin/python # Copyright (c) 2010 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ This tool launches several shards of a gtest-based binary in parallel on a local machine. Example usage: parallel_launcher.py pat...
27.574194
78
0.656996
1,873
0.438231
0
0
0
0
0
0
1,315
0.307674
469e17c0eac34c546af54d506129856bf3802b70
83
py
Python
05_Practice1/Step06/yj.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
05_Practice1/Step06/yj.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
3
2020-11-04T05:38:53.000Z
2021-03-02T02:15:19.000Z
05_Practice1/Step06/yj.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
a = int(input()) for i in range(a): print('* '*(a-a//2)) print(' *'*(a//2))
20.75
24
0.433735
0
0
0
0
0
0
0
0
8
0.096386
469f11caff52684e1427825fdf274cfe729dc55b
231
py
Python
greydot/errors.py
TralahM/greydot-api
34982c34bf878b2728e934147ca4ea38a78523e4
[ "MIT" ]
null
null
null
greydot/errors.py
TralahM/greydot-api
34982c34bf878b2728e934147ca4ea38a78523e4
[ "MIT" ]
null
null
null
greydot/errors.py
TralahM/greydot-api
34982c34bf878b2728e934147ca4ea38a78523e4
[ "MIT" ]
null
null
null
class NoMessageRecipients(Exception): """ Raised when Message Recipients are not specified. """ pass class InvalidAmount(Exception): """ Raised when an invalid currency amount is specified """ pass
19.25
55
0.666667
228
0.987013
0
0
0
0
0
0
132
0.571429
469f233747542475f293cc21f8824a73074353c6
7,176
py
Python
ginga/util/dp.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
76
2015-01-05T14:46:14.000Z
2022-03-23T04:10:54.000Z
ginga/util/dp.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
858
2015-01-17T01:55:12.000Z
2022-03-08T20:20:31.000Z
ginga/util/dp.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
60
2015-01-14T21:59:07.000Z
2022-02-13T03:38:49.000Z
# # dp.py -- Data pipeline and reduction routines # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import numpy as np from collections import OrderedDict from ginga import AstroImage, colors from ginga.RGBImage import RGBImage from ginga.util import wcs ...
27.181818
72
0.593924
0
0
0
0
0
0
0
0
1,890
0.263378
469f5e5ed924f088a814fc16a98e14d55994cdf9
3,294
py
Python
jigsaw/datasets/datasets.py
alexvishnevskiy/jigsaw
7fc2c4cd3700a54e9c5cbc02870bf4057b0a9fe3
[ "MIT" ]
null
null
null
jigsaw/datasets/datasets.py
alexvishnevskiy/jigsaw
7fc2c4cd3700a54e9c5cbc02870bf4057b0a9fe3
[ "MIT" ]
null
null
null
jigsaw/datasets/datasets.py
alexvishnevskiy/jigsaw
7fc2c4cd3700a54e9c5cbc02870bf4057b0a9fe3
[ "MIT" ]
null
null
null
from torch.utils.data import Dataset from ..utils.optimal_lenght import find_optimal_lenght class PairedDataset(Dataset): def __init__( self, df, cfg, tokenizer, more_toxic_col='more_toxic', less_toxic_col='less_toxic' ): self.df = df se...
31.673077
70
0.532483
3,197
0.970553
0
0
0
0
0
0
241
0.073163
46a0c78276633a2a5a223df91b47b5f7924ae094
66
py
Python
packaging/pack1/andrew_mod1.py
AndreiHondrari/python_exploration
cb4ac0b92ddc48c322201ba31cd6e7c5ee6af06d
[ "MIT" ]
3
2019-05-04T12:19:09.000Z
2019-08-30T07:12:31.000Z
packaging/pack1/build/lib/mymod1.py
AndreiHondrari/python_exploration
cb4ac0b92ddc48c322201ba31cd6e7c5ee6af06d
[ "MIT" ]
null
null
null
packaging/pack1/build/lib/mymod1.py
AndreiHondrari/python_exploration
cb4ac0b92ddc48c322201ba31cd6e7c5ee6af06d
[ "MIT" ]
null
null
null
def something() -> None: print("Andrew says: `something`.")
13.2
38
0.606061
0
0
0
0
0
0
0
0
27
0.409091
46a1c447600050372f1c46ddc6ed6f7e8c87b183
117
py
Python
app/api/v2/views/blacklist.py
MaggieChege/STORE-MANAGER-API-V2
d8b2c7312304df627369721e8e1821cf724431d7
[ "MIT" ]
null
null
null
app/api/v2/views/blacklist.py
MaggieChege/STORE-MANAGER-API-V2
d8b2c7312304df627369721e8e1821cf724431d7
[ "MIT" ]
null
null
null
app/api/v2/views/blacklist.py
MaggieChege/STORE-MANAGER-API-V2
d8b2c7312304df627369721e8e1821cf724431d7
[ "MIT" ]
null
null
null
blacklist=set() def get_blacklist(): return blacklist def add_to_blacklist(jti): return blacklist.add(jti)
14.625
29
0.735043
0
0
0
0
0
0
0
0
0
0
46a2b9041cbdb5a67a2d23664c83d5328cdf8c09
260
py
Python
apps/tasks/api/views.py
dayvidemerson/django-rest-example
85eabb1e154cfd8ebc0019080b37cd3f1302c206
[ "MIT" ]
null
null
null
apps/tasks/api/views.py
dayvidemerson/django-rest-example
85eabb1e154cfd8ebc0019080b37cd3f1302c206
[ "MIT" ]
null
null
null
apps/tasks/api/views.py
dayvidemerson/django-rest-example
85eabb1e154cfd8ebc0019080b37cd3f1302c206
[ "MIT" ]
null
null
null
from rest_framework import viewsets from rest_framework import generics from ..models import Task from .serializers import TaskSerializer class TaskViewSet(viewsets.ModelViewSet): serializer_class = TaskSerializer queryset = Task.objects.all()
21.666667
41
0.796154
113
0.434615
0
0
0
0
0
0
0
0
46a39565f7364f7f1fb4b269da3328cdcc2b0021
97
py
Python
jarvis/__init__.py
jduncan8142/JARVIS
387003bc00cea2ca74d7094a92e55eab593a968a
[ "MIT" ]
null
null
null
jarvis/__init__.py
jduncan8142/JARVIS
387003bc00cea2ca74d7094a92e55eab593a968a
[ "MIT" ]
null
null
null
jarvis/__init__.py
jduncan8142/JARVIS
387003bc00cea2ca74d7094a92e55eab593a968a
[ "MIT" ]
null
null
null
__version__ = "0.0.3" __author__ = "Jason Duncan" __support__ = "jason.matthew.duncan@gmail.com"
24.25
46
0.742268
0
0
0
0
0
0
0
0
53
0.546392
46a4d57f3c07a504c88eba6e3644cc933118a8c3
1,798
py
Python
src/figcli/test/cli/action.py
figtools/figgy-cli
88f4ccb8221ef9734f95b2637acfacc6e00983e7
[ "Apache-2.0" ]
36
2020-07-21T21:22:02.000Z
2021-10-20T06:55:47.000Z
src/figcli/test/cli/action.py
figtools/figgy-cli
88f4ccb8221ef9734f95b2637acfacc6e00983e7
[ "Apache-2.0" ]
2
2020-10-29T12:49:15.000Z
2021-04-29T01:12:05.000Z
src/figcli/test/cli/action.py
figtools/figgy-cli
88f4ccb8221ef9734f95b2637acfacc6e00983e7
[ "Apache-2.0" ]
null
null
null
from typing import Union, List import pexpect from figcli.utils.utils import Utils import sys class FiggyAction: """ Actions prevent cyclic dependencies, and are designed for leveraging FiggyCli for cleanup steps when running inside of tests. """ def __init__(self, command, extra_args=""): ...
34.576923
119
0.60178
1,700
0.945495
0
0
0
0
0
0
502
0.279199
46a4f53ed5b4a611b18a262f155eca68d71783fb
7,831
py
Python
test/python/test_elementwise_ops.py
avijit-chakroborty/ngraph-bridge
b691d57412a40582ea93c6e564d80c750b7f2e8e
[ "Apache-2.0" ]
142
2019-02-21T00:53:06.000Z
2022-03-11T07:46:28.000Z
test/python/test_elementwise_ops.py
tensorflow/ngraph
ea6422491ec75504e78a63db029e7f74ec3479a5
[ "Apache-2.0" ]
252
2019-03-11T19:27:59.000Z
2021-03-19T10:58:17.000Z
test/python/test_elementwise_ops.py
tensorflow/ngraph
ea6422491ec75504e78a63db029e7f74ec3479a5
[ "Apache-2.0" ]
65
2019-03-13T15:27:29.000Z
2021-07-16T07:09:16.000Z
# ============================================================================== # Copyright 2018-2020 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://ww...
47.75
80
0.477461
6,772
0.864768
0
0
6,221
0.794407
0
0
933
0.119142
46a58d19b627254c0cc57fea12f1310b8d2e7c37
7,453
py
Python
qc/slips.py
mfkiwl/UREGA-qc
989e6b59d4fa5259ce48daa6165bdab4e020ba49
[ "MIT" ]
null
null
null
qc/slips.py
mfkiwl/UREGA-qc
989e6b59d4fa5259ce48daa6165bdab4e020ba49
[ "MIT" ]
null
null
null
qc/slips.py
mfkiwl/UREGA-qc
989e6b59d4fa5259ce48daa6165bdab4e020ba49
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Lars Stenseng. @mail: lars@stenseng.net """ # from qc.__version__ import __version__ import georinex as gr import numpy as np from matplotlib.pyplot import figure, show import matplotlib.pyplot as plt obs = gr.load( 'tests/test_data/Rinex3/KLSQ00GRL_R_...
25.611684
79
0.570643
3,202
0.429626
0
0
0
0
0
0
3,246
0.435529
46a68217514e2d9ae5f9e06cbba236282798ed2c
8,610
py
Python
tests/test_utils.py
jga/goldfinchsong
638e166948944a7f027d03bcf8f7c14dc2f4b6f2
[ "MIT" ]
null
null
null
tests/test_utils.py
jga/goldfinchsong
638e166948944a7f027d03bcf8f7c14dc2f4b6f2
[ "MIT" ]
null
null
null
tests/test_utils.py
jga/goldfinchsong
638e166948944a7f027d03bcf8f7c14dc2f4b6f2
[ "MIT" ]
null
null
null
from collections import OrderedDict from datetime import datetime, timezone import unittest from os.path import join from tinydb import TinyDB, storages from goldfinchsong import utils IMAGE_NAMES = ['goldfinch1.jpg', 'goldfinch2.jpg', 'goldfinch3.jpg', 'goldfinch4.jpg', 'goldfinch5.jpg'] TEST_TEXT1 = ...
40.046512
121
0.616609
7,911
0.918815
0
0
0
0
0
0
2,321
0.26957
46a6977e7b919a1d64a9944a2e191bffb62c293c
2,868
py
Python
lingvo/tasks/image/input_generator.py
allenwang28/lingvo
26d3d6672d3f46d8f281c2aa9f57166ef6296738
[ "Apache-2.0" ]
2,611
2018-10-16T20:14:10.000Z
2022-03-31T14:48:41.000Z
lingvo/tasks/image/input_generator.py
allenwang28/lingvo
26d3d6672d3f46d8f281c2aa9f57166ef6296738
[ "Apache-2.0" ]
249
2018-10-27T06:02:29.000Z
2022-03-30T18:00:39.000Z
lingvo/tasks/image/input_generator.py
allenwang28/lingvo
26d3d6672d3f46d8f281c2aa9f57166ef6296738
[ "Apache-2.0" ]
436
2018-10-25T05:31:45.000Z
2022-03-31T07:26:03.000Z
# Lint as: python3 # Copyright 2018 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 ...
27.84466
80
0.639121
1,031
0.359484
0
0
607
0.211646
0
0
995
0.346932
46a69a58e97c1c80acfb7499d4de7c5a7c1ed4bb
875
py
Python
src/solutions/part1/q389_find_diff.py
hychrisli/PyAlgorithms
71e537180f3b371d0d2cc47b11cb68ec13a8ac68
[ "Apache-2.0" ]
null
null
null
src/solutions/part1/q389_find_diff.py
hychrisli/PyAlgorithms
71e537180f3b371d0d2cc47b11cb68ec13a8ac68
[ "Apache-2.0" ]
null
null
null
src/solutions/part1/q389_find_diff.py
hychrisli/PyAlgorithms
71e537180f3b371d0d2cc47b11cb68ec13a8ac68
[ "Apache-2.0" ]
null
null
null
from src.base.solution import Solution from src.tests.part1.q389_test_find_diff import FindDiffTestCases class FindDiff(Solution): def verify_output(self, test_output, output): return test_output[0] == output[0] def run_test(self, input): return self.findTheDifference(input[0], input[1]) ...
24.305556
65
0.580571
689
0.787429
0
0
0
0
0
0
87
0.099429
46aa55bc676b909ffd23d501d1007af51f171f16
293
py
Python
mydict.py
zengboming/python
13018f476554adc3bff831af27c08f7c216d4b09
[ "Apache-2.0" ]
null
null
null
mydict.py
zengboming/python
13018f476554adc3bff831af27c08f7c216d4b09
[ "Apache-2.0" ]
null
null
null
mydict.py
zengboming/python
13018f476554adc3bff831af27c08f7c216d4b09
[ "Apache-2.0" ]
null
null
null
#unit #mydict.py class Dict(dict): def __init__(self,**kw): super(Dict,self).__init__(**kw) def __getattr__(self,key): try: return self[key] except KeyError: raise AttributeError(r"'Dict' object han no attribute'%s'" %key) def __setattr__(self,key,value): self[key]=value
19.533333
67
0.68942
271
0.924915
0
0
0
0
0
0
52
0.177474
46ab99e6eb8d1fdb04330410131bcc8d1d609369
19,623
py
Python
copy_annotations/conflict.py
abhinav-kumar-thakur/TabularCellTypeClassification
844029ee59867c41acfa75c8ce12db6713c9960c
[ "MIT" ]
19
2019-06-06T18:23:29.000Z
2022-01-06T15:30:20.000Z
copy_annotations/conflict.py
abhinav-kumar-thakur/TabularCellTypeClassification
844029ee59867c41acfa75c8ce12db6713c9960c
[ "MIT" ]
524
2019-07-01T19:18:39.000Z
2022-02-13T19:33:02.000Z
copy_annotations/conflict.py
abhinav-kumar-thakur/TabularCellTypeClassification
844029ee59867c41acfa75c8ce12db6713c9960c
[ "MIT" ]
18
2019-06-06T18:23:07.000Z
2021-07-15T06:01:17.000Z
import contextlib import os import tempfile import warnings from enum import Enum import mip class IISFinderAlgorithm(Enum): DELETION_FILTER = 1 ADDITIVE_ALGORITHM = 2 class SubRelaxationInfeasible(Exception): pass class NonRelaxableModel(Exception): pass class ConflictFinder: """This class...
42.109442
169
0.587983
19,235
0.980227
250
0.01274
5,318
0.271009
0
0
6,193
0.315599
46abd7d33dffc8675b1cbcb1f61d7140668df589
249
py
Python
output/models/nist_data/atomic/integer/schema_instance/nistschema_sv_iv_atomic_integer_pattern_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/integer/schema_instance/nistschema_sv_iv_atomic_integer_pattern_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/integer/schema_instance/nistschema_sv_iv_atomic_integer_pattern_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.atomic.integer.schema_instance.nistschema_sv_iv_atomic_integer_pattern_1_xsd.nistschema_sv_iv_atomic_integer_pattern_1 import NistschemaSvIvAtomicIntegerPattern1 __all__ = [ "NistschemaSvIvAtomicIntegerPattern1", ]
41.5
190
0.891566
0
0
0
0
0
0
0
0
37
0.148594
46ad0929668e5c287bd02c9734950a08fc91328e
3,919
py
Python
Dietscheduler/lib/menu_converter.py
floromaer/DietScheduler
48403f13dbcaa7981f252361819f06435a75333b
[ "MIT" ]
null
null
null
Dietscheduler/lib/menu_converter.py
floromaer/DietScheduler
48403f13dbcaa7981f252361819f06435a75333b
[ "MIT" ]
null
null
null
Dietscheduler/lib/menu_converter.py
floromaer/DietScheduler
48403f13dbcaa7981f252361819f06435a75333b
[ "MIT" ]
null
null
null
import re import xlsxwriter def parse_menu_to_excel(filename,menu_dict,days_dict,results,goal_dict,food_database,reversed_ingredient_dict,grocery_dict): # making a temporary dict to map dates and columns in excel: temp_dates_dict = {} i=0 for key in days_dict.keys(): temp_dates_dict[day...
48.382716
446
0.63307
0
0
0
0
0
0
0
0
845
0.215616
46ad5a9032022b2051fa16df11181281b5f9eae8
1,256
py
Python
example_problems/tutorial/graph_connectivity/services/esempi/check_one_sol_server.py
romeorizzi/TAlight
2217f8790820d8ec7ab076c836b2d182877d8ee8
[ "MIT" ]
3
2021-01-08T09:56:46.000Z
2021-03-02T20:47:29.000Z
example_problems/tutorial/graph_connectivity/services/esempi/check_one_sol_server.py
romeorizzi/TAlight
2217f8790820d8ec7ab076c836b2d182877d8ee8
[ "MIT" ]
1
2021-01-23T06:50:31.000Z
2021-03-17T15:35:18.000Z
example_problems/tutorial/graph_connectivity/services/esempi/check_one_sol_server.py
romeorizzi/TAlight
2217f8790820d8ec7ab076c836b2d182877d8ee8
[ "MIT" ]
4
2021-01-06T12:10:23.000Z
2021-03-16T22:16:07.000Z
#!/usr/bin/env python3 from sys import stderr, exit from TALinputs import TALinput from multilanguage import Env, Lang, TALcolors from parentheses_lib import recognize # METADATA OF THIS TAL_SERVICE: problem="parentheses" service="check_one_sol_server" args_list = [ ('input_formula',str), ('n',s...
29.904762
162
0.65207
0
0
0
0
0
0
0
0
469
0.373408
46ad743d904b177a6882bac14c8a5ed867753ee6
2,436
py
Python
app/validation/translator.py
codingedward/book-a-meal-api
36756abc225bf7e8306330f2c3e223dc32af7869
[ "MIT" ]
null
null
null
app/validation/translator.py
codingedward/book-a-meal-api
36756abc225bf7e8306330f2c3e223dc32af7869
[ "MIT" ]
null
null
null
app/validation/translator.py
codingedward/book-a-meal-api
36756abc225bf7e8306330f2c3e223dc32af7869
[ "MIT" ]
2
2018-10-01T17:45:19.000Z
2020-12-07T13:48:25.000Z
"""Translates validation error messages for the response""" messages = { 'accepted': 'The :field: must be accepted.', 'after': 'The :field: must be a date after :other:.', 'alpha': 'The :field: may contain only letters.', 'alpha_dash': 'The :field: may only contain letters, numbers, and dashes.', ...
47.764706
85
0.630542
0
0
0
0
0
0
0
0
1,961
0.805008
46af16319f2d029f582d103a8745545d6de7422c
333
py
Python
chat/main/consumers.py
mlambir/channels_talk_pyconar2016
82e54eb914fb005fcdebad1ed07cede898957733
[ "MIT" ]
12
2016-11-30T15:22:22.000Z
2018-02-27T23:03:12.000Z
chat/main/consumers.py
mlambir/channels_talk_pyconar2016
82e54eb914fb005fcdebad1ed07cede898957733
[ "MIT" ]
null
null
null
chat/main/consumers.py
mlambir/channels_talk_pyconar2016
82e54eb914fb005fcdebad1ed07cede898957733
[ "MIT" ]
null
null
null
from channels import Group # websocket.connect def ws_add(message): Group("chat").add(message.reply_channel) # websocket.receive def ws_message(message): Group("chat").send({ "text": message.content['text'], }) # websocket.disconnect def ws_disconnect(message): Group("chat").discard(message.r...
22.2
48
0.708709
0
0
0
0
0
0
0
0
90
0.27027
46af2004cde5fbac1f953e967f4311dafcb8c8e2
8,154
py
Python
env/enviroment.py
Dorebom/robot_pybullet
21e95864da28eb5553266513b1a1a735901395b6
[ "MIT" ]
null
null
null
env/enviroment.py
Dorebom/robot_pybullet
21e95864da28eb5553266513b1a1a735901395b6
[ "MIT" ]
null
null
null
env/enviroment.py
Dorebom/robot_pybullet
21e95864da28eb5553266513b1a1a735901395b6
[ "MIT" ]
null
null
null
from copy import deepcopy import numpy as np import pybullet as p import gym from gym import spaces from env.robot import Manipulator from env.work import Work class Env(): def __init__(self, reward, step_max_pos = 0.002, step_max_orn = 0.02, initial_pos_noise = 0.0...
38.828571
101
0.589159
8,102
0.980397
0
0
0
0
0
0
714
0.086399
46b07861f72e984eb2546daa1dab51801dd00b0a
1,820
py
Python
Thread/Threading.py
zxg110/PythonGrammer
7d07648c62e3d49123688c33d09fe4bb369cf852
[ "Apache-2.0" ]
null
null
null
Thread/Threading.py
zxg110/PythonGrammer
7d07648c62e3d49123688c33d09fe4bb369cf852
[ "Apache-2.0" ]
null
null
null
Thread/Threading.py
zxg110/PythonGrammer
7d07648c62e3d49123688c33d09fe4bb369cf852
[ "Apache-2.0" ]
null
null
null
import _thread import time import threading # # def print_time(threadName,delay): # count = 0; # while count < 5: # time.sleep(delay) # count += 1; # print("%s: %s" % (threadName, time.ctime(time.time()))) # # try: # _thread.start_new(print_time,("Thread-1",2,)) # _thread.start_n...
26
73
0.666484
365
0.142578
0
0
0
0
0
0
1,821
0.711328
46b1624f4a6a70026386fb13d4c9f4cd8b816721
492
py
Python
server/petsAPI/views.py
StoyanDimStoyanov/ReactDJango
8c30730fbd3af0064f97444a91e65a9029a1dc0f
[ "MIT" ]
null
null
null
server/petsAPI/views.py
StoyanDimStoyanov/ReactDJango
8c30730fbd3af0064f97444a91e65a9029a1dc0f
[ "MIT" ]
null
null
null
server/petsAPI/views.py
StoyanDimStoyanov/ReactDJango
8c30730fbd3af0064f97444a91e65a9029a1dc0f
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework import generics # Create your views here. from petsAPI.models import Pets from petsAPI.serializers import PetSerializer def index(req): return render(req, 'index.html') class PetsListApiView(generics.ListCreateAPIView): queryset = Pets.objects.all() ...
24.6
63
0.792683
255
0.518293
0
0
0
0
0
0
37
0.075203
46b234a2d05a51f6fb5809df7fa1df618dfd4547
2,153
py
Python
cluster_faces.py
sandhyalaxmiK/faces_clustering
e2da7e057ce5ec749e0c631f450e262f046b8e1d
[ "MIT" ]
null
null
null
cluster_faces.py
sandhyalaxmiK/faces_clustering
e2da7e057ce5ec749e0c631f450e262f046b8e1d
[ "MIT" ]
null
null
null
cluster_faces.py
sandhyalaxmiK/faces_clustering
e2da7e057ce5ec749e0c631f450e262f046b8e1d
[ "MIT" ]
null
null
null
import face_recognition import sys,os import re,cv2 def sorted_alphanumeric(data): convert = lambda text: int(text) if text.isdigit() else text.lower() alphanum_key = lambda key: [ convert(c) for c in re.split('([0-9]+)', key) ] return sorted(data, key=alphanum_key) input_dir_path=sys.argv[1] output_dir_p...
39.87037
142
0.75987
0
0
0
0
0
0
0
0
132
0.06131
46b37f4db1428d7e3e970e352faebde87a24d82f
7,329
py
Python
src/bbdata/endpoint/output/objects.py
big-building-data/bbdata-python
46335c9f8db9ceccbd795c4931db0e3041ba9a50
[ "MIT" ]
null
null
null
src/bbdata/endpoint/output/objects.py
big-building-data/bbdata-python
46335c9f8db9ceccbd795c4931db0e3041ba9a50
[ "MIT" ]
null
null
null
src/bbdata/endpoint/output/objects.py
big-building-data/bbdata-python
46335c9f8db9ceccbd795c4931db0e3041ba9a50
[ "MIT" ]
null
null
null
import requests from bbdata.config import output_api_url from bbdata.util import handle_response class Objects: base_path = "/objects" auth = None def __init__(self, auth): self.auth = auth def get_all(self, tags=None, search=None, page=None, per_page=None, writable=False): ...
33.619266
78
0.592714
7,229
0.986356
0
0
0
0
0
0
3,050
0.416155
46b3fea476ee5e207c6461dc2f22693adf1376cd
94
py
Python
python/tako/client/__init__.py
vyomkeshj/tako
d0906df5cdc0023ee955ad34d9eb4696b5ecec5e
[ "MIT" ]
null
null
null
python/tako/client/__init__.py
vyomkeshj/tako
d0906df5cdc0023ee955ad34d9eb4696b5ecec5e
[ "MIT" ]
null
null
null
python/tako/client/__init__.py
vyomkeshj/tako
d0906df5cdc0023ee955ad34d9eb4696b5ecec5e
[ "MIT" ]
null
null
null
from .exception import TakoException, TaskFailed # noqa from .session import connect # noqa
31.333333
56
0.787234
0
0
0
0
0
0
0
0
12
0.12766
46b430ceffc244986e1b0a3ab9f0c59e0b7629b0
5,533
py
Python
helpers/parser.py
yasahi-hpc/AMRNet
5858d464bdfe409a5ab50889104768dda3c70508
[ "MIT" ]
null
null
null
helpers/parser.py
yasahi-hpc/AMRNet
5858d464bdfe409a5ab50889104768dda3c70508
[ "MIT" ]
null
null
null
helpers/parser.py
yasahi-hpc/AMRNet
5858d464bdfe409a5ab50889104768dda3c70508
[ "MIT" ]
null
null
null
import argparse def parse(): parser = argparse.ArgumentParser(add_help=True) parser.add_argument('-data_dir', \ action='store', \ nargs='?', \ const=None, \ default='./dataset', \ type=str, \...
39.521429
74
0.325863
0
0
0
0
0
0
0
0
784
0.141695