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
627db3a721d32c6cda0f2db028237cfd6f26f852
154
py
Python
plugins/dumpster.py
ItzSjDude/PikaBotPlugins
6b468a43caefbea5b8f3cd2c1ca83790380e1f5b
[ "Apache-2.0" ]
1
2020-10-29T15:44:57.000Z
2020-10-29T15:44:57.000Z
plugins/dumpster.py
ItzSjDude/PikaBotPlugins
6b468a43caefbea5b8f3cd2c1ca83790380e1f5b
[ "Apache-2.0" ]
null
null
null
plugins/dumpster.py
ItzSjDude/PikaBotPlugins
6b468a43caefbea5b8f3cd2c1ca83790380e1f5b
[ "Apache-2.0" ]
4
2020-10-28T09:02:35.000Z
2020-12-27T22:45:57.000Z
"""Dumping Animation Plugin {i}dump""" from . import dump @ItzSjDude(outgoing=True, pattern="dump ?(.*)") async def _(message): await dump(message)
17.111111
47
0.681818
627db99eea72a39c8a6579952f8b30375fb8a375
5,801
py
Python
crosperf/experiment_status.py
khadas/android_external_toolchain-utils
3690e025de8daaed03c4acb02d2b054e5c4c0dd5
[ "BSD-3-Clause" ]
null
null
null
crosperf/experiment_status.py
khadas/android_external_toolchain-utils
3690e025de8daaed03c4acb02d2b054e5c4c0dd5
[ "BSD-3-Clause" ]
null
null
null
crosperf/experiment_status.py
khadas/android_external_toolchain-utils
3690e025de8daaed03c4acb02d2b054e5c4c0dd5
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2011 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """The class to show the banner.""" from __future__ import print_function import collections import datetime import time class ExperimentStatus(object)...
39.732877
79
0.660403
627dbeaa161fadfc73e09437c69536872512d586
828
py
Python
alipay/aop/api/domain/AlipayOpenLotteryRegionBatchqueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayOpenLotteryRegionBatchqueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayOpenLotteryRegionBatchqueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenLotteryRegionBatchqueryModel(object): def __init__(self): self._env = None @property def env(self): return self._env @env.setter def env(self, value): ...
20.195122
57
0.562802
627dd9004ee5fe02c708e53e55778d8ffd5a12ac
1,690
py
Python
subt/launch.py
robotika/osgar
6f4f584d5553ab62c08a1c7bb493fefdc9033173
[ "MIT" ]
12
2017-02-16T10:22:59.000Z
2022-03-20T05:48:06.000Z
subt/launch.py
robotika/osgar
6f4f584d5553ab62c08a1c7bb493fefdc9033173
[ "MIT" ]
618
2016-08-30T04:46:12.000Z
2022-03-25T16:03:10.000Z
subt/launch.py
robotika/osgar
6f4f584d5553ab62c08a1c7bb493fefdc9033173
[ "MIT" ]
11
2016-08-27T20:02:55.000Z
2022-03-07T08:53:53.000Z
import logging import platform import signal import subprocess g_logger = logging.getLogger(__name__) class Launch: def __init__(self, config, bus): self.bus = bus self.command = config['command'] self.shell = config.get('shell', False) def start(self): self.running = subproce...
32.5
95
0.634911
627df6b726277c57dcbbc4619dc779d67d7a94fc
24,875
py
Python
app/productdb/views.py
hoelsner/product-database
099bbedba518aa09127ca54ded22c95aac1c0b7f
[ "MIT" ]
38
2015-12-17T17:58:14.000Z
2021-09-27T14:27:59.000Z
app/productdb/views.py
hoelsner/product-database
099bbedba518aa09127ca54ded22c95aac1c0b7f
[ "MIT" ]
19
2016-06-26T07:18:08.000Z
2021-10-10T08:41:23.000Z
app/productdb/views.py
hoelsner/product-database
099bbedba518aa09127ca54ded22c95aac1c0b7f
[ "MIT" ]
25
2015-10-15T20:44:13.000Z
2021-05-21T09:16:22.000Z
import logging from django.conf import settings from django.contrib.auth.decorators import login_required from django.contrib.auth.decorators import permission_required from django.core.cache import cache from django.urls import reverse from django.db.models import Q from django.http import Http404 from django.shortcut...
38.989028
124
0.664643
627e277559e4c6f6d48094e6c29ad99152381525
9,017
py
Python
lib/mimeparse.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
lib/mimeparse.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
lib/mimeparse.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
"""MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1 Contents: - parse...
46.963542
130
0.639015
627e326fe37d71db3313d79fed9ba47f71c33a23
2,318
py
Python
watcher/src/bai_watcher/job_watcher.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
6
2020-09-29T09:03:04.000Z
2022-03-14T06:52:25.000Z
watcher/src/bai_watcher/job_watcher.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
null
null
null
watcher/src/bai_watcher/job_watcher.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
4
2020-10-01T07:49:22.000Z
2021-06-16T19:44:12.000Z
# Copyright 2019 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://www.apache.org/licenses/LICENSE-2.0 # # or in the "l...
33.594203
112
0.675151
627e3fcf09a34d536ab551cdfb3c2c96d1f3a022
28,741
py
Python
n_utils/cf_bootstrap.py
NitorCreations/nitor-deploy-tools
93dd86d5e6586520f72dd38319f55849bf4a5bc5
[ "Apache-2.0" ]
10
2017-02-12T17:04:56.000Z
2018-11-10T16:46:57.000Z
n_utils/cf_bootstrap.py
NitorCreations/nitor-deploy-tools
93dd86d5e6586520f72dd38319f55849bf4a5bc5
[ "Apache-2.0" ]
22
2017-04-06T11:41:01.000Z
2019-09-18T05:45:03.000Z
n_utils/cf_bootstrap.py
NitorCreations/nitor-deploy-tools
93dd86d5e6586520f72dd38319f55849bf4a5bc5
[ "Apache-2.0" ]
1
2020-08-26T07:32:02.000Z
2020-08-26T07:32:02.000Z
#!/usr/bin/env python # Copyright 2016-2017 Nitor Creations Oy # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
40.537377
120
0.592255
627e49def0adbc338a377c775d9d1f33578cfd98
19,042
py
Python
pseudo_cl_likelihood/alm_cov.py
robinupham/pseudo_cl_likelihood
360a425d325ae4db509b1f960cbd3de1f1ffccdf
[ "MIT" ]
null
null
null
pseudo_cl_likelihood/alm_cov.py
robinupham/pseudo_cl_likelihood
360a425d325ae4db509b1f960cbd3de1f1ffccdf
[ "MIT" ]
null
null
null
pseudo_cl_likelihood/alm_cov.py
robinupham/pseudo_cl_likelihood
360a425d325ae4db509b1f960cbd3de1f1ffccdf
[ "MIT" ]
null
null
null
""" General function (and many helper functions) to calculate the pseudo-alm covariance matrix. Implements eqs 19-21 from arXiv:1908.00795. Main function is pseudo_alm_cov. See examples function for some basic usage examples. Some notes about the limitations/optimality of this: - The computation of Eqs 19-21 co...
41.850549
120
0.579666
627e5985ca5a4a6017848f390fb86cf33f9b1d93
2,632
py
Python
src/mhlibs/quantities_plot/__init__.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
src/mhlibs/quantities_plot/__init__.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
src/mhlibs/quantities_plot/__init__.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
38.705882
90
0.68883
627e5b2477e562d5dbae8f22bc8cb5c925265039
2,230
py
Python
custom_components/aarlo/doorbell.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
18
2016-08-10T01:02:27.000Z
2017-10-26T04:19:49.000Z
custom_components/aarlo/doorbell.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
null
null
null
custom_components/aarlo/doorbell.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
4
2017-04-20T19:41:21.000Z
2017-05-16T17:10:05.000Z
from .device import ArloChildDevice class ArloDoorBell(ArloChildDevice): def __init__(self, name, arlo, attrs): super().__init__(name, arlo, attrs) self._motion_time_job = None self._ding_time_job = None def _motion_stopped(self): self._save_and_do_callbacks('motionDetected',...
38.448276
117
0.613901
627e830e3a7545c83c88006b23484364e414b772
19,603
py
Python
Lib/site-packages/wx-3.0-msw/wx/wizard.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
5
2019-03-11T14:30:31.000Z
2021-12-04T14:11:54.000Z
Lib/site-packages/wx-3.0-msw/wx/wizard.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
Lib/site-packages/wx-3.0-msw/wx/wizard.py
jickieduan/python27
c752b552396bbed68d8555080d475718cea2edd0
[ "bzip2-1.0.6" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
# This file was created automatically by SWIG 1.3.29. # Don't modify this file, modify the SWIG interface instead. """ `Wizard` is a dialog class that guides the user through a sequence of steps, or pages. """ import _wizard import new new_instancemethod = new.instancemethod def _swig_setattr_nondynamic(self,class_ty...
41.53178
101
0.671683
627e95e8899c7e44f20df86d314502353b8fbc7e
16,563
py
Python
BioNetGen-2.3.0/source_Atomizer/SBMLparser/merging/namingDatabase.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
BioNetGen-2.3.0/source_Atomizer/SBMLparser/merging/namingDatabase.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
BioNetGen-2.3.0/source_Atomizer/SBMLparser/merging/namingDatabase.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
import sqlite3 import utils.annotationExtractor import utils.annotationResolver import argparse import os from copy import copy import pprint import fnmatch import progressbar import enum import utils.readBNGXML Query = enum.Enum('Query', 'all organism species family') organismFamilies = {'mammals': ['Homo sapiens', '...
47.053977
223
0.659603
627eb004e4d57dfc53aaf8a58acc740495cad9e2
75,425
py
Python
core/config.py
yfhuang7/WrfHydroForcing
e97b39cd1c975c4e6e2a022baf8dbc84407101ac
[ "BSD-3-Clause" ]
null
null
null
core/config.py
yfhuang7/WrfHydroForcing
e97b39cd1c975c4e6e2a022baf8dbc84407101ac
[ "BSD-3-Clause" ]
null
null
null
core/config.py
yfhuang7/WrfHydroForcing
e97b39cd1c975c4e6e2a022baf8dbc84407101ac
[ "BSD-3-Clause" ]
null
null
null
import configparser import datetime import json import os import numpy as np from core import time_handling from core import err_handler class ConfigOptions: """ Configuration abstract class for configuration options read in from the file specified by the user. """ def __init__(self, config): ...
61.122366
154
0.609029
627ebce06998ad9ef8a764abf721f084b46a4980
8,907
py
Python
program.py
cgmckay/CharacterCreator
421f94c8113954805a5268e1b19123cc194b2cc2
[ "MIT" ]
1
2019-12-02T17:32:28.000Z
2019-12-02T17:32:28.000Z
program.py
cgmckay/CharacterCreator
421f94c8113954805a5268e1b19123cc194b2cc2
[ "MIT" ]
null
null
null
program.py
cgmckay/CharacterCreator
421f94c8113954805a5268e1b19123cc194b2cc2
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod import logging import glfw import numpy import vispy.util.transforms as transform from OpenGL.GL import * import shader as shader_class from configuration import shaders import openglUtils logging.basicConfig() class Program(metaclass=ABCMeta): """ A program is a pr...
37.42437
119
0.656675
627efdabbd11b7ad7c12a6052c5fb496197914a4
618
py
Python
tofnet/pointcloud/regressors.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
null
null
null
tofnet/pointcloud/regressors.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
8
2021-02-02T23:07:37.000Z
2022-03-12T00:51:26.000Z
tofnet/pointcloud/regressors.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
2
2020-10-01T08:23:24.000Z
2020-11-09T22:01:47.000Z
"""Pointcloud regressors.""" import numpy as np from sklearn.linear_model import LinearRegression, RANSACRegressor from sklearn.base import BaseEstimator from tofnet.pointcloud.utils import project_mat class SVDRegressor(BaseEstimator): def __init__(self): super().__init__() self.norm_ = None ...
28.090909
66
0.666667
627f113414fcca8515e7220699b340557c974087
2,057
py
Python
safe_control_gym/controllers/base_controller.py
amrit110/safe-control-gym
f815099fa6622ca9e08fba1a86a05c3cd478b0bf
[ "MIT" ]
120
2021-08-16T13:55:47.000Z
2022-03-31T10:31:42.000Z
safe_control_gym/controllers/base_controller.py
amrit110/safe-control-gym
f815099fa6622ca9e08fba1a86a05c3cd478b0bf
[ "MIT" ]
10
2021-10-19T07:19:23.000Z
2022-03-24T18:43:02.000Z
safe_control_gym/controllers/base_controller.py
amrit110/safe-control-gym
f815099fa6622ca9e08fba1a86a05c3cd478b0bf
[ "MIT" ]
24
2021-08-28T17:21:09.000Z
2022-03-31T10:31:44.000Z
"""Base classes. """ class BaseController: """Template for controller/agent, implement the following methods as needed. """ def __init__(self, env_func, training=True, checkpoint_path="temp/model_latest.pt", output_dir="temp", ...
22.855556
81
0.493437
627f40d329732cea21b27602ab3b690cb63f7a0a
2,410
py
Python
zhaquirks/xiaomi/aqara/weather.py
artmg/zha-device-handlers
5b30b8b0ffb8ff2b23ea4ce8dcbf0fa556843c1c
[ "Apache-2.0" ]
null
null
null
zhaquirks/xiaomi/aqara/weather.py
artmg/zha-device-handlers
5b30b8b0ffb8ff2b23ea4ce8dcbf0fa556843c1c
[ "Apache-2.0" ]
null
null
null
zhaquirks/xiaomi/aqara/weather.py
artmg/zha-device-handlers
5b30b8b0ffb8ff2b23ea4ce8dcbf0fa556843c1c
[ "Apache-2.0" ]
null
null
null
"""Xiaomi aqara weather sensor device.""" import logging from zigpy.profiles import zha from zigpy.zcl.clusters.general import Groups, Identify from zigpy.zcl.clusters.measurement import TemperatureMeasurement,\ PressureMeasurement, RelativeHumidity from zigpy import quirks from zigpy.quirks.xiaomi import AqaraTem...
32.567568
70
0.590041
627f4e5dfb3db7bed9162e404ef0527a102096b1
30,602
py
Python
src/python/pants/goal/run_tracker.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
src/python/pants/goal/run_tracker.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
src/python/pants/goal/run_tracker.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import ast import copy import json import multiprocessing import os import sys import threading import time import uuid from collections import OrderedDict from contextlib import contextma...
40.318841
138
0.699758
627fe807e02c57f0d85a74d7a5fb9d6db7d6fd11
729
py
Python
fabfile.py
PureMVC/puremvc-python-multicore-framework
a11c64717057bdf09d86546bc2ab1c692dbfd034
[ "BSD-3-Clause" ]
17
2015-01-26T03:47:58.000Z
2021-12-13T05:37:36.000Z
fabfile.py
PureMVC/puremvc-python-multicore-framework
a11c64717057bdf09d86546bc2ab1c692dbfd034
[ "BSD-3-Clause" ]
null
null
null
fabfile.py
PureMVC/puremvc-python-multicore-framework
a11c64717057bdf09d86546bc2ab1c692dbfd034
[ "BSD-3-Clause" ]
10
2015-11-21T16:38:28.000Z
2021-03-12T06:11:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from fabric.operations import local def install(): """ Install package """ local("python ./setup.py clean") local("python ./setup.py install") def clean(): """ Remove local .pyc files """ local("find ./src/ -name '*.pyc' -exec rm -rf {} \;")...
18.225
63
0.521262
62805fc4ebde9042435d0f439199ee2d16dec797
9,979
py
Python
classifiers/dimensionality_reduction/graph_spectral_analysis&spectral_clustering_default.py
gionanide/Speech-Signal-Processing-and-Classification
eff023fd491697a89cdb0491393d2e9600b65895
[ "MIT" ]
203
2018-03-20T13:39:52.000Z
2022-03-24T07:52:31.000Z
classifiers/dimensionality_reduction/graph_spectral_analysis&spectral_clustering_default.py
gionanide/Speech-Signal-Processing-and-Classification
eff023fd491697a89cdb0491393d2e9600b65895
[ "MIT" ]
3
2019-01-15T07:39:02.000Z
2021-06-07T11:29:34.000Z
classifiers/dimensionality_reduction/graph_spectral_analysis&spectral_clustering_default.py
gionanide/Speech-Signal-Processing-and-Classification
eff023fd491697a89cdb0491393d2e9600b65895
[ "MIT" ]
68
2018-05-03T06:40:38.000Z
2022-02-13T04:30:57.000Z
#!usr/bin/python from __future__ import division import pandas as pd from sklearn import model_selection from sklearn.svm import SVC # supportctors for classification from sklearn.metrics import accuracy_score, confusion_matrix, classification_report from sklearn.model_selection import cross_val_score, GridSearchCV imp...
40.40081
143
0.769616
62806bfcac85db1093cff88c8363f6f5810d7f49
7,210
py
Python
central_service/environment/experiences/quic_dualfile_offline.py
vunetsys/mpquic-rl
f9f9ce7a199c359baf0d5cdee063fbd5186f82c5
[ "MIT" ]
1
2022-03-10T15:32:31.000Z
2022-03-10T15:32:31.000Z
central_service/environment/experiences/quic_dualfile_offline.py
netmsys/mpquic-rl
f9f9ce7a199c359baf0d5cdee063fbd5186f82c5
[ "MIT" ]
null
null
null
central_service/environment/experiences/quic_dualfile_offline.py
netmsys/mpquic-rl
f9f9ce7a199c359baf0d5cdee063fbd5186f82c5
[ "MIT" ]
null
null
null
# from __future__ import print_function import os import numpy as np from .core.generate_topo import PATHS, NETEM, BANDWIDTH, DELAY, QUEUING_DELAY from .core.generate_xp import XP_TYPE, SCHEDULER_CLIENT, SCHEDULER_SERVER, CC, \ CLIENT_PCAP, SERVER_PCAP, HTTPS_FILE, HTTPS_RANDOM_SIZE, QUIC_MULTIPATH, RMEM, \ Q...
49.383562
154
0.592233
6280b6f0405ca03ed1a60a13b6b8a1950a8c0d1e
4,116
py
Python
influxdb_client/domain/variable_links.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
1
2021-06-06T10:39:47.000Z
2021-06-06T10:39:47.000Z
influxdb_client/domain/variable_links.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
influxdb_client/domain/variable_links.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Vari...
24.945455
124
0.544218
6280bfdbff77f10355a3ba2b87f09c73bce6e835
367
py
Python
Glyph Making/EmptyCurrentLayer.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
2
2021-02-12T20:36:29.000Z
2021-11-03T08:04:01.000Z
Glyph Making/EmptyCurrentLayer.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
null
null
null
Glyph Making/EmptyCurrentLayer.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
null
null
null
# MenuTitle: Empty Current layer for Selected # -*- coding: utf-8 -*- __doc__ = """ Deletes all anchors, outlines and components for the selected layers. """ def doit(): for l in Glyphs.font.selectedLayers: l.paths = [] l.anchors = [] l.components = [] Glyphs.font.disableUpdateInterface(...
18.35
69
0.656676
6280c8eea2d46912e550a3f54a30a9199df180de
173
py
Python
bridger/buttons/__init__.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
2
2020-03-17T00:53:23.000Z
2020-07-16T07:00:33.000Z
bridger/buttons/__init__.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
76
2019-12-05T01:15:57.000Z
2021-09-07T16:47:27.000Z
bridger/buttons/__init__.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
1
2020-02-05T15:09:47.000Z
2020-02-05T15:09:47.000Z
from .bases import ButtonConfig from .buttons import ActionButton, DropDownButton, HyperlinkButton, WidgetButton from .enums import ButtonLevel, ButtonType, HyperlinkTarget
43.25
80
0.855491
62810003a0af0335c3a45840fd785bd5f3d4827b
1,164
py
Python
alipay/aop/api/response/AlipayBossFncInvoiceLinkamtBatchqueryResponse.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/response/AlipayBossFncInvoiceLinkamtBatchqueryResponse.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/response/AlipayBossFncInvoiceLinkamtBatchqueryResponse.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.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.ArInvoiceBillLinkOpenApiResponse import ArInvoiceBillLinkOpenApiResponse class AlipayBossFncInvoiceLinkamtBatchqueryResponse(AlipayResponse): def __init__(self):...
35.272727
118
0.704467
62812ae446d052c881ce919c06754c285c01b2f1
2,142
py
Python
alipay/aop/api/domain/AntMerchantExpandMerchantIndividualCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AntMerchantExpandMerchantIndividualCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AntMerchantExpandMerchantIndividualCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AntMerchantExpandMerchantIndividualCreateModel(object): def __init__(self): self._business_license = None self._business_license_pic = None self._user_id = None @prop...
30.169014
91
0.636788
62812f73300db6d529d588be73ae60bdf579b152
15,291
py
Python
lcr.py
Sebastian-/LCR-Emailer
d5dfd75c961751344ca6ba6c9f2898b7a3c34a80
[ "MIT" ]
1
2017-07-30T17:37:42.000Z
2017-07-30T17:37:42.000Z
lcr.py
Sebastian-/LCR-Emailer
d5dfd75c961751344ca6ba6c9f2898b7a3c34a80
[ "MIT" ]
null
null
null
lcr.py
Sebastian-/LCR-Emailer
d5dfd75c961751344ca6ba6c9f2898b7a3c34a80
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """A script to help automate the task of emailing LCR reports to parents.""" import os import xlrd import sys import smtplib import shutil from string import Template from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase from email.mime.text import MIMETe...
37.662562
80
0.592309
628146be19f2a491637efc59e4e8b558a29a9cba
135
py
Python
atmcorr/metadata/worldview.py
DHI-GRAS/atmcorr
55e584c7971009065b47ece9d3d215bfe8335d04
[ "MIT" ]
5
2019-09-03T17:13:57.000Z
2021-12-01T03:22:11.000Z
atmcorr/metadata/worldview.py
DHI-GRAS/atmcorr
55e584c7971009065b47ece9d3d215bfe8335d04
[ "MIT" ]
1
2021-04-28T08:11:37.000Z
2021-04-28T09:52:02.000Z
atmcorr/metadata/worldview.py
DHI-GRAS/atmcorr
55e584c7971009065b47ece9d3d215bfe8335d04
[ "MIT" ]
1
2021-03-31T02:13:08.000Z
2021-03-31T02:13:08.000Z
from dg_calibration import metadata def get_date(mtdFile): mtd = metadata.parse_metadata(mtdFile) return mtd['sensing_time']
19.285714
42
0.762963
62814db7ebbe502068edc47891a525fa48c206d7
5,790
py
Python
test/test_replica_set.py
bufferx/asyncmongo
c68ba72a79507e21f28c5525e1f6954cc68db4cf
[ "Apache-2.0" ]
null
null
null
test/test_replica_set.py
bufferx/asyncmongo
c68ba72a79507e21f28c5525e1f6954cc68db4cf
[ "Apache-2.0" ]
null
null
null
test/test_replica_set.py
bufferx/asyncmongo
c68ba72a79507e21f28c5525e1f6954cc68db4cf
[ "Apache-2.0" ]
null
null
null
import tornado.ioloop import time import logging import subprocess import socket import test_shunt import asyncmongo import asyncmongo.connection import asyncmongo.errors TEST_TIMESTAMP = int(time.time()) class ReplicaSetTest(test_shunt.MongoTest): mongod_options = [ ('--port', '27018', '--replSet', 'rs0...
35.740741
128
0.52228
6281547110276c510f9c77c39702273134423257
96,580
py
Python
demo/nmpfit.py
spyke/spyke
20934521de9c557924911cf6190690ac1c6f8e80
[ "CNRI-Python" ]
22
2015-06-01T03:31:00.000Z
2022-03-18T09:12:28.000Z
demo/nmpfit.py
spyke/spyke
20934521de9c557924911cf6190690ac1c6f8e80
[ "CNRI-Python" ]
3
2017-03-24T19:16:02.000Z
2021-01-27T14:34:30.000Z
demo/nmpfit.py
spyke/spyke
20934521de9c557924911cf6190690ac1c6f8e80
[ "CNRI-Python" ]
6
2015-07-10T15:28:08.000Z
2022-03-17T19:30:45.000Z
""" Python/Numeric version of this module was called mpfit. This version was modified to use numpy. """ __version__ = '0.2' """ Perform Levenberg-Marquardt least-squares minimization, based on MINPACK-1. AUTHORS T...
42.471416
112
0.542079
628157a59bc2b12b87f8deead26941173d78f130
2,409
py
Python
teacher_app/apps/classes/serializers/subject_serializer.py
Darius-Ndubi/Teacher_APP_API
1bafbccbbb3f8a9cc4b396bdd91e0d8c8e9a17dc
[ "MIT" ]
null
null
null
teacher_app/apps/classes/serializers/subject_serializer.py
Darius-Ndubi/Teacher_APP_API
1bafbccbbb3f8a9cc4b396bdd91e0d8c8e9a17dc
[ "MIT" ]
4
2021-03-19T02:10:15.000Z
2022-02-10T09:23:23.000Z
teacher_app/apps/classes/serializers/subject_serializer.py
Darius-Ndubi/Teacher_APP_API
1bafbccbbb3f8a9cc4b396bdd91e0d8c8e9a17dc
[ "MIT" ]
null
null
null
from rest_framework import serializers from ..models import ( StudentSubjectMath, StudentSubjectEng ) class SubjectMathSerializer(serializers.ModelSerializer): score = serializers.IntegerField() class Meta: model = StudentSubjectMath fields = '__all__' def validate_math_field(se...
35.955224
121
0.575758
6281777fb80dcb23d7c9334b71f760f17b9240a3
903
py
Python
tests/services/ghibli/test_people.py
chris-verclytte/ghibli-back
149314ab31705590051516940d38d0c84a10c8ed
[ "Apache-2.0" ]
null
null
null
tests/services/ghibli/test_people.py
chris-verclytte/ghibli-back
149314ab31705590051516940d38d0c84a10c8ed
[ "Apache-2.0" ]
2
2020-08-13T12:16:27.000Z
2020-08-13T13:21:21.000Z
tests/services/ghibli/test_people.py
chris-verclytte/ghibli-back
149314ab31705590051516940d38d0c84a10c8ed
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from unittest.mock import patch from ghibli.services.ghibli.people import list_people @patch("ghibli.services.ghibli.people.requests", autospec=True) @patch("ghibli.services.ghibli.people.Configuration", autospec=True) class TestPeople(TestCase): def test_list_people(self, configura...
39.26087
93
0.700997
628179899ba5a0b13a5475da33667a8752572c9d
7,505
py
Python
wex/response.py
eBay/wextracto
9c789b1c98d95a1e87dbedfd1541a8688d128f5c
[ "BSD-3-Clause" ]
19
2015-01-07T01:13:18.000Z
2020-07-31T04:51:39.000Z
wex/response.py
afcarl/wextracto
9c789b1c98d95a1e87dbedfd1541a8688d128f5c
[ "BSD-3-Clause" ]
2
2017-02-02T17:14:14.000Z
2018-05-02T23:19:36.000Z
wex/response.py
gilessbrown/wextracto
7215b90a7c022c50cbef9a1e7a67e2fb48432b47
[ "BSD-3-Clause" ]
13
2015-07-21T20:29:19.000Z
2021-01-15T10:36:26.000Z
from __future__ import unicode_literals, print_function, absolute_import import os import itertools import logging from tempfile import SpooledTemporaryFile as SpooledTemporaryFile_ from shutil import copyfileobj from six import PY2, next from six.moves.urllib.response import addinfourl from six.moves.http_client impor...
37.153465
78
0.623185
62818e57dd2a663cd0fec33ec8d8ff42897af7d9
9,568
py
Python
Trescope4Python/library/src/trescope/core/Trescope.py
aaabbb2021/Trescope
629dd526572b4883608fd12cc06738b0e83fe775
[ "MIT" ]
105
2020-11-09T04:20:26.000Z
2022-03-23T12:32:24.000Z
Trescope4Python/library/src/trescope/core/Trescope.py
aaabbb2021/Trescope
629dd526572b4883608fd12cc06738b0e83fe775
[ "MIT" ]
5
2021-02-21T04:21:56.000Z
2022-01-04T08:07:20.000Z
Trescope4Python/library/src/trescope/core/Trescope.py
aaabbb2021/Trescope
629dd526572b4883608fd12cc06738b0e83fe775
[ "MIT" ]
8
2020-11-13T12:55:36.000Z
2022-01-17T07:28:06.000Z
import json import os import signal import socket from typing import Dict, Union, Tuple import numpy as np from trescope.core import ELog from trescope.core.Output import Output from trescope.core.OutputManager import FileOutputManager, DisplayOutputManager from trescope.core.Utils import Singleton class BadTokenEx...
41.781659
154
0.631062
6281a5bd3aaa1bb560eea2bec1b001a9ae3fff11
2,971
py
Python
sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_properties_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_properties_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/connect_to_target_sql_sql_db_sync_task_properties_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
43.057971
106
0.649276
6281a941b950400e8d09282d01d64dcc21f68373
7,435
py
Python
docs/source/conf.py
damianavila/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
2
2020-11-30T14:04:30.000Z
2021-11-08T11:29:05.000Z
docs/source/conf.py
RuSHi2381/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
null
null
null
docs/source/conf.py
RuSHi2381/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
1
2020-11-19T05:18:41.000Z
2020-11-19T05:18:41.000Z
# -*- coding: utf-8 -*- # # IPython documentation build configuration file. # NOTE: This file has been edited manually from the auto-generated one from # sphinx. Do NOT delete and re-generate. If any changes from sphinx are # needed, generate a scratch one and merge by hand any new fields needed. # # This file is e...
31.239496
82
0.718359
6281bfa9e04cd704f984505e087ff2767566227a
70
py
Python
examples/exponents.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
206
2021-06-24T16:16:13.000Z
2022-03-31T07:44:17.000Z
examples/exponents.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
13
2021-06-24T17:51:36.000Z
2022-02-23T10:07:17.000Z
examples/exponents.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
14
2021-06-26T02:19:45.000Z
2022-03-30T03:02:49.000Z
def main(): print(2 ** 8) if __name__ == '__main__': main()
10
26
0.514286
62820cdb561f0aba0b9db240c97d8dd3d79ef9c3
650
py
Python
src/ggrc/contributions.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2018-03-30T11:28:48.000Z
2018-03-30T11:28:48.000Z
src/ggrc/contributions.py
trevordonnelly/ggrc-core
499cf0d3cce70737b080991b12c203ec22015cea
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/contributions.py
trevordonnelly/ggrc-core
499cf0d3cce70737b080991b12c203ec22015cea
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Lists of ggrc contributions.""" from ggrc.notifications import common from ggrc.notifications import notification_handlers from ggrc.notifications import data_handlers CONTRIBUTED_CRON_JOBS = [ com...
25
78
0.776923
62820dbb17546086e1563491c368faf2d900752a
7,128
py
Python
lineWidthAnalysis.py
akpandeya/stfmr
04c6c9d20a7f20abeee19a39fa1c4be64a4e2346
[ "MIT" ]
null
null
null
lineWidthAnalysis.py
akpandeya/stfmr
04c6c9d20a7f20abeee19a39fa1c4be64a4e2346
[ "MIT" ]
null
null
null
lineWidthAnalysis.py
akpandeya/stfmr
04c6c9d20a7f20abeee19a39fa1c4be64a4e2346
[ "MIT" ]
1
2022-02-11T08:14:32.000Z
2022-02-11T08:14:32.000Z
# -*- coding: utf-8 -*- """ Created on Mon Jul 27 14:53:43 2020 @author: apandeya """ # import sys import numpy as np import pandas as pd from itertools import zip_longest import os import tkinter as tk from lineWidth import lineWidth import matplotlib.pyplot as plt # import matplotlib.font_manager as font_manager ...
38.52973
243
0.608586
6282142b39eac54c9e6bbae1eb92e8ad8de51359
2,233
py
Python
Hurricane.py
Meso272/PyTorch-VAE
b1f80082a92c706969a63162ae083b9f7d15d9aa
[ "Apache-2.0" ]
null
null
null
Hurricane.py
Meso272/PyTorch-VAE
b1f80082a92c706969a63162ae083b9f7d15d9aa
[ "Apache-2.0" ]
null
null
null
Hurricane.py
Meso272/PyTorch-VAE
b1f80082a92c706969a63162ae083b9f7d15d9aa
[ "Apache-2.0" ]
1
2022-02-11T23:22:41.000Z
2022-02-11T23:22:41.000Z
from torch.utils.data import Dataset import numpy as np import os class Hurricane(Dataset): def __init__(self,path,start,end,size,field='U',global_max=None,global_min=None,norm_min=-1,cache_size=None,epsilon=-1): size_x=100 size_y=500 size_z=500 picts=[] #count=[0,0,0,0] ...
39.875
124
0.439767
62827166dbd784243fb9a23fb50f8d47530f4c8a
3,298
py
Python
pml/utils/errors.py
ashadhaz/pml
8d9261c8885a82d795c89de23f53ff7d05ef9495
[ "MIT" ]
2
2018-03-21T16:26:16.000Z
2020-10-27T02:45:11.000Z
pml/utils/errors.py
ashadhaz/pml
8d9261c8885a82d795c89de23f53ff7d05ef9495
[ "MIT" ]
null
null
null
pml/utils/errors.py
ashadhaz/pml
8d9261c8885a82d795c89de23f53ff7d05ef9495
[ "MIT" ]
4
2015-02-25T16:19:05.000Z
2021-02-06T06:36:46.000Z
# Copyright (C) 2012 David Rusk # # 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, distr...
35.847826
79
0.657368
62827655df3726c96d03539e5f92adf8ede25224
2,830
py
Python
test_opensearchpy/test_client/test_plugins.py
arnavdas88/opensearch-py
8db89e7edb4a09d62fa3153d6b474e3d2b392a39
[ "Apache-2.0" ]
null
null
null
test_opensearchpy/test_client/test_plugins.py
arnavdas88/opensearch-py
8db89e7edb4a09d62fa3153d6b474e3d2b392a39
[ "Apache-2.0" ]
null
null
null
test_opensearchpy/test_client/test_plugins.py
arnavdas88/opensearch-py
8db89e7edb4a09d62fa3153d6b474e3d2b392a39
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. # # Modifications Copyright OpenSearch Contributors. See # GitHub history for details. from test_opensearchpy.test_cases import...
36.282051
83
0.683392
62827f291d7692861721d4a459ff4d99a4c2150a
2,061
py
Python
venv/Lib/site-packages/pyrogram/raw/base/pong.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/base/pong.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/base/pong.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
34.932203
87
0.622513
6282b149180a78e69d2d0083d0c985e7ac6628bf
29,991
py
Python
toontown/safezone/DistributedCheckers.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/safezone/DistributedCheckers.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/safezone/DistributedCheckers.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 direct.distributed.ClockDelta import * from direct.task.Task import Task from direct.interval.IntervalGlobal import * from toontown.safezone.TrolleyConstants import * from direct.gui.DirectGui import * from toontown.toonbase import TTLocalizer from direct.distributed import Distri...
40.693351
363
0.557934
6282b9a4c99149caa040ac1ee6bf274fb127fed0
985
py
Python
mps_database/models/ignore_condition.py
slaclab/mps_database
023ed9bb3b333e382cc612f816c3f4b295b66a4c
[ "BSD-3-Clause-LBNL" ]
null
null
null
mps_database/models/ignore_condition.py
slaclab/mps_database
023ed9bb3b333e382cc612f816c3f4b295b66a4c
[ "BSD-3-Clause-LBNL" ]
1
2017-07-07T21:31:59.000Z
2017-07-07T21:31:59.000Z
mps_database/models/ignore_condition.py
slaclab/mps_database
023ed9bb3b333e382cc612f816c3f4b295b66a4c
[ "BSD-3-Clause-LBNL" ]
4
2017-07-07T20:10:54.000Z
2020-12-13T00:03:37.000Z
from sqlalchemy import Column, Integer, String, Boolean, ForeignKey from sqlalchemy.orm import relationship, backref from mps_database.models import Base #from .allowed_class import AllowedClass class IgnoreCondition(Base): """ IgnoreCondition class (ignore_conditions table) An IgnoreCondition defines when a ce...
41.041667
85
0.770558
6282e104b7440241a1a24d8c997877c708fdbf78
1,188
py
Python
maix/__init__.py
Adancurusul/MaixPy3
0e8050151d2972ffb0ddeecc0ecc8915dcf59e99
[ "MIT" ]
null
null
null
maix/__init__.py
Adancurusul/MaixPy3
0e8050151d2972ffb0ddeecc0ecc8915dcf59e99
[ "MIT" ]
null
null
null
maix/__init__.py
Adancurusul/MaixPy3
0e8050151d2972ffb0ddeecc0ecc8915dcf59e99
[ "MIT" ]
null
null
null
__all__ = ['display', 'camera'] try: import gpiod as gpio __all__.append('gpio') except ModuleNotFoundError as e: pass try: import pylibi2c as i2c __all__.append('i2c') except ModuleNotFoundError as e: pass try: import evdev as evdev __all__.append('evdev') except ModuleNotFoundError as e: pass t...
19.8
59
0.70202
6282e1de15925c8270fe0b2cc0e6010deda39586
14,141
py
Python
clifford/tools/classify.py
hugohadfield/clifford
3e15da3ba429c69a5a5a641f2103d7bcca42617d
[ "BSD-3-Clause" ]
null
null
null
clifford/tools/classify.py
hugohadfield/clifford
3e15da3ba429c69a5a5a641f2103d7bcca42617d
[ "BSD-3-Clause" ]
null
null
null
clifford/tools/classify.py
hugohadfield/clifford
3e15da3ba429c69a5a5a641f2103d7bcca42617d
[ "BSD-3-Clause" ]
null
null
null
""" Tools for interpreting conformal blades .. currentmodule:: clifford.tools.classify .. autofunction:: classify The return type is a :class:`Blade`: .. autoclass:: Blade :members: The subclasses below are the four categories to which all blades belong, where :math:`E` is a euclidean blade, and :math:`T_p[X]`...
28.977459
130
0.600665
62832e719e9f16a082d8f37c2ddc42792dede03c
1,551
py
Python
bot/tools/misc.py
Achxy/emoji-alchemist
df718da216d9dbfa82e4f11fe24d82b8508f8c95
[ "MIT" ]
1
2022-01-06T07:55:57.000Z
2022-01-06T07:55:57.000Z
bot/tools/misc.py
Achxy/emoji-alchemist
df718da216d9dbfa82e4f11fe24d82b8508f8c95
[ "MIT" ]
null
null
null
bot/tools/misc.py
Achxy/emoji-alchemist
df718da216d9dbfa82e4f11fe24d82b8508f8c95
[ "MIT" ]
null
null
null
""" EmojiWizard is a project licensed under GNU Affero General Public License. Copyright (C) 2022-present Achxy This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License...
28.722222
83
0.682785
62835546e7496303557538248024356203ac488e
1,031
py
Python
data/transcoder_evaluation_gfg/python/EULERIAN_NUMBER_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/EULERIAN_NUMBER_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/EULERIAN_NUMBER_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n , m ) : dp = [ [ 0 for x in range ( m + 1 ) ] for y in range ( n + 1 ) ] for i in range ( 1 , n + 1 ) : ...
27.131579
116
0.439379
628368e539686723b8691214bea6bd9405c6954e
789
py
Python
var/spack/repos/builtin/packages/optix/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/optix/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/optix/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Optix(Package): """Nvidia OptiX is a ray tracing API.""" homepage = "https://develope...
30.346154
82
0.664132
62837a4bd9e993a11b0bba5e2b590a9a2a6084cb
2,060
py
Python
custom_components/safety_signing/__init__.py
mynamezxc/safety-signing-v2
b6de84611c7de80c6a46bd3de3535bfe42d994c9
[ "Apache-2.0" ]
1
2022-03-07T08:27:35.000Z
2022-03-07T08:27:35.000Z
custom_components/safety_signing/__init__.py
mynamezxc/safety-signing-v2
b6de84611c7de80c6a46bd3de3535bfe42d994c9
[ "Apache-2.0" ]
null
null
null
custom_components/safety_signing/__init__.py
mynamezxc/safety-signing-v2
b6de84611c7de80c6a46bd3de3535bfe42d994c9
[ "Apache-2.0" ]
null
null
null
"""The Detailed Hello World Push integration.""" from __future__ import annotations from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from . import token from .const import DOMAIN # List of platforms to support. There should be a matching .py file for each, # eg <cover...
43.829787
293
0.715049
62838d561b5109f979463a671f582cac368e6516
144
py
Python
icoscp/collection/__init__.py
ICOS-Carbon-Portal/pylib
3a86c936ee5fa03520384a8e18ed093decdab171
[ "CC-BY-4.0" ]
4
2020-09-27T09:05:56.000Z
2022-01-10T18:11:57.000Z
icoscp/collection/__init__.py
ICOS-Carbon-Portal/pylib
3a86c936ee5fa03520384a8e18ed093decdab171
[ "CC-BY-4.0" ]
26
2020-08-03T13:00:56.000Z
2022-03-31T15:40:26.000Z
icoscp/collection/__init__.py
ICOS-Carbon-Portal/pylib
3a86c936ee5fa03520384a8e18ed093decdab171
[ "CC-BY-4.0" ]
2
2020-07-28T08:35:01.000Z
2021-02-04T21:11:36.000Z
""" The Station Module is used to give easy access to station metadata, corresponding data products and digital objects (data) """
24
54
0.701389
6283d52c646a3fce82d26f2beec56b40b12e5050
14,151
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machine_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machine_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machine_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.368263
221
0.675641
6283dea9b2d3c397c732a7d82d2a5fde86742476
3,028
py
Python
tests/test_fp16_optimizer/configs/vit_2d.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
1
2022-03-12T04:49:19.000Z
2022-03-12T04:49:19.000Z
tests/test_fp16_optimizer/configs/vit_2d.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
null
null
null
tests/test_fp16_optimizer/configs/vit_2d.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
null
null
null
import os from pathlib import Path from colossalai.engine import AMP_TYPE BATCH_SIZE = 512 IMG_SIZE = 32 PATCH_SIZE = 4 DIM = 512 NUM_ATTENTION_HEADS = 8 SUMMA_DIM = 2 NUM_CLASSES = 10 DEPTH = 6 train_data = dict( dataset=dict( type='CIFAR10Dataset', root=Path(os.environ['DATA']), transfo...
21.027778
62
0.55317
6283e6d967cb7d58070201d822ea23785a20b410
5,043
py
Python
utils/transforms.py
vlfom/UNO-1
94cce7cf11f9b0bef69d22c4ba811cc03923dec8
[ "MIT" ]
null
null
null
utils/transforms.py
vlfom/UNO-1
94cce7cf11f9b0bef69d22c4ba811cc03923dec8
[ "MIT" ]
null
null
null
utils/transforms.py
vlfom/UNO-1
94cce7cf11f9b0bef69d22c4ba811cc03923dec8
[ "MIT" ]
null
null
null
import torchvision.transforms as transforms from PIL import ImageFilter import random class DiscoveryTargetTransform: def __init__(self, mapping): self.mapping = mapping def __call__(self, y): y = self.mapping[y] return y class GaussianBlur(object): """Gaussian blur augmentatio...
33.845638
82
0.428316
628403ecea9ce7f4a5d37c939acfc46b19829326
17,560
py
Python
stage/test_kafka_multisource_origin.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
1
2020-04-14T03:01:51.000Z
2020-04-14T03:01:51.000Z
stage/test_kafka_multisource_origin.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
null
null
null
stage/test_kafka_multisource_origin.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
1
2019-09-14T08:30:23.000Z
2019-09-14T08:30:23.000Z
# Copyright 2018 StreamSets 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 writi...
43.358025
132
0.705239
6284269675906db24f902a801243a2705d871d84
75,046
py
Python
src/config/api-server/vnc_cfg_api_server/vnc_db.py
sasikrishna2014/contrail-controller
27ec672dc0ea720fe2ed10743ddefbe09f6305e0
[ "Apache-2.0" ]
null
null
null
src/config/api-server/vnc_cfg_api_server/vnc_db.py
sasikrishna2014/contrail-controller
27ec672dc0ea720fe2ed10743ddefbe09f6305e0
[ "Apache-2.0" ]
null
null
null
src/config/api-server/vnc_cfg_api_server/vnc_db.py
sasikrishna2014/contrail-controller
27ec672dc0ea720fe2ed10743ddefbe09f6305e0
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # """ Layer that transforms VNC config objects to database representation """ from cfgm_common.zkclient import ZookeeperClient, IndexAllocator from gevent import monkey monkey.patch_all() import gevent import gevent.event import time from pprint impor...
40.852477
116
0.592517
6284406abb5076073934ce696f5bfd3866b0bf97
2,638
py
Python
pynurbs/geometry/methods/map_surface.py
trelau/pyNURBS
5dfd082fe368c1140ce485dc64b049b32c267d1f
[ "BSD-3-Clause" ]
2
2019-04-16T20:30:19.000Z
2019-10-03T07:40:47.000Z
pynurbs/geometry/methods/map_surface.py
trelau/pyNURBS
5dfd082fe368c1140ce485dc64b049b32c267d1f
[ "BSD-3-Clause" ]
null
null
null
pynurbs/geometry/methods/map_surface.py
trelau/pyNURBS
5dfd082fe368c1140ce485dc64b049b32c267d1f
[ "BSD-3-Clause" ]
1
2018-09-23T14:28:12.000Z
2018-09-23T14:28:12.000Z
from numpy import float64, linspace, zeros, hstack, unique from numpy.linalg import norm from scipy.interpolate import LinearNDInterpolator, RectBivariateSpline def surface_distance_map(surface, n=None, h=None): """ Build a distance map of the """ if n is None and h is None: return None, None,...
29.311111
71
0.58188
628468a600c2ae3835bb90f12e63ea8976785fcf
2,813
py
Python
alipay/aop/api/domain/AnttechBlockchainFinancePfApplySendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AnttechBlockchainFinancePfApplySendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AnttechBlockchainFinancePfApplySendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AnttechBlockchainFinancePfApplySendModel(object): def __init__(self): self._biz_type = None self._channel = None self._financing_id = None self._parm = None ...
27.851485
75
0.575542
62846ee559793e53d5d0ea122ee3f20cf3939f2f
2,995
py
Python
Stage 1-5/tests.py
graviteja28/Hyperskill-Password-Hacker
c5662fdc4d80da28c3b08096a5a1d22b74b051ae
[ "MIT" ]
null
null
null
Stage 1-5/tests.py
graviteja28/Hyperskill-Password-Hacker
c5662fdc4d80da28c3b08096a5a1d22b74b051ae
[ "MIT" ]
null
null
null
Stage 1-5/tests.py
graviteja28/Hyperskill-Password-Hacker
c5662fdc4d80da28c3b08096a5a1d22b74b051ae
[ "MIT" ]
null
null
null
from hstest.stage_test import StageTest from hstest.test_case import TestCase from hstest.check_result import CheckResult from hstest.exceptions import WrongAnswerException from threading import Thread from time import sleep import socket import random CheckResult.correct = lambda: CheckResult(True, '') CheckResult.wr...
30.561224
75
0.594324
628473232007d9a6c34401980c9d1a671512e47e
8,572
py
Python
postprocess/ensemble_masks.py
shawnau/DataScienceBowl2018
3c6f0f26dd86b71aad55fca52314e6432d0b3a82
[ "MIT" ]
null
null
null
postprocess/ensemble_masks.py
shawnau/DataScienceBowl2018
3c6f0f26dd86b71aad55fca52314e6432d0b3a82
[ "MIT" ]
null
null
null
postprocess/ensemble_masks.py
shawnau/DataScienceBowl2018
3c6f0f26dd86b71aad55fca52314e6432d0b3a82
[ "MIT" ]
null
null
null
import sys, operator sys.path.append('..') from scipy.ndimage.morphology import binary_fill_holes from configuration import Configuration from dataset.reader import * from dataset.folder import TrainFolder from utility.draw import * from net.lib.nms.cython_nms.cython_nms import cython_nms from net.layer.mask import in...
34.425703
112
0.625758
628508d05547d438de7d62249948a1be5e5d3ff7
8,153
py
Python
api/environments/identities/models.py
cookielab/flagsmith
f9b7e869db2c65d8d65ae2d5df32a07c798d7868
[ "BSD-3-Clause" ]
null
null
null
api/environments/identities/models.py
cookielab/flagsmith
f9b7e869db2c65d8d65ae2d5df32a07c798d7868
[ "BSD-3-Clause" ]
null
null
null
api/environments/identities/models.py
cookielab/flagsmith
f9b7e869db2c65d8d65ae2d5df32a07c798d7868
[ "BSD-3-Clause" ]
null
null
null
import hashlib import typing import boto3 from django.conf import settings from django.db import models from django.db.models import Prefetch, Q from django.utils.encoding import python_2_unicode_compatible from flag_engine.identities.builders import build_identity_dict from environments.identities.traits.models impo...
38.457547
107
0.649209
6285132f4a970297b34186934a9b2509d94a5bb4
9,564
py
Python
StreamPy/StreamPy-UI/src/root/nested/Multiprocessing.py
AnomalyInc/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
2
2017-04-27T11:04:27.000Z
2019-02-07T21:03:32.000Z
StreamPy/StreamPy-UI/src/root/nested/Multiprocessing.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
StreamPy/StreamPy-UI/src/root/nested/Multiprocessing.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
from copy import deepcopy from pprint import pprint from MakeParallelNetworkParallel import * # UNCOMMENT FOR PARALLELLLL and get back MakeParallelNet2 # from MakeParallelNetwork import * # Make data structure for parallel processing # Key: name of group # Value: {agent_desc dict, input_stream_names_tuple, output_st...
39.036735
92
0.607382
62852624ba419b6b40c35ae41f636c2cbd900813
15,948
py
Python
pystol-operator/pystol/operator.py
ccamacho/pystol
7925461c324975c8334009e3b878debcf056698b
[ "Apache-2.0" ]
null
null
null
pystol-operator/pystol/operator.py
ccamacho/pystol
7925461c324975c8334009e3b878debcf056698b
[ "Apache-2.0" ]
null
null
null
pystol-operator/pystol/operator.py
ccamacho/pystol
7925461c324975c8334009e3b878debcf056698b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Copyright 2019 Pystol (pystol.org). 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 agre...
37.261682
125
0.54383
628529933292cbb7671f2fed357c4dd3cb2ca5e7
222
py
Python
terrascript/resource/Ouest_France/ldap.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/Ouest_France/ldap.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/Ouest_France/ldap.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/Ouest-France/ldap.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:20:59 UTC) import terrascript class ldap_group(terrascript.Resource): pass __all__ = [ "ldap_group", ]
17.076923
73
0.743243
62853bd3ff3c751880b76af334ce77eccca89baf
995
py
Python
invenio_communities/members/records/api.py
max-moser/invenio-communities
cfdd6a8b36bf6856db4fd55123c832700eb32376
[ "MIT" ]
null
null
null
invenio_communities/members/records/api.py
max-moser/invenio-communities
cfdd6a8b36bf6856db4fd55123c832700eb32376
[ "MIT" ]
null
null
null
invenio_communities/members/records/api.py
max-moser/invenio-communities
cfdd6a8b36bf6856db4fd55123c832700eb32376
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2022 Northwestern University. # # Invenio-Communities is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. from invenio_records.systemfields import ModelField from invenio_records_resources.records....
24.875
77
0.699497
62853eb83c0c20d94a159b19b1780b1be8af14a7
9,790
py
Python
src/estimation/extended.py
christianhilscher/dynasim
881cfd3bd9d4b9291d289d703ec7da4a617a479a
[ "MIT" ]
null
null
null
src/estimation/extended.py
christianhilscher/dynasim
881cfd3bd9d4b9291d289d703ec7da4a617a479a
[ "MIT" ]
2
2020-08-06T10:01:59.000Z
2021-05-17T12:14:44.000Z
src/estimation/extended.py
christianhilscher/dynasim
881cfd3bd9d4b9291d289d703ec7da4a617a479a
[ "MIT" ]
2
2020-08-19T06:52:09.000Z
2021-12-10T08:57:54.000Z
from pathlib import Path import numpy as np import pandas as pd import pickle import statsmodels.api as sm from sklearn.preprocessing import StandardScaler from sklearn.model_selection import train_test_split import lightgbm as lgb from estimation.standard import getdf, get_estimation_df from estimation.transition_m...
34.111498
123
0.581001
628575bfe8d2c5eacbd425e78b0535635bd66d54
10,154
py
Python
sdk/lusid_configuration/models/lusid_problem_details.py
finbourne/lusid-configuration-sdk-python-preview
f9ed2bc71042ce1b6f85baf62c9f6603150000dc
[ "MIT" ]
null
null
null
sdk/lusid_configuration/models/lusid_problem_details.py
finbourne/lusid-configuration-sdk-python-preview
f9ed2bc71042ce1b6f85baf62c9f6603150000dc
[ "MIT" ]
null
null
null
sdk/lusid_configuration/models/lusid_problem_details.py
finbourne/lusid-configuration-sdk-python-preview
f9ed2bc71042ce1b6f85baf62c9f6603150000dc
[ "MIT" ]
1
2021-12-09T18:53:23.000Z
2021-12-09T18:53:23.000Z
# coding: utf-8 """ FINBOURNE ConfigurationService API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.1.281 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect im...
27.369272
191
0.578885
628595e60a1f813379db82ce48306dbd664dc350
2,198
py
Python
backends/__init__.py
kokeshii/RSVPBot
bb7f02c62cee6155f46829d834330a767ec9b945
[ "MIT" ]
32
2015-04-21T21:19:55.000Z
2021-01-12T23:35:56.000Z
backends/__init__.py
kokeshii/RSVPBot
bb7f02c62cee6155f46829d834330a767ec9b945
[ "MIT" ]
60
2015-04-23T00:17:10.000Z
2017-05-22T20:26:04.000Z
backends/__init__.py
kokeshii/RSVPBot
bb7f02c62cee6155f46829d834330a767ec9b945
[ "MIT" ]
23
2015-04-23T00:19:48.000Z
2017-05-23T18:42:19.000Z
import json __all__ = ['AbstractBackend', 'FileBackend'] class AbstractBackend(object): def __init__(self, *args, **kwargs): super(AbstractBackend, self).__init__(*args, **kwargs) def get_all_events(self): """ Must return a dictionary with the form: { "<thread_na...
30.527778
89
0.508644
6285e2e07d2c00210d9dcf84f6c7718c5bf44e5e
8,279
py
Python
fcos_core/utils/c2_model_loading.py
Singingkettle/SAF-FCOS
5d00b83d659552940025923460d02bb2db7d29e8
[ "BSD-2-Clause" ]
10
2021-08-31T01:39:40.000Z
2022-03-27T13:13:14.000Z
fcos_core/utils/c2_model_loading.py
Singingkettle/SAF-FCOS
5d00b83d659552940025923460d02bb2db7d29e8
[ "BSD-2-Clause" ]
1
2021-10-10T05:36:35.000Z
2021-12-11T05:56:26.000Z
fcos_core/utils/c2_model_loading.py
Singingkettle/SAF-FCOS
5d00b83d659552940025923460d02bb2db7d29e8
[ "BSD-2-Clause" ]
3
2021-09-05T09:14:35.000Z
2021-10-21T03:15:59.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import logging import pickle from collections import OrderedDict import torch from fcos_core.utils.registry import Registry def _rename_basic_resnet_weights(layer_keys): layer_keys = [k.replace("_", ".") for k in layer_keys] layer_keys ...
39.995169
118
0.632685
6285e8eddc8cb5f885028a986ddec5d358d84172
8,195
py
Python
datawinners/accountmanagement/migrations/0015_change_username_length.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/accountmanagement/migrations/0015_change_username_length.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/accountmanagement/migrations/0015_change_username_length.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'User.username' db.alter_column('auth_user', 'username', models.CharField(max_length=75)) def...
64.023438
116
0.548993
6285ff0f8a4b6c00f6b35301739741366f4993d3
4,226
py
Python
lib/model.py
cjwallace/CML_AMP_Image_Analysis
9b9b367ee38f971c46cddb553f2bda4bbc5e3324
[ "Apache-2.0" ]
8
2020-11-30T15:16:03.000Z
2022-02-11T20:49:48.000Z
lib/model.py
cjwallace/CML_AMP_Image_Analysis
9b9b367ee38f971c46cddb553f2bda4bbc5e3324
[ "Apache-2.0" ]
2
2020-12-16T18:23:51.000Z
2022-03-25T19:15:59.000Z
lib/model.py
cjwallace/CML_AMP_Image_Analysis
9b9b367ee38f971c46cddb553f2bda4bbc5e3324
[ "Apache-2.0" ]
8
2020-11-24T17:53:27.000Z
2022-03-15T09:25:02.000Z
# ########################################################################### # # CLOUDERA APPLIED MACHINE LEARNING PROTOTYPE (AMP) # (C) Cloudera, Inc. 2020 # All rights reserved. # # Applicable Open Source License: Apache 2.0 # # NOTE: Cloudera open source products are modular software products # made up of hu...
42.686869
116
0.669664
62861270c3001a2fb0da921be68bbcc4ed31075a
1,846
py
Python
homeassistant/components/august/subscriber.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
2
2020-03-02T19:17:52.000Z
2020-03-02T19:17:53.000Z
homeassistant/components/august/subscriber.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
6
2021-02-08T21:05:36.000Z
2022-03-12T00:54:00.000Z
homeassistant/components/august/subscriber.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
1
2020-03-07T10:43:50.000Z
2020-03-07T10:43:50.000Z
"""Base class for August entity.""" from homeassistant.core import callback from homeassistant.helpers.event import async_track_time_interval class AugustSubscriberMixin: """Base implementation for a subscriber.""" def __init__(self, hass, update_interval): """Initialize an subscriber.""" s...
34.185185
77
0.673348
62861b76f4503e9493cc962eb10d8879232c5ada
4,575
py
Python
src/hub/dataload/sources/ginas/ginas_upload.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
10
2017-07-24T11:45:27.000Z
2022-02-14T13:42:36.000Z
src/hub/dataload/sources/ginas/ginas_upload.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
92
2017-06-22T16:49:20.000Z
2022-03-24T20:50:01.000Z
src/hub/dataload/sources/ginas/ginas_upload.py
ravila4/mychem.info
9b63b5f0957b5e7b252ca8122734a363905036b3
[ "Apache-2.0" ]
11
2017-06-12T18:31:35.000Z
2022-01-31T02:56:52.000Z
import biothings.hub.dataload.uploader as uploader class GinasUploader(uploader.DummySourceUploader): name = "ginas" __metadata__ = { "src_meta" : { "url" : "https://ginas.ncats.nih.gov", "license_url" : "?", } } @classmethod def...
42.361111
85
0.251585
62862497ff6e531de1e80a2fbf72874314d90dc8
4,684
py
Python
azure-devops/azext_devops/test/common/test_vsts_git_url_info.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
null
null
null
azure-devops/azext_devops/test/common/test_vsts_git_url_info.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "MIT" ]
37
2020-04-27T07:45:19.000Z
2021-04-05T07:27:15.000Z
azure-devops/azext_devops/test/common/test_vsts_git_url_info.py
vijayraavi/azure-devops-cli-extension
88f1420c5815cb09bea15b050f4c553e0f326dad
[ "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. # --------------------------------------------------------------------...
62.453333
130
0.666738
628631e8500c19cfb991c1f38a0402614034d094
179
py
Python
app/api.py
cknolla/flask-smorest-sqlalchemy-odata
83f52777f6eace8212c2841c2211cebfa79c48f8
[ "MIT" ]
3
2021-05-20T23:48:00.000Z
2022-02-10T04:30:12.000Z
app/api.py
cknolla/flask-smorest-sqlalchemy-odata
83f52777f6eace8212c2841c2211cebfa79c48f8
[ "MIT" ]
null
null
null
app/api.py
cknolla/flask-smorest-sqlalchemy-odata
83f52777f6eace8212c2841c2211cebfa79c48f8
[ "MIT" ]
null
null
null
"""Flask-Smorest API.""" from flask_smorest import Api, Page api = Api() class CursorPage(Page): @property def item_count(self): return self.collection.count()
16.272727
38
0.670391
62863a4a08f88199d8df2846262ce83667536d9d
320
py
Python
LC/152.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/152.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/152.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def maxProduct(self, nums): """ :type nums: List[int] :rtype: int """ best=small=large=nums[0] for num in nums[1:]: small, _, large = sorted([num, num*small, num*large]) best=max(best, large) return best
26.666667
65
0.490625
6286566ca7a6d10f329650f96472d72c37114391
578
py
Python
src/apps/incidencias/migrations/0004_auto_20190329_1442.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
src/apps/incidencias/migrations/0004_auto_20190329_1442.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
48
2017-04-21T17:35:23.000Z
2020-08-29T04:19:35.000Z
src/apps/incidencias/migrations/0004_auto_20190329_1442.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-03-29 20:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('incidencias', '0003_auto_20190311_1519'), ] operations = [ migrations.AlterField( model_name='incidencia', name='fec...
24.083333
62
0.591696
628691dda1d354411602250f526f526846238e47
5,335
py
Python
yatest/testutility.py
boluny/cray
b8c628df70a3dd488067bce393123e9686393b33
[ "MIT" ]
1
2017-10-13T06:58:25.000Z
2017-10-13T06:58:25.000Z
yatest/testutility.py
boluny/cray
b8c628df70a3dd488067bce393123e9686393b33
[ "MIT" ]
3
2017-07-21T08:09:39.000Z
2018-08-15T08:42:39.000Z
yatest/testutility.py
boluny/cray
b8c628df70a3dd488067bce393123e9686393b33
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- '''test cases for utility module''' import unittest import os import cray.craylib.utility as test_module ROOT_DIR = os.path.join(os.path.dirname(__file__), "test_site") def get_test_suites(): '''Return test cases as a suite in this module''' suite = unittest.TestSuite() suite.addT...
38.107143
96
0.660544
6286a80fa0b719342c4233e207cee59bd81034cc
396
py
Python
editdns/wsgi.py
jrlevine/editdns
58a66b8e90b1365593e3a91e59e5a556bff55288
[ "Unlicense" ]
null
null
null
editdns/wsgi.py
jrlevine/editdns
58a66b8e90b1365593e3a91e59e5a556bff55288
[ "Unlicense" ]
null
null
null
editdns/wsgi.py
jrlevine/editdns
58a66b8e90b1365593e3a91e59e5a556bff55288
[ "Unlicense" ]
null
null
null
""" WSGI config for dnsdjango 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/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SE...
23.294118
78
0.787879
6286c26c69be247e8e9a98f6606d402bc3d777ba
245
py
Python
heatrapy/dimension_2/solvers/__init__.py
djsilva99/heatrapy
91902e8fd9e216638855856ed7c0757bbade11c2
[ "MIT" ]
31
2019-03-21T15:41:18.000Z
2022-03-21T15:41:49.000Z
heatrapy/dimension_2/solvers/__init__.py
danieljosesilva/heatrapy
5d1297d67ea237b2c6537133ace8c1f4a6091518
[ "MIT" ]
9
2020-09-01T08:50:52.000Z
2022-03-12T00:55:53.000Z
heatrapy/dimension_2/solvers/__init__.py
djsilva99/heatrapy
91902e8fd9e216638855856ed7c0757bbade11c2
[ "MIT" ]
7
2020-03-10T19:34:32.000Z
2022-03-28T01:12:59.000Z
"""Solvers. This submodule contains the solvers for the computation of the two-dimensional thermal processes. """ from .explicit_k import explicit_k from .explicit_general import explicit_general __all__ = ['explicit_k', 'explicit_general']
20.416667
78
0.795918
6286d8dea71be5a071a5aec351cdc378a6f816cc
7,291
py
Python
futaba/enums.py
tser0f/futaba
99289f4355ef20ca749c3869a69d5e0119e2dbc4
[ "MIT" ]
1
2020-09-04T23:45:33.000Z
2020-09-04T23:45:33.000Z
futaba/enums.py
telugu-boy/futaba
680549407a6a1f2a44a9e0c50fbde8fad2b39a85
[ "MIT" ]
null
null
null
futaba/enums.py
telugu-boy/futaba
680549407a6a1f2a44a9e0c50fbde8fad2b39a85
[ "MIT" ]
null
null
null
# # enums.py # # futaba - A Discord Mod bot for the Programming server # Copyright (c) 2017-2020 Jake Richardson, Ammon Smith, jackylam5 # # futaba is available free of charge under the terms of the MIT # License. You are free to redistribute and/or modify it under those # terms. It is distributed in the hopes that it ...
28.480469
71
0.591277
628717115fdaff741813ab460993b9d31b726dc2
702
py
Python
13.py
BYOUINZAKA/LeetCodeNotes
48e1b4522c1f769eeec4944cfbd57abf1281d09a
[ "MIT" ]
null
null
null
13.py
BYOUINZAKA/LeetCodeNotes
48e1b4522c1f769eeec4944cfbd57abf1281d09a
[ "MIT" ]
null
null
null
13.py
BYOUINZAKA/LeetCodeNotes
48e1b4522c1f769eeec4944cfbd57abf1281d09a
[ "MIT" ]
null
null
null
''' @Author: Hata @Date: 2020-07-27 19:03:44 @LastEditors: Hata @LastEditTime: 2020-07-27 19:10:40 @FilePath: \LeetCode\13.py @Description: https://leetcode-cn.com/problems/roman-to-integer/ ''' class Solution: table = { 'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, '...
22.645161
117
0.492877
628734fb3db8d50785df311253bdf520eed4e3aa
1,872
py
Python
codegen_sources/model/src/logger.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
codegen_sources/model/src/logger.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
codegen_sources/model/src/logger.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import logging import time from datetime import timedelta class LogFormatter: def __init__(self): self.start_time...
27.940299
71
0.652244
62874cc4963a58d3ed5c6c8c383b4c6343f092c5
3,834
py
Python
optimo/api.py
fieldaware/optimoroute
dffaa22a4aa3f6992c71d394147512c84852ee96
[ "BSD-3-Clause" ]
6
2015-07-21T09:54:40.000Z
2019-03-03T01:38:02.000Z
optimo/api.py
fieldaware/optimoroute
dffaa22a4aa3f6992c71d394147512c84852ee96
[ "BSD-3-Clause" ]
1
2018-11-19T15:22:35.000Z
2018-11-20T08:33:33.000Z
optimo/api.py
fieldaware/optimoroute
dffaa22a4aa3f6992c71d394147512c84852ee96
[ "BSD-3-Clause" ]
2
2017-01-19T23:26:22.000Z
2020-09-09T21:43:27.000Z
# -*- coding: utf-8 -*- import json from .errors import OptimoError from .base import CoreOptimoAPI from .util import OptimoEncoder, DEFAULT_API_VERSION, validate_config_params from .models import RoutePlan def parse_response(raw_response): data = json.loads(raw_response['content']) status_code = raw_respons...
39.9375
98
0.647887
62877d2959bbd755804891c793e6afb79dfa5a0e
4,992
py
Python
Lib/compiler/compile.py
zemingWaterloo/FontTool
b049cbf01794cf3a3edf0ce79f428964cf0d86be
[ "Adobe-Glyph" ]
null
null
null
Lib/compiler/compile.py
zemingWaterloo/FontTool
b049cbf01794cf3a3edf0ce79f428964cf0d86be
[ "Adobe-Glyph" ]
null
null
null
Lib/compiler/compile.py
zemingWaterloo/FontTool
b049cbf01794cf3a3edf0ce79f428964cf0d86be
[ "Adobe-Glyph" ]
1
2019-08-14T15:57:38.000Z
2019-08-14T15:57:38.000Z
import sys import os import xml.etree.ElementTree as XML import token import AST import bytecode CURSOR_UP = '\x1b[1A' ERASE = '\x1b[2K' def generate_ttx(ori_ttx_file,out_ttx_file,font_bytecode): tree = XML.parse(ori_ttx_file) root = tree.getroot() for child_l1 in root: if child_l1.tag == 'fpgm': ...
28.363636
76
0.553085
62878fd0b5c0a4eb3bce658e64200e592201c560
1,667
py
Python
tests/examples/test_gp_symbolic_regression_ephemeral.py
jorgetavares/pygenome
2b529ea55feff8c4a0214b37354d4d7c273202a3
[ "MIT" ]
1
2019-11-18T14:41:20.000Z
2019-11-18T14:41:20.000Z
tests/examples/test_gp_symbolic_regression_ephemeral.py
jorgetavares/pygenome
2b529ea55feff8c4a0214b37354d4d7c273202a3
[ "MIT" ]
null
null
null
tests/examples/test_gp_symbolic_regression_ephemeral.py
jorgetavares/pygenome
2b529ea55feff8c4a0214b37354d4d7c273202a3
[ "MIT" ]
null
null
null
from examples.gp_symbolic_regression_ephemeral import * stdout = """0 15.5 342.7222745822774 1366.9995897577076 1 15.5 174.4685625489089 844.2272957512475 2 15.5 124.54681372800574 98.97669147086395 3 15.5 123.06199596422003 172.773005271157 4 15.5 112.93167401603057 110.55449386625767 5 15.5 110.75156490776085 107.15...
45.054054
97
0.721656
6287c27f7e9ec4d82acb4084995739b87244f3f9
4,978
py
Python
.leetcode/218.the-skyline-problem.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/218.the-skyline-problem.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/218.the-skyline-problem.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=218 lang=python3 # # [218] The Skyline Problem # # https://leetcode.com/problems/the-skyline-problem/description/ # # algorithms # Hard (36.96%) # Likes: 2982 # Dislikes: 166 # Total Accepted: 174.8K # Total Submissions: 471.7K # Testcase Example: '[[2,9,10],[3,7,15],[5,12,12],[15,20,10],[1...
27.655556
79
0.605665
6287d12dea31d13a7093fabc0ff341587c5c41ba
291
py
Python
terrascript/netapp-cloudmanager/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/netapp-cloudmanager/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/netapp-cloudmanager/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/netapp_cloudmanager/__init__.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class netapp_cloudmanager(terrascript.Provider): pass
19.4
79
0.790378
62880a0c7fb862adcf8cea2918d6283e0f9d95e4
3,032
py
Python
rtdl/experimental/data.py
Yura52/rtdl
5c768802e71afa622f8f2f0a6e117a75c1b2bf44
[ "MIT" ]
25
2022-03-10T21:48:50.000Z
2022-03-30T11:47:27.000Z
rtdl/experimental/data.py
Yura52/rtdl
5c768802e71afa622f8f2f0a6e117a75c1b2bf44
[ "MIT" ]
1
2022-03-14T15:31:34.000Z
2022-03-15T15:35:07.000Z
rtdl/experimental/data.py
Yura52/rtdl
5c768802e71afa622f8f2f0a6e117a75c1b2bf44
[ "MIT" ]
1
2022-03-21T01:39:19.000Z
2022-03-21T01:39:19.000Z
"""[EXPERIMENTAL] Tools for data (pre)processing.""" import numpy as np import scipy.sparse from sklearn.preprocessing import QuantileTransformer, StandardScaler from sklearn.utils import check_random_state class NoisyQuantileTransformer(QuantileTransformer): """A variation of `sklearn.preprocessing.QuantileTran...
36.53012
143
0.638852
62880aa73ada487afe880892ec5b397d5c20f9d9
555
py
Python
src/gui/dialog_about.py
gywukun09/GPS
ce474f4afbcb64d46e85f04675e63343d5b65b47
[ "MIT" ]
18
2017-08-08T16:46:21.000Z
2021-11-24T06:43:08.000Z
src/gui/dialog_about.py
haoxy97/GPS
3da6d3a7410b7b7e5340373f206a1833759d5acf
[ "MIT" ]
1
2019-12-24T11:53:18.000Z
2019-12-24T11:53:18.000Z
src/gui/dialog_about.py
haoxy97/GPS
3da6d3a7410b7b7e5340373f206a1833759d5acf
[ "MIT" ]
14
2017-07-08T03:17:37.000Z
2022-01-10T12:33:27.000Z
import sys import os import cantera as ct import json import time import shutil import copy from PyQt4 import uic from PyQt4.QtGui import * from PyQt4.QtCore import * from def_dialog import common from src.core.def_tools import keys_sorted from src.ct.ck2cti_GPS import ck2cti import os class dialog_about(co...
13.875
59
0.702703
62881053b42905db29e4dbc2848b32b9b21843cb
2,714
py
Python
mlapp/mlapp_cli/cli_help.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
33
2021-02-26T10:41:09.000Z
2021-11-07T12:35:32.000Z
mlapp/mlapp_cli/cli_help.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
17
2021-03-04T15:37:21.000Z
2021-04-06T12:00:13.000Z
mlapp/mlapp_cli/cli_help.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
9
2021-03-03T20:02:41.000Z
2021-10-05T13:03:56.000Z
cli_assets_help = { "create": \ '''Usage: `mlapp assets create ASSET_NAME` - creates an asset named ASSET_NAME\n `mlapp assets create ASSET_NAME -f` - forcing asset creation named ASSET_NAME (caution: can override existing asset)\n ''', "show": '''Show all your project assets.''', "rename": \ '''Usage: `m...
29.5
148
0.71776
6288133d2901a67e7acc920123309a6a4479271f
6,536
py
Python
src/python/pants/backend/native/subsystems/xcode_cli_tools.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/native/subsystems/xcode_cli_tools.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/native/subsystems/xcode_cli_tools.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import os from pants.backend.native.config.environment import Assembler, CCompiler, CppC...
34.4
105
0.706854
62882b7220f0549f0e252c5491e99df3f41790b5
49,869
py
Python
modules/templates/SAFIRE/config.py
ConnerDavisCNU/eden
3e268523b80eee699307e1635e23722596dd9016
[ "MIT" ]
null
null
null
modules/templates/SAFIRE/config.py
ConnerDavisCNU/eden
3e268523b80eee699307e1635e23722596dd9016
[ "MIT" ]
null
null
null
modules/templates/SAFIRE/config.py
ConnerDavisCNU/eden
3e268523b80eee699307e1635e23722596dd9016
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from collections import OrderedDict from gluon import current, URL from gluon.storage import Storage def config(settings): """ Template settings: 'Skeleton' designed to be copied to quickly create custom templates All settings which are to confi...
44.170948
198
0.440574
628858dec9df2481a1f5ae6bc3166d227adb78d8
8,884
py
Python
datawinners/dashboard/views.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/dashboard/views.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/dashboard/views.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 import json from django.contrib import messages from django.http import HttpResponse from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse from django.shortcuts import render_to_response from django.template.context import Req...
39.309735
119
0.675259
62887f840730e74f229b21e65986cc27803cb151
6,183
py
Python
ssg/products.py
mrogers950/cac-content-fork
3a645848e0fa2994bc6d43736cb8fdd057ecb2d6
[ "BSD-3-Clause" ]
null
null
null
ssg/products.py
mrogers950/cac-content-fork
3a645848e0fa2994bc6d43736cb8fdd057ecb2d6
[ "BSD-3-Clause" ]
null
null
null
ssg/products.py
mrogers950/cac-content-fork
3a645848e0fa2994bc6d43736cb8fdd057ecb2d6
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import os from collections import namedtuple from glob import glob from .build_cpe import ProductCPEs from .constants import (DEFAULT_PRODUCT, product_directories, DEFAULT_GID_MIN, DEFAULT_UID_...
37.023952
99
0.68284
62888d456e54060e2228839aa7c9335b449c77cc
90,376
py
Python
opsbro/misc/internalcherrypy/cherrypy/wsgiserver/wsgiserver2.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
32
2017-08-29T08:57:16.000Z
2021-04-21T08:53:04.000Z
opsbro/misc/internalcherrypy/cherrypy/wsgiserver/wsgiserver2.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
108
2017-09-04T19:59:28.000Z
2022-03-31T08:12:07.000Z
opsbro/misc/internalcherrypy/cherrypy/wsgiserver/wsgiserver2.py
naparuba/kunai
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
8
2015-02-03T12:30:53.000Z
2017-07-29T19:43:54.000Z
"""A high-speed, production ready, thread pooled, generic HTTP server. Simplest example on how to use this module directly (without using CherryPy's application machinery):: from cherrypy import wsgiserver def my_crazy_app(environ, start_response): status = '200 OK' response_headers = [('Cont...
36.412571
79
0.536415
6288f5ba619ea22b9a57f029366b520582d2ee4a
891
py
Python
leetcode/153. Find Minimum in Rotated Sorted Array/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
leetcode/153. Find Minimum in Rotated Sorted Array/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
leetcode/153. Find Minimum in Rotated Sorted Array/soln.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
class Solution: def findMin(self, nums: List[int]) -> int: low, high = 0, len(nums)-1 # base sorted case and single input cases [0] if nums[high] >= nums[0]: return nums[0] while low <= high: mid = (low + high)//2 # print(low, mid, high) ...
40.5
81
0.481481
6288fa28e3e5824303df873af49ea07015c8173b
69,360
py
Python
wc_model_gen/eukaryote/transcription.py
KarrLab/model_generator
b2735391545bcd5f21faaa1ceaa1949e53497378
[ "MIT" ]
6
2018-12-24T16:20:11.000Z
2022-01-26T23:38:25.000Z
wc_model_gen/eukaryote/transcription.py
KarrLab/model_generator
b2735391545bcd5f21faaa1ceaa1949e53497378
[ "MIT" ]
15
2018-08-08T20:34:40.000Z
2021-10-31T20:08:40.000Z
wc_model_gen/eukaryote/transcription.py
KarrLab/model_generator
b2735391545bcd5f21faaa1ceaa1949e53497378
[ "MIT" ]
2
2019-04-05T16:11:57.000Z
2020-04-29T14:14:30.000Z
""" Generator for transcription submodels for eukaryotes :Author: Yin Hoon Chew <yinhoon.chew@mssm.edu> :Date: 2019-01-07 :Copyright: 2019, Karr Lab :License: MIT """ from wc_onto import onto from wc_utils.util.chem import EmpiricalFormula from wc_utils.util.units import unit_registry import wc_model_gen.global_vars ...
54.2723
137
0.595905