hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
c8aff4b9ed8b3817acf62ab9957b73694d696793
2,494
py
Python
tests/modules/embedders/test_trainable_word_embedder.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
50
2019-09-13T10:32:29.000Z
2022-02-14T16:52:53.000Z
tests/modules/embedders/test_trainable_word_embedder.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
31
2019-09-03T11:06:03.000Z
2021-08-20T14:57:09.000Z
tests/modules/embedders/test_trainable_word_embedder.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
9
2019-09-16T03:25:15.000Z
2021-05-11T10:28:25.000Z
import pytest import sciwing.constants as constants import pathlib from sciwing.datasets.seq_labeling.seq_labelling_dataset import ( SeqLabellingDatasetManager, ) from sciwing.utils.common import chunks from sciwing.modules.embedders.trainable_word_embedder import TrainableWordEmbedder import torch from sciwing.uti...
34.638889
86
0.744988
c8aff8de0a0aa97674c5cb7a798fcadf80717342
875
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/version-tolerant/Expected/AcceptanceTests/BodyByteVersionTolerant/bodybyteversiontolerant/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
43.75
114
0.661714
c8b0029f94a79d39821ee7697800669525a830bf
5,188
py
Python
pywinauto/taskbar.py
nimuston/pywinauto
3f61f7dea13b2e5b1282d65d2ae8247aae00b06f
[ "BSD-3-Clause" ]
1
2021-01-31T08:10:34.000Z
2021-01-31T08:10:34.000Z
pywinauto/taskbar.py
nimuston/pywinauto
3f61f7dea13b2e5b1282d65d2ae8247aae00b06f
[ "BSD-3-Clause" ]
null
null
null
pywinauto/taskbar.py
nimuston/pywinauto
3f61f7dea13b2e5b1282d65d2ae8247aae00b06f
[ "BSD-3-Clause" ]
null
null
null
# GUI Application automation and testing library # Copyright (C) 2006-2016 Mark Mc Mahon and Contributors # https://github.com/pywinauto/pywinauto/graphs/contributors # http://pywinauto.github.io/docs/credits.html # All rights reserved. # # Redistribution and use in source and binary forms, with or without # mod...
45.113043
108
0.761565
c8b004c5c5dfa131682440bc6a68c4fe5e14e5ab
2,035
py
Python
funcBlasiBranca.py
Lyle-zhang/kinetic_schemes
dc572bd1eedfddb871767573724cadddc57db76d
[ "MIT" ]
1
2021-12-27T11:14:58.000Z
2021-12-27T11:14:58.000Z
funcBlasiBranca.py
Lyle-zhang/kinetic_schemes
dc572bd1eedfddb871767573724cadddc57db76d
[ "MIT" ]
null
null
null
funcBlasiBranca.py
Lyle-zhang/kinetic_schemes
dc572bd1eedfddb871767573724cadddc57db76d
[ "MIT" ]
1
2021-08-14T13:40:24.000Z
2021-08-14T13:40:24.000Z
""" Function based on Blasi 2001 kinetic reaction scheme for biomass pyrolysis. Reactions are evaluated at some temperature. Reference: Blasi, Branca, 2001. Ind. Eng. Chem. Res., 40, pp.5547-5556. """ # Modules # ----------------------------------------------------------------------------- import numpy as np # Fun...
33.360656
79
0.482555
c8b02fd10190f590c03cc5d09a25be35e593ca9b
32,419
py
Python
sphinxcontrib/confluencebuilder/builder.py
hedgetech/confluencebuilder
bc60b4c55c9ad3d8d36dff89d80df7d3d5666229
[ "BSD-2-Clause" ]
null
null
null
sphinxcontrib/confluencebuilder/builder.py
hedgetech/confluencebuilder
bc60b4c55c9ad3d8d36dff89d80df7d3d5666229
[ "BSD-2-Clause" ]
null
null
null
sphinxcontrib/confluencebuilder/builder.py
hedgetech/confluencebuilder
bc60b4c55c9ad3d8d36dff89d80df7d3d5666229
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ :copyright: Copyright 2016-2020 by the contributors (see AUTHORS file). :license: BSD-2-Clause, see LICENSE for details. """ from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from .assets import ConfluenceAssetManage...
41.562821
81
0.602455
c8b03ba2467043368658992a83002bf33635d31d
5,950
py
Python
salt/pillar/mongo.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2016-07-07T18:43:05.000Z
2016-07-07T18:43:05.000Z
salt/pillar/mongo.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
salt/pillar/mongo.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2020-12-04T11:28:06.000Z
2020-12-04T11:28:06.000Z
''' Read pillar data from a mongodb collection. This module will load a node-specific pillar dictionary from a mongo collection. It uses the node's id for lookups and can load either the whole document, or just a specific field from that document as the pillar dictionary. Salt Master Mongo Configuration =============...
36.956522
121
0.644874
c8b0c19c63396e4d1a40d3e3c590cdac8d0e57ac
302
py
Python
api/users/urls.py
dplorimer/osf
9f3f400f62dc7bde18532949ed35bf1d3f6ec3d6
[ "Apache-2.0" ]
null
null
null
api/users/urls.py
dplorimer/osf
9f3f400f62dc7bde18532949ed35bf1d3f6ec3d6
[ "Apache-2.0" ]
null
null
null
api/users/urls.py
dplorimer/osf
9f3f400f62dc7bde18532949ed35bf1d3f6ec3d6
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.UserList.as_view(), name='user-list'), url(r'^(?P<user_id>\w+)/$', views.UserDetail.as_view(), name='user-detail'), url(r'^(?P<user_id>\w+)/nodes/$', views.UserNodes.as_view(), name='user-nodes'), ]
23.230769
84
0.629139
c8b0d347d69410cd306c97cffd9471253ff284e9
24,134
py
Python
dapper/stats.py
myying/DAPPER
2f92fcb5610f9b2d44bb077ac5ed5438ac5fd6b3
[ "MIT" ]
1
2022-01-03T19:08:32.000Z
2022-01-03T19:08:32.000Z
dapper/stats.py
myying/DAPPER
2f92fcb5610f9b2d44bb077ac5ed5438ac5fd6b3
[ "MIT" ]
null
null
null
dapper/stats.py
myying/DAPPER
2f92fcb5610f9b2d44bb077ac5ed5438ac5fd6b3
[ "MIT" ]
null
null
null
"""Stats computation for the assessment of DA methods.""" import warnings import numpy as np import scipy.linalg as sla import struct_tools from matplotlib import pyplot as plt from patlib.std import do_once from tabulate import tabulate import dapper.tools.liveplotting as liveplotting import dapper.tools.series as ...
35.543446
88
0.544543
c8b0dd62970e341a3c6b176278fe1c2adfcd8d20
3,792
py
Python
tensorflow/contrib/estimator/python/estimator/logit_fns.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/estimator/python/estimator/logit_fns.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/estimator/python/estimator/logit_fns.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.092784
80
0.726793
c8b11edc34b966b073fe8813f17648f2425143fc
1,907
py
Python
Test.py
BaiganKing/DecisionTree-From-Scratch
41a82305d6a3bf31a01270443d34662205d80a36
[ "MIT" ]
null
null
null
Test.py
BaiganKing/DecisionTree-From-Scratch
41a82305d6a3bf31a01270443d34662205d80a36
[ "MIT" ]
null
null
null
Test.py
BaiganKing/DecisionTree-From-Scratch
41a82305d6a3bf31a01270443d34662205d80a36
[ "MIT" ]
null
null
null
from DecisionTree import DecisionTree as dt from sklearn.model_selection import train_test_split from sklearn.datasets import load_iris def accuracy(prediction, actual): """ :param prediction: :param actual: :return accuaracy: Simple function to compute raw accuaracy score quick comparis...
31.262295
94
0.68904
c8b1245709af9f50cf39de74ccd175cd517f2663
2,032
py
Python
data_manager/datasets.py
Howe-Young/asc_triplet
12a018e6fd14c61ffedc87c8609b128e28c51d8d
[ "MIT" ]
7
2019-01-08T11:02:50.000Z
2021-01-12T14:16:51.000Z
data_manager/datasets.py
Howe-Young/asc_triplet
12a018e6fd14c61ffedc87c8609b128e28c51d8d
[ "MIT" ]
4
2019-01-08T12:47:58.000Z
2019-01-09T12:18:54.000Z
data_manager/datasets.py
Howe-Young/asc_triplet
12a018e6fd14c61ffedc87c8609b128e28c51d8d
[ "MIT" ]
6
2019-01-04T14:13:47.000Z
2020-06-17T07:48:17.000Z
import numpy as np from torch.utils.data import Dataset from data_manager.data_prepare import Dcase18TaskbData from data_manager.dcase17_manager import Dcase17Data from data_manager.dcase17_stdrizer import Dcase17Standarizer """ implement datasets class """ class DevSet(Dataset): """ specify mode and device,...
33.311475
99
0.676673
c8b13c2f2e5df245b72be94b426f91c197f3385b
876
py
Python
tests/conftest.py
dorosch/django-readonly-model
991836e47ab97c0c19d0f25a14cc64ea24b9506f
[ "MIT" ]
null
null
null
tests/conftest.py
dorosch/django-readonly-model
991836e47ab97c0c19d0f25a14cc64ea24b9506f
[ "MIT" ]
null
null
null
tests/conftest.py
dorosch/django-readonly-model
991836e47ab97c0c19d0f25a14cc64ea24b9506f
[ "MIT" ]
null
null
null
from django import conf from readonly_model import settings def pytest_configure(): conf.settings.configure( DATABASES={ 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:' } }, SECRET_KEY='not need secret key in ...
29.2
70
0.568493
c8b173b577af871d6a9bf4dd7f945adcfcdbf02f
310
py
Python
humidity_sensor.py
bilaleluneis/RaspberryPiRainbowHat
d3cec27c1be3fdf0243ba1e9640c87039b21c9f6
[ "MIT" ]
null
null
null
humidity_sensor.py
bilaleluneis/RaspberryPiRainbowHat
d3cec27c1be3fdf0243ba1e9640c87039b21c9f6
[ "MIT" ]
null
null
null
humidity_sensor.py
bilaleluneis/RaspberryPiRainbowHat
d3cec27c1be3fdf0243ba1e9640c87039b21c9f6
[ "MIT" ]
null
null
null
from Adafruit_DHT import read_retry, DHT11 from time import sleep def main(): while True: humidity, temp = read_retry(DHT11, 18) if humidity is not None: print("Current Humidity={}% and temp={}".format(humidity, temp)) sleep(2) if __name__ == "__main__": main()
20.666667
76
0.622581
c8b1764eb2d887c8f0d30d01b81ea0212b3d0f40
1,390
py
Python
cleverhans/utils_mnist.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
21
2019-06-07T17:05:30.000Z
2022-02-07T03:25:15.000Z
cleverhans/utils_mnist.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
7
2019-12-16T22:20:01.000Z
2022-02-10T00:45:21.000Z
cleverhans/utils_mnist.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
8
2019-06-11T03:06:29.000Z
2022-01-18T04:18:27.000Z
# pylint: disable=missing-docstring from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import tempfile import warnings from cleverhans import dataset utils_mnist_warning = "cleverhans.utils_mnist is deprecrate...
35.641026
76
0.692086
c8b18f522ca691d7014cd7f30d0095ea5463d68e
551
py
Python
terrascript/resource/alertmixer/amixr.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/alertmixer/amixr.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/alertmixer/amixr.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/alertmixer/amixr.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:11:40 UTC) import terrascript class amixr_escalation(terrascript.Resource): pass class amixr_integration(terrascript.Resource): pass class amixr_on_call_shift(terrascript.Resource): pass class a...
16.69697
73
0.745917
c8b190d9bc250279d338c2c90ea215df043082ad
2,355
py
Python
tests/test_fci-h2o-2.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
tests/test_fci-h2o-2.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
tests/test_fci-h2o-2.py
nuwandesilva/qcdb
b47fb2ed550fc4176198ddb1dbea3724d6704d23
[ "BSD-3-Clause" ]
null
null
null
from .addons import using_psi4, using_gamess from .utils import * import qcdb _refnuc = 9.2342185209120 _refscf = -75.985323665263 _refci = -76.1210978474779 _refcorr = _refci - _refscf def system_water(): h2o = qcdb.set_molecule(""" O .0000000000 .0000000000 -.0742719254 H...
35.149254
109
0.687049
c8b195676a96cf31df1d6bb5fc363f0eb31619a2
17,088
py
Python
radiospectra/sources/callisto.py
binchensun/radiospectra
487fd4d25926378ffa0ce391b4a239506a3686a2
[ "BSD-2-Clause" ]
null
null
null
radiospectra/sources/callisto.py
binchensun/radiospectra
487fd4d25926378ffa0ce391b4a239506a3686a2
[ "BSD-2-Clause" ]
null
null
null
radiospectra/sources/callisto.py
binchensun/radiospectra
487fd4d25926378ffa0ce391b4a239506a3686a2
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import datetime from collections import defaultdict from distutils.version import LooseVersion import numpy as np from bs4 import BeautifulSoup from scipy.ndimage import gaussian_filter1d from scipy.optimize import leastsq from ...
31.527675
92
0.582104
c8b1bf3451645724b2d225bc2a2e84ea45907362
2,196
py
Python
src/transformer/matrix.py
alexchueshev/icsme2020
05a1e2cb52eee8d810e5ff8820fbd78937973620
[ "MIT" ]
null
null
null
src/transformer/matrix.py
alexchueshev/icsme2020
05a1e2cb52eee8d810e5ff8820fbd78937973620
[ "MIT" ]
null
null
null
src/transformer/matrix.py
alexchueshev/icsme2020
05a1e2cb52eee8d810e5ff8820fbd78937973620
[ "MIT" ]
1
2020-08-27T12:05:54.000Z
2020-08-27T12:05:54.000Z
from typing import TYPE_CHECKING from abc import abstractmethod import numpy as np from sklearn.base import BaseEstimator, TransformerMixin from scipy.sparse import coo_matrix if TYPE_CHECKING: from pandas import DataFrame class _MatrixTransformer(BaseEstimator, TransformerMixin): def __init__(self, dims: t...
28.153846
84
0.634791
c8b200ef8c35b48c447c0dd00485616901944e3b
7,069
py
Python
KristaBackup/core/actions/movebkpperiod.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
7
2020-07-28T06:53:02.000Z
2022-03-18T05:23:03.000Z
KristaBackup/core/actions/movebkpperiod.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
1
2020-11-25T16:13:26.000Z
2020-11-25T16:13:26.000Z
KristaBackup/core/actions/movebkpperiod.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
1
2020-07-28T13:47:09.000Z
2020-07-28T13:47:09.000Z
# -*- coding: UTF-8 -*- import os import shutil import functools import re from lib.crontex import CronExpression from common.YamlConfig import AppConfig from .action import Action from .decorators import side_effecting from .mixins import WalkAppierMixin class MoveBkpPeriod(Action, WalkAppierMixin): """Выполн...
31.699552
89
0.526524
c8b233357070eff6ee59660ec06c72fdb18fe45f
9,090
py
Python
tests/ext/aiohttp/test_middleware.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
294
2017-10-10T19:01:04.000Z
2022-03-18T15:52:19.000Z
tests/ext/aiohttp/test_middleware.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
285
2017-10-20T09:27:21.000Z
2022-03-29T15:33:45.000Z
tests/ext/aiohttp/test_middleware.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
134
2017-10-11T13:55:17.000Z
2022-03-23T07:21:17.000Z
""" Tests the middleware for aiohttp server Expects pytest-aiohttp """ import asyncio from aws_xray_sdk import global_sdk_config from unittest.mock import patch from aiohttp import web from aiohttp.web_exceptions import HTTPUnauthorized import pytest from aws_xray_sdk.core.emitters.udp_emitter import UDPEmitter from...
29.705882
92
0.671617
c8b26721ed272b53a194ad3de5553fe52b516997
17,026
py
Python
programs/maya/scripts/rig/modules/foot.py
nicklovin/pipeline
4d8e042783321e5b0ed7b8a713a7db4d2cef9adb
[ "BSD-2-Clause" ]
null
null
null
programs/maya/scripts/rig/modules/foot.py
nicklovin/pipeline
4d8e042783321e5b0ed7b8a713a7db4d2cef9adb
[ "BSD-2-Clause" ]
null
null
null
programs/maya/scripts/rig/modules/foot.py
nicklovin/pipeline
4d8e042783321e5b0ed7b8a713a7db4d2cef9adb
[ "BSD-2-Clause" ]
null
null
null
import maya.cmds as cmds from string import ascii_uppercase from MasterRigger import basicTools as tool from MasterRigger import attributeManipulation as attr from MasterRigger import curve_assignment as crv from MasterRigger import createNodeLibrary as node reverse_foot_parts = ['bank_out', 'bank_in', 'heel', 'toe', ...
43.994832
81
0.544461
c8b269edbc18bd20a23918155b546899385a1acc
1,825
py
Python
twisted/test/test_roots.py
sxamit/twisted
30f6966329c857c3631c60aeb420d84d7828e01e
[ "MIT", "Unlicense" ]
1
2017-08-07T14:52:02.000Z
2017-08-07T14:52:02.000Z
Lib/site-packages/twisted/test/test_roots.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/twisted/test/test_roots.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
1
2018-11-07T12:52:07.000Z
2018-11-07T12:52:07.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. from __future__ import absolute_import, division from twisted.trial import unittest from twisted.python import roots class RootsTests(unittest.TestCase): def testExceptions(self): request = roots.Request() try: r...
28.515625
57
0.548493
c8b282c1a147eb75c07d51b73a08036032d8a36f
14,997
py
Python
src/olympia/ratings/models.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2020-11-15T20:06:40.000Z
2020-11-15T20:06:40.000Z
src/olympia/ratings/models.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1,398
2020-10-08T06:32:26.000Z
2022-03-31T12:06:24.000Z
src/olympia/ratings/models.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2020-06-04T10:18:59.000Z
2020-06-04T10:18:59.000Z
from django.core.cache import cache from django.db import models from django.db.models import Q from django.dispatch import receiver from django.utils.translation import ugettext_lazy as _ import olympia.core.logger from olympia import activity, amo from olympia.amo.fields import PositiveAutoField from olympia.amo.mo...
38.257653
79
0.624658
c8b299c55ab584a5562971a8dd6c4806da93d71a
1,361
py
Python
ML/config1_PP.py
adamslab-ub/UAV-Noise-Experimental-Data-and-Modeling
0127eff7541780b3c5c4dec1b6a1cd75cb59c745
[ "MIT" ]
null
null
null
ML/config1_PP.py
adamslab-ub/UAV-Noise-Experimental-Data-and-Modeling
0127eff7541780b3c5c4dec1b6a1cd75cb59c745
[ "MIT" ]
null
null
null
ML/config1_PP.py
adamslab-ub/UAV-Noise-Experimental-Data-and-Modeling
0127eff7541780b3c5c4dec1b6a1cd75cb59c745
[ "MIT" ]
2
2021-11-01T21:47:57.000Z
2021-12-07T07:27:48.000Z
import torch device = torch.device('cuda:0') D_in = 8 D_invin = 80 D_invout = 30 D_out = 1 lr = 1e-5 dropout = 0.1 batch_size = 10 epochs = 200 Hidden_layer_size = 100 Num_layers = 5 weight_decay = 0#1e-5 # mono_loc=torch.cuda.FloatTensor([[0.642718009121920, -0.769149253898193, -1.99925545455873, 1.99747800231622], ...
35.815789
113
0.657605
c8b2af96d2fe84d7ca65de888303c7d02d015bfa
1,833
py
Python
models/layers/Encoder.py
gamerDecathlete/NormalizingFlowsNMT
5bff15058cad26c52002c026daa906b5aa8b894b
[ "MIT" ]
null
null
null
models/layers/Encoder.py
gamerDecathlete/NormalizingFlowsNMT
5bff15058cad26c52002c026daa906b5aa8b894b
[ "MIT" ]
null
null
null
models/layers/Encoder.py
gamerDecathlete/NormalizingFlowsNMT
5bff15058cad26c52002c026daa906b5aa8b894b
[ "MIT" ]
null
null
null
import torch.nn as nn from torch.nn.utils.rnn import pad_packed_sequence, pack_padded_sequence import torch class Encoder(nn.Module): """Encodes a sequence of word embeddings""" def __init__(self, input_size, hidden_size, num_layers=1, dropout=0.): super(Encoder, self).__init__() self.num_layer...
44.707317
104
0.656301
c8b2c1d8693df15d9c1e28d1c728dbf456abbc3e
745
py
Python
office365/sharepoint/portal/SPSiteCreationRequest.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
office365/sharepoint/portal/SPSiteCreationRequest.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
office365/sharepoint/portal/SPSiteCreationRequest.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
from office365.runtime.client_value_object import ClientValueObject class SPSiteCreationRequest(ClientValueObject): def __init__(self, title, url, owner=None): self.Title = title self.Url = url self.WebTemplate = "SITEPAGEPUBLISHING#0" self.Owner = owner self.Lcid = 1033 ...
33.863636
76
0.692617
c8b2cdea1c31897280b8dd337955f5c3237778ac
1,969
py
Python
libs/parallel_utils.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
155
2020-03-18T13:23:42.000Z
2022-03-19T23:57:10.000Z
libs/parallel_utils.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
418
2020-03-20T02:22:01.000Z
2022-03-31T23:05:08.000Z
libs/parallel_utils.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
63
2020-03-19T07:04:23.000Z
2022-02-25T13:51:26.000Z
import multiprocessing import os import platform from typing import Callable, TypeVar, Iterable from pandarallel import pandarallel import pandas as pd import structlog _log = structlog.get_logger() VISIBIBLE_PROGRESS_BAR = os.environ.get("PYSEIR_VERBOSITY") == "True" pandarallel.initialize(progress_bar=VISIBIBLE_PR...
38.607843
109
0.741493
c8b2d0b188bc0ea7c18ee9e395477211eb2f60cc
364
py
Python
ros/build/tl_detector/catkin_generated/pkg.develspace.context.pc.py
bryantravissmith/SelfDrivingCar-ND-Capstone
58147b0b3977a918b2cf9f182c315c8dd7c041e2
[ "MIT" ]
null
null
null
ros/build/tl_detector/catkin_generated/pkg.develspace.context.pc.py
bryantravissmith/SelfDrivingCar-ND-Capstone
58147b0b3977a918b2cf9f182c315c8dd7c041e2
[ "MIT" ]
11
2020-01-28T23:13:19.000Z
2022-03-12T00:10:25.000Z
ros/build/tl_detector/catkin_generated/pkg.develspace.context.pc.py
bryantravissmith/SelfDrivingCar-ND-Capstone
58147b0b3977a918b2cf9f182c315c8dd7c041e2
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "tl_detector" PROJECT_SPACE_DIR = "/ca...
40.444444
68
0.700549
c8b2d0dd436e487e96d6b60f9501646c8fcb1185
7,585
py
Python
posthog/api/team.py
PostHog/posthog-foss
ea18305bba5c49d3823ee2f304b0476a2f1addef
[ "MIT" ]
58
2020-08-26T16:26:18.000Z
2022-03-30T05:32:23.000Z
posthog/api/team.py
PostHog/posthog-foss
ea18305bba5c49d3823ee2f304b0476a2f1addef
[ "MIT" ]
2
2021-01-12T14:25:06.000Z
2021-08-28T04:45:33.000Z
posthog/api/team.py
PostHog/posthog-foss
ea18305bba5c49d3823ee2f304b0476a2f1addef
[ "MIT" ]
13
2020-09-08T13:27:07.000Z
2022-03-19T17:27:10.000Z
from typing import Any, Dict, List, Optional, Type, cast from django.db import transaction from django.shortcuts import get_object_or_404 from rest_framework import exceptions, permissions, request, response, serializers, viewsets from rest_framework.decorators import action from posthog.api.shared import TeamBasicSe...
41.906077
121
0.661173
c8b2d295d26eac4b473ce142e529bb56ce185907
6,164
py
Python
numeric_numpad.py
pmcloete/numpad
5ab86ecd9d9d8778ba2807250219b78eab6d5df5
[ "MIT" ]
null
null
null
numeric_numpad.py
pmcloete/numpad
5ab86ecd9d9d8778ba2807250219b78eab6d5df5
[ "MIT" ]
null
null
null
numeric_numpad.py
pmcloete/numpad
5ab86ecd9d9d8778ba2807250219b78eab6d5df5
[ "MIT" ]
null
null
null
import PySimpleGUI as sg from PySimpleGUI.PySimpleGUI import DEFAULT_BASE64_ICON, DEFAULT_BASE64_ICON_16_BY_16, ICON_BUY_ME_A_COFFEE, InputText, set_global_icon from themes import Themes class Numpad: """Creates a numpad""" def __init__(self): """Initialize the keypad""" # GUI Instance ...
39.012658
148
0.503569
c8b31169fd79c6e819bbe5eac890af099de15377
1,745
py
Python
services/traction/acapy_wrapper/models/v10_credential_conn_free_offer_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_wrapper/models/v10_credential_conn_free_offer_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_wrapper/models/v10_credential_conn_free_offer_request.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
# coding: utf-8 from __future__ import annotations from datetime import date, datetime # noqa: F401 import re # noqa: F401 from typing import Any, Dict, List, Optional # noqa: F401 from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401 from acapy_wrapper.models.credential_preview import Credent...
38.777778
197
0.741547
c8b322b3c832a88d5cf244fb45a09cad2c3e5a95
161,026
py
Python
pandas/tests/tseries/offsets/test_offsets.py
chrisdonlan/pandas
af4e2ce19c9c0b89db4bc06d7730b68068c6aeae
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/tseries/offsets/test_offsets.py
chrisdonlan/pandas
af4e2ce19c9c0b89db4bc06d7730b68068c6aeae
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/tseries/offsets/test_offsets.py
chrisdonlan/pandas
af4e2ce19c9c0b89db4bc06d7730b68068c6aeae
[ "BSD-3-Clause" ]
null
null
null
from datetime import date, datetime, time as dt_time, timedelta from typing import Dict, List, Optional, Tuple, Type import numpy as np import pytest from pandas._libs.tslibs import ( NaT, OutOfBoundsDatetime, Timestamp, conversion, timezones, ) from pandas._libs.tslibs.frequencies import ( IN...
36.373616
88
0.505179
c8b337174a0f0a28fde7b21a6ae86be0b33fcfe4
1,954
py
Python
stdplugins/auto_profile.py
dqanshi/alluka
f1ac5b227f4e12a4363c6e06b8acc0fd5aac6f1c
[ "Apache-2.0" ]
1
2020-08-02T11:14:29.000Z
2020-08-02T11:14:29.000Z
stdplugins/auto_profile.py
dqanshi/alluka
f1ac5b227f4e12a4363c6e06b8acc0fd5aac6f1c
[ "Apache-2.0" ]
1
2021-02-08T20:41:43.000Z
2021-02-08T20:41:43.000Z
stdplugins/auto_profile.py
dqanshi/alluka
f1ac5b227f4e12a4363c6e06b8acc0fd5aac6f1c
[ "Apache-2.0" ]
1
2020-05-31T07:19:52.000Z
2020-05-31T07:19:52.000Z
# For @UniBorg # (c) Shrimadhav U K """Auto Profile Updation Commands .autoname .autobio""" import asyncio import time from telethon.tl import functions from telethon.errors import FloodWaitError from uniborg.util import admin_cmd DEL_TIME_OUT = 70 @borg.on(admin_cmd(pattern="autobio")) # pylint:disable=E0602 asyn...
30.53125
86
0.585466
c8b359dd9112483ccd0612d0ed3b3804ecdeefe5
674
py
Python
zerver/lib/realm_icon.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
zerver/lib/realm_icon.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
6
2020-09-05T21:07:41.000Z
2021-12-02T17:56:37.000Z
zerver/lib/realm_icon.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
1
2021-01-07T23:27:52.000Z
2021-01-07T23:27:52.000Z
from django.conf import settings from typing import Text from zerver.lib.avatar_hash import gravatar_hash, user_avatar_hash from zerver.lib.upload import upload_backend from zerver.models import Realm def realm_icon_url(realm: Realm) -> Text: return get_realm_icon_url(realm) def get_realm_icon_url(realm: Realm)...
33.7
80
0.753709
c8b36a2e7b774984091be1d98607a4b3d506a54c
2,143
py
Python
tensorflow_federated/python/core/utils/__init__.py
xueyuuu/federated
ad617401324c133eb838e4e0af7442a4dfa71d6e
[ "Apache-2.0" ]
2
2019-07-09T10:04:39.000Z
2019-10-02T05:10:16.000Z
tensorflow_federated/python/core/utils/__init__.py
xueyuuu/federated
ad617401324c133eb838e4e0af7442a4dfa71d6e
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/core/utils/__init__.py
xueyuuu/federated
ad617401324c133eb838e4e0af7442a4dfa71d6e
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2018, The TensorFlow Federated 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 ...
43.734694
88
0.814279
c8b396e19cbc17b9e36409c48a93afa9449a2984
11,336
py
Python
modules/templates/RLPPTM/maintenance.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
modules/templates/RLPPTM/maintenance.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
modules/templates/RLPPTM/maintenance.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
""" Maintenance Tasks for RLPPTM License: MIT """ import datetime import os import time from gluon import current from gluon.settings import global_settings # ============================================================================= class Daily(): """ Daily Maintenance Tasks """ def __call__(se...
34.773006
94
0.476447
c8b3c7df0a8081aa7352046429fdccc9470d95b2
6,794
py
Python
pydreamer/models/rnn.py
danieldugas/pydreamer
247cb1c71555252646e225c53174a19a0260d246
[ "MIT" ]
null
null
null
pydreamer/models/rnn.py
danieldugas/pydreamer
247cb1c71555252646e225c53174a19a0260d246
[ "MIT" ]
null
null
null
pydreamer/models/rnn.py
danieldugas/pydreamer
247cb1c71555252646e225c53174a19a0260d246
[ "MIT" ]
null
null
null
from typing import Tuple, Optional import torch import torch.nn as nn import torch.nn.functional as F import torch.jit as jit from torch import Tensor from torch.nn import Parameter class GRU2Inputs(nn.Module): def __init__(self, input1_dim, input2_dim, mlp_dim=200, state_dim=200, num_layers=1, bidirectional=Fal...
40.927711
134
0.644686
c8b3f89afa65a084d2366b043c74ee04c5c77c17
13,852
py
Python
awx_collection/plugins/modules/tower_credential.py
Mayses/awx
35441694a9707d0d2f57c701970db22110091163
[ "Apache-2.0" ]
1
2021-08-02T10:37:09.000Z
2021-08-02T10:37:09.000Z
awx_collection/plugins/modules/tower_credential.py
Mayses/awx
35441694a9707d0d2f57c701970db22110091163
[ "Apache-2.0" ]
2
2019-03-01T19:08:10.000Z
2020-03-12T09:14:27.000Z
awx_collection/plugins/modules/tower_credential.py
hostinger/awx
dac01b14e2c04c201a162ea03ef8386d822e3923
[ "Apache-2.0" ]
24
2020-11-27T08:37:35.000Z
2021-03-08T13:27:15.000Z
#!/usr/bin/python # coding: utf-8 -*- # Copyright: (c) 2017, Wayne Witzel III <wayne@riotousliving.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_ver...
31.917051
150
0.653624
c8b41b809ef79c4a4d6054c0e927493da5b583f1
8,094
py
Python
rllib/dataset/utilities.py
sebascuri/rllib
6e3cb640cd943b2fda84ad59e72a939563502c2e
[ "MIT" ]
8
2020-10-23T07:52:19.000Z
2022-03-06T13:35:12.000Z
rllib/dataset/utilities.py
sebascuri/rllib
6e3cb640cd943b2fda84ad59e72a939563502c2e
[ "MIT" ]
3
2021-03-04T13:44:01.000Z
2021-03-23T09:57:50.000Z
rllib/dataset/utilities.py
sebascuri/rllib
6e3cb640cd943b2fda84ad59e72a939563502c2e
[ "MIT" ]
3
2021-03-18T08:23:56.000Z
2021-07-06T11:20:12.000Z
"""Utilities for dataset submodule.""" from itertools import product import numpy as np import torch from .datatypes import Observation def _cast_to_iter_class(generator, class_): if class_ in (tuple, list): return class_(generator) else: return class_(*generator) def map_observation(func,...
28.00692
86
0.638992
c8b432fbc0a4d179413740a242893672fbcb26a0
20,229
py
Python
foldit/team_models.py
awb-carleton/pattern-analysis
532066398f2d102031aaa86b9a7c739ee16ceb9c
[ "MIT" ]
null
null
null
foldit/team_models.py
awb-carleton/pattern-analysis
532066398f2d102031aaa86b9a7c739ee16ceb9c
[ "MIT" ]
null
null
null
foldit/team_models.py
awb-carleton/pattern-analysis
532066398f2d102031aaa86b9a7c739ee16ceb9c
[ "MIT" ]
null
null
null
import os from sklearn.ensemble import GradientBoostingRegressor from sklearn.inspection import plot_partial_dependence, permutation_importance from sklearn.linear_model import Ridge from sklearn.model_selection import cross_val_score, ShuffleSplit, ParameterGrid, GroupShuffleSplit from sklearn.feature_selection import...
46.718245
166
0.597953
c8b44b94eeee5e5000f64b36565377189aade6ba
1,237
py
Python
admin/binaries.py
cprovencher/dcos-e2e
c54b3d41f246efe3f90dcf225b0bffdc1f615daa
[ "Apache-2.0" ]
null
null
null
admin/binaries.py
cprovencher/dcos-e2e
c54b3d41f246efe3f90dcf225b0bffdc1f615daa
[ "Apache-2.0" ]
null
null
null
admin/binaries.py
cprovencher/dcos-e2e
c54b3d41f246efe3f90dcf225b0bffdc1f615daa
[ "Apache-2.0" ]
null
null
null
""" Create binaries for the CLIs. """ import logging from pathlib import Path from typing import Set import docker from docker.types import Mount LOGGER = logging.getLogger(__name__) def make_linux_binaries(repo_root: Path) -> Set[Path]: """ Create binaries for Linux in a Docker container. Args: ...
21.327586
66
0.601455
c8b456322ccc94abda25bd7c02073c48517b1a28
876
py
Python
CreatingClassAndObjectInPython.py
trishahanlon/algorithms-review
4e08938526020204d0a7f47982b46c05b0973636
[ "Apache-2.0" ]
null
null
null
CreatingClassAndObjectInPython.py
trishahanlon/algorithms-review
4e08938526020204d0a7f47982b46c05b0973636
[ "Apache-2.0" ]
null
null
null
CreatingClassAndObjectInPython.py
trishahanlon/algorithms-review
4e08938526020204d0a7f47982b46c05b0973636
[ "Apache-2.0" ]
null
null
null
class Parrot: # class attribute species = "bird" # instance attribute def __init__(self, name, age): self.name = name self.age = age # instance methods def sing(self, song): return "{} sings {}".format(self.name, song) def dance(self): return "{} is now dan...
25.764706
79
0.642694
c8b4890e3f0d782ef0b74e10b7cdac1d7c516ca6
3,142
py
Python
trainers/random_average_weights_perweight.py
LaudateCorpus1/learning-subspaces
240122f8a875f580eca92325fb06a98bf71bbf3e
[ "AML" ]
105
2021-03-30T06:03:44.000Z
2022-03-03T15:50:41.000Z
trainers/random_average_weights_perweight.py
LaudateCorpus1/learning-subspaces
240122f8a875f580eca92325fb06a98bf71bbf3e
[ "AML" ]
3
2021-07-16T04:46:25.000Z
2022-01-29T04:47:26.000Z
trainers/random_average_weights_perweight.py
LaudateCorpus1/learning-subspaces
240122f8a875f580eca92325fb06a98bf71bbf3e
[ "AML" ]
12
2021-03-23T17:24:43.000Z
2022-03-26T11:43:12.000Z
# # For licensing see accompanying LICENSE file. # Copyright (C) 2020 Apple Inc. All Rights Reserved. # import numpy as np import torch import torch.nn as nn import utils from args import args def init(model, writer, train_loader): pass def train(models, writer, data_loader, optimizers, criterion, epoch): ...
30.803922
82
0.553151
c8b4b30f196c0312327b9f0c06d520815e16178d
1,013
py
Python
doctoreval/__init__.py
progrium/DrEval
8cda2e93f7356656e50d41ab02a06343e8a7b4fe
[ "MIT" ]
17
2015-02-05T17:10:25.000Z
2021-01-07T20:56:16.000Z
doctoreval/__init__.py
progrium/DrEval
8cda2e93f7356656e50d41ab02a06343e8a7b4fe
[ "MIT" ]
null
null
null
doctoreval/__init__.py
progrium/DrEval
8cda2e93f7356656e50d41ab02a06343e8a7b4fe
[ "MIT" ]
3
2015-11-05T12:15:52.000Z
2016-08-02T17:09:33.000Z
from twisted.internet import defer, reactor from twisted.web import server from twisted.application.service import Service from ampoule import pool, main from doctoreval import worker, web __version__ = '0.1.0' __url__ = "http://github.com/progrium/DrEval" @defer.inlineCallbacks def start(port=8123, max_workers=2, t...
28.138889
83
0.682132
c8b4bb70c3f23450f8f66002bd27b535d0c4a476
43,478
py
Python
Data_post_process_scripts/data_post_process_utils.py
pincher-chen/Molten-Salt-Simulation-Toolkit
a9c891617eeb9260e1a33b6a1558f73e9ddbf410
[ "MIT" ]
4
2020-02-10T08:22:42.000Z
2021-03-03T01:34:21.000Z
Data_post_process_scripts/data_post_process_utils.py
pangchq/Molten-Salt-Simulation-Toolkit
9b82be67fde78b4f48ecc409ec89bea14040d2b1
[ "MIT" ]
null
null
null
Data_post_process_scripts/data_post_process_utils.py
pangchq/Molten-Salt-Simulation-Toolkit
9b82be67fde78b4f48ecc409ec89bea14040d2b1
[ "MIT" ]
1
2020-02-08T04:39:44.000Z
2020-02-08T04:39:44.000Z
#!/bin/env python # -*- coding: utf-8 -*- # use numpy to accerlate computation __author__ = 'Gechuanqi Pan' import os import time import glob import re import numpy as np from scipy.optimize import curve_fit from scipy.interpolate import spline import matplotlib.pyplot as plt import MDAnalysis as MDA f...
42.376218
1,031
0.700147
c8b4d016c3726532c63141fbfa0f05ae810e165f
11,987
py
Python
services/traction/acapy_client/model/v20_cred_attr_spec.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_client/model/v20_cred_attr_spec.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_client/model/v20_cred_attr_spec.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
""" Aries Cloud Agent No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v0.7.2 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from acapy_cli...
41.334483
124
0.557687
c8b506dafb3f2dee0a553bd6d73747b2a670b6d4
1,722
py
Python
src/worker/adm_molecule.py
chemspacelab/clockwork
0956d8d29417a974809166857de9a978d7fac677
[ "MIT" ]
null
null
null
src/worker/adm_molecule.py
chemspacelab/clockwork
0956d8d29417a974809166857de9a978d7fac677
[ "MIT" ]
null
null
null
src/worker/adm_molecule.py
chemspacelab/clockwork
0956d8d29417a974809166857de9a978d7fac677
[ "MIT" ]
null
null
null
import numpy as np from rdkit import Chem from rdkit.Chem import AllChem, ChemicalForceFields import rmsd def load_sdf(filename): """ load sdf file and return rdkit mol list args: filename sdf return: list of mol objs """ suppl = Chem.SDMolSupplier(filename, ...
19.348315
77
0.579559
c8b53e6434d6fe0751986675ce956d1ca1a0c999
449
py
Python
django-project/shows/migrations/0004_episode_canonical_url.py
KBIAnews/PodCastle
39d8fd10802b2e37fea846be33ff046b161a4540
[ "MIT" ]
null
null
null
django-project/shows/migrations/0004_episode_canonical_url.py
KBIAnews/PodCastle
39d8fd10802b2e37fea846be33ff046b161a4540
[ "MIT" ]
6
2020-02-24T19:11:26.000Z
2021-05-07T13:44:56.000Z
django-project/shows/migrations/0004_episode_canonical_url.py
KBIAnews/PodCastle
39d8fd10802b2e37fea846be33ff046b161a4540
[ "MIT" ]
1
2018-07-31T16:13:42.000Z
2018-07-31T16:13:42.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-07-31 13:19 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shows', '0003_auto_20180730_1216'), ] operations = [ migrations.AddField( ...
21.380952
46
0.616927
c8b5491876a3e7c8654ca38a526a90de83ce38ff
926
py
Python
py/cidoc_crm_types/entities/e56_language.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/entities/e56_language.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/entities/e56_language.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from .e55_type import E55Type from dataclasses import dataclass @dataclass class E56Language(E55Type): """ Scope note: This class is a specialization of E55 Type and comprises the natural languages in the sense of concepts. This type is used categorically in the model without reference to instances of it, i.e. t...
31.931034
224
0.7473
c8b54f5a34a2862ec524d64970814ffa5012f238
3,930
py
Python
xbots/utils.py
kohloderso/quickbot_bbb
430510b1b3bc54f72fd738b8235abecdfa186ff2
[ "BSD-3-Clause" ]
1
2017-01-07T00:52:04.000Z
2017-01-07T00:52:04.000Z
xbots/utils.py
kohloderso/quickbot_bbb
430510b1b3bc54f72fd738b8235abecdfa186ff2
[ "BSD-3-Clause" ]
null
null
null
xbots/utils.py
kohloderso/quickbot_bbb
430510b1b3bc54f72fd738b8235abecdfa186ff2
[ "BSD-3-Clause" ]
null
null
null
import time import numpy as np # Tic toc constants TICTOC_START = 0 TICTOC_COUNT = 0 TICTOC_MEAN = 0 TICTOC_MAX = -float('inf') TICTOC_MIN = float('inf') def operatingPoint(uStar, uStarThreshold): """ This function returns the steady state tick velocity given some PWM input. uStar: PWM input. uStarT...
29.111111
79
0.586005
c8b55a9b26f551e9703e07f2d07e5cfe05c149b0
79,860
py
Python
sherlock/transient_classifier.py
Mattlk13/sherlock
8b6d12d18b2d2529f972b028c5b9b9cfb1ac0afa
[ "MIT" ]
null
null
null
sherlock/transient_classifier.py
Mattlk13/sherlock
8b6d12d18b2d2529f972b028c5b9b9cfb1ac0afa
[ "MIT" ]
null
null
null
sherlock/transient_classifier.py
Mattlk13/sherlock
8b6d12d18b2d2529f972b028c5b9b9cfb1ac0afa
[ "MIT" ]
null
null
null
#!/usr/local/bin/python # encoding: utf-8 """ *classify a set of transients defined by a database query in the sherlock settings file* :Author: David Young :Date Created: January 5, 2017 """ ################# GLOBAL IMPORTS #################### import sys import os import collections import codecs import re ...
41.080247
2,489
0.569184
c8b55dae587618ce7df7938689aea1702d744144
7,108
py
Python
toontown/estate/House.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/estate/House.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/estate/House.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from pandac.PandaModules import * from toontown.toonbase.ToonBaseGlobal import * from direct.directnotify import DirectNotifyGlobal from toontown.hood import Place from direct.showbase import DirectObject from direct.fsm import StateData from direct.fsm import ClassicFSM, State from direct.fsm import State from direct....
39.270718
143
0.656725
c8b580ca7d6af4fad6449b251936e26ae09de22e
6,703
py
Python
papers/none2021_ecrad/views/fields_comparison.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
papers/none2021_ecrad/views/fields_comparison.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
papers/none2021_ecrad/views/fields_comparison.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
import os import sys from dataclasses import dataclass from typing import Any from matplotlib import colors sys.path.append(os.getcwd()) import pickle import json import numpy as np import matplotlib import matplotlib.pyplot as plt import iris import iris.plot as iplt import cartopy.crs as ccrs import restools from ...
46.874126
141
0.628375
c8b59fc018f671f0bca2fe97475aab706680bc3c
1,319
py
Python
src/notify.py
CrizR/Crypto-Alpha
558674f7d7ad2c2924281ef42f873f5b45a89f2d
[ "MIT" ]
2
2018-10-16T18:29:58.000Z
2020-02-12T14:58:46.000Z
src/notify.py
CrizR/CryptoAlpha
558674f7d7ad2c2924281ef42f873f5b45a89f2d
[ "MIT" ]
null
null
null
src/notify.py
CrizR/CryptoAlpha
558674f7d7ad2c2924281ef42f873f5b45a89f2d
[ "MIT" ]
null
null
null
from twilio.rest import Client HOST_NUMBER = "8312469327" class ClientNotif(object): """ Abstraction used for handling the list of people who want text notifications """ def __init__(self, username, token, mongo_client): self.mongo_client = mongo_client self.db = mongo_client['client_...
36.638889
115
0.648218
c8b5a51fa5186ee2318c4f0ddead63a195c751bf
7,501
py
Python
tests/variantstudy/test_command_factory.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
2
2021-11-15T09:26:33.000Z
2022-02-24T09:53:54.000Z
tests/variantstudy/test_command_factory.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
542
2021-01-11T13:23:47.000Z
2022-03-31T15:38:10.000Z
tests/variantstudy/test_command_factory.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
1
2020-10-01T12:18:15.000Z
2020-10-01T12:18:15.000Z
from unittest.mock import Mock import pytest from antarest.matrixstore.service import MatrixService from antarest.study.storage.variantstudy.business.matrix_constants_generator import ( GeneratorMatrixConstants, ) from antarest.study.storage.variantstudy.command_factory import CommandFactory from antarest.study.s...
31.919149
85
0.480203
c8b5c86f16c3bd47d752d8279ade8c5bc263285c
2,957
py
Python
lib/BatchSystemHelper.py
rmmilewi/pira
58d6510af3d3dfc0581921d9e00bf24d026a8c44
[ "BSD-3-Clause" ]
6
2019-08-15T17:00:33.000Z
2020-10-01T13:01:02.000Z
lib/BatchSystemHelper.py
rmmilewi/pira
58d6510af3d3dfc0581921d9e00bf24d026a8c44
[ "BSD-3-Clause" ]
null
null
null
lib/BatchSystemHelper.py
rmmilewi/pira
58d6510af3d3dfc0581921d9e00bf24d026a8c44
[ "BSD-3-Clause" ]
1
2020-02-18T21:10:11.000Z
2020-02-18T21:10:11.000Z
""" File: BatchSystemHelper.py License: Part of the PIRA project. Licensed under BSD 3 clause license. See LICENSE.txt file at https://github.com/jplehr/pira/LICENSE.txt Description: Needs attention """ import lib.Utility as util import lib.Logging as log queued_job_filename = './queued_job.tmp' class BatchSystemJob...
26.881818
138
0.703416
c8b5f54ab33309847271eb57ee23dd0cf84f6a6c
3,151
py
Python
validation_cuda.py
scaomath/kaggle-riiid-test
6c99deccc33def7e5d0c982b0a9a19612138e893
[ "MIT" ]
null
null
null
validation_cuda.py
scaomath/kaggle-riiid-test
6c99deccc33def7e5d0c982b0a9a19612138e893
[ "MIT" ]
null
null
null
validation_cuda.py
scaomath/kaggle-riiid-test
6c99deccc33def7e5d0c982b0a9a19612138e893
[ "MIT" ]
null
null
null
#%% import gc import random import numpy as np import pandas as pd import cudf import matplotlib.pyplot as plt def fast_merge(left, right, key): return cudf.concat([left.reset_index(drop=True), right.reindex(left[key].values).reset_index(drop=True)], axis=1) DATA...
33.521277
97
0.727388
c8b60472c4867c7f0a46a3e9ad3b1d15661a11e2
1,341
py
Python
jaraco/windows/api/memory.py
jaraco/jaraco.windows
e858172b4d5ee91233a8cc5319de99f17848f090
[ "MIT" ]
21
2016-01-31T00:58:59.000Z
2021-05-06T22:30:56.000Z
jaraco/windows/api/memory.py
jaraco/jaraco.windows
e858172b4d5ee91233a8cc5319de99f17848f090
[ "MIT" ]
14
2016-07-21T12:02:08.000Z
2021-08-06T03:07:54.000Z
jaraco/windows/api/memory.py
jaraco/jaraco.windows
e858172b4d5ee91233a8cc5319de99f17848f090
[ "MIT" ]
5
2016-06-14T04:57:04.000Z
2021-05-06T22:30:57.000Z
import ctypes.wintypes GMEM_MOVEABLE = 0x2 GlobalAlloc = ctypes.windll.kernel32.GlobalAlloc GlobalAlloc.argtypes = ctypes.wintypes.UINT, ctypes.c_size_t GlobalAlloc.restype = ctypes.wintypes.HANDLE GlobalLock = ctypes.windll.kernel32.GlobalLock GlobalLock.argtypes = (ctypes.wintypes.HGLOBAL,) GlobalLock.restype = ct...
31.928571
76
0.816555
c8b60ffb3240506f8106fc71e7689b8b105d65a1
14,297
py
Python
lgi_generative_model_alt.py
RuudFirsa/Graph-GEN
3eb81277954c22f99b7e5a253e71d8d7a79664a3
[ "BSD-3-Clause" ]
3
2019-09-26T07:14:51.000Z
2020-02-06T18:35:10.000Z
lgi_generative_model_alt.py
RuudFirsa/Graph-GEN
3eb81277954c22f99b7e5a253e71d8d7a79664a3
[ "BSD-3-Clause" ]
null
null
null
lgi_generative_model_alt.py
RuudFirsa/Graph-GEN
3eb81277954c22f99b7e5a253e71d8d7a79664a3
[ "BSD-3-Clause" ]
null
null
null
""" Copyright 2019 Ruud van Deursen, Firmenich SA. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaim...
43.063253
755
0.60796
c8b62bb3e00508a20b89f4e6e70ace37e6c186d4
488
py
Python
sdk/anomalydetector/azure-ai-anomalydetector/azure/ai/anomalydetector/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/anomalydetector/azure-ai-anomalydetector/azure/ai/anomalydetector/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/anomalydetector/azure-ai-anomalydetector/azure/ai/anomalydetector/_version.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.8
94
0.528689
c8b652b78268913c0109475ba322ae1d6de6a51c
7,179
py
Python
WP3/Task3.1/spark/jobs/datasetextraction_question5/__init__.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
2
2019-12-10T13:10:58.000Z
2019-12-13T10:11:41.000Z
WP3/Task3.1/spark/jobs/datasetextraction_question5/__init__.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
4
2020-03-31T12:13:45.000Z
2020-04-15T15:59:17.000Z
WP3/Task3.1/spark/jobs/datasetextraction_question5/__init__.py
on-merrit/ON-MERRIT
a21324a54a6365f2f769b5952b0cf5347a97d480
[ "MIT" ]
1
2020-02-26T08:52:39.000Z
2020-02-26T08:52:39.000Z
''' Q5: Distribution of citation counts (incoming) of open access vs subscription papers published by the university. Extracts dataset of OA status of all papers of all the universities listed in THE WUR and for each of those, gets the count of incoming citations available in MAG. A separate csv will be generated for...
55.651163
374
0.705391
c8b657d6d4c6fbbf74afb4ddf14ee5a51f53cb48
966
py
Python
src/experiment/TrainModelExperiment.py
dhruvtapasvi/implementation
964980f431517f4548a87172a05107cdf700fb84
[ "MIT" ]
1
2020-05-25T10:24:58.000Z
2020-05-25T10:24:58.000Z
src/experiment/TrainModelExperiment.py
dhruvtapasvi/implementation
964980f431517f4548a87172a05107cdf700fb84
[ "MIT" ]
1
2017-12-18T02:16:44.000Z
2017-12-18T02:16:44.000Z
src/experiment/TrainModelExperiment.py
dhruvtapasvi/implementation
964980f431517f4548a87172a05107cdf700fb84
[ "MIT" ]
null
null
null
from experiment.Experiment import Experiment from model.VariationalAutoencoder import VariationalAutoencoder from dataset.loader.DatasetLoader import DatasetLoader class TrainModelExperiment(Experiment): def __init__(self, variationalAutoencoder: VariationalAutoencoder, datasetLoader: DatasetLoader, epochs, batch...
43.909091
120
0.747412
c8b67b582f471440fc865101605c5552045e1fb8
4,432
py
Python
api/chalicelib/services/availability_service.py
joseph-behrens/vaccine-availability-notifications
aa8c0be201899c4b789d6599af83959a01c92ad9
[ "MIT" ]
9
2021-03-31T16:10:19.000Z
2022-01-20T22:31:30.000Z
api/chalicelib/services/availability_service.py
joseph-behrens/vaccine-availability-notifications
aa8c0be201899c4b789d6599af83959a01c92ad9
[ "MIT" ]
6
2021-04-17T02:20:46.000Z
2021-05-11T03:19:55.000Z
api/chalicelib/services/availability_service.py
joseph-behrens/vaccine-availability-notifications
aa8c0be201899c4b789d6599af83959a01c92ad9
[ "MIT" ]
1
2021-04-18T00:23:12.000Z
2021-04-18T00:23:12.000Z
import asyncio import json import os from typing import Any, List, Tuple import boto3 from chalicelib.logs.utils import get_logger from chalicelib.services.sqs_service import send_location_availability_to_queue from chalicelib.services.vaccinespotter_service import ( fetch_availability_for_state, ) from chaliceli...
32.82963
86
0.683213
c8b6a4275163be653e0eb9b70bb25e103bd70b07
5,271
py
Python
supplychainpy/bi/recommendation_generator.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
231
2016-05-30T02:34:45.000Z
2022-03-28T17:00:29.000Z
supplychainpy/bi/recommendation_generator.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
77
2016-03-23T16:28:34.000Z
2021-09-30T22:08:03.000Z
supplychainpy/bi/recommendation_generator.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
103
2016-08-10T19:53:09.000Z
2022-03-16T16:34:38.000Z
# Copyright (c) 2015-2016, The Authors and Contributors # <see AUTHORS file> # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the # following conditions are met: # # 1. Redistributions of source code must retain the above copyright n...
50.682692
124
0.741795
c8b6ac7427a19d266b93f5ce9a86347ef0bdd2db
992
py
Python
RMT/Chapter20/Fig_20_3_1.py
cc7768/RecMacroTheoryFigures
487030e8608eea6bd082d28b17c2aaf486c403a7
[ "MIT" ]
11
2017-05-14T16:22:19.000Z
2021-02-24T02:17:58.000Z
RMT/Chapter20/Fig_20_3_1.py
cc7768/RecMacroTheoryFigures
487030e8608eea6bd082d28b17c2aaf486c403a7
[ "MIT" ]
1
2016-02-01T20:28:31.000Z
2016-02-01T20:29:12.000Z
RMT/Chapter20/Fig_20_3_1.py
cc7768/RecMacroTheoryFigures
487030e8608eea6bd082d28b17c2aaf486c403a7
[ "MIT" ]
5
2017-05-13T12:19:30.000Z
2020-10-25T14:41:17.000Z
""" This file produces a figure similar to the one at as chapter 20 section 3 figure 1 in Recursive Macroeconomic Theory. """ import numpy as np import matplotlib.pyplot as plt import seaborn as sn from Chp20Specification import Chp20_Sec3_Economy def Fig_20_3_1(nw=50): # Create the economy described m = Chp...
23.619048
58
0.635081
c8b6f746ceaf3084c4382372fd7733e3ccc0c5ae
31,671
py
Python
monai/transforms/utility/array.py
myron/MONAI
6e7b2d6ad9688b0418eee21efeea196da2ad054f
[ "Apache-2.0" ]
null
null
null
monai/transforms/utility/array.py
myron/MONAI
6e7b2d6ad9688b0418eee21efeea196da2ad054f
[ "Apache-2.0" ]
null
null
null
monai/transforms/utility/array.py
myron/MONAI
6e7b2d6ad9688b0418eee21efeea196da2ad054f
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in wri...
37.929341
119
0.64027
c8b76193928010cdba97f91b7c7c795cf3d539d8
4,656
py
Python
dynamic-programming/frozenlake.py
aopina1/DRLND-Course
1140e101221cfcee16a24d146b4f86cd79d53832
[ "MIT" ]
null
null
null
dynamic-programming/frozenlake.py
aopina1/DRLND-Course
1140e101221cfcee16a24d146b4f86cd79d53832
[ "MIT" ]
7
2019-12-16T22:13:37.000Z
2022-02-10T01:05:42.000Z
dynamic-programming/frozenlake.py
aopina1/DRLND-Course
1140e101221cfcee16a24d146b4f86cd79d53832
[ "MIT" ]
null
null
null
import numpy as np import sys from six import StringIO, b from gym import utils from gym.envs.toy_text import discrete LEFT = 0 DOWN = 1 RIGHT = 2 UP = 3 MAPS = { "4x4": [ "SFFF", "FHFH", "FFFH", "HFFG" ], "8x8": [ "SFFFFFFF", "FFFFFFFF...
34.235294
96
0.488617
c8b773e3988b009436a31b42fdb456c6f8e6defc
222,754
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2021_06_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2021_06_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2021_06_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
45.073654
281
0.674053
c8b7ddc41763319af0d8b7d01c9f4e1e8afed744
1,890
py
Python
tcp_check/setup.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2020-08-08T02:01:01.000Z
2020-08-08T02:01:01.000Z
tcp_check/setup.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
tcp_check/setup.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:45:42.000Z
2018-08-15T05:45:42.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from setuptools import setup from codecs import open # To use a consistent encoding from os import path HERE = path.dirname(path.abspath(__file__)) # Get version info ABOUT = {} with open(path.join(HERE, 'datad...
27.794118
79
0.683069
c8b7e55ca6f7d31147e4f9825ba0240b9bdaede7
21,706
py
Python
ml3d/torch/pipelines/semantic_segmentation.py
kylevedder/Open3D-ML
87ec50ed81d531377b1bb27e5c16f964201eadb0
[ "MIT" ]
447
2020-10-14T23:16:41.000Z
2021-07-27T06:57:45.000Z
ml3d/torch/pipelines/semantic_segmentation.py
kylevedder/Open3D-ML
87ec50ed81d531377b1bb27e5c16f964201eadb0
[ "MIT" ]
118
2020-10-14T10:20:37.000Z
2021-07-27T12:23:18.000Z
ml3d/torch/pipelines/semantic_segmentation.py
kylevedder/Open3D-ML
87ec50ed81d531377b1bb27e5c16f964201eadb0
[ "MIT" ]
80
2020-10-14T17:35:48.000Z
2021-07-23T08:48:17.000Z
import torch, pickle import torch.nn as nn import numpy as np import logging import sys from datetime import datetime from tqdm import tqdm from torch.utils.tensorboard import SummaryWriter from torch.utils.data import Dataset, IterableDataset, DataLoader from pathlib import Path from sklearn.metrics import confusion_...
39.039568
114
0.572607
c8b7e5ec0ab5e0c0f1cce4fdfe67da1e031ac777
480
py
Python
test/manual_test/manual_test_all_examples.py
loonghao/photoshop_python_api
f6796134845fb2b41d023b2085e678aeef822692
[ "MIT" ]
17
2019-03-01T12:09:37.000Z
2020-04-09T14:14:59.000Z
test/manual_test/manual_test_all_examples.py
loonghao/photoshop_python_api
f6796134845fb2b41d023b2085e678aeef822692
[ "MIT" ]
7
2019-04-28T15:20:27.000Z
2020-04-07T19:14:47.000Z
test/manual_test/manual_test_all_examples.py
loonghao/photoshop_python_api
f6796134845fb2b41d023b2085e678aeef822692
[ "MIT" ]
3
2020-02-28T14:27:11.000Z
2020-04-01T16:12:40.000Z
"""Manual test all examples.""" # Import local modules from photoshop.api import Application from pathlib import Path root = Path(__file__).parent.parent.parent.joinpath("examples") for script_file in root.glob("*.py"): try: exec(script_file.read_text()) except Exception as err: print(f"Test f...
25.263158
64
0.70625
c8b809520246bab83df727b82d2659482f28fc74
1,560
py
Python
impacket/examples/logger.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/examples/logger.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/examples/logger.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
1
2022-01-28T00:53:41.000Z
2022-01-28T00:53:41.000Z
#!/usr/bin/python # Copyright (c) 2003-2013 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # Description: This logger is intended to be used by impacket instead # of printing d...
31.836735
71
0.708974
c8b809bb720b39acba606c9c4b9652e34cd2efc9
3,215
py
Python
starro/starro.py
marcosborges/starro-python
24ff71fd51e8ed69caf0abab931ded073cbb0fa8
[ "MIT" ]
3
2021-04-10T23:16:00.000Z
2021-04-12T16:30:22.000Z
starro/starro.py
marcosborges/starro-python
24ff71fd51e8ed69caf0abab931ded073cbb0fa8
[ "MIT" ]
null
null
null
starro/starro.py
marcosborges/starro-python
24ff71fd51e8ed69caf0abab931ded073cbb0fa8
[ "MIT" ]
null
null
null
import re import math def complete(arg): """Turns all characters to an string Args: arg (str): string to be converted Returns: str: converted string on string """ return '*' * len(str(arg)) def password(arg): return complete(arg) def token(arg): return complete(arg) ...
18.477011
79
0.541835
c8b834fd43abfe09632e59132f0fad9f7ebcb356
21
py
Python
prosper/datareader/hitbtc/__init__.py
EVEprosper/ProsperDatareader
31f0d77074c21222161774f4d653326925611167
[ "MIT" ]
null
null
null
prosper/datareader/hitbtc/__init__.py
EVEprosper/ProsperDatareader
31f0d77074c21222161774f4d653326925611167
[ "MIT" ]
14
2017-08-14T02:25:42.000Z
2018-11-16T19:15:52.000Z
prosper/datareader/hitbtc/__init__.py
EVEprosper/ProsperDatareader
31f0d77074c21222161774f4d653326925611167
[ "MIT" ]
null
null
null
from . import quotes
10.5
20
0.761905
c8b836a1ca81c6779113966aa450181466339928
642
py
Python
simplejson/tests/test_errors.py
gitdaniel228/realtor
4366d57b064be87b31c8a036b3ed7a99b2036461
[ "BSD-3-Clause" ]
20
2015-01-26T01:39:44.000Z
2020-05-30T19:04:14.000Z
simplejson/tests/test_errors.py
gitdaniel228/realtor
4366d57b064be87b31c8a036b3ed7a99b2036461
[ "BSD-3-Clause" ]
6
2015-02-23T06:47:09.000Z
2015-06-04T20:31:30.000Z
simplejson/tests/test_errors.py
gitdaniel228/realtor
4366d57b064be87b31c8a036b3ed7a99b2036461
[ "BSD-3-Clause" ]
13
2015-01-26T01:39:45.000Z
2022-03-09T16:45:09.000Z
from unittest import TestCase import simplejson as json class TestErrors(TestCase): def test_string_keys_error(self): data = [{'a': 'A', 'b': (2, 4), 'c': 3.0, ('d',): 'D tuple'}] self.assertRaises(TypeError, json.dumps, data) def test_decode_error(self): err = None try: ...
29.181818
69
0.587227
c8b83dff7bbdee6bd7620668891cb85fa98d7d0d
1,358
py
Python
nova/virt/docker/network.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/virt/docker/network.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/virt/docker/network.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2014 OpenStack Foundation # 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.apach...
36.702703
78
0.67894
c8b84ab98aaf83fa0ffaae2df62a5ee03d44be6c
5,628
py
Python
Analytics/models/widget_layout.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
4
2018-11-21T14:42:18.000Z
2020-05-11T10:52:59.000Z
Analytics/models/widget_layout.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
60
2018-11-21T15:11:59.000Z
2019-12-02T10:46:44.000Z
Analytics/models/widget_layout.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
7
2018-11-21T14:42:44.000Z
2019-11-28T16:24:14.000Z
from typing import NoReturn import logging from sqlalchemy.exc import IntegrityError from db import db logging.basicConfig(level='INFO') logger = logging.getLogger(__name__) class Layouts(db.Model): """ Database model for the layouts table used to persist widget layout data :param widgetID: The wid...
34.740741
101
0.568763
c8b85b69a635f5a582031ffc395ba7bb62e88b62
4,115
py
Python
producten/migrations/0007_auto__add_field_simpelproduct_minimum_hoeveelheid.py
fahrrad/klepro
3257a30a6a20bdcaf51256f31d80126047fd1c63
[ "Apache-2.0" ]
null
null
null
producten/migrations/0007_auto__add_field_simpelproduct_minimum_hoeveelheid.py
fahrrad/klepro
3257a30a6a20bdcaf51256f31d80126047fd1c63
[ "Apache-2.0" ]
null
null
null
producten/migrations/0007_auto__add_field_simpelproduct_minimum_hoeveelheid.py
fahrrad/klepro
3257a30a6a20bdcaf51256f31d80126047fd1c63
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'SimpelProduct.minimum_hoeveelheid' db.add_column(u'produc...
63.307692
200
0.58955
c8b867ae14bd2c7c5ec3b711524b472e14d11e00
408
py
Python
workalendar/asia/qatar.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
workalendar/asia/qatar.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
workalendar/asia/qatar.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from workalendar.core import Calendar from workalendar.core import FRI, SAT, IslamicMixin class Qatar(IslamicMixin, Calendar): "Qatar" WEEKEND_DAYS = (FRI, SAT) FIXED_HOLIDAYS = ( (12, 18, "National Day"), ) include_start_ramadan = True include_eid_al_fitr = Tr...
22.666667
51
0.678922
c8b8867886f58ef268fa5688e334f97ee04e0cfa
6,245
py
Python
hood/views.py
Hillarydalie/jiraniwatch
4d531c066a641cfc6bbeb4f2ade2f71f706aedd3
[ "MIT" ]
null
null
null
hood/views.py
Hillarydalie/jiraniwatch
4d531c066a641cfc6bbeb4f2ade2f71f706aedd3
[ "MIT" ]
7
2020-06-06T00:18:19.000Z
2022-03-12T00:03:41.000Z
hood/views.py
Hillarydalie/jiraniwatch
4d531c066a641cfc6bbeb4f2ade2f71f706aedd3
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from .models import Profile, Hood, Business, Post, Join from django.contrib.sites.shortcuts import get_current_site from django.utils.encoding import force_bytes from django.utils.http import urlsafe_base64_encode from django.template.loader import render_to_string from .fo...
33.395722
115
0.668215
c8b88f12a9d5b66c8b1ef46854ebe6299eaa30c0
14,686
py
Python
adpkd_segmentation/datasets/datasets.py
Florassss/adpkd-segmentation-pytorch
ce06bcf9a5028836255d5845fd9017d6828d6bf7
[ "MIT" ]
null
null
null
adpkd_segmentation/datasets/datasets.py
Florassss/adpkd-segmentation-pytorch
ce06bcf9a5028836255d5845fd9017d6828d6bf7
[ "MIT" ]
null
null
null
adpkd_segmentation/datasets/datasets.py
Florassss/adpkd-segmentation-pytorch
ce06bcf9a5028836255d5845fd9017d6828d6bf7
[ "MIT" ]
null
null
null
import json import numpy as np import torch from pathlib import Path import pandas as pd import pydicom from ast import literal_eval from adpkd_segmentation.data.data_utils import ( get_labeled, get_y_Path, int16_to_uint8, make_dcmdicts, path_2dcm_int16, path_2label, TKV_update, ) from adp...
30.595833
79
0.598597
c8b895867edede5e41cf8ec5444e319101d6e0a1
756
py
Python
algorithms/types.py
Hwhitetooth/jax_muzero
b8ab36251d22e0246d61514841ba17a22f4b2a36
[ "MIT" ]
17
2022-02-27T13:40:25.000Z
2022-03-24T21:06:02.000Z
algorithms/types.py
Hwhitetooth/jax_muzero
b8ab36251d22e0246d61514841ba17a22f4b2a36
[ "MIT" ]
1
2022-03-08T19:47:52.000Z
2022-03-24T21:05:30.000Z
algorithms/types.py
Hwhitetooth/jax_muzero
b8ab36251d22e0246d61514841ba17a22f4b2a36
[ "MIT" ]
1
2022-03-08T14:58:12.000Z
2022-03-08T14:58:12.000Z
"""Customized data structures.""" import collections ActorOutput = collections.namedtuple('ActorOutput', [ 'action_tm1', 'reward', 'observation', 'first', 'last', ]) AgentOutput = collections.namedtuple('AgentOutput', [ 'state', 'logits', 'value_logits', 'value', 'reward_logi...
15.75
53
0.531746
c8b8b9b0404bc2806515f700b5c380a886417ffc
1,392
py
Python
modules/emulator/pytari2600/graphics/pygletstella.py
5space/nesbot
38a9e8cadf0cbe41ee25e0850c244e2834a6e12c
[ "MIT" ]
null
null
null
modules/emulator/pytari2600/graphics/pygletstella.py
5space/nesbot
38a9e8cadf0cbe41ee25e0850c244e2834a6e12c
[ "MIT" ]
null
null
null
modules/emulator/pytari2600/graphics/pygletstella.py
5space/nesbot
38a9e8cadf0cbe41ee25e0850c244e2834a6e12c
[ "MIT" ]
null
null
null
import pyglet from pyglet.gl import * from . import stella window = pyglet.window.Window(visible=False, resizable=True) class PygletColors(stella.Colors): def __init__(self): super(PygletColors, self).__init__() def set_color(self, r, g, b): return [r,g,b] class PygletStella(stella.Stella): ...
30.26087
90
0.653017
c8b8bc547622cfd7091419ea2bd362fa9eda0e47
1,037
py
Python
tql/algo_dl/keras/models/TextRNN.py
Jie-Yuan/1_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
14
2019-06-25T13:46:32.000Z
2020-10-27T02:04:59.000Z
tql/algo_dl/keras/models/TextRNN.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
null
null
null
tql/algo_dl/keras/models/TextRNN.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
7
2019-06-25T13:26:16.000Z
2020-10-27T02:05:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Project : tql-Python. # @File : TextRNN # @Time : 2019-06-24 11:23 # @Author : yuanjie # @Email : yuanjie@xiaomi.com # @Software : PyCharm # @Description : from .BaseModel import BaseModel from tensorflow.python.keras import Input...
33.451613
109
0.644166
c8b8c929934b972bd064eae6e87ac981c255cb8c
5,498
py
Python
google-datacatalog-qlik-connector/tests/google/datacatalog_connectors/qlik/scrape/engine_api_sheets_helper_test.py
anugrah86/datacatalog-connectors-bi
58cc57e12632cbd1e237b3d6930e519333c51f4e
[ "Apache-2.0" ]
27
2020-04-27T21:55:49.000Z
2022-02-18T22:09:13.000Z
google-datacatalog-qlik-connector/tests/google/datacatalog_connectors/qlik/scrape/engine_api_sheets_helper_test.py
anugrah86/datacatalog-connectors-bi
58cc57e12632cbd1e237b3d6930e519333c51f4e
[ "Apache-2.0" ]
36
2020-05-01T15:26:14.000Z
2022-03-26T00:09:19.000Z
google-datacatalog-qlik-connector/tests/google/datacatalog_connectors/qlik/scrape/engine_api_sheets_helper_test.py
anugrah86/datacatalog-connectors-bi
58cc57e12632cbd1e237b3d6930e519333c51f4e
[ "Apache-2.0" ]
18
2020-04-30T22:14:09.000Z
2022-01-13T10:28:03.000Z
#!/usr/bin/python # # Copyright 2021 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
38.447552
79
0.643507
c8b8e0dc8580a98880ec08d347416af1c8187d4b
1,284
py
Python
test/test_inline_response201.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
test/test_inline_response201.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
test/test_inline_response201.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Esper APIs OpenAPI spec version: 1.0.0 Contact: developer@esper.io --------------------------------------------------------- Copyright 2019 Shoonya Enterprises Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. Yo...
24.226415
73
0.720405
c8b90e4cb5c827960cbaef404f361bc87b64b4ef
5,260
py
Python
redbrick/cli/project.py
dereklukacs/redbrick-sdk
4cf93444c1d808694c1601334f9e039e616dfd3d
[ "MIT" ]
1
2020-11-26T04:25:15.000Z
2020-11-26T04:25:15.000Z
redbrick/cli/project.py
redbrick-ai/redbrick-sdk
4cf93444c1d808694c1601334f9e039e616dfd3d
[ "MIT" ]
33
2021-02-04T17:51:53.000Z
2022-03-17T07:28:36.000Z
redbrick/cli/project.py
dereklukacs/redbrick-sdk
4cf93444c1d808694c1601334f9e039e616dfd3d
[ "MIT" ]
1
2021-06-09T10:06:35.000Z
2021-06-09T10:06:35.000Z
"""Main CLI project.""" import os from typing import Optional from halo.halo import Halo # type: ignore from redbrick import _populate_context from redbrick.common.context import RBContext from redbrick.organization import RBOrganization from redbrick.project import RBProject from redbrick.cli.entity import CLICache...
34.605263
99
0.578327
c8b931159cc217d4f910ba95dd5fa8a96bbbc113
764
py
Python
tests/test_function.py
GentleCP/cptools
6816314f7e16168d3ce43c73e335a3c08590acb5
[ "MIT" ]
2
2021-04-17T13:16:38.000Z
2021-06-16T02:26:09.000Z
tests/test_function.py
GentleCP/cptools
6816314f7e16168d3ce43c73e335a3c08590acb5
[ "MIT" ]
null
null
null
tests/test_function.py
GentleCP/cptools
6816314f7e16168d3ce43c73e335a3c08590acb5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ -----------------File Info----------------------- Name: test_function.py Description: Author: GentleCP Email: 574881148@qq.com WebSite: https://www.gentlecp.com Create Date: 2021/4/6 -------------...
28.296296
75
0.52356
c8b97b8febadf522340df99d3beeee987f0b3492
2,996
py
Python
doc/source/conf.py
Algue-Rythme/deel-lip
bfff5765159cd500730129aa282b849283942eed
[ "MIT" ]
null
null
null
doc/source/conf.py
Algue-Rythme/deel-lip
bfff5765159cd500730129aa282b849283942eed
[ "MIT" ]
null
null
null
doc/source/conf.py
Algue-Rythme/deel-lip
bfff5765159cd500730129aa282b849283942eed
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
31.208333
87
0.664887
c8b98dc69d109e08d4609ddd3a98b150f08521fc
6,053
py
Python
exercise_8/submission/DNN.py
best4281/programming-practice-2021
39e826661430f00c1a2aaebd36ceff5e50f98f89
[ "MIT" ]
null
null
null
exercise_8/submission/DNN.py
best4281/programming-practice-2021
39e826661430f00c1a2aaebd36ceff5e50f98f89
[ "MIT" ]
null
null
null
exercise_8/submission/DNN.py
best4281/programming-practice-2021
39e826661430f00c1a2aaebd36ceff5e50f98f89
[ "MIT" ]
null
null
null
import random import numpy as np import tensorflow as tf import keras.layers as layer from matplotlib import pyplot as plt from keras.datasets import cifar10 from keras.models import Model from keras.utils import np_utils from tensorflow import keras from tensorflow.keras import optimizers class ImgDataSet:...
41.458904
143
0.688915
c8b98ea4d9c81883e09b070cd891e9b3406d27a8
3,995
py
Python
WebService/app/forms.py
CryptoSalamander/DeepFake-Detection
f3b1c95ce1955a4c203a9f3d1279c5fbade66684
[ "MIT" ]
null
null
null
WebService/app/forms.py
CryptoSalamander/DeepFake-Detection
f3b1c95ce1955a4c203a9f3d1279c5fbade66684
[ "MIT" ]
null
null
null
WebService/app/forms.py
CryptoSalamander/DeepFake-Detection
f3b1c95ce1955a4c203a9f3d1279c5fbade66684
[ "MIT" ]
1
2021-04-11T06:27:48.000Z
2021-04-11T06:27:48.000Z
from app.models import User from flask_login import current_user from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileAllowed, FileRequired from wtforms import StringField, PasswordField, BooleanField, SubmitField, IntegerField, TextField from wtforms.validators import ValidationError, DataRequired...
43.423913
98
0.643554
c8b99382e97c12a1d5cdbc9c2df2e03f1c76ca81
35,170
py
Python
toontown/coghq/DistributedCashbotBossCrane.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/coghq/DistributedCashbotBossCrane.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/coghq/DistributedCashbotBossCrane.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
import random from direct.gui.DirectGui import * from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from direct.distributed.ClockDelta import * from direct.fsm import FSM from direct.distributed import DistributedObject from direct.showutil import Rope from toontown.toonbase import ToonPytho...
39.208473
393
0.628917
c8b9bc052a97094f2c4c9397e65e8c1eb8538db8
3,435
py
Python
app/dao/organisation_dao.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
app/dao/organisation_dao.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
app/dao/organisation_dao.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
from sqlalchemy.sql.expression import func from app import db from app.dao.dao_utils import transactional, version_class from app.models import Domain, InvitedOrganisationUser, Organisation, Service, User def dao_get_organisations(): return Organisation.query.order_by(Organisation.active.desc(), Organisation.nam...
31.227273
128
0.759825
c8b9ca1d3c92139e06a4f667826c35571783e694
25,581
py
Python
workalendar/core.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
workalendar/core.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
workalendar/core.py
vanadium23/workalendar
4c67b5a7900fa56d7a93b767c6cbd8f1cc6b70a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Working day tools """ from copy import copy import warnings from calendar import monthrange from datetime import date, timedelta, datetime from math import pi import ephem import pytz from calverter import Calverter from dateutil import easter from lunardate import LunarDate MON, TUE, WED,...
36.080395
79
0.617646
c8ba04a5d03d4010fc28b87e1fd1c0e31486d263
10,736
py
Python
galpy/potential/ChandrasekharDynamicalFrictionForce.py
itsx/galpy
d7fec24568347776ad89b4d4d1fc71a3f2f8d5e1
[ "BSD-3-Clause" ]
1
2019-02-28T08:54:38.000Z
2019-02-28T08:54:38.000Z
galpy/potential/ChandrasekharDynamicalFrictionForce.py
itsx/galpy
d7fec24568347776ad89b4d4d1fc71a3f2f8d5e1
[ "BSD-3-Clause" ]
null
null
null
galpy/potential/ChandrasekharDynamicalFrictionForce.py
itsx/galpy
d7fec24568347776ad89b4d4d1fc71a3f2f8d5e1
[ "BSD-3-Clause" ]
null
null
null
############################################################################### # ChandrasekharDynamicalFrictionForce: Class that implements the # Chandrasekhar dynamical friction ############################################################################### import hashlib imp...
40.360902
398
0.573584
c8ba2d2d9d76c4b2aea588ca775813d7cb03179b
4,793
py
Python
configs/top_down/hrnet/coco-wholebody/hrnet_w32_coco_wholebody_256x192.py
irvingzhang0512/mmpose
17557522ce3e41f830973079c5b4321935c41439
[ "Apache-2.0" ]
null
null
null
configs/top_down/hrnet/coco-wholebody/hrnet_w32_coco_wholebody_256x192.py
irvingzhang0512/mmpose
17557522ce3e41f830973079c5b4321935c41439
[ "Apache-2.0" ]
null
null
null
configs/top_down/hrnet/coco-wholebody/hrnet_w32_coco_wholebody_256x192.py
irvingzhang0512/mmpose
17557522ce3e41f830973079c5b4321935c41439
[ "Apache-2.0" ]
null
null
null
log_level = 'INFO' load_from = None resume_from = None dist_params = dict(backend='nccl') workflow = [('train', 1)] checkpoint_config = dict(interval=10) evaluation = dict(interval=10, metric='mAP', key_indicator='AP') optimizer = dict( type='Adam', lr=5e-4, ) optimizer_config = dict(grad_clip=None) # learning...
28.194118
79
0.593365
c8bac33614c72b287299707efa487ca0050298be
20,816
py
Python
python_modules/libraries/dagster-airflow/dagster_airflow/factory.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-airflow/dagster_airflow/factory.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-airflow/dagster_airflow/factory.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import datetime import os import re from collections import namedtuple from airflow import DAG from airflow.models.baseoperator import BaseOperator from dagster_airflow.operators.util import check_storage_specified from dagster import check, seven from dagster.core.definitions.reconstruct import ReconstructableReposi...
37.916211
159
0.693313
c8bac434b5706408aced098cfc9c381d0190e42b
2,577
py
Python
user_profiles/templatetags/user_extras.py
perimetro20/asiaticon
40e833d9ad3e3d8a97803fa10fec64f69ca622cb
[ "MIT" ]
null
null
null
user_profiles/templatetags/user_extras.py
perimetro20/asiaticon
40e833d9ad3e3d8a97803fa10fec64f69ca622cb
[ "MIT" ]
null
null
null
user_profiles/templatetags/user_extras.py
perimetro20/asiaticon
40e833d9ad3e3d8a97803fa10fec64f69ca622cb
[ "MIT" ]
null
null
null
""" Utility functions and constants that will be used in the project. """ from django import template register = template.Library() # Names of groups for users ADMIN_GROUP = 'Admin' AGENT_GROUP = 'Agent' EXPORT_GROUP = 'Export' @register.filter(name='is_member') def is_member(user, groups): """ Test if a user b...
31.814815
89
0.675592
c8bae33747dced29105121816d6bed9d4935e0a3
4,016
py
Python
alipay/aop/api/request/AlipayCommerceTransportEtcBindModifyRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayCommerceTransportEtcBindModifyRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayCommerceTransportEtcBindModifyRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayCommerceTransportEtcBindModifyModel import AlipayCommerceTransportEtcBindModifyModel class AlipayCommerceTransportEtcBindModif...
27.696552
148
0.648406
c8baf174e7a64dc265058bb8aa7de8878fe2e841
536
py
Python
src/djangoflash/tests/testproj/app/urls.py
duct-tape/django-flash
ce77d3ca3d6823068984f898c3b44e2fef0beb8b
[ "BSD-3-Clause" ]
null
null
null
src/djangoflash/tests/testproj/app/urls.py
duct-tape/django-flash
ce77d3ca3d6823068984f898c3b44e2fef0beb8b
[ "BSD-3-Clause" ]
null
null
null
src/djangoflash/tests/testproj/app/urls.py
duct-tape/django-flash
ce77d3ca3d6823068984f898c3b44e2fef0beb8b
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls.defaults import * from testproj.app import views urlpatterns = patterns('', (r'^default/$', views.render_template), (r'^set_flash_var/$', views.set_flash_var), (r'^set_another_flash_var/$', views.set_another_flash_var), (r'^set_now_var/$', views.set_now_var), (r'^keep_var/$',...
33.5
63
0.684701