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
033eb57692ec345f674618668c478194ac8f136a
215
py
Python
skynet/util/hash.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
7
2021-09-07T02:14:15.000Z
2022-03-27T06:42:35.000Z
skynet/util/hash.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
1
2021-10-21T16:38:56.000Z
2021-11-15T13:03:15.000Z
skynet/util/hash.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
3
2021-10-21T07:17:40.000Z
2022-03-16T12:57:09.000Z
import blspy from skynet.types.blockchain_format.sized_bytes import bytes32 def std_hash(b) -> bytes32: """ The standard hash used in many places. """ return bytes32(blspy.Util.hash256(bytes(b)))
19.545455
62
0.706977
033ecdc05e4e9dc2894aed3e67e10e92c765d14d
550
py
Python
menu/migrations/0007_auto_20160829_0622.py
RevolutionTech/seared-quail
ef2b87146850509e2f6f4057344fdc037c8a2808
[ "0BSD" ]
1
2021-01-28T20:10:36.000Z
2021-01-28T20:10:36.000Z
menu/migrations/0007_auto_20160829_0622.py
RevolutionTech/seared-quail
ef2b87146850509e2f6f4057344fdc037c8a2808
[ "0BSD" ]
150
2016-08-27T21:38:36.000Z
2021-10-16T23:32:05.000Z
menu/migrations/0007_auto_20160829_0622.py
RevolutionTech/seared-quail
ef2b87146850509e2f6f4057344fdc037c8a2808
[ "0BSD" ]
2
2016-08-27T21:35:12.000Z
2018-01-13T08:11:33.000Z
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("menu", "0006_category_parent")] operations = [ migrations.AlterModelOptions( name="category", options={"ordering": ("order",), "verbose_name_plural": "Categories"}, ), ...
27.5
88
0.601818
033f05fed667b080e919678a771862767baa8132
2,964
py
Python
glimix_core/_ep/posterior_linear_kernel.py
Horta/limix-inference
1ba102fc544f8d307412d361b574da9d4c166f8e
[ "MIT" ]
7
2019-06-10T12:27:25.000Z
2021-07-23T16:36:04.000Z
glimix_core/_ep/posterior_linear_kernel.py
Horta/limix-inference
1ba102fc544f8d307412d361b574da9d4c166f8e
[ "MIT" ]
12
2017-05-28T10:59:31.000Z
2021-05-17T20:11:00.000Z
glimix_core/_ep/posterior_linear_kernel.py
Horta/limix-inference
1ba102fc544f8d307412d361b574da9d4c166f8e
[ "MIT" ]
5
2017-08-27T20:13:45.000Z
2022-02-14T06:33:14.000Z
from numpy import dot from .posterior import Posterior def _cho_factor(B): from scipy.linalg import cho_factor B = cho_factor(B, overwrite_a=True, lower=True, check_finite=False)[0] return B class PosteriorLinearKernel(Posterior): """ EP posterior. It is given by :: 𝐳 ∼ 𝒩(Σ(T̃�...
24.295082
76
0.514845
033f1adf2c72aa55ad0b23619e24c937032a8236
20,806
py
Python
scripts/archive/blockpageschecker.py
ankitdobhal/pywikibot
d6328a486296c0e8452b9f5334d5467a2c77ec07
[ "MIT" ]
null
null
null
scripts/archive/blockpageschecker.py
ankitdobhal/pywikibot
d6328a486296c0e8452b9f5334d5467a2c77ec07
[ "MIT" ]
6
2021-02-27T03:35:42.000Z
2021-03-07T22:17:40.000Z
scripts/blockpageschecker.py
ModelTemplate/WarframeWikiBot
7685057f65d95551ccdb7e958aac3bb58ee8b5b3
[ "MIT" ]
null
null
null
#!/usr/bin/python """ A bot to remove stale protection templates from pages that are not protected. Very often sysops block the pages for a set time but then they forget to remove the warning! This script is useful if you want to remove those useless warning left in these pages. These command line parameters can be u...
40.956693
79
0.532635
033f5a5be3c96cc4c83daed9a6e71253a6bcd6a0
344
py
Python
docs/source/code_examples/tutorials/datasets/creating_a_dataset.py
encord-team/encord-client-python
665963c21d7a06e63dce105f9d29daf660617ad5
[ "Apache-2.0" ]
4
2022-02-09T00:31:18.000Z
2022-03-04T17:19:47.000Z
docs/source/code_examples/tutorials/datasets/creating_a_dataset.py
encord-team/encord-client-python
665963c21d7a06e63dce105f9d29daf660617ad5
[ "Apache-2.0" ]
21
2022-02-07T10:05:08.000Z
2022-03-16T19:52:58.000Z
docs/source/code_examples/tutorials/datasets/creating_a_dataset.py
encord-team/encord-client-python
665963c21d7a06e63dce105f9d29daf660617ad5
[ "Apache-2.0" ]
2
2022-02-21T13:55:54.000Z
2022-03-04T17:15:19.000Z
from encord.orm.dataset import CreateDatasetResponse, StorageLocation from encord.user_client import EncordUserClient user_client: EncordUserClient = EncordUserClient.create_with_ssh_private_key( "<your_private_key>" ) dataset: CreateDatasetResponse = user_client.create_dataset( "Example Title", StorageLocati...
28.666667
77
0.831395
033f61bd0189cf7293c0be98fcb604df6b05b460
1,210
py
Python
redmine_shell/shell/constants.py
shlomo90/redmine_shell
546a28ca216cf9d75082b5008089e8263916a876
[ "MIT" ]
1
2021-11-09T03:44:48.000Z
2021-11-09T03:44:48.000Z
redmine_shell/shell/constants.py
shlomo90/redmine_shell
546a28ca216cf9d75082b5008089e8263916a876
[ "MIT" ]
null
null
null
redmine_shell/shell/constants.py
shlomo90/redmine_shell
546a28ca216cf9d75082b5008089e8263916a876
[ "MIT" ]
null
null
null
""" All Constants variables. """ import os from redmine_shell.shell.config import VERSION # TODO: Unify name. VERSION_CHECK_FORMAT = "PROGRAM VERSION CHECK: {}" UPDATE_RECOMMAND_FORMAT = "--> The version {} is released! Please upgrade program!" UPDATE_WARNING_MESSAGE = "--> WARNING!: This version i...
21.607143
83
0.670248
033f8fe620a969e5c9aaa7930466da1001103773
4,262
py
Python
alipay/aop/api/domain/MemberCardUserTransactionDetail.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/MemberCardUserTransactionDetail.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/MemberCardUserTransactionDetail.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class MemberCardUserTransactionDetail(object): def __init__(self): self._amount = None self._benefit = None self._biz_date = None self._biz_type = None self._pri...
29.191781
85
0.57344
033fa7052f91eceebdd629b23d86d49617694a11
3,297
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_11_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_11_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2018_11_01/_configuration.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 ...
47.782609
132
0.694571
033fa959359e20894c376341d2f9ad79d30a5878
10,979
py
Python
tensorflow/python/kernel_tests/gather_op_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/kernel_tests/gather_op_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/kernel_tests/gather_op_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2015 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...
45.18107
80
0.625102
03401b53c383894c55ad69ab7234af8bc5e76278
7,039
py
Python
experiments/ashvin/corl2019/pcvae/rig_pointmass/standard_skewfit1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/corl2019/pcvae/rig_pointmass/standard_skewfit1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/corl2019/pcvae/rig_pointmass/standard_skewfit1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from experiments.murtaza.multiworld.skew_fit.reacher.generate_uniform_dataset import generate_uniform_dataset_reacher from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in from rlkit.launchers.launcher_util import run_experiment from rlkit.torch.grill.launcher i...
39.544944
135
0.600511
03401e9d18c7f0b586f97ef0a618ceafd96daeed
3,519
py
Python
python/ray/rllib/offline/json_writer.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
2
2019-10-08T13:31:08.000Z
2019-10-22T18:34:52.000Z
python/ray/rllib/offline/json_writer.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
1
2018-12-26T01:09:50.000Z
2018-12-26T01:09:50.000Z
python/ray/rllib/offline/json_writer.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
6
2019-03-12T05:37:35.000Z
2020-03-09T12:25:17.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from datetime import datetime import json import logging import numpy as np import os from six.moves.urllib.parse import urlparse import time try: from smart_open import smart_open except ImportError: ...
32.284404
78
0.59335
034024c838431661dcfa94a2645ca81c8dc332d2
3,955
py
Python
alipay/aop/api/request/AlipayOpenIotmbsRoomUnbindRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayOpenIotmbsRoomUnbindRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayOpenIotmbsRoomUnbindRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/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.AlipayOpenIotmbsRoomUnbindModel import AlipayOpenIotmbsRoomUnbindModel class AlipayOpenIotmbsRoomUnbindRequest(object): def __i...
27.275862
148
0.643236
034037c5ab14fe30e09205cda9213ecb47909f76
3,549
py
Python
ptlflow/models/flownet/submodules.py
jasonbian97/ptlflow
8a7307af1c0b241108f3125cb716d64a18c1b87e
[ "Apache-2.0" ]
78
2021-06-15T03:11:33.000Z
2022-03-25T05:51:25.000Z
ptlflow/models/flownet/submodules.py
jasonbian97/ptlflow
8a7307af1c0b241108f3125cb716d64a18c1b87e
[ "Apache-2.0" ]
12
2021-07-04T17:02:57.000Z
2022-02-09T09:30:43.000Z
ptlflow/models/flownet/submodules.py
jasonbian97/ptlflow
8a7307af1c0b241108f3125cb716d64a18c1b87e
[ "Apache-2.0" ]
3
2021-07-27T21:28:51.000Z
2021-09-17T10:06:27.000Z
# freda (todo) : import torch.nn as nn import torch import numpy as np try: from spatial_correlation_sampler import spatial_correlation_sample except ModuleNotFoundError: from ptlflow.utils.correlation import iter_spatial_correlation_sample as spatial_correlation_sample def conv(batchNorm, in_planes, out_pla...
32.559633
125
0.608904
034042be06c9684c194f8b220b89d5483e86b4cb
398
py
Python
youtubeadl/settings/local.py
loftwah/youtube-audio-dl
c911155db63aff7e2e9c6ba0d73a04d2d5f9eb0e
[ "MIT" ]
null
null
null
youtubeadl/settings/local.py
loftwah/youtube-audio-dl
c911155db63aff7e2e9c6ba0d73a04d2d5f9eb0e
[ "MIT" ]
null
null
null
youtubeadl/settings/local.py
loftwah/youtube-audio-dl
c911155db63aff7e2e9c6ba0d73a04d2d5f9eb0e
[ "MIT" ]
null
null
null
from youtubeadl.settings.base import * INSTALLED_APPS += ('debug_toolbar',) MIDDLEWARE += ('debug_toolbar.middleware.DebugToolbarMiddleware', ) # The Django Debug Toolbar will only be shown to these client IPs. INTERNAL_IPS = ( '127.0.0.1', '192.168.33.1', ) DEBUG_TOOLBAR_CONFIG = { 'INTERCEPT_REDIRECT...
20.947368
67
0.708543
0340506cf9ed7b3251bb05b2f3f5e79b87232c88
16,510
py
Python
sudoku/src/plugin.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
sudoku/src/plugin.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
sudoku/src/plugin.py
pololoko111/enigma2-plugins
79b4e5e15663bcda7d1b679769e10942915f5bf5
[ "OLDAP-2.3" ]
null
null
null
# -*- coding: ISO-8859-1 -*- #=============================================================================== # Sudoku Plugin by DarkVolli 2009 # class board by Robert Wohleb # # This is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free ...
24.827068
213
0.637916
034065d330ef1f0c9a5e138a902f19c44e02d6b1
5,126
py
Python
lhotse/recipes/ljspeech.py
freewym/lhotse
66e9bbaf25b75011388ab00189baa162c3c1d435
[ "Apache-2.0" ]
null
null
null
lhotse/recipes/ljspeech.py
freewym/lhotse
66e9bbaf25b75011388ab00189baa162c3c1d435
[ "Apache-2.0" ]
null
null
null
lhotse/recipes/ljspeech.py
freewym/lhotse
66e9bbaf25b75011388ab00189baa162c3c1d435
[ "Apache-2.0" ]
null
null
null
""" The LJ Speech Dataset is a public domain speech dataset consisting of 13,100 short audio clips of a single speaker reading passages from 7 non-fiction books. A transcription is provided for each clip. Clips vary in length from 1 to 10 seconds and have a total length of approximately 24 hours. The texts were publis...
35.351724
117
0.660554
0340a2a155ea274a657c6bc61280f2994dc6b6ed
1,032
py
Python
frontends/ntt-pipeline/fud/ntt.py
badenh/calyx
020f04f090b95e2f986565eec7e3c1b0dfb68f4a
[ "MIT" ]
109
2021-02-14T23:08:05.000Z
2022-03-25T23:50:58.000Z
frontends/ntt-pipeline/fud/ntt.py
badenh/calyx
020f04f090b95e2f986565eec7e3c1b0dfb68f4a
[ "MIT" ]
432
2021-02-05T19:10:25.000Z
2022-03-30T19:03:50.000Z
frontends/ntt-pipeline/fud/ntt.py
badenh/calyx
020f04f090b95e2f986565eec7e3c1b0dfb68f4a
[ "MIT" ]
21
2021-02-14T23:27:52.000Z
2022-02-03T06:22:43.000Z
from fud.stages import Stage, SourceType from fud.utils import shell import pathlib class NTTStage(Stage): """ Stage to transform NTT configurations into Calyx programs. """ name = "ntt" def __init__(self, config): super().__init__( src_state="ntt", target_state="...
25.8
64
0.619186
0340a3c6507ffa513c755da5e36437413be34021
3,375
py
Python
migrations/versions/4a759ac14ccc_.py
dan-mutua/flaskwk3
f7ee5a27d52005bedd757d6008102b9f82508521
[ "MIT" ]
null
null
null
migrations/versions/4a759ac14ccc_.py
dan-mutua/flaskwk3
f7ee5a27d52005bedd757d6008102b9f82508521
[ "MIT" ]
null
null
null
migrations/versions/4a759ac14ccc_.py
dan-mutua/flaskwk3
f7ee5a27d52005bedd757d6008102b9f82508521
[ "MIT" ]
null
null
null
"""empty message Revision ID: 4a759ac14ccc Revises: Create Date: 2021-09-26 13:23:01.601545 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '4a759ac14ccc' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
37.5
83
0.656593
0340ab63f25771220058844cd848175e25d21f86
80
py
Python
splink_graph/splink_graph.py
xingyaoc/splink_graph
84ee1b8b96066b50e644996d34f958fb881467dc
[ "MIT" ]
null
null
null
splink_graph/splink_graph.py
xingyaoc/splink_graph
84ee1b8b96066b50e644996d34f958fb881467dc
[ "MIT" ]
null
null
null
splink_graph/splink_graph.py
xingyaoc/splink_graph
84ee1b8b96066b50e644996d34f958fb881467dc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class SplinkGraph(object): def __init__(self): pass
13.333333
26
0.6375
0340c028a1a9ad6d81b9ccd23dc1c6a3f98f1de8
694
py
Python
PyInstaller/hooks/hook-gi.repository.Gsk.py
BA7JCM/pyinstaller
51ff689509391921bdce42848f3a077dcbb40ca0
[ "Apache-2.0" ]
null
null
null
PyInstaller/hooks/hook-gi.repository.Gsk.py
BA7JCM/pyinstaller
51ff689509391921bdce42848f3a077dcbb40ca0
[ "Apache-2.0" ]
null
null
null
PyInstaller/hooks/hook-gi.repository.Gsk.py
BA7JCM/pyinstaller
51ff689509391921bdce42848f3a077dcbb40ca0
[ "Apache-2.0" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2005-2022, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
38.555556
78
0.59366
0340c20a11889ec0846155fefbf06457753b6fa2
6,156
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_09_01/operations/_private_link_resources_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_09_01/operations/_private_link_resources_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_09_01/operations/_private_link_resources_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...
42.455172
229
0.695257
0340ea88366fcfd92dde27c852b222d998628c2b
21,993
py
Python
tests/unit/modules/schedule_test.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
2
2015-08-04T21:54:38.000Z
2019-04-25T21:47:08.000Z
tests/unit/modules/schedule_test.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/schedule_test.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>` ''' # Import Python Libs from __future__ import absolute_import # Import Salt Testing Libs from salttesting import TestCase, skipIf from salttesting.mock import ( MagicMock, patch, NO_MOCK, NO_MOCK_REASON ) fr...
50.212329
112
0.484381
03410fbccad100830086150757c6ac418018bd8c
196
py
Python
src/Loggers/initialize_directories.py
amitsou/Multimodal-User-Monitoring
178049485b4afe5fbf9511e74e4c2f78bd89d426
[ "MIT" ]
2
2020-07-28T14:20:45.000Z
2021-01-07T23:55:52.000Z
src/Loggers/initialize_directories.py
amitsou/Multimodal-User-Monitoring
178049485b4afe5fbf9511e74e4c2f78bd89d426
[ "MIT" ]
7
2020-06-30T13:00:10.000Z
2021-01-09T00:47:22.000Z
src/Loggers/initialize_directories.py
amitsou/Multimodal-User-Monitoring
178049485b4afe5fbf9511e74e4c2f78bd89d426
[ "MIT" ]
1
2020-12-15T15:07:18.000Z
2020-12-15T15:07:18.000Z
import sys import os sys.path.insert(0, os.path.join(os.path.dirname( os.path.realpath(__file__)), "../")) from Functions import utils as ut if __name__=='__main__': ut.initialize_dirs()
21.777778
48
0.709184
03413721b3f6ab037ddde774637b4e62bca8553d
716
py
Python
examples/run_categorical_a2c_agent.py
kosmitive/burro
cc6662bef8693a1c160e80d9482371620deb5304
[ "MIT" ]
5
2020-06-25T23:00:26.000Z
2020-08-28T02:51:28.000Z
examples/run_categorical_a2c_agent.py
kosmitive/burrolib
2b1d690ec9c9371f5b455dd98439dce51d270909
[ "MIT" ]
5
2020-11-09T11:43:42.000Z
2021-01-09T13:15:09.000Z
examples/run_categorical_a2c_agent.py
kosmitive/burrolib
2b1d690ec9c9371f5b455dd98439dce51d270909
[ "MIT" ]
null
null
null
import sys from copy import deepcopy from burrolib.agents.categorical_agent import CategoricalAgent from burrolib.games.beer_game import BeerGame from burrolib.policies.categorical_policy import CategoricalPolicyModel from burrolib.run import run # sys.path.append(".") # Initalize policy model cat_policy = Categori...
23.096774
85
0.78352
03413cbadee51415b4b6f4bc13ff5f77217b94bc
576
py
Python
nuconnector/urls.py
samersultan/treeio
6299fbe7826800d576f7ab68b4c1996b7194540f
[ "MIT" ]
2
2019-02-22T16:02:19.000Z
2019-02-23T19:27:34.000Z
nuconnector/urls.py
dewmal/treeio
6299fbe7826800d576f7ab68b4c1996b7194540f
[ "MIT" ]
null
null
null
nuconnector/urls.py
dewmal/treeio
6299fbe7826800d576f7ab68b4c1996b7194540f
[ "MIT" ]
null
null
null
# encoding: utf-8 # Copyright 2011 Tree.io Limited # This file is part of Treeio. # License www.tree.io/license """ Nuvius Connector URLs """ from django.conf.urls.defaults import patterns, url urlpatterns = patterns('nuconnector.views', # Check that the submitted profile id/key pair is valid ...
28.8
109
0.664931
03417a28fb1325ca6dee8f37b9fb310e993ae072
1,701
py
Python
tests/test_routes/test_routes_schema_versions.py
hed-standard/hed-web
8603526266dff78cf07e49e6c0f0c715a9225289
[ "MIT" ]
null
null
null
tests/test_routes/test_routes_schema_versions.py
hed-standard/hed-web
8603526266dff78cf07e49e6c0f0c715a9225289
[ "MIT" ]
null
null
null
tests/test_routes/test_routes_schema_versions.py
hed-standard/hed-web
8603526266dff78cf07e49e6c0f0c715a9225289
[ "MIT" ]
2
2022-02-04T19:55:40.000Z
2022-02-04T21:36:04.000Z
import os import io import json import unittest from werkzeug.datastructures import FileStorage from tests.test_web_base import TestWebBase class Test(TestWebBase): def test_schema_versions(self): with self.app.app_context(): response = self.app.test.post('/schema_versions') ...
44.763158
109
0.634921
03417d9667241b987e359f1eebb65be32fcddc4c
381
py
Python
Stackless/test/become.py
masamitsu-murase/stackless
677b36ffe5cb5a0f4b8d3abfa20982c8d82ffb92
[ "CNRI-Python-GPL-Compatible" ]
854
2017-09-11T16:42:28.000Z
2022-03-27T14:17:09.000Z
Stackless/test/become.py
masamitsu-murase/stackless
677b36ffe5cb5a0f4b8d3abfa20982c8d82ffb92
[ "CNRI-Python-GPL-Compatible" ]
164
2017-09-24T20:40:32.000Z
2021-10-30T01:35:05.000Z
Stackless/test/become.py
masamitsu-murase/stackless
677b36ffe5cb5a0f4b8d3abfa20982c8d82ffb92
[ "CNRI-Python-GPL-Compatible" ]
73
2017-09-13T18:07:48.000Z
2022-03-17T13:02:29.000Z
# become tasklet def f(ch): print "hi there" print "now becoming a tasklet" #become_tasklet() got = tasklet().capture(42) print "captured", got print ch.receive() print "that's all, folks" from stackless import * ch = channel() print "here is main" print getcurrent() print "now calling f(...
17.318182
34
0.648294
0341a3d6e259ffae171ddb5d26a5b29178e97eb2
2,870
py
Python
server/tests/test_dataprep.py
tobiashaefele1/datavis_clone
de8ed076658d00f4fd519dd682cff844c46e263a
[ "MIT" ]
null
null
null
server/tests/test_dataprep.py
tobiashaefele1/datavis_clone
de8ed076658d00f4fd519dd682cff844c46e263a
[ "MIT" ]
null
null
null
server/tests/test_dataprep.py
tobiashaefele1/datavis_clone
de8ed076658d00f4fd519dd682cff844c46e263a
[ "MIT" ]
null
null
null
"""This is the module to test the AMR12_15_Bund_to_KRS file DUMMY NO TESTS WRITTEN YET""" import os from unittest import TestCase class TestData(TestCase): """This is the class to test the reading data in functions""" def setUp(self): """Set up for the data class that loads in the test_data.csv"""...
44.84375
97
0.634495
0341a491bfe9c89d1dd80db2c6fda4e11975e924
3,143
py
Python
sisyphus/test/embedded_cmds.py
libfirm/sisyphus
107419fd895c929423a58c1c47d3245cd2e25fed
[ "MIT" ]
5
2017-03-15T04:45:56.000Z
2020-09-09T23:23:59.000Z
sisyphus/test/embedded_cmds.py
PaulBone/sisyphus
b30cf61707ced65937c843c3adcf9761b2704413
[ "MIT" ]
1
2020-09-09T23:33:27.000Z
2020-09-09T23:33:27.000Z
sisyphus/test/embedded_cmds.py
PaulBone/sisyphus
b30cf61707ced65937c843c3adcf9761b2704413
[ "MIT" ]
2
2018-02-07T17:59:53.000Z
2020-09-09T23:24:20.000Z
# A module to parse commands embedded into the tests themselfes from functools import partial from steps import create_step_append_flags import logging import re import sys _LOGGER = logging.getLogger("sisyphus") def _check_regex(result, regex, txt, count, expected_result): realcount = 0 for line in resul...
36.546512
97
0.595927
0341acae04bc309fea885ce3a3c12d00c96676b3
515
py
Python
runner.py
mintpancake/2d-collision-net
0ca4d36b2623c703d87d58ce2031a226a0b64df8
[ "MIT" ]
null
null
null
runner.py
mintpancake/2d-collision-net
0ca4d36b2623c703d87d58ce2031a226a0b64df8
[ "MIT" ]
null
null
null
runner.py
mintpancake/2d-collision-net
0ca4d36b2623c703d87d58ce2031a226a0b64df8
[ "MIT" ]
null
null
null
import sampler import data_generator import trainer import plot import test_data_generator import tester import visualizer def run(): sampler.run() data_generator.run() trainer.run() plot.run() test_data_generator.run() tester.run() visualizer.run() def run_without_regeneration(): tr...
15.606061
31
0.699029
0341c96a4e30b746eee7e42a9e219175c0fdad97
310
py
Python
costprediction/__init__.py
Guillaume-Docquier/python-azure-func-tutorial
2747ce729d80178c60664c35aa2da4a9d9a9c342
[ "MIT" ]
1
2020-02-14T19:43:51.000Z
2020-02-14T19:43:51.000Z
costprediction/__init__.py
Guillaume-Docquier/python-azure-func-tutorial
2747ce729d80178c60664c35aa2da4a9d9a9c342
[ "MIT" ]
3
2020-11-13T18:38:11.000Z
2021-08-25T15:58:21.000Z
costprediction/__init__.py
Guillaume-Docquier/python-azure-func-tutorial
2747ce729d80178c60664c35aa2da4a9d9a9c342
[ "MIT" ]
null
null
null
import json import azure.functions as func from .predict import predict_costs def main(req: func.HttpRequest) -> func.HttpResponse: costs = req.get_json().get("costs") predictions = predict_costs(costs) response = json.dumps({"predictions": predictions}) return func.HttpResponse(response)
23.846154
55
0.73871
0341f23e219ffe5fd0fa7ddcb27fa562faa3e028
3,581
py
Python
torchreid/datasets/market1501.py
theodorhusefest/ABD-Net
4ad71205954726b88d081ca079c28378f74e3007
[ "MIT" ]
null
null
null
torchreid/datasets/market1501.py
theodorhusefest/ABD-Net
4ad71205954726b88d081ca079c28378f74e3007
[ "MIT" ]
null
null
null
torchreid/datasets/market1501.py
theodorhusefest/ABD-Net
4ad71205954726b88d081ca079c28378f74e3007
[ "MIT" ]
1
2020-06-03T01:39:01.000Z
2020-06-03T01:39:01.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import glob import re import sys import urllib import tarfile import zipfile import os.path as osp from scipy.io import loadmat import numpy as np import h5py from .bases import BaseImageDataset cl...
36.540816
115
0.64926
0342072b1b8c4d8ee91ef50d440adb47b799839e
8,052
py
Python
parsl/dataflow/usage_tracking/usage.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
1
2020-11-21T17:32:09.000Z
2020-11-21T17:32:09.000Z
parsl/dataflow/usage_tracking/usage.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
null
null
null
parsl/dataflow/usage_tracking/usage.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
1
2022-03-09T10:51:12.000Z
2022-03-09T10:51:12.000Z
import uuid import time import hashlib import os import getpass import json import logging import socket import sys import platform import multiprocessing as mp from parsl.dataflow.states import FINAL_FAILURE_STATES from parsl.version import VERSION as PARSL_VERSION logger = logging.getLogger(__name__) def async_pr...
33.831933
110
0.595256
03420a79a05d48699f676e671751cf5caf67a50f
7,894
py
Python
src/python/pants/backend/python/targets/python_binary.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
src/python/pants/backend/python/targets/python_binary.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/targets/python_binary.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os from pex.pex_info import PexInfo from twitter.common.collections import maybe_list from pants.backend.python.targets.python_target import PythonTarget from pants.base.exception...
41.329843
106
0.648974
03426266f83765606d5f857e286527434a18490d
2,812
py
Python
st2common/tests/unit/test_internal_trigger_types_registrar.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2020-11-21T10:11:25.000Z
2020-11-21T10:11:25.000Z
st2common/tests/unit/test_internal_trigger_types_registrar.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2015-06-08T15:27:11.000Z
2015-06-08T15:27:11.000Z
st2common/tests/unit/test_internal_trigger_types_registrar.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
13
2017-01-12T11:07:20.000Z
2019-04-19T09:55:49.000Z
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the 'License'); you may not use th...
38
87
0.726885
034280f0459027332691c99686fe8306969d8698
11,583
py
Python
src/resnet.py
chloechsu/nanoparticle
5e78fe33c2d562aa31d5e458be0dbf52813f20b1
[ "MIT" ]
1
2021-04-04T23:07:59.000Z
2021-04-04T23:07:59.000Z
src/resnet.py
chloechsu/nanoparticle
5e78fe33c2d562aa31d5e458be0dbf52813f20b1
[ "MIT" ]
null
null
null
src/resnet.py
chloechsu/nanoparticle
5e78fe33c2d562aa31d5e458be0dbf52813f20b1
[ "MIT" ]
3
2021-01-13T14:50:42.000Z
2022-03-20T16:19:52.000Z
import torch import torch.nn as nn __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152', 'resnext50_32x4d', 'resnext101_32x8d', 'wide_resnet50_2', 'wide_resnet101_2', 'RESNET_NAME_TO_MODEL_MAP'] def conv1d_3(in_planes, out_planes, stride=1, groups=1, dilation=1): ...
37.00639
107
0.636882
0342cac1a2bbbf4a4e43b6355f51a023f6ef6a2f
10,500
py
Python
networking_ovn/tests/functional/base.py
numansiddique/networking-ovn
9357ddcb6c427486e6a1b3f012f87b9c4fab43a2
[ "Apache-2.0" ]
null
null
null
networking_ovn/tests/functional/base.py
numansiddique/networking-ovn
9357ddcb6c427486e6a1b3f012f87b9c4fab43a2
[ "Apache-2.0" ]
null
null
null
networking_ovn/tests/functional/base.py
numansiddique/networking-ovn
9357ddcb6c427486e6a1b3f012f87b9c4fab43a2
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Red Hat, 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 agre...
39.622642
79
0.63819
0342d18bd7b500e380d152fee780d626633eca29
7,957
py
Python
spyder/plugins/findinfiles/plugin.py
Nicztin/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
1
2019-09-25T15:08:24.000Z
2019-09-25T15:08:24.000Z
spyder/plugins/findinfiles/plugin.py
jorgeps86/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
null
null
null
spyder/plugins/findinfiles/plugin.py
jorgeps86/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """Find in Files Plugin""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 # Standard library imports ...
39.587065
80
0.603745
0342ec7dc15e62920c1bb005e4dc7c711b503050
584
py
Python
systems/playout/pa_system_8_3.py
Julian-Theis/AVATAR
24fcd6eaa26f413be528a160d865d5d7e49a780b
[ "MIT" ]
7
2020-12-22T12:09:14.000Z
2022-03-29T12:50:35.000Z
systems/playout/pa_system_8_3.py
ProminentLab/AVATAR
a20c767d8739a52f538927b4ec3d528952263d5a
[ "MIT" ]
10
2020-11-13T17:45:59.000Z
2022-02-10T00:50:38.000Z
systems/playout/pa_system_8_3.py
ProminentLab/AVATAR
a20c767d8739a52f538927b4ec3d528952263d5a
[ "MIT" ]
2
2020-03-26T22:27:27.000Z
2020-07-07T22:36:41.000Z
from util.playout import standard_playout import os from conf.settings import DATA_PATH WORK_PATH = os.path.abspath(os.getcwd()) if __name__ == "__main__": pn = "data/systems/pa_system_8_3.pnml" f_pop = "data/variants/pa_system_8_3_pop.txt" f_train = "data/variants/pa_system_8_3_train.txt" f_test = "...
38.933333
113
0.768836
0342f3216056720d9d5d550f78371808fc7dfdaf
623
py
Python
videoClassification/preprocessing.py
ArifSohaib/AutonomousRobotChallenge
10f7299022158425c6e7aa40f427105503d38468
[ "MIT" ]
13
2018-09-05T03:33:23.000Z
2020-12-15T13:07:33.000Z
videoClassification/preprocessing.py
ArifSohaib/AutonomousRobotChallenge
10f7299022158425c6e7aa40f427105503d38468
[ "MIT" ]
1
2019-03-24T20:07:19.000Z
2019-03-25T21:18:04.000Z
videoClassification/preprocessing.py
ArifSohaib/AutonomousRobotChallenge
10f7299022158425c6e7aa40f427105503d38468
[ "MIT" ]
11
2018-11-09T09:22:04.000Z
2021-10-05T08:00:44.000Z
import tensorflow as tf import pathlib def preprocess_image(image): image = tf.image.decode_jpeg(image, channels=3) image = tf.image.resize(image, [192, 192]) image /= 255.0 # normalize to [0,1] range return image def load_and_preprocess_image(path): image = tf.io.read_file(path) return prepr...
29.666667
63
0.70947
03430124d752b29e76c128e90f1bf1e835a25e5a
1,269
py
Python
ludwig_wrapper.py
jacopotagliabue/how-to-grow-a-product-tree
1d5d6380a2f597f069dcfaef3f17d621c63a93a0
[ "MIT" ]
3
2020-06-05T13:32:29.000Z
2021-12-12T00:32:03.000Z
ludwig_wrapper.py
jacopotagliabue/how-to-grow-a-product-tree
1d5d6380a2f597f069dcfaef3f17d621c63a93a0
[ "MIT" ]
3
2020-11-13T18:54:27.000Z
2021-08-25T16:05:39.000Z
ludwig_wrapper.py
jacopotagliabue/how-to-grow-a-product-tree
1d5d6380a2f597f069dcfaef3f17d621c63a93a0
[ "MIT" ]
2
2020-08-05T12:45:24.000Z
2021-11-28T18:44:00.000Z
from ludwig.api import LudwigModel from logging import DEBUG def train_with_ludwig(model_definition, train_file_csv, target_model_path): """ Wrap around Ludwig training routine. :param model_definition: dictionary defining deep learning architecture with Ludwig conventions :param train_file_csv: path...
32.538462
99
0.751773
03438d6b5818dd15833c8a3c341c092bc3f27e14
2,079
py
Python
figure/figure5.py
HanSeokhyeon/Speech_recogniton_for_English_and_Korean
e0eaf1da1e1ac15f34402fea8cb330d008140d61
[ "MIT" ]
null
null
null
figure/figure5.py
HanSeokhyeon/Speech_recogniton_for_English_and_Korean
e0eaf1da1e1ac15f34402fea8cb330d008140d61
[ "MIT" ]
null
null
null
figure/figure5.py
HanSeokhyeon/Speech_recogniton_for_English_and_Korean
e0eaf1da1e1ac15f34402fea8cb330d008140d61
[ "MIT" ]
null
null
null
""" 그림 5. 32-밴드 멜-스펙트로그램(위)과 32-밴드 스파이크그램(아래) 특성의 확률 분포 """ from util.timit_dataset import load_dataset import numpy as np import matplotlib.pyplot as plt import seaborn as sns plt.rcParams['font.family'] = 'Times New Roman' plt.rcParams['font.size'] = 20 fig = plt.figure(figsize=(8, 8), edgecolor='k') # 32 밴드 멜 스펙트...
26.653846
119
0.6633
03438d8bad43304003882320907b8cd47c9d51fa
804
py
Python
theseus/base/augmentations/custom.py
kaylode/shrec22-pothole
700d1632de686214e42a2f56aeaceab30c8b9a3f
[ "MIT" ]
1
2022-03-19T11:52:53.000Z
2022-03-19T11:52:53.000Z
theseus/base/augmentations/custom.py
kaylode/shrec22-pothole
700d1632de686214e42a2f56aeaceab30c8b9a3f
[ "MIT" ]
null
null
null
theseus/base/augmentations/custom.py
kaylode/shrec22-pothole
700d1632de686214e42a2f56aeaceab30c8b9a3f
[ "MIT" ]
1
2022-03-19T11:53:10.000Z
2022-03-19T11:53:10.000Z
import numpy as np class Denormalize(object): """ Denormalize image and boxes for visualization """ def __init__(self, mean = [0.485, 0.456, 0.406], std = [0.229, 0.224, 0.225], **kwargs): self.mean = mean self.std = std def __call__(self, img, box = None, label = None, mas...
36.545455
150
0.59204
0343b3b390ba5c8db8c949df96ae46397f35cfa3
3,359
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/aio/_configuration.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_12_01/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.397059
172
0.70646
0343bc097de0fe6bf3d0c2093fddd33850474fb0
1,326
py
Python
tests/text/EMPTY.py
regular/pyglet-avbin-optimizations
e93c0508a57c92c24cc22dee12be0a58b1fcf975
[ "BSD-3-Clause" ]
2
2017-05-10T08:27:22.000Z
2019-10-05T14:55:00.000Z
tests/text/EMPTY.py
regular/pyglet-avbin-optimizations
e93c0508a57c92c24cc22dee12be0a58b1fcf975
[ "BSD-3-Clause" ]
null
null
null
tests/text/EMPTY.py
regular/pyglet-avbin-optimizations
e93c0508a57c92c24cc22dee12be0a58b1fcf975
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python '''Test that an empty document doesn't break. Press ESC to exit the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: STYLE.py 1754 2008-02-10 13:26:52Z Alex.Holkner $' __noninteractive = True import unittest from pyglet import app from pyglet import gl from pyglet import grap...
26
70
0.69457
0343d4adabf9ce5c447f3bb44ec49ca9bc1f1a44
53,971
py
Python
scripts/build.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
null
null
null
scripts/build.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
null
null
null
scripts/build.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
40.037834
80
0.684701
0343f6486769c6c6a2fcfd55cfd33eb2aa25ce6a
3,162
py
Python
trax/models/reformer/reformer_test.py
yakovkeselman/trax
615432bbc58ffb5bdf83a771e8f8b470995456db
[ "Apache-2.0" ]
null
null
null
trax/models/reformer/reformer_test.py
yakovkeselman/trax
615432bbc58ffb5bdf83a771e8f8b470995456db
[ "Apache-2.0" ]
null
null
null
trax/models/reformer/reformer_test.py
yakovkeselman/trax
615432bbc58ffb5bdf83a771e8f8b470995456db
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
30.699029
74
0.660342
03446d9b6ebd0d7ae0e26521287116ce4e19e479
47
py
Python
bflib/items/food/__init__.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
bflib/items/food/__init__.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
bflib/items/food/__init__.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from bflib.items.food.common import DryRations
23.5
46
0.851064
034477f064af302548f034cdf0f6d17452bfa404
4,593
py
Python
posthog/event_usage.py
thinhnguyenuit/posthog
4758e66790485587d29a617174158d07341342f8
[ "MIT" ]
null
null
null
posthog/event_usage.py
thinhnguyenuit/posthog
4758e66790485587d29a617174158d07341342f8
[ "MIT" ]
1
2022-02-15T00:47:35.000Z
2022-02-15T00:47:35.000Z
posthog/event_usage.py
thinhnguyenuit/posthog
4758e66790485587d29a617174158d07341342f8
[ "MIT" ]
1
2021-09-08T19:45:03.000Z
2021-09-08T19:45:03.000Z
""" Module to centralize event reporting on the server-side. """ from typing import List import posthoganalytics from posthog.models import Organization, User from posthog.utils import get_instance_realm def report_user_signed_up( distinct_id: str, is_instance_first_user: bool, is_organization_first_us...
34.533835
119
0.697148
03447cbea20a766d77c0dbe2b33c5c44fee9b3c4
3,581
py
Python
models/model.py
SkyfengBiuBiu/tiny-faces-pytorch
98fea5246b80c9c57a65ba8dee68cc8296a2c940
[ "MIT" ]
null
null
null
models/model.py
SkyfengBiuBiu/tiny-faces-pytorch
98fea5246b80c9c57a65ba8dee68cc8296a2c940
[ "MIT" ]
null
null
null
models/model.py
SkyfengBiuBiu/tiny-faces-pytorch
98fea5246b80c9c57a65ba8dee68cc8296a2c940
[ "MIT" ]
null
null
null
import numpy as np import torch from torch import nn from torchvision.models import resnet50, resnet101 class DetectionModel(nn.Module): """ Hybrid Model from Tiny Faces paper """ def __init__(self, base_model=resnet50, num_templates=1, num_objects=1): super().__init__() # 4 is for th...
33.46729
97
0.559899
0344c3fa57c7635fc9084606ca8a730810dd3bab
299
py
Python
cpfinder/vis/__init__.py
iboraham/changepoint_detector
275e378e9deb08a08954c3d73cb4ef8bb72464c2
[ "MIT" ]
2
2021-11-02T10:49:02.000Z
2022-02-17T11:38:15.000Z
cpfinder/vis/__init__.py
iboraham/changepoint_detector
275e378e9deb08a08954c3d73cb4ef8bb72464c2
[ "MIT" ]
38
2021-08-03T17:28:55.000Z
2021-08-21T14:52:01.000Z
cpfinder/vis/__init__.py
iboraham/online_changepoint_detector
275e378e9deb08a08954c3d73cb4ef8bb72464c2
[ "MIT" ]
null
null
null
from matplotlib import pyplot as plt from .plot_mtp import plot_posterior, plot_posterior_animation, display def plot_matplotlib(*args): plot_posterior(*args) def plot_matplotlib_animation(*args): plot_posterior_animation(*args) def roerich_display_edited(*args): display(*args)
17.588235
71
0.782609
0344d9b703983f9f42f6f23a5a34d84eb110db86
1,351
py
Python
facebook_sublet_group_bot/util.py
ritikforreal1/FB_Mod_Bot
97b045db81fab91f7e0f4a46c7472ee6bcdcd7a7
[ "MIT", "Unlicense" ]
33
2015-07-22T13:07:49.000Z
2019-01-07T21:37:27.000Z
facebook_sublet_group_bot/util.py
ritikforreal1/FB_Mod_Bot
97b045db81fab91f7e0f4a46c7472ee6bcdcd7a7
[ "MIT", "Unlicense" ]
2
2017-03-07T10:12:21.000Z
2017-03-07T10:34:13.000Z
facebook_sublet_group_bot/util.py
ritikforreal1/FB_Mod_Bot
97b045db81fab91f7e0f4a46c7472ee6bcdcd7a7
[ "MIT", "Unlicense" ]
18
2015-05-10T11:55:09.000Z
2019-01-07T21:39:51.000Z
import sys import subprocess # Color class, used for colors in terminal class Color: PURPLE = '\033[95m' CYAN = '\033[96m' DARKCYAN = '\033[36m' BLUE = '\033[94m' GREEN = '\033[92m' YELLOW = '\033[93m' RED = '\033[91m' BOLD = '\033[1m' UNDERLINE = '\033[4m' END = '\033[0m' # ...
26.490196
79
0.57587
0344f63cf930e30f8248b115a0ce2c4c5f1a4ee2
25,504
py
Python
cogs/casino.py
kyle-he/p2hb
0dfd8b16af70a861c14dd41aded3de93e6730cdb
[ "MIT" ]
8
2021-05-01T08:03:44.000Z
2022-01-28T16:35:35.000Z
cogs/casino.py
kyle-he/p2hb
0dfd8b16af70a861c14dd41aded3de93e6730cdb
[ "MIT" ]
2
2021-07-04T01:41:19.000Z
2021-09-27T19:48:51.000Z
cogs/casino.py
kyle-he/p2hb
0dfd8b16af70a861c14dd41aded3de93e6730cdb
[ "MIT" ]
8
2021-05-31T01:42:26.000Z
2022-03-14T13:25:23.000Z
import asyncio import math import random from datetime import datetime, timedelta import config import discord from discord.ext import commands from helpers import checks, helper from data import models class Casino(commands.Cog): """Gambling games""" def __init__(self, bot): self.bot = bot @c...
38.179641
447
0.435226
034507eec4a54f5660d1331f07e5e9fa49c38e31
5,595
py
Python
note/views.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
1
2018-03-16T09:56:23.000Z
2018-03-16T09:56:23.000Z
note/views.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
null
null
null
note/views.py
ehomeshasha/easydata
0c599cc34d18b8865e06b15bbb96aa58612dfde2
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.shortcuts import redirect from django.utils.translation import ugettext_lazy as _ from django.views.generic.edit import FormView from django.http.response import HttpResponse from easydata.func.function_core import check_login, get_add_icon from django.contrib impo...
33.106509
107
0.6084
0345349884cd4bdd367fa4ac2e34e4a7865935e5
1,446
py
Python
podcaststore_api/views/identify.py
viniarck/podcaststore-django
90316ffb18793b089291a0e28ac3ee2bb5e458cb
[ "Apache-2.0" ]
null
null
null
podcaststore_api/views/identify.py
viniarck/podcaststore-django
90316ffb18793b089291a0e28ac3ee2bb5e458cb
[ "Apache-2.0" ]
3
2019-09-22T17:58:27.000Z
2019-09-22T18:20:20.000Z
podcaststore_api/views/identify.py
viniarck/podcaststore-django
90316ffb18793b089291a0e28ac3ee2bb5e458cb
[ "Apache-2.0" ]
null
null
null
from rest_framework.views import APIView import rest_framework.status as status from rest_framework.response import Response from rest_framework.request import Request from podcaststore_api.utils import json_or_raise from podcaststore_api.models.user import UserSerializer from django.contrib.auth.models import User fro...
39.081081
88
0.715076
034541fe767c38d1c6ed8fb8cd69a6735592141f
5,040
py
Python
oscar/lib/python2.7/site-packages/xdist/scheduler/each.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/xdist/scheduler/each.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/xdist/scheduler/each.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from py.log import Producer from xdist.slavemanage import parse_spec_config from xdist.report import report_collection_diff class EachScheduling: """Implement scheduling of test items on all nodes If a node gets added after the test run is started then it is assumed to replace a node which got...
38.769231
74
0.58631
034549c22cdb0504e40b1d9f5f0139f3cfd9ac79
4,020
py
Python
reporting/identify_missing_records.py
ucldc/ucldc_api_data_quality
d297856e4d15beec0ae054329603bb3b3c92f43d
[ "BSD-3-Clause" ]
null
null
null
reporting/identify_missing_records.py
ucldc/ucldc_api_data_quality
d297856e4d15beec0ae054329603bb3b3c92f43d
[ "BSD-3-Clause" ]
null
null
null
reporting/identify_missing_records.py
ucldc/ucldc_api_data_quality
d297856e4d15beec0ae054329603bb3b3c92f43d
[ "BSD-3-Clause" ]
1
2018-07-19T21:47:59.000Z
2018-07-19T21:47:59.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ for a given collection, identify records in first index that aren't in the other. Meant to run based on results of the qa report """ import sys import argparse from pprint import pprint as pp try: import configparser except: import ConfigParser as configparser ...
38.285714
75
0.726368
0345608c4bdd54cc140558365ab0c4a81e81ac73
112
py
Python
superset/superset_config.py
onaio/floip-canopy
ba131286029371dfd6e9b421379685c585995bcb
[ "Apache-2.0" ]
2
2019-07-11T14:40:26.000Z
2019-08-13T19:44:05.000Z
superset/superset_config.py
onaio/floip-canopy
ba131286029371dfd6e9b421379685c585995bcb
[ "Apache-2.0" ]
1
2019-09-26T20:55:52.000Z
2019-10-04T17:23:50.000Z
superset/superset_config.py
onaio/floip-canopy
ba131286029371dfd6e9b421379685c585995bcb
[ "Apache-2.0" ]
null
null
null
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://admin:p@ssw0rd@db:5432/flow_results' SECRET_KEY = 'superset123'
56
85
0.821429
0345a41b4a465e4511672392dfc372cc2f72303b
3,564
py
Python
etc/gdocs.py
INN/maine-legislature
830f23e1832518e0b03e4064d3d960dd029ad961
[ "MIT" ]
null
null
null
etc/gdocs.py
INN/maine-legislature
830f23e1832518e0b03e4064d3d960dd029ad961
[ "MIT" ]
8
2017-08-31T21:24:27.000Z
2017-11-10T16:09:57.000Z
etc/gdocs.py
INN/maine-legislature
830f23e1832518e0b03e4064d3d960dd029ad961
[ "MIT" ]
null
null
null
#!/usr/bin/env python # _*_ coding:utf-8 _*_ from exceptions import KeyError import os import requests class GoogleDoc(object): """ A class for accessing a Google document as an object. Includes the bits necessary for accessing the document and auth and such. For example: doc = { ...
33.308411
126
0.593996
0345a6e03fad7381b3450e15adaf901e17da7613
2,561
py
Python
components/google-cloud/tests/experimental/dataflow/integration/test_components_compile.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/google-cloud/tests/experimental/dataflow/integration/test_components_compile.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/google-cloud/tests/experimental/dataflow/integration/test_components_compile.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2021 The Kubeflow 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 applicabl...
37.661765
86
0.747755
0345db322474d3df5c667d105cb6a27350a44d2a
7,138
py
Python
clients/client/python/ory_client/model/volume_usage_data.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/model/volume_usage_data.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/model/volume_usage_data.py
kolotaev/sdk
0dda1becd70be8d7b9d678321ebe780c1ba00485
[ "Apache-2.0" ]
null
null
null
""" Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 The version of the OpenAPI document: v0.0.1-alpha.17 Contact: support@ory.sh Generated by: htt...
40.788571
259
0.592183
03462e01f7e54660645993aaf9c8ded2ea1ddb92
50
py
Python
projects/seadata/backend/models/sqlalchemy.py
mdantonio/seadatacloud
34b93e6967d9e253b4cba3d832be650d3e4e31eb
[ "MIT" ]
7
2017-04-27T09:10:24.000Z
2021-11-09T11:19:45.000Z
projects/seadata/backend/models/sqlalchemy.py
mdantonio/seadatacloud
34b93e6967d9e253b4cba3d832be650d3e4e31eb
[ "MIT" ]
120
2016-03-07T12:40:24.000Z
2020-07-09T05:01:50.000Z
projects/seadata/backend/models/sqlalchemy.py
mdantonio/seadatacloud
34b93e6967d9e253b4cba3d832be650d3e4e31eb
[ "MIT" ]
9
2016-06-17T10:35:21.000Z
2021-09-25T07:45:58.000Z
""" CUSTOM Models for the relational database """
25
49
0.72
034664f8c9946e27bffe50837a0d1263e4a7503e
6,351
py
Python
gemma/extensions/xml/_xelm_bearing.py
illuscio-dev/gemma-py
c12b2aae8438b69236cf8b1c76ac6dd1912f6207
[ "MIT" ]
1
2020-11-05T04:42:39.000Z
2020-11-05T04:42:39.000Z
gemma/extensions/xml/_xelm_bearing.py
illuscio-dev/gemma-py
c12b2aae8438b69236cf8b1c76ac6dd1912f6207
[ "MIT" ]
null
null
null
gemma/extensions/xml/_xelm_bearing.py
illuscio-dev/gemma-py
c12b2aae8438b69236cf8b1c76ac6dd1912f6207
[ "MIT" ]
null
null
null
import re from typing import Tuple, Union, Optional, Type, Pattern, Any, List from xml.etree.ElementTree import Element from gemma import BearingAbstract, NullNameError, bearing from gemma.extensions.typing import FactoryType class XElm(BearingAbstract[Tuple[str, Union[int, slice]]]): REGEX: Pattern = re.compile...
29
85
0.572036
03466ed82cc06f90b21e2ac2709eb8512d4af3df
4,115
py
Python
gentelella/core/qradar_auth.py
vermamanoj/soc_2017Jul
18a1b1a72dbff727a4859f0590a44a4fc3fd5348
[ "MIT" ]
null
null
null
gentelella/core/qradar_auth.py
vermamanoj/soc_2017Jul
18a1b1a72dbff727a4859f0590a44a4fc3fd5348
[ "MIT" ]
1
2017-07-22T09:21:42.000Z
2017-07-22T09:21:42.000Z
gentelella/core/qradar_auth.py
vermamanoj/soc_2017Jul
18a1b1a72dbff727a4859f0590a44a4fc3fd5348
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # This sample demonstrates how to encode credentials, how to format and attach # headers to an HTTP request, and how to send a simple request to a REST API # endpoint. This script uses many python modules directly in order to # demonstrate the low level functionality of the API. Future scripts wi...
36.415929
111
0.657594
03469219053c0a8b62e94db2e213daaa116d521e
42,094
py
Python
Bio/SeqIO/__init__.py
espritfollet/biopython
6000bab160b220ede643f496b1acfcf11ab3a238
[ "BSD-3-Clause" ]
null
null
null
Bio/SeqIO/__init__.py
espritfollet/biopython
6000bab160b220ede643f496b1acfcf11ab3a238
[ "BSD-3-Clause" ]
null
null
null
Bio/SeqIO/__init__.py
espritfollet/biopython
6000bab160b220ede643f496b1acfcf11ab3a238
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2006-2017 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # # Nice link: # http://www.ebi.ac.uk/help/formats_frame.html r"""Sequence input/output as S...
40.552987
88
0.684349
0346944dd30d18b1f71f3064a0e4719a60ee91ef
183
py
Python
vin_scrapper/__init__.py
mmphego/vin_scrapper
32c1072d083c92313dcec26a746d0d739ce14d0f
[ "BSD-3-Clause" ]
null
null
null
vin_scrapper/__init__.py
mmphego/vin_scrapper
32c1072d083c92313dcec26a746d0d739ce14d0f
[ "BSD-3-Clause" ]
null
null
null
vin_scrapper/__init__.py
mmphego/vin_scrapper
32c1072d083c92313dcec26a746d0d739ce14d0f
[ "BSD-3-Clause" ]
1
2021-07-17T14:26:12.000Z
2021-07-17T14:26:12.000Z
# -*- coding: utf-8 -*- """Top-level package for Vehicle History Reports.""" __author__ = """Mpho Mphego""" __email__ = "mpho112@gmail.com" from vin_scrapper.vin_scrapper import *
20.333333
52
0.693989
0346b27bdf44ff7c15e317303bef6fed880a4776
1,097
py
Python
src/stats.py
KaiFabi/NeuroEvolution
2ecbff626547e3745ba51135f43bce606f93f404
[ "MIT" ]
null
null
null
src/stats.py
KaiFabi/NeuroEvolution
2ecbff626547e3745ba51135f43bce606f93f404
[ "MIT" ]
null
null
null
src/stats.py
KaiFabi/NeuroEvolution
2ecbff626547e3745ba51135f43bce606f93f404
[ "MIT" ]
null
null
null
"""Module holds method to compute loss and accuracy for provided network and dataloader. """ import torch @torch.no_grad() def comp_loss_accuracy(model, criterion, dataloader, device) -> tuple[float, float]: """Compute loss and accuracy for provided model and dataloader. Args: model: PyTorch neural n...
26.756098
88
0.65907
0346b523c430bc146f1fe11c91da24643b24624f
432
py
Python
items/episode_item.py
project-nichijou/spider-common
ad7344ec156a9fe6fdd143aaf4d3435b19271ed8
[ "MIT" ]
null
null
null
items/episode_item.py
project-nichijou/spider-common
ad7344ec156a9fe6fdd143aaf4d3435b19271ed8
[ "MIT" ]
null
null
null
items/episode_item.py
project-nichijou/spider-common
ad7344ec156a9fe6fdd143aaf4d3435b19271ed8
[ "MIT" ]
1
2021-07-11T13:49:58.000Z
2021-07-11T13:49:58.000Z
from common.items.common_item import CommonItem import scrapy class CommonEpisodeItem(CommonItem): table = 'episode' primary_keys = ['id', 'sort', 'type'] id = scrapy.Field() type = scrapy.Field() sort = scrapy.Field() url = scrapy.Field() name = scrapy.Field() name_cn = scrapy.Field() status = scra...
13.5
47
0.675926
0346b58a84f8d36d143410504894bdec2d06f0dd
391
py
Python
rinex/migrations/0003_auto_20200716_1453.py
marcozecchini/rinex_webservice
f36e7175dcede93d3acefab988fc5916b24e10e6
[ "Apache-2.0" ]
null
null
null
rinex/migrations/0003_auto_20200716_1453.py
marcozecchini/rinex_webservice
f36e7175dcede93d3acefab988fc5916b24e10e6
[ "Apache-2.0" ]
4
2020-07-01T14:05:43.000Z
2021-09-22T19:27:39.000Z
rinex/migrations/0003_auto_20200716_1453.py
marcozecchini/rinex_webservice
f36e7175dcede93d3acefab988fc5916b24e10e6
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.7 on 2020-07-16 14:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rinex', '0002_rinexmetadata'), ] operations = [ migrations.AlterField( model_name='rinexmetadata', name='file_rinex'...
20.578947
51
0.603581
03474393bc6f363c733371feb2dc4393e0613ead
815
py
Python
src/coalescenceml/integrations/constants.py
CornellDataScience/CoalescenceML
6dd849b272c77011719952b47d5b55684d90733a
[ "Apache-2.0" ]
null
null
null
src/coalescenceml/integrations/constants.py
CornellDataScience/CoalescenceML
6dd849b272c77011719952b47d5b55684d90733a
[ "Apache-2.0" ]
null
null
null
src/coalescenceml/integrations/constants.py
CornellDataScience/CoalescenceML
6dd849b272c77011719952b47d5b55684d90733a
[ "Apache-2.0" ]
null
null
null
AIRFLOW = "airflow" # Orchestrator AWS = "aws" # Key vault / Secrets AZURE = "azure" # Artifact store, Key vault AZUREML = "azureml" # Step controller (training) EVIDENTLY = "evidently" # Profiling GCP = "gcp" # Artifact store KUBEFLOW = "kubeflow" # Orchestrator, Metadata store MLFLOW = "mlflow" # Deployer, lo...
45.277778
68
0.719018
03474bae3e3cf25e0d4a0cc3f50bfe85f53a47bb
4,172
py
Python
tempest/api/volume/test_snapshot_metadata.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/api/volume/test_snapshot_metadata.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/api/volume/test_snapshot_metadata.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Huawei Technologies Co.,LTD # 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 # # Unle...
40.504854
78
0.622963
03475e443c3eed52139de1672d50ab094142ac24
1,295
py
Python
plan2explore/utils/video_utils.py
sarthak268/plan2explore
264f513d46c6e971d5523782344a694b17139a20
[ "Apache-2.0" ]
8
2021-10-14T03:14:23.000Z
2022-03-15T21:31:17.000Z
plan2explore/utils/video_utils.py
sarthak268/plan2explore
264f513d46c6e971d5523782344a694b17139a20
[ "Apache-2.0" ]
null
null
null
plan2explore/utils/video_utils.py
sarthak268/plan2explore
264f513d46c6e971d5523782344a694b17139a20
[ "Apache-2.0" ]
1
2021-09-13T20:42:28.000Z
2021-09-13T20:42:28.000Z
import os import numpy as np from PIL import Image from torchvision.transforms import Resize def ch_first2last(video): return video.transpose((0,2,3,1)) def ch_last2first(video): return video.transpose((0,3,1,2)) def resize_video(video, size): if video.shape[1] == 3: video = np.transpose(v...
23.545455
125
0.646332
034766756b1e07c7c6d7a1ad252016837da8687d
6,188
py
Python
master/scripts/planner/solvers_tester.py
OPU-Surveillance-System/monitoring
2c2c657c74fce9a5938d986372f9077708617d9c
[ "MIT" ]
4
2020-12-24T11:51:28.000Z
2022-02-08T09:02:38.000Z
master/scripts/planner/solvers_tester.py
OPU-Surveillance-System/monitoring
2c2c657c74fce9a5938d986372f9077708617d9c
[ "MIT" ]
1
2021-11-16T02:54:35.000Z
2021-11-16T02:54:35.000Z
master/scripts/planner/solvers_tester.py
OPU-Surveillance-System/monitoring
2c2c657c74fce9a5938d986372f9077708617d9c
[ "MIT" ]
null
null
null
""" Compare the results provided by the different solvers """ from tqdm import tqdm import pickle from sys import path path.append("..") path.append("solvers/") import settings from solvers.solver import SimulatedAnnealingSolver, RandomSolver from solvers.uncertainty_solver import UncertaintySimulatedAnnealingSolver...
55.747748
405
0.763251
034771a3ed60c1a7b621d3ba0a2838ce24c8a044
4,309
py
Python
features/steps/stage_parts_steps.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
features/steps/stage_parts_steps.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
features/steps/stage_parts_steps.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2022 Reveal Energy Services, 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 applicabl...
45.357895
117
0.731956
03478c3570d3be280d5751fe11ee249cf67543b2
1,002
py
Python
src/test/tests/databases/curve.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/curve.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/curve.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: curve.py # # Tests: normal curves, zone-centered curves, errors in curve files # # Programmer: Mark C. Miller # Date: October 31, 2006 # # ------------------------------------------------...
18.90566
78
0.596806
03479b32cc9c6d7f5313fadd265b21a16401bdc5
6,301
py
Python
mmcv/utils/progressbar.py
BestSonny/mmcv
3215cb64a162b83b7d188966ceac6bda904ef66e
[ "Apache-2.0" ]
1
2019-09-25T12:26:05.000Z
2019-09-25T12:26:05.000Z
mmcv/utils/progressbar.py
BestSonny/mmcv
3215cb64a162b83b7d188966ceac6bda904ef66e
[ "Apache-2.0" ]
null
null
null
mmcv/utils/progressbar.py
BestSonny/mmcv
3215cb64a162b83b7d188966ceac6bda904ef66e
[ "Apache-2.0" ]
null
null
null
import collections import sys from multiprocessing import Pool from .timer import Timer class ProgressBar(object): """A progress bar which can print the progress""" def __init__(self, task_num=0, bar_width=50, start=True): self.task_num = task_num max_bar_width = self._get_max_bar_width() ...
36.005714
79
0.582765
0347a3d34f6964f9ea5841332ec02e5be88c798c
5,809
py
Python
examples/hmi_mbus_4_bits.py
sourceperl/pyHMI
61f2742181372a2cff24b6dec5af920dddc210c9
[ "MIT" ]
null
null
null
examples/hmi_mbus_4_bits.py
sourceperl/pyHMI
61f2742181372a2cff24b6dec5af920dddc210c9
[ "MIT" ]
null
null
null
examples/hmi_mbus_4_bits.py
sourceperl/pyHMI
61f2742181372a2cff24b6dec5af920dddc210c9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from pyHMI.Colors import * from pyHMI.DS_ModbusTCP import ModbusTCPDevice from pyHMI.Tag import Tag import time import tkinter as tk from tkinter import ttk class Devices(object): # init datasource # PLC TBox plc = ModbusTCPDevice('localhost', port=502, time...
40.062069
100
0.626614
0347ad781eb59df90d6f67abf9dc2ebe901df87a
5,396
py
Python
experiments/vitchyr/rig/reset-free/hook_door/snapshot_working_online_vae.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/rig/reset-free/hook_door/snapshot_working_online_vae.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/rig/reset-free/hook_door/snapshot_working_online_vae.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import rlkit.misc.hyperparameter as hyp from rlkit.torch.vae.dataset.generate_goal_dataset import generate_goal_dataset_using_policy from multiworld.envs.mujoco.cameras import sawyer_door_env_camera_v3 from multiworld.envs.mujoco.sawyer_xyz.sawyer_door_hook import SawyerDoorHookEnv from rlkit.launchers.launcher_util im...
34.812903
92
0.537435
0347ded8415c5f7d4747f0836e43de1bd7e2c4aa
616
py
Python
setup.py
northriverboats/emailer
eefaf8155cb4bcc2f108f9ac28615d57bbe2acb1
[ "Unlicense" ]
null
null
null
setup.py
northriverboats/emailer
eefaf8155cb4bcc2f108f9ac28615d57bbe2acb1
[ "Unlicense" ]
null
null
null
setup.py
northriverboats/emailer
eefaf8155cb4bcc2f108f9ac28615d57bbe2acb1
[ "Unlicense" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="emailer", version="1.0.0", author="Fredrick W. Warren", author_email="fredw@northriverboats.com", description="an email wrapper", long_description=long_description, long_descriptio...
28
53
0.668831
0347fbcb19c7586c9c24b50a611df0b745fc99ff
70,184
py
Python
tests/test_simple_ddl_parser.py
xnuinside/simple-ddl-parser
04bb61a7c20a7542340a8834fafe182522783177
[ "MIT" ]
46
2021-03-07T02:21:29.000Z
2022-03-24T12:45:03.000Z
tests/test_simple_ddl_parser.py
xnuinside/simple-ddl-parser
04bb61a7c20a7542340a8834fafe182522783177
[ "MIT" ]
53
2021-03-08T08:50:00.000Z
2022-03-29T06:11:13.000Z
tests/test_simple_ddl_parser.py
xnuinside/simple-ddl-parser
04bb61a7c20a7542340a8834fafe182522783177
[ "MIT" ]
12
2021-06-21T16:14:17.000Z
2022-03-25T13:52:35.000Z
from simple_ddl_parser import DDLParser def test_run_postgres_first_query(): ddl = """ create table prod.super_table ( data_sync_id bigint not null, sync_count bigint not null, sync_mark timestamp not null, sync_start timestamp not null, sync_end timestamp not null, message varchar...
29.427254
106
0.335889
03482af5405b8a960ce9ba135b01b7e31f8b8e90
3,263
py
Python
tests/test_parsing.py
Pithikos/rest-framework-roles
97e98b7a1d1689186efbfc397efbcc7076c4571d
[ "MIT" ]
19
2020-02-20T16:35:20.000Z
2022-02-02T18:23:57.000Z
tests/test_parsing.py
Pithikos/rest-framework-roles
97e98b7a1d1689186efbfc397efbcc7076c4571d
[ "MIT" ]
null
null
null
tests/test_parsing.py
Pithikos/rest-framework-roles
97e98b7a1d1689186efbfc397efbcc7076c4571d
[ "MIT" ]
4
2020-05-14T03:47:32.000Z
2021-07-31T19:15:55.000Z
from rest_framework_roles.roles import is_admin, is_user, is_anon from rest_framework_roles.parsing import parse_roles, parse_view_permissions from rest_framework_roles.decorators import role_checker def test_parse_roles(): # No cost assert parse_roles({'admin': is_admin}) == { 'admin': { ...
25.692913
85
0.560527
0348375a3f91dc9f2d40c0cf02fde09ea0c0e0fb
2,277
py
Python
alipay/aop/api/domain/KoubeiCateringDishCommgroupSyncModel.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/KoubeiCateringDishCommgroupSyncModel.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/KoubeiCateringDishCommgroupSyncModel.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 * from alipay.aop.api.domain.KbdishCommGroupInfo import KbdishCommGroupInfo class KoubeiCateringDishCommgroupSyncModel(object): def __init__(self): self._biz_type = None self._kbdish_comm...
30.36
95
0.633289
034852dd02909728e917a0388e0233f9653befdb
2,752
py
Python
DropDtw-Code/models/nets.py
Crossmdl/Crossmdl
49f245349cc32f750bc33ef891b2ee90f60317a6
[ "MIT" ]
null
null
null
DropDtw-Code/models/nets.py
Crossmdl/Crossmdl
49f245349cc32f750bc33ef891b2ee90f60317a6
[ "MIT" ]
null
null
null
DropDtw-Code/models/nets.py
Crossmdl/Crossmdl
49f245349cc32f750bc33ef891b2ee90f60317a6
[ "MIT" ]
null
null
null
import sys import os import torch from torch import nn from os import path as osp sys.path.append(osp.dirname(osp.dirname(osp.abspath(__file__)))) # add parent dir from models.model_utils import compute_normalization_parameters class NonlinBlock(nn.Module): def __init__(self, d_in, d_out, batchnorm): s...
36.210526
139
0.667151
0348799566b1136493a0879da10e0648eb183564
2,199
py
Python
utils/model.py
classerase/Stand-Arrow
89183c266913af889dabb68f4d0c39153875f7da
[ "MIT" ]
2
2020-06-03T20:48:09.000Z
2020-06-04T04:29:06.000Z
utils/model.py
BrianDehlinger/Stand-Arrow
150cb741c73a244a88ce1cbcb21c71753848bbc6
[ "MIT" ]
2
2020-06-15T18:28:17.000Z
2020-06-17T20:44:43.000Z
utils/model.py
BrianDehlinger/Stand-Arrow
150cb741c73a244a88ce1cbcb21c71753848bbc6
[ "MIT" ]
1
2020-06-03T20:48:07.000Z
2020-06-03T20:48:07.000Z
from typing import List from dataclasses import dataclass, field from utils.exceptions import InsufficientQuantityError @dataclass class Player: player_id: int base_stats: dict inventory: "Inventory" class Inventory(): def __init__(self, items: dict = None): self.__storage = dict() ...
29.32
79
0.612096
03488b806583d9911f11340992afcb3882ab6f62
7,558
py
Python
panda_gym/envs/robots/panda_2.py
jc-bao/panda-gym
1860bf7459d50fc1a3677d937c984034fd936a7e
[ "MIT" ]
1
2021-12-24T01:43:14.000Z
2021-12-24T01:43:14.000Z
panda_gym/envs/robots/panda_2.py
jc-bao/panda-gym
1860bf7459d50fc1a3677d937c984034fd936a7e
[ "MIT" ]
null
null
null
panda_gym/envs/robots/panda_2.py
jc-bao/panda-gym
1860bf7459d50fc1a3677d937c984034fd936a7e
[ "MIT" ]
null
null
null
import numpy as np from gym import spaces from panda_gym.envs.core import PyBulletRobot from panda_gym.pybullet import PyBullet class Panda(PyBulletRobot): """Panda robot in PyBullet. Args: sim (PyBullet): Simulation instance. block_gripper (bool, optional): Whether the gripper is blocked. D...
45.53012
123
0.6466
0348b3dd867eb36e0e2d9bc1ae7b2a3ca2f67c3a
7,541
py
Python
server/actions_from_video.py
ltw18/action_recognition
fa6fe963fe3697b43af3e7cb31fa8150d8ecbf07
[ "MIT" ]
1
2020-05-19T08:50:03.000Z
2020-05-19T08:50:03.000Z
server/actions_from_video.py
ltw18/action_recognition
fa6fe963fe3697b43af3e7cb31fa8150d8ecbf07
[ "MIT" ]
null
null
null
server/actions_from_video.py
ltw18/action_recognition
fa6fe963fe3697b43af3e7cb31fa8150d8ecbf07
[ "MIT" ]
null
null
null
import os import sys import numpy as np import cv2 import time sys.path.append('../') from object_track.track import Sort from action_recognition.recognition import TGN from op_python.openpose import pyopenpose as op class Action(object): def __init__(self, max_age=8, min_hits=1, reg_frame=10): params = di...
43.843023
119
0.554568
0348c234992a10faf08a8c9a1678c48ed93cc3f2
685
py
Python
chroma/gpu/gpufuncs.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
chroma/gpu/gpufuncs.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
chroma/gpu/gpufuncs.py
NuTufts/chroma_lartpc
ea6d1a62d22eeeaac069efdef1068a56be683fcc
[ "BSD-3-Clause" ]
null
null
null
import chroma.api as gpuapi class GPUFuncs(object): """Simple container class for GPU functions as attributes.""" def __init__(self, module): self.module = module self.funcs = {} def __getattr__(self, name): try: return self.funcs[name] except KeyError: ...
31.136364
65
0.550365
0348c30849250ae4b758683bd50ffd85a8076bf6
6,137
py
Python
toontown/safezone/DistributedTreasure.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/safezone/DistributedTreasure.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/safezone/DistributedTreasure.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.interval.IntervalGlobal import * from toontown.toonbase.ToontownGlobals import * from direct.distributed import DistributedObject from direct.directnotify import DirectNotifyGlobal from toontown.safezone import TreasureGlobals class DistributedTreasure(DistributedObject.Di...
39.593548
345
0.659932
0348c6a7b50d1a86b809c5a88e6ef0b3f0d582bf
3,893
py
Python
marathon/models/task.py
missingcharacter/marathon-python
e1a42642c42716ef074e5b2523408bc1aa6025e2
[ "MIT" ]
202
2015-01-07T06:55:14.000Z
2021-11-30T12:05:50.000Z
marathon/models/task.py
missingcharacter/marathon-python
e1a42642c42716ef074e5b2523408bc1aa6025e2
[ "MIT" ]
213
2015-03-04T12:54:09.000Z
2022-02-28T11:36:28.000Z
marathon/models/task.py
missingcharacter/marathon-python
e1a42642c42716ef074e5b2523408bc1aa6025e2
[ "MIT" ]
169
2015-02-06T16:48:05.000Z
2022-01-18T16:20:56.000Z
from .base import MarathonResource, MarathonObject from ..util import to_datetime class MarathonTask(MarathonResource): """Marathon Task resource. :param str app_id: application id :param health_check_results: health check results :type health_check_results: list[:class:`marathon.models.MarathonHeal...
39.323232
127
0.685333
0348d2ba4a8af21143a060205df8f7a9db4228e0
333
py
Python
codility.com/Max slice problem/o(n**2).py
Jagrmi-C/jagrmitest
7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96
[ "MIT" ]
null
null
null
codility.com/Max slice problem/o(n**2).py
Jagrmi-C/jagrmitest
7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96
[ "MIT" ]
null
null
null
codility.com/Max slice problem/o(n**2).py
Jagrmi-C/jagrmitest
7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96
[ "MIT" ]
null
null
null
def qudratic_max_clice(arr): n = len(arr) result = 0 for p in range(n): sum = 0 for q in range(p, n): # print(p, q) sum += arr[q] result = max(result, sum) print(sum, result) return result a = [5, -7, 3, 5, -2, 4, -1] print(qudratic_max_c...
20.8125
37
0.48048
034905f0f11764614c408bd49b7cf07e650d1442
7,040
py
Python
src/scribbler/programs/tracie.py
okus5416/ScribblerBot
864bbb9f64c5e667f68e9982626875becb6d33b8
[ "MIT" ]
null
null
null
src/scribbler/programs/tracie.py
okus5416/ScribblerBot
864bbb9f64c5e667f68e9982626875becb6d33b8
[ "MIT" ]
null
null
null
src/scribbler/programs/tracie.py
okus5416/ScribblerBot
864bbb9f64c5e667f68e9982626875becb6d33b8
[ "MIT" ]
null
null
null
# Copyright 2014 Mitchell Kember and Charles Bai. Subject to the MIT License. """Makes the Scribbler Bot trace shapes with a marker.""" import json import math from time import time from scribbler.util import deg_to_rad, rad_to_deg, dist_2d, equiv_angle from scribbler.programs.base import ModeProgram # Short codes...
37.248677
79
0.589915
03491526a103f42d913f24cd1bbd7ab0ba577324
2,710
py
Python
projects/linreg/linreg.py
langzippkk/msds621
21d58a1c8e2f71c26d1a6540a695e8e9200359a1
[ "MIT" ]
1
2020-11-04T18:25:37.000Z
2020-11-04T18:25:37.000Z
projects/linreg/linreg.py
langzippkk/msds621
21d58a1c8e2f71c26d1a6540a695e8e9200359a1
[ "MIT" ]
null
null
null
projects/linreg/linreg.py
langzippkk/msds621
21d58a1c8e2f71c26d1a6540a695e8e9200359a1
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from pandas.api.types import is_numeric_dtype def normalize(X): # creating standard variables here (u-x)/sigma if isinstance(X, pd.DataFrame): for c in X.columns: if is_numeric_dtype(X[c]): u = np.mean(X[c]) s = np.std(X[c])...
25.566038
117
0.567159
03491a98ad444d370accc82819a7c6c8bb7b8b50
7,502
py
Python
training/model_simulations/save_last_moves_for_tasks.py
akapne01/gym_tower_of_london
4c4597c8dba0e23ef649713997bc5a2f99d53175
[ "CC-BY-2.0" ]
null
null
null
training/model_simulations/save_last_moves_for_tasks.py
akapne01/gym_tower_of_london
4c4597c8dba0e23ef649713997bc5a2f99d53175
[ "CC-BY-2.0" ]
2
2020-08-25T08:36:38.000Z
2020-08-25T08:36:58.000Z
training/model_simulations/save_last_moves_for_tasks.py
akapne01/gym_tower_of_london
4c4597c8dba0e23ef649713997bc5a2f99d53175
[ "CC-BY-2.0" ]
null
null
null
from os import listdir from os.path import isfile, join from typing import Dict, List, Tuple import pandas as pd episodes = 1000 letters = ['A', 'B', 'C', 'D', 'E'] get_min = { 'A': 4, 'B': 5, 'C': 5, 'D': 6, 'E': 6, } def sort_files_by_depth(files: List) -> Tuple[List, List, List, List, List]:...
30.620408
146
0.527593
034924f6cdb299823a7daec5bec5f249c744c3af
1,959
py
Python
c3d_feat_extract/opts.py
tgc1997/video-caption.pytorch
66430862696678f7233a1fc67af22f0525b22e52
[ "MIT" ]
39
2018-05-14T02:30:32.000Z
2021-07-17T11:39:28.000Z
c3d_feat_extract/opts.py
AmmieQi/video-caption.pytorch-1
66430862696678f7233a1fc67af22f0525b22e52
[ "MIT" ]
8
2018-09-20T09:08:46.000Z
2019-12-12T08:24:54.000Z
c3d_feat_extract/opts.py
AmmieQi/video-caption.pytorch-1
66430862696678f7233a1fc67af22f0525b22e52
[ "MIT" ]
19
2018-05-14T13:12:01.000Z
2021-06-25T07:48:07.000Z
import argparse def parse_opts(): parser = argparse.ArgumentParser() parser.add_argument('--input', default='input', type=str, help='Input file path') parser.add_argument('--video_root', default='', type=str, help='Root path of input videos') parser.add_argument('--model', default='', type=str, help='M...
67.551724
177
0.706483
03493eea66fb8617debe01d72af43777e2345feb
4,577
py
Python
xos/xos/apibase.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/xos/apibase.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/xos/apibase.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
from rest_framework.response import Response from rest_framework import serializers from rest_framework import generics from rest_framework import status from rest_framework.exceptions import APIException from rest_framework.exceptions import PermissionDenied as RestFrameworkPermissionDenied from django.core.exceptions...
41.234234
148
0.674896
034941e7c556b6c9e13ee5d56e6e2d0509c31ae7
1,764
py
Python
src/model_generators/svc_plotter.py
Rosster/MLFinalProject
521a739d4c5371db08179a54e22c76a9827136bb
[ "MIT" ]
null
null
null
src/model_generators/svc_plotter.py
Rosster/MLFinalProject
521a739d4c5371db08179a54e22c76a9827136bb
[ "MIT" ]
null
null
null
src/model_generators/svc_plotter.py
Rosster/MLFinalProject
521a739d4c5371db08179a54e22c76a9827136bb
[ "MIT" ]
1
2019-03-03T16:36:00.000Z
2019-03-03T16:36:00.000Z
import numpy as np import matplotlib.pyplot as plt from sklearn import svm ## adapted from https://scikit-learn.org/stable/auto_examples/svm/plot_iris.html#sphx-glr-auto-examples-svm-plot-iris-py def svc_plot(model, X0, X1, y, xlabel, ylabel, title, dest_fqp): xx, yy = __make_meshgrid(X0, X1) figure, sub = plt.s...
28
120
0.657029
03494c8413bed59598a1d7c586b696b4fdd282e1
6,443
py
Python
rep/estimators/_mnkit.py
HolyBayes/rep
8a8d70f87e148e6fd73ff0c3a8606e6074a5c47b
[ "Apache-2.0" ]
726
2015-04-16T08:16:30.000Z
2022-03-25T19:19:42.000Z
rep/estimators/_mnkit.py
HolyBayes/rep
8a8d70f87e148e6fd73ff0c3a8606e6074a5c47b
[ "Apache-2.0" ]
86
2015-04-16T23:57:01.000Z
2021-09-26T01:03:47.000Z
rep/estimators/_mnkit.py
HolyBayes/rep
8a8d70f87e148e6fd73ff0c3a8606e6074a5c47b
[ "Apache-2.0" ]
167
2015-04-16T11:42:18.000Z
2022-01-11T15:10:19.000Z
from __future__ import print_function, division, absolute_import import os import shutil import requests JSON_HEADER = {'Content-type': 'application/json'} __author__ = 'Alexander Baranov' class ServerError(Exception): pass def check_result(result): result.raise_for_status() json = result.json() ...
31.276699
111
0.634953
0349559186e77e49a54b73c2c627263e70636ccd
615
py
Python
migrations/versions/0154_nullable_is_blank.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
migrations/versions/0154_nullable_is_blank.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
migrations/versions/0154_nullable_is_blank.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
""" Revision ID: 0154_nullable_is_blank Revises: 0153_add_is_letter_contact_blank Create Date: 2018-01-05 15:49:36.522210 """ import sqlalchemy as sa from alembic import op revision = "0154_nullable_is_blank" down_revision = "0153_add_is_letter_contact_blank" def upgrade(): op.alter_column("templates", "is_let...
26.73913
82
0.788618
0349676da881cad4223c836f8842e9242df9d6e3
589
py
Python
aws_s3_ops/exceptions.py
AashimaYuthika/aws_s3_ops
82a4cd3b329c64f3e98594f83c205e811ceefcef
[ "MIT" ]
null
null
null
aws_s3_ops/exceptions.py
AashimaYuthika/aws_s3_ops
82a4cd3b329c64f3e98594f83c205e811ceefcef
[ "MIT" ]
null
null
null
aws_s3_ops/exceptions.py
AashimaYuthika/aws_s3_ops
82a4cd3b329c64f3e98594f83c205e811ceefcef
[ "MIT" ]
null
null
null
""" This module defines custom exceptions """ __author__ = "Aashima Yuthika" __version__ = "1.0.0" class UnsupportedCompressionException(Exception): """ This class is mainly for throwing an exception when an compression is encountered """ pass class S3FileNotFoundException(Exception): """ T...
21.035714
104
0.706282
0349c44651a651b8609e7ffda33897b3537dd3d5
64,864
py
Python
impacket/dcerpc/epm.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/dcerpc/epm.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
null
null
null
impacket/dcerpc/epm.py
black-security/impacket3
5b6145b3f511d4f7cddaba64cf150b109113afea
[ "Apache-1.1" ]
1
2022-01-28T00:53:41.000Z
2022-01-28T00:53:41.000Z
################################################################################ # DEPRECATION WARNING! # # This library will be deprecated soon. You should use impacket.dcerpc.v5 # # classes instead ...
63.779744
137
0.701807