hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
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
2
1.02M
avg_line_length
float64
1
417k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
1 class
is_sharp_comment_removed
bool
1 class
f741324487eae70eadbe239c0c4430cff4ac3a21
413
py
Python
server/fullstackChallenge/wsgi.py
thiagobrez/newsWebsite
130f01d29dd776eaa096080982274bb27d19ad8f
[ "MIT" ]
null
null
null
server/fullstackChallenge/wsgi.py
thiagobrez/newsWebsite
130f01d29dd776eaa096080982274bb27d19ad8f
[ "MIT" ]
7
2020-09-07T18:44:00.000Z
2022-02-10T19:05:41.000Z
server/fullstackChallenge/wsgi.py
thiagobrez/newsWebsite
130f01d29dd776eaa096080982274bb27d19ad8f
[ "MIT" ]
null
null
null
""" WSGI config for fullstackChallenge project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('D...
24.294118
78
0.79661
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'fullstackChallenge.settings') application = get_wsgi_application()
true
true
f74132a29f89965391c63f5009e8d00637873393
1,326
py
Python
efinance/bond/config.py
mpquant/efinance
d80406c2d9cb3d84f9d1ed792a2b574ee1692f6e
[ "MIT" ]
2
2021-08-15T09:56:07.000Z
2021-09-13T16:09:09.000Z
efinance/bond/config.py
pmlzzz/efinance
3ab373e609459580c8a462b6bfe580780c4c4908
[ "MIT" ]
null
null
null
efinance/bond/config.py
pmlzzz/efinance
3ab373e609459580c8a462b6bfe580780c4c4908
[ "MIT" ]
3
2021-08-11T13:26:01.000Z
2021-09-18T06:08:57.000Z
from pathlib import Path HERE = Path(__file__).parent # K 线表头 EASTMONEY_KLINE_FIELDS = { 'f51': '日期', 'f52': '开盘', 'f53': '收盘', 'f54': '最高', 'f55': '最低', 'f56': '成交量', 'f57': '成交额', 'f58': '振幅', 'f59': '涨跌幅', 'f60': '涨跌额', 'f61': '换手率', } # 请求头 EASTMONEY_REQUEST_HEADERS = { ...
22.474576
96
0.533183
from pathlib import Path HERE = Path(__file__).parent EASTMONEY_KLINE_FIELDS = { 'f51': '日期', 'f52': '开盘', 'f53': '收盘', 'f54': '最高', 'f55': '最低', 'f56': '成交量', 'f57': '成交额', 'f58': '振幅', 'f59': '涨跌幅', 'f60': '涨跌额', 'f61': '换手率', } EASTMONEY_REQUEST_HEADERS = { 'User-Ag...
true
true
f74132a4d2b275e2f4d96d890caf246e49d2fb62
10,023
py
Python
spektral/layers/convolutional/gat_conv.py
colliner/spektral
b776200fd1fa820f05b559f0c1c6265e0eca4894
[ "MIT" ]
null
null
null
spektral/layers/convolutional/gat_conv.py
colliner/spektral
b776200fd1fa820f05b559f0c1c6265e0eca4894
[ "MIT" ]
null
null
null
spektral/layers/convolutional/gat_conv.py
colliner/spektral
b776200fd1fa820f05b559f0c1c6265e0eca4894
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras import backend as K from tensorflow.keras import initializers, regularizers, constraints from tensorflow.keras.layers import Dropout from spektral.layers import ops from spektral.layers.convolutional.conv import Conv from spektral.layers.ops import modes class GATConv(Co...
40.092
92
0.625062
import tensorflow as tf from tensorflow.keras import backend as K from tensorflow.keras import initializers, regularizers, constraints from tensorflow.keras.layers import Dropout from spektral.layers import ops from spektral.layers.convolutional.conv import Conv from spektral.layers.ops import modes class GATConv(Co...
true
true
f7413388e8c069558219e983af62e4c003c68214
2,340
py
Python
Tests/test_clrload2.py
btddg28/ironpython
8006238c19d08db5db9bada39d765143e631059e
[ "Apache-2.0" ]
null
null
null
Tests/test_clrload2.py
btddg28/ironpython
8006238c19d08db5db9bada39d765143e631059e
[ "Apache-2.0" ]
null
null
null
Tests/test_clrload2.py
btddg28/ironpython
8006238c19d08db5db9bada39d765143e631059e
[ "Apache-2.0" ]
1
2019-09-18T05:37:46.000Z
2019-09-18T05:37:46.000Z
##################################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # # This source code is subject to terms and conditions of the Apache License, Version 2.0. A # copy of the license can be found in the License.html file at the root of th...
34.411765
101
0.605556
true
true
f74133e7aba4bf1a8913a53a97778f1bdd9e6601
10,227
py
Python
tensorflow_datasets/scripts/documentation/document_datasets.py
jvishnuvardhan/datasets
b8e38187058f1221e67c6291b3f29385ebb35fa2
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/scripts/documentation/document_datasets.py
jvishnuvardhan/datasets
b8e38187058f1221e67c6291b3f29385ebb35fa2
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/scripts/documentation/document_datasets.py
jvishnuvardhan/datasets
b8e38187058f1221e67c6291b3f29385ebb35fa2
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
32.26183
114
0.735406
import collections from concurrent import futures import dataclasses import functools from typing import Any, Dict, Iterator, List, Optional, Type from absl import logging import tensorflow as tf import tensorflow_datasets as tfds from tensorflow_datasets.scripts.documentation import dataset_markdown_b...
true
true
f741340ad3602cf9f8eb9eaf075bc9edd5cf5719
5,194
py
Python
rlpy/gradnet/samples/single_agent/tank_target_env.py
imandr/RLpy
f01cf7af47b6054e4e52d663ceafc463df6f6166
[ "BSD-3-Clause" ]
null
null
null
rlpy/gradnet/samples/single_agent/tank_target_env.py
imandr/RLpy
f01cf7af47b6054e4e52d663ceafc463df6f6166
[ "BSD-3-Clause" ]
null
null
null
rlpy/gradnet/samples/single_agent/tank_target_env.py
imandr/RLpy
f01cf7af47b6054e4e52d663ceafc463df6f6166
[ "BSD-3-Clause" ]
null
null
null
import random import numpy as np import math, time from gym import spaces from draw2d import Viewer, Frame, Line, Polygon, Circle, Text class TankTargetEnv(object): FireRange = 0.1 Speed = 0.02 RotSpeed = math.pi*2/50 Width = 0.01 TimeHorizon = 100 GasReward = 0.0 IdleReward = 0.0 ...
30.552941
120
0.507124
import random import numpy as np import math, time from gym import spaces from draw2d import Viewer, Frame, Line, Polygon, Circle, Text class TankTargetEnv(object): FireRange = 0.1 Speed = 0.02 RotSpeed = math.pi*2/50 Width = 0.01 TimeHorizon = 100 GasReward = 0.0 IdleReward = 0.0 ...
true
true
f741347e1a45aaccb758384ade1a12d063e93831
6,867
py
Python
bokeh/application/handlers/code.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
bokeh/application/handlers/code.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
242
2019-01-29T15:48:27.000Z
2022-03-31T22:09:21.000Z
bokeh/application/handlers/code.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
31
2019-03-10T09:51:27.000Z
2022-02-14T23:11:12.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
31.5
117
0.49352
from __future__ import absolute_import, division, print_function, unicode_literals import logging log = logging.getLogger(__name__) import os import sys from ...io.doc import set_curdoc, curdoc from .code_runner import CodeRunner from .handler import Handler __all__ = ( 'CodeHandler', ) ...
true
true
f7413718d83bd49324a666e6c439e369bf061f7e
783
py
Python
dynts/lib/fallback/maths.py
quantmind/dynts
21ac57c648bfec402fa6b1fe569496cf098fb5e8
[ "BSD-3-Clause" ]
57
2015-02-10T13:42:06.000Z
2022-03-28T14:48:36.000Z
dynts/lib/fallback/maths.py
quantmind/dynts
21ac57c648bfec402fa6b1fe569496cf098fb5e8
[ "BSD-3-Clause" ]
1
2016-11-01T07:43:05.000Z
2016-11-01T07:43:05.000Z
dynts/lib/fallback/maths.py
quantmind/dynts
21ac57c648bfec402fa6b1fe569496cf098fb5e8
[ "BSD-3-Clause" ]
17
2015-05-08T04:09:19.000Z
2021-08-02T19:24:52.000Z
def bindata(data, maxbins = 30, reduction = 0.1): ''' data must be numeric list with a len above 20 This function counts the number of data points in a reduced array ''' tole = 0.01 N = len(data) assert N > 20 vmin = min(data) vmax = max(data) DV = vmax - vmin tol = tole*DV vmax +=...
23.727273
65
0.532567
def bindata(data, maxbins = 30, reduction = 0.1): tole = 0.01 N = len(data) assert N > 20 vmin = min(data) vmax = max(data) DV = vmax - vmin tol = tole*DV vmax += tol if vmin >= 0: vmin -= tol vmin = max(0.0,vmin) else: vmin -= tol n = min(maxbins,ma...
true
true
f741371cb89b0dec926cf4c72edc8d82829f9ebd
3,049
py
Python
sdk/hybridkubernetes/azure-mgmt-hybridkubernetes/setup.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/hybridkubernetes/azure-mgmt-hybridkubernetes/setup.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/hybridkubernetes/azure-mgmt-hybridkubernetes/setup.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
33.505495
91
0.608068
import re import os.path from io import open from setuptools import find_packages, setup PACKAGE_NAME = "azure-mgmt-hybridkubernetes" PACKAGE_PPRINT_NAME = "HybridKubernetes Management" package_folder_path = PACKAGE_NAME.replace('-', '/') namespace_name = PACKAGE_NAME.replace('-', '.') try: import a...
true
true
f7413909ddf82204b8539d01f5a5db72be3a4813
684
py
Python
init.py
kdkvcm/Py_Snake_Game
96c7a6b7ca9175eb7ca719d0f7f99fca8d032171
[ "MIT" ]
null
null
null
init.py
kdkvcm/Py_Snake_Game
96c7a6b7ca9175eb7ca719d0f7f99fca8d032171
[ "MIT" ]
null
null
null
init.py
kdkvcm/Py_Snake_Game
96c7a6b7ca9175eb7ca719d0f7f99fca8d032171
[ "MIT" ]
null
null
null
# Import import cv2 import sys import random import numpy as np # Globals WIDTH = 600 # Display Resolution Width HEIGHT = 600 # Display Resolution Height UNIT_BLOCK = 20 # Grid Size PAUSE_TIME = 250 # Initial Pause Time MIN_TIME = 125 # Minimum Wait Time INC_LEVEL = 5 # Increment Level SNAKE_LENGTH = 1...
22.8
87
0.672515
import cv2 import sys import random import numpy as np WIDTH = 600 HEIGHT = 600 UNIT_BLOCK = 20 PAUSE_TIME = 250 MIN_TIME = 125 INC_LEVEL = 5 SNAKE_LENGTH = 10 EXIT_KEY = 27 AI_MODE = 1 GREEN = (0, 255, 0) RED = (0, 0, 255) LEFT = -1 UP = -2 RIGHT = 1 DOWN = 2 gri...
true
true
f7413926e8a69c8e6e3712759fd5c8cd20cd4176
2,261
py
Python
Python/empire/deprecated_stuff/structs2/read_only_struct.py
Tombmyst/Empire
f28782787c5fa9127e353549b73ec90d3c82c003
[ "Apache-2.0" ]
null
null
null
Python/empire/deprecated_stuff/structs2/read_only_struct.py
Tombmyst/Empire
f28782787c5fa9127e353549b73ec90d3c82c003
[ "Apache-2.0" ]
null
null
null
Python/empire/deprecated_stuff/structs2/read_only_struct.py
Tombmyst/Empire
f28782787c5fa9127e353549b73ec90d3c82c003
[ "Apache-2.0" ]
null
null
null
from empire.python.typings import * from empire.deprecated_stuff.structs2.struct_base import StructBase from empire.deprecated_stuff.structs2.struct_util import StringifierFormatter class ReadOnlyStruct(StructBase): # NOTE: to exclude struct attributes to be used by these functions (and other functions fr...
34.257576
118
0.541353
from empire.python.typings import * from empire.deprecated_stuff.structs2.struct_base import StructBase from empire.deprecated_stuff.structs2.struct_util import StringifierFormatter class ReadOnlyStruct(StructBase): def __str__(self) -> str: s: str = '' for attr in self.__dict_...
true
true
f74139b71739a99340342975b3fbbeeb399f8d1d
3,800
py
Python
applications/nightly_build/test_lsgan.py
Abrahamma97/keras-onnx
c82bc151843baa8ddb0af3c2997dfab9144e10bc
[ "MIT" ]
1
2021-05-04T15:58:37.000Z
2021-05-04T15:58:37.000Z
applications/nightly_build/test_lsgan.py
souptc/keras-onnx
c08d52bf4d4ec2bba69ec4ffd2ea14f47fecb1f5
[ "MIT" ]
null
null
null
applications/nightly_build/test_lsgan.py
souptc/keras-onnx
c08d52bf4d4ec2bba69ec4ffd2ea14f47fecb1f5
[ "MIT" ]
null
null
null
############################################################################### # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. ############################################################################### imp...
31.404959
107
0.652895
true
true
f74139ee879327bafaa67c26de9ed2ff98cb5288
5,900
py
Python
accelbyte_py_sdk/api/dsm_controller/operations/admin/count_server.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/dsm_controller/operations/admin/count_server.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
accelbyte_py_sdk/api/dsm_controller/operations/admin/count_server.py
encyphered/accelbyte-python-sdk
09c1e989d7251de308150fdcd3119d662ca2d205
[ "MIT" ]
null
null
null
# Auto-generated at 2021-09-27T17:01:22.744049+08:00 # from: Justice DsmController Service (2.4.0) # Copyright (c) 2018 - 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # pylint: disable=duplicate-code ...
27.314815
150
0.639492
from __future__ import annotations from typing import Any, Dict, List, Optional, Tuple, Union from .....core import Operation from .....core import HttpResponse from ...models import ModelsCountServerResponse from ...models import ResponseError class CountServer(Operation): _url: str...
true
true
f7413a62419546bd93d9b6fbab4c72a58151daa5
2,786
py
Python
test/unit/test_state_store.py
isabella232/addonfactory-cloudconnect-library
ba01a5492e0d6f185954f6906b4f506325838fa4
[ "Apache-2.0" ]
null
null
null
test/unit/test_state_store.py
isabella232/addonfactory-cloudconnect-library
ba01a5492e0d6f185954f6906b4f506325838fa4
[ "Apache-2.0" ]
null
null
null
test/unit/test_state_store.py
isabella232/addonfactory-cloudconnect-library
ba01a5492e0d6f185954f6906b4f506325838fa4
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
30.282609
74
0.703877
import os import os.path as op from contextlib import contextmanager from splunktalib import state_store @contextmanager def ignored(*exceptions): try: yield except exceptions: pass def _clean_up(checkpoint_dir, filename): with ignored(OSError): os.remove(op.join(...
true
true
f7413ac9bbb0b16e0d5d14f0733e4e7b84723717
33,811
py
Python
src/VisitorCodeGenerator.py
arminnh/c-to-p-compilers
2c649e1d3643471bac681c2656c1c7d6249be4d7
[ "MIT" ]
1
2021-04-29T06:40:54.000Z
2021-04-29T06:40:54.000Z
src/VisitorCodeGenerator.py
arminnh/ba3-c-to-p-compiler
2c649e1d3643471bac681c2656c1c7d6249be4d7
[ "MIT" ]
null
null
null
src/VisitorCodeGenerator.py
arminnh/ba3-c-to-p-compiler
2c649e1d3643471bac681c2656c1c7d6249be4d7
[ "MIT" ]
1
2017-01-30T19:19:31.000Z
2017-01-30T19:19:31.000Z
from antlr4 import * from AbstractSyntaxTree import * from Visitor import * from TypeInfo import TYPES import copy class VisitorCodeGenerator(Visitor): def __init__(self, symbolTable, outFile="out.p"): self.symbolTable = symbolTable self.current = 0 self._lvalue = [] self.backLabel...
41.793572
190
0.555263
from antlr4 import * from AbstractSyntaxTree import * from Visitor import * from TypeInfo import TYPES import copy class VisitorCodeGenerator(Visitor): def __init__(self, symbolTable, outFile="out.p"): self.symbolTable = symbolTable self.current = 0 self._lvalue = [] self.backLabel...
true
true
f7413cad998ad9d577892901f5129176075a725b
9,047
py
Python
nova/tests/api/openstack/compute/contrib/test_attach_interfaces.py
NetApp/nova
ca490d48a762a423449c654d5a7caeadecf2f6ca
[ "Apache-2.0" ]
2
2015-11-05T04:52:34.000Z
2016-03-07T03:00:06.000Z
nova/tests/api/openstack/compute/contrib/test_attach_interfaces.py
NetApp/nova
ca490d48a762a423449c654d5a7caeadecf2f6ca
[ "Apache-2.0" ]
1
2018-01-19T07:50:49.000Z
2018-01-19T07:50:49.000Z
nova/tests/api/openstack/compute/contrib/test_attach_interfaces.py
NetApp/nova
ca490d48a762a423449c654d5a7caeadecf2f6ca
[ "Apache-2.0" ]
1
2020-07-24T07:32:11.000Z
2020-07-24T07:32:11.000Z
# Copyright 2012 SINA Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
36.776423
79
0.632033
from oslo.config import cfg from nova.api.openstack.compute.contrib import attach_interfaces from nova.compute import api as compute_api from nova import context from nova import exception from nova.network import api as network_api from nova.openstack.common import jsonutils from nova import test impo...
true
true
f7413d50fcb069015cbedf65363329f96bbb6651
998
py
Python
envelope/settings.py
ikresoft/django-envelope
44fe0d6373b23acc011b1da4f563c48a2eb5ae53
[ "MIT" ]
null
null
null
envelope/settings.py
ikresoft/django-envelope
44fe0d6373b23acc011b1da4f563c48a2eb5ae53
[ "MIT" ]
null
null
null
envelope/settings.py
ikresoft/django-envelope
44fe0d6373b23acc011b1da4f563c48a2eb5ae53
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals """ Defaults and overrides for envelope-related settings. """ from django.conf import settings from django.utils.translation import ugettext_lazy as _ DEFAULT_CONTACT_CHOICES = ( ('', _("Choose")), (10, _("A general question regarding the webs...
29.352941
83
0.708417
from __future__ import unicode_literals from django.conf import settings from django.utils.translation import ugettext_lazy as _ DEFAULT_CONTACT_CHOICES = ( ('', _("Choose")), (10, _("A general question regarding the website")), (None, _("Other")), ) FROM_EMAIL = settings.DEFAULT_FROM_EMAIL CONTACT_...
true
true
f7413d9cd8a6f553087b4fc0c75e19f3cf3e0b2b
360
py
Python
UnfoldUtils/__init__.py
sahenry11/CC-NuE-XSec
56d59197718f2c18ab8c02fe34ad6e81cb994366
[ "MIT" ]
null
null
null
UnfoldUtils/__init__.py
sahenry11/CC-NuE-XSec
56d59197718f2c18ab8c02fe34ad6e81cb994366
[ "MIT" ]
null
null
null
UnfoldUtils/__init__.py
sahenry11/CC-NuE-XSec
56d59197718f2c18ab8c02fe34ad6e81cb994366
[ "MIT" ]
null
null
null
# This file, and the fact that the other files here are in the subdirectory UnfoldUtils, # exist only so that the line 'import UnfoldUtils' will work in other packages. # # See http://docs.python.org/2/tutorial/modules.html#packages if you're curious # how this works. # load the C++ objects and bind them into the name...
40
88
0.766667
the C++ objects and bind them into the namespace. from . import LoadUnfoldUtilsLib
true
true
f7413fceb35b27eae12028c97c9e79144f03574b
130,914
py
Python
OmniMarkupLib/Renderers/libs/pygments/lexers/_lasso_builtins.py
henumohe/OmniMarkupPreviewer
a15382a8309fe04f2c515151c00c074ab9c0d1ab
[ "MIT" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
OmniMarkupLib/Renderers/libs/pygments/lexers/_lasso_builtins.py
henumohe/OmniMarkupPreviewer
a15382a8309fe04f2c515151c00c074ab9c0d1ab
[ "MIT" ]
82
2015-01-15T12:30:43.000Z
2022-01-06T02:56:53.000Z
OmniMarkupLib/Renderers/libs/pygments/lexers/_lasso_builtins.py
henumohe/OmniMarkupPreviewer
a15382a8309fe04f2c515151c00c074ab9c0d1ab
[ "MIT" ]
99
2015-01-14T19:53:45.000Z
2021-08-11T15:17:26.000Z
# -*- coding: utf-8 -*- """ pygments.lexers._lasso_builtins ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Built-in Lasso types, traits, methods, and members. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ BUILTINS = { 'Types': ( 'null'...
25.258345
70
0.525712
BUILTINS = { 'Types': ( 'null', 'void', 'tag', 'trait', 'integer', 'decimal', 'boolean', 'capture', 'string', 'bytes', 'keyword', 'custom', 'staticarray', 'signature', 'memberstream', 'd...
true
true
f74142486a021f3aec23c70a9d47efa01e56f46c
1,719
py
Python
index/urls.py
Edwardhgj/meiduo
38796f5caf54676eb5620f50ade5474ee8700ad8
[ "MIT" ]
null
null
null
index/urls.py
Edwardhgj/meiduo
38796f5caf54676eb5620f50ade5474ee8700ad8
[ "MIT" ]
6
2020-06-05T23:02:49.000Z
2022-02-11T03:43:22.000Z
index/urls.py
Edwardhgj/meiduo
38796f5caf54676eb5620f50ade5474ee8700ad8
[ "MIT" ]
null
null
null
"""day01 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based v...
37.369565
77
0.706225
from django.contrib import admin from django.urls import path,include,re_path from index import views from rest_framework_jwt.views import obtain_jwt_token from rest_framework_jwt.settings import api_settings from index.pay import page1,PaGe urlpatterns = [ path('GetCateGoods/', views.GetCateGoods.as_view()),...
true
true
f74142904c93ed9fd2fa1a26d434228f20ff9a21
10,577
py
Python
test/unit/test_attention.py
Izecson/sockeye-1.16.6
f84044d4a64b2bcf744ccd4f94b16f8133d1f383
[ "Apache-2.0" ]
null
null
null
test/unit/test_attention.py
Izecson/sockeye-1.16.6
f84044d4a64b2bcf744ccd4f94b16f8133d1f383
[ "Apache-2.0" ]
null
null
null
test/unit/test_attention.py
Izecson/sockeye-1.16.6
f84044d4a64b2bcf744ccd4f94b16f8133d1f383
[ "Apache-2.0" ]
1
2021-07-19T09:12:56.000Z
2021-07-19T09:12:56.000Z
# Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License # is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file ac...
52.361386
119
0.629668
import mxnet as mx import numpy as np import pytest import sockeye.constants as C import sockeye.coverage import sockeye.rnn_attention from test.common import gaussian_vector, integer_vector attention_types = [C.ATT_BILINEAR, C.ATT_DOT, C.ATT_DOT_SCALED, C.ATT_LOC, C.ATT_MLP] @pytest.mark.parametrize("...
true
true
f74142993933802ce477fc41a013d2f797ba4683
15,541
py
Python
accenv/bin/pildriver.py
adamshamsudeen/clubdin-dj
eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a
[ "MIT" ]
null
null
null
accenv/bin/pildriver.py
adamshamsudeen/clubdin-dj
eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a
[ "MIT" ]
null
null
null
accenv/bin/pildriver.py
adamshamsudeen/clubdin-dj
eb48c67dab3a4ae7c4032544eb4d64e0b1d7e15a
[ "MIT" ]
null
null
null
#!/home/adam/django/Accountant/accenv/bin/python3 """PILdriver, an image-processing calculator using PIL. An instance of class PILDriver is essentially a software stack machine (Polish-notation interpreter) for sequencing PIL image transformations. The state of the instance is the interpreter stack. The only method ...
29.489564
79
0.591596
# 2. Add PILDraw operations. # 3. Add support for composing and decomposing multiple-image files. # from __future__ import print_function from PIL import Image class PILDriver(object): verbose = 0 def do_verbose(self): self.verbose = int(self.do_pop()) # The evaluation stack (internal o...
true
true
f74143a3cceec36ae5fcf89b679327c112e12e40
6,121
py
Python
lldb/test/API/tools/lldb-server/TestGdbRemoteExpeditedRegisters.py
rarutyun/llvm
76fa6b3bcade074bdedef740001c4528e1aa08a8
[ "Apache-2.0" ]
305
2019-09-14T17:16:05.000Z
2022-03-31T15:05:20.000Z
lldb/test/API/tools/lldb-server/TestGdbRemoteExpeditedRegisters.py
rarutyun/llvm
76fa6b3bcade074bdedef740001c4528e1aa08a8
[ "Apache-2.0" ]
11
2019-10-17T21:11:52.000Z
2022-02-17T20:10:00.000Z
lldb/test/API/tools/lldb-server/TestGdbRemoteExpeditedRegisters.py
rarutyun/llvm
76fa6b3bcade074bdedef740001c4528e1aa08a8
[ "Apache-2.0" ]
24
2019-10-03T11:22:11.000Z
2022-01-25T09:59:30.000Z
import gdbremote_testcase from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class TestGdbRemoteExpeditedRegisters( gdbremote_testcase.GdbRemoteTestCaseBase): mydir = TestBase.compute_mydir(__file__) @skipIfDarwinEmbedded # <rdar://proble...
38.25625
106
0.701029
import gdbremote_testcase from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class TestGdbRemoteExpeditedRegisters( gdbremote_testcase.GdbRemoteTestCaseBase): mydir = TestBase.compute_mydir(__file__) @skipIfDarwinEmbedded def gather...
true
true
f74143f83cc071ba5ba4f06f838c65ce7f89f1b7
1,124
py
Python
kubernetes_asyncio/test/test_v2beta2_horizontal_pod_autoscaler_list.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_v2beta2_horizontal_pod_autoscaler_list.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_v2beta2_horizontal_pod_autoscaler_list.py
PidgeyBE/kubernetes_asyncio
14d15dc309890253c26b6274a022e84441e05217
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.13.5 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import kube...
28.1
140
0.764235
from __future__ import absolute_import import unittest import kubernetes_asyncio.client from kubernetes_asyncio.client.models.v2beta2_horizontal_pod_autoscaler_list import V2beta2HorizontalPodAutoscalerList from kubernetes_asyncio.client.rest import ApiException class TestV2beta2HorizontalPodAutoscalerList(un...
true
true
f741443a0b3a9e0b1dcff564bc561c597a383c55
431
py
Python
challenges/hashmap_left_join/hashmap_left_join/linked_list.py
odai1990/data-structures-and-algorithms
fde43d7bdb241f6ef8de7018edab7e741b65cf77
[ "MIT" ]
null
null
null
challenges/hashmap_left_join/hashmap_left_join/linked_list.py
odai1990/data-structures-and-algorithms
fde43d7bdb241f6ef8de7018edab7e741b65cf77
[ "MIT" ]
1
2021-06-13T19:18:34.000Z
2021-06-13T19:18:34.000Z
challenges/hashmap_left_join/hashmap_left_join/linked_list.py
odai1990/data-structures-and-algorithms
fde43d7bdb241f6ef8de7018edab7e741b65cf77
[ "MIT" ]
null
null
null
class Node: def __init__(self, data): self.data = data self.next = None class LinkedList: def __init__(self): self.head = None def add(self, data): node = Node(data) if not self.head: self.head = node else: current = self.hea...
19.590909
38
0.4942
class Node: def __init__(self, data): self.data = data self.next = None class LinkedList: def __init__(self): self.head = None def add(self, data): node = Node(data) if not self.head: self.head = node else: current = self.hea...
true
true
f74144937808320e06cfaf008e3a566de43064b1
17,811
py
Python
log_mito_bcl2/model_598.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito_bcl2/model_598.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_mito_bcl2/model_598.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', 'BaxA']) M...
92.284974
798
0.801022
from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', 'BaxA']) Monomer('Apop', ['C3pro', 'Xiap']) ...
true
true
f74144cb7c7f004c29c17f81a7c2654a3d1b4bbd
2,534
py
Python
home/utils.py
kd46/Toddler-care-website
ca6e1e53201b5d19d5e47b61c646d44a32db02ac
[ "MIT" ]
1
2021-07-23T06:45:38.000Z
2021-07-23T06:45:38.000Z
home/utils.py
krishdesai62/Toddler-care-website
0e2edc9b941d05792aa81e376912a5e502cb5fa5
[ "MIT" ]
null
null
null
home/utils.py
krishdesai62/Toddler-care-website
0e2edc9b941d05792aa81e376912a5e502cb5fa5
[ "MIT" ]
null
null
null
import json from . models import * def cookieCart(request): try: cart = json.loads(request.COOKIES['cart']) except: cart={} print('Cart:',cart) items=[] order = {'get_cart_total': 0, 'get_cart_items': 0,'shipping': False} cartItems = order['get_cart_items'] ...
26.957447
87
0.52131
import json from . models import * def cookieCart(request): try: cart = json.loads(request.COOKIES['cart']) except: cart={} print('Cart:',cart) items=[] order = {'get_cart_total': 0, 'get_cart_items': 0,'shipping': False} cartItems = order['get_cart_items'] ...
true
true
f74144ef612f5812df9cacf9768062368ab65dcf
673
py
Python
trilinear_cpp/setup.py
yileiCao/shareTheBest
ef62396a7884954dd6464d2dd78e232273e1060b
[ "MIT" ]
449
2020-07-08T07:58:44.000Z
2022-03-31T12:47:53.000Z
trilinear_cpp/setup.py
yileiCao/shareTheBest
ef62396a7884954dd6464d2dd78e232273e1060b
[ "MIT" ]
59
2020-09-27T12:30:54.000Z
2022-03-16T06:32:25.000Z
trilinear_cpp/setup.py
yileiCao/shareTheBest
ef62396a7884954dd6464d2dd78e232273e1060b
[ "MIT" ]
83
2020-09-27T09:16:27.000Z
2022-03-30T12:34:15.000Z
from setuptools import setup import torch from torch.utils.cpp_extension import BuildExtension, CUDAExtension, CppExtension if torch.cuda.is_available(): print('Including CUDA code.') setup( name='trilinear', ext_modules=[ CUDAExtension('trilinear', [ 'src/trilinear_...
29.26087
81
0.604755
from setuptools import setup import torch from torch.utils.cpp_extension import BuildExtension, CUDAExtension, CppExtension if torch.cuda.is_available(): print('Including CUDA code.') setup( name='trilinear', ext_modules=[ CUDAExtension('trilinear', [ 'src/trilinear_...
true
true
f74145539edf6853b0fccc22a988203e4fa5355d
1,782
py
Python
application/Tests/test_integration.py
AmirAR-QA/Project1
341e89c17b04c8f6a3528a4d013efb8acc70431f
[ "Unlicense" ]
null
null
null
application/Tests/test_integration.py
AmirAR-QA/Project1
341e89c17b04c8f6a3528a4d013efb8acc70431f
[ "Unlicense" ]
null
null
null
application/Tests/test_integration.py
AmirAR-QA/Project1
341e89c17b04c8f6a3528a4d013efb8acc70431f
[ "Unlicense" ]
null
null
null
from flask_testing import LiveServerTestCase from selenium import webdriver from urllib.request import urlopen from flask import url_for from application import app, db from application.models import Players, Items class TestBase(LiveServerTestCase): def create_app(self): app.config["SQLALCHEMY_DATABASE_...
34.941176
88
0.673962
from flask_testing import LiveServerTestCase from selenium import webdriver from urllib.request import urlopen from flask import url_for from application import app, db from application.models import Players, Items class TestBase(LiveServerTestCase): def create_app(self): app.config["SQLALCHEMY_DATABASE_...
true
true
f741462643c416e345b8001d8fb2a1cc7cb72549
3,177
py
Python
src/Driver.py
alexiskulash/ia-caucus-sentiment
7ea004a9efb98e44aefcc138241cc884dae5b5af
[ "MIT" ]
null
null
null
src/Driver.py
alexiskulash/ia-caucus-sentiment
7ea004a9efb98e44aefcc138241cc884dae5b5af
[ "MIT" ]
null
null
null
src/Driver.py
alexiskulash/ia-caucus-sentiment
7ea004a9efb98e44aefcc138241cc884dae5b5af
[ "MIT" ]
null
null
null
#Jenny Steffens from Analysis import * import random, time def main(): # This list and dictionary are now the default in the Analyzer. They # do not need to be entered in a driver. However, if the dictionary is updated, # either do so in Analysis.py or when initializing, set kD= name of new dicitonary # dic...
25.214286
115
0.667296
from Analysis import * import random, time def main(): keyword_list = ["HillaryClinton", "Hillary2016", "Hillary", "Lessig", "Lessig2016", "Lessig2016", "O'Malley", "OMalley2016", "MartinOMalley", "Bernie", "FeelTheBern", "Bernie2016", "Jeb", "JebBush", "Jeb2016", "Carson", "BC2DC16", "RealBenCar...
true
true
f741485414cc641acff25c5906e13b5eea01446c
4,887
py
Python
weibo/settings.py
Leu552/cxkspider
94fcc9bf5b82ca3d5772d2275ff8bda0be3e9230
[ "MIT" ]
null
null
null
weibo/settings.py
Leu552/cxkspider
94fcc9bf5b82ca3d5772d2275ff8bda0be3e9230
[ "MIT" ]
null
null
null
weibo/settings.py
Leu552/cxkspider
94fcc9bf5b82ca3d5772d2275ff8bda0be3e9230
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random from fake_useragent import UserAgent ua = UserAgent() PROXIES = ['http://116.209.54.2:9999', 'http://61.176.223.7:58822', 'http://183.148.146.206:9999', 'http://110.52.235.38:9999', 'http://110.52.235.44:9999', 'http://116.209.58.167:9999', ] # Scrapy settin...
44.834862
1,305
0.78494
import random from fake_useragent import UserAgent ua = UserAgent() PROXIES = ['http://116.209.54.2:9999', 'http://61.176.223.7:58822', 'http://183.148.146.206:9999', 'http://110.52.235.38:9999', 'http://110.52.235.44:9999', 'http://116.209.58.167:9999', ] BOT_NAME = 'weibo' SPIDER_MO...
true
true
f741486590bb0203e6d09f545940805d623d7c70
1,137
py
Python
scripts/model/bigram_svm/train_model.py
jfajkowski/stock-market-forecasting
6a0ae5a0cfe39263a0f448f062cd01283281a0d8
[ "MIT" ]
null
null
null
scripts/model/bigram_svm/train_model.py
jfajkowski/stock-market-forecasting
6a0ae5a0cfe39263a0f448f062cd01283281a0d8
[ "MIT" ]
null
null
null
scripts/model/bigram_svm/train_model.py
jfajkowski/stock-market-forecasting
6a0ae5a0cfe39263a0f448f062cd01283281a0d8
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer from sklearn.metrics import accuracy_score from sklearn.model_selection import train_test_split from sklearn.pipeline import Pipeline from sklearn.preprocessing import StandardScaler from sklearn.svm import SVC # %% Load ...
31.583333
94
0.740545
import pandas as pd from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer from sklearn.metrics import accuracy_score from sklearn.model_selection import train_test_split from sklearn.pipeline import Pipeline from sklearn.preprocessing import StandardScaler from sklearn.svm import SVC df = pd.r...
true
true
f74149ad7f8465e38dbde97a2066db1c4e45a4dc
443
py
Python
practice_problems/StaticLinkedList.py
smenon8/practice_scripts
2a07cb12c75bd9b5ee5140cbe38e23d92835a108
[ "MIT" ]
null
null
null
practice_problems/StaticLinkedList.py
smenon8/practice_scripts
2a07cb12c75bd9b5ee5140cbe38e23d92835a108
[ "MIT" ]
1
2017-02-13T20:48:06.000Z
2017-02-13T20:48:06.000Z
practice_problems/StaticLinkedList.py
smenon8/AlgDataStruct_practice
2a07cb12c75bd9b5ee5140cbe38e23d92835a108
[ "MIT" ]
null
null
null
# static linked list class StaticNode: def __init__(self,value): self.next = -1 self.value = value class StaticLinkedList: def __init__(self,numNodes): self.head = -2 self.array = [Node(-1)]*numNodes def push(self,node): if self.head == -2: self.head = 0 node.next = 1 else: cu...
22.15
38
0.613995
class StaticNode: def __init__(self,value): self.next = -1 self.value = value class StaticLinkedList: def __init__(self,numNodes): self.head = -2 self.array = [Node(-1)]*numNodes def push(self,node): if self.head == -2: self.head = 0 node.next = 1 else: curr = head while s...
true
true
f74149bcd9104fdda4c80e41865473e7ac09b1d3
13,253
py
Python
slm_lab/agent/algorithm/dqn.py
wilson1yan/SLM-Lab
1f110288d2d3dde1fb00d415aeb95ce554170813
[ "MIT" ]
null
null
null
slm_lab/agent/algorithm/dqn.py
wilson1yan/SLM-Lab
1f110288d2d3dde1fb00d415aeb95ce554170813
[ "MIT" ]
null
null
null
slm_lab/agent/algorithm/dqn.py
wilson1yan/SLM-Lab
1f110288d2d3dde1fb00d415aeb95ce554170813
[ "MIT" ]
null
null
null
from slm_lab.agent import net from slm_lab.agent.algorithm import policy_util from slm_lab.agent.algorithm.sarsa import SARSA from slm_lab.agent.net import net_util from slm_lab.lib import logger, util from slm_lab.lib.decorator import lab_api import numpy as np import pydash as ps import torch logger = logger.get_log...
43.029221
317
0.634422
from slm_lab.agent import net from slm_lab.agent.algorithm import policy_util from slm_lab.agent.algorithm.sarsa import SARSA from slm_lab.agent.net import net_util from slm_lab.lib import logger, util from slm_lab.lib.decorator import lab_api import numpy as np import pydash as ps import torch logger = logger.get_log...
true
true
f7414aeec9c1ee66ec6c7daf36e11a8a41cbdd96
382
py
Python
setup.py
richimus123/speed_reader
b824a765b5e2c51421046e960ce49f65a2063c35
[ "MIT" ]
null
null
null
setup.py
richimus123/speed_reader
b824a765b5e2c51421046e960ce49f65a2063c35
[ "MIT" ]
null
null
null
setup.py
richimus123/speed_reader
b824a765b5e2c51421046e960ce49f65a2063c35
[ "MIT" ]
null
null
null
"""Simple Cython package setup.""" from distutils.core import setup from Cython.Build import cythonize from distutils.extension import Extension source_files = [ 'lib.py', 'libc.pyx', 'libc.c', ] extensions = [Extension("lib", source_files)] setup( ext_modules=cythonize(extensions), version='0.0...
18.190476
45
0.691099
from distutils.core import setup from Cython.Build import cythonize from distutils.extension import Extension source_files = [ 'lib.py', 'libc.pyx', 'libc.c', ] extensions = [Extension("lib", source_files)] setup( ext_modules=cythonize(extensions), version='0.0.1', name='speed_reader', m...
true
true
f7414c013bbcd713b305fdfff5126e3376a8ed6d
1,196
py
Python
setup.py
jvzantvoort/pyarchive
9b580f52a27fed1533b7121917580a42fb0a7fc5
[ "MIT" ]
null
null
null
setup.py
jvzantvoort/pyarchive
9b580f52a27fed1533b7121917580a42fb0a7fc5
[ "MIT" ]
null
null
null
setup.py
jvzantvoort/pyarchive
9b580f52a27fed1533b7121917580a42fb0a7fc5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages import io import os import re setup_path = os.path.abspath(__file__) setup_path_dir = os.path.dirname(setup_path) exec(open(os.path.join(setup_path_dir, 'pyarchive', 'version.py')).read()) long_description = "coarse tool to mo...
28.47619
76
0.657191
from setuptools import setup, find_packages import io import os import re setup_path = os.path.abspath(__file__) setup_path_dir = os.path.dirname(setup_path) exec(open(os.path.join(setup_path_dir, 'pyarchive', 'version.py')).read()) long_description = "coarse tool to move targets to a type specific location" set...
true
true
f7414c5cdc14bcacced574c16ecc971fff2e715b
3,152
py
Python
gameplan2/settings.py
aneesahmed/gameplan2
7f7acd9c02c951ee1b25131334199d5a72073b66
[ "Apache-2.0" ]
null
null
null
gameplan2/settings.py
aneesahmed/gameplan2
7f7acd9c02c951ee1b25131334199d5a72073b66
[ "Apache-2.0" ]
null
null
null
gameplan2/settings.py
aneesahmed/gameplan2
7f7acd9c02c951ee1b25131334199d5a72073b66
[ "Apache-2.0" ]
null
null
null
""" Django settings for gameplan2 project. Generated by 'django-admin startproject' using Django 1.8.18. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build p...
25.626016
71
0.675444
import os import os.path Temp_Path = os.path.realpath('.') BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'by@l(i-g*1!7(e71@r0&3=gj+zrc!hzn#jw!chu+i=-*q#ufb(' DEBUG = True ALLOWED_HOSTS = [] # Application definitioScrumConfign INSTALLED_APPS = ( 'scrum.apps.ScrumC...
true
true
f7414d1afb1915675e1378731f5f561aaa716f72
5,252
py
Python
tornado_demo/web2py/applications/welcome/models/menu.py
ls-2018/tips
1f5f5195d7181b5dd4616db02166f7f92c97f1cd
[ "MIT" ]
2
2019-05-07T03:08:25.000Z
2020-05-22T10:10:00.000Z
tornado_demo/web2py/applications/welcome/models/menu.py
ls-2018/tips
1f5f5195d7181b5dd4616db02166f7f92c97f1cd
[ "MIT" ]
7
2020-05-22T13:29:42.000Z
2021-09-23T23:30:25.000Z
tornado_demo/web2py/applications/welcome/models/menu.py
ls-2018/py
1f5f5195d7181b5dd4616db02166f7f92c97f1cd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # this file is released under public domain and you can use without limitations # ---------------------------------------------------------------------------------------------------------------------- # this is the main application menu add/remove items as required # ---------------------------...
47.745455
120
0.454494
response.menu = [ (T('Home'), False, URL('default', 'index'), []) ] if not configuration.get('app.production'): _app = request.application response.menu += [ (T('My Sites'), False, URL('admin', 'default', 'site')), (T('This App'), False, '#', [ (T('Design'), False, UR...
true
true
f7414d5480215f4bc05605e00eed9715e971a84d
5,422
py
Python
homeassistant/components/nuki/lock.py
squirrel289/core
6c5bcbfc3ee40927458e9188d6b79bf63933d3f9
[ "Apache-2.0" ]
5
2020-09-17T21:47:23.000Z
2021-06-04T04:37:29.000Z
homeassistant/components/nuki/lock.py
squirrel289/core
6c5bcbfc3ee40927458e9188d6b79bf63933d3f9
[ "Apache-2.0" ]
47
2020-07-23T07:14:33.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/nuki/lock.py
squirrel289/core
6c5bcbfc3ee40927458e9188d6b79bf63933d3f9
[ "Apache-2.0" ]
2
2017-09-03T16:06:02.000Z
2021-01-12T15:07:52.000Z
"""Nuki.io lock platform.""" from abc import ABC, abstractmethod from datetime import timedelta import logging from pynuki import NukiBridge from requests.exceptions import RequestException import voluptuous as vol from homeassistant.components.lock import PLATFORM_SCHEMA, SUPPORT_OPEN, LockEntity from homeassistant....
27.663265
88
0.65474
from abc import ABC, abstractmethod from datetime import timedelta import logging from pynuki import NukiBridge from requests.exceptions import RequestException import voluptuous as vol from homeassistant.components.lock import PLATFORM_SCHEMA, SUPPORT_OPEN, LockEntity from homeassistant.const import ATTR_ENTITY_ID, ...
true
true
f7414e3f469f6d399018e369e8cc8df87c4996fc
11,287
py
Python
gorillabot/plugins/link.py
pep7/GorillaBot
b29ae1f05423494f7e122906efe24e9ffcd1421e
[ "MIT" ]
null
null
null
gorillabot/plugins/link.py
pep7/GorillaBot
b29ae1f05423494f7e122906efe24e9ffcd1421e
[ "MIT" ]
null
null
null
gorillabot/plugins/link.py
pep7/GorillaBot
b29ae1f05423494f7e122906efe24e9ffcd1421e
[ "MIT" ]
null
null
null
# Copyright (c) 2013-2016 Molly White # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software # and associated documentation files (the "Software"), to deal in the Software without # restriction, including without limitation the rights to use, copy, modify, merge, publish, # di...
44.437008
104
0.565341
from plugins.util import command, get_url from urllib.parse import quote from html import unescape from datetime import datetime import json import re @command() def link(m, urls=None, wikilinks=None): ...
true
true
f7414ecb804f0cb3833626c69c9c23845e729960
1,523
py
Python
examples/plotting/file/stocks.py
Connossor/bokeh
092e5dc0f62be13d87af5bf2b5a85ec57fd9f14e
[ "BSD-3-Clause" ]
1
2019-10-25T04:37:10.000Z
2019-10-25T04:37:10.000Z
examples/plotting/file/stocks.py
Connossor/bokeh
092e5dc0f62be13d87af5bf2b5a85ec57fd9f14e
[ "BSD-3-Clause" ]
2
2021-05-08T11:43:21.000Z
2021-05-10T19:16:43.000Z
examples/plotting/file/stocks.py
Connossor/bokeh
092e5dc0f62be13d87af5bf2b5a85ec57fd9f14e
[ "BSD-3-Clause" ]
1
2021-08-20T20:01:26.000Z
2021-08-20T20:01:26.000Z
import numpy as np from bokeh.layouts import gridplot from bokeh.plotting import figure, show, output_file from bokeh.sampledata.stocks import AAPL, GOOG, IBM, MSFT def datetime(x): return np.array(x, dtype=np.datetime64) p1 = figure(x_axis_type="datetime", title="Stock Closing Prices") p1.grid.grid_line_alpha=0...
34.613636
88
0.730138
import numpy as np from bokeh.layouts import gridplot from bokeh.plotting import figure, show, output_file from bokeh.sampledata.stocks import AAPL, GOOG, IBM, MSFT def datetime(x): return np.array(x, dtype=np.datetime64) p1 = figure(x_axis_type="datetime", title="Stock Closing Prices") p1.grid.grid_line_alpha=0...
true
true
f7414fecf292d21484a7fef187ae5df3f1fc1f95
1,238
py
Python
CTFd/utils/email/__init__.py
ramadistra/CTFd
f66b488a9991db1103311cdc91003f0558ca9253
[ "Apache-2.0" ]
2
2019-06-19T07:11:28.000Z
2019-06-21T05:30:07.000Z
CTFd/utils/email/__init__.py
ramadistra/CTFd
f66b488a9991db1103311cdc91003f0558ca9253
[ "Apache-2.0" ]
6
2019-01-26T15:06:07.000Z
2019-02-11T01:48:20.000Z
CTFd/utils/email/__init__.py
ramadistra/CTFd
f66b488a9991db1103311cdc91003f0558ca9253
[ "Apache-2.0" ]
1
2019-11-09T19:00:41.000Z
2019-11-09T19:00:41.000Z
from flask import current_app as app, url_for from CTFd.utils import get_config, get_app_config from CTFd.utils.config import get_mail_provider, mailserver from CTFd.utils.email import mailgun, smtp from CTFd.utils.security.signing import serialize import re EMAIL_REGEX = r"(^[^@\s]+@[^@\s]+\.[^@\s]+$)" def sendmai...
28.136364
116
0.698708
from flask import current_app as app, url_for from CTFd.utils import get_config, get_app_config from CTFd.utils.config import get_mail_provider, mailserver from CTFd.utils.email import mailgun, smtp from CTFd.utils.security.signing import serialize import re EMAIL_REGEX = r"(^[^@\s]+@[^@\s]+\.[^@\s]+$)" def sendmai...
true
true
f74151657fcfc156c25636f6a0e97633a571bb42
169
py
Python
Conteudo das Aulas/033/Exemplos/Exemplo 1.py
cerberus707/lab-python
ebba3c9cde873d70d4bb61084f79ce30b7f9e047
[ "Apache-2.0" ]
null
null
null
Conteudo das Aulas/033/Exemplos/Exemplo 1.py
cerberus707/lab-python
ebba3c9cde873d70d4bb61084f79ce30b7f9e047
[ "Apache-2.0" ]
null
null
null
Conteudo das Aulas/033/Exemplos/Exemplo 1.py
cerberus707/lab-python
ebba3c9cde873d70d4bb61084f79ce30b7f9e047
[ "Apache-2.0" ]
null
null
null
#1 - Função que retorna uma variável: """ Escreva uma função de potenciação """ def potência(base, exp): pot = base**exp return pot a = potência(2,3) print(a)
14.083333
37
0.656805
def potência(base, exp): pot = base**exp return pot a = potência(2,3) print(a)
true
true
f74151911ebe7f51b83eb41a6d7a1f442d287bba
10,274
py
Python
src/sdm_modbus/meter.py
nx6110a5100/sdm_modbus
faab945ae582b68e6246310bbf832f08455e4fc7
[ "MIT" ]
10
2020-06-30T14:28:01.000Z
2022-01-20T14:57:45.000Z
src/sdm_modbus/meter.py
nx6110a5100/sdm_modbus
faab945ae582b68e6246310bbf832f08455e4fc7
[ "MIT" ]
12
2020-07-04T14:24:04.000Z
2022-01-11T19:48:15.000Z
src/sdm_modbus/meter.py
nx6110a5100/sdm_modbus
faab945ae582b68e6246310bbf832f08455e4fc7
[ "MIT" ]
18
2020-06-27T07:01:43.000Z
2022-03-21T10:22:12.000Z
import enum import time from pymodbus.constants import Endian from pymodbus.client.sync import ModbusTcpClient from pymodbus.client.sync import ModbusSerialClient from pymodbus.payload import BinaryPayloadBuilder from pymodbus.payload import BinaryPayloadDecoder from pymodbus.register_read_message import ReadInputRegi...
31.612308
199
0.562293
import enum import time from pymodbus.constants import Endian from pymodbus.client.sync import ModbusTcpClient from pymodbus.client.sync import ModbusSerialClient from pymodbus.payload import BinaryPayloadBuilder from pymodbus.payload import BinaryPayloadDecoder from pymodbus.register_read_message import ReadInputRegi...
true
true
f74151ce1e3b927898173e541d389308137585c5
30,457
py
Python
pyapprox/optimization.py
samtx/pyapprox
c926d910e30fbcfed7d0621175d3b0268d59f852
[ "MIT" ]
null
null
null
pyapprox/optimization.py
samtx/pyapprox
c926d910e30fbcfed7d0621175d3b0268d59f852
[ "MIT" ]
null
null
null
pyapprox/optimization.py
samtx/pyapprox
c926d910e30fbcfed7d0621175d3b0268d59f852
[ "MIT" ]
null
null
null
import numpy as np from scipy.optimize import minimize, Bounds from functools import partial from scipy.stats import gaussian_kde as KDE from pyapprox.configure_plots import * import scipy.stats as ss from pyapprox.utilities import get_all_sample_combinations def approx_jacobian(func, x, *args, epsilon=np.sqrt(np.finf...
40.075
106
0.650786
import numpy as np from scipy.optimize import minimize, Bounds from functools import partial from scipy.stats import gaussian_kde as KDE from pyapprox.configure_plots import * import scipy.stats as ss from pyapprox.utilities import get_all_sample_combinations def approx_jacobian(func, x, *args, epsilon=np.sqrt(np.finf...
true
true
f74152160c9a622be3b83e89f20ac545c85f59b1
277
py
Python
junn-predict/junn_predict/__init__.py
modsim/junn
a40423b98c6a3739dd0b2ba02d546a5db91f9215
[ "BSD-2-Clause" ]
null
null
null
junn-predict/junn_predict/__init__.py
modsim/junn
a40423b98c6a3739dd0b2ba02d546a5db91f9215
[ "BSD-2-Clause" ]
null
null
null
junn-predict/junn_predict/__init__.py
modsim/junn
a40423b98c6a3739dd0b2ba02d546a5db91f9215
[ "BSD-2-Clause" ]
null
null
null
"""JUNN, the Jülich U-Net Neural Network Segmentation Toolkit - prediction module.""" __project__ = 'JUNN' __version__ = '1.0.0' __author__ = 'Christian C. Sachs' __copyright__ = '2021, Christian C. Sachs, Forschungszentrum Jülich GmbH' __citation__ = '' __banner__ = ''
19.785714
85
0.722022
__project__ = 'JUNN' __version__ = '1.0.0' __author__ = 'Christian C. Sachs' __copyright__ = '2021, Christian C. Sachs, Forschungszentrum Jülich GmbH' __citation__ = '' __banner__ = ''
true
true
f74153cdb64a1f213f0fce99d337c08a07e98068
6,771
py
Python
djmodels/db/models/manager.py
iMerica/dj-models
fbe4a55ac362f9355a2298f58aa0deb0b6082e19
[ "BSD-3-Clause" ]
5
2019-02-15T16:47:50.000Z
2021-12-26T18:52:23.000Z
djmodels/db/models/manager.py
iMerica/dj-models
fbe4a55ac362f9355a2298f58aa0deb0b6082e19
[ "BSD-3-Clause" ]
null
null
null
djmodels/db/models/manager.py
iMerica/dj-models
fbe4a55ac362f9355a2298f58aa0deb0b6082e19
[ "BSD-3-Clause" ]
2
2021-08-09T02:29:09.000Z
2021-08-20T03:30:11.000Z
import copy import inspect from importlib import import_module from djmodels.db import router from djmodels.db.models.query import QuerySet class BaseManager: # To retain order, track each time a Manager instance is created. creation_counter = 0 # Set to True for the 'objects' managers that are automati...
33.519802
93
0.593265
import copy import inspect from importlib import import_module from djmodels.db import router from djmodels.db.models.query import QuerySet class BaseManager: creation_counter = 0 auto_created = False use_in_migrations = False def __new__(cls, *args, **kwargs): ...
true
true
f74154377fbb1d5d917c303568d87f82cb1b6669
4,656
py
Python
alembic/env.py
notconfusing/CivilServant
f9c7a2cf4de4f6506e37b7c33a7e512b893069c3
[ "MIT" ]
17
2017-03-13T15:14:57.000Z
2020-01-07T19:12:49.000Z
alembic/env.py
notconfusing/CivilServant
f9c7a2cf4de4f6506e37b7c33a7e512b893069c3
[ "MIT" ]
32
2016-06-08T03:35:43.000Z
2016-11-30T18:50:49.000Z
alembic/env.py
notconfusing/CivilServant
f9c7a2cf4de4f6506e37b7c33a7e512b893069c3
[ "MIT" ]
4
2018-07-11T23:36:28.000Z
2019-11-16T19:32:33.000Z
from __future__ import with_statement from alembic import context from sqlalchemy import engine_from_config, pool from logging.config import fileConfig import logging import re USE_TWOPHASE = False # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context...
31.890411
98
0.645833
from __future__ import with_statement from alembic import context from sqlalchemy import engine_from_config, pool from logging.config import fileConfig import logging import re USE_TWOPHASE = False config = context.config fileConfig(config.config_file_name) logger = logging.getLogger('alembic.env') db_names ...
true
true
f74154d8dfb173a3ca54cfdc15e57311840b83f5
65
py
Python
venv/Lib/site-packages/virtualenv/version.py
K-a-t-i/Kindergarten
fcb209737608f34a9ad0de40451a2f5a1a08d7ed
[ "MIT" ]
null
null
null
venv/Lib/site-packages/virtualenv/version.py
K-a-t-i/Kindergarten
fcb209737608f34a9ad0de40451a2f5a1a08d7ed
[ "MIT" ]
null
null
null
venv/Lib/site-packages/virtualenv/version.py
K-a-t-i/Kindergarten
fcb209737608f34a9ad0de40451a2f5a1a08d7ed
[ "MIT" ]
null
null
null
from __future__ import unicode_literals __version__ = "20.4.4"
16.25
40
0.784615
from __future__ import unicode_literals __version__ = "20.4.4"
true
true
f74155120ab8b8f295e0a30354e04305e6ec83a2
5,651
py
Python
xarray/tutorial.py
santisoler/xarray
49aa235fc63706dc145128dd13fdf139b9d5bc6e
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
xarray/tutorial.py
santisoler/xarray
49aa235fc63706dc145128dd13fdf139b9d5bc6e
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
8
2021-04-14T21:47:20.000Z
2022-02-14T03:05:53.000Z
xarray/tutorial.py
weiji14/xarray
2bb5d20fb2b4158390ab05aa6bf598b78f2caa9d
[ "CC-BY-4.0", "PSF-2.0", "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
""" Useful for: * users learning xarray * building tutorials in the documentation. """ import os import pathlib import numpy as np from .backends.api import open_dataset as _open_dataset from .backends.rasterio_ import open_rasterio as _open_rasterio from .core.dataarray import DataArray from .core.dataset import D...
26.406542
94
0.620244
import os import pathlib import numpy as np from .backends.api import open_dataset as _open_dataset from .backends.rasterio_ import open_rasterio as _open_rasterio from .core.dataarray import DataArray from .core.dataset import Dataset _default_cache_dir_name = "xarray_tutorial_data" base_url = "https://github.com/p...
true
true
f7415586f806c3f50a37f313db6058892719c00e
2,104
py
Python
jl_exp_deconv/due.py
JLans/jl_exp_deconv
b146d9b930855c5a7220d71157398ffd2c631e72
[ "MIT" ]
null
null
null
jl_exp_deconv/due.py
JLans/jl_exp_deconv
b146d9b930855c5a7220d71157398ffd2c631e72
[ "MIT" ]
null
null
null
jl_exp_deconv/due.py
JLans/jl_exp_deconv
b146d9b930855c5a7220d71157398ffd2c631e72
[ "MIT" ]
null
null
null
# emacs: at the end of the file # ex: set sts=4 ts=4 sw=4 et: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### # """ Stub file for a guaranteed safe import of duecredit constructs: if duecredit is not available. To use it, place it into your project codebase to be imported, e.g. c...
28.053333
80
0.625951
true
true
f7415587b87ab2fe249de2a836fe7a2356cddc6f
2,896
py
Python
tests/test_agent.py
TiboC/rasa_core
5c025fad44302164af0d6c2767fc1b6a49131b67
[ "Apache-2.0" ]
2
2021-04-20T03:20:26.000Z
2022-01-20T02:04:52.000Z
tests/test_agent.py
TiboC/rasa_core
5c025fad44302164af0d6c2767fc1b6a49131b67
[ "Apache-2.0" ]
null
null
null
tests/test_agent.py
TiboC/rasa_core
5c025fad44302164af0d6c2767fc1b6a49131b67
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import io import rasa_core import pytest import responses from rasa_core.agent import Agent from rasa_core.interpreter import INTENT_MESSAGE_PREFIX from rasa_core.polic...
36.2
80
0.700276
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import io import rasa_core import pytest import responses from rasa_core.agent import Agent from rasa_core.interpreter import INTENT_MESSAGE_PREFIX from rasa_core.polic...
true
true
f74155fe1b1a3778a3d4f7672184c489c042c149
2,466
py
Python
dota2py/data.py
andrewsnowden/dota2py
67637f4b9c160ea90c11b7e81545baf350affa7a
[ "MIT" ]
86
2015-01-05T02:03:10.000Z
2021-07-06T02:38:20.000Z
dota2py/data.py
andrewsnowden/dota2py
67637f4b9c160ea90c11b7e81545baf350affa7a
[ "MIT" ]
8
2015-01-20T15:24:20.000Z
2018-11-29T07:35:53.000Z
dota2py/data.py
andrewsnowden/dota2py
67637f4b9c160ea90c11b7e81545baf350affa7a
[ "MIT" ]
29
2015-01-20T15:26:50.000Z
2019-08-30T14:49:28.000Z
""" ID lookups from data files Thanks to Lazze for the item list: http://dev.dota2.com/showthread.php?t=47115&page=16&p=296787#post296787 """ import os.path import json HEROES_CACHE = {} ITEMS_CACHE = {} GAME_MODES = { "dota_game_mode_0": "-", "dota_game_mode_1": "All Pick", "dota_game_mode_2": "Captain...
21.823009
77
0.627332
import os.path import json HEROES_CACHE = {} ITEMS_CACHE = {} GAME_MODES = { "dota_game_mode_0": "-", "dota_game_mode_1": "All Pick", "dota_game_mode_2": "Captains Mode", "dota_game_mode_3": "Random Draft", "dota_game_mode_4": "Single Draft", "dota_game_mode_5": "All Random", "dota_game_m...
true
true
f74156a49da0e38543f371449fed00f08dc5dfa3
173
py
Python
V2/test/opencv_test/src/example.py
wisrovi/MANITOR-Raspberry
342f740d5f5225734917bfd9fb59974881f7b5a6
[ "MIT" ]
null
null
null
V2/test/opencv_test/src/example.py
wisrovi/MANITOR-Raspberry
342f740d5f5225734917bfd9fb59974881f7b5a6
[ "MIT" ]
null
null
null
V2/test/opencv_test/src/example.py
wisrovi/MANITOR-Raspberry
342f740d5f5225734917bfd9fb59974881f7b5a6
[ "MIT" ]
null
null
null
from time import sleep from picamera import PiCamera camera = PiCamera() camera.resolution = (1024, 768) camera.start_preview() sleep(2) camera.capture('output.jpg') exit()
19.222222
31
0.768786
from time import sleep from picamera import PiCamera camera = PiCamera() camera.resolution = (1024, 768) camera.start_preview() sleep(2) camera.capture('output.jpg') exit()
true
true
f74156a8374539d7eb80eb9b4b4757cb3a498c38
39
py
Python
VisualVenv/__main__.py
braffel14/VisualVenv
15ec3309a754b1397babf0cae69e5470fbf09f83
[ "MIT" ]
null
null
null
VisualVenv/__main__.py
braffel14/VisualVenv
15ec3309a754b1397babf0cae69e5470fbf09f83
[ "MIT" ]
null
null
null
VisualVenv/__main__.py
braffel14/VisualVenv
15ec3309a754b1397babf0cae69e5470fbf09f83
[ "MIT" ]
null
null
null
from VisualVenv.run import main main()
13
31
0.794872
from VisualVenv.run import main main()
true
true
f74156b91836631bfc0083132ebd852a7bb557da
40,337
py
Python
cinder-14.0.0/cinder/exception.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
cinder-14.0.0/cinder/exception.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
cinder-14.0.0/cinder/exception.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
28.874016
79
0.706101
from oslo_log import log as logging from oslo_versionedobjects import exception as obj_exc import six import webob.exc from webob.util import status_generic_reasons from webob.util import status_reasons from cinder.i18n import _ LOG = logging.getLogger(__name__) class ConvertedException(webob.exc....
true
true
f74157933d72314ce0d65572d5e0ee23a682d841
1,149
py
Python
setup.py
haloween/dpd-client-info-service-api-python
8715e04e10b845b6e9fafa5d11eed42968adc764
[ "MIT" ]
1
2019-08-10T09:14:37.000Z
2019-08-10T09:14:37.000Z
setup.py
haloween/dpd-client-info-service-api-python
8715e04e10b845b6e9fafa5d11eed42968adc764
[ "MIT" ]
null
null
null
setup.py
haloween/dpd-client-info-service-api-python
8715e04e10b845b6e9fafa5d11eed42968adc764
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='dpd_info_client_api', version='0.4', description='Client for DPD WSDL API.', url='https://github.com/haloween/dpd-client-info-service-api-python', keywords = "dpd, courier, api, service, info , parcel, shipping label, wsdl, api", classifiers=[ ...
35.90625
88
0.563969
from setuptools import setup setup(name='dpd_info_client_api', version='0.4', description='Client for DPD WSDL API.', url='https://github.com/haloween/dpd-client-info-service-api-python', keywords = "dpd, courier, api, service, info , parcel, shipping label, wsdl, api", classifiers=[ ...
true
true
f7415812750841cd336015d51cae37c822dcf1dc
2,025
py
Python
Scripts/mort_by_pop_den_5yr_0816.py
hassenmorad/Home-to-Income-Ratio
777754693150ed6f777d084dbace7b8189317c55
[ "MIT" ]
null
null
null
Scripts/mort_by_pop_den_5yr_0816.py
hassenmorad/Home-to-Income-Ratio
777754693150ed6f777d084dbace7b8189317c55
[ "MIT" ]
null
null
null
Scripts/mort_by_pop_den_5yr_0816.py
hassenmorad/Home-to-Income-Ratio
777754693150ed6f777d084dbace7b8189317c55
[ "MIT" ]
null
null
null
# Mortgagea share of income by population density import pandas as pd import numpy as np import array file = pd.read_csv('county_rent_mort_inc_units_5yr.csv') yrs_dict = {} for year in range(2008, 2017): print(year) yr_df = file[file.Year == year].dropna(subset=['Housing_Den']) yr_df.Total_Owned = yr_df.T...
48.214286
113
0.65679
import pandas as pd import numpy as np import array file = pd.read_csv('county_rent_mort_inc_units_5yr.csv') yrs_dict = {} for year in range(2008, 2017): print(year) yr_df = file[file.Year == year].dropna(subset=['Housing_Den']) yr_df.Total_Owned = yr_df.Total_Owned.astype(int) county1k =...
true
true
f741581d856d657f75b4f7f3664dbb6f9ad07175
11,065
py
Python
stix2/utils.py
6un9-h0-Dan/cti-python-stix2
5a34d529a8f29e8a1bce510ebc99aa7e3d74e2ef
[ "BSD-3-Clause" ]
1
2020-08-17T23:53:48.000Z
2020-08-17T23:53:48.000Z
stix2/utils.py
6un9-h0-Dan/cti-python-stix2
5a34d529a8f29e8a1bce510ebc99aa7e3d74e2ef
[ "BSD-3-Clause" ]
null
null
null
stix2/utils.py
6un9-h0-Dan/cti-python-stix2
5a34d529a8f29e8a1bce510ebc99aa7e3d74e2ef
[ "BSD-3-Clause" ]
null
null
null
"""Utility functions and classes for the STIX2 library.""" import datetime as dt import enum import json import re import pytz import six import stix2 # Sentinel value for properties that should be set to the current time. # We can't use the standard 'default' approach, since if there are multiple # timestamps in a...
33.734756
82
0.645368
import datetime as dt import enum import json import re import pytz import six import stix2 # timestamps in a single object, the timestamps will vary by a few microseconds. NOW = object() PREFIX_21_REGEX = re.compile(r'^[a-z].*') _TIMESTAMP_FORMAT = "%Y-%m-%dT%H:%M:%SZ" _TIMESTAMP_FORMAT_FRAC = "%Y-%m-%dT%H:%M:...
true
true
f74159c6aab8f4a8262fc92965d2a3d6430b0c6d
5,041
py
Python
pyHalo/Rendering/MassFunctions/power_law.py
ryu57/pyHalo
61b9ab49d76f3552f5680b2e457fbd3e49b9cc89
[ "MIT" ]
7
2020-12-09T23:58:34.000Z
2022-03-13T12:18:32.000Z
pyHalo/Rendering/MassFunctions/power_law.py
ryu57/pyHalo
61b9ab49d76f3552f5680b2e457fbd3e49b9cc89
[ "MIT" ]
8
2020-10-12T21:30:22.000Z
2022-01-25T16:04:54.000Z
pyHalo/Rendering/MassFunctions/power_law.py
ryu57/pyHalo
61b9ab49d76f3552f5680b2e457fbd3e49b9cc89
[ "MIT" ]
6
2021-06-07T16:30:41.000Z
2022-01-12T16:58:04.000Z
import numpy as np from pyHalo.Rendering.MassFunctions.mass_function_utilities import integrate_power_law_analytic from pyHalo.Rendering.MassFunctions.mass_function_utilities import WDM_suppression class GeneralPowerLaw(object): """ This class handles computations of a double power law mass function of the fo...
42.008333
121
0.603055
import numpy as np from pyHalo.Rendering.MassFunctions.mass_function_utilities import integrate_power_law_analytic from pyHalo.Rendering.MassFunctions.mass_function_utilities import WDM_suppression class GeneralPowerLaw(object): def __init__(self, log_mlow, log_mhigh, power_law_index, draw_poisson, normalization...
true
true
f7415a2b9c1c63d5cda643906d3057a200eae800
1,510
py
Python
speech/google/cloud/speech_v1p1beta1/types.py
DaveCheez/google-cloud-python
fc03d4d41f13e9d13db7206438163b3a471fdabd
[ "Apache-2.0" ]
2
2021-11-26T07:08:43.000Z
2022-03-07T20:20:04.000Z
speech/google/cloud/speech_v1p1beta1/types.py
DaveCheez/google-cloud-python
fc03d4d41f13e9d13db7206438163b3a471fdabd
[ "Apache-2.0" ]
null
null
null
speech/google/cloud/speech_v1p1beta1/types.py
DaveCheez/google-cloud-python
fc03d4d41f13e9d13db7206438163b3a471fdabd
[ "Apache-2.0" ]
1
2020-04-14T10:47:41.000Z
2020-04-14T10:47:41.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 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...
31.458333
74
0.760927
from __future__ import absolute_import import sys from google.api_core.protobuf_helpers import get_messages from google.cloud.speech_v1p1beta1.proto import cloud_speech_pb2 from google.longrunning import operations_pb2 from google.protobuf import any_pb2 from google.protobuf import duration_pb2 from ...
true
true
f7415a9a3c06c77f942eb26cb2c89d485a32cd87
20,152
py
Python
collect/TwHistory.py
shinylin/tw-stock-collect-forecast
6af2715a848336d90aaf21f8f93ed1c3568c3fa8
[ "MIT" ]
1
2021-09-29T08:16:21.000Z
2021-09-29T08:16:21.000Z
collect/TwHistory.py
shinylin/tw-stock-collect-forecast
6af2715a848336d90aaf21f8f93ed1c3568c3fa8
[ "MIT" ]
null
null
null
collect/TwHistory.py
shinylin/tw-stock-collect-forecast
6af2715a848336d90aaf21f8f93ed1c3568c3fa8
[ "MIT" ]
null
null
null
import calendar import math import pandas as pd import time import twstock import requests from datetime import datetime, timedelta from dateutil import relativedelta from db.Connection import session from enum import Enum from model.StockHistory import StockHistory from sys import float_info from talib import abstract...
51.804627
297
0.57111
import calendar import math import pandas as pd import time import twstock import requests from datetime import datetime, timedelta from dateutil import relativedelta from db.Connection import session from enum import Enum from model.StockHistory import StockHistory from sys import float_info from talib import abstract...
true
true
f7415c08a01b69c5708e1947e41954bfdecc1191
76
py
Python
sandbox/swig-unicode/nofuture.py
rboman/progs
c60b4e0487d01ccd007bcba79d1548ebe1685655
[ "Apache-2.0" ]
2
2021-12-12T13:26:06.000Z
2022-03-03T16:14:53.000Z
sandbox/swig-unicode/nofuture.py
rboman/progs
c60b4e0487d01ccd007bcba79d1548ebe1685655
[ "Apache-2.0" ]
5
2019-03-01T07:08:46.000Z
2019-04-28T07:32:42.000Z
sandbox/swig-unicode/nofuture.py
rboman/progs
c60b4e0487d01ccd007bcba79d1548ebe1685655
[ "Apache-2.0" ]
2
2017-12-13T13:13:52.000Z
2019-03-13T20:08:15.000Z
from __future__ import print_function print('"import nofuture" succeeded')
19
37
0.815789
from __future__ import print_function print('"import nofuture" succeeded')
true
true
f7415d927e7d3eb2ec7f283d966d29eb5bd75775
15,150
py
Python
kirppu/models.py
Glowieh/kirppu
95f3e98c594ca7f02ed4ec311da3e558d76ea5b3
[ "MIT" ]
null
null
null
kirppu/models.py
Glowieh/kirppu
95f3e98c594ca7f02ed4ec311da3e558d76ea5b3
[ "MIT" ]
null
null
null
kirppu/models.py
Glowieh/kirppu
95f3e98c594ca7f02ed4ec311da3e558d76ea5b3
[ "MIT" ]
null
null
null
import random from decimal import Decimal from django.core.exceptions import ValidationError from django.core.validators import RegexValidator from django.db import models from django.db.models import Sum from django.utils.translation import ugettext_lazy as _ from django.utils.module_loading import import_by_path from...
29.078695
106
0.59736
import random from decimal import Decimal from django.core.exceptions import ValidationError from django.core.validators import RegexValidator from django.db import models from django.db.models import Sum from django.utils.translation import ugettext_lazy as _ from django.utils.module_loading import import_by_path from...
true
true
f74160a2765945cf319970ed73c6e94e1bffa696
15,596
py
Python
src/outpost/django/typo3/migrations/0004_content.py
medunigraz/outpost.django.typo3
d3ba82189d78ecae73342707940c91ebe958a29e
[ "BSD-2-Clause" ]
null
null
null
src/outpost/django/typo3/migrations/0004_content.py
medunigraz/outpost.django.typo3
d3ba82189d78ecae73342707940c91ebe958a29e
[ "BSD-2-Clause" ]
null
null
null
src/outpost/django/typo3/migrations/0004_content.py
medunigraz/outpost.django.typo3
d3ba82189d78ecae73342707940c91ebe958a29e
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-04-22 12:52 from __future__ import unicode_literals from django.db import migrations from django.conf import settings class Migration(migrations.Migration): ops = [ ( """ CREATE FOREIGN TABLE "typo3"."content" ( ...
32.559499
97
0.368684
from __future__ import unicode_literals from django.db import migrations from django.conf import settings class Migration(migrations.Migration): ops = [ ( """ CREATE FOREIGN TABLE "typo3"."content" ( uid int, pid int, tstamp bigin...
true
true
f74161f3def9e3e8308d97b48187ded2dee83717
57
py
Python
annie/blueprints/playground/__init__.py
hno2/emlie
6ccb2a55c569e9384beecd14e6272dbc1a5bddf3
[ "MIT" ]
null
null
null
annie/blueprints/playground/__init__.py
hno2/emlie
6ccb2a55c569e9384beecd14e6272dbc1a5bddf3
[ "MIT" ]
46
2021-05-10T09:59:40.000Z
2021-09-21T07:39:49.000Z
annie/blueprints/playground/__init__.py
hno2/emlie
6ccb2a55c569e9384beecd14e6272dbc1a5bddf3
[ "MIT" ]
null
null
null
from annie.blueprints.playground.views import playground
28.5
56
0.877193
from annie.blueprints.playground.views import playground
true
true
f74163704f8b1e57418e7ce0da0699ab348e1cfd
1,527
py
Python
src/graphql/executor/root_mutation_object.py
btrekkie/graphql
6c118550267eeb57a9653f4f46d7bbd6c5902110
[ "MIT" ]
null
null
null
src/graphql/executor/root_mutation_object.py
btrekkie/graphql
6c118550267eeb57a9653f4f46d7bbd6c5902110
[ "MIT" ]
null
null
null
src/graphql/executor/root_mutation_object.py
btrekkie/graphql
6c118550267eeb57a9653f4f46d7bbd6c5902110
[ "MIT" ]
null
null
null
from graphql.schema import GraphQlFuncDescriptor class GraphQlRootMutationObject(object): """The root mutation object for GraphQL. This is the object whose fields we "query" at the root level of a GraphQL mutation operation. """ # The singleton instance of GraphQlRootMutationObject, or None if w...
37.243902
77
0.685658
from graphql.schema import GraphQlFuncDescriptor class GraphQlRootMutationObject(object): _instance = None def __init__(self): pass @staticmethod def instance(): if GraphQlRootMutationObject._instance is None: GraphQlRootMutationObject._instance = GraphQlRootMu...
true
true
f741641bf9363779d2f17f30b5f6e3b0f4c46d2a
576
py
Python
concordia/utils.py
ptrourke/concordia
56ff364dbf38cb8a763df489479821fe43b76d69
[ "CC0-1.0" ]
1
2020-07-17T14:41:41.000Z
2020-07-17T14:41:41.000Z
concordia/utils.py
ptrourke/concordia
56ff364dbf38cb8a763df489479821fe43b76d69
[ "CC0-1.0" ]
null
null
null
concordia/utils.py
ptrourke/concordia
56ff364dbf38cb8a763df489479821fe43b76d69
[ "CC0-1.0" ]
null
null
null
from django.contrib.auth.models import User def get_anonymous_user(): """ Get the user called "anonymous" if it exist. Create the user if it doesn't exist This is the default concordia user if someone is working on the site without logging in first. """ try: return User.objects.get(us...
27.428571
78
0.708333
from django.contrib.auth.models import User def get_anonymous_user(): try: return User.objects.get(username="anonymous") except User.DoesNotExist: return User.objects.create_user(username="anonymous") def request_accepts_json(request): accept_header = request.META.get("HTTP_ACCEPT", "*/...
true
true
f741647dfbb6dad21f8e9c8e464b98ce12d5352b
1,553
py
Python
mopidy_musicbox_webclient/__init__.py
sprinkle1502/mopidy-musicbox-webclient
948a8a3c8a00bdd6ec2222023b157378c3acae2e
[ "Apache-2.0" ]
278
2015-08-19T14:01:25.000Z
2022-03-26T09:50:52.000Z
mopidy_musicbox_webclient/__init__.py
sprinkle1502/mopidy-musicbox-webclient
948a8a3c8a00bdd6ec2222023b157378c3acae2e
[ "Apache-2.0" ]
183
2015-08-19T13:51:19.000Z
2022-01-10T13:10:43.000Z
mopidy_musicbox_webclient/__init__.py
sprinkle1502/mopidy-musicbox-webclient
948a8a3c8a00bdd6ec2222023b157378c3acae2e
[ "Apache-2.0" ]
86
2015-08-24T13:44:20.000Z
2022-03-30T21:36:58.000Z
import pathlib import pkg_resources from mopidy import config, ext __version__ = pkg_resources.get_distribution( "Mopidy-MusicBox-Webclient" ).version class Extension(ext.Extension): dist_name = "Mopidy-MusicBox-Webclient" ext_name = "musicbox_webclient" version = __version__ def get_default_...
28.759259
79
0.584031
import pathlib import pkg_resources from mopidy import config, ext __version__ = pkg_resources.get_distribution( "Mopidy-MusicBox-Webclient" ).version class Extension(ext.Extension): dist_name = "Mopidy-MusicBox-Webclient" ext_name = "musicbox_webclient" version = __version__ def get_default_...
true
true
f741650e5c99b2f2ba9dae8f7db22b40af10057d
3,140
py
Python
joulescope_ui/widgets/waveform/signal_viewbox.py
jetperch/pyjoulescope_ui
0324562dafc1ad2ae4a6a8cd8d073582863bf394
[ "Apache-2.0" ]
31
2018-12-13T16:13:02.000Z
2021-09-28T09:57:50.000Z
joulescope_ui/widgets/waveform/signal_viewbox.py
jetperch/pyjoulescope_ui
0324562dafc1ad2ae4a6a8cd8d073582863bf394
[ "Apache-2.0" ]
144
2019-02-12T14:58:02.000Z
2022-03-24T12:06:17.000Z
joulescope_ui/widgets/waveform/signal_viewbox.py
jetperch/pyjoulescope_ui
0324562dafc1ad2ae4a6a8cd8d073582863bf394
[ "Apache-2.0" ]
7
2019-07-04T16:34:54.000Z
2021-03-24T16:25:06.000Z
# Copyright 2019 Jetperch 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
36.091954
81
0.612102
import pyqtgraph as pg from PySide2 import QtCore from .scrollbar import WHEEL_TICK import logging class SignalViewBox(pg.ViewBox): sigWheelZoomXEvent = QtCore.Signal(float, float) sigPanXEvent = QtCore.Signal(object, float) def __init__(self, name): pg.ViewBox.__init__(self, enab...
true
true
f7416549a1d05ef819cf4444f6c9e96910fba2e3
6,335
py
Python
pygraphs/pygraphs_base.py
guofei9987/pygraphs
3e5a9ced566ca832431bf86be4563512e8787ea5
[ "MIT" ]
4
2020-12-05T09:58:34.000Z
2022-03-14T08:58:34.000Z
pygraphs/pygraphs_base.py
guofei9987/pygraphs
3e5a9ced566ca832431bf86be4563512e8787ea5
[ "MIT" ]
null
null
null
pygraphs/pygraphs_base.py
guofei9987/pygraphs
3e5a9ced566ca832431bf86be4563512e8787ea5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2020/12/05 # @Author : github.com/guofei9987 import ast import csv from pygraphs.tools import PgDict, cql_parser class Vertex(object): def __init__(self, val=None): self.val = dict(val) or dict() self.src = set() self.dst = set() def __repr__(self...
37.934132
119
0.594791
import ast import csv from pygraphs.tools import PgDict, cql_parser class Vertex(object): def __init__(self, val=None): self.val = dict(val) or dict() self.src = set() self.dst = set() def __repr__(self): return 'Vertex: primary_key = {}'.format(self.val['primary_key']) c...
true
true
f74165d0c81353072e3f4d501066ec453a36d633
1,904
py
Python
configs/_base_/datasets/potsdam.py
bowenroom/mmsegmentation
dfe3f2456c428dccb6450823b06586fc1a9782de
[ "Apache-2.0" ]
1
2022-03-07T19:46:03.000Z
2022-03-07T19:46:03.000Z
configs/_base_/datasets/potsdam.py
bowenroom/mmsegmentation
dfe3f2456c428dccb6450823b06586fc1a9782de
[ "Apache-2.0" ]
2
2022-02-25T03:07:23.000Z
2022-03-08T12:54:05.000Z
configs/_base_/datasets/potsdam.py
bowenroom/mmsegmentation
dfe3f2456c428dccb6450823b06586fc1a9782de
[ "Apache-2.0" ]
null
null
null
# dataset settings dataset_type = 'PotsdamDataset' # data_root = 'data/potsdam' data_root = 'swpTest/tempDataTest/potsdam' img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) crop_size = (512, 512) train_pipeline = [ dict(type='LoadImageFromFile'), dict(type='LoadA...
32.827586
77
0.615546
dataset_type = 'PotsdamDataset' data_root = 'swpTest/tempDataTest/potsdam' img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) crop_size = (512, 512) train_pipeline = [ dict(type='LoadImageFromFile'), dict(type='LoadAnnotations', reduce_zero_label=True), dict...
true
true
f7416837d3b8f488deed74495db74f79b650a50c
1,631
py
Python
spacy/lang/tr/lex_attrs.py
snosrap/spaCy
3f68bbcfec44ef55d101e6db742d353b72652129
[ "MIT" ]
22,040
2016-10-03T11:58:15.000Z
2022-03-31T21:08:19.000Z
spacy/lang/tr/lex_attrs.py
snosrap/spaCy
3f68bbcfec44ef55d101e6db742d353b72652129
[ "MIT" ]
6,927
2016-10-03T13:11:11.000Z
2022-03-31T17:01:25.000Z
spacy/lang/tr/lex_attrs.py
snosrap/spaCy
3f68bbcfec44ef55d101e6db742d353b72652129
[ "MIT" ]
4,403
2016-10-04T03:36:33.000Z
2022-03-31T14:12:34.000Z
from ...attrs import LIKE_NUM # Thirteen, fifteen etc. are written separate: on üç _num_words = [ "bir", "iki", "üç", "dört", "beş", "altı", "yedi", "sekiz", "dokuz", "on", "yirmi", "otuz", "kırk", "elli", "altmış", "yetmiş", "seksen", "doksan",...
18.122222
66
0.526671
from ...attrs import LIKE_NUM _num_words = [ "bir", "iki", "üç", "dört", "beş", "altı", "yedi", "sekiz", "dokuz", "on", "yirmi", "otuz", "kırk", "elli", "altmış", "yetmiş", "seksen", "doksan", "yüz", "bin", "milyon", "milyar", ...
true
true
f74169bb488d73bb8de31871ac9506fcb80dc6f9
504
py
Python
setup.py
lmjohns3/cube-experiment
ab6d1a9df95efebc369d184ab1c748d73d5c3313
[ "MIT" ]
null
null
null
setup.py
lmjohns3/cube-experiment
ab6d1a9df95efebc369d184ab1c748d73d5c3313
[ "MIT" ]
null
null
null
setup.py
lmjohns3/cube-experiment
ab6d1a9df95efebc369d184ab1c748d73d5c3313
[ "MIT" ]
null
null
null
import os import setuptools setuptools.setup( name='cubes', version='0.0.1', packages=setuptools.find_packages(), description='analysis code for cube experiment', long_description=open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.rst')).read(), license='MIT', url='http:/...
29.647059
105
0.662698
import os import setuptools setuptools.setup( name='cubes', version='0.0.1', packages=setuptools.find_packages(), description='analysis code for cube experiment', long_description=open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.rst')).read(), license='MIT', url='http:/...
true
true
f7416a2b60eb0748e0c2a0db2d902c3ac9f801f7
62,025
py
Python
pailab/analysis/tools_jupyter.py
pailabteam/pailab
3995b25f105827ae631e6120f380748d7d284c9f
[ "Apache-2.0" ]
26
2019-03-15T12:40:11.000Z
2021-05-26T05:23:02.000Z
pailab/analysis/tools_jupyter.py
pailabteam/pailab
3995b25f105827ae631e6120f380748d7d284c9f
[ "Apache-2.0" ]
89
2019-03-15T12:39:07.000Z
2022-02-10T00:14:24.000Z
pailab/analysis/tools_jupyter.py
pailabteam/pailab
3995b25f105827ae631e6120f380748d7d284c9f
[ "Apache-2.0" ]
2
2019-05-10T09:00:36.000Z
2020-03-05T11:32:34.000Z
import numpy as np import copy import logging from IPython.display import display, clear_output from collections import defaultdict import pailab.analysis.plot as paiplot import pailab.analysis.plot_helper as plt_helper import ipywidgets as widgets from pailab import MLObjectType, RepoInfoKey, FIRST_VERSION, LAST_VERS...
40.645478
158
0.582894
import numpy as np import copy import logging from IPython.display import display, clear_output from collections import defaultdict import pailab.analysis.plot as paiplot import pailab.analysis.plot_helper as plt_helper import ipywidgets as widgets from pailab import MLObjectType, RepoInfoKey, FIRST_VERSION, LAST_VERS...
true
true
f7416aaf6126c79d224df0f02e61a6553a070892
342
py
Python
tests/perf/operation-call.py
mrpal39/pyvips
caceec98fa7f63ae6bc7bcb991c2ec946b16554a
[ "MIT" ]
142
2017-08-01T12:33:20.000Z
2018-09-15T16:50:32.000Z
tests/perf/operation-call.py
mrpal39/pyvips
caceec98fa7f63ae6bc7bcb991c2ec946b16554a
[ "MIT" ]
62
2017-08-01T16:22:09.000Z
2018-09-20T08:00:40.000Z
tests/perf/operation-call.py
mrpal39/pyvips
caceec98fa7f63ae6bc7bcb991c2ec946b16554a
[ "MIT" ]
15
2017-08-04T09:51:29.000Z
2018-08-25T18:42:49.000Z
#!/usr/bin/env python3 import pyperf import pyvips def operation_call(loops): range_it = range(loops) t0 = pyperf.perf_counter() for loops in range_it: _ = pyvips.Operation.call('black', 10, 10) return pyperf.perf_counter() - t0 runner = pyperf.Runner() runner.bench_time_func('Operation.c...
18
56
0.69883
import pyperf import pyvips def operation_call(loops): range_it = range(loops) t0 = pyperf.perf_counter() for loops in range_it: _ = pyvips.Operation.call('black', 10, 10) return pyperf.perf_counter() - t0 runner = pyperf.Runner() runner.bench_time_func('Operation.call', operation_call)
true
true
f7416c34533fd8174b6cde606de2546fed4418b2
198
py
Python
sfx/speedramps.py
Terry14/sfx
16bcf401ba3251b0de211276d97153469499515d
[ "MIT" ]
null
null
null
sfx/speedramps.py
Terry14/sfx
16bcf401ba3251b0de211276d97153469499515d
[ "MIT" ]
null
null
null
sfx/speedramps.py
Terry14/sfx
16bcf401ba3251b0de211276d97153469499515d
[ "MIT" ]
null
null
null
speedramps = { "Naver": { 0: 5, 1: 4, 2: 3, 3: 2, 4: 1, 5: 0, 6: -1, 7: -2, 8: -3, 9: -4, 10: -5, } }
12.375
15
0.191919
speedramps = { "Naver": { 0: 5, 1: 4, 2: 3, 3: 2, 4: 1, 5: 0, 6: -1, 7: -2, 8: -3, 9: -4, 10: -5, } }
true
true
f7416cb1adf2aa04990060ea15e2ba8962016422
4,748
py
Python
mlc-pgd-multi-label.py
erwinvanthiel/ASL
1b8846919f4bcf7bf65881faf254395cb01f8ae3
[ "MIT" ]
null
null
null
mlc-pgd-multi-label.py
erwinvanthiel/ASL
1b8846919f4bcf7bf65881faf254395cb01f8ae3
[ "MIT" ]
null
null
null
mlc-pgd-multi-label.py
erwinvanthiel/ASL
1b8846919f4bcf7bf65881faf254395cb01f8ae3
[ "MIT" ]
null
null
null
import os import torch from src.helper_functions.helper_functions import parse_args from src.loss_functions.losses import AsymmetricLoss, AsymmetricLossOptimized from src.models import create_model import argparse import matplotlib import torchvision.transforms as transforms from pgd import create_targeted_adversarial_...
35.969697
146
0.673968
import os import torch from src.helper_functions.helper_functions import parse_args from src.loss_functions.losses import AsymmetricLoss, AsymmetricLossOptimized from src.models import create_model import argparse import matplotlib import torchvision.transforms as transforms from pgd import create_targeted_adversarial_...
true
true
f7416d22ab65f5ff5c58bc99f7c0daaa315d84cb
939
py
Python
map/urls.py
rmad17/disaster
bf0c9fd298dd39c6dbe4c7f9c0eaba13bebecddf
[ "MIT" ]
null
null
null
map/urls.py
rmad17/disaster
bf0c9fd298dd39c6dbe4c7f9c0eaba13bebecddf
[ "MIT" ]
null
null
null
map/urls.py
rmad17/disaster
bf0c9fd298dd39c6dbe4c7f9c0eaba13bebecddf
[ "MIT" ]
null
null
null
# Distributed under terms of the MIT license. """ The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, na...
34.777778
79
0.686901
from django.conf.urls import url from django.contrib.auth.views import login, logout from .views import home urlpatterns = [ url(r'^$', home, name='home'), url(r'^login/$', login, {'template_name': 'admin/login.html'}), url(r'^logout/$', logout, name='logout'), ]
true
true
f7416e31e8727d4a5f4026905fc14c647c93f386
4,840
py
Python
RpiRoombaCode/pathTracing.py
wangfanxin/UVBot
f10b403b7118c7f963a9871e9af906f1df05bd24
[ "MIT" ]
null
null
null
RpiRoombaCode/pathTracing.py
wangfanxin/UVBot
f10b403b7118c7f963a9871e9af906f1df05bd24
[ "MIT" ]
null
null
null
RpiRoombaCode/pathTracing.py
wangfanxin/UVBot
f10b403b7118c7f963a9871e9af906f1df05bd24
[ "MIT" ]
null
null
null
#this is a basic wall follow program that hugs a wall from the right side import turtle from pycreate2 import Create2 import time from pynput import keyboard import firebase_admin from firebase_admin import credentials from firebase_admin import db #Firebase setup_____________________________________________________...
29.876543
222
0.598967
import turtle from pycreate2 import Create2 import time from pynput import keyboard import firebase_admin from firebase_admin import credentials from firebase_admin import db cred = credentials.Certificate('firebase-sdk.json') firebase_admin.initialize_app(cred, { 'databaseURL': 'https://hcesc-app.firebaseio....
true
true
f7416ec4c8dd42843371f407887b848a31e8f534
1,676
py
Python
payg/contact/views.py
aronysidoro/django-payasyougo
2a64f623273b67564604897084002b6793882ea4
[ "MIT" ]
null
null
null
payg/contact/views.py
aronysidoro/django-payasyougo
2a64f623273b67564604897084002b6793882ea4
[ "MIT" ]
null
null
null
payg/contact/views.py
aronysidoro/django-payasyougo
2a64f623273b67564604897084002b6793882ea4
[ "MIT" ]
null
null
null
from django.views.generic import FormView from django.shortcuts import get_object_or_404 from django.core.urlresolvers import reverse_lazy from contact.models import Contact, Newsletter from contact.forms import ContactForm, NewsletterForm class TwoFormView(FormView): template_name = 'two_form.html' form_cla...
32.230769
112
0.651551
from django.views.generic import FormView from django.shortcuts import get_object_or_404 from django.core.urlresolvers import reverse_lazy from contact.models import Contact, Newsletter from contact.forms import ContactForm, NewsletterForm class TwoFormView(FormView): template_name = 'two_form.html' form_cla...
true
true
f7416efb882c0298b625978256614e7496cc5b5d
67,750
py
Python
env/lib/python3.6/site-packages/sqlalchemy/orm/attributes.py
amogh-gulati/corona_dashboard
ce1a20ad56bdfb758d41513b4706fe3a47764c32
[ "MIT" ]
1
2021-09-20T07:04:40.000Z
2021-09-20T07:04:40.000Z
env/lib/python3.6/site-packages/sqlalchemy/orm/attributes.py
amogh-gulati/corona_dashboard
ce1a20ad56bdfb758d41513b4706fe3a47764c32
[ "MIT" ]
3
2021-09-08T01:55:54.000Z
2022-03-12T00:25:39.000Z
env/lib/python3.6/site-packages/sqlalchemy/orm/attributes.py
amogh-gulati/corona_dashboard
ce1a20ad56bdfb758d41513b4706fe3a47764c32
[ "MIT" ]
1
2020-07-23T04:04:15.000Z
2020-07-23T04:04:15.000Z
# orm/attributes.py # Copyright (C) 2005-2020 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Defines instrumentation for class attributes and their interaction with instanc...
33.04878
79
0.595779
import operator from . import collections from . import exc as orm_exc from . import interfaces from .base import ATTR_EMPTY from .base import ATTR_WAS_SET from .base import CALLABLES_OK from .base import INIT_OK from .base import instance_dict from .base import instance_state from .base import instance_str fr...
true
true
f741702b1e717da0b0f37a5a4b1d846a225dad5d
4,926
py
Python
symphony/cli/pyinventory/api/location_type.py
omnicate/magma
e1e6c244f9e8bd000587a3dad3c54f4e64ada222
[ "BSD-3-Clause" ]
null
null
null
symphony/cli/pyinventory/api/location_type.py
omnicate/magma
e1e6c244f9e8bd000587a3dad3c54f4e64ada222
[ "BSD-3-Clause" ]
null
null
null
symphony/cli/pyinventory/api/location_type.py
omnicate/magma
e1e6c244f9e8bd000587a3dad3c54f4e64ada222
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2004-present Facebook All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from typing import List from pysymphony import SymphonyClient from .._utils import format_property_definitions from ..common.cache im...
32.84
113
0.648193
from typing import List from pysymphony import SymphonyClient from .._utils import format_property_definitions from ..common.cache import LOCATION_TYPES from ..common.data_class import Location, LocationType, PropertyDefinition from ..common.data_enum import Entity from ..exceptions import EntityNotFoundError fr...
true
true
f74170882f11bb8f849eb8430d971813a3ca707d
11,926
py
Python
onn/onn.py
ZERO2ER0/OpticalNN
56e34a02d9855951fc3a28d0bfddcdbad85a0c90
[ "BSD-3-Clause" ]
8
2019-03-18T07:32:05.000Z
2021-11-12T02:13:35.000Z
onn/onn.py
ZERO2ER0/OpticalNN
56e34a02d9855951fc3a28d0bfddcdbad85a0c90
[ "BSD-3-Clause" ]
null
null
null
onn/onn.py
ZERO2ER0/OpticalNN
56e34a02d9855951fc3a28d0bfddcdbad85a0c90
[ "BSD-3-Clause" ]
3
2019-12-10T15:42:38.000Z
2020-07-02T15:12:48.000Z
""" replace first layer of AlexNet with optical setup Adapted other layers of AlexNet code from AlexNet.py, code written by Frederik Kratzert at https://kratzert.github.io/2017/02/24/finetuning-alexnet-with-tensorflow.html """ import tensorflow as tf import numpy as np Iterator = tf.data.Iterator # xx, yy, Lambda, k_...
36.582822
98
0.633406
import tensorflow as tf import numpy as np Iterator = tf.data.Iterator xx = np.load('xx.npy') yy = np.load('yy.npy') Lambda = np.load('Lambda.npy') k_z_values = np.load('k_z_values.npy') x_tensor = tf.constant(xx, tf.float32) y_tensor = tf.constant(yy, tf.float32) Lambda_tensor = tf.constant(Lambda, tf.float32) k_z ...
true
true
f74170de1c882da0fdb755e198f56600af8415b5
5,641
py
Python
tools/tasker.py
Krissmedt/imprunko
94171d0d47171cc4b199cd52f5f29385cbff903e
[ "MIT" ]
5
2018-10-26T07:08:16.000Z
2019-05-10T06:47:37.000Z
tools/tasker.py
Krissmedt/imprunko
94171d0d47171cc4b199cd52f5f29385cbff903e
[ "MIT" ]
9
2018-11-09T08:50:48.000Z
2019-06-06T20:11:12.000Z
tools/tasker.py
Krissmedt/imprunko
94171d0d47171cc4b199cd52f5f29385cbff903e
[ "MIT" ]
null
null
null
#from mpi4py.futures import MPIPoolExecutor from mpi4py import MPI import argparse from parser import parse_input from merge_nodes import merge_field_nodes from merge_nodes import merge_analysis_nodes # based on https://github.com/jbornschein/mpi4py-examples/blob/master/09-task-pull.py #x0, x1, w = -2.0, +2.0, ...
24.314655
93
0.549548
from mpi4py import MPI import argparse from parser import parse_input from merge_nodes import merge_field_nodes from merge_nodes import merge_analysis_nodes def enum(*sequential, **named): enums = dict(zip(sequential, range(len(sequential))), **named) return type('Enum', (), en...
true
true
f741719ac0da59b76e9f07b3945dcc922c711b19
5,360
py
Python
gluon/gluoncv2/models/fdmobilenet.py
naviocean/imgclsmob
f2993d3ce73a2f7ddba05da3891defb08547d504
[ "MIT" ]
2,649
2018-08-03T14:18:00.000Z
2022-03-31T08:08:17.000Z
gluon/gluoncv2/models/fdmobilenet.py
naviocean/imgclsmob
f2993d3ce73a2f7ddba05da3891defb08547d504
[ "MIT" ]
95
2018-08-13T01:46:03.000Z
2022-03-13T08:38:14.000Z
gluon/gluoncv2/models/fdmobilenet.py
naviocean/imgclsmob
f2993d3ce73a2f7ddba05da3891defb08547d504
[ "MIT" ]
549
2018-08-06T08:09:22.000Z
2022-03-31T08:08:21.000Z
""" FD-MobileNet for ImageNet-1K, implemented in Gluon. Original paper: 'FD-MobileNet: Improved MobileNet with A Fast Downsampling Strategy,' https://arxiv.org/abs/1802.03750. """ __all__ = ['fdmobilenet_w1', 'fdmobilenet_w3d4', 'fdmobilenet_wd2', 'fdmobilenet_wd4', 'get_fdmobilenet'] import os from mxnet...
31.904762
115
0.6375
__all__ = ['fdmobilenet_w1', 'fdmobilenet_w3d4', 'fdmobilenet_wd2', 'fdmobilenet_wd4', 'get_fdmobilenet'] import os from mxnet import cpu from .mobilenet import MobileNet def get_fdmobilenet(width_scale, model_name=None, pretrained=False, ctx=cpu(), ...
true
true
f74171c6954a7a84c25c1c2d795b1c1bced4b961
1,595
py
Python
pandora/parameters.py
mikekestemont/openbox
07ccd28627b980877124da8d2ec53a2d1b667fd9
[ "MIT" ]
null
null
null
pandora/parameters.py
mikekestemont/openbox
07ccd28627b980877124da8d2ec53a2d1b667fd9
[ "MIT" ]
null
null
null
pandora/parameters.py
mikekestemont/openbox
07ccd28627b980877124da8d2ec53a2d1b667fd9
[ "MIT" ]
null
null
null
#!usr/bin/env python # -*- coding: utf-8 -*- DEFAULT = 'default_settings.json' import os import json class Settings(dict): def __init__(self, config_path=None): super(Settings, self).__init__() try: with open(config_path, 'r') as f: params = json.load(f) exce...
24.538462
63
0.566144
DEFAULT = 'default_settings.json' import os import json class Settings(dict): def __init__(self, config_path=None): super(Settings, self).__init__() try: with open(config_path, 'r') as f: params = json.load(f) except: m = f'Could not read config...
true
true
f74172326c61e9da7bf4d1150a393bf466291f77
226
py
Python
ex003.py
AleLucasG/Estudos-Python-I
4144033bb77b06dd1c9c56a36d5bb152295a6be6
[ "MIT" ]
null
null
null
ex003.py
AleLucasG/Estudos-Python-I
4144033bb77b06dd1c9c56a36d5bb152295a6be6
[ "MIT" ]
null
null
null
ex003.py
AleLucasG/Estudos-Python-I
4144033bb77b06dd1c9c56a36d5bb152295a6be6
[ "MIT" ]
null
null
null
"""crie um programa que leia dois números e mostre a soma entre eles""" n1 = int(input('Digite um valor: ')) n2 = int(input('Digite outro valor: ')) soma = n1 + n2 print('A soma entre {} e {} é de: {}' .format(n1, n2, soma))
32.285714
71
0.632743
n1 = int(input('Digite um valor: ')) n2 = int(input('Digite outro valor: ')) soma = n1 + n2 print('A soma entre {} e {} é de: {}' .format(n1, n2, soma))
true
true
f74173fdd78743f3ac90626059b20277e4fcf9cd
104
py
Python
leadmanager/frontend/views.py
YkBastidas/djangoReact-BasicRestAPI
adf828ac9091db7ea63cd64f53f01d2df2450321
[ "MIT" ]
null
null
null
leadmanager/frontend/views.py
YkBastidas/djangoReact-BasicRestAPI
adf828ac9091db7ea63cd64f53f01d2df2450321
[ "MIT" ]
6
2020-06-05T20:44:44.000Z
2021-09-22T18:37:56.000Z
secretweb/frontend/views.py
tobyych/frisk
f8ca3697bbac17b5f8be4b8584447c6ae072c3ef
[ "MIT" ]
null
null
null
from django.shortcuts import render def index(request): return render(request, 'frontend/index.html')
26
47
0.788462
from django.shortcuts import render def index(request): return render(request, 'frontend/index.html')
true
true
f741743cd23cd9388b1fc37e6136704f1c729b77
1,235
py
Python
st2common/st2common/metrics/utils.py
kkkanil/st2
07cd195d7a6e177a37dd019e5c9ab8329259d0fa
[ "Apache-2.0" ]
null
null
null
st2common/st2common/metrics/utils.py
kkkanil/st2
07cd195d7a6e177a37dd019e5c9ab8329259d0fa
[ "Apache-2.0" ]
15
2021-02-11T22:58:54.000Z
2021-08-06T18:03:47.000Z
st2common/st2common/metrics/utils.py
kkkanil/st2
07cd195d7a6e177a37dd019e5c9ab8329259d0fa
[ "Apache-2.0" ]
1
2021-07-10T15:02:29.000Z
2021-07-10T15:02:29.000Z
# Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
26.847826
99
0.706883
import six from oslo_config import cfg __all__ = [ 'get_full_key_name', 'check_key' ] def get_full_key_name(key): parts = ['st2'] if cfg.CONF.metrics.prefix: parts.append(cfg.CONF.metrics.prefix) parts.append(key) return '.'.join(parts) def check_key(key): asse...
true
true
f74174677c65fc55878936c6a9880cd1ffcd5a51
2,210
py
Python
enrich2/gui/create_seqlib_dialog.py
FowlerLab/Enrich2
9c9b9a7498e6adeb1ca09fc58b956d30c660f94c
[ "BSD-3-Clause" ]
28
2016-09-25T21:23:22.000Z
2022-02-14T17:38:51.000Z
enrich2/gui/create_seqlib_dialog.py
FowlerLab/Enrich2
9c9b9a7498e6adeb1ca09fc58b956d30c660f94c
[ "BSD-3-Clause" ]
51
2016-11-20T02:37:45.000Z
2022-03-22T17:39:18.000Z
enrich2/gui/create_seqlib_dialog.py
FowlerLab/Enrich2
9c9b9a7498e6adeb1ca09fc58b956d30c660f94c
[ "BSD-3-Clause" ]
10
2016-11-19T01:26:31.000Z
2021-08-16T17:41:28.000Z
from __future__ import print_function import Tkinter as tk import ttk import tkSimpleDialog from collections import OrderedDict from ..barcode import BarcodeSeqLib from ..barcodevariant import BcvSeqLib from ..barcodeid import BcidSeqLib from ..basic import BasicSeqLib from ..idonly import IdOnlySeqLib from ..overlap i...
27.974684
82
0.618552
from __future__ import print_function import Tkinter as tk import ttk import tkSimpleDialog from collections import OrderedDict from ..barcode import BarcodeSeqLib from ..barcodevariant import BcvSeqLib from ..barcodeid import BcidSeqLib from ..basic import BasicSeqLib from ..idonly import IdOnlySeqLib from ..overlap i...
true
true
f741753948b040c1100fddf307f12eaae7254d8f
8,197
py
Python
test/test_contracts.py
Eternity-labs/py-substrate-interface
c6247d1c33a97acecb339a079b55b9a009cc1f8e
[ "Apache-2.0" ]
null
null
null
test/test_contracts.py
Eternity-labs/py-substrate-interface
c6247d1c33a97acecb339a079b55b9a009cc1f8e
[ "Apache-2.0" ]
null
null
null
test/test_contracts.py
Eternity-labs/py-substrate-interface
c6247d1c33a97acecb339a079b55b9a009cc1f8e
[ "Apache-2.0" ]
null
null
null
# Python Substrate Interface Library # # Copyright 2018-2020 Stichting Polkascan (Polkascan Foundation). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
40.985
121
0.704282
import os import unittest from scalecodec import ScaleBytes from substrateinterface import SubstrateInterface, ContractMetadata, ContractInstance, Keypair from substrateinterface.contracts import ContractEvent from substrateinterface.exceptions import ContractMetadataParseException from substrateinterf...
true
true
f7417603f441a958ef8fb441a3eb7b2913a70d96
48,590
py
Python
pytorch_translate/rnn.py
haowei01/translate
e413a981667f1038ea9ab01bd9c6d0c013b03b0c
[ "BSD-3-Clause" ]
null
null
null
pytorch_translate/rnn.py
haowei01/translate
e413a981667f1038ea9ab01bd9c6d0c013b03b0c
[ "BSD-3-Clause" ]
null
null
null
pytorch_translate/rnn.py
haowei01/translate
e413a981667f1038ea9ab01bd9c6d0c013b03b0c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.onnx.operators from fairseq import utils from fairseq.models import ( FairseqEncoder, FairseqModel, register_model, register_model_architecture, ) from pytorch_translate import rnn_...
38.050117
88
0.596851
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.onnx.operators from fairseq import utils from fairseq.models import ( FairseqEncoder, FairseqModel, register_model, register_model_architecture, ) from pytorch_translate import rnn_cell from pytorch_tr...
true
true
f7417635e0c7731f23b214b606f32c54dfd75a7d
1,096
py
Python
Leet-Code/Smallest-Integer-Divisible-by-K.py
aminzayer/My-Python-Code
475e99a134f11e5784478c1d68bce7033ffe02a2
[ "MIT" ]
2
2022-02-16T22:24:14.000Z
2022-02-24T16:59:42.000Z
Leet-Code/Smallest-Integer-Divisible-by-K.py
aminzayer/My-Python-Code
475e99a134f11e5784478c1d68bce7033ffe02a2
[ "MIT" ]
null
null
null
Leet-Code/Smallest-Integer-Divisible-by-K.py
aminzayer/My-Python-Code
475e99a134f11e5784478c1d68bce7033ffe02a2
[ "MIT" ]
null
null
null
""" Given a positive integer k, you need to find the length of the smallest positive integer n such that n is divisible by k, and n only contains the digit 1. Return the length of n. If there is no such n, return -1. Note: n may not fit in a 64-bit signed integer. Example 1: Input: k = 1 Output: 1 Explanation: The...
21.076923
158
0.622263
class Solution: def smallestRepunitDivByK(self, k: int) -> int: if(k % 2 == 0 or k % 5 == 0): return -1 number = 0 len = 1 for len in range(1, k + 1): number = (number * 10 + 1) % k if number == 0: return len r...
true
true
f74176df95f9b2a3167eadedf732436f9fc2acbf
10,833
py
Python
ukis_pysat/file.py
albernsrya/ukis-pysat
9161d8c92ca6354c8ce233499f31962439325bd2
[ "Apache-2.0" ]
1
2021-07-03T14:05:22.000Z
2021-07-03T14:05:22.000Z
ukis_pysat/file.py
albernsrya/ukis-pysat
9161d8c92ca6354c8ce233499f31962439325bd2
[ "Apache-2.0" ]
null
null
null
ukis_pysat/file.py
albernsrya/ukis-pysat
9161d8c92ca6354c8ce233499f31962439325bd2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import contextlib import os import tempfile import xml.etree.ElementTree as ET import zipfile from datetime import datetime, timezone from pathlib import Path from re import compile from typing import List, Union, Dict, Iterator, Tuple, Any, Pattern def env_get(key: str, boolean: bool = False)...
41.826255
130
0.668882
import contextlib import os import tempfile import xml.etree.ElementTree as ET import zipfile from datetime import datetime, timezone from pathlib import Path from re import compile from typing import List, Union, Dict, Iterator, Tuple, Any, Pattern def env_get(key: str, boolean: bool = False) -> Union[str, bool]: ...
true
true
f74179300cbce095b6433e22c771375c6749e67b
2,076
py
Python
pyremo/core/exp.py
remo-rcm/pyremo2
59bd18d411944205db93c062439172f91ba99f83
[ "MIT" ]
null
null
null
pyremo/core/exp.py
remo-rcm/pyremo2
59bd18d411944205db93c062439172f91ba99f83
[ "MIT" ]
2
2020-10-05T07:27:31.000Z
2020-12-10T22:59:54.000Z
pyremo/core/exp.py
remo-rcm/pyremo2
59bd18d411944205db93c062439172f91ba99f83
[ "MIT" ]
null
null
null
"""Module for working and parsing Remo output files. """ import os from pathlib import Path import pandas as pd import parse from tqdm import tqdm file_pattern = "e{usr_nr:3d}{exp_nr:3d}{type:1}{date}" efile_pattern = "e{usr_nr:3d}{exp_nr:3d}{type:1}_c{code:3d}_{date}" date_patterns = ["%Y", "%Y%m", "%Y%m%d", "%Y%m%...
27.315789
76
0.606455
import os from pathlib import Path import pandas as pd import parse from tqdm import tqdm file_pattern = "e{usr_nr:3d}{exp_nr:3d}{type:1}{date}" efile_pattern = "e{usr_nr:3d}{exp_nr:3d}{type:1}_c{code:3d}_{date}" date_patterns = ["%Y", "%Y%m", "%Y%m%d", "%Y%m%d", "%Y%m%d%H", "%Y%m%d%H%M"] patterns = [efile_pattern,...
true
true
f7417a3ac6f738c4efcf08ae4ff0bd59e22aaf89
10,412
py
Python
safe_transaction_service/history/tests/test_transaction_service.py
fmrsabino/safe-transaction-service
bafc7a7f76c282295efa8de19958185ef7773622
[ "MIT" ]
null
null
null
safe_transaction_service/history/tests/test_transaction_service.py
fmrsabino/safe-transaction-service
bafc7a7f76c282295efa8de19958185ef7773622
[ "MIT" ]
null
null
null
safe_transaction_service/history/tests/test_transaction_service.py
fmrsabino/safe-transaction-service
bafc7a7f76c282295efa8de19958185ef7773622
[ "MIT" ]
null
null
null
from datetime import timedelta from django.test import TestCase from django.utils import timezone from eth_account import Account from ..models import EthereumTx, ModuleTransaction, MultisigTransaction from ..services.transaction_service import (TransactionService, Transac...
58.167598
123
0.714944
from datetime import timedelta from django.test import TestCase from django.utils import timezone from eth_account import Account from ..models import EthereumTx, ModuleTransaction, MultisigTransaction from ..services.transaction_service import (TransactionService, Transac...
true
true
f7417ceec713b8a797fd1f0a976b86dba2255ef5
3,752
py
Python
django-openstack/django_openstack/auth/views.py
ajeygore/openstack-dashboard
cf310588aed0ee5f95813b64eefaf5ff3ebb078b
[ "Apache-2.0" ]
2
2015-05-18T13:50:27.000Z
2015-05-18T14:47:13.000Z
django-openstack/django_openstack/auth/views.py
tylesmit/openstack-dashboard
8199011a98aa8bc5672e977db014f61eccc4668c
[ "Apache-2.0" ]
null
null
null
django-openstack/django_openstack/auth/views.py
tylesmit/openstack-dashboard
8199011a98aa8bc5672e977db014f61eccc4668c
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2011 Fourth Paradigm Development, Inc. # # Licensed under the Apache License, Version 2.0 (the "Licen...
35.733333
85
0.646055
import logging from django import template from django import shortcuts from django.contrib import messages from django_openstack import api from django_openstack import forms from openstackx.api import exceptions as api_exceptions LOG = logging.getLogger('django_openstack.auth') class Login(f...
true
true
f7417d91583c49f1564373a59768683ba50edfec
1,687
py
Python
config/wsgi.py
seankim84/twitter
71cbcd821effc4e77588b195d770ef003887d322
[ "MIT" ]
null
null
null
config/wsgi.py
seankim84/twitter
71cbcd821effc4e77588b195d770ef003887d322
[ "MIT" ]
null
null
null
config/wsgi.py
seankim84/twitter
71cbcd821effc4e77588b195d770ef003887d322
[ "MIT" ]
null
null
null
""" WSGI config for twitter project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`` ...
39.232558
79
0.795495
import os import sys from django.core.wsgi import get_wsgi_application app_path = os.path.abspath(os.path.join( os.path.dirname(os.path.abspath(__file__)), os.pardir)) sys.path.append(os.path.join(app_path, 'twitter')) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.production") # set...
true
true
f7417edd0f9efed7bd9d3092959629162e01737a
587
py
Python
oops_fhir/r4/value_set/v3_observation_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/v3_observation_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/value_set/v3_observation_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.valueset import ValueSet as _ValueSet from oops_fhir.utils import ValueSet from oops_fhir.r4.code_system.v3_act_code import v3ActCode __all__ = ["v3ObservationType"] _resource = _ValueSet.parse_file(Path(__file__).with_suffix(".json")) class v3ObservationType(v3ActC...
20.241379
69
0.747871
from pathlib import Path from fhir.resources.valueset import ValueSet as _ValueSet from oops_fhir.utils import ValueSet from oops_fhir.r4.code_system.v3_act_code import v3ActCode __all__ = ["v3ObservationType"] _resource = _ValueSet.parse_file(Path(__file__).with_suffix(".json")) class v3ObservationType(v3ActC...
true
true