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
91b5f814cf4954936d93fab6e34c3c67f72e7f01
8,404
py
Python
examples/get_started_fasterrcnn.py
shuoli90/adversarial-robustness-toolbox
a3c7002cbad1615217c0cbdd8923ee8264bbd3c4
[ "MIT" ]
null
null
null
examples/get_started_fasterrcnn.py
shuoli90/adversarial-robustness-toolbox
a3c7002cbad1615217c0cbdd8923ee8264bbd3c4
[ "MIT" ]
null
null
null
examples/get_started_fasterrcnn.py
shuoli90/adversarial-robustness-toolbox
a3c7002cbad1615217c0cbdd8923ee8264bbd3c4
[ "MIT" ]
1
2022-03-03T14:54:45.000Z
2022-03-03T14:54:45.000Z
# MIT License # # Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2020 # # 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 # r...
29.487719
120
0.630176
91b61bb9213bd8fc3a3a8a92539912c1b3a7de78
1,746
py
Python
var/spack/repos/builtin/packages/r-car/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/r-car/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2021-01-08T22:23:53.000Z
2022-03-30T11:08:17.000Z
var/spack/repos/builtin/packages/r-car/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 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 RCar(RPackage): """Functions and Datasets to Accompany J. Fox and S. Weisberg, An R Co...
49.885714
95
0.664948
91b61cde874f789f3dd019544483bb5e47a6763f
1,239
py
Python
arjuna/interact/gui/gom/namestore.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna/interact/gui/gom/namestore.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna/interact/gui/gom/namestore.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
# This file is a part of Arjuna # Copyright 2015-2020 Rahul Verma # Website: www.RahulVerma.net # 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...
31.769231
74
0.699758
91b63ea5feae4d078435c79b4db3f0ccb288f6d1
5,940
py
Python
deckparser/importers/dessem/hidr.py
venidera/deckparser
88e9e141cb7ef2cdea2994f7664157d9eae6ec4f
[ "Apache-2.0" ]
13
2018-07-26T20:18:30.000Z
2022-03-18T07:18:34.000Z
deckparser/importers/dessem/hidr.py
venidera/deckparser
88e9e141cb7ef2cdea2994f7664157d9eae6ec4f
[ "Apache-2.0" ]
null
null
null
deckparser/importers/dessem/hidr.py
venidera/deckparser
88e9e141cb7ef2cdea2994f7664157d9eae6ec4f
[ "Apache-2.0" ]
3
2021-04-23T21:46:59.000Z
2021-08-30T11:24:07.000Z
''' Created on 7 de ago de 2018 @author: Renan Maciel ''' import struct import logging class HIDR(): def __init__(self): self.keyList = ['idUsina'] self.lines = [] self.recFilter = None def isEmpty(self): return len(self.lines) == 0 def clearData(self): ...
32.108108
90
0.503704
91b6427c61ecb5600466c57be444d2c898e384eb
2,392
py
Python
autox/autox_interpreter/mlinterpreter/util/preprocess.py
fanghy06/AutoX
0bad349ef1b047152e2608760fd5d197128be723
[ "Apache-2.0" ]
499
2021-07-27T02:57:58.000Z
2022-03-28T12:08:27.000Z
autox/autox_interpreter/mlinterpreter/util/preprocess.py
anonymouslycn/AutoX
ca1045c5919b4d97f1e4c2d8c235f63f6ec5af31
[ "Apache-2.0" ]
9
2021-08-03T15:14:56.000Z
2022-03-11T07:06:06.000Z
autox/autox_interpreter/mlinterpreter/util/preprocess.py
anonymouslycn/AutoX
ca1045c5919b4d97f1e4c2d8c235f63f6ec5af31
[ "Apache-2.0" ]
87
2021-07-27T01:13:02.000Z
2022-03-29T02:14:09.000Z
import pandas as pd import numpy as np import sklearn as sk from sklearn import preprocessing def preprocess_data(df, schema, process_label=False): df = df.copy() preprocess_dict = {} for fea in schema['features']: if fea['name'] != schema['label']: preprocess_dict[fea['name']] = {"typ...
35.701493
99
0.538043
91b6556dcc979a27d4c6693794ec8a4b8b7cbe02
621
py
Python
think-python/code/pi.py
baldoinov/think-python-2e-exercises
5a5cd6e94f44e14dc567c35ebf3dd9160cf6b01b
[ "MIT" ]
null
null
null
think-python/code/pi.py
baldoinov/think-python-2e-exercises
5a5cd6e94f44e14dc567c35ebf3dd9160cf6b01b
[ "MIT" ]
null
null
null
think-python/code/pi.py
baldoinov/think-python-2e-exercises
5a5cd6e94f44e14dc567c35ebf3dd9160cf6b01b
[ "MIT" ]
null
null
null
import math def estimate_pi(): estimated = 0 inverted_pi = math.pi**(-1) constant = (2 * math.sqrt(2)) / 9801 x = 0 while abs(estimated - inverted_pi) > 1e-15: num = fatorial(4 * x) * (1103 + 26390 * x) den = (fatorial(x) ** 4) * (396 ** (4 * x)) term = constant * (nu...
19.40625
51
0.516908
91b6a9b09bdba5a26dd097497e0c889ff0a05961
6,289
py
Python
src/saas/bkuser_shell/organization/serializers/profiles.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/saas/bkuser_shell/organization/serializers/profiles.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
src/saas/bkuser_shell/organization/serializers/profiles.py
Canway-shiisa/bk-user
a049e80d12082960828015742cea4b041f4af796
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic...
34.938889
115
0.71156
91b6be83b1319aee7ab8ef6bfe590c64252c9f0b
106
py
Python
hs_core/__init__.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_core/__init__.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_core/__init__.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
"""Initialize hs_core module with HSCoreAppConfig.""" default_app_config = 'hs_core.apps.HSCoreAppConfig'
35.333333
53
0.811321
91b6d4833f40dd980b1818345da079098634cb77
3,458
py
Python
codes/src/utils_scheduler/schedule_and_run.py
hwangoh/uq-vae
382548e6f6dd7f9d72feff0e0752beec871db348
[ "MIT" ]
2
2021-07-28T16:47:18.000Z
2021-08-03T00:53:58.000Z
codes/src/utils_scheduler/schedule_and_run.py
HwanGoh/uq-vae
24a3d26987e2ec807d57601b14c68b22f3652a18
[ "MIT" ]
null
null
null
codes/src/utils_scheduler/schedule_and_run.py
HwanGoh/uq-vae
24a3d26987e2ec807d57601b14c68b22f3652a18
[ "MIT" ]
2
2021-09-29T08:31:46.000Z
2021-11-07T10:26:45.000Z
""" Author: Jonathan Wittmer, Oden Institute, Austin, Texas 2020 """ from mpi4py import MPI import pynvml from time import sleep import pdb #Equivalent of keyboard in MATLAB, just add "pdb.set_trace()" class FLAGS: RECEIVED = 1 RUN_FINISHED = 2 EXIT = 3 NEW_RUN = 4 ###################################...
43.225
185
0.626952
91b733ca93cdcc36ada8f124ce7f92335a91d803
2,087
py
Python
ramp-frontend/ramp_frontend/views/redirect.py
tomMoral/ramp-board
9e3aa335a90701e2ae4c6295eb2b77f3555f54de
[ "BSD-3-Clause" ]
null
null
null
ramp-frontend/ramp_frontend/views/redirect.py
tomMoral/ramp-board
9e3aa335a90701e2ae4c6295eb2b77f3555f54de
[ "BSD-3-Clause" ]
null
null
null
ramp-frontend/ramp_frontend/views/redirect.py
tomMoral/ramp-board
9e3aa335a90701e2ae4c6295eb2b77f3555f54de
[ "BSD-3-Clause" ]
null
null
null
import logging from flask import flash from flask import redirect from flask import url_for logger = logging.getLogger('RAMP-FRONTEND') def redirect_to_user(message_str, is_error=True, category='message'): """Redirect the page to the problem landing page. Parameters ---------- message_str : str ...
28.986111
74
0.658361
91b7416bb1216647b95b3b914d38976f26a657fa
8,300
py
Python
jingo/__init__.py
mliu7/jingo
a2ada27f6643bb0d6600504c474369d434f3df38
[ "BSD-3-Clause" ]
null
null
null
jingo/__init__.py
mliu7/jingo
a2ada27f6643bb0d6600504c474369d434f3df38
[ "BSD-3-Clause" ]
null
null
null
jingo/__init__.py
mliu7/jingo
a2ada27f6643bb0d6600504c474369d434f3df38
[ "BSD-3-Clause" ]
null
null
null
"""Adapter for using Jinja2 with Django.""" import functools import imp import logging import re from django.conf import settings from django.template.base import Origin, TemplateDoesNotExist from django.template.context import get_standard_processors from django.template.loader import BaseLoader from django.utils.imp...
32.170543
81
0.623494
91b74880796c917d69d78b33e05348dde74273f8
1,409
py
Python
capnpy/benchmarks/test_unpack.py
wridgers/capnpy
63546597cc94434a271187f2e5af60f02e086caa
[ "MIT" ]
45
2016-10-28T10:16:07.000Z
2022-03-06T20:16:57.000Z
capnpy/benchmarks/test_unpack.py
wridgers/capnpy
63546597cc94434a271187f2e5af60f02e086caa
[ "MIT" ]
42
2016-12-20T18:10:53.000Z
2021-09-08T12:29:04.000Z
capnpy/benchmarks/test_unpack.py
wridgers/capnpy
63546597cc94434a271187f2e5af60f02e086caa
[ "MIT" ]
21
2017-02-28T06:39:15.000Z
2021-09-07T05:30:46.000Z
import py import pytest import struct import six @pytest.fixture(params=('str', 'bytearray')) def buftype(request): if request.param == 'str': return six.binary_type elif request.param == 'bytearray': return bytearray else: assert False class TestUnpack(object): N = 2000 ...
27.096154
62
0.550035
91b7778a7871294e48611c4179ee41dabe6538fc
9,133
py
Python
classifier_control/environments/sim/franka_desk/franka_desk.py
s-tian/mbold
85309809e35777b843dafc37d047b84962f17062
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
16
2021-04-20T20:01:10.000Z
2022-03-29T03:19:39.000Z
classifier_control/environments/sim/franka_desk/franka_desk.py
s-tian/mbold
85309809e35777b843dafc37d047b84962f17062
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
classifier_control/environments/sim/franka_desk/franka_desk.py
s-tian/mbold
85309809e35777b843dafc37d047b84962f17062
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
1
2021-05-04T00:32:40.000Z
2021-05-04T00:32:40.000Z
import numpy as np import copy import os from metaworld.envs.mujoco.sawyer_xyz.base import SawyerXYZEnv from visual_mpc.envs.mujoco_env.base_mujoco_env import BaseMujocoEnv class FrankaDesk(BaseMujocoEnv, SawyerXYZEnv): """Tabletop Manip (Metaworld) Env""" def __init__(self, env_params_dict, reset_state=Non...
34.992337
119
0.586554
91b780721e87264a04203d548e670e1eddf13943
862
py
Python
var/spack/repos/builtin/packages/r-chron/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/r-chron/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2021-01-08T22:23:53.000Z
2022-03-30T11:08:17.000Z
var/spack/repos/builtin/packages/r-chron/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 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 RChron(RPackage): """Chronological objects which can handle dates and times.""" homep...
41.047619
96
0.74942
91b78abd40437dae9611a73d7c9a5e552501a450
1,224
py
Python
revelation/condition_codes.py
futurecore/revelation
859de37f5c3ecf5366cc7ba65900754862843366
[ "BSD-3-Clause" ]
4
2015-09-21T13:52:33.000Z
2016-12-29T23:24:51.000Z
revelation/condition_codes.py
futurecore/revelation
859de37f5c3ecf5366cc7ba65900754862843366
[ "BSD-3-Clause" ]
59
2015-07-17T01:09:12.000Z
2016-09-19T13:32:19.000Z
revelation/condition_codes.py
futurecore/epiphany-simulator
859de37f5c3ecf5366cc7ba65900754862843366
[ "BSD-3-Clause" ]
1
2015-08-01T00:42:03.000Z
2015-08-01T00:42:03.000Z
from pydgin.misc import FatalError def condition_passed(s, cond): conditions = { 0b0000: s.AZ, # BEQ 0b0001: not s.AZ, # BNE 0b0010: (not s.AZ) and s.AC, # BGTU 0b0011: s.AC, # ...
48.96
65
0.361928
91b7968e34645dfaff2c7d774a80d94062dd17a1
36,437
py
Python
Corrfunc/utils.py
fbeutler/Corrfunc
cff65ed49d8385636bd566c58c00cb328a822dfb
[ "MIT" ]
139
2016-02-10T01:41:55.000Z
2022-03-31T10:33:38.000Z
Corrfunc/utils.py
fbeutler/Corrfunc
cff65ed49d8385636bd566c58c00cb328a822dfb
[ "MIT" ]
227
2015-11-13T06:31:46.000Z
2022-02-03T21:12:36.000Z
Corrfunc/utils.py
fbeutler/Corrfunc
cff65ed49d8385636bd566c58c00cb328a822dfb
[ "MIT" ]
58
2016-03-15T07:25:33.000Z
2022-03-22T09:38:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ A set of utility routines """ from __future__ import (absolute_import, division, print_function, unicode_literals) import sys import os import warnings from os.path import exists as file_exists import wurlitzer from contextlib import contextmana...
33.737963
98
0.588797
91b798fe9c99aed24dd7f1593e310041c185af03
1,582
py
Python
code/lib/osm/osm_rdcl_graph.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
8
2017-03-13T16:34:28.000Z
2021-11-16T11:35:56.000Z
code/lib/osm/osm_rdcl_graph.py
superfluidity/osm-light-ui
d3189687009f23f32e877c36db1ebd206fca972f
[ "Apache-2.0" ]
null
null
null
code/lib/osm/osm_rdcl_graph.py
superfluidity/osm-light-ui
d3189687009f23f32e877c36db1ebd206fca972f
[ "Apache-2.0" ]
3
2017-03-28T09:26:40.000Z
2020-12-08T14:16:12.000Z
# # Copyright 2017 CNIT - Consorzio Nazionale Interuniversitario per le Telecomunicazioni # # 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/LICE...
30.423077
91
0.675727
91b7a90f853567cb6b2d07a2a60f3fcf09468e00
2,536
py
Python
mountaintools/cairioserver/examples/basic_usage.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
mountaintools/cairioserver/examples/basic_usage.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
mountaintools/cairioserver/examples/basic_usage.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
from cairio import client as ca print('------------------------------------------------') # Local key/value store for associating relatively short strings (<=80 characters) with arbitrary keys (strings or dicts) # Setting values (these should be short strings, <=80 characters) ca.setValue(key='some-key1', value='hel...
32.101266
121
0.673502
91b7b11eadb4f6e23faf5738aa6d15d1520bf9aa
12,551
py
Python
run_scripts/publication/massbank/gather_rank_changes__csi.py
aalto-ics-kepaco/lcms2struct_exp
5baa3edd0e58d24f739efd4086031f6fbdba6ad9
[ "MIT" ]
null
null
null
run_scripts/publication/massbank/gather_rank_changes__csi.py
aalto-ics-kepaco/lcms2struct_exp
5baa3edd0e58d24f739efd4086031f6fbdba6ad9
[ "MIT" ]
null
null
null
run_scripts/publication/massbank/gather_rank_changes__csi.py
aalto-ics-kepaco/lcms2struct_exp
5baa3edd0e58d24f739efd4086031f6fbdba6ad9
[ "MIT" ]
null
null
null
import argparse import glob import os.path import gzip import pickle import sys import logging import re import numpy as np import pandas as pd import scipy.stats as sp_stats from run_with_gridsearch import dict2fn from ssvm.data_structures import CandSQLiteDB_Massbank # ================ # Setup the Logger LOGGER ...
44.038596
170
0.560035
91b7ba94799867bb6a049732e23446fc4dd0541f
5,039
py
Python
nets/tf_unet/util.py
Guo-Xiaoqing/Skin-Seg
a23fabc5478d9d199778b51dd7def82252ad309d
[ "MIT" ]
14
2020-01-13T07:53:12.000Z
2022-01-03T17:36:05.000Z
nets/tf_unet/util.py
CityU-AIM-Group/Skin-Seg
a23fabc5478d9d199778b51dd7def82252ad309d
[ "MIT" ]
1
2021-10-08T08:11:04.000Z
2021-10-08T08:39:45.000Z
nets/tf_unet/util.py
CityU-AIM-Group/Skin-Seg
a23fabc5478d9d199778b51dd7def82252ad309d
[ "MIT" ]
4
2020-01-13T07:53:14.000Z
2021-04-08T11:58:53.000Z
# tf_unet 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 Software Foundation, either version 3 of the License, or # (at your option) any later version. # # tf_unet is distributed in the hope that it will be useful, # but WITHOUT...
32.095541
123
0.639016
91b7c06676b5e6a777e3791fbb85b4a4999cf0cc
6,951
py
Python
open-hackathon-server/src/hackathon/views/routes.py
akondasif/open-hackathon-bak_01
d60ad764edf689a95b6ffcc56815338b380801de
[ "MIT" ]
null
null
null
open-hackathon-server/src/hackathon/views/routes.py
akondasif/open-hackathon-bak_01
d60ad764edf689a95b6ffcc56815338b380801de
[ "MIT" ]
null
null
null
open-hackathon-server/src/hackathon/views/routes.py
akondasif/open-hackathon-bak_01
d60ad764edf689a95b6ffcc56815338b380801de
[ "MIT" ]
1
2019-04-03T23:13:55.000Z
2019-04-03T23:13:55.000Z
# -*- coding: utf-8 -*- """ Copyright (c) Microsoft Open Technologies (Shanghai) Co. Ltd.  All rights reserved. The MIT License (MIT) 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 res...
35.464286
95
0.711121
91b7d656beb6457b2c733a0c6a862fb28e614c2e
40
py
Python
model/__init__.py
gvil-research/leaf-segmentation-unet
591c9be5085ff179dc3cec8c224e46fed86dd09f
[ "MIT" ]
1
2022-02-28T01:40:30.000Z
2022-02-28T01:40:30.000Z
model/__init__.py
gvil-research/leaf-segmentation-unet
591c9be5085ff179dc3cec8c224e46fed86dd09f
[ "MIT" ]
null
null
null
model/__init__.py
gvil-research/leaf-segmentation-unet
591c9be5085ff179dc3cec8c224e46fed86dd09f
[ "MIT" ]
null
null
null
from .model import dice_loss, ResNetUNet
40
40
0.85
91b7f8f57bec689e5e7453ce51d90978b1c8fee2
8,167
py
Python
src/python/pants/testutil/option/fakes.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
src/python/pants/testutil/option/fakes.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
null
null
null
src/python/pants/testutil/option/fakes.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from collections import defaultdict from pants.option.global_options import GlobalOptionsRegistrar from pants.option.option_util import is_list_option from pants.option.parser import Pars...
41.247475
108
0.676013
91b84172038e0752c7e20321d4c19c78003343b1
9,437
py
Python
rbac/processor/task/task_validator.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
null
null
null
rbac/processor/task/task_validator.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
null
null
null
rbac/processor/task/task_validator.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
1
2018-12-07T10:55:08.000Z
2018-12-07T10:55:08.000Z
# Copyright 2018 Contributors to Hyperledger Sawtooth # # 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 ...
37.448413
88
0.680513
91b843a995e9c355e4b156d6ea2aa12ebfe424b6
6,818
py
Python
docs/conf.py
newsapps/panda
7553fd8cbc9c9c92a1b8be2e073141ec1b2ef903
[ "MIT" ]
4
2015-07-28T19:01:03.000Z
2018-12-21T01:57:03.000Z
docs/conf.py
NUKnightLab/panda
c8b81151cad9f23ecd439e4354e86cca1eb49bb1
[ "MIT" ]
null
null
null
docs/conf.py
NUKnightLab/panda
c8b81151cad9f23ecd439e4354e86cca1eb49bb1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # PANDA documentation build configuration file, created by # sphinx-quickstart on Fri Apr 15 21:52:09 2011. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
32.160377
80
0.724846
91b84ac155d33d90ee88e6496bc7dd04521c9e2e
14,185
py
Python
twisted/conch/insults/helper.py
sxamit/twisted
30f6966329c857c3631c60aeb420d84d7828e01e
[ "MIT", "Unlicense" ]
1
2017-08-07T14:52:02.000Z
2017-08-07T14:52:02.000Z
Lib/site-packages/twisted/conch/insults/helper.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/twisted/conch/insults/helper.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
1
2018-11-07T12:52:07.000Z
2018-11-07T12:52:07.000Z
# -*- test-case-name: twisted.conch.test.test_helper -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Partial in-memory terminal emulator @author: Jp Calderone """ from __future__ import print_function import re, string from zope.interface import implementer from twisted.internet im...
30.505376
86
0.575749
91b8545af897d8327a89033f1393ef0f6a35fd24
607
py
Python
gendates.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
gendates.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
gendates.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
from datetime import datetime,timedelta PYBITES_BORN = datetime(year=2016, month=12, day=19) def gen_special_pybites_dates(): working_date = PYBITES_BORN special_dates = [] while working_date.year < 2018: working_date = working_date.replace(year=working_date.year + 1) special_da...
26.391304
71
0.685338
91b857ab48ea57918943b72062c132f26b1afac4
5,747
py
Python
tests/test_model.py
duncangeere/vpype
0b91f16c538cd9d709354652b51a58f8805e6822
[ "MIT" ]
null
null
null
tests/test_model.py
duncangeere/vpype
0b91f16c538cd9d709354652b51a58f8805e6822
[ "MIT" ]
null
null
null
tests/test_model.py
duncangeere/vpype
0b91f16c538cd9d709354652b51a58f8805e6822
[ "MIT" ]
null
null
null
from typing import Iterable, Tuple, Set, Sequence import numpy as np import pytest from shapely.geometry import MultiLineString, LineString, Point, LinearRing from vpype import LineCollection, VectorData LINE_COLLECTION_TWO_LINES = [ LineCollection([[0, 1 + 1j], [2 + 2j, 3 + 3j, 4 + 4j]]), [[0, 1 + 1j], [2 + ...
27.366667
94
0.606577
91b88e39464144aa62e092918cd3d661fa421d70
4,642
py
Python
1_code/survival_mode/endgame_utils.py
jaimiles23/Multiplication_Medley
1072dea1a5be0b339211ff39db6a89a90aca64c1
[ "MIT" ]
null
null
null
1_code/survival_mode/endgame_utils.py
jaimiles23/Multiplication_Medley
1072dea1a5be0b339211ff39db6a89a90aca64c1
[ "MIT" ]
null
null
null
1_code/survival_mode/endgame_utils.py
jaimiles23/Multiplication_Medley
1072dea1a5be0b339211ff39db6a89a90aca64c1
[ "MIT" ]
null
null
null
"""/** * @author [Jai Miles] * @email [jaimiles23@gmail.com] * @create date 2020-05-19 13:09:36 * @modify date 2020-05-20 22:21:52 * @desc [ SMEndGame utility class for ending survival mode. - game score - score results - ] */ """ ########## # Imports ########## import random from ask_sdk_co...
32.013793
83
0.670832
91b89a52a94fb4a4d919b85bb5154d12ecb52581
1,776
py
Python
setup.py
bvonboyen/PyPortfolioOpt
e1acf8f5857d4674b7e5530cb672edf84c7301b2
[ "MIT" ]
null
null
null
setup.py
bvonboyen/PyPortfolioOpt
e1acf8f5857d4674b7e5530cb672edf84c7301b2
[ "MIT" ]
null
null
null
setup.py
bvonboyen/PyPortfolioOpt
e1acf8f5857d4674b7e5530cb672edf84c7301b2
[ "MIT" ]
null
null
null
from setuptools import setup import re with open("README.md", "r") as f: desc = f.read() desc = desc.split("<!-- content -->")[-1] desc = re.sub("<[^<]+?>", "", desc) # Remove html setup( name="PyPortfolioOpt", version="1.1.0", description="Financial portfolio optimisation in python", lo...
37
76
0.628378
91b89b0d8512a9abcfbfb4adf1f6ffc2967f095b
6,317
py
Python
src/Chap6_Problem.py
falconlee236/CodingTheMatrix-Answer
4fab8087bde352913da71c8d86b802a93231b1b5
[ "MIT" ]
null
null
null
src/Chap6_Problem.py
falconlee236/CodingTheMatrix-Answer
4fab8087bde352913da71c8d86b802a93231b1b5
[ "MIT" ]
null
null
null
src/Chap6_Problem.py
falconlee236/CodingTheMatrix-Answer
4fab8087bde352913da71c8d86b802a93231b1b5
[ "MIT" ]
null
null
null
from vec import Vec from GF2 import one from solver import solve from vecutil import list2vec from matutil import coldict2mat # Problem 6.14.13 def rep2vec(u, veclist): return coldict2mat(veclist) * u if __name__ == "__main__": print("\nProblem 6.14.13") ''' Testcase 1 ''' a0 = Vec({'a', 'b', 'c', '...
32.901042
111
0.479183
91b8e02d389eff108f59a2502ed80d210676291b
1,496
py
Python
tarakania_rpg/commands/rpg/inventory/command_gift.py
MKokyn/discord-bot
00f58512739be9b2eec1adb16214c72da59e696b
[ "MIT" ]
null
null
null
tarakania_rpg/commands/rpg/inventory/command_gift.py
MKokyn/discord-bot
00f58512739be9b2eec1adb16214c72da59e696b
[ "MIT" ]
null
null
null
tarakania_rpg/commands/rpg/inventory/command_gift.py
MKokyn/discord-bot
00f58512739be9b2eec1adb16214c72da59e696b
[ "MIT" ]
null
null
null
from handler import BaseCommand, Context, Arguments, CommandResult from rpg.player import Player, UnknownPlayer from utils.confirmations import request_confirmation class Command(BaseCommand): async def run(self, ctx: Context, args: Arguments) -> CommandResult: try: player = await Player.from...
31.829787
83
0.602273
91b8e714f40730a1886aa5acd39c3389d26648d6
749
py
Python
migrations/versions/75e55480ac14_added_mailing_list.py
KageniJK/blog
6ee3557bbad53198efbab1ccd02a82f3fa3b9864
[ "MIT" ]
null
null
null
migrations/versions/75e55480ac14_added_mailing_list.py
KageniJK/blog
6ee3557bbad53198efbab1ccd02a82f3fa3b9864
[ "MIT" ]
null
null
null
migrations/versions/75e55480ac14_added_mailing_list.py
KageniJK/blog
6ee3557bbad53198efbab1ccd02a82f3fa3b9864
[ "MIT" ]
null
null
null
"""added mailing list Revision ID: 75e55480ac14 Revises: 2d9e1ec59a5c Create Date: 2018-09-17 05:18:45.779080 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '75e55480ac14' down_revision = '2d9e1ec59a5c' branch_labels = None depends_on = None def upgrade(): ...
22.69697
65
0.680908
91b8f79a7321d3e460111a5e3888ae6d307b1497
1,296
py
Python
src/packages/inbrowserhelp/inbrowserhelp/__init__.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
88
2020-03-19T20:24:08.000Z
2022-03-23T23:13:54.000Z
src/packages/inbrowserhelp/inbrowserhelp/__init__.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
5
2020-04-09T19:56:47.000Z
2021-11-12T20:02:18.000Z
src/packages/inbrowserhelp/inbrowserhelp/__init__.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
22
2020-03-19T19:24:36.000Z
2022-03-18T21:55:19.000Z
""" inbrowserhelp example: inbrowserhelp sample """ import webbrowser import menuhook from pymxs import runtime as rt MAX_VERSION = rt.maxversion()[7] MAX_HELP = f"help.autodesk.com/view/MAXDEV/{MAX_VERSION}/ENU" TOPICS = [ ("gettingstarted", "Getting Started With Python in 3ds Max", f"{MAX_HELP}/?guid=Ma...
33.230769
77
0.654321
91b916d79e2e2e33190378454e7fe49a1d78631c
219
py
Python
src/fortrace/inputDevice/__init__.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:01:51.000Z
2022-03-31T14:01:51.000Z
src/fortrace/inputDevice/__init__.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
null
null
null
src/fortrace/inputDevice/__init__.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:02:30.000Z
2022-03-31T14:02:30.000Z
"""This package contains an api for mouse clicks and keyboard strokes. The agent will call inputDevice.py which will parse the arguments from the agent. After the next function (mouse or keyboard) will be called. """
31.285714
105
0.776256
91b928ffb80ad72b723130bde3e1f58f24e5cca1
325
py
Python
main.py
appheap/PyGithub
2442a2512a708c6463f81d8398fd91090e134df1
[ "MIT" ]
1
2022-03-16T21:33:37.000Z
2022-03-16T21:33:37.000Z
main.py
appheap/PyGithub
2442a2512a708c6463f81d8398fd91090e134df1
[ "MIT" ]
null
null
null
main.py
appheap/PyGithub
2442a2512a708c6463f81d8398fd91090e134df1
[ "MIT" ]
1
2022-03-16T21:28:06.000Z
2022-03-16T21:28:06.000Z
from github import GithubClient from decouple import config if __name__ == '__main__': client = GithubClient( login=config('LOGIN'), token=config('API_KEY'), auto_auth=True, ) # not needed when `auto_auth` is set to True # client.authenticate_user() info = client.get_my_in...
21.666667
48
0.652308
91b92e4ffbcdd96badd297b1599c86b3f5d0ea6d
6,925
py
Python
processing_provider/Drone_copySelectedPhotos.py
LEOXINGU/lftools
f6ceac276c2872c7bf098f6363b44a07a6e523d8
[ "MIT" ]
19
2021-03-14T11:37:00.000Z
2022-03-31T13:29:57.000Z
processing_provider/Drone_copySelectedPhotos.py
geodourados/lftools
4b9d703513bd3d49ac7952014575bf95492a2d90
[ "MIT" ]
4
2021-04-06T03:57:43.000Z
2022-03-28T22:57:07.000Z
processing_provider/Drone_copySelectedPhotos.py
geodourados/lftools
4b9d703513bd3d49ac7952014575bf95492a2d90
[ "MIT" ]
3
2022-02-12T16:14:17.000Z
2022-03-28T22:18:04.000Z
# -*- coding: utf-8 -*- """ Drone_copySelectedPhotos.py *************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU G...
35.880829
150
0.549603
91b93096c3503797f9c6287ff82b76d4a98d3b09
1,967
py
Python
tests/server/datasets/test_dao.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
5
2021-11-11T23:37:53.000Z
2021-12-19T03:09:43.000Z
tests/server/datasets/test_dao.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
tests/server/datasets/test_dao.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
1
2022-02-11T08:28:02.000Z
2022-02-11T08:28:02.000Z
# coding=utf-8 # Copyright 2021-present, the Recognai S.L. team. # # 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 ...
35.125
81
0.76665
91b955b53516c781b72547ecbcb7d2c6beb433a5
1,241
py
Python
data/states/splash.py
kelvinzpan/VIS142_game
932d8c1e38aac003140aa122fdc1c9888d12f795
[ "MIT" ]
null
null
null
data/states/splash.py
kelvinzpan/VIS142_game
932d8c1e38aac003140aa122fdc1c9888d12f795
[ "MIT" ]
null
null
null
data/states/splash.py
kelvinzpan/VIS142_game
932d8c1e38aac003140aa122fdc1c9888d12f795
[ "MIT" ]
null
null
null
""" The splash screen of the game. The first thing the user sees. """ import pygame as pg from .. import prepare, tools class Splash(tools._State): """This State is updated while our game shows the splash screen.""" def __init__(self): tools._State.__init__(self) self.next = "MENU" s...
33.540541
78
0.637389
91b986f0111d55b689e46c78b74a0778dd670b85
753
py
Python
tests/common/test_run/ascend/argmax_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_run/ascend/argmax_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_run/ascend/argmax_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
37.65
77
0.767596
91b9a0c61f14b220fae8f8cf80a48e1e0efe16a4
3,473
py
Python
experiments/ashvin/icml2020/hand/sparse/mc1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/sparse/mc1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/sparse/mc1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies import GaussianP...
30.2
130
0.570976
91b9aeb093122c578efaa4c671fa488acedcc866
17,781
py
Python
corehq/apps/api/resources/v0_4.py
challabeehyv/commcare-hq
b83d3d4d47b0c4660fc9ce730cde40fd612c2f11
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/api/resources/v0_4.py
challabeehyv/commcare-hq
b83d3d4d47b0c4660fc9ce730cde40fd612c2f11
[ "BSD-3-Clause" ]
2
2020-04-16T13:25:44.000Z
2021-02-08T22:08:28.000Z
corehq/apps/api/resources/v0_4.py
challabeehyv/commcare-hq
b83d3d4d47b0c4660fc9ce730cde40fd612c2f11
[ "BSD-3-Clause" ]
null
null
null
from django.http import ( HttpResponse, HttpResponseBadRequest, HttpResponseForbidden, ) from django.urls import reverse from tastypie import fields from tastypie.authentication import Authentication from tastypie.bundle import Bundle from tastypie.exceptions import BadRequest from casexml.apps.case.xform...
37.433684
112
0.675046
91ba23f55b67b939f11fd027adf886fac9550b1b
966
py
Python
datastructures/stack_deque/deque_recipes.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
10
2020-09-21T22:23:09.000Z
2022-01-25T16:58:44.000Z
datastructures/stack_deque/deque_recipes.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
null
null
null
datastructures/stack_deque/deque_recipes.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
null
null
null
from collections import deque q = deque() q.append(5) # Adds value to the right q.append(234) q.append(576) count = q.count(5) # Returns the count of value q.extend([10]) # Extends takes only an iterable as argument q.extendleft([15]) # Extends to the left q.insert(1, 7) # Inserts value at given index ...
32.2
93
0.701863
91ba3037e2461e07643ee3d47094edb567d92941
1,119
py
Python
test/test_app_stop.py
PetrSixta/taro
afe0caf0e0feb6948c4cc80217b5c5d11418859b
[ "MIT" ]
null
null
null
test/test_app_stop.py
PetrSixta/taro
afe0caf0e0feb6948c4cc80217b5c5d11418859b
[ "MIT" ]
null
null
null
test/test_app_stop.py
PetrSixta/taro
afe0caf0e0feb6948c4cc80217b5c5d11418859b
[ "MIT" ]
null
null
null
""" Tests :mod:`app` module Command: stop """ import pytest from taro.jobs.execution import ExecutionState from taro_test_util import run_app, run_app_as_process, run_wait def test_stop_must_specify_job(capsys): with pytest.raises(SystemExit): run_app('stop') def test_stop(capsys): run_w = run_wait...
26.642857
73
0.700626
91ba76da59a67194ba2e6bae6c5e3bb36821f3da
6,150
py
Python
nemo_text_processing/text_normalization/en/taggers/whitelist.py
fedorovgv/NeMo
48ff3dc75b21b09ac55d114abde2bc880c4104da
[ "Apache-2.0" ]
null
null
null
nemo_text_processing/text_normalization/en/taggers/whitelist.py
fedorovgv/NeMo
48ff3dc75b21b09ac55d114abde2bc880c4104da
[ "Apache-2.0" ]
null
null
null
nemo_text_processing/text_normalization/en/taggers/whitelist.py
fedorovgv/NeMo
48ff3dc75b21b09ac55d114abde2bc880c4104da
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # Copyright 2015 and onwards Google, 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/license...
40.460526
135
0.634634
91ba93fe4cdbc698c3d6cedac7cefc57cc3c6b98
8,930
py
Python
venv/Lib/site-packages/pyrogram/methods/messages/send_video_note.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/methods/messages/send_video_note.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/methods/messages/send_video_note.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# 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...
45.561224
209
0.554423
91bab18b0150afd4d095da132d007390b9e305f5
8,997
py
Python
robot-tests/IFS_acceptance_tests/libs/Initialisation.py
adambirse/innovation-funding-service
db1c2bc5a25d3143df02bef9019aefd5261caf6f
[ "MIT" ]
null
null
null
robot-tests/IFS_acceptance_tests/libs/Initialisation.py
adambirse/innovation-funding-service
db1c2bc5a25d3143df02bef9019aefd5261caf6f
[ "MIT" ]
null
null
null
robot-tests/IFS_acceptance_tests/libs/Initialisation.py
adambirse/innovation-funding-service
db1c2bc5a25d3143df02bef9019aefd5261caf6f
[ "MIT" ]
null
null
null
#!/usr/bin/python import pytz import pymysql import os config = '' def connectToDb(): try: os.environ['bamboo_IFS_MYSQL_USER_NAME'] print("Using server mysql config") config = { 'user': os.environ['bamboo_IFS_MYSQL_USER_NAME'], 'passwd': os.environ['bamboo_IFS_MYSQL...
40.345291
221
0.725353
91bae610adb5c0b06b34ad247027dd0d79671778
6,901
py
Python
scripts/SAMI/dL_r_Vs_dMstar.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
scripts/SAMI/dL_r_Vs_dMstar.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
6
2020-02-17T13:44:43.000Z
2020-06-25T15:35:05.000Z
scripts/SAMI/dL_r_Vs_dMstar.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
# -*- coding: utf-8 -*- """ Created on Sun Sep 20 14:20:02 2015 Plot Delta Lambda_r Vs Delta Stellar mass @author: hoseung """ import matplotlib.pyplot as plt import pickle import numpy as np ## fucntions def load_pickle(fname): with open(fname, 'rb') as f: return pickle.load(f) ## time def aexp2zred(...
29.241525
97
0.592668
91baed210588946eabdf563ab424f763ca0a8135
87,503
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machine_scale_sets_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machine_scale_sets_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/operations/_virtual_machine_scale_sets_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 ...
44.082116
217
0.676251
91baed5726f2ac5a6fbf1f063f60ca319d447614
1,822
py
Python
tests/fixtures/app_with_extra_page_generator/app.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
7
2020-09-23T15:27:09.000Z
2022-03-20T19:31:41.000Z
tests/fixtures/app_with_extra_page_generator/app.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
160
2020-07-06T17:58:35.000Z
2022-03-30T13:06:07.000Z
tests/fixtures/app_with_extra_page_generator/app.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
10
2020-07-06T18:05:10.000Z
2022-03-12T21:20:11.000Z
from flask import Flask def generate_extra_pages_0(app): yield 'extra/' yield 'extra2/' def generate_extra_pages_1(app): yield 'extra3/' yield 'extra4/' def generate_extra_pages_2(app): yield 'extra5/' yield 'extra6/' app = Flask(__name__) freeze_config = { 'extra_pages': [ {'gen...
23.358974
77
0.491218
91bafc4bba7c66d0334dd68f5c1bd022bc2bc270
3,080
py
Python
server/config/urls.py
connectiveproject/connective
8866082b2147feef0e5254ac4215987b9d881396
[ "MIT" ]
4
2021-07-05T10:49:26.000Z
2021-11-24T11:34:43.000Z
server/config/urls.py
connectiveproject/connective
8866082b2147feef0e5254ac4215987b9d881396
[ "MIT" ]
39
2021-06-21T15:02:37.000Z
2022-02-28T15:07:42.000Z
server/config/urls.py
connectiveproject/connective
8866082b2147feef0e5254ac4215987b9d881396
[ "MIT" ]
17
2021-06-16T08:59:45.000Z
2021-09-29T11:35:38.000Z
from dj_rest_auth.registration.views import VerifyEmailView from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.urls import include, path from django.views import defaults as default_...
33.11828
88
0.670455
91bb1dd2a7d7d8d7d12f8939df9eb2d2cb2b564b
2,885
py
Python
src/Products/ZCTextIndex/tests/testNBest.py
icemac/Products.ZCatalog
697719cc0f1a016ab7b874237271d3e11693e78b
[ "ZPL-2.1" ]
4
2018-09-13T22:10:22.000Z
2019-06-15T08:26:52.000Z
src/Products/ZCTextIndex/tests/testNBest.py
zopefoundation/Products.ZCatalog
d4fd9fe28d27e8ff43e911025c1258f1e8d50ad5
[ "ZPL-2.1" ]
97
2015-02-05T11:58:41.000Z
2022-02-08T21:34:11.000Z
src/Products/ZCTextIndex/tests/testNBest.py
zopefoundation/Products.ZCatalog
d4fd9fe28d27e8ff43e911025c1258f1e8d50ad5
[ "ZPL-2.1" ]
12
2015-04-03T05:30:24.000Z
2019-08-12T21:50:21.000Z
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
33.941176
78
0.532409
91bb5a53d9a9ce0710a36b94c0ab597a27b6335b
2,822
py
Python
app/slack.py
lucid281/botcannon
635504a5af3325cce1b7f760ff860270d3639999
[ "MIT" ]
2
2019-08-06T17:31:00.000Z
2019-08-06T18:56:49.000Z
app/slack.py
lucid281/botcannon
635504a5af3325cce1b7f760ff860270d3639999
[ "MIT" ]
null
null
null
app/slack.py
lucid281/botcannon
635504a5af3325cce1b7f760ff860270d3639999
[ "MIT" ]
null
null
null
import time import json import re from slackclient import SlackClient from slackclient.client import SlackNotConnected from walrus.streams import Message from botcannon.models import Collector class SlackService(Collector): name = __name__ def __init__(self, api_key): self.slack = SlackClient(api_k...
33.2
100
0.579376
91bb7df27803981e75b40999f77f27bc6363a85d
1,440
py
Python
project_euler/problem_01/sol6.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
project_euler/problem_01/sol6.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
project_euler/problem_01/sol6.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
27.169811
74
0.670139
91bb8f3c69d6d475a92a772b0fdee31117756122
16,383
py
Python
lbrynet/tests/mocks.py
D474designs/lbry
149fa625e0ad91da9c227963cb65ca673cdc8af8
[ "MIT" ]
null
null
null
lbrynet/tests/mocks.py
D474designs/lbry
149fa625e0ad91da9c227963cb65ca673cdc8af8
[ "MIT" ]
null
null
null
lbrynet/tests/mocks.py
D474designs/lbry
149fa625e0ad91da9c227963cb65ca673cdc8af8
[ "MIT" ]
null
null
null
import base64 import io import mock from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.asymmetric import rsa from cryptography.hazmat.primitives import serialization from twisted.internet import defer from twisted.python.failure import Failure from lbrynet.core.client.ClientR...
32.123529
110
0.642495
91bb9d94a6806fed4c3320a5165bdc81d3c12088
169
py
Python
py/dynesty/__init__.py
MJKirk/dynesty
747a6eb9557b1a24b6164887a7d45c0b8fa3eb1f
[ "MIT" ]
253
2017-05-04T05:40:36.000Z
2022-03-27T07:23:00.000Z
py/dynesty/__init__.py
MJKirk/dynesty
747a6eb9557b1a24b6164887a7d45c0b8fa3eb1f
[ "MIT" ]
345
2017-05-03T05:10:27.000Z
2022-03-31T23:50:54.000Z
py/dynesty/__init__.py
MJKirk/dynesty
747a6eb9557b1a24b6164887a7d45c0b8fa3eb1f
[ "MIT" ]
76
2017-05-10T10:23:51.000Z
2022-03-24T16:16:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from .dynesty import NestedSampler, DynamicNestedSampler from . import bounding from . import utils __version__ = "1.1"
16.9
56
0.715976
91bba9e044d49f98c2ea81a2fe72fd3038e74a99
8,678
py
Python
credoscript/adaptors/structureadaptor.py
tlb-lab/credoscript
32bdf08d84703dc2062dae4df1a95587d36c3cf7
[ "MIT" ]
null
null
null
credoscript/adaptors/structureadaptor.py
tlb-lab/credoscript
32bdf08d84703dc2062dae4df1a95587d36c3cf7
[ "MIT" ]
null
null
null
credoscript/adaptors/structureadaptor.py
tlb-lab/credoscript
32bdf08d84703dc2062dae4df1a95587d36c3cf7
[ "MIT" ]
null
null
null
from sqlalchemy import Integer from sqlalchemy.sql.expression import and_, cast, func from credoscript import citations from credoscript.mixins.base import paginate class StructureAdaptor(object): """ Class to fetch Structure objects from CREDO with the help of various selection criterias. """ def...
35.565574
114
0.591726
91bbb836762b31c89d925f997a681f995150cf5b
3,932
py
Python
text_processing_functions.py
streamlit-badge-bot/Light
9b916f3ba0745c2d4479db09f9d77de397da88f6
[ "MIT" ]
null
null
null
text_processing_functions.py
streamlit-badge-bot/Light
9b916f3ba0745c2d4479db09f9d77de397da88f6
[ "MIT" ]
1
2020-10-23T09:29:52.000Z
2020-10-23T09:29:52.000Z
text_processing_functions.py
streamlit-badge-bot/Light
9b916f3ba0745c2d4479db09f9d77de397da88f6
[ "MIT" ]
1
2020-11-28T18:45:45.000Z
2020-11-28T18:45:45.000Z
import json from nltk.corpus import stopwords from collections import Counter import pickle import numpy as np import string import time import streamlit as st from tensorflow.python.eager.context import execution_mode #stop = set(stopwords.words('english')) def load_data(file_name): ''' Loads data from j...
29.343284
109
0.630722
91bbe19967a0dc5c5a7bdb9654d6820f16447b93
18,935
py
Python
dnacentersdk/restsession.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/restsession.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/restsession.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """RestSession class for creating connections to the DNA Center APIs. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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 ...
38.485772
82
0.604753
91bbf60519370fc2b2b1e80367e518d842dc5ded
2,203
py
Python
models/vgg9.py
rakutentech/iterative_training
4bd9b8f64cdf2766af9b6fda0b4cb20d5d75b3bf
[ "MIT" ]
null
null
null
models/vgg9.py
rakutentech/iterative_training
4bd9b8f64cdf2766af9b6fda0b4cb20d5d75b3bf
[ "MIT" ]
null
null
null
models/vgg9.py
rakutentech/iterative_training
4bd9b8f64cdf2766af9b6fda0b4cb20d5d75b3bf
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch import torch.nn as nn import torch.nn.functional as F class Vgg9(nn.Module): """Vgg-9 VGG-inspired, 9 layers. For CIFAR10. See Frankle et al, 2019 paper. Called VGG-9 in Dong et al. arX...
30.178082
93
0.659101
91bc0bfa142e57efbca23d0ae53af39ba0a0fa5c
2,361
py
Python
tests/gpu_multi/cudastreams/post_mgpu_map_sync_test.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
null
null
null
tests/gpu_multi/cudastreams/post_mgpu_map_sync_test.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
null
null
null
tests/gpu_multi/cudastreams/post_mgpu_map_sync_test.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import dace import numpy as np import pytest from dace.transformation.dataflow import GPUMultiTransformMap, GPUTransformMap from dace import dtypes N = dace.symbol('N') n = 12 gpu_helper = 1 # Define data type to use dtype = dace.float64 np_...
31.905405
78
0.611605
91bc34ead18cf440182b4d5305747593eaf852e4
12,713
py
Python
src/transformers/tokenization_auto.py
Anat37/transformers
8c9fcfdb986a6c783a394b560d4b0447deebc1d1
[ "Apache-2.0" ]
null
null
null
src/transformers/tokenization_auto.py
Anat37/transformers
8c9fcfdb986a6c783a394b560d4b0447deebc1d1
[ "Apache-2.0" ]
null
null
null
src/transformers/tokenization_auto.py
Anat37/transformers
8c9fcfdb986a6c783a394b560d4b0447deebc1d1
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # 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...
48.708812
130
0.698891
91bc3c1c4b7c1d614a59b0a81efe4443a2b8caa8
9,898
py
Python
tofnet/utils/pointcloud.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
null
null
null
tofnet/utils/pointcloud.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
8
2021-02-02T23:07:37.000Z
2022-03-12T00:51:26.000Z
tofnet/utils/pointcloud.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
2
2020-10-01T08:23:24.000Z
2020-11-09T22:01:47.000Z
"""Pointcloud utility functions.""" import os import cv2 import numpy as np import open3d import open3d as o3d from sklearn.linear_model import RANSACRegressor from tofnet.data.generators import DEFAULT_SEGMENT_COLORS from tofnet.pointcloud.utils import * from tofnet.pointcloud.regressors import SVDRegressor from tofn...
35.224199
98
0.610729
91bc42c5c8b23c4d543438f39b0e0cf8a0103c46
8,144
py
Python
lab/lab06/lab06.py
williamtrang/DSC20
eb72c1003ee98e30f63040568e82eedcb8d3af52
[ "Apache-2.0" ]
null
null
null
lab/lab06/lab06.py
williamtrang/DSC20
eb72c1003ee98e30f63040568e82eedcb8d3af52
[ "Apache-2.0" ]
null
null
null
lab/lab06/lab06.py
williamtrang/DSC20
eb72c1003ee98e30f63040568e82eedcb8d3af52
[ "Apache-2.0" ]
null
null
null
""" DSC20 WI22 LAB06 Name: William Trang PID: A16679845 """ # Question1 def complexity_tf(): """ Write your answers to time complexity True/False questions in this function. >>> answers = complexity_tf() >>> isinstance(answers, list) True >>> len(answers) 10 >>> all([isinstanc...
33.933333
155
0.563728
91bc65ece35de777a4857f9b49710d41aeb10346
10,690
py
Python
tasks/lstm/__init__.py
epfml/powergossip
087eb09f64b0980c4224f3d0d8da1276a77aa721
[ "MIT" ]
6
2020-08-04T09:24:56.000Z
2021-10-05T04:25:10.000Z
tasks/lstm/__init__.py
epfml/powergossip
087eb09f64b0980c4224f3d0d8da1276a77aa721
[ "MIT" ]
null
null
null
tasks/lstm/__init__.py
epfml/powergossip
087eb09f64b0980c4224f3d0d8da1276a77aa721
[ "MIT" ]
1
2021-03-03T02:49:10.000Z
2021-03-03T02:49:10.000Z
import os from copy import deepcopy from typing import Dict, Iterable, List import numpy as np import spacy import torch import torchtext from spacy.symbols import ORTH from torch.utils.data import DataLoader from utils import MeanAccumulator from .model import RNNLM class Batch: def __init__(self, x, y, hidde...
33.722397
98
0.628718
91bcc1c5d6efc29dcbef18e44a0ff4515fb44c53
208
py
Python
datastructures/graphs/undirected/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
datastructures/graphs/undirected/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
datastructures/graphs/undirected/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
from typing import List from datastructures.graphs import Graph, Edge class UnDirectedGraph(Graph): def __init__(self, edge_list: List[Edge]): super(UnDirectedGraph, self).__init__(edge_list)
20.8
56
0.754808
91bcc66d23f67532f957addaed5903113c7eaeb1
11,857
py
Python
TrainingExtensions/common/src/python/aimet_common/quantsim_config/quantsim_config_schema.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
TrainingExtensions/common/src/python/aimet_common/quantsim_config/quantsim_config_schema.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
TrainingExtensions/common/src/python/aimet_common/quantsim_config/quantsim_config_schema.py
lipovsek/aimet
236fb02cc6c45e65c067030416c49a09ace82045
[ "BSD-3-Clause" ]
null
null
null
# /usr/bin/env python3.5 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2020, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
42.046099
96
0.306486
91bcfee13d2cafaa3af56ba0dc597b9bb02c9734
5,009
py
Python
monai/losses/vgg_losses.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
monai/losses/vgg_losses.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
monai/losses/vgg_losses.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
from torch.nn.modules.loss import _Loss import torch import torch.nn.functional as F from monai.networks.nets import VGGEncoder class PerceptualLoss(_Loss): """ Wrapper for pytorch L1Loss see torch.nn.L1Loss(reduction='mean') """ def __init__( self, reduction: str = 'mean', ...
34.544828
104
0.562987
91bd09b12f3afed5c3916831b61395ee6a22d96b
10,536
py
Python
vgio/quake/__init__.py
joshuaskelly/game-tools
e71bcf4ef6553adf0b51f4379f72bc5a82a60176
[ "MIT" ]
22
2017-11-30T22:13:50.000Z
2019-12-19T17:56:40.000Z
vgio/quake/__init__.py
joshuaskelly/vgio
e71bcf4ef6553adf0b51f4379f72bc5a82a60176
[ "MIT" ]
22
2019-08-11T05:07:26.000Z
2020-12-30T16:07:04.000Z
vgio/quake/__init__.py
joshuaskelly/game-tools
e71bcf4ef6553adf0b51f4379f72bc5a82a60176
[ "MIT" ]
4
2018-06-24T14:04:36.000Z
2019-05-14T06:01:51.000Z
__version__ = '1.1.2' palette = ( (0x00,0x00,0x00),(0x0f,0x0f,0x0f),(0x1f,0x1f,0x1f),(0x2f,0x2f,0x2f), (0x3f,0x3f,0x3f),(0x4b,0x4b,0x4b),(0x5b,0x5b,0x5b),(0x6b,0x6b,0x6b), (0x7b,0x7b,0x7b),(0x8b,0x8b,0x8b),(0x9b,0x9b,0x9b),(0xab,0xab,0xab), (0xbb,0xbb,0xbb),(0xcb,0xcb,0xcb),(0xdb,0xdb,0xdb),(0xeb,0xeb...
67.10828
73
0.622532
91bd0c9e7c3252f3ca4ed71b80974c913dcd2b6e
854
py
Python
clients/oathkeeper/python/test/test_upstream.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
clients/oathkeeper/python/test/test_upstream.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
clients/oathkeeper/python/test/test_upstream.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
""" ORY Oathkeeper ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. # noqa: E501 The version of the OpenAPI document: v0.38.19-beta.1 Contact: hi@ory.am Generated by: https://o...
23.081081
187
0.689696
91bd15d85aaf773ffc64f12d676ab608c4c77a04
38,373
py
Python
terrascript/data/hashicorp/alicloud.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/hashicorp/alicloud.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/hashicorp/alicloud.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/hashicorp/alicloud.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:11:35 UTC) import terrascript class alicloud_account(terrascript.Data): pass class alicloud_ack_service(terrascript.Data): pass class alicloud_actiontrail_trails(terrascript.Data): pass class alic...
19.851526
77
0.788393
91bd324d1b4486782c21df40b9915f3b18d6f03e
6,833
py
Python
tests/integration/states/archive.py
feth/salt
f4e610bb987d9529faca1f0ad1c339d3c4b3642b
[ "Apache-2.0" ]
null
null
null
tests/integration/states/archive.py
feth/salt
f4e610bb987d9529faca1f0ad1c339d3c4b3642b
[ "Apache-2.0" ]
1
2019-09-06T13:57:28.000Z
2019-09-06T13:57:28.000Z
tests/integration/states/archive.py
feth/salt
f4e610bb987d9529faca1f0ad1c339d3c4b3642b
[ "Apache-2.0" ]
1
2020-09-30T16:09:48.000Z
2020-09-30T16:09:48.000Z
# -*- coding: utf-8 -*- ''' Tests for the archive state ''' # Import python libs from __future__ import absolute_import import errno import logging import os import platform import socket import threading import tornado.ioloop import tornado.web # Import Salt Testing libs from salttesting import skipIf from salttestin...
33.009662
88
0.608517
91bd4c3ba57b7922bf81cc8aabe49421bfc269fc
246
py
Python
While And For Loops/index2.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
While And For Loops/index2.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
While And For Loops/index2.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
peoples = ["osama", "ahmed", "omer", "ali"] skills = ["HTML", "CSS", "JS", "PY", "SQL"] for person in peoples: # Outer Loop print(f"\n{person.capitalize()} skills is:") for skill in skills: # Inner Loop print(f"\n- {skill}")
20.5
48
0.565041
91bd6c9568bededdb904613aa45384d0266e8ccb
8,522
py
Python
fugue_duckdb/_io.py
LaurentErreca/fugue
73d551b4d25b50b3d9051dd765e6111db2e3fc76
[ "Apache-2.0" ]
null
null
null
fugue_duckdb/_io.py
LaurentErreca/fugue
73d551b4d25b50b3d9051dd765e6111db2e3fc76
[ "Apache-2.0" ]
null
null
null
fugue_duckdb/_io.py
LaurentErreca/fugue
73d551b4d25b50b3d9051dd765e6111db2e3fc76
[ "Apache-2.0" ]
null
null
null
import os from typing import Any, Iterable, List, Optional, Union from duckdb import DuckDBPyConnection from fugue._utils.io import FileParser, load_df, save_df from fugue.dataframe import ArrowDataFrame, LocalBoundedDataFrame from triad import ParamDict, Schema from triad.collections.fs import FileSystem from triad.u...
39.637209
87
0.53708
91bdbe911d5f5b743b9481d6779a4ab8f1c1122f
1,933
py
Python
examples/python_internal/example_step_export.py
MathemaTiger/tigl
dcc53d5dd1bfe7e403651c5dcd6e2eb2264f5182
[ "Apache-2.0" ]
1
2018-05-11T14:06:55.000Z
2018-05-11T14:06:55.000Z
examples/python_internal/example_step_export.py
MathemaTiger/tigl
dcc53d5dd1bfe7e403651c5dcd6e2eb2264f5182
[ "Apache-2.0" ]
null
null
null
examples/python_internal/example_step_export.py
MathemaTiger/tigl
dcc53d5dd1bfe7e403651c5dcd6e2eb2264f5182
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from tixi3 import tixi3wrapper from tigl3 import tigl3wrapper from tigl3.configuration import CCPACSConfigurationManager_get_instance from tigl3.boolean_ops import CFuseShapes from tigl3.exports import TriangulatedExportOptions, create_exporter as tigl_create_exporter import os ...
30.68254
92
0.735644
91bddcd6a37924335a4b1156506e495d7c0d5aef
12,192
py
Python
anti-spoof/train.py
hudmgy/insightface
2ebc87e1bde3d4ef04bc0d4498038a0bc01b0ddc
[ "MIT" ]
1
2019-08-05T00:54:27.000Z
2019-08-05T00:54:27.000Z
anti-spoof/train.py
hudmgy/insightface
2ebc87e1bde3d4ef04bc0d4498038a0bc01b0ddc
[ "MIT" ]
null
null
null
anti-spoof/train.py
hudmgy/insightface
2ebc87e1bde3d4ef04bc0d4498038a0bc01b0ddc
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import math import random import logging import sklearn import pickle import numpy as np import mxnet as mx from mxnet import ndarray as nd import argparse import mxnet.optimizer as optimiz...
39.329032
119
0.623524
91bde71613042364a4bb801bb457757fadc68021
443
py
Python
by-session/class-921/week3/abc.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
2
2015-04-29T20:59:35.000Z
2018-09-26T13:33:43.000Z
by-session/class-921/week3/abc.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
by-session/class-921/week3/abc.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
import turtle def circle(): while turtle.heading() < 359: turtle.forward(1) turtle.left(1) turtle.left(1) def poly(r, n): teta = 360.0 / n while n > 0: n = n - 1 turtle.forward(r) turtle.left(teta) def abc(): n = 6 while n > 0: n = n - 1 ...
13.424242
33
0.478555
91bdf0ccec292393e02d28e4b0a56d876ba54c34
1,168
py
Python
machin/parallel/exception.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
287
2020-06-13T05:19:50.000Z
2022-03-31T04:46:32.000Z
machin/parallel/exception.py
ikamensh/machin
af7b423c47bc1412530cf6c96c11bd3af9b3e239
[ "MIT" ]
19
2020-08-19T05:33:45.000Z
2022-03-27T15:16:03.000Z
machin/parallel/exception.py
ikamensh/machin
af7b423c47bc1412530cf6c96c11bd3af9b3e239
[ "MIT" ]
44
2020-07-06T00:41:44.000Z
2022-03-29T17:05:08.000Z
import traceback class RemoteTraceback(Exception): # pragma: no cover """ Remote traceback, rebuilt by ``_rebuild_exc`` from pickled original traceback ExceptionWithTraceback, should be thrown on the master side. """ def __init__(self, tb): self.tb = tb def __str__(self): ...
25.955556
71
0.60274
91be30370d44628aea5149aa1027e16489a0d887
7,453
py
Python
tests/test_serializer_unit.py
makinacorpus/flask-screamshot
cb1e1d9ea7f59a95776faea95c9bdab3f8b09ad7
[ "BSD-2-Clause" ]
null
null
null
tests/test_serializer_unit.py
makinacorpus/flask-screamshot
cb1e1d9ea7f59a95776faea95c9bdab3f8b09ad7
[ "BSD-2-Clause" ]
3
2019-05-03T15:17:29.000Z
2019-05-03T15:18:27.000Z
tests/test_serializer_unit.py
makinacorpus/flask-screamshot
cb1e1d9ea7f59a95776faea95c9bdab3f8b09ad7
[ "BSD-2-Clause" ]
null
null
null
from tempfile import _TemporaryFileWrapper from unittest import TestCase, mock from src.serializers import ScreenshotSerializer SCREAMSHOT_PARAMETERS = ['width', 'height', 'wait_until', 'credentials', 'selector', 'wait_for'] class TestSerializerUnit(TestCase): def test_parse_raw_data(self...
48.083871
104
0.664967
91be55756a4a7917513f35d3b42fdf1598463b15
11,152
py
Python
bluegraph/backends/neo4j/embed/embedders.py
BlueBrain/BlueGraph
7a7df9c97d01d7ebfa77cf911f187b18e2d6dc02
[ "Apache-2.0" ]
25
2021-04-09T09:57:10.000Z
2022-02-09T14:26:55.000Z
bluegraph/backends/neo4j/embed/embedders.py
BlueBrain/BlueGraph
7a7df9c97d01d7ebfa77cf911f187b18e2d6dc02
[ "Apache-2.0" ]
39
2021-04-09T08:23:28.000Z
2021-11-10T08:35:59.000Z
bluegraph/backends/neo4j/embed/embedders.py
BlueBrain/BlueGraph
7a7df9c97d01d7ebfa77cf911f187b18e2d6dc02
[ "Apache-2.0" ]
3
2021-07-30T19:00:24.000Z
2022-03-16T21:01:48.000Z
# BlueGraph: unifying Python framework for graph analytics and co-occurrence analysis. # Copyright 2020-2021 Blue Brain Project / EPFL # 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 a...
38.722222
108
0.579627
91be881f26ca1215f3f17f37d7c8e91b95635901
3,315
py
Python
src/auditlog_tests/models.py
nickmccullum/django-auditlog
88e32348807d53607ed9c632bd9fb040155cf49c
[ "MIT" ]
3
2018-03-19T07:21:08.000Z
2020-07-01T15:23:32.000Z
src/auditlog_tests/models.py
nickmccullum/django-auditlog
88e32348807d53607ed9c632bd9fb040155cf49c
[ "MIT" ]
null
null
null
src/auditlog_tests/models.py
nickmccullum/django-auditlog
88e32348807d53607ed9c632bd9fb040155cf49c
[ "MIT" ]
3
2019-01-24T14:02:43.000Z
2019-11-22T17:41:42.000Z
from django.db import models from auditlog.models import AuditlogHistoryField from auditlog.registry import auditlog @auditlog.register() class SimpleModel(models.Model): """ A simple model with no special things going on. """ text = models.TextField(blank=True) boolean = models.BooleanField(defa...
25.305344
79
0.711312
91be9bb3dc75c158a43059ef87cfe128c44d0e91
3,625
py
Python
packages/director-sdk/python/simcore_director_sdk/models/inline_response2001.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
packages/director-sdk/python/simcore_director_sdk/models/inline_response2001.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
packages/director-sdk/python/simcore_director_sdk/models/inline_response2001.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
# coding: utf-8 """ Director API This is the oSparc's director API # noqa: E501 OpenAPI spec version: 0.1.0 Contact: support@simcore.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class InlineResponse2001(object): """NOTE: This clas...
25.892857
90
0.555034
91beae9a493c2190335aa6ae8a514e06bae6b6e7
8,537
py
Python
tempest/api/volume/test_volumes_list.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/api/volume/test_volumes_list.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/api/volume/test_volumes_list.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # Copyright 2013 IBM Corp. # 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/LIC...
40.459716
78
0.64976
91beb6e5f6f9821747255d50a6145aa34074758b
14,351
py
Python
ambari-server/src/test/python/stacks/1.3.2/HDFS/test_namenode.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
5
2018-06-03T05:19:40.000Z
2021-04-16T17:10:49.000Z
ambari-server/src/test/python/stacks/1.3.2/HDFS/test_namenode.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/1.3.2/HDFS/test_namenode.py
wbear2/ambari
a1891193984da47015cd5483b5b95e040677d7df
[ "Apache-2.0" ]
6
2019-05-07T13:24:39.000Z
2021-02-15T14:12:37.000Z
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) 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")...
52.761029
196
0.476552
91beb754efe1296d53316ebbe595c6d6981b9cf9
3,753
py
Python
cms/signals.py
christianbertschy/django-cms-2.0
a98d035b47346b7f6924a807338be3af6566537f
[ "BSD-3-Clause" ]
1
2015-09-24T00:36:34.000Z
2015-09-24T00:36:34.000Z
cms/signals.py
christianbertschy/django-cms-2.0
a98d035b47346b7f6924a807338be3af6566537f
[ "BSD-3-Clause" ]
null
null
null
cms/signals.py
christianbertschy/django-cms-2.0
a98d035b47346b7f6924a807338be3af6566537f
[ "BSD-3-Clause" ]
null
null
null
from django.db.models import signals from cms import settings as cms_settings, appresolver from cms.models import signals as cms_signals, Page, Title from cms.models import CMSPlugin def update_plugin_positions(**kwargs): plugin = kwargs['instance'] plugins = CMSPlugin.objects.filter(page=plugi...
36.086538
135
0.688782
91bedd06304f59afdcca4b80e6724b06f9013233
1,427
py
Python
tests/unit-tests/common/test_translator.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
null
null
null
tests/unit-tests/common/test_translator.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
2
2020-08-08T22:03:17.000Z
2020-12-19T00:42:22.000Z
tests/unit-tests/common/test_translator.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ :copyright: Copyright 2016-2020 Sphinx Confluence Builder Contributors (AUTHORS) :license: BSD-2-Clause (LICENSE) """ from collections import namedtuple from sphinxcontrib.confluencebuilder.translator import ConfluenceBaseTranslator from tests.lib import prepareConfiguration from tests.lib ...
35.675
80
0.724597
91bf328292aaed3229bd15190f91faf7709a9dc0
1,130
py
Python
test/test_utils/test_next_version/test_next_version_tag.py
132nd-etcher/epab
5226d3a36580f8cc50cf5dcac426adb1350a2c9b
[ "MIT" ]
2
2018-12-13T06:49:10.000Z
2018-12-13T07:37:49.000Z
test/test_utils/test_next_version/test_next_version_tag.py
etcher-be/epab
5226d3a36580f8cc50cf5dcac426adb1350a2c9b
[ "MIT" ]
109
2018-08-22T04:25:56.000Z
2019-10-17T05:10:21.000Z
test/test_utils/test_next_version/test_next_version_tag.py
etcher-be/epab
5226d3a36580f8cc50cf5dcac426adb1350a2c9b
[ "MIT" ]
1
2018-02-25T05:53:18.000Z
2018-02-25T05:53:18.000Z
# coding=utf-8 import pytest from epab.utils import _next_version as nv def _check_types(tag: nv.Tag): assert isinstance(tag.calver, str) assert isinstance(tag.quantifier, int) assert isinstance(tag.branch, str) assert isinstance(tag.alpha_quantifier, int) def test_version_tag(): tag = nv.Tag('...
22.6
55
0.670796
91bf34bc055e5f39ae12122d90b72b7f9567144f
2,207
py
Python
Curriculum/Week_4/Lab_Solutions/4.1_Python_Lab_Solutions.py
linkedin/high-school-trainee
4492177a5c10793184b2ff0d2e111bc7f7c51bdd
[ "CC-BY-4.0" ]
17
2017-08-01T06:04:40.000Z
2021-05-25T04:43:33.000Z
Curriculum/Week_4/Lab_Solutions/4.1_Python_Lab_Solutions.py
Hackthings/high-school-trainee
4492177a5c10793184b2ff0d2e111bc7f7c51bdd
[ "CC-BY-4.0" ]
null
null
null
Curriculum/Week_4/Lab_Solutions/4.1_Python_Lab_Solutions.py
Hackthings/high-school-trainee
4492177a5c10793184b2ff0d2e111bc7f7c51bdd
[ "CC-BY-4.0" ]
7
2017-09-24T08:11:24.000Z
2020-12-11T12:50:40.000Z
import json """ Construct a dictionary that maps time to words! For this lab, we will only be considering times ending in 00, 10, 15, 30, or 45. For any other time inputs, output 'unknown'. Examples Time: '1:00' Output: 'one ' Time: '2:10' Output: 'two ten' Time: '3:15' Output: 'three fifteen' Time: '4:30' ...
39.410714
140
0.675125
91bf4904ebf8e62c76019849b78c94b094d61498
1,656
py
Python
usaspending_api/common/models.py
animatecitizen/usaspending-api
556511ff51fe80a8be8361daa5876fd684a04efe
[ "CC0-1.0" ]
null
null
null
usaspending_api/common/models.py
animatecitizen/usaspending-api
556511ff51fe80a8be8361daa5876fd684a04efe
[ "CC0-1.0" ]
1
2021-11-15T17:54:12.000Z
2021-11-15T17:54:12.000Z
usaspending_api/common/models.py
mikepsinn/usaspending-api
ef61e13c286eb51949e16b760fa7516255b2bfd3
[ "CC0-1.0" ]
null
null
null
from django.db import models # This is an abstract model that should be the foundation for any model that requires data source tracking - history # tracking will then be added to this and it will cascade down to appropriate classes class DataSourceTrackedModel(models.Model): DATASOURCES = ( ('USA', 'USAsp...
31.245283
119
0.669082
91bf5c72e858efdc5cca330a4b62fbd4200feffa
709
py
Python
bots/kamikazebot.py
jimmahoney/tron-engine
49d2e15a2fde6b838069045a4abd8857ab0507a0
[ "BSD-2-Clause" ]
1
2016-02-13T00:12:41.000Z
2016-02-13T00:12:41.000Z
bots/kamikazebot.py
jimmahoney/tron-engine
49d2e15a2fde6b838069045a4abd8857ab0507a0
[ "BSD-2-Clause" ]
null
null
null
bots/kamikazebot.py
jimmahoney/tron-engine
49d2e15a2fde6b838069045a4abd8857ab0507a0
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ kamikazebot.py Runs at the enemy bot. Everest Witman 2014 Programming Workshop """ import math, tron def distance(one, two): # Finds the distance between two points y1, x1 = one y2, x2 = two distance = math.sqrt((y2 - y1)**2+(x2 - x1)**2) return distance de...
19.162162
98
0.630465
91bf6c311b0964e61fb972446e9765be31fa0b99
19,760
py
Python
uzerp/scripts/djangosettings.py
uzerpllp/uzerp-dev-cli
dcb5fed6ba1dd7f3f6b1739143a155c83ea894a3
[ "MIT" ]
null
null
null
uzerp/scripts/djangosettings.py
uzerpllp/uzerp-dev-cli
dcb5fed6ba1dd7f3f6b1739143a155c83ea894a3
[ "MIT" ]
null
null
null
uzerp/scripts/djangosettings.py
uzerpllp/uzerp-dev-cli
dcb5fed6ba1dd7f3f6b1739143a155c83ea894a3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2015 by frePPLe bvba # # This library 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, or # (at your option) any later vers...
37.283019
110
0.614119
91bf742338eb3d2dfb3cb774180c84142730d201
22,315
py
Python
ikibardin/power-fist-segmentation/power_fist/models/segmentation/selim_zoo/senet.py
SpaceNetChallenge/SpaceNet_Optimized_Routing_Solutions
3fbc215de6b05904a5b54b2c7cde7e61074ae38d
[ "Apache-2.0" ]
27
2020-03-04T05:54:48.000Z
2022-01-05T07:07:44.000Z
ikibardin/power-fist-segmentation/power_fist/models/segmentation/selim_zoo/senet.py
CosmiQ/SpaceNet_Optimized_Routing_Solutions
3fbc215de6b05904a5b54b2c7cde7e61074ae38d
[ "Apache-2.0" ]
1
2020-07-14T10:35:50.000Z
2020-07-14T10:35:50.000Z
ikibardin/power-fist-segmentation/power_fist/models/segmentation/selim_zoo/senet.py
SpaceNetChallenge/SpaceNet_Optimized_Routing_Solutions
3fbc215de6b05904a5b54b2c7cde7e61074ae38d
[ "Apache-2.0" ]
7
2020-03-07T21:42:57.000Z
2022-01-07T10:49:50.000Z
""" ResNet code gently borrowed from https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py """ from collections import OrderedDict import math import torch import torch.nn as nn # from sync_batchnorm import SynchronizedBatchNorm2d as BatchNorm2d from torch.nn import BatchNorm2d __all__ = [ ...
31.697443
106
0.556307
91bf7a64ccdb8c7354f4074340a747fe31d07dec
9,938
py
Python
phys_sim/objects.py
JerryLingjieMei/ADEPT-Dataset-Release
900d9d5c7e780a5daa06f0484d91539a4ca92ff8
[ "MIT" ]
14
2019-11-06T23:13:35.000Z
2021-02-04T17:28:31.000Z
phys_sim/objects.py
JerryLingjieMei/ADEPT-Dataset-Release
900d9d5c7e780a5daa06f0484d91539a4ca92ff8
[ "MIT" ]
null
null
null
phys_sim/objects.py
JerryLingjieMei/ADEPT-Dataset-Release
900d9d5c7e780a5daa06f0484d91539a4ca92ff8
[ "MIT" ]
5
2019-12-05T02:34:40.000Z
2020-10-14T02:33:32.000Z
import pybullet as p import re import os from phys_sim.convert_pattern import * from utils.constants import OCCLUDER_HALF_WIDTH from utils.shape_net import SHAPE_DIMENSIONS class ObjectManager(object): def __init__(self, config, obj_dir, num_steps): self.obj_dir = obj_dir self.config = config ...
47.550239
117
0.601228
91bf7aecd3709b5a6a3c48f84ea44ac2b035f6b0
4,269
py
Python
utils/feat_map_filter_processing.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
utils/feat_map_filter_processing.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
utils/feat_map_filter_processing.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
import numpy as np import tensorflow as tf def feat_map_filter_processing(pred, ref=None, norm=None, activation='ReLu', filter=None, threshold=None, verbose=False): """ Post processing of the feature maps :param pred: :param ref: :param norm: :param activation: :param filter: :param v...
34.991803
121
0.598267
91bf863c5433a826c2f49852151d5b60cc88edcc
50,037
py
Python
CadVlan/Vlan/views.py
marcusgc/GloboNetworkAPI-WebUI
1172f14028f9c116d71df7489eda770446b131d2
[ "Apache-2.0" ]
null
null
null
CadVlan/Vlan/views.py
marcusgc/GloboNetworkAPI-WebUI
1172f14028f9c116d71df7489eda770446b131d2
[ "Apache-2.0" ]
null
null
null
CadVlan/Vlan/views.py
marcusgc/GloboNetworkAPI-WebUI
1172f14028f9c116d71df7489eda770446b131d2
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Licensed to the Apache Software Foundation (ASF) 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 "Lice...
38.9393
195
0.583768
91bfaec177ffcd8532eec84da6c97bff714d358a
1,197
py
Python
instructors/course-2015/environment_and_requests/examples/requests_attributes.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
46
2017-09-27T20:19:36.000Z
2020-12-08T10:07:19.000Z
instructors/course-2015/environment_and_requests/examples/requests_attributes.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
6
2018-01-09T08:07:37.000Z
2020-09-07T12:25:13.000Z
instructors/course-2015/environment_and_requests/examples/requests_attributes.py
mgadagin/PythonClass
70b370362d75720b3fb0e1d6cc8158f9445e9708
[ "MIT" ]
18
2017-10-10T02:06:51.000Z
2019-12-01T10:18:13.000Z
import requests from pprint import pprint as pp #text based site with content on computer and programming topics req = requests.get("http://slashdot.org/") #pp(dir(req)) #pp(dir(req.text)) #pp(req.text.split()) #print req.close #print req.close() #print req.connection #print req.content #print req.cookies #pr...
17.1
74
0.7335
91c000f0431424dafbe4f27d991e8de0dc741b0c
41,906
py
Python
c++/scripts/internal/projects/ToolkitWrappers/post_build/unix/build_unix_wrappers.py
OpenHero/gblastn
a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8
[ "MIT" ]
31
2016-12-09T04:56:59.000Z
2021-12-31T17:19:10.000Z
c++/scripts/internal/projects/ToolkitWrappers/post_build/unix/build_unix_wrappers.py
OpenHero/gblastn
a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8
[ "MIT" ]
6
2017-03-10T17:25:13.000Z
2021-09-22T15:49:49.000Z
c++/scripts/internal/projects/ToolkitWrappers/post_build/unix/build_unix_wrappers.py
OpenHero/gblastn
a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8
[ "MIT" ]
20
2015-01-04T02:15:17.000Z
2021-12-03T02:31:43.000Z
#!/usr/bin/env python # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redis...
38.096364
105
0.581349
91c0601c88de565cbfaf940f6152c51fc4a82e55
2,226
py
Python
tests/platonpm/integration/test_escrow_manifest.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
tests/platonpm/integration/test_escrow_manifest.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
tests/platonpm/integration/test_escrow_manifest.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
import pytest from platon_utils import ( to_canonical_address, ) from platonpm import ( Package, ) from platonpm.exceptions import ( BytecodeLinkingError, ) from platonpm.tools import ( get_platonpm_spec_manifest, ) import platon def test_deployed_escrow_and_safe_send(escrow_manifest, w3): # Dep...
36.491803
80
0.774933
91c06f7a19f3468f9d7c664b447ab617d35b3ee8
1,356
py
Python
src/oscar/apps/shipping/scales.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/shipping/scales.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
5
2021-05-28T19:38:28.000Z
2022-03-12T00:45:39.000Z
src/oscar/apps/shipping/scales.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
null
null
null
from decimal import Decimal as D from django.core.exceptions import ObjectDoesNotExist class Scale(object): """ For calculating the weight of a product or basket """ def __init__(self, attribute_code='weight', default_weight=None): self.attribute = attribute_code self.defau...
33.073171
71
0.567109
91c084279dbbb5b87c016c9fdc58c1fceff3a005
29,838
py
Python
OldArchitecture/v2.0_16bitData_32bitAddress/notRelatedButSaveState/vm2asm.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
OldArchitecture/v2.0_16bitData_32bitAddress/notRelatedButSaveState/vm2asm.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
OldArchitecture/v2.0_16bitData_32bitAddress/notRelatedButSaveState/vm2asm.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
# ======================================================================================== # # Description: # # Compiles Hack VM (virtual machine) code to Hack ASM (assembly) code # # Attribution: # # Code by www.jk-quantized.com # # Design is based on: # # Lecture notes from the Nand To Tetris cou...
20.065905
154
0.551377