hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
15c14148399646733c5e58c83719b3d8f14d8f51
2,082
py
Python
models/model_loader.py
mayu95/pytorch-gve-lrcn
25f0b2835db669d05663b6c67a4e9775acc97ef4
[ "MIT" ]
1
2020-10-17T13:20:27.000Z
2020-10-17T13:20:27.000Z
models/model_loader.py
mayu95/pytorch-gve-lrcn
25f0b2835db669d05663b6c67a4e9775acc97ef4
[ "MIT" ]
null
null
null
models/model_loader.py
mayu95/pytorch-gve-lrcn
25f0b2835db669d05663b6c67a4e9775acc97ef4
[ "MIT" ]
null
null
null
import torch from .lrcn import LRCN from .gve import GVE from .sentence_classifier import SentenceClassifier class ModelLoader: def __init__(self, args, dataset): self.args = args self.dataset = dataset def lrcn(self): # LRCN arguments pretrained_model = self.args.pretrained_m...
29.742857
80
0.646494
a7a96fd7346f2eb9ad0ebcc6fab76ba1fbd585c4
6,065
py
Python
app/views/auth.py
Akeru/ACI-EnhancedEndpointTracker
498bc4c07604b27a57f82cde12967eaa9117b5bc
[ "MIT" ]
null
null
null
app/views/auth.py
Akeru/ACI-EnhancedEndpointTracker
498bc4c07604b27a57f82cde12967eaa9117b5bc
[ "MIT" ]
null
null
null
app/views/auth.py
Akeru/ACI-EnhancedEndpointTracker
498bc4c07604b27a57f82cde12967eaa9117b5bc
[ "MIT" ]
null
null
null
from flask import current_app, Blueprint, render_template auth_prefix = "/auth" auth = Blueprint("auth", __name__, url_prefix=auth_prefix) from flask import Flask, jsonify, flash, redirect, url_for from flask import request, make_response, g, url_for, abort, session from flask_login import (LoginManager, login_requir...
35.261628
78
0.621105
f1ff57ba4556946e2be66615376e7a9ebdfb904e
920
py
Python
neuralNetwork.py
higorcamporez/RoboMus_Server2
f7cc5fe832085f66f26bc5fad146e8896bcc20f9
[ "Apache-2.0" ]
null
null
null
neuralNetwork.py
higorcamporez/RoboMus_Server2
f7cc5fe832085f66f26bc5fad146e8896bcc20f9
[ "Apache-2.0" ]
null
null
null
neuralNetwork.py
higorcamporez/RoboMus_Server2
f7cc5fe832085f66f26bc5fad146e8896bcc20f9
[ "Apache-2.0" ]
null
null
null
import keras import sys import numpy as np from keras.models import load_model import keras.losses from keras import backend as K import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' def getMaxValues(name): file = open(name+"_max_values.txt", "r") max_x = file.readline() max_y = file.readline() return ...
24.864865
87
0.670652
870d17a299ee198348940856d3a4a964f80857b6
2,892
py
Python
tests/actions/_optimizer.py
zduey/shap
1bb8203f2d43f7552396a5f26167a258cbdc505c
[ "MIT" ]
16,097
2016-12-01T20:01:26.000Z
2022-03-31T20:27:40.000Z
tests/actions/_optimizer.py
zduey/shap
1bb8203f2d43f7552396a5f26167a258cbdc505c
[ "MIT" ]
2,217
2017-09-18T20:06:45.000Z
2022-03-31T21:00:25.000Z
tests/actions/_optimizer.py
zduey/shap
1bb8203f2d43f7552396a5f26167a258cbdc505c
[ "MIT" ]
2,634
2017-06-29T21:30:46.000Z
2022-03-30T07:30:36.000Z
""" Unit tests for the Exact explainer. """ # pylint: disable=missing-function-docstring import numpy as np import pandas as pd import pytest import shap def create_basic_scenario(): X = pd.DataFrame({"feature1": np.ones(5), "feature2": np.ones(5), "feature3": np.ones(5)}) class IncreaseFeature1(shap.action...
28.352941
94
0.628285
7b693528725146e4969215222e3a497287b2ac6f
23,859
py
Python
Community Samples/Python2/SendOMFDataToPISystem_fromPhidgetsIRTempSensor.py
mschellenger96/OMF-Samples
7eb3c5be77e66f4360227dc14def28f688037873
[ "Apache-2.0" ]
null
null
null
Community Samples/Python2/SendOMFDataToPISystem_fromPhidgetsIRTempSensor.py
mschellenger96/OMF-Samples
7eb3c5be77e66f4360227dc14def28f688037873
[ "Apache-2.0" ]
null
null
null
Community Samples/Python2/SendOMFDataToPISystem_fromPhidgetsIRTempSensor.py
mschellenger96/OMF-Samples
7eb3c5be77e66f4360227dc14def28f688037873
[ "Apache-2.0" ]
null
null
null
#Copyright 2018 OSIsoft, LLC # #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at # #<http://www.apache.org/licenses/LICENSE-2.0> # #Unless required by applicable law or agreed to in writing, softwar...
44.679775
193
0.583092
308c073b21961d6c57fcb4452799d4593d61ab6c
510
py
Python
zookeeper/kazoo-os.py
li-ma/homework
d75b1752a02bd028af0806683abe079c7b0a9b29
[ "Apache-2.0" ]
null
null
null
zookeeper/kazoo-os.py
li-ma/homework
d75b1752a02bd028af0806683abe079c7b0a9b29
[ "Apache-2.0" ]
null
null
null
zookeeper/kazoo-os.py
li-ma/homework
d75b1752a02bd028af0806683abe079c7b0a9b29
[ "Apache-2.0" ]
null
null
null
import kazoo from kazoo.client import KazooClient from kazoo.handlers.eventlet import SequentialEventletHandler from kazoo.retry import KazooRetry _handler = SequentialEventletHandler() _retry = KazooRetry(max_tries=3, delay=0.5, backoff=2, sleep_func=_handler.sleep_func) client = KazooClient(hosts...
26.842105
61
0.680392
91f6c5d788d0ab945c8df3a505e88889f301e574
16,108
py
Python
pandas/_version.py
saurav2608/pandas
b90f9db6d23f64b0ce9ff469445e1c31013a07c0
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-04-07T13:56:06.000Z
2021-04-12T13:45:23.000Z
pandas/_version.py
saurav2608/pandas
b90f9db6d23f64b0ce9ff469445e1c31013a07c0
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/_version.py
saurav2608/pandas
b90f9db6d23f64b0ce9ff469445e1c31013a07c0
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains th...
34.790497
79
0.590576
ef205f4b979c06b57829ef1caf6e9b483a15f0a8
9,821
py
Python
smrt/match_ccs.py
CellLineage/SLOTH
b9c81b10af522b648b2d230c027cb0712b57c123
[ "MIT" ]
5
2019-03-12T03:50:39.000Z
2021-12-17T07:00:57.000Z
smrt/match_ccs.py
shadowdeng1994/SLOTH
a996163d8cde7e31766264e1f1e0d32f47e93666
[ "MIT" ]
null
null
null
smrt/match_ccs.py
shadowdeng1994/SLOTH
a996163d8cde7e31766264e1f1e0d32f47e93666
[ "MIT" ]
2
2021-03-24T17:05:59.000Z
2021-12-14T13:28:11.000Z
#!/usr/bin/env python3 """match sequence with sample barcode and UMI index. - update in 2018-08-06: support reverse complement - method one step match - pattern # 454UPR-(UMI)-3kF-(sequence)-3kR-(sampleBarcode) """ import logging import multiprocessing as mp import os import sys import pysam import ...
33.291525
221
0.631504
0684c91b3a5746c48b6c6ffd9423ab5a2f9e5e1e
1,171
py
Python
ALREC_Method/rene/dataset_defines.py
proy3/Abnormal_Trajectory_Classifier
a6b27c6847262e9703a0f3404c85c135415c1d4c
[ "MIT" ]
6
2019-10-29T03:05:14.000Z
2022-03-18T05:14:25.000Z
ALREC_Method/rene/dataset_defines.py
proy3/Abnormal_Trajectory_Classifier
a6b27c6847262e9703a0f3404c85c135415c1d4c
[ "MIT" ]
1
2022-03-11T03:49:34.000Z
2022-03-11T03:49:34.000Z
ALREC_Method/rene/dataset_defines.py
proy3/Abnormal_Trajectory_Classifier
a6b27c6847262e9703a0f3404c85c135415c1d4c
[ "MIT" ]
1
2021-12-15T09:21:26.000Z
2021-12-15T09:21:26.000Z
""" This script contains some global variables that are used throughout this specific dataset. """ # Dataset file names raw_input_file_all = '/home/travail/datasets/urban_tracker/rene/rene_annotations/rene_gt.sqlite' input_raw_image_frame_path = '/home/travail/datasets/urban_tracker/rene/rene_frames/' raw_input_file_p...
50.913043
112
0.826644
5305e0ba3b901fe7ac4144e292bafc7091455923
29,369
py
Python
src/models/sequence/ss/kernel.py
tarepan/state-spaces
3427a1f12a29ad8ccebaa8ee105f62f7f8a3d891
[ "Apache-2.0" ]
null
null
null
src/models/sequence/ss/kernel.py
tarepan/state-spaces
3427a1f12a29ad8ccebaa8ee105f62f7f8a3d891
[ "Apache-2.0" ]
null
null
null
src/models/sequence/ss/kernel.py
tarepan/state-spaces
3427a1f12a29ad8ccebaa8ee105f62f7f8a3d891
[ "Apache-2.0" ]
1
2022-01-27T17:13:26.000Z
2022-01-27T17:13:26.000Z
""" Core S3 convolution kernel implementing the 'normal plus low-rank' algorithm. The main module is SSKernelNPLR, which stores parameters A, B, C, dt, and calling it creates the SSM convolution kernel bar{K}. A much simpler version SSKernelSlow is included for illustration purposes: it has the same output, but uses ...
33.335982
262
0.512922
ee7f48e33deaa659bb7261b622350178975e637f
933
py
Python
ngb36utils.py
calmetree/NgToolset
b7db73ba0a2309085b87b0859f9b5448e56ea931
[ "BSD-3-Clause" ]
null
null
null
ngb36utils.py
calmetree/NgToolset
b7db73ba0a2309085b87b0859f9b5448e56ea931
[ "BSD-3-Clause" ]
null
null
null
ngb36utils.py
calmetree/NgToolset
b7db73ba0a2309085b87b0859f9b5448e56ea931
[ "BSD-3-Clause" ]
1
2020-01-09T06:57:49.000Z
2020-01-09T06:57:49.000Z
#!/usr/bin/python3 # -*- encoding: utf-8 -*- ''' File: ngb36utils.py Description: Implementation of time/frequency encoding in base36. Change History: 2018-1-30 v0.1 created. github/zhenggao2 ''' from numpy import base_repr def time2str36(hsfn, sfn, slot, symb): #HSFN, range 0~1023, two base3...
26.657143
79
0.646302
c94cde12db775192a62ea8be2d82947df442562f
1,440
py
Python
marqeta/response_models/digital_wallet_apple_pay_provision_response.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/digital_wallet_apple_pay_provision_response.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/digital_wallet_apple_pay_provision_response.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models import datetime_object import json import re class DigitalWalletApplePayProvisionResponse(object): def __init__(self, json_response): self.json_response = json_response def __str__(self): return json.dumps(self.json_response, de...
27.169811
143
0.715278
5b9a5cb45b5f9ede616b6a798a571276821c1884
2,178
py
Python
tfx/orchestration/kubeflow/kubeflow_metadata_adapter.py
stjordanis/tfx
4749388de03230361f2b7b733a657b3bc18b4152
[ "Apache-2.0" ]
1,813
2019-02-04T17:17:30.000Z
2022-03-29T13:39:30.000Z
tfx/orchestration/kubeflow/kubeflow_metadata_adapter.py
stjordanis/tfx
4749388de03230361f2b7b733a657b3bc18b4152
[ "Apache-2.0" ]
2,710
2019-02-14T00:41:00.000Z
2022-03-31T07:23:00.000Z
tfx/orchestration/kubeflow/kubeflow_metadata_adapter.py
stjordanis/tfx
4749388de03230361f2b7b733a657b3bc18b4152
[ "Apache-2.0" ]
731
2019-02-04T17:59:18.000Z
2022-03-31T06:45:51.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.210526
78
0.74472
2abcb1cf28c8d52aa7b907566693b12ad1677671
2,566
py
Python
netfields/forms.py
jaychoo/django-postgresql-netfields
5d29fbe480f0c039d54472d406f14d08422cb91a
[ "BSD-3-Clause" ]
null
null
null
netfields/forms.py
jaychoo/django-postgresql-netfields
5d29fbe480f0c039d54472d406f14d08422cb91a
[ "BSD-3-Clause" ]
null
null
null
netfields/forms.py
jaychoo/django-postgresql-netfields
5d29fbe480f0c039d54472d406f14d08422cb91a
[ "BSD-3-Clause" ]
null
null
null
from ipaddress import ip_interface, ip_network, _IPAddressBase, _BaseNetwork from netaddr import EUI, AddrFormatError from django import forms from django.utils.six import text_type from django.core.exceptions import ValidationError from netfields.mac import mac_unix_common class InetAddressFormField(forms.Field): ...
27.591398
76
0.631333
a7e598556478fb732ecaf99db038592d7e980c79
130
py
Python
utils/__init__.py
Jokoe66/Ultra-Fast-Lane-Detection
b857e41d3026f1cdb70354c4267f42053a145f90
[ "MIT" ]
null
null
null
utils/__init__.py
Jokoe66/Ultra-Fast-Lane-Detection
b857e41d3026f1cdb70354c4267f42053a145f90
[ "MIT" ]
null
null
null
utils/__init__.py
Jokoe66/Ultra-Fast-Lane-Detection
b857e41d3026f1cdb70354c4267f42053a145f90
[ "MIT" ]
null
null
null
from . import common from . import config from . import dist_utils from . import factory from . import loss from . import metrics
18.571429
24
0.769231
494a26206f062563bcf3cd616d59ef386e1882c5
235
py
Python
promsnaps/api/config.py
ant31/prombench
8f676e2654a7477e2bf0b39930fd599f75828612
[ "Apache-2.0" ]
null
null
null
promsnaps/api/config.py
ant31/prombench
8f676e2654a7477e2bf0b39930fd599f75828612
[ "Apache-2.0" ]
null
null
null
promsnaps/api/config.py
ant31/prombench
8f676e2654a7477e2bf0b39930fd599f75828612
[ "Apache-2.0" ]
null
null
null
class Config(object): """ Default configuration """ DEBUG = False class ProductionConfig(Config): """ Production configuration """ class DevelopmentConfig(Config): """ Development configuration """ DEBUG = True
18.076923
37
0.67234
cb47a8c645e0c13e626de4bd4113516926740ead
446
py
Python
data/scripts/templates/object/mobile/shared_dressed_quest_liar_01.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/mobile/shared_dressed_quest_liar_01.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/mobile/shared_dressed_quest_liar_01.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Creature() result.template = "object/mobile/shared_dressed_quest_liar_01.iff" result.attribute_template_id = 9 r...
26.235294
67
0.730942
be489dae87860227d6c5e0cc2d9a934dfede4db0
504
py
Python
03Thread/day01/basic03.py
HaoZhang95/PythonAndMachineLearning
b897224b8a0e6a5734f408df8c24846a98c553bf
[ "MIT" ]
937
2019-05-08T08:46:25.000Z
2022-03-31T12:56:07.000Z
03Thread/day01/basic03.py
Sakura-gh/Python24
b97e18867264a0647d5645c7d757a0040e755577
[ "MIT" ]
47
2019-09-17T10:06:02.000Z
2022-03-11T23:46:52.000Z
03Thread/day01/basic03.py
Sakura-gh/Python24
b97e18867264a0647d5645c7d757a0040e755577
[ "MIT" ]
354
2019-05-10T02:15:26.000Z
2022-03-30T05:52:57.000Z
""" 创建线程的第二个方式:自定义的thread 多个子线程的执行顺序是乱序的,不是固定的 1- 一个任务创建出来:就绪状态 2- cpu分配时间段: 运行状态 3- 运行的代码中调用recv,join等方法时: 从运行状态 -> 阻塞状态 4- recv,join等执行完成满足要求后就会变成就绪状态, 一个轮回三角关系 """ import threading import time class MyThread(threading.Thread): def run(self): for i in range(3): prin...
17.37931
44
0.597222
638fc6a72c8354ec3227a7b23120bfc848910848
11,282
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_training_client.py
zfoster/azure-sdk-for-python
0160912a4dd0f027a533d33f91f1a73afea41034
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_training_client.py
zfoster/azure-sdk-for-python
0160912a4dd0f027a533d33f91f1a73afea41034
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_training_client.py
zfoster/azure-sdk-for-python
0160912a4dd0f027a533d33f91f1a73afea41034
[ "MIT" ]
null
null
null
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ # pylint: disable=protected-access from typing import ( Optional, Any, Iterable, Union, TYPE_CHECKING, ) from azure.core.tracing.dec...
42.254682
117
0.655292
cc859c0339f81f72674d2f1184af6ba72caaa4cc
15,875
py
Python
platform/windows/detect.py
JayFontenot/godot
20edf69f96160fcf7c0ea2449f4daf50f572ce99
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
1
2020-03-29T09:43:03.000Z
2020-03-29T09:43:03.000Z
platform/windows/detect.py
JayFontenot/godot
20edf69f96160fcf7c0ea2449f4daf50f572ce99
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
3
2020-04-12T03:48:43.000Z
2020-04-12T05:26:17.000Z
platform/windows/detect.py
JayFontenot/godot
20edf69f96160fcf7c0ea2449f4daf50f572ce99
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
1
2021-12-09T11:39:26.000Z
2021-12-09T11:39:26.000Z
import methods import os # To match other platforms STACK_SIZE = 8388608 def is_active(): return True def get_name(): return "Windows" def can_build(): if (os.name == "nt"): # Building natively on Windows # If VCINSTALLDIR is set in the OS environ, use traditional Godot logic to set u...
38.345411
330
0.601071
7660715d7788b4e8bbdb76d5aab5714cadab6954
143
py
Python
cv/__init__.py
mikebader/django-cv
9c0150e9299042f4e908b720cf3f3cd8f133050b
[ "BSD-3-Clause" ]
3
2018-09-22T05:32:26.000Z
2019-10-18T01:34:06.000Z
cv/__init__.py
mikebader/django-cv
9c0150e9299042f4e908b720cf3f3cd8f133050b
[ "BSD-3-Clause" ]
3
2020-08-02T19:34:31.000Z
2022-01-25T03:00:53.000Z
cv/__init__.py
mikebader/django-cv
9c0150e9299042f4e908b720cf3f3cd8f133050b
[ "BSD-3-Clause" ]
null
null
null
""" django-cv: a CV generator that can be used with the Django web framework. """ name = 'django-cv' default_app_config = 'cv.apps.CvConfig'
17.875
73
0.713287
2914044fae6322b68ee8de7bc61549fe07255a74
5,944
py
Python
test_algebraic.py
Cientifique/abstract_algebra
31b5b952a2a2c521c90ce08d7ab56cc0f3879f3a
[ "Apache-2.0" ]
null
null
null
test_algebraic.py
Cientifique/abstract_algebra
31b5b952a2a2c521c90ce08d7ab56cc0f3879f3a
[ "Apache-2.0" ]
null
null
null
test_algebraic.py
Cientifique/abstract_algebra
31b5b952a2a2c521c90ce08d7ab56cc0f3879f3a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ """ # ============================================================================= from concrete_algebraic import Integer, PolyOverZ, PolyOverQ, Rational, \ makeZpX, makeZp from polynomials_over_Zp import make_poly_ring #generates random polynomials for testin...
27.391705
83
0.487887
0ed752d6270a03a51f944e262cc2252c8b6270be
6,128
py
Python
nets/mobilenetv2.py
LJjia/deeplabv3-plus-pytorch
158a2643e3faa41bdcc9d148948fdebfc5013ae4
[ "MIT" ]
null
null
null
nets/mobilenetv2.py
LJjia/deeplabv3-plus-pytorch
158a2643e3faa41bdcc9d148948fdebfc5013ae4
[ "MIT" ]
null
null
null
nets/mobilenetv2.py
LJjia/deeplabv3-plus-pytorch
158a2643e3faa41bdcc9d148948fdebfc5013ae4
[ "MIT" ]
null
null
null
import math import os import torch import torch.nn as nn import torch.utils.model_zoo as model_zoo BatchNorm2d = nn.BatchNorm2d def conv_bn(inp, oup, stride): return nn.Sequential( nn.Conv2d(inp, oup, 3, stride, 1, bias=False), BatchNorm2d(oup), nn.ReLU6(inplace=True) ) ...
37.595092
155
0.489883
526c859b36d21957ba054f26d64018474d197668
638
py
Python
visualization/img_to_video.py
wangxiyang2022/DeepFusionMOT
89059c37208bc2c135131d9f600566c3d76b35f2
[ "MIT" ]
41
2022-02-18T01:12:09.000Z
2022-03-31T16:23:53.000Z
visualization/img_to_video.py
wangxiyang2022/DeepFusionMOT
89059c37208bc2c135131d9f600566c3d76b35f2
[ "MIT" ]
3
2022-02-28T09:11:18.000Z
2022-03-22T02:39:38.000Z
visualization/img_to_video.py
wangxiyang2022/DeepFusionMOT
89059c37208bc2c135131d9f600566c3d76b35f2
[ "MIT" ]
6
2022-02-28T09:50:53.000Z
2022-03-09T01:34:34.000Z
# -*-coding:utf-8-* # author: wangxy import cv2 ''' This code is converting images to video. ''' # Write your folder path here,example:/home/youname/data/img/ # Note that the last folder should have a / img_root = '../results/pointrcnn_Car_val/image/' video_save_path = 'tracking_video.avi' fps = 24 fourcc = cv2.Video...
30.380952
113
0.738245
7ef34ffa11bde64c40ef7efc5d74821791cf7ccb
7,035
py
Python
objectModel/Python/tests/cdm/projection/test_projection_array.py
jocubeit/CDM
040ba0eaaadde216bab0bf165e330f40c3b3d089
[ "CC-BY-4.0", "MIT" ]
265
2018-03-04T04:47:50.000Z
2019-05-06T13:31:18.000Z
objectModel/Python/tests/cdm/projection/test_projection_array.py
jocubeit/CDM
040ba0eaaadde216bab0bf165e330f40c3b3d089
[ "CC-BY-4.0", "MIT" ]
39
2018-03-21T16:57:12.000Z
2019-05-06T17:30:23.000Z
objectModel/Python/tests/cdm/projection/test_projection_array.py
jocubeit/CDM
040ba0eaaadde216bab0bf165e330f40c3b3d089
[ "CC-BY-4.0", "MIT" ]
75
2018-03-09T20:33:13.000Z
2019-05-05T06:55:43.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. import os import unittest from cdm.objectmodel import CdmCorpusDefinition, CdmEntityDefinition from tests.common import async_test from tests.utilities.projection_...
65.138889
160
0.735608
c2eb27325a85c0d4ddb63e8e8cf1f18646e25d95
7,748
py
Python
API v1/python/path.py
FarrantAlex/CloudRF-API-clients
8e42e8a0325887f6f1aa91395a3f4b9d4cb2c9c2
[ "MIT" ]
null
null
null
API v1/python/path.py
FarrantAlex/CloudRF-API-clients
8e42e8a0325887f6f1aa91395a3f4b9d4cb2c9c2
[ "MIT" ]
null
null
null
API v1/python/path.py
FarrantAlex/CloudRF-API-clients
8e42e8a0325887f6f1aa91395a3f4b9d4cb2c9c2
[ "MIT" ]
null
null
null
"""Demonstrates Path CloudRF API.""" import argparse import configparser import csv import os import textwrap from pathlib import Path from cloudrf import CloudRFAPI # TODO: Deal with html / url class CloudRFPath(CloudRFAPI): """Path API class""" endpoint = '/API/path/' api_id = 'path' file_types = ...
40.145078
120
0.596541
c2c27f07d341e0e9f8af029bdf03996b5c31e60c
13,123
py
Python
firmware_flash/models.py
zacharybussey/fermentrack
0c23413e7f91b91ce01aef7355cae39b130cb462
[ "MIT" ]
null
null
null
firmware_flash/models.py
zacharybussey/fermentrack
0c23413e7f91b91ce01aef7355cae39b130cb462
[ "MIT" ]
null
null
null
firmware_flash/models.py
zacharybussey/fermentrack
0c23413e7f91b91ce01aef7355cae39b130cb462
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.core.validators import MinValueValidator, MaxValueValidator from django.utils import timezone import os.path import requests import logging from . import fhash from constance import config try: from fermentrack_django import setti...
39.173134
121
0.612512
e9b37e854a2891e5b148d5890a50960c2402743f
10,137
py
Python
server.py
soykilian/ExamScanner
b0df506130913f67d8070457fee36edba2edd95a
[ "MIT" ]
null
null
null
server.py
soykilian/ExamScanner
b0df506130913f67d8070457fee36edba2edd95a
[ "MIT" ]
null
null
null
server.py
soykilian/ExamScanner
b0df506130913f67d8070457fee36edba2edd95a
[ "MIT" ]
null
null
null
from flask import Flask, request from flask_cors import CORS from flask_autoindex import AutoIndex from omr.omr import get_answers import json import os import threading import requests import sys import shutil import pandas as pd import numpy as np import email, smtplib, ssl from email import encoders from email.mi...
30.080119
117
0.652363
da0b09148bec1ebb815eb9339fc76370319c4a10
928
py
Python
Linguagens/Python/Exercicios/cursos_em_video/aulas-22_23/utilidadesCeV/moeda/__init__.py
rafaelvizu/Estudos
eef5e3e3706ff99959226c51b9907b6af4377bfe
[ "MIT" ]
null
null
null
Linguagens/Python/Exercicios/cursos_em_video/aulas-22_23/utilidadesCeV/moeda/__init__.py
rafaelvizu/Estudos
eef5e3e3706ff99959226c51b9907b6af4377bfe
[ "MIT" ]
null
null
null
Linguagens/Python/Exercicios/cursos_em_video/aulas-22_23/utilidadesCeV/moeda/__init__.py
rafaelvizu/Estudos
eef5e3e3706ff99959226c51b9907b6af4377bfe
[ "MIT" ]
null
null
null
def resumo(v=0, pA=0, pR=0, dinheiro=False): valorF = v if dinheiro == True: valorF = moeda(v) print('') print('--' * 15) print(f' RESUMO DO VALOR') print('--' * 15) print(f'Valor analisado: {valorF:>11}') print(f'Dobro do valor: {dobro(v, dinheiro):>11}') print(f'Me...
28.121212
67
0.574353
2113ab96d9cdc195dc8ebc006e7085448527e10c
1,292
py
Python
tools.py
jordimas/fullstop-deep-punctuation-prediction
b776dc91fee52fe35d4ee4b098678144eea3078c
[ "MIT" ]
null
null
null
tools.py
jordimas/fullstop-deep-punctuation-prediction
b776dc91fee52fe35d4ee4b098678144eea3078c
[ "MIT" ]
null
null
null
tools.py
jordimas/fullstop-deep-punctuation-prediction
b776dc91fee52fe35d4ee4b098678144eea3078c
[ "MIT" ]
null
null
null
from sklearn.metrics import confusion_matrix #taken from https://gist.github.com/zachguo/10296432 def print_cm(cm, labels, hide_zeroes=False, hide_diagonal=False, hide_threshold=None): """pretty print for confusion matrixes""" columnwidth = max([len(x) for x in labels] + [5]) # 5 is value length empty_cel...
40.375
87
0.578947
841a98be7bdaf44f5eb7b85c8ad5defc647f050c
4,401
py
Python
onstar/onstar.py
nyxnyx/onstar
77336180d7ebb1b9d5bd1d3bc526a9a772e3ae9c
[ "MIT" ]
5
2018-05-29T13:39:50.000Z
2022-03-09T10:24:32.000Z
onstar/onstar.py
jesjimher/onstar
9681d551ead09ebfff6cc57077568fb02b7264a2
[ "MIT" ]
5
2018-02-16T22:17:30.000Z
2019-10-17T21:24:19.000Z
onstar/onstar.py
jesjimher/onstar
9681d551ead09ebfff6cc57077568fb02b7264a2
[ "MIT" ]
4
2018-04-10T22:52:51.000Z
2019-11-15T12:19:50.000Z
""" Class for connecting to OnStar service for getting status of your car """ import aiohttp import asyncio import json from collections import namedtuple class OnStar: """Base class for connection to OnStar service""" def __init__(self,username, password, pin, loop, dump_json = False): """Initiate ...
37.939655
162
0.670075
7529ab6961f5da477e96af64cf82b0d8427c5a20
4,505
py
Python
getFolderFromRepo.py
DivyPatel9881/GetFolderFromRepo
d218a67ec128c5286330963a5012aeed4e4f8fee
[ "MIT" ]
null
null
null
getFolderFromRepo.py
DivyPatel9881/GetFolderFromRepo
d218a67ec128c5286330963a5012aeed4e4f8fee
[ "MIT" ]
null
null
null
getFolderFromRepo.py
DivyPatel9881/GetFolderFromRepo
d218a67ec128c5286330963a5012aeed4e4f8fee
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import requests import warnings import os USERNAME: str = '' TOKEN: str = '' SHOW_INFO_LOGS: bool = True SHOW_DEBUG_LOGS: bool = False try: from config import * except ImportError: pass if len(USERNAME) == 0: env_username = os.environ.get('GITHUB_USERNAME', '') if env_username != '...
31.503497
111
0.547614
e4f07ac324d3a91367e51e2d23fc13751e0ffe97
5,016
py
Python
conanfile.py
1b00/corrade
bb626d650c7d76dd2846945ef22e9eb0003b6ea9
[ "MIT", "Unlicense" ]
385
2015-01-14T02:53:42.000Z
2022-03-24T08:33:19.000Z
conanfile.py
1b00/corrade
bb626d650c7d76dd2846945ef22e9eb0003b6ea9
[ "MIT", "Unlicense" ]
110
2015-12-10T10:55:08.000Z
2022-03-06T18:08:08.000Z
conanfile.py
1b00/corrade
bb626d650c7d76dd2846945ef22e9eb0003b6ea9
[ "MIT", "Unlicense" ]
132
2015-02-10T07:31:38.000Z
2022-02-22T23:19:14.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from conans import ConanFile, CMake, tools from conans.errors import ConanException import os import shutil def sort_libs(correct_order, libs, lib_suffix='', reverse_result=False): # Add suffix for correct string matching correct_order[:] = [s.__add__(lib_suffix)...
37.432836
125
0.633174
e51a73eb96698ed4337ca4612db7b0c3a6bfa0c5
27,707
py
Python
elftools/elf/elffile.py
mephi42/pyelftools
fecd229201f21294f00ebfd06b33bfec232ddc75
[ "Unlicense" ]
null
null
null
elftools/elf/elffile.py
mephi42/pyelftools
fecd229201f21294f00ebfd06b33bfec232ddc75
[ "Unlicense" ]
null
null
null
elftools/elf/elffile.py
mephi42/pyelftools
fecd229201f21294f00ebfd06b33bfec232ddc75
[ "Unlicense" ]
null
null
null
#------------------------------------------------------------------------------- # elftools: elf/elffile.py # # ELFFile - main class for accessing ELF files # # Eli Bendersky (eliben@gmail.com) # This code is in the public domain #------------------------------------------------------------------------------- import io...
43.157321
87
0.554481
6e0ab5250f1489b26551cf81efd7c0a17efc2f79
8,684
py
Python
src/command_modules/azure-cli-keyvault/azure/cli/command_modules/keyvault/commands.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-keyvault/azure/cli/command_modules/keyvault/commands.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-keyvault/azure/cli/command_modules/keyvault/commands.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
80.407407
142
0.826693
6036494215225011be7a6a30a27381b9abed886b
2,406
py
Python
utils/colors.py
KenmogneThimotee/ObjectDetection
b6261640cd3c083c7c8197a18c3684d88f921377
[ "MIT" ]
null
null
null
utils/colors.py
KenmogneThimotee/ObjectDetection
b6261640cd3c083c7c8197a18c3684d88f921377
[ "MIT" ]
null
null
null
utils/colors.py
KenmogneThimotee/ObjectDetection
b6261640cd3c083c7c8197a18c3684d88f921377
[ "MIT" ]
null
null
null
colors = [ [31 , 0 , 255] , [0 , 159 , 255] , [255 , 95 , 0] , [255 , 19 , 0] , [255 , 0 , 0] , [255 , 38 , 0] , [0 , 255 , 25] , [255 , 0 , 133] , [255 , 172 , 0] , [108 , 0 , 255] , [0 , 82 , 255] , [0 , 255 , 6] , [255 , 0 , 152]...
24.30303
84
0.347049
905ce664c3319edecc2f2e46ae55a9be39a84bfe
73
py
Python
src/onegov/core/custom/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/custom/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/custom/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.custom import custom_json as json __all__ = ('json', )
18.25
50
0.739726
6bd3fc5c0b1df635bc3dac3b85b1174ea0f5e089
26,732
py
Python
flopy/modflow/mffhb.py
jtwhite79/flopy
41302901e4db38455c28a68153b49a8466da3027
[ "CC0-1.0", "BSD-3-Clause" ]
1
2021-02-23T22:55:04.000Z
2021-02-23T22:55:04.000Z
flopy/modflow/mffhb.py
jtwhite79/flopy
41302901e4db38455c28a68153b49a8466da3027
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
flopy/modflow/mffhb.py
jtwhite79/flopy
41302901e4db38455c28a68153b49a8466da3027
[ "CC0-1.0", "BSD-3-Clause" ]
null
null
null
""" mffhb module. Contains the ModflowFhb class. Note that the user can access the ModflowFhb class as `flopy.modflow.ModflowFhb`. Additional information for this MODFLOW package can be found at the `Online MODFLOW Guide <http://water.usgs.gov/ogw/modflow/MODFLOW-2005-Guide/index.html?fhb.htm>`_. """ import sys imp...
34.096939
82
0.493603
f3defd2cff36622eb542e808f794d181b835ea84
1,868
py
Python
scanner/util/script/poc_apache_proxy_connect.py
Shinpachi8/webscanner
52aa377f0ee903a04ed19ea07433d0718697833d
[ "Apache-2.0" ]
5
2018-04-27T12:34:08.000Z
2020-11-09T10:47:02.000Z
scanner/util/script/poc_apache_proxy_connect.py
Shinpachi8/webscanner
52aa377f0ee903a04ed19ea07433d0718697833d
[ "Apache-2.0" ]
null
null
null
scanner/util/script/poc_apache_proxy_connect.py
Shinpachi8/webscanner
52aa377f0ee903a04ed19ea07433d0718697833d
[ "Apache-2.0" ]
3
2019-04-08T19:58:20.000Z
2020-04-07T15:35:07.000Z
#!/usr/bin/env python # coding=utf-8 import socket import urlparse class ApacheProxyConnect(object): ''' this class aim to detect the apache proxy enable function code from avws decode script: apache_proxy_connect_enable.script ''' def __init__(self, url): self.url = self.normal_url(url) ...
27.470588
115
0.551392
455f2ca33fd2be62f20f15e5ea0fdf75ca8f6d9d
6,491
py
Python
dvc/fs/http.py
daavoo/dvc
04349a50eb638f3684e486cdf72bcb1c1e25613d
[ "Apache-2.0" ]
null
null
null
dvc/fs/http.py
daavoo/dvc
04349a50eb638f3684e486cdf72bcb1c1e25613d
[ "Apache-2.0" ]
41
2021-06-02T11:13:03.000Z
2022-03-31T07:15:36.000Z
dvc/fs/http.py
daavoo/dvc
04349a50eb638f3684e486cdf72bcb1c1e25613d
[ "Apache-2.0" ]
null
null
null
import logging import os.path import threading from typing import Optional from funcy import cached_property, memoize, wrap_prop, wrap_with from dvc import prompt from dvc.exceptions import DvcException, HTTPError from dvc.path_info import HTTPURLInfo from dvc.progress import Tqdm from dvc.scheme import Schemes from...
32.293532
79
0.598213
a84e0120ffd209d29964e3d65aacdb2b76e27f75
129,093
py
Python
src/elarian/utils/generated/messaging_model_pb2.py
ElarianLtd/python-sdk
f603688dffba4b46c5a9f208a75b3dc3d75ed565
[ "MIT" ]
4
2021-05-27T23:15:21.000Z
2021-12-29T11:40:02.000Z
src/elarian/utils/generated/messaging_model_pb2.py
ElarianLtd/python-sdk
f603688dffba4b46c5a9f208a75b3dc3d75ed565
[ "MIT" ]
2
2021-05-20T05:51:02.000Z
2021-07-13T11:25:54.000Z
src/elarian/utils/generated/messaging_model_pb2.py
ElarianLtd/python-sdk
f603688dffba4b46c5a9f208a75b3dc3d75ed565
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: messaging_model.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from googl...
48.935936
14,252
0.785155
e39a8b77156b7c6f2b27f4cba59ff4709813ee47
198
py
Python
allennlp_models/lm/modules/__init__.py
matt-peters/allennlp-models
cdd505ed539fdc2b82e4cc0a23eae4bfd3368e7e
[ "Apache-2.0" ]
402
2020-03-11T22:58:35.000Z
2022-03-29T09:05:27.000Z
allennlp_models/lm/modules/__init__.py
matt-peters/allennlp-models
cdd505ed539fdc2b82e4cc0a23eae4bfd3368e7e
[ "Apache-2.0" ]
116
2020-03-11T01:26:57.000Z
2022-03-25T13:03:56.000Z
allennlp_models/lm/modules/__init__.py
matt-peters/allennlp-models
cdd505ed539fdc2b82e4cc0a23eae4bfd3368e7e
[ "Apache-2.0" ]
140
2020-03-11T00:51:35.000Z
2022-03-29T09:05:36.000Z
# flake8: noqa: F403 from allennlp_models.lm.modules.seq2seq_encoders import * from allennlp_models.lm.modules.language_model_heads import * from allennlp_models.lm.modules.token_embedders import *
39.6
61
0.843434
1661d637d8c10153347eed6286d4a33eb1bba3a3
1,075
py
Python
h/renderers.py
noscripter/h
a7a4095a46683ea08dae62335bbcd53f7ab313e2
[ "MIT" ]
null
null
null
h/renderers.py
noscripter/h
a7a4095a46683ea08dae62335bbcd53f7ab313e2
[ "MIT" ]
null
null
null
h/renderers.py
noscripter/h
a7a4095a46683ea08dae62335bbcd53f7ab313e2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Taken from: # https://pyramid-cookbook.readthedocs.org/en/latest/templates/customrenderers.html # with minor modifications import unicodecsv as csv from h._compat import StringIO class CSV(object): def __init__(self, info): pass def __call__(self, value, system): """...
30.714286
83
0.583256
b177878966dad6cb1804dc5f45f561c73f523a64
41
py
Python
doctor-octopus/tasks/aws/__init__.py
tiagorkrebs/doctor-octopus
876ed43468a68ac0fa96fd4b964517a886f67feb
[ "MIT" ]
null
null
null
doctor-octopus/tasks/aws/__init__.py
tiagorkrebs/doctor-octopus
876ed43468a68ac0fa96fd4b964517a886f67feb
[ "MIT" ]
null
null
null
doctor-octopus/tasks/aws/__init__.py
tiagorkrebs/doctor-octopus
876ed43468a68ac0fa96fd4b964517a886f67feb
[ "MIT" ]
1
2020-08-21T01:35:15.000Z
2020-08-21T01:35:15.000Z
from .route53 import * from .cli import *
20.5
22
0.731707
37d03868dee4630d15004b19ed29f8f432a66f8d
3,481
py
Python
rootfs/api/admin.py
jianxiaoguo/manager
148e9d14dcf472750d3eb637794cdabb2a2edeea
[ "Apache-2.0" ]
null
null
null
rootfs/api/admin.py
jianxiaoguo/manager
148e9d14dcf472750d3eb637794cdabb2a2edeea
[ "Apache-2.0" ]
null
null
null
rootfs/api/admin.py
jianxiaoguo/manager
148e9d14dcf472750d3eb637794cdabb2a2edeea
[ "Apache-2.0" ]
null
null
null
from decimal import Decimal from django import forms from django.contrib import admin from api.models import Cluster, Funding, Bill from api.models.charge_rules import ChargeRule is_superuser = True empty_value_display = '-' admin.site.site_header = 'Workflow Manager' admin.site.site_title = 'Workflow Manager' cla...
32.53271
94
0.638035
e7a34a5804ab06bd33b1c4de20d3fe624a8ee827
28,374
py
Python
python/gr_digital_rf/digital_rf_source.py
w2naf/digital_rf
482608dcc5608b9d9a0aacf77e75f83edbec1f0e
[ "BSD-3-Clause" ]
null
null
null
python/gr_digital_rf/digital_rf_source.py
w2naf/digital_rf
482608dcc5608b9d9a0aacf77e75f83edbec1f0e
[ "BSD-3-Clause" ]
null
null
null
python/gr_digital_rf/digital_rf_source.py
w2naf/digital_rf
482608dcc5608b9d9a0aacf77e75f83edbec1f0e
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2017 Massachusetts Institute of Technology (MIT) # All rights reserved. # # Distributed under the terms of the BSD 3-clause license. # # The full license is in the LICENSE file, distributed with this software. # -------------...
40.884726
79
0.568337
03224cef1a888c87f7b5feac8fb7d7e9f5bebf50
10,437
py
Python
hack/generators/release-controllers/content/art_namespaces_rbac.py
obnoxxx/release
4ad5c88b6b211111e8afd8bb8a7465256fd6976a
[ "Apache-2.0" ]
null
null
null
hack/generators/release-controllers/content/art_namespaces_rbac.py
obnoxxx/release
4ad5c88b6b211111e8afd8bb8a7465256fd6976a
[ "Apache-2.0" ]
null
null
null
hack/generators/release-controllers/content/art_namespaces_rbac.py
obnoxxx/release
4ad5c88b6b211111e8afd8bb8a7465256fd6976a
[ "Apache-2.0" ]
null
null
null
def add_imagestream_namespace_rbac(gendoc): resources = gendoc context = gendoc.context puller_subjects = [] if not context.private: puller_subjects.append({ 'apiGroup': 'rbac.authorization.k8s.io', 'kind': 'Group', 'name': 'system:authenticated' })...
31.0625
224
0.466322
a596b1313393f329c2af19dc341411326e3c0d8c
4,340
py
Python
tests/test_validation.py
abetkin/webtypes
af62501b91368f18acb569d6c3a587f0b7a125f7
[ "BSD-3-Clause" ]
null
null
null
tests/test_validation.py
abetkin/webtypes
af62501b91368f18acb569d6c3a587f0b7a125f7
[ "BSD-3-Clause" ]
null
null
null
tests/test_validation.py
abetkin/webtypes
af62501b91368f18acb569d6c3a587f0b7a125f7
[ "BSD-3-Clause" ]
null
null
null
from webtypes import Route, test, types, validators from webtypes.server.app import App def str_path_param(param: str): return {'param': param} def int_path_param(param: int): return {'param': param} def str_query_param(param: str): return {'param': param} def int_query_param(param: int): return...
30.56338
102
0.689171
24ec8520f06c3af6372fe8d05cdc3053beb08f80
292
py
Python
e005-smallest-multiple.py
bayramcicek/mini-programs
3f876e3274b7beeb5e7413ac9c5275813d9f0d2d
[ "Unlicense" ]
null
null
null
e005-smallest-multiple.py
bayramcicek/mini-programs
3f876e3274b7beeb5e7413ac9c5275813d9f0d2d
[ "Unlicense" ]
null
null
null
e005-smallest-multiple.py
bayramcicek/mini-programs
3f876e3274b7beeb5e7413ac9c5275813d9f0d2d
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3.6 # created by cicek on 06.10.2018 18:13 number = 2000 while True: counter = 0 for i in range(1,21): if (number % i == 0): counter += 1 if (counter == 20): print(number) exit(0) else: number += 20 # 232792560
15.368421
38
0.510274
46c5790047a08881a7d543a3c27cc17db64a59a9
468
py
Python
Exercicios/iptu/iptu.py
Arthurnevs/E3
500df893c9762c738ce7307c025888cef5bea4b3
[ "Apache-2.0" ]
null
null
null
Exercicios/iptu/iptu.py
Arthurnevs/E3
500df893c9762c738ce7307c025888cef5bea4b3
[ "Apache-2.0" ]
null
null
null
Exercicios/iptu/iptu.py
Arthurnevs/E3
500df893c9762c738ce7307c025888cef5bea4b3
[ "Apache-2.0" ]
null
null
null
''' UFCG PROGRAMAÇÃO 1 JOSE ARTHUR NEVES DE BRITO - 119210204 IPTU ''' area = float(input()) valor = float(input()) opcao = input() iptu = area * valor vista = iptu - (iptu * 0.2) duas = iptu - (iptu * 0.1) tres = iptu - (iptu * 0.05) if(opcao == 'vista'): print('Total: R$ {:.2f}'.format(vista)) elif(opcao == '2x...
18.72
67
0.589744
50aba43c248d4172ffb660dbea7710a1dee06319
6,256
py
Python
tensorflow/contrib/keras/python/keras/models_test.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
28
2017-04-08T09:47:57.000Z
2020-07-12T03:10:46.000Z
tensorflow/contrib/keras/python/keras/models_test.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
7
2017-07-13T09:40:59.000Z
2019-04-08T22:46:51.000Z
tensorflow/contrib/keras/python/keras/models_test.py
AlexChrisF/udacity
b7f85a74058fc63ccb7601c418450ab934ef5953
[ "Apache-2.0" ]
38
2017-04-28T04:15:48.000Z
2019-09-28T05:11:46.000Z
# Copyright 2016 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...
32.247423
80
0.652014
7c2735a75d99fe10359a41e4b7da8d047210d478
66
py
Python
pgen/__init__.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
739
2015-01-01T02:05:11.000Z
2022-03-30T15:26:16.000Z
pgen/__init__.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
33
2015-03-25T23:17:04.000Z
2021-08-19T08:25:22.000Z
pgen/__init__.py
takipsizad/pyjs
54db0ba6747aca744f9f3c3e985a17e913dfb951
[ "ECL-2.0", "Apache-2.0" ]
167
2015-01-01T22:27:47.000Z
2022-03-17T13:29:19.000Z
import os import sys sys.path.append(os.path.dirname(__file__))
11
42
0.772727
3ce65d71546a32d250b055681d0cd61fdb62f389
1,920
py
Python
os_ken/tests/unit/packet/test_geneve.py
rolaya/os-ken
10009e41539c737c7c423f13e4f5bc5f46d219ff
[ "Apache-2.0" ]
1
2019-04-24T04:01:07.000Z
2019-04-24T04:01:07.000Z
os_ken/tests/unit/packet/test_geneve.py
anlaneg/os-ken
379a7694c3129cc0156343af71f4fca8830d9de5
[ "Apache-2.0" ]
null
null
null
os_ken/tests/unit/packet/test_geneve.py
anlaneg/os-ken
379a7694c3129cc0156343af71f4fca8830d9de5
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2016 Nippon Telegraph and Telephone Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
30.47619
79
0.647917
e9fb9ada293f82b4ea263e374bc309874556d206
794
py
Python
flask_babelplus/constants.py
intact/flask-babelplus
29960f1b489e7fd73a028eefd1ff097fbbfd1f1d
[ "BSD-3-Clause" ]
null
null
null
flask_babelplus/constants.py
intact/flask-babelplus
29960f1b489e7fd73a028eefd1ff097fbbfd1f1d
[ "BSD-3-Clause" ]
null
null
null
flask_babelplus/constants.py
intact/flask-babelplus
29960f1b489e7fd73a028eefd1ff097fbbfd1f1d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ flask_babelplus.constants ~~~~~~~~~~~~~~~~~~~~~~~~~ This module contains the constants that are used in this extension. :copyright: (c) 2013 by Armin Ronacher, Daniel Neuhäuser and contributors. :license: BSD, see LICENSE for more details. """ from werkzeug import I...
24.060606
78
0.610831
de8de610a6badbdce7560609b3e1e6b12d2821be
43
py
Python
music_bot/__init__.py
Lin2D2/Discord_Music_Bot_2
be5aa9637fd1a3de4412981f8d40edd3abeb3c71
[ "BSD-3-Clause" ]
null
null
null
music_bot/__init__.py
Lin2D2/Discord_Music_Bot_2
be5aa9637fd1a3de4412981f8d40edd3abeb3c71
[ "BSD-3-Clause" ]
null
null
null
music_bot/__init__.py
Lin2D2/Discord_Music_Bot_2
be5aa9637fd1a3de4412981f8d40edd3abeb3c71
[ "BSD-3-Clause" ]
null
null
null
from music_bot.bot import Bot bot = Bot()
10.75
29
0.72093
6117f61b215fe1b21ce32c1865ff37777b8ee798
651
py
Python
Models/session.py
fossabot/Taurus
f042addc24a3b76713649e08a0f2b3756bdeac28
[ "MIT" ]
null
null
null
Models/session.py
fossabot/Taurus
f042addc24a3b76713649e08a0f2b3756bdeac28
[ "MIT" ]
1
2019-07-13T14:50:49.000Z
2019-07-13T14:50:49.000Z
Models/session.py
fossabot/Taurus
f042addc24a3b76713649e08a0f2b3756bdeac28
[ "MIT" ]
1
2019-07-13T14:48:18.000Z
2019-07-13T14:48:18.000Z
#!/usr/bin/python from sqlalchemy import Column, Integer, Sequence, DateTime from Models import base class Session (base): __tablename__ = 'T_Sessions' id = Column (Integer, Sequence ('session_id_seq'), primary_key = True) Session = Column (Integer, unique = True) Password = Column (Integer) CreateTime = Colu...
25.038462
74
0.700461
a1e713ef4e35a6ea2e1ce88799697f0a4e1939a5
5,548
py
Python
doc/conf.py
MOFplus/molsys_rel
ff8b181fefc0ba03c5dd14fe2dde613298155203
[ "MIT" ]
null
null
null
doc/conf.py
MOFplus/molsys_rel
ff8b181fefc0ba03c5dd14fe2dde613298155203
[ "MIT" ]
null
null
null
doc/conf.py
MOFplus/molsys_rel
ff8b181fefc0ba03c5dd14fe2dde613298155203
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sphinx_rtd_theme # # molsys documentation build configuration file, created by # sphinx-quickstart on Mon Aug 21 14:29:21 2017. # # 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 # a...
30.822222
92
0.69106
be1195d779bd07aa5300fc210952e6347c367320
3,636
py
Python
tests/data/cifar_10/source/keras_cnn_cifar_10.py
pengk19/sagemaker-python-sdk
0866a304fea44522fd1e3b6c4509cd05dda064dd
[ "Apache-2.0" ]
1
2021-07-16T20:14:59.000Z
2021-07-16T20:14:59.000Z
tests/data/cifar_10/source/keras_cnn_cifar_10.py
pengk19/sagemaker-python-sdk
0866a304fea44522fd1e3b6c4509cd05dda064dd
[ "Apache-2.0" ]
null
null
null
tests/data/cifar_10/source/keras_cnn_cifar_10.py
pengk19/sagemaker-python-sdk
0866a304fea44522fd1e3b6c4509cd05dda064dd
[ "Apache-2.0" ]
1
2019-10-06T10:53:30.000Z
2019-10-06T10:53:30.000Z
# Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
36
106
0.726898
6b0591f5e92f923c5792678c840617a3c1ebb760
4,025
py
Python
tests/utils_tests.py
gmr/tornado-dynamodb
902867ed33a033bac6f047b7c8053326d6587b8a
[ "BSD-3-Clause" ]
2
2016-01-01T09:20:36.000Z
2016-11-04T08:53:43.000Z
tests/utils_tests.py
gmr/tornado-dynamodb
902867ed33a033bac6f047b7c8053326d6587b8a
[ "BSD-3-Clause" ]
1
2016-03-13T15:35:25.000Z
2016-04-01T12:49:39.000Z
tests/utils_tests.py
gmr/tornado-dynamodb
902867ed33a033bac6f047b7c8053326d6587b8a
[ "BSD-3-Clause" ]
null
null
null
import datetime import unittest import uuid import arrow from tornado_dynamodb import utils class UTC(datetime.tzinfo): def utcoffset(self, dt): return datetime.timedelta(0) def tzname(self, dt): return 'UTC' def dst(self, dt): return datetime.timedelta(0) class MarshallTests...
32.723577
77
0.427578
638661fe2dd1f5ca9d407fcd48912d55605bd576
8,241
py
Python
django_harmonization/HeartData/dependent_columns.py
chrisroederucdenver/Kao-Harmonization-Release
1a90db58cd378244a8aba138e27f049376045729
[ "Apache-2.0" ]
null
null
null
django_harmonization/HeartData/dependent_columns.py
chrisroederucdenver/Kao-Harmonization-Release
1a90db58cd378244a8aba138e27f049376045729
[ "Apache-2.0" ]
null
null
null
django_harmonization/HeartData/dependent_columns.py
chrisroederucdenver/Kao-Harmonization-Release
1a90db58cd378244a8aba138e27f049376045729
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ''' Copyright 2017 The Regents of the University of Colorado 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 ...
36.303965
135
0.597622
b06bd76de2e71f0902c5e7e4efae00c328adf3bc
5,990
py
Python
scraps/views.py
yejia/osl_notebook
f866fc753d7b0c1d8fec6f790c7298729e7f70ae
[ "MIT" ]
null
null
null
scraps/views.py
yejia/osl_notebook
f866fc753d7b0c1d8fec6f790c7298729e7f70ae
[ "MIT" ]
null
null
null
scraps/views.py
yejia/osl_notebook
f866fc753d7b0c1d8fec6f790c7298729e7f70ae
[ "MIT" ]
null
null
null
from django.http import HttpResponse,HttpResponseRedirect from django.shortcuts import render_to_response from django import forms from django.forms import ModelForm from django.db.models import F from django.db import connection from django.utils import simplejson from django.contrib import messages from django.contri...
43.722628
175
0.593322
c105a82518997d420e323f87ffb2bf320c47a878
4,028
py
Python
assignments/08_synthetic_dna/test.py
cvk1988/biosystems-analytics-2020
68ef2146b3b1b38406f1452ba90c469068a663b2
[ "MIT" ]
1
2021-05-19T19:07:56.000Z
2021-05-19T19:07:56.000Z
assignments/08_synthetic_dna/test.py
cvk1988/biosystems-analytics-2020
68ef2146b3b1b38406f1452ba90c469068a663b2
[ "MIT" ]
1
2020-02-11T20:15:59.000Z
2020-02-11T20:15:59.000Z
assignments/08_synthetic_dna/test.py
cvk1988/biosystems-analytics-2020
68ef2146b3b1b38406f1452ba90c469068a663b2
[ "MIT" ]
24
2020-01-15T17:34:40.000Z
2021-08-23T05:57:24.000Z
#!/usr/bin/env python3 """tests for moog.py""" import os import random import re import string from subprocess import getstatusoutput from Bio import SeqIO from Bio.SeqUtils import GC from numpy import mean from itertools import chain prg = './moog.py' # -------------------------------------------------- def random...
27.589041
79
0.514647
29d71b60d6f27be0100d798e8b7dc6cfe6346996
398
py
Python
qubo_nn/nn/__init__.py
instance01/qubo-nn
6f8058565f4b6ab4a8300501fc2f67cdaeed482f
[ "MIT" ]
9
2021-09-17T09:40:59.000Z
2022-03-29T13:41:25.000Z
qubo_nn/nn/__init__.py
instance01/qubo-nn
6f8058565f4b6ab4a8300501fc2f67cdaeed482f
[ "MIT" ]
null
null
null
qubo_nn/nn/__init__.py
instance01/qubo-nn
6f8058565f4b6ab4a8300501fc2f67cdaeed482f
[ "MIT" ]
4
2022-03-06T19:26:19.000Z
2022-03-29T13:41:37.000Z
from qubo_nn.nn.models import Optimizer from qubo_nn.nn.models import ReverseOptimizer from qubo_nn.nn.models import AutoEncoderOptimizer from qubo_nn.nn.models import RNNOptimizer from qubo_nn.nn.models import A3Optimizer from qubo_nn.nn.models import Resistance1 from qubo_nn.nn.models import Resistance2 from qubo_nn....
39.8
50
0.864322
2a700149c93a9755bcd39b36beb77013196c3ded
150
py
Python
test/test_prose_flip.py
erichaase/topcoder-python
de285d8092a94f2ec1b5c0c33eba55b5c27a5390
[ "MIT" ]
1
2017-03-25T17:40:57.000Z
2017-03-25T17:40:57.000Z
test/test_prose_flip.py
erichaase/topcoder-python
de285d8092a94f2ec1b5c0c33eba55b5c27a5390
[ "MIT" ]
null
null
null
test/test_prose_flip.py
erichaase/topcoder-python
de285d8092a94f2ec1b5c0c33eba55b5c27a5390
[ "MIT" ]
null
null
null
from test.assert_json import assert_json from topcoder.prose_flip import solution def test_prose_flip (): assert_json('prose_flip', solution)
25
43
0.793333
929bebcb5ac470f5e07ad587a2c8b8a57ef28b49
49,352
py
Python
tests/test_meshes.py
bruinxiong/pytorch3d
6b8a2223fe6bd981801750ec8becd81d71d148ec
[ "BSD-3-Clause" ]
null
null
null
tests/test_meshes.py
bruinxiong/pytorch3d
6b8a2223fe6bd981801750ec8becd81d71d148ec
[ "BSD-3-Clause" ]
null
null
null
tests/test_meshes.py
bruinxiong/pytorch3d
6b8a2223fe6bd981801750ec8becd81d71d148ec
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import itertools import random import unittest import numpy as np import torch from common_testing import TestCaseMixin from pytorch3d.structures.meshes import Meshes def init_mesh( num_meshes: int = 10, max_v: int = 100, max_f: int...
40.254486
88
0.546462
7f270aa922b170438b550bdfe986b31eb387df69
472
py
Python
sample_assignment/migrations/0002_alter_contract_id.py
ptrck/django-clone
5c868b65ac6a3e3367595f8aa54abc42ef0d0144
[ "MIT" ]
55
2020-08-15T18:41:35.000Z
2022-03-29T09:53:02.000Z
sample_assignment/migrations/0002_alter_contract_id.py
ptrck/django-clone
5c868b65ac6a3e3367595f8aa54abc42ef0d0144
[ "MIT" ]
236
2020-08-17T12:37:58.000Z
2022-03-31T11:04:19.000Z
sample_assignment/migrations/0002_alter_contract_id.py
ptrck/django-clone
5c868b65ac6a3e3367595f8aa54abc42ef0d0144
[ "MIT" ]
6
2020-08-16T15:18:22.000Z
2022-02-02T09:59:34.000Z
# Generated by Django 3.2 on 2021-04-22 14:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("sample_assignment", "0001_initial"), ] operations = [ migrations.AlterField( model_name="contract", name="id", ...
22.47619
87
0.586864
439eabc436ef2d0ca079b679e9268369edd32fbf
4,772
py
Python
keepassc/helper.py
thorkill/keepassc
b3779291fa651701c4a1a3306eb00a653493cbe8
[ "ISC" ]
238
2015-01-05T17:57:41.000Z
2021-11-14T20:08:23.000Z
keepassc/helper.py
thorkill/keepassc
b3779291fa651701c4a1a3306eb00a653493cbe8
[ "ISC" ]
10
2015-01-07T05:53:44.000Z
2021-07-25T10:11:44.000Z
keepassc/helper.py
thorkill/keepassc
b3779291fa651701c4a1a3306eb00a653493cbe8
[ "ISC" ]
20
2015-01-05T14:27:28.000Z
2019-12-06T01:59:42.000Z
# -*- coding: utf-8 -*- import struct from os import makedirs, remove from os.path import isdir, isfile from Cryptodome.Hash import SHA256 from Cryptodome.Cipher import AES def parse_config(control): '''Parse the config file. It's important that a line in the file is written without spaces, that means ...
28.070588
77
0.557209
a80cb1eec9c63a6e52fdbb9bc786cab7869a03b2
14,452
py
Python
python/paddle/fluid/regularizer.py
wangwin/Paddle
b7d185d6caf78630d228dfcb90750a21d637583d
[ "Apache-2.0" ]
1
2019-06-13T11:32:16.000Z
2019-06-13T11:32:16.000Z
python/paddle/fluid/regularizer.py
wangwin/Paddle
b7d185d6caf78630d228dfcb90750a21d637583d
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/regularizer.py
wangwin/Paddle
b7d185d6caf78630d228dfcb90750a21d637583d
[ "Apache-2.0" ]
2
2019-08-16T12:03:28.000Z
2019-09-03T13:02:57.000Z
# Copyright (c) 2018 PaddlePaddle 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 app...
39.594521
117
0.645585
5487ab7f67e9c1d5ae9feeb0e06052f763567839
4,671
py
Python
huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/resource_type.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/resource_type.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/resource_type.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six class ResourceType: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is js...
28.309091
98
0.60137
d0ccfcf0ccd41cc01d09349cff50b3442313ef51
5,610
py
Python
framework/boards/NRF52832DK.py
leeeastwood/Haiway
153b6861f864966c454f97febe03ae191a9a8657
[ "MIT" ]
162
2019-01-04T14:23:52.000Z
2021-12-26T05:51:34.000Z
framework/boards/NRF52832DK.py
leeeastwood/Haiway
153b6861f864966c454f97febe03ae191a9a8657
[ "MIT" ]
6
2019-01-04T14:32:15.000Z
2020-08-07T06:47:34.000Z
framework/boards/NRF52832DK.py
leeeastwood/Haiway
153b6861f864966c454f97febe03ae191a9a8657
[ "MIT" ]
130
2019-01-04T14:24:33.000Z
2021-06-25T16:48:56.000Z
#!/bin/false # This file is part of Espruino, a JavaScript interpreter for Microcontrollers # # Copyright (C) 2013 Gordon Williams <gw@pur3.co.uk> # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at h...
36.666667
156
0.603743
5b5b6aef4eafb6ad7adc058a0e434e38bfdea703
2,739
py
Python
submission_form/views/group.py
NAKKA-K/dw2018_server
63d74b1206860d0d2213efbc8a7969be7976c4fd
[ "MIT" ]
null
null
null
submission_form/views/group.py
NAKKA-K/dw2018_server
63d74b1206860d0d2213efbc8a7969be7976c4fd
[ "MIT" ]
6
2018-02-08T12:26:04.000Z
2018-02-09T06:14:12.000Z
submission_form/views/group.py
NAKKA-K/dw2018_server
63d74b1206860d0d2213efbc8a7969be7976c4fd
[ "MIT" ]
null
null
null
from django.views import generic from django.urls import reverse_lazy from django.http import Http404 from django.shortcuts import get_object_or_404 from submission_form.views.LoginRequiredMessageMixin import LoginRequiredMessageMixin from submission_form.models import Group from submission_form.forms import GroupForm...
29.771739
85
0.711208
40e6bd2dc93d6ef96a1c4ac8a6b637abd5bbfc91
36,868
py
Python
tests/test_models.py
stevearc/flywheel
ac6eea314f6d88b593cf809336d8723df0b78f6f
[ "MIT" ]
72
2016-09-05T08:54:13.000Z
2021-11-14T05:53:46.000Z
tests/test_models.py
mathcamp/flywheel
ac6eea314f6d88b593cf809336d8723df0b78f6f
[ "MIT" ]
29
2015-01-25T08:20:31.000Z
2016-08-29T19:01:06.000Z
tests/test_models.py
stevearc/flywheel
ac6eea314f6d88b593cf809336d8723df0b78f6f
[ "MIT" ]
19
2016-09-09T07:21:05.000Z
2021-12-25T05:10:49.000Z
""" Tests for models """ import six import sys import json from datetime import datetime from decimal import Decimal from mock import patch, ANY from dynamo3 import ItemUpdate from flywheel import (Field, Composite, Model, NUMBER, STRING, GlobalIndex, ConditionalCheckFailedException) from flywhee...
33.364706
90
0.587366
195f984fc06ba5eab16ca795da64734460f70194
26,203
py
Python
desdeo_tools/scalarization/GLIDE_II.py
phoopies/desdeo-tools
d3cb48c16b35114762386ee8368214b4b432eee0
[ "MIT" ]
null
null
null
desdeo_tools/scalarization/GLIDE_II.py
phoopies/desdeo-tools
d3cb48c16b35114762386ee8368214b4b432eee0
[ "MIT" ]
2
2022-01-13T04:05:05.000Z
2022-03-12T01:07:03.000Z
desdeo_tools/scalarization/GLIDE_II.py
phoopies/desdeo-tools
d3cb48c16b35114762386ee8368214b4b432eee0
[ "MIT" ]
null
null
null
from abc import abstractmethod from typing import Union import numpy as np class GLIDEError(Exception): """Raised when an error related to the ASF classes is encountered. """ class GLIDEBase: """ Implements the non-differentiable variant of GLIDE-II as proposed in Ruiz, Francisco, Mariano Luqu...
31.954878
107
0.626569
b2204a3d4efe86db540fb6e0d6a9c08d2dc42190
22
py
Python
python/script.py
graitz/Hello-world
d8a3103673f6c62774bd1b522f9348567ba3a7f9
[ "MIT" ]
2
2020-08-04T02:16:29.000Z
2021-11-15T11:23:13.000Z
python/script.py
graitz/Hello-world
d8a3103673f6c62774bd1b522f9348567ba3a7f9
[ "MIT" ]
null
null
null
python/script.py
graitz/Hello-world
d8a3103673f6c62774bd1b522f9348567ba3a7f9
[ "MIT" ]
2
2018-10-12T16:40:11.000Z
2021-04-05T12:05:36.000Z
print('hello, world')
11
21
0.681818
dee4f610bc40847805a06d5e0bb669aaa7377501
2,159
py
Python
src/custom_auth/management/__init__.py
Igor-Kholupko/SAT
d29379887b61862d28f3079f7c49c9ff96ddd578
[ "Apache-2.0" ]
4
2019-02-08T22:02:12.000Z
2019-03-26T21:02:12.000Z
src/custom_auth/management/__init__.py
Igor-Kholupko/SAT
d29379887b61862d28f3079f7c49c9ff96ddd578
[ "Apache-2.0" ]
29
2019-03-11T19:04:50.000Z
2019-05-14T17:24:40.000Z
src/custom_auth/management/__init__.py
Igor-Kholupko/SAT
d29379887b61862d28f3079f7c49c9ff96ddd578
[ "Apache-2.0" ]
4
2019-02-08T13:50:37.000Z
2019-03-17T10:10:32.000Z
from django.db import transaction from django.conf import settings from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand, CommandError class SetUserTypeBaseCommand(BaseCommand): requires_migrations_checks = True def __init__(self, *args, **kwargs): super()...
38.553571
119
0.670218
7f81b9546015b967ed472415a7104d6ea02beda9
3,609
py
Python
lambda/us-east-1_Numbers_Trivia/ask_sdk_model/interfaces/amazonpay/model/response/price.py
Techievena/Numbers_Trivia
e86daaf7e7bc2c80c703c8496daea6317e986204
[ "MIT" ]
1
2019-02-04T21:07:06.000Z
2019-02-04T21:07:06.000Z
lambda/us-east-1_Numbers_Trivia/ask_sdk_model/interfaces/amazonpay/model/response/price.py
Techievena/Numbers_Trivia
e86daaf7e7bc2c80c703c8496daea6317e986204
[ "MIT" ]
9
2020-03-24T16:32:57.000Z
2022-03-11T23:37:22.000Z
lambda/us-east-1_Numbers_Trivia/ask_sdk_model/interfaces/amazonpay/model/response/price.py
Techievena/Numbers_Trivia
e86daaf7e7bc2c80c703c8496daea6317e986204
[ "MIT" ]
null
null
null
# coding: utf-8 # # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file # except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
31.382609
96
0.59601
f42bd7b1a9697958f20f4fbcba65203a2d7ad329
247
py
Python
Operators/EqualityOperator.py
dsabhrawal/python-examples
55b3dd6c9fd0b992bcfe3422765dc80fb143a54b
[ "MIT" ]
1
2020-03-01T17:24:20.000Z
2020-03-01T17:24:20.000Z
Operators/EqualityOperator.py
dsabhrawal/python-examples
55b3dd6c9fd0b992bcfe3422765dc80fb143a54b
[ "MIT" ]
null
null
null
Operators/EqualityOperator.py
dsabhrawal/python-examples
55b3dd6c9fd0b992bcfe3422765dc80fb143a54b
[ "MIT" ]
null
null
null
# == , != (Int, float, str, bool) x,y=6,7 p=6 print(x == y) #False print(p == x) #True print(p == 6.0) #True print('Hello' == 'Hello') #True #Chaining print(10 == 20 == 6 == 3) #False print(1 == 1 == 1 < 2) #True print(1 !=2 < 3 > 1) #True
15.4375
33
0.506073
25c9d4c2d65b89b4f2417b5b7de65bd0461dc4da
13,406
py
Python
buffer.py
ManUtdMoon/Safe_Reachability_RL
e44a5666b8b2ec45e09a70686becb72933c33ef5
[ "MIT" ]
null
null
null
buffer.py
ManUtdMoon/Safe_Reachability_RL
e44a5666b8b2ec45e09a70686becb72933c33ef5
[ "MIT" ]
null
null
null
buffer.py
ManUtdMoon/Safe_Reachability_RL
e44a5666b8b2ec45e09a70686becb72933c33ef5
[ "MIT" ]
1
2022-03-06T09:46:40.000Z
2022-03-06T09:46:40.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ===================================== # @Time : 2020/6/10 # @Author : Yang Guan (Tsinghua Univ.) # @FileName: buffer.py # ===================================== import logging import random import numpy as np logger = logging.getLogger(__name__) logging.basicConfi...
35.278947
111
0.607788
c0ab9929a81eae5e157713aead4fc49fabdeb903
5,145
py
Python
python/oneflow/compatible/single_client/test/ops/test_dynamic_loss_scale_schedule.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/test/ops/test_dynamic_loss_scale_schedule.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/test/ops/test_dynamic_loss_scale_schedule.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow 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 law or agr...
35.482759
87
0.598251
c8218e103cfe30abc316175b7480fdb8d5658ac2
6,679
py
Python
RBM/AIS_testing.py
mattsmart/biomodels
237f87489553fa1ebf5c676fab563166dd0c39e9
[ "MIT" ]
null
null
null
RBM/AIS_testing.py
mattsmart/biomodels
237f87489553fa1ebf5c676fab563166dd0c39e9
[ "MIT" ]
null
null
null
RBM/AIS_testing.py
mattsmart/biomodels
237f87489553fa1ebf5c676fab563166dd0c39e9
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow_probability as tfp import numpy as np def run_tf_example_A(): # EXAMPLE CODE # https://www.tensorflow.org/probability/api_docs/python/tfp/mcmc/sample_annealed_importance_chain tfd = tfp.distributions # Run 100 AIS chains in parallel num_chains = 100 d...
39.755952
163
0.624944
3d5ac47d55f792793613a1b3e92cb1571ba93fff
519
py
Python
tuple_utils.py
seanstappas/qbert-reinforcement-learning
3d9c8b0821ba6df07d1711c0199a6e876ebc4ad7
[ "MIT" ]
1
2020-08-21T03:05:03.000Z
2020-08-21T03:05:03.000Z
tuple_utils.py
seanstappas/qbert-reinforcement-learning
3d9c8b0821ba6df07d1711c0199a6e876ebc4ad7
[ "MIT" ]
null
null
null
tuple_utils.py
seanstappas/qbert-reinforcement-learning
3d9c8b0821ba6df07d1711c0199a6e876ebc4ad7
[ "MIT" ]
null
null
null
def list_to_tuple(lst): return tuple(tuple(x for x in row) for row in lst) def list_to_tuple_with_value(lst, row_num, col_num, val): return tuple(tuple(x if i != row_num or j != col_num else val for j, x in enumerate(row)) for i, row in enumerate(lst)) def hamming_distance(s1, s2): f1 =...
22.565217
93
0.608863
b020c8bd71057db94eeee4effbc41d3f89e97fbc
4,381
py
Python
client/commands/tests/initialize_test.py
terrorizer1980/pyre-check
16659c7f6f19f3c364ba3a56e6c582371a8ff348
[ "MIT" ]
1
2020-08-08T16:01:55.000Z
2020-08-08T16:01:55.000Z
client/commands/tests/initialize_test.py
terrorizer1980/pyre-check
16659c7f6f19f3c364ba3a56e6c582371a8ff348
[ "MIT" ]
4
2022-02-15T02:42:33.000Z
2022-02-28T01:30:07.000Z
client/commands/tests/initialize_test.py
terrorizer1980/pyre-check
16659c7f6f19f3c364ba3a56e6c582371a8ff348
[ "MIT" ]
1
2020-11-22T12:08:51.000Z
2020-11-22T12:08:51.000Z
# Copyright (c) 2016-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-unsafe import os import sys import unittest from unittest.mock import call, mock_open, patch from ... import commands from ...commands impo...
36.815126
88
0.619493
602647902c185d75b35ebeac333ef457065161ff
1,410
py
Python
python/katana/local/__init__.py
micah-white/katana
99d879884b412ebd643be43b281e9becaf5ae539
[ "BSD-3-Clause" ]
1
2021-07-06T15:51:14.000Z
2021-07-06T15:51:14.000Z
python/katana/local/__init__.py
micah-white/katana
99d879884b412ebd643be43b281e9becaf5ae539
[ "BSD-3-Clause" ]
2
2020-08-15T23:41:58.000Z
2020-08-29T04:46:35.000Z
python/katana/local/__init__.py
micah-white/katana
99d879884b412ebd643be43b281e9becaf5ae539
[ "BSD-3-Clause" ]
null
null
null
""" :py:mod:`katana.local` provides single-machine (local) graph data access, graph loading, and analytics. This API supports writing new graph algorithms using high-performance parallel loops. This API does not require or utilize a remote server and cannot load or process graphs that do not fit in memory. """ # Regis...
27.647059
115
0.734752
bbb90e07eb40fe4ac34a904f507eba7d735f8073
3,742
py
Python
platformio/downloader.py
seryoni/platformio
35a602cfefde288ffe72f6d21436ac6785ffcab4
[ "Apache-2.0" ]
null
null
null
platformio/downloader.py
seryoni/platformio
35a602cfefde288ffe72f6d21436ac6785ffcab4
[ "Apache-2.0" ]
null
null
null
platformio/downloader.py
seryoni/platformio
35a602cfefde288ffe72f6d21436ac6785ffcab4
[ "Apache-2.0" ]
1
2019-07-17T07:16:24.000Z
2019-07-17T07:16:24.000Z
# Copyright 2014-2016 Ivan Kravets <me@ikravets.com> # # 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...
32.53913
77
0.619722
b221564efd1c433389d184367303ebf61b21f0a3
3,725
py
Python
tools/deployment/mmedit2torchserve.py
Jian137/mmediting-1
e1ac6c93441ec96696d0b530f040b91b809015b6
[ "Apache-2.0" ]
1,884
2020-07-09T18:53:43.000Z
2022-03-31T12:06:18.000Z
tools/deployment/mmedit2torchserve.py
Jian137/mmediting-1
e1ac6c93441ec96696d0b530f040b91b809015b6
[ "Apache-2.0" ]
622
2020-07-09T18:52:27.000Z
2022-03-31T14:41:09.000Z
tools/deployment/mmedit2torchserve.py
Jian137/mmediting-1
e1ac6c93441ec96696d0b530f040b91b809015b6
[ "Apache-2.0" ]
361
2020-07-09T19:21:47.000Z
2022-03-31T09:58:27.000Z
# Copyright (c) OpenMMLab. All rights reserved. from argparse import ArgumentParser, Namespace from pathlib import Path from tempfile import TemporaryDirectory import mmcv try: from model_archiver.model_packaging import package_model from model_archiver.model_packaging_utils import ModelExportUtils except Imp...
33.558559
76
0.616644
f6330988454b5b28443d38f260103af524593110
2,051
py
Python
warehouse/warehouse/views.py
howardyoo/sample-polyglot-app
23ccc2ab930d225f3da3886f915b4c8ea2a9e93f
[ "Apache-2.0" ]
null
null
null
warehouse/warehouse/views.py
howardyoo/sample-polyglot-app
23ccc2ab930d225f3da3886f915b4c8ea2a9e93f
[ "Apache-2.0" ]
null
null
null
warehouse/warehouse/views.py
howardyoo/sample-polyglot-app
23ccc2ab930d225f3da3886f915b4c8ea2a9e93f
[ "Apache-2.0" ]
null
null
null
import logging import random import time import requests from concurrent.futures import ThreadPoolExecutor from rest_framework.response import Response from rest_framework.decorators import api_view from django.conf import settings logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) tracing =...
30.61194
79
0.691858
775b2d91124ac01784cac7d01801f2acb2d3b192
20,341
py
Python
fastreid/engine/defaults.py
polaris-c/fast-reid
4486e0466416f60377c35dabe66e1fb95310a563
[ "Apache-2.0" ]
1
2020-12-24T09:32:21.000Z
2020-12-24T09:32:21.000Z
fastreid/engine/defaults.py
yangyueren/fast-reid-video
539b30d6a0ff4f6d2f5841bcbc49344795c36abe
[ "Apache-2.0" ]
null
null
null
fastreid/engine/defaults.py
yangyueren/fast-reid-video
539b30d6a0ff4f6d2f5841bcbc49344795c36abe
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ This file contains components with some default boilerplate logic user may need in training / testing. They will not work for everyone, but many users may find them useful. The behavior of functions/classes in this file ...
40.199605
116
0.646478
16ae01f0fd02c611bb11f05803a1ef282f9b8acf
9,232
py
Python
supervised_learning/decision_tree.py
kozo2/ML-From-Scratch-Ruby
43e58ae6a0545c58bda9e180272ac14e4a646a1e
[ "MIT" ]
1
2018-05-28T15:01:52.000Z
2018-05-28T15:01:52.000Z
supervised_learning/decision_tree.py
kozo2/ML-From-Scratch-Ruby
43e58ae6a0545c58bda9e180272ac14e4a646a1e
[ "MIT" ]
null
null
null
supervised_learning/decision_tree.py
kozo2/ML-From-Scratch-Ruby
43e58ae6a0545c58bda9e180272ac14e4a646a1e
[ "MIT" ]
null
null
null
from __future__ import division, print_function import numpy as np from sklearn import datasets import matplotlib.pyplot as plt import sys import os # Import helper functions dir_path = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, dir_path + "/../utils") from data_manipulation import divide_on_featur...
36.0625
100
0.608644
08b9540d50706bf5ee6c2ca79b06f35bf497ed93
23,736
py
Python
tests/components/modbus/test_init.py
SergioBPereira/core
4501906da369e23b304857b8a3512798696f26a0
[ "Apache-2.0" ]
null
null
null
tests/components/modbus/test_init.py
SergioBPereira/core
4501906da369e23b304857b8a3512798696f26a0
[ "Apache-2.0" ]
71
2020-10-15T06:45:08.000Z
2022-03-31T06:02:54.000Z
tests/components/modbus/test_init.py
SergioBPereira/core
4501906da369e23b304857b8a3512798696f26a0
[ "Apache-2.0" ]
2
2020-09-09T05:01:51.000Z
2020-09-09T05:46:12.000Z
"""The tests for the Modbus init. This file is responsible for testing: - pymodbus API - Functionality of class ModbusHub - Coverage 100%: __init__.py const.py modbus.py validators.py baseplatform.py (only BasePlatform) It uses binary_sensors/sensors to do black box testing of the read calls. """ ...
29.449132
88
0.589906
0e6207e397f30549269b9eb7e55f23963fd3329a
82
py
Python
merge/bin/__init__.py
JD-8678/MLA
51e854027be06c2badac94c0a36e4f3ef807d780
[ "MIT" ]
1
2020-05-29T10:40:43.000Z
2020-05-29T10:40:43.000Z
merge/bin/__init__.py
JD-8678/MLA
51e854027be06c2badac94c0a36e4f3ef807d780
[ "MIT" ]
null
null
null
merge/bin/__init__.py
JD-8678/MLA
51e854027be06c2badac94c0a36e4f3ef807d780
[ "MIT" ]
1
2020-10-08T10:14:26.000Z
2020-10-08T10:14:26.000Z
# print("bin") from . import run_file from . import run_url from . import run_text
20.5
22
0.743902
1a93fabcef864a3b042e303cb590f64ab45dae82
558
py
Python
sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/aio/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/aio/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/aio/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 ...
50.727273
94
0.578853
3aec37c1f2aa6a9ae78df892ea77370f686d819c
15,759
py
Python
src/werkzeug/sansio/request.py
bjgill/werkzeug
8bbc58e44fa4c59357bcc8df54267a89a179d5c8
[ "BSD-3-Clause" ]
1
2021-04-03T16:49:38.000Z
2021-04-03T16:49:38.000Z
src/werkzeug/sansio/request.py
bjgill/werkzeug
8bbc58e44fa4c59357bcc8df54267a89a179d5c8
[ "BSD-3-Clause" ]
null
null
null
src/werkzeug/sansio/request.py
bjgill/werkzeug
8bbc58e44fa4c59357bcc8df54267a89a179d5c8
[ "BSD-3-Clause" ]
null
null
null
import typing as t from datetime import datetime from .._internal import _to_str from ..datastructures import Accept from ..datastructures import Authorization from ..datastructures import CharsetAccept from ..datastructures import ETags from ..datastructures import Headers from ..datastructures import HeaderSet from ...
36.479167
87
0.654927
27983012a990866b6ed6358312d4a4cf3317f698
1,567
py
Python
models/__init__.py
luyuzhe111/simsiam
ced608e8e9ff51f431f52d7da10d25e68b516b79
[ "MIT" ]
3
2021-05-25T08:35:55.000Z
2021-08-02T02:26:06.000Z
models/__init__.py
luyuzhe111/simsiam
ced608e8e9ff51f431f52d7da10d25e68b516b79
[ "MIT" ]
null
null
null
models/__init__.py
luyuzhe111/simsiam
ced608e8e9ff51f431f52d7da10d25e68b516b79
[ "MIT" ]
null
null
null
from .simsiam import SimSiam from .byol import BYOL from .simclr import SimCLR import torch import torch.nn as nn # from .backbones import resnet18_cifar_bn, resnet18_cifar_bn_ws, resnet18_cifar_gn, resnet18_cifar_gn_ws from .backbones import simsiam_resnet50_common_scratch, simsiam_resnet50_small_scratch, simsiam_resn...
33.340426
119
0.723676
e9f91adee3cf1423431ad35a9778217284d7e13b
4,238
py
Python
server/apps/property/forms.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/property/forms.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/property/forms.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
from django import forms from django.forms import ModelForm from crispy_forms.helper import FormHelper from crispy_forms.layout import HTML, Button, Div, Field, Layout, Submit from .models import * class GenericPropertyForm(ModelForm): class Meta: model = GenericProperty fields = ['name', 'str_...
36.852174
113
0.618452
36f8f1e39bff5d1ee97445371d4b5597a1373601
21,472
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/_virtual_network_peerings_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/_virtual_network_peerings_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/_virtual_network_peerings_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "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 ...
50.403756
250
0.676556
2dc9864a20bf954815eb7aeb0defeb1c63f5d8a2
1,152
py
Python
user/forms.py
Akshat-Kumar-0610/SULearn
2c5ba8c4d911db7417f30fdad358f81628e3f950
[ "MIT" ]
1
2021-08-15T15:38:37.000Z
2021-08-15T15:38:37.000Z
user/forms.py
Akshat-Kumar-0610/SULearn
2c5ba8c4d911db7417f30fdad358f81628e3f950
[ "MIT" ]
null
null
null
user/forms.py
Akshat-Kumar-0610/SULearn
2c5ba8c4d911db7417f30fdad358f81628e3f950
[ "MIT" ]
null
null
null
from .models import CreatorProfile,ViewerProfile from django import forms from django.contrib.auth.models import User class CreatorForm(forms.ModelForm): edu = forms.CharField(required=True,label='Education Qualification') class Meta: model = CreatorProfile exclude = ['user', 'doj','rating'] ...
38.4
72
0.624132
e977ce8e51a3e111c6d4ecd14d91580993492975
1,021
py
Python
digideep/environment/dmc2gym/__init__.py
sharif1093/digideep
e42f10a58cec6cab70ac2be5ce3af6102caefd81
[ "BSD-2-Clause" ]
11
2019-03-09T23:54:02.000Z
2020-09-05T20:47:55.000Z
log_sessions/cartpole_8_5_05_1/modules/digideep/environment/dmc2gym/__init__.py
godnpeter/DMC_Clustering_PICA
1b3e14dd4034f3941af1caa06c1d4b6f9d606408
[ "BSD-2-Clause" ]
1
2021-09-30T01:15:57.000Z
2021-09-30T01:15:57.000Z
digideep/environment/dmc2gym/__init__.py
sharif1093/digideep
e42f10a58cec6cab70ac2be5ce3af6102caefd81
[ "BSD-2-Clause" ]
null
null
null
from dm_control import suite from gym.envs.registration import register from .registration import EnvCreatorSuite # Register all benchmarks already in the suite. prefix = "DMBench" for domain_name, task_name in suite.BENCHMARKING: gym_id = '{}{}-v0'.format(domain_name.capitalize(), task_name.capitalize()) gym_...
32.935484
139
0.687561
df6c0326e1586b34b96461b445a262a243f8f838
10,315
py
Python
kubric/utils.py
ritmps/kubric
ef517ccdedeb304a7a9e77ba109552601a2ae98c
[ "Apache-2.0" ]
null
null
null
kubric/utils.py
ritmps/kubric
ef517ccdedeb304a7a9e77ba109552601a2ae98c
[ "Apache-2.0" ]
null
null
null
kubric/utils.py
ritmps/kubric
ef517ccdedeb304a7a9e77ba109552601a2ae98c
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The Kubric 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 agreed to in w...
39.07197
100
0.623752
ea65ae6af02236b4364b33528df308b097246164
8,384
py
Python
manila/api/v1/security_service.py
vponomaryov/manila
ffe135a5b35a0964179f0dc148d569037f26a929
[ "Apache-2.0" ]
null
null
null
manila/api/v1/security_service.py
vponomaryov/manila
ffe135a5b35a0964179f0dc148d569037f26a929
[ "Apache-2.0" ]
null
null
null
manila/api/v1/security_service.py
vponomaryov/manila
ffe135a5b35a0964179f0dc148d569037f26a929
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
38.635945
79
0.621541
46b5a0d3678baa1e4f95ae512e2ba5f504f3c183
2,299
py
Python
bites/bite122.py
ChidinmaKO/Chobe-bitesofpy
2f933e6c8877a37d1ce7ef54ea22169fc67417d3
[ "MIT" ]
null
null
null
bites/bite122.py
ChidinmaKO/Chobe-bitesofpy
2f933e6c8877a37d1ce7ef54ea22169fc67417d3
[ "MIT" ]
null
null
null
bites/bite122.py
ChidinmaKO/Chobe-bitesofpy
2f933e6c8877a37d1ce7ef54ea22169fc67417d3
[ "MIT" ]
1
2019-07-16T19:12:52.000Z
2019-07-16T19:12:52.000Z
def is_anagram(word1, word2): """Receives two words and returns True/False (boolean) if word2 is an anagram of word1, ignore case and spacing. About anagrams: https://en.wikipedia.org/wiki/Anagram""" # short way # word1 = word1.strip().replace(' ', '').lower() # word2 = word2.strip()....
29.101266
70
0.589387