hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
adaa9aea54e52fe3101af3cc0f1408e70edf2923
6,682
py
Python
Chapter17/lib/i2a.py
feiwang20/DRLHandsOn-Playground
b940c4959993d3ad7c6a2b0429b155d21cafe845
[ "MIT" ]
2,497
2018-05-25T09:45:54.000Z
2022-03-31T14:30:28.000Z
Chapter17/lib/i2a.py
feiwang20/DRLHandsOn-Playground
b940c4959993d3ad7c6a2b0429b155d21cafe845
[ "MIT" ]
94
2018-09-02T11:53:00.000Z
2022-03-02T07:36:31.000Z
Chapter17/lib/i2a.py
feiwang20/DRLHandsOn-Playground
b940c4959993d3ad7c6a2b0429b155d21cafe845
[ "MIT" ]
1,254
2018-05-23T11:21:24.000Z
2022-03-30T16:56:13.000Z
import ptan import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from . import common ROLLOUT_HIDDEN = 256 EM_OUT_SHAPE = (1, ) + common.IMG_SHAPE[1:] class EnvironmentModel(nn.Module): def __init__(self, input_shape, n_actions): super(EnvironmentModel, self).__init__(...
35.924731
118
0.601317
9db11f5f8c2a174e7114bb8ca435531af53462f1
400
py
Python
gram/migrations/0005_auto_20200604_2316.py
dgkilolo/Gram
7242cfa412d9e4014ee9bc5e1cbf76234d7633aa
[ "RSA-MD" ]
null
null
null
gram/migrations/0005_auto_20200604_2316.py
dgkilolo/Gram
7242cfa412d9e4014ee9bc5e1cbf76234d7633aa
[ "RSA-MD" ]
6
2021-03-19T04:20:58.000Z
2021-09-22T19:07:33.000Z
gram/migrations/0005_auto_20200604_2316.py
dgkilolo/Gram
7242cfa412d9e4014ee9bc5e1cbf76234d7633aa
[ "RSA-MD" ]
null
null
null
# Generated by Django 3.0.6 on 2020-06-04 20:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gram', '0004_auto_20200604_2250'), ] operations = [ migrations.AlterField( model_name='image', name='picture', ...
21.052632
67
0.5975
59bcb5ae74b2a247fb9d5ddb215b6d682f6eaf0f
2,301
py
Python
Apriori/Apriori.py
GreetingSit/MachineLearningAlgorithm
28bd6e38d08372ddb456428ba408929e30b2afd1
[ "MIT" ]
null
null
null
Apriori/Apriori.py
GreetingSit/MachineLearningAlgorithm
28bd6e38d08372ddb456428ba408929e30b2afd1
[ "MIT" ]
null
null
null
Apriori/Apriori.py
GreetingSit/MachineLearningAlgorithm
28bd6e38d08372ddb456428ba408929e30b2afd1
[ "MIT" ]
null
null
null
#Copyright (c) 2017 ChenyChen #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, merge, publish, distribute, sub...
38.35
145
0.644502
0d3580a606efab2c77423805567d303a495a1a5d
934
py
Python
test/fit_tests/tests/redfish10/test_redfish10_api_sessionservice.py
smiller171/RackHD
02a6406bb50d8b49efbc2b04ecd4435e0341aa65
[ "Apache-2.0" ]
null
null
null
test/fit_tests/tests/redfish10/test_redfish10_api_sessionservice.py
smiller171/RackHD
02a6406bb50d8b49efbc2b04ecd4435e0341aa65
[ "Apache-2.0" ]
null
null
null
test/fit_tests/tests/redfish10/test_redfish10_api_sessionservice.py
smiller171/RackHD
02a6406bb50d8b49efbc2b04ecd4435e0341aa65
[ "Apache-2.0" ]
null
null
null
''' Copyright 2016, EMC, Inc. Author(s): George Paulos ''' import os import sys import subprocess sys.path.append(subprocess.check_output("git rev-parse --show-toplevel", shell=True).rstrip("\n") + "/test/fit_tests/common") import fit_common # Select test group here using @attr from nose.plugins.attrib import attr ...
31.133333
125
0.737687
817ce2dbedda023ff60b30652d003ef7cfb4005c
1,730
py
Python
setup.py
stitchfix/caravel
087c47a37e45bb9c2608bbb2279188b59547e449
[ "Apache-2.0" ]
6
2016-06-07T14:07:34.000Z
2020-02-17T17:20:18.000Z
setup.py
stitchfix/caravel
087c47a37e45bb9c2608bbb2279188b59547e449
[ "Apache-2.0" ]
null
null
null
setup.py
stitchfix/caravel
087c47a37e45bb9c2608bbb2279188b59547e449
[ "Apache-2.0" ]
3
2016-09-27T14:13:02.000Z
2022-02-04T07:03:36.000Z
import imp, os from setuptools import setup, find_packages version = imp.load_source( 'version', os.path.join('caravel', 'version.py')) setup( name='caravel', description=( "A interactive data visualization platform build on SqlAlchemy " "and druid.io"), version=version.VERSION_STRING,...
32.037037
79
0.550867
906ee299a04c521b0fcc502b24b2c29ca4251341
3,090
py
Python
tools/verifyplaceholders.py
CyberFlameGO/dragonfly
4d106476132f94661554779e8c13851f050b4a8f
[ "ECL-2.0", "Apache-2.0" ]
58
2015-01-09T16:32:43.000Z
2021-11-25T04:38:18.000Z
tools/verifyplaceholders.py
CyberFlameGO/dragonfly
4d106476132f94661554779e8c13851f050b4a8f
[ "ECL-2.0", "Apache-2.0" ]
7
2015-01-23T22:10:00.000Z
2018-04-30T18:55:21.000Z
tools/verifyplaceholders.py
CyberFlameGO/dragonfly
4d106476132f94661554779e8c13851f050b4a8f
[ "ECL-2.0", "Apache-2.0" ]
24
2015-01-22T15:10:51.000Z
2021-10-31T21:45:06.000Z
# TODO # # This script is just a quick draft. # The functionality should probably be # included in existing scripts. # The purpose is to check if any of the place holders # in the master string file also exists in the generated # language file and if the place-holders are correct and complete. # import os import ...
24.330709
95
0.467961
ada475d9fce3aa96cad53e13884e5b191fba5aa3
236
py
Python
head-first-python/countfromby.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
2
2019-05-24T20:10:16.000Z
2020-07-11T06:06:43.000Z
head-first-python/countfromby.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
null
null
null
head-first-python/countfromby.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
21
2019-03-11T20:25:05.000Z
2022-02-28T13:53:10.000Z
class CountFromBy: def __init__(self, v: int, i: int) -> None: self.val = v self.incr = i def increase(self) - > None: self.val += self.incr def __repr__(self) -> str: return str(self.val)
19.666667
47
0.542373
b795e2be10afad669680f1e6317b371bde88a819
928
py
Python
app/user/views.py
sunnyrpandya/recipe-app-api
92fbefb9bd80e967cd1111ddc25c3c8da5980c39
[ "MIT" ]
null
null
null
app/user/views.py
sunnyrpandya/recipe-app-api
92fbefb9bd80e967cd1111ddc25c3c8da5980c39
[ "MIT" ]
null
null
null
app/user/views.py
sunnyrpandya/recipe-app-api
92fbefb9bd80e967cd1111ddc25c3c8da5980c39
[ "MIT" ]
null
null
null
from rest_framework import generics, authentication, permissions from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.settings import api_settings from user.serializers import UserSerializer, AuthTokenSerializer class CreateUserView(generics.CreateAPIView): """Create a new user in the s...
33.142857
66
0.786638
cb4f348e12f69bbc3010dc06c9cc20d3acd0e066
1,115
py
Python
TCP_Socket/tcp_server.py
LeandroTeodoroRJ/ExemplosPython
a1e91beeb55599b5bf0e8e876d2fc1c541d821cb
[ "MIT" ]
1
2021-12-24T20:46:29.000Z
2021-12-24T20:46:29.000Z
TCP_Socket/tcp_server.py
LeandroTeodoroRJ/ExemplosPython
a1e91beeb55599b5bf0e8e876d2fc1c541d821cb
[ "MIT" ]
null
null
null
TCP_Socket/tcp_server.py
LeandroTeodoroRJ/ExemplosPython
a1e91beeb55599b5bf0e8e876d2fc1c541d821cb
[ "MIT" ]
1
2021-12-24T20:46:20.000Z
2021-12-24T20:46:20.000Z
# EXEMPLO SERVIDOR TCP PARA PYTHON ''' Referências: https://docs.python.org/3/library/socket.html https://realpython.com/python-sockets/ ''' import socket import time servidor = socket.socket(socket.AF_INET,socket.SOCK_STREAM) #AF_INET -> Protocolo IP V4 #SOCK_TREAM -> TCP #SOCK_DGRAM -> UDP servidor.bind(('0.0.0.0...
32.794118
89
0.584753
12b88bf0665f206b4dd7895db1d940cc251bb614
4,294
py
Python
solve_captchas_with_model2.py
storopoli/Solving-Captchas
1d861da0c40bee63dae1b33d51ac31071ff376e3
[ "MIT" ]
1
2019-03-20T12:20:02.000Z
2019-03-20T12:20:02.000Z
solve_captchas_with_model2.py
storopoli/Solving-Captchas
1d861da0c40bee63dae1b33d51ac31071ff376e3
[ "MIT" ]
null
null
null
solve_captchas_with_model2.py
storopoli/Solving-Captchas
1d861da0c40bee63dae1b33d51ac31071ff376e3
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras.models import load_model from helpers import resize_to_fit from imutils import paths import numpy as np import imutils import cv2 import pickle MODEL_FILENAME = "captcha_model.hdf5" MODEL_LABELS_FILENAME = "model_labels.dat" CAPTCHA_IMAGE_FOLDER = "generated_captcha_image...
40.130841
99
0.693759
2523a35ec1f335dee390590fcf62e1bf039a4bce
578
py
Python
examples/dummy_plugin/dummy_plugin/migrations/0003_anotherdummymodel__custom_field_data.py
psmware-ltd/nautobot
ac516287fb8edcc3482bd011839de837c6bbf0df
[ "Apache-2.0" ]
384
2021-02-24T01:40:40.000Z
2022-03-30T10:30:59.000Z
examples/dummy_plugin/dummy_plugin/migrations/0003_anotherdummymodel__custom_field_data.py
psmware-ltd/nautobot
ac516287fb8edcc3482bd011839de837c6bbf0df
[ "Apache-2.0" ]
1,067
2021-02-24T00:58:08.000Z
2022-03-31T23:38:23.000Z
examples/dummy_plugin/dummy_plugin/migrations/0003_anotherdummymodel__custom_field_data.py
psmware-ltd/nautobot
ac516287fb8edcc3482bd011839de837c6bbf0df
[ "Apache-2.0" ]
128
2021-02-24T02:45:16.000Z
2022-03-20T18:48:36.000Z
# Generated by Django 3.1.13 on 2021-11-02 13:53 import django.core.serializers.json from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("dummy_plugin", "0002_anotherdummymodel"), ] operations = [ migrations.AddField( model_name=...
24.083333
71
0.596886
12d32c202c4e9a94e5f09a775d6dec99897bf71f
3,211
py
Python
requirements/compile.py
tolomea/django-perf-rec
308b1fc8e4d614a1a707b776c1e255946aa2dc2e
[ "MIT" ]
null
null
null
requirements/compile.py
tolomea/django-perf-rec
308b1fc8e4d614a1a707b776c1e255946aa2dc2e
[ "MIT" ]
null
null
null
requirements/compile.py
tolomea/django-perf-rec
308b1fc8e4d614a1a707b776c1e255946aa2dc2e
[ "MIT" ]
1
2020-08-18T10:44:22.000Z
2020-08-18T10:44:22.000Z
#!/usr/bin/env python import os import subprocess import sys from pathlib import Path if __name__ == "__main__": os.chdir(Path(__file__).parent) os.environ["CUSTOM_COMPILE_COMMAND"] = "requirements/compile.py" os.environ.pop("PIP_REQUIRE_VIRTUALENV") common_args = ["-m", "piptools", "compile", "--gener...
20.716129
83
0.35721
f5e2362075928ddb174cadf0af766c6901899377
2,675
py
Python
mayan/apps/reviewer_form/apps.py
dsduenas/fall-2021-hw2-team-name
c00e06c00611aab7f42dbcdb463eef4d604b9853
[ "Apache-2.0" ]
3
2021-09-15T20:27:41.000Z
2021-09-25T21:35:14.000Z
mayan/apps/reviewer_form/apps.py
dsduenas/fall-2021-hw2-team-name
c00e06c00611aab7f42dbcdb463eef4d604b9853
[ "Apache-2.0" ]
24
2021-09-27T20:30:08.000Z
2021-10-02T03:35:03.000Z
mayan/apps/reviewer_form/apps.py
dsduenas/fall-2021-hw2-team-name
c00e06c00611aab7f42dbcdb463eef4d604b9853
[ "Apache-2.0" ]
3
2021-09-15T20:32:00.000Z
2021-09-25T21:32:36.000Z
from django.apps import apps from django.utils.translation import ugettext_lazy as _ from mayan.apps.acls.classes import ModelPermission from mayan.apps.acls.permissions import permission_acl_edit, permission_acl_view from mayan.apps.common.apps import MayanAppConfig from mayan.apps.common.classes import ModelCopy, Mo...
29.076087
80
0.655327
223180928860ccbaec6649c0937be679756a0167
8,140
py
Python
prototxt_basic.py
ewrfcas/MXNet2Caffe
383ed9773f82ef4909f6674ab4b4398f98190f93
[ "MIT" ]
1
2018-03-22T06:34:14.000Z
2018-03-22T06:34:14.000Z
prototxt_basic.py
ewrfcas/MXNet2Caffe
383ed9773f82ef4909f6674ab4b4398f98190f93
[ "MIT" ]
null
null
null
prototxt_basic.py
ewrfcas/MXNet2Caffe
383ed9773f82ef4909f6674ab4b4398f98190f93
[ "MIT" ]
null
null
null
# prototxt_basic import sys import pprint attrstr = "attrs" def data(txt_file, info): txt_file.write('name: "mxnet-mdoel"\n') txt_file.write('layer {\n') txt_file.write(' name: "data"\n') txt_file.write(' type: "Input"\n') txt_file.write(' top: "data"\n') txt_file.write(' input_param {\n') txt_file....
35.701754
101
0.573096
5185247a46848c8afe9efa8321aa0bc1cdfa2121
1,537
py
Python
src/pypimod/sources/pypi_web.py
yeraydiazdiaz/pypimod
e456bc30f8c4d21158b80bd46eadd853e420aea6
[ "Apache-2.0" ]
2
2019-10-06T21:40:08.000Z
2019-10-07T00:18:03.000Z
src/pypimod/sources/pypi_web.py
yeraydiazdiaz/pypimod
e456bc30f8c4d21158b80bd46eadd853e420aea6
[ "Apache-2.0" ]
8
2019-10-26T16:12:04.000Z
2021-12-13T20:27:11.000Z
src/pypimod/sources/pypi_web.py
yeraydiazdiaz/pypimod
e456bc30f8c4d21158b80bd46eadd853e420aea6
[ "Apache-2.0" ]
null
null
null
from urllib.parse import urljoin from typing import List from bs4 import BeautifulSoup import httpx from pypimod import exceptions, constants async def get_pypi_urls(project_name: str) -> List[str]: """Fetch the projects PyPI page and return author email and maintainer URLs.""" project_url = constants.PYPI_...
30.74
87
0.707222
a4c96c44c4b36252593adc8c8b3a75235731dda3
21,260
py
Python
pyspeckit/spectrum/parinfo.py
glangsto/pyspeckit
346b24fb828d1d33c7891cdde7609723e51af34c
[ "MIT" ]
null
null
null
pyspeckit/spectrum/parinfo.py
glangsto/pyspeckit
346b24fb828d1d33c7891cdde7609723e51af34c
[ "MIT" ]
1
2021-05-14T19:17:41.000Z
2021-05-14T19:17:41.000Z
pyspeckit/spectrum/parinfo.py
glangsto/pyspeckit
346b24fb828d1d33c7891cdde7609723e51af34c
[ "MIT" ]
1
2018-10-02T15:11:17.000Z
2018-10-02T15:11:17.000Z
from __future__ import print_function from astropy.extern.six.moves import xrange try: from lmfit import Parameters, Parameter LMFIT_PARAMETERS_INSTALLED = True except ImportError: LMFIT_PARAMETERS_INSTALLED = False class ParinfoList(list): """ Store a list of model parameter values and their assoc...
36.095076
115
0.551317
17e3626046149463c52b424413476b007645fde0
3,319
py
Python
VMEncryption/main/oscrypto/rhel_72_lvm/encryptstates/PrereqState.py
taoyama/azure-linux-extensions
f46377658783ae933fe7007af65ced311259fb4a
[ "Apache-2.0" ]
2
2021-11-02T00:16:29.000Z
2022-02-17T12:08:42.000Z
VMEncryption/main/oscrypto/rhel_72_lvm/encryptstates/PrereqState.py
mbreakey3/azure-linux-extensions
3b58a1390fd0bc010e08f447368913bce5a21a8c
[ "Apache-2.0" ]
3
2019-07-29T20:25:09.000Z
2019-08-13T00:00:45.000Z
VMEncryption/main/oscrypto/rhel_72_lvm/encryptstates/PrereqState.py
ChrisCoe/azure-linux-extensions
1ca6fce15eca3ddefc33651b094c9a4b4e52fa31
[ "Apache-2.0" ]
1
2017-07-17T18:52:10.000Z
2017-07-17T18:52:10.000Z
#!/usr/bin/env python # # VM Backup extension # # Copyright 2015 Microsoft 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 # # U...
38.149425
110
0.619464
50d10cfd02ac3877419d8dc6f9a331ee27ff8199
3,842
py
Python
funcs/help.py
ridhwan-aziz/zipra_bot
de328e518aa6876fa91e96e007c198aae8ff2fd4
[ "MIT" ]
4
2021-11-11T03:44:21.000Z
2022-03-26T14:32:20.000Z
funcs/help.py
ridhwan-aziz/zipra_bot
de328e518aa6876fa91e96e007c198aae8ff2fd4
[ "MIT" ]
2
2021-11-23T07:02:35.000Z
2022-02-11T13:49:07.000Z
funcs/help.py
ridhwan-aziz/zipra_bot
de328e518aa6876fa91e96e007c198aae8ff2fd4
[ "MIT" ]
1
2021-11-25T13:30:24.000Z
2021-11-25T13:30:24.000Z
import logging from utils.lang import Language from utils.helper import ol_generator from telethon import __version__ from telethon.tl.custom.message import Message from telethon.tl.types import ( InputMessageEntityMentionName, InputUser, InputUserSelf, KeyboardButtonCallback, KeyboardButtonRow, ...
36.590476
96
0.542166
27a9e9fc6a5f46c188be6c4942baa2520dbebf5f
5,993
py
Python
examples/pwr_run/checkpointing/jobs_max_par/job19.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/jobs_max_par/job19.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/jobs_max_par/job19.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
""" #Trains a ResNet on the CIFAR10 dataset. """ from __future__ import print_function import keras from keras.layers import Dense, Conv2D, BatchNormalization, Activation from keras.layers import AveragePooling2D, Input, Flatten from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, LearningRa...
30.733333
118
0.703988
0b414380aeded17edeeb4565993f20349970f536
2,360
py
Python
portal_src/bin/utils/typesystem.py
bug00r/portal-py
388067bb571455f0249daffd04bb51606dc46194
[ "MIT" ]
null
null
null
portal_src/bin/utils/typesystem.py
bug00r/portal-py
388067bb571455f0249daffd04bb51606dc46194
[ "MIT" ]
null
null
null
portal_src/bin/utils/typesystem.py
bug00r/portal-py
388067bb571455f0249daffd04bb51606dc46194
[ "MIT" ]
null
null
null
import types, sys, builtins class Assembler(object): def __init__(self, descriptor): self.__descriptor = descriptor def get_attribute(self, _module, _typename): curmodule = _module for part in _typename.split("."): if hasattr(curmodule, part): curmodule = ...
31.891892
90
0.527966
f5dd9f8e47d4ce7055d4decf5f2448a53139c04d
728
py
Python
tests/image/test_image_filters.py
kungfuai/kaishi
e20360170ccac2111cab61fcd71b81be3c2a7468
[ "MIT" ]
10
2020-04-01T16:46:25.000Z
2021-02-09T15:56:42.000Z
tests/image/test_image_filters.py
kungfuai/kaishi
e20360170ccac2111cab61fcd71b81be3c2a7468
[ "MIT" ]
14
2020-03-23T13:32:35.000Z
2021-12-07T19:30:23.000Z
tests/image/test_image_filters.py
kungfuai/kaishi
e20360170ccac2111cab61fcd71b81be3c2a7468
[ "MIT" ]
2
2020-08-14T07:23:06.000Z
2021-12-06T18:20:42.000Z
from kaishi.image.file_group import ImageFileGroup def test_invalid_file_extensions(): test = ImageFileGroup("tests/data/image", recursive=True) test.configure_pipeline(["FilterInvalidFileExtensions"]) test.run_pipeline() assert len(test.filtered["unsupported_extension"]) > 0 def test_invalid_image_...
31.652174
61
0.744505
7d3ae4dfde9b111aa72dc4eedfdff4e5fbc9e95c
1,500
py
Python
StanCode Projects/campy_drawings/my_drawing.py
chengti-wang/stanCode-Projects
dec4ebb548e0b8a77478056775dca697ee1e11be
[ "MIT" ]
null
null
null
StanCode Projects/campy_drawings/my_drawing.py
chengti-wang/stanCode-Projects
dec4ebb548e0b8a77478056775dca697ee1e11be
[ "MIT" ]
null
null
null
StanCode Projects/campy_drawings/my_drawing.py
chengti-wang/stanCode-Projects
dec4ebb548e0b8a77478056775dca697ee1e11be
[ "MIT" ]
null
null
null
""" File: Name: ---------------------- TODO: """ from campy.graphics.gobjects import GOval, GRect, GPolygon from campy.graphics.gwindow import GWindow def main(): window = GWindow(width=500, height=500, title="drawing") ear1 = GOval(100, 100, x=90, y=90) paint(ear1, (184, 115, 51)) window.add(ear1) ...
22.058824
60
0.577333
733bdc8f9d8dee9619c17476c15d1cfa4e14489c
8,539
py
Python
kubernetes/client/apis/authentication_v1beta1_api.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
kubernetes/client/apis/authentication_v1beta1_api.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
kubernetes/client/apis/authentication_v1beta1_api.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.12.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os i...
37.951111
119
0.565289
00187aa93d685a6be66c4e1962e845d382be2cbe
999
py
Python
src/QuoteEngine/QuoteModel.py
WinCanton/meme-generator
b53963f932731584ea998236960f58fd39fa3a40
[ "MIT" ]
null
null
null
src/QuoteEngine/QuoteModel.py
WinCanton/meme-generator
b53963f932731584ea998236960f58fd39fa3a40
[ "MIT" ]
null
null
null
src/QuoteEngine/QuoteModel.py
WinCanton/meme-generator
b53963f932731584ea998236960f58fd39fa3a40
[ "MIT" ]
null
null
null
"""A class that defines and constructs Quote object. This class is used as part of the process of extracting Quote data from various types of input files. Having managed to extract data, ingestors shall utilise this class definition to construct Quote objects. """ class QuoteModel: """A class container that defi...
32.225806
68
0.706707
f5d74223eaccdfe1953e65b5340b645368f8dc6b
883
py
Python
setup.py
vaizki/python-tm35fin
e591e97f686a5ccc1ad62d0ab265c536573d9726
[ "MIT" ]
null
null
null
setup.py
vaizki/python-tm35fin
e591e97f686a5ccc1ad62d0ab265c536573d9726
[ "MIT" ]
null
null
null
setup.py
vaizki/python-tm35fin
e591e97f686a5ccc1ad62d0ab265c536573d9726
[ "MIT" ]
null
null
null
""" Package setup script for ETRS-TM35FIN coordinate system helper classes """ import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="tm35fin", version="0.1.1", author="Jukka Vaisanen", author_email="vaizki@vaizki.fi", d...
28.483871
74
0.654587
0b7f18c12ced8027b85cbb3b9310491a3f69e1f1
159
py
Python
PyTester/visitor/Visitor.py
Sildra/PyTester
ebe16dc4dc169416ee839adc03e42806d8d57620
[ "Apache-2.0" ]
null
null
null
PyTester/visitor/Visitor.py
Sildra/PyTester
ebe16dc4dc169416ee839adc03e42806d8d57620
[ "Apache-2.0" ]
null
null
null
PyTester/visitor/Visitor.py
Sildra/PyTester
ebe16dc4dc169416ee839adc03e42806d8d57620
[ "Apache-2.0" ]
null
null
null
class Visitor: """description of class""" @staticmethod def visit(obj): pass @staticmethod def leave(parent, child): pass
15.9
30
0.578616
feb462b48f41816c61eaf7e7020fa7939eea648a
2,249
py
Python
openpeerpower/components/daikin/switch.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
null
null
null
openpeerpower/components/daikin/switch.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
null
null
null
openpeerpower/components/daikin/switch.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
1
2019-04-24T14:10:08.000Z
2019-04-24T14:10:08.000Z
"""Support for Daikin AirBase zones.""" import logging from openpeerpower.helpers.entity import ToggleEntity from . import DOMAIN as DAIKIN_DOMAIN _LOGGER = logging.getLogger(__name__) ZONE_ICON = "mdi:home-circle" async def async_setup_platform(opp, config, async_add_entities, discovery_info=None): """Old wa...
28.1125
87
0.63317
ec41406f8b74144344bb0548faa8fceb2ed424f8
2,094
py
Python
tests/providers/google/cloud/operators/test_video_intelligence_system.py
naweedraja/airflow
4bec1cc489f5d19daf7450c75c3e8057c9709dbd
[ "Apache-2.0" ]
2
2020-03-24T14:47:18.000Z
2020-03-24T14:48:17.000Z
tests/providers/google/cloud/operators/test_video_intelligence_system.py
naweedraja/airflow
4bec1cc489f5d19daf7450c75c3e8057c9709dbd
[ "Apache-2.0" ]
1
2021-09-29T17:37:13.000Z
2021-09-29T17:37:13.000Z
tests/providers/google/cloud/operators/test_video_intelligence_system.py
naweedraja/airflow
4bec1cc489f5d19daf7450c75c3e8057c9709dbd
[ "Apache-2.0" ]
null
null
null
# # 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"); you may not...
38.777778
103
0.74212
62059442a8fcd86b36fea5f73be366a16f11ac1e
3,378
py
Python
wagtail/core/migrations/0062_comment_models_and_pagesubscription.py
brownaa/wagtail
c97bc56c6822eb1b6589d5c33e07f71acfc48845
[ "BSD-3-Clause" ]
2
2020-10-19T13:10:14.000Z
2020-11-29T05:17:13.000Z
wagtail/core/migrations/0062_comment_models_and_pagesubscription.py
brownaa/wagtail
c97bc56c6822eb1b6589d5c33e07f71acfc48845
[ "BSD-3-Clause" ]
3
2015-03-10T12:19:01.000Z
2021-10-14T22:24:06.000Z
wagtail/core/migrations/0062_comment_models_and_pagesubscription.py
brownaa/wagtail
c97bc56c6822eb1b6589d5c33e07f71acfc48845
[ "BSD-3-Clause" ]
2
2021-08-23T01:41:30.000Z
2021-08-23T17:02:32.000Z
# Generated by Django 3.0.3 on 2021-04-19 13:54 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import modelcluster.fields class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
51.969231
188
0.621078
7c5095fb3a55a4c2b9be64af91c0533c67af5a29
854
py
Python
app/tests_pre_start.py
tsatsujnr139/fastapi-role-based-access-control-auth-service
6c6addb04edad80e167424e39574697008eb0e64
[ "MIT" ]
47
2021-03-06T14:49:43.000Z
2022-03-05T12:18:59.000Z
app/tests_pre_start.py
tsatsujnr139/fastapi-role-based-access-control-auth-service
6c6addb04edad80e167424e39574697008eb0e64
[ "MIT" ]
5
2021-09-19T15:16:49.000Z
2022-01-26T15:47:48.000Z
app/tests_pre_start.py
tsatsujnr139/fastapi-role-based-access-control-auth-service
6c6addb04edad80e167424e39574697008eb0e64
[ "MIT" ]
15
2021-03-08T07:54:32.000Z
2022-03-09T13:57:23.000Z
import logging from tenacity import ( after_log, before_log, retry, stop_after_attempt, wait_fixed, ) from app.db.session import TestingSessionLocal logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) max_tries = 60 * 5 # 5 minutes wait_seconds = 1 @retry( stop=st...
19.409091
55
0.67096
a3306833e957bd68f633257b013954b9b0e8b670
4,290
py
Python
intg/src/test/python/test_ranger_client.py
mudit-97/ranger
cbe28e250fbb0ef578a76ba3ebd0e6efb92f3366
[ "Apache-2.0" ]
1
2021-01-18T06:17:04.000Z
2021-01-18T06:17:04.000Z
intg/src/test/python/test_ranger_client.py
mudit-97/ranger
cbe28e250fbb0ef578a76ba3ebd0e6efb92f3366
[ "Apache-2.0" ]
null
null
null
intg/src/test/python/test_ranger_client.py
mudit-97/ranger
cbe28e250fbb0ef578a76ba3ebd0e6efb92f3366
[ "Apache-2.0" ]
1
2021-04-05T16:54:54.000Z
2021-04-05T16:54:54.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 "Li...
37.964602
126
0.668998
0aab2f8d20a6cebbaf7c3678ed5835b523ed8417
5,133
py
Python
onlinecourse/models.py
VenkataLeela02/Django-online-course
a8eaaebd7cd47bf7f539f2894f9e46e61d0083c5
[ "Apache-2.0" ]
null
null
null
onlinecourse/models.py
VenkataLeela02/Django-online-course
a8eaaebd7cd47bf7f539f2894f9e46e61d0083c5
[ "Apache-2.0" ]
null
null
null
onlinecourse/models.py
VenkataLeela02/Django-online-course
a8eaaebd7cd47bf7f539f2894f9e46e61d0083c5
[ "Apache-2.0" ]
null
null
null
import sys from django.utils.timezone import now try: from django.db import models except Exception: print("There was an error loading django modules. Do you have django installed?") sys.exit() from django.conf import settings import uuid # Instructor model class Instructor(models.Model): user = mode...
33.54902
104
0.698617
884653da3b0fbd5a0149b03ebc26425732eb1b2a
412
py
Python
lostik/lostik.py
anarkiwi/radiostuff
8586747b50603e0cad567de7c7ce231fd94a36c5
[ "BSD-3-Clause" ]
10
2018-12-25T23:49:24.000Z
2021-10-03T00:05:25.000Z
lostik/lostik.py
anarkiwi/radiostuff
8586747b50603e0cad567de7c7ce231fd94a36c5
[ "BSD-3-Clause" ]
3
2018-02-18T11:55:54.000Z
2021-11-08T22:09:32.000Z
lostik/lostik.py
anarkiwi/radiostuff
8586747b50603e0cad567de7c7ce231fd94a36c5
[ "BSD-3-Clause" ]
8
2017-04-09T13:07:30.000Z
2021-09-10T01:25:12.000Z
#!/usr/bin/env python3 def send_cmd(ser, cmd, checker=None): print("SEND> %s" % cmd) ser.write((cmd + "\r\n").encode('utf-8')) ret = read_line(ser) if checker is not None: if ret != checker: raise Exception("bad reply to <%s>: Want <%s>, got <%s>" % (cmd, checker, ret)) return r...
27.466667
91
0.57767
ed3219e6ca62c15df24225139d7b567630908a94
152
py
Python
tensorclan/dataset/__init__.py
extensive-vision-ai/TheTensorClan
54b50fcb8f309909478547f37f171d022a838167
[ "MIT" ]
null
null
null
tensorclan/dataset/__init__.py
extensive-vision-ai/TheTensorClan
54b50fcb8f309909478547f37f171d022a838167
[ "MIT" ]
11
2020-07-31T02:26:29.000Z
2022-02-08T18:59:59.000Z
tensorclan/dataset/__init__.py
extensive-vision-ai/TheTensorClan
54b50fcb8f309909478547f37f171d022a838167
[ "MIT" ]
1
2020-11-24T17:02:54.000Z
2020-11-24T17:02:54.000Z
from .base_dataset import BaseDataset from .zoo import * from .dataset import dataset, get_dataset, get_dataset_cls from .utils import get_mean_and_std
30.4
58
0.835526
0a6867f891e66a7b37b3eef0552b07d1915c6ead
2,399
py
Python
py_scripts/dtw.py
yu-sakana/dartspose
7d65beaf037840511fac18cde8da07e5656c94e6
[ "Apache-2.0" ]
null
null
null
py_scripts/dtw.py
yu-sakana/dartspose
7d65beaf037840511fac18cde8da07e5656c94e6
[ "Apache-2.0" ]
null
null
null
py_scripts/dtw.py
yu-sakana/dartspose
7d65beaf037840511fac18cde8da07e5656c94e6
[ "Apache-2.0" ]
null
null
null
import numpy as np import pylab as plt import seaborn as sns import pandas as pd d = lambda a,b: (a - b)**2 first = lambda x: x[0] second = lambda x: x[1] def Normalization(p): min_p = p.min() max_p = p.max() nor = (p - min_p) / (max_p - min_p) return nor def minVal(v1, v2, v3): if first(v1) <= min(first...
24.989583
73
0.498124
57742affd77e4d3bd0013ca61905d9fb7fe33b54
991
py
Python
test/test_linear.py
oshToy/Character-Aware-LM-WER
555e04e4ad0acdbc32c7b57a75b0ec72d2d1b762
[ "MIT" ]
240
2016-09-24T06:51:47.000Z
2021-05-31T12:19:48.000Z
test/test_linear.py
oshToy/Character-Aware-LM-WER
555e04e4ad0acdbc32c7b57a75b0ec72d2d1b762
[ "MIT" ]
21
2016-08-26T19:40:56.000Z
2019-06-19T14:46:19.000Z
test/test_linear.py
oshToy/Character-Aware-LM-WER
555e04e4ad0acdbc32c7b57a75b0ec72d2d1b762
[ "MIT" ]
105
2016-10-04T09:51:59.000Z
2021-11-21T12:10:54.000Z
from __future__ import print_function from __future__ import division import tensorflow as tf import numpy as np from model import linear class TestLinear(tf.test.TestCase): def test(self): with self.test_session() as sess: m = tf.constant(np.array([ [1.0, 2.0], ...
23.595238
51
0.382442
cad70b83929b07e7b357bbc36c463aa14f554d88
5,240
py
Python
tools/get_photo.py
bokunimowakaru/m5nicr
e41d4ca722cc335986863e0d599349c43fc9c43e
[ "MIT" ]
2
2020-11-17T22:11:45.000Z
2020-12-27T09:53:06.000Z
tools/get_photo.py
bokunimowakaru/m5nicr
e41d4ca722cc335986863e0d599349c43fc9c43e
[ "MIT" ]
null
null
null
tools/get_photo.py
bokunimowakaru/m5nicr
e41d4ca722cc335986863e0d599349c43fc9c43e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 ################################################################################ # カメラからの配信画像を取得する Python版 # ################################################################################ # 使用、改変、再配布は自由に行えますが、無保証です。権利情報の改変は不可です。 # Copyri...
57.582418
80
0.358779
fb7163197de27fd924acf409a0b96c455d15352c
9,766
py
Python
yandex/cloud/mdb/mongodb/v1/resource_preset_service_pb2.py
korsar182/python-sdk
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
[ "MIT" ]
36
2018-12-23T13:51:50.000Z
2022-03-25T07:48:24.000Z
yandex/cloud/mdb/mongodb/v1/resource_preset_service_pb2.py
korsar182/python-sdk
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
[ "MIT" ]
15
2019-02-28T04:55:09.000Z
2022-03-06T23:17:24.000Z
yandex/cloud/mdb/mongodb/v1/resource_preset_service_pb2.py
korsar182/python-sdk
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
[ "MIT" ]
18
2019-02-23T07:10:57.000Z
2022-03-28T14:41:08.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: yandex/cloud/mdb/mongodb/v1/resource_preset_service.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import r...
46.504762
1,274
0.799508
3c6e880213c0d51be5e1c62ee1aff7cca1debb53
453
py
Python
server/src/models/abstract_models/meal_model.py
minhman727/miao-nutrition-assistant-
9cdd54d932f2018d404236bbc5874003e0c6f666
[ "MIT" ]
null
null
null
server/src/models/abstract_models/meal_model.py
minhman727/miao-nutrition-assistant-
9cdd54d932f2018d404236bbc5874003e0c6f666
[ "MIT" ]
null
null
null
server/src/models/abstract_models/meal_model.py
minhman727/miao-nutrition-assistant-
9cdd54d932f2018d404236bbc5874003e0c6f666
[ "MIT" ]
null
null
null
from mongoengine import * from src.models.abstract_models.meal_detail_model import MealDetail from src.constants.enums import MealType from models.abstract_models.nutrition_base_model import NutritionBase class Meal(NutritionBase): mealType = EnumField(MealType, required=True) mealDetailId = ListField(GenericR...
34.846154
69
0.779249
4d411363d2b2fcfc6cd8125608af4c038926c03d
463
py
Python
cride/circles/permissions/circles.py
Bruno321/cride
bfd911694e3a22f70272f17cde464f5d665d2033
[ "MIT" ]
null
null
null
cride/circles/permissions/circles.py
Bruno321/cride
bfd911694e3a22f70272f17cde464f5d665d2033
[ "MIT" ]
null
null
null
cride/circles/permissions/circles.py
Bruno321/cride
bfd911694e3a22f70272f17cde464f5d665d2033
[ "MIT" ]
null
null
null
from rest_framework.permissions import BasePermission from cride.circles.models import Membership class IsCircleAdmin(BasePermission): def has_object_permission(self,request,view,obj): try: Membership.objects.get( user=request.user, circle=obj, i...
28.9375
53
0.609071
2a5c525bd4444d189b8d37e8ec4d4876f7771675
20,473
py
Python
chapter_10/app_v10_1.py
shane-kercheval/Interactive-Dashboards-and-Data-Apps-with-Plotly-and-Dash
3652e6fc5da31afe91410d7db140129152e08289
[ "MIT" ]
null
null
null
chapter_10/app_v10_1.py
shane-kercheval/Interactive-Dashboards-and-Data-Apps-with-Plotly-and-Dash
3652e6fc5da31afe91410d7db140129152e08289
[ "MIT" ]
null
null
null
chapter_10/app_v10_1.py
shane-kercheval/Interactive-Dashboards-and-Data-Apps-with-Plotly-and-Dash
3652e6fc5da31afe91410d7db140129152e08289
[ "MIT" ]
null
null
null
import re from typing import Collection import dash import dash_html_components as html import dash_core_components as dcc import dash_bootstrap_components as dbc from dash.dependencies import Output, Input, State from dash.exceptions import PreventUpdate from dash_table import DataTable import plotly.graph_objects as...
40.621032
132
0.52093
4a81bfc91d2b574a11a99cfa8add7a75f11933f3
2,825
py
Python
msautotest/mspython/test_mapio.py
MapServer-backport-bot/MapServer
bec3033ed54949b075fbd0646b3d7bda26ea1b8a
[ "Unlicense" ]
null
null
null
msautotest/mspython/test_mapio.py
MapServer-backport-bot/MapServer
bec3033ed54949b075fbd0646b3d7bda26ea1b8a
[ "Unlicense" ]
1
2021-06-07T17:49:05.000Z
2021-06-07T18:07:15.000Z
msautotest/mspython/test_mapio.py
MapServer-backport-bot/MapServer
bec3033ed54949b075fbd0646b3d7bda26ea1b8a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: MapServer # Purpose: Regression test for mapio # Author: Even Rouault # ############################################################################### # Copyright (c) 2...
39.788732
156
0.660531
940df2a8dd4ef74dcdb6ee05f2ff644b7d1cd136
102,719
py
Python
pysnmp-with-texts/RADIO-BRIDGE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/RADIO-BRIDGE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/RADIO-BRIDGE-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module RADIO-BRIDGE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RADIO-BRIDGE-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:44:43 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar ...
101.500988
9,252
0.779642
5e20b491557fce30601a0fe806711a051bb9e47b
3,165
py
Python
lib/model/faster_rcnn/resnet.py
Arieszhang1994/faster-rcnn_pytorch
a25dcf2bb9aeb22b508e67edb5ba093a482a30ad
[ "MIT" ]
4
2018-11-16T12:32:49.000Z
2019-05-09T10:03:21.000Z
lib/model/faster_rcnn/resnet.py
Arieszhang1994/faster-rcnn_pytorch
a25dcf2bb9aeb22b508e67edb5ba093a482a30ad
[ "MIT" ]
null
null
null
lib/model/faster_rcnn/resnet.py
Arieszhang1994/faster-rcnn_pytorch
a25dcf2bb9aeb22b508e67edb5ba093a482a30ad
[ "MIT" ]
1
2019-01-02T12:50:36.000Z
2019-01-02T12:50:36.000Z
# -------------------------------------------------------- # Pytorch Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Aries Zhang, based on code from Jiasen Lu, Jianwei Yang # -------------------------------------------------------- from __future__ import absolute_import from __futur...
34.78022
94
0.683728
38c80c8d85f8884e9a70dee615a77aa2949985da
5,642
py
Python
Dataset/Cross-Platform/saveGABModelAGNN.py
hate-alert/Hateful-users-detection
a71cd51df339c0c7e327e08961b18ceb5ced9255
[ "MIT" ]
1
2021-08-08T02:55:58.000Z
2021-08-08T02:55:58.000Z
Dataset/Cross-Platform/saveGABModelAGNN.py
hate-alert/Hateful-users-detection
a71cd51df339c0c7e327e08961b18ceb5ced9255
[ "MIT" ]
null
null
null
Dataset/Cross-Platform/saveGABModelAGNN.py
hate-alert/Hateful-users-detection
a71cd51df339c0c7e327e08961b18ceb5ced9255
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import os.path as osp import torch import torch.nn.functional as F from torch_geometric.datasets import Planetoid import torch_geometric.transforms as T from torch_geometric.nn import SGConv, ARMAConv, SAGEConv, AGNNConv import pickle import numpy as np import random import time ...
24.008511
117
0.676356
9403bc6870c9a8153324a0acb53956769fe555ff
396
py
Python
pontoon/sync/templatetags/helpers.py
Tratty/pontoon
ecb903d72f9274f02137b16669cc3c5859f6329c
[ "BSD-3-Clause" ]
3
2020-01-27T12:26:20.000Z
2022-02-03T09:56:02.000Z
pontoon/sync/templatetags/helpers.py
texnoman/pontoon-src
6b40ac229605e99966c3bdd1510b772c89d4de24
[ "BSD-3-Clause" ]
9
2021-03-10T21:34:51.000Z
2022-02-19T03:30:06.000Z
pontoon/sync/templatetags/helpers.py
texnoman/pontoon-src
6b40ac229605e99966c3bdd1510b772c89d4de24
[ "BSD-3-Clause" ]
4
2020-01-26T21:28:43.000Z
2021-06-10T15:25:19.000Z
from __future__ import absolute_import from django_jinja import library from pontoon.sync.models import ProjectSyncLog PROJECT_SYNC_LOG_STATUS = { ProjectSyncLog.IN_PROGRESS: "In-progress", ProjectSyncLog.SKIPPED: "Skipped", ProjectSyncLog.SYNCED: "Synced", } @library.global_function def project_log_s...
22
53
0.785354
9ed265aabc180fe94e7d8a09bcce79cf4aa9b46e
472
py
Python
lib/taniumpy/object_types/upload_file_list.py
c1rdan/pytan
5e537a6dcf4136e3b9c3905a39f073396e7f044f
[ "MIT" ]
1
2019-01-29T21:22:06.000Z
2019-01-29T21:22:06.000Z
lib/taniumpy/object_types/upload_file_list.py
c1rdan/pytan
5e537a6dcf4136e3b9c3905a39f073396e7f044f
[ "MIT" ]
null
null
null
lib/taniumpy/object_types/upload_file_list.py
c1rdan/pytan
5e537a6dcf4136e3b9c3905a39f073396e7f044f
[ "MIT" ]
null
null
null
# Copyright (c) 2015 Tanium Inc # # Generated from console.wsdl version 0.0.1 # # from .base import BaseType class UploadFileList(BaseType): _soap_tag = 'file_parts' def __init__(self): BaseType.__init__( self, simple_properties={}, complex_properties={}, ...
16.857143
56
0.586864
6a11c29c83517ed22203108d8921c682b43b144c
4,650
py
Python
tempest/tests/lib/services/compute/test_security_groups_client.py
Hybrid-Cloud/hybrid-tempest
319e90c6fa6e46925b495c93cd5258f088a30ec0
[ "Apache-2.0" ]
3
2016-07-15T12:27:23.000Z
2021-04-23T04:41:10.000Z
tempest/tests/lib/services/compute/test_security_groups_client.py
LIS/lis-tempest
8e6403b2d6de81c5d18ed867b4977385c8278b75
[ "Apache-2.0" ]
null
null
null
tempest/tests/lib/services/compute/test_security_groups_client.py
LIS/lis-tempest
8e6403b2d6de81c5d18ed867b4977385c8278b75
[ "Apache-2.0" ]
12
2016-07-14T18:13:05.000Z
2017-07-08T18:45:42.000Z
# Copyright 2015 NEC Corporation. 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 ...
40.789474
78
0.710323
7756b1b471946ba102aa052fc2cc68b41cc050e4
5,208
py
Python
utils/tlm_decode.py
mjmccaskey/cFS-EDS-GroundStation
02995f26c649f423a5b7e2c95447c951f197b880
[ "Apache-2.0" ]
12
2022-02-06T18:55:56.000Z
2022-03-25T20:28:35.000Z
utils/tlm_decode.py
mjmccaskey/cFS-EDS-GroundStation
02995f26c649f423a5b7e2c95447c951f197b880
[ "Apache-2.0" ]
7
2022-02-07T21:20:31.000Z
2022-03-24T10:31:08.000Z
utils/tlm_decode.py
mjmccaskey/cFS-EDS-GroundStation
02995f26c649f423a5b7e2c95447c951f197b880
[ "Apache-2.0" ]
3
2020-10-27T15:59:47.000Z
2021-11-04T15:23:39.000Z
''' LEW-20210-1, Python Ground Station for a Core Flight System with CCSDS Electronic Data Sheets Support Copyright (c) 2020 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "Lice...
31.563636
101
0.670699
4450898c935a0afe1412ebff94dab7e24476d13f
3,863
py
Python
PyWidget3/shape/ellipse.py
galaxyjim/PyWidget3
eb3d269e4e7d8a68ca957d32bc704e31eca20015
[ "BSD-3-Clause" ]
null
null
null
PyWidget3/shape/ellipse.py
galaxyjim/PyWidget3
eb3d269e4e7d8a68ca957d32bc704e31eca20015
[ "BSD-3-Clause" ]
23
2015-03-14T00:03:11.000Z
2015-04-10T23:24:21.000Z
PyWidget3/shape/ellipse.py
galaxyjim/PyWidget3
eb3d269e4e7d8a68ca957d32bc704e31eca20015
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # Copyright (c) 2009 Nicolas Rougier # Copyright (c) 2015 James Gaston # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitt...
37.872549
80
0.665286
9fafc0deb551ba4e10e2569b60c9a6826c2b71fd
20,852
py
Python
src/sentry/migrations/0069_auto__add_lostpasswordhash.py
NickPresta/sentry
ed3e6034ef560e18f392ba30071de860557b7b43
[ "BSD-3-Clause" ]
2
2015-10-14T12:45:32.000Z
2016-01-27T03:24:43.000Z
src/sentry/migrations/0069_auto__add_lostpasswordhash.py
NickPresta/sentry
ed3e6034ef560e18f392ba30071de860557b7b43
[ "BSD-3-Clause" ]
null
null
null
src/sentry/migrations/0069_auto__add_lostpasswordhash.py
NickPresta/sentry
ed3e6034ef560e18f392ba30071de860557b7b43
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'LostPasswordHash' db.create_table('sentry_lostpasswordhash', ( ('id', self.gf('d...
80.2
182
0.55846
94a3fd07e2eca662089481ffb765beac7619a48d
2,383
py
Python
projects/eurostat/handlers/PackageFiles.py
oboforty/geogine
b2f865fa351f01608088325b3a43ce3d0a24df3b
[ "MIT" ]
null
null
null
projects/eurostat/handlers/PackageFiles.py
oboforty/geogine
b2f865fa351f01608088325b3a43ce3d0a24df3b
[ "MIT" ]
null
null
null
projects/eurostat/handlers/PackageFiles.py
oboforty/geogine
b2f865fa351f01608088325b3a43ce3d0a24df3b
[ "MIT" ]
null
null
null
import os import shutil from geoprocessing.core import EmePiperApp as pipe from geoprocessing.entities import GeogineObj, OriginReference, FileLabel class PackageFiles(pipe.SyncDataProcesser): requires = [ ('dae file', FileLabel), ('fbx file', FileLabel) ] provides = 'final pr...
29.419753
94
0.579102
a549066fddd2ec9b0e3ea6ce292ad3e419489071
1,650
py
Python
setup.py
messari/messari-python-api-private
b027b691b570bc804e4b55a95cf1046ed1dbde86
[ "MIT" ]
2
2022-03-16T06:28:57.000Z
2022-03-22T19:48:22.000Z
setup.py
messari/messari-python-api-private
b027b691b570bc804e4b55a95cf1046ed1dbde86
[ "MIT" ]
2
2022-01-06T07:28:23.000Z
2022-01-31T03:55:20.000Z
setup.py
messari/messari-python-api-private
b027b691b570bc804e4b55a95cf1046ed1dbde86
[ "MIT" ]
2
2022-03-16T06:29:00.000Z
2022-03-25T09:03:20.000Z
from setuptools import setup # read the contents of your README file from pathlib import Path this_directory = Path(__file__).parent long_description = (this_directory / "README.md").read_text() setup( name='messari', version='0.0.1', packages=['messari', 'messari.defillama', ...
35.106383
93
0.610303
932788f2f342d9b5659b920dfff323e0a9d67c98
7,233
py
Python
src/ITN/srmg/common/util.py
Yulv-git/Awesome-Ultrasound-Standard-Plane-Detection
2e35afaa891badf5a235b5d995102e4dc8a4cf0d
[ "MIT" ]
1
2022-03-24T06:54:36.000Z
2022-03-24T06:54:36.000Z
src/ITN/srmg/common/util.py
Yulv-git/Awesome-Ultrasound-Standard-Plane-Detection
2e35afaa891badf5a235b5d995102e4dc8a4cf0d
[ "MIT" ]
null
null
null
src/ITN/srmg/common/util.py
Yulv-git/Awesome-Ultrasound-Standard-Plane-Detection
2e35afaa891badf5a235b5d995102e4dc8a4cf0d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 ''' Author: Shuangchi He / Yulv Email: yulvchi@qq.com Date: 2022-03-19 10:33:38 Motto: Entities should not be multiplied unnecessarily. LastEditors: Shuangchi He LastEditTime: 2022-03-23 01:03:25 FilePath: /Awesome-Ultrasound-Standard-Plane-Detection/src/ITN/srmg/common/util.py Desc...
29.402439
109
0.597954
b325a6e6b06e03e5760616b75b1a6e3d90bb8b15
1,094
py
Python
common/src/stack/command/stack/commands/list/host/key/__init__.py
knutsonchris/stacki
33087dd5fa311984a66ccecfeee6f9c2c25f665d
[ "BSD-3-Clause" ]
123
2015-05-12T23:36:45.000Z
2017-07-05T23:26:57.000Z
common/src/stack/command/stack/commands/list/host/key/__init__.py
knutsonchris/stacki
33087dd5fa311984a66ccecfeee6f9c2c25f665d
[ "BSD-3-Clause" ]
177
2015-06-05T19:17:47.000Z
2017-07-07T17:57:24.000Z
common/src/stack/command/stack/commands/list/host/key/__init__.py
knutsonchris/stacki
33087dd5fa311984a66ccecfeee6f9c2c25f665d
[ "BSD-3-Clause" ]
32
2015-06-07T02:25:03.000Z
2017-06-23T07:35:35.000Z
# @copyright@ # Copyright (c) 2006 - 2019 Teradata # All rights reserved. Stacki(r) v5.x stacki.com # https://github.com/Teradata/stacki/blob/master/LICENSE.txt # @copyright@ # # @rocks@ # Copyright (c) 2000 - 2010 The Regents of the University of California # All rights reserved. Rocks(r) v5.4 www.rocksclusters.org # ...
26.682927
71
0.6883
a873800ee3061742a9cee90d3b366e407b3357af
1,041
py
Python
bridge_evolver.py
ihasdapie/Evolutionary_Bridge_Designer
45d81af60d64e2a7cb29a278e6c21b062e14be94
[ "MIT" ]
null
null
null
bridge_evolver.py
ihasdapie/Evolutionary_Bridge_Designer
45d81af60d64e2a7cb29a278e6c21b062e14be94
[ "MIT" ]
null
null
null
bridge_evolver.py
ihasdapie/Evolutionary_Bridge_Designer
45d81af60d64e2a7cb29a278e6c21b062e14be94
[ "MIT" ]
1
2020-12-06T05:44:37.000Z
2020-12-06T05:44:37.000Z
from bridgelib2 import * import math as math import random as random from tqdm import tqdm import matplotlib.pyplot as plt import numpy as np mandatory_length = 1280 # b1 = Bridge(1.27, 100.54, mandatory_length, 105, 2, 2, 1, 55, 91.45) b1 = Bridge(1.27, 20.54, mandatory_length, 105, 2, 2, 1, 55, 91.45) list_of_bear...
24.209302
83
0.730067
8e47ecf80450e454dc3b0ec2524dde3f024c0596
871
py
Python
synthetics/maths.py
kristianeschenburg/DeepImageRecon
5192a7e5e535778d248878c2fbd4476a951490d9
[ "Apache-2.0" ]
null
null
null
synthetics/maths.py
kristianeschenburg/DeepImageRecon
5192a7e5e535778d248878c2fbd4476a951490d9
[ "Apache-2.0" ]
null
null
null
synthetics/maths.py
kristianeschenburg/DeepImageRecon
5192a7e5e535778d248878c2fbd4476a951490d9
[ "Apache-2.0" ]
null
null
null
import numpy as np import nibabel as nb def add(original, in_images, weights, filename=None): """ Method to combine linearly combine set of images. Parameters: - - - - - original: string input image file to add corruption to in_images: list, string images to corrupt original i...
23.540541
53
0.637199
feb53a77964e6060664f35701ff4d84f2ae796a1
1,170
py
Python
tests/nlp_reasoning/test_data_utils.py
edmundmills/nlp-reasoning
7b804534d53287eb08db85d5f454bc65afc6834b
[ "MIT" ]
null
null
null
tests/nlp_reasoning/test_data_utils.py
edmundmills/nlp-reasoning
7b804534d53287eb08db85d5f454bc65afc6834b
[ "MIT" ]
null
null
null
tests/nlp_reasoning/test_data_utils.py
edmundmills/nlp-reasoning
7b804534d53287eb08db85d5f454bc65afc6834b
[ "MIT" ]
null
null
null
from nlp_reasoning.data_utils import * def test_parse_data(): generator = parse_data('data/Sarcasm_Headlines_Dataset_v2.json') assert(next(generator) is not None) class TestCleanText: def test_already_clean(self): text = 'I like to go to the store' assert(clean_text(text) == text) ...
28.536585
68
0.622222
001726d8e04c5eebe5f249e7ac5fd57252e20cdd
499
py
Python
Python_Exercicios/Mundo1/Condições em Python (if..else)/python_032.py
jbauermanncode/Curso_Em_Video_Python
330c207d7bed4e663fe1b9ab433ab57a9828b7f1
[ "MIT" ]
null
null
null
Python_Exercicios/Mundo1/Condições em Python (if..else)/python_032.py
jbauermanncode/Curso_Em_Video_Python
330c207d7bed4e663fe1b9ab433ab57a9828b7f1
[ "MIT" ]
null
null
null
Python_Exercicios/Mundo1/Condições em Python (if..else)/python_032.py
jbauermanncode/Curso_Em_Video_Python
330c207d7bed4e663fe1b9ab433ab57a9828b7f1
[ "MIT" ]
null
null
null
''' Faça um programa que leia um ano qualquer e mostre se ele é bissexto. ''' # Importar a função date do módulo datetime from datetime import date # Ler ano ano = int(input("Que ano você quer analisar? Coloque 0 para analisar: ")) # Para saber sobre o ano atual if ano == 0: ano = date.today().year # Estrutu...
26.263158
73
0.659319
b5c3db598dfe77996183e8bd93bd21fa5648c45e
2,871
py
Python
lib/python2.6/site-packages/Sphinx-1.1.3-py2.6.egg/sphinx/util/inspect.py
stenwt/mediagoblin-quickstart-openshift
4a728c4b3b988c59eb9a43ad1ae1ca5edf8bc3c2
[ "CC0-1.0" ]
1
2016-02-10T18:22:42.000Z
2016-02-10T18:22:42.000Z
docs/build/sphinx/sphinx/util/inspect.py
mjtamlyn/django-braces
8adc9bc4f5139e3d032d4e38657bf86413388b78
[ "BSD-3-Clause" ]
1
2016-04-19T13:03:17.000Z
2016-04-19T13:03:17.000Z
docs/build/sphinx/sphinx/util/inspect.py
mjtamlyn/django-braces
8adc9bc4f5139e3d032d4e38657bf86413388b78
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ sphinx.util.inspect ~~~~~~~~~~~~~~~~~~~ Helpers for inspecting Python modules. :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import sys # this imports the standard library inspect module without resorting ...
29.90625
80
0.603622
7466580fc173fa42b1d85f7ff630396e4d824a99
7,400
py
Python
geoevents/operations/views.py
mcenirm/geoevents
f78cc09b8bcc8c6e4eee0d1de14e5becad7d49e6
[ "MIT" ]
25
2015-01-06T15:37:31.000Z
2020-12-10T19:05:22.000Z
geoevents/operations/views.py
mcenirm/geoevents
f78cc09b8bcc8c6e4eee0d1de14e5becad7d49e6
[ "MIT" ]
2
2015-01-31T02:36:58.000Z
2015-02-01T00:11:15.000Z
geoevents/operations/views.py
mcenirm/geoevents
f78cc09b8bcc8c6e4eee0d1de14e5becad7d49e6
[ "MIT" ]
5
2016-01-01T15:04:49.000Z
2019-05-30T23:34:30.000Z
# This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and # is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012) from django.contrib import messages from django.core import serializers from django.core.exceptions import Permis...
33.183857
140
0.673784
cd48b64012d408a4cb5f4834cae8cd645e76d359
3,100
py
Python
Contest/LeetCode/WeeklyContest193/3.py
WatsonWangZh/CodingPractice
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
[ "MIT" ]
11
2019-09-01T22:36:00.000Z
2021-11-08T08:57:20.000Z
Contest/LeetCode/WeeklyContest193/3.py
WatsonWangZh/LeetCodePractice
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
[ "MIT" ]
null
null
null
Contest/LeetCode/WeeklyContest193/3.py
WatsonWangZh/LeetCodePractice
dc057dd6ea2fc2034e14fd73e07e73e6364be2ae
[ "MIT" ]
2
2020-05-27T14:58:52.000Z
2020-05-27T15:04:17.000Z
# 5455. Minimum Number of Days to Make m Bouquets # User Accepted:1394 # User Tried:3068 # Total Accepted:1442 # Total Submissions:6104 # Difficulty:Medium # Given an integer array bloomDay, an integer m and an integer k. # We need to make m bouquets. To make a bouquet, you need to use k adjacent flowers from the garde...
35.227273
171
0.582581
2b6447d506661e648b4e777042d5d5acdcb7dc25
13,693
py
Python
mkdocs/commands/build.py
subbu588/Python-code-jvt1
5b9e3d836692d36756fd240b9599c58039b4b822
[ "BSD-2-Clause" ]
9
2019-04-06T09:57:53.000Z
2022-03-17T09:48:50.000Z
mkdocs/commands/build.py
hufyhang/mkdocs
4c4ef7fa7224713e17d479742c2df1b2fc78edcb
[ "BSD-2-Clause" ]
null
null
null
mkdocs/commands/build.py
hufyhang/mkdocs
4c4ef7fa7224713e17d479742c2df1b2fc78edcb
[ "BSD-2-Clause" ]
9
2018-03-15T06:00:26.000Z
2022-03-10T14:54:36.000Z
# coding: utf-8 from __future__ import unicode_literals from datetime import datetime from calendar import timegm import io import logging import os from jinja2.exceptions import TemplateNotFound import jinja2 import json from mkdocs import nav, search, utils from mkdocs.utils import filters from mkdocs.relative_pat...
34.753807
114
0.662601
a15a5f0f92b584357a4aeeafa0746b28c17bcd12
4,215
py
Python
examples/ReportService/ReportService_get.py
becomejapan/yahooads-python-lib
c2b00d271037291dfd00952685e48eda0e835df5
[ "Apache-2.0" ]
null
null
null
examples/ReportService/ReportService_get.py
becomejapan/yahooads-python-lib
c2b00d271037291dfd00952685e48eda0e835df5
[ "Apache-2.0" ]
null
null
null
examples/ReportService/ReportService_get.py
becomejapan/yahooads-python-lib
c2b00d271037291dfd00952685e48eda0e835df5
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Become 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/LICENSE-2.0 # # Unless required by applicable law or...
28.869863
169
0.613523
745ad1baf30549a1305bcd6031346b5c3655dbe5
143
py
Python
entrypoint2/examples/hello.py
ponty/entrypoint2
0db6aa14b38124639fb7d324145352f37caaaac8
[ "BSD-2-Clause" ]
5
2015-03-04T02:52:52.000Z
2021-03-08T08:22:06.000Z
entrypoint2/examples/hello.py
ponty/entrypoint2
0db6aa14b38124639fb7d324145352f37caaaac8
[ "BSD-2-Clause" ]
6
2019-12-10T09:10:32.000Z
2021-04-03T11:51:06.000Z
entrypoint2/examples/hello.py
ponty/entrypoint2
0db6aa14b38124639fb7d324145352f37caaaac8
[ "BSD-2-Clause" ]
3
2020-02-20T22:32:52.000Z
2020-05-18T09:00:31.000Z
from entrypoint2 import entrypoint @entrypoint def hello(message): # type of 'message' is not defined, default is str print(message)
17.875
54
0.734266
8b7096483a3ea7383ab14f47e0177c4ccc116584
3,673
py
Python
mikaponics/alert/management/commands/send_production_alert_email.py
mikaponics/mikaponics-back
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
[ "BSD-3-Clause" ]
2
2019-04-30T23:51:41.000Z
2019-05-04T00:35:52.000Z
mikaponics/alert/management/commands/send_production_alert_email.py
mikaponics/mikaponics-back
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
[ "BSD-3-Clause" ]
27
2019-04-30T20:22:28.000Z
2022-02-10T08:10:32.000Z
mikaponics/alert/management/commands/send_production_alert_email.py
mikaponics/mikaponics-back
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.core.management.base import BaseCommand, CommandError from django.core.mail import EmailMultiAlternatives # EMAILER from django.conf import settings from django.contrib.auth.models import Group from django.db.models import Q from django.template.loader import render_to_string #...
34.980952
133
0.590798
48962588c756a231c5f7bec2dc4d68476aa17707
8,868
py
Python
grr/lib/rdfvalues/paths_test.py
mikecb/grr
52fdd977729af2a09a147301c55b8b7f1eccfa67
[ "Apache-2.0" ]
2
2019-06-02T13:11:16.000Z
2019-06-25T13:30:46.000Z
grr/lib/rdfvalues/paths_test.py
mikecb/grr
52fdd977729af2a09a147301c55b8b7f1eccfa67
[ "Apache-2.0" ]
null
null
null
grr/lib/rdfvalues/paths_test.py
mikecb/grr
52fdd977729af2a09a147301c55b8b7f1eccfa67
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- mode: python; encoding: utf-8 -*- # Copyright 2012 Google Inc. All Rights Reserved. """These are tests for the PathSpec implementation.""" from grr.lib import flags from grr.lib import test_lib from grr.lib.rdfvalues import paths as rdf_paths from grr.lib.rdfvalues import test_base from ...
35.190476
79
0.704105
4581a612ed60d991f1570a04ef9d19334970c8cf
8,937
py
Python
tensorflow/python/data/experimental/ops/optimization.py
joshz123/tensorflow
7841ca029060ab78e221e757d4b1ee6e3e0ffaa4
[ "Apache-2.0" ]
78
2020-08-04T12:36:25.000Z
2022-03-25T04:23:40.000Z
tensorflow/python/data/experimental/ops/optimization.py
sagol/tensorflow
04f2870814d2773e09dcfa00cbe76a66a2c4de88
[ "Apache-2.0" ]
203
2019-06-14T23:53:10.000Z
2022-02-10T02:27:23.000Z
tensorflow/python/data/experimental/ops/optimization.py
sagol/tensorflow
04f2870814d2773e09dcfa00cbe76a66a2c4de88
[ "Apache-2.0" ]
66
2020-05-15T10:05:12.000Z
2022-02-14T07:28:18.000Z
# Copyright 2018 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...
41.761682
106
0.706949
eda4b6e0658aa80c470bbd1ec741e1a8ee0e2bc1
689
py
Python
apps/slackbot/log.py
dlzou/csua-backend
a2a6642017b81c2fe2bcc497ecc772e9b7dfe210
[ "MIT" ]
null
null
null
apps/slackbot/log.py
dlzou/csua-backend
a2a6642017b81c2fe2bcc497ecc772e9b7dfe210
[ "MIT" ]
null
null
null
apps/slackbot/log.py
dlzou/csua-backend
a2a6642017b81c2fe2bcc497ecc772e9b7dfe210
[ "MIT" ]
null
null
null
from logging import Formatter, StreamHandler from .client import SLACK_BOT_USER_TOKEN, app CSUA_PHILBOT_TESTING_CHANNEL_ID = "CCU09PNGL" CSUA_WEBSITE_UPDATES_CHANNEL_ID = "CG49A3UF8" class SlackMessageHandler(StreamHandler): def __init__(self): super().__init__() def emit(self, record): tex...
23.758621
87
0.719884
2e397a069bdf7f5e0fdf30c64532ca6f56bf823c
942
py
Python
setup.py
john-pierce/kms-client
97e93c6d5a5dff345305274fd7cf8f3c4a4d9bf6
[ "MIT" ]
null
null
null
setup.py
john-pierce/kms-client
97e93c6d5a5dff345305274fd7cf8f3c4a4d9bf6
[ "MIT" ]
null
null
null
setup.py
john-pierce/kms-client
97e93c6d5a5dff345305274fd7cf8f3c4a4d9bf6
[ "MIT" ]
null
null
null
from setuptools import setup from os import * here = path.abspath(path.dirname(__file__)) setup( name='kms-client', version='0.0.2', license='MIT', description='Encrypt/decrypt data using keys stored in Amazon KMS', url='https://github.com/john-pierce/kms-client', author='John Pierce', author_email='john...
23.55
69
0.642251
82902de12ec01459c85e3968d3a0f846b21e5f25
4,386
py
Python
potnanny_api/apps/setting/api.py
jeffleary00/greenery
cb5b5d037b6fd297463633d2d3315c722851161f
[ "MIT" ]
null
null
null
potnanny_api/apps/setting/api.py
jeffleary00/greenery
cb5b5d037b6fd297463633d2d3315c722851161f
[ "MIT" ]
null
null
null
potnanny_api/apps/setting/api.py
jeffleary00/greenery
cb5b5d037b6fd297463633d2d3315c722851161f
[ "MIT" ]
1
2018-02-25T17:29:37.000Z
2018-02-25T17:29:37.000Z
import json from flask import Blueprint, request, current_app from flask_restful import Api, Resource from flask_jwt_extended import jwt_required from potnanny_core.schemas.keychain import KeychainSchema from potnanny_core.models.setting import (PollingInterval, TemperatureDisplay, VesyncAccount, PrimitiveWireless...
30.041096
92
0.592795
24a2b118b4f3465c44183bfc1fc9b687f0f44ff0
450
py
Python
plotly/validators/bar/_customdata.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/validators/bar/_customdata.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/validators/bar/_customdata.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
import _plotly_utils.basevalidators class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__(self, plotly_name='customdata', parent_name='bar', **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
32.142857
78
0.657778
d96cdde322482111aad2b543ec0ee91edbd29734
1,484
py
Python
tests/daemon/unit/test_files.py
mayank-kr/jina
4667e9cdf682b4c53003bd24fa0bca1af6612907
[ "Apache-2.0" ]
1
2021-06-29T15:53:39.000Z
2021-06-29T15:53:39.000Z
tests/daemon/unit/test_files.py
nandiniinj/jina
1abf8740878de3db6f0531875114aaf36e8e12fe
[ "Apache-2.0" ]
null
null
null
tests/daemon/unit/test_files.py
nandiniinj/jina
1abf8740878de3db6f0531875114aaf36e8e12fe
[ "Apache-2.0" ]
null
null
null
import os import tempfile from fastapi import UploadFile from daemon import daemon_logger from daemon.models import DaemonID from daemon.files import DaemonFile from daemon.files import workspace_files import pytest cur_dir = os.path.dirname(os.path.abspath(__file__)) cur_filename = os.path.basename(__file__) @pyt...
32.26087
86
0.65027
1c2e7fe6679d6cec764138b6a3d8661cf7766095
2,645
py
Python
UVa Online Judge/v3/397.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
1
2021-12-08T08:58:43.000Z
2021-12-08T08:58:43.000Z
UVa Online Judge/v3/397.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
null
null
null
UVa Online Judge/v3/397.py
mjenrungrot/algorithm
e0e8174eb133ba20931c2c7f5c67732e4cb2b703
[ "MIT" ]
null
null
null
# ============================================================================= # Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/ # FileName: 397.py # Description: UVa Online Judge - 397 # ============================================================================= def parse_numb...
23.201754
79
0.404537
5f3895562e2285b6e3e365dd2ae1146f7a7ecefe
303
py
Python
ui_complements/Constants.py
abaron10/Pathfinding_visualizer
9de0695bbf05d5e9e0e492c2c50a41b2cc33c9a9
[ "Unlicense", "MIT" ]
1
2022-02-04T12:53:00.000Z
2022-02-04T12:53:00.000Z
ui_complements/Constants.py
abaron10/Pathfinding_visualizer
9de0695bbf05d5e9e0e492c2c50a41b2cc33c9a9
[ "Unlicense", "MIT" ]
null
null
null
ui_complements/Constants.py
abaron10/Pathfinding_visualizer
9de0695bbf05d5e9e0e492c2c50a41b2cc33c9a9
[ "Unlicense", "MIT" ]
null
null
null
from enum import Enum class Colors(Enum): NAVY = (0, 255, 255) GREEN = (0, 255, 0) BLUE = (0, 255, 0) YELLOW = (255, 255, 0) WHITE = (255, 255, 255) BLACK = (12,54,71,255) RED = (255, 0, 0) ORANGE = (255, 165 ,0) GREY = (175, 216, 248,255) FUCSIA = (255, 0, 255)
23.307692
30
0.508251
d2fec1e15d95df3b96a4bdcfcf3ac320674f02a8
49,805
py
Python
Tests/Marketplace/upload_packs.py
FFrozTT/content
af728a40f9b51130d75768942d7eadeb6a85f257
[ "MIT" ]
null
null
null
Tests/Marketplace/upload_packs.py
FFrozTT/content
af728a40f9b51130d75768942d7eadeb6a85f257
[ "MIT" ]
null
null
null
Tests/Marketplace/upload_packs.py
FFrozTT/content
af728a40f9b51130d75768942d7eadeb6a85f257
[ "MIT" ]
2
2020-12-10T12:02:45.000Z
2020-12-15T09:20:01.000Z
import json import os import sys import argparse import shutil import uuid import prettytable import glob import git import requests import logging from datetime import datetime from zipfile import ZipFile from typing import Any, Tuple, Union from Tests.Marketplace.marketplace_services import init_storage_client, init_...
45.236149
127
0.671419
7155ce04d9055a84f25945caa5c668a267cb8c3d
2,542
py
Python
smartmemorizer/word/models.py
younseunghyun/smart-memorizer
28b12c03e04df4d683c7af0afadd6493a32daebe
[ "BSD-3-Clause" ]
null
null
null
smartmemorizer/word/models.py
younseunghyun/smart-memorizer
28b12c03e04df4d683c7af0afadd6493a32daebe
[ "BSD-3-Clause" ]
null
null
null
smartmemorizer/word/models.py
younseunghyun/smart-memorizer
28b12c03e04df4d683c7af0afadd6493a32daebe
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """word models.""" import datetime as dt from smartmemorizer.database import Column, Model, SurrogatePK, db from sqlalchemy import func class Word(SurrogatePK, Model): """A word of the app.""" __tablename__ = 'words' __table_args__ = {'sqlite_autoincrement': True} index = C...
35.802817
112
0.651456
032d9be304ecfe223d64836f9d70f7c1cf07ef55
1,140
py
Python
plantcv/plantcv/get_nir.py
Howzit123/plantcv
b4ff6ad765da36353f40827ce3816b33d1d3596a
[ "MIT" ]
2
2021-08-20T14:56:48.000Z
2021-08-24T23:12:56.000Z
plantcv/plantcv/get_nir.py
Howzit123/plantcv
b4ff6ad765da36353f40827ce3816b33d1d3596a
[ "MIT" ]
null
null
null
plantcv/plantcv/get_nir.py
Howzit123/plantcv
b4ff6ad765da36353f40827ce3816b33d1d3596a
[ "MIT" ]
1
2021-06-15T15:01:46.000Z
2021-06-15T15:01:46.000Z
# Find NIR image import os import re import numpy as np def get_nir(path, filename): """Find a corresponding NIR image from the same snapshot as the VIS image. Inputs: path = path to vis image filename = vis image file name Returns: nirpath = NIR image filename and path :param pat...
22.8
78
0.539474
28c62e5988770b75878d6c44a3649136def5edcc
6,185
py
Python
tests/dot11/test_Dot11HierarchicalUpdate.py
kamnsv/impacket
83a581e4ba0cb3b7ba5dfa3018b87f9bf1a2cb58
[ "Apache-1.1" ]
6,612
2018-10-10T22:45:11.000Z
2022-03-31T18:13:01.000Z
tests/dot11/test_Dot11HierarchicalUpdate.py
kamnsv/impacket
83a581e4ba0cb3b7ba5dfa3018b87f9bf1a2cb58
[ "Apache-1.1" ]
703
2018-10-11T11:38:30.000Z
2022-03-31T14:59:22.000Z
tests/dot11/test_Dot11HierarchicalUpdate.py
kamnsv/impacket
83a581e4ba0cb3b7ba5dfa3018b87f9bf1a2cb58
[ "Apache-1.1" ]
2,172
2018-10-11T10:51:26.000Z
2022-03-31T04:45:49.000Z
#!/usr/bin/env python # Impacket - Collection of Python classes for working with network protocols. # # SECUREAUTH LABS. Copyright (C) 2021 SecureAuth Corporation. All rights reserved. # # This software is provided under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # f...
44.496403
106
0.671625
06f301dd737987eeacd50c9b9296d4455961ace6
2,867
py
Python
tests/test_positional.py
Americanwallace0/NMTGMinor-1
f932c15817425f0f113011d00e681091461fc4f7
[ "MIT" ]
null
null
null
tests/test_positional.py
Americanwallace0/NMTGMinor-1
f932c15817425f0f113011d00e681091461fc4f7
[ "MIT" ]
null
null
null
tests/test_positional.py
Americanwallace0/NMTGMinor-1
f932c15817425f0f113011d00e681091461fc4f7
[ "MIT" ]
null
null
null
import math import numpy as np import torch from torch import nn from torch.autograd import Variable from nmtg.models.transformer.transformer import Transformer from nmtg.modules.positional_encoding import SinusoidalPositionalEncoding from onmt.modules.Transformer.Layers import PositionalEncoding def make_mask_rando...
31.163043
87
0.716777
c223f51a0afd073b8205d04565c71942b60f7fda
444
py
Python
support_files/scraping/entries/proj_1929/proj_1929/pipelines.py
miccaldas/new_rss
9580887ac44b5c3e4c4ed5045478f2c7fef36afe
[ "MIT" ]
null
null
null
support_files/scraping/entries/proj_1929/proj_1929/pipelines.py
miccaldas/new_rss
9580887ac44b5c3e4c4ed5045478f2c7fef36afe
[ "MIT" ]
null
null
null
support_files/scraping/entries/proj_1929/proj_1929/pipelines.py
miccaldas/new_rss
9580887ac44b5c3e4c4ed5045478f2c7fef36afe
[ "MIT" ]
null
null
null
import scrapy # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html # useful for handling different item types with a single interface from itemadapter import ItemAdapter class Proj1929Pipeline: de...
26.117647
66
0.738739
c98f13084ddd426240081c1a51be227f8b889a7d
2,898
py
Python
scripts/data/create_prompts_dataset.py
allenai/real-toxicity-prompts
dd44ab77ed8bb36d6a62f8205768fda8382eb7ba
[ "Apache-2.0" ]
30
2020-09-30T03:16:23.000Z
2022-03-16T17:16:40.000Z
realtoxicityprompts/scripts/data/create_prompts_dataset.py
ml-research/MoRT_NMI
98dc14f42714b1b794d685507c01b593cde5638c
[ "MIT" ]
2
2021-05-06T03:41:00.000Z
2021-10-07T12:24:22.000Z
realtoxicityprompts/scripts/data/create_prompts_dataset.py
ml-research/MoRT_NMI
98dc14f42714b1b794d685507c01b593cde5638c
[ "MIT" ]
5
2021-06-01T03:09:04.000Z
2021-11-10T13:33:23.000Z
from pathlib import Path from typing import Union import pandas as pd import spacy from spacy.tokens.doc import Doc from sqlalchemy.sql.functions import random from utils.constants import TEXTS_DIR, OPENWEBTEXT_DB from utils.db import SpanScore, corpus_db_session import click # Span constants MIN_SPAN_LEN = 64 MAX_S...
29.876289
114
0.671843
a68a396ae61a1be229daba28fd8b851ab05ae4a1
15,454
py
Python
gridpath/system/reserves/requirement/reserve_requirements.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
null
null
null
gridpath/system/reserves/requirement/reserve_requirements.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
null
null
null
gridpath/system/reserves/requirement/reserve_requirements.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2020 Blue Marble Analytics LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
32.330544
88
0.630516
877dfd94f270c83d67d9918cf35ea602fb3b591d
182
py
Python
bossutils/__init__.py
aplbrain/boss-tools
1e6db46795fe2e31c601690da399728fd0138e95
[ "Apache-2.0" ]
null
null
null
bossutils/__init__.py
aplbrain/boss-tools
1e6db46795fe2e31c601690da399728fd0138e95
[ "Apache-2.0" ]
null
null
null
bossutils/__init__.py
aplbrain/boss-tools
1e6db46795fe2e31c601690da399728fd0138e95
[ "Apache-2.0" ]
1
2018-05-31T16:46:26.000Z
2018-05-31T16:46:26.000Z
# force the automatic loading of utilities from . import aws from . import configuration from . import utils from . import vault from . import logger from . import migration_manager
22.75
42
0.791209
192f6532a148d39ca6b57a871eae0e3b50e773cd
39,917
py
Python
pandas/sparse/tests/test_frame.py
jackieleng/pandas
ccec504e31ce74f8016952ac75add1cc4bec7080
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/sparse/tests/test_frame.py
jackieleng/pandas
ccec504e31ce74f8016952ac75add1cc4bec7080
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/sparse/tests/test_frame.py
jackieleng/pandas
ccec504e31ce74f8016952ac75add1cc4bec7080
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
1
2021-01-02T02:27:25.000Z
2021-01-02T02:27:25.000Z
# pylint: disable-msg=E1101,W0612 import operator from numpy import nan import numpy as np import pandas as pd from pandas import Series, DataFrame, bdate_range, Panel from pandas.tseries.index import DatetimeIndex import pandas.core.datetools as datetools import pandas.util.testing as tm from pandas.compat import l...
37.236007
83
0.557457
6f6b592656d225e6b9c873f5efd32263ea968fa8
27,896
py
Python
neutron/plugins/cisco/cfg_agent/service_helpers/routing_svc_helper.py
venkataanil/juno_neutron
2e62e150c264ccae2dd75fb78caae453eaa77e9f
[ "Apache-2.0" ]
1
2021-02-19T05:54:04.000Z
2021-02-19T05:54:04.000Z
neutron/plugins/cisco/cfg_agent/service_helpers/routing_svc_helper.py
venkataanil/juno_neutron
2e62e150c264ccae2dd75fb78caae453eaa77e9f
[ "Apache-2.0" ]
null
null
null
neutron/plugins/cisco/cfg_agent/service_helpers/routing_svc_helper.py
venkataanil/juno_neutron
2e62e150c264ccae2dd75fb78caae453eaa77e9f
[ "Apache-2.0" ]
2
2016-11-29T11:22:58.000Z
2016-11-29T11:54:41.000Z
# Copyright 2014 Cisco Systems, 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 requir...
43.724138
79
0.603456
2c5c6e5f9e3235b0137cb34a02a201e3bbb85aab
15,566
py
Python
torchaudio/models/wav2vec2/model.py
z-a-f/audio
d64648b6ea4e5ec4e000d4eb26daa3f2499ef3ca
[ "BSD-2-Clause" ]
null
null
null
torchaudio/models/wav2vec2/model.py
z-a-f/audio
d64648b6ea4e5ec4e000d4eb26daa3f2499ef3ca
[ "BSD-2-Clause" ]
null
null
null
torchaudio/models/wav2vec2/model.py
z-a-f/audio
d64648b6ea4e5ec4e000d4eb26daa3f2499ef3ca
[ "BSD-2-Clause" ]
null
null
null
from typing import Optional, Tuple, List import torch from torch import Tensor from torch.nn import Module from . import components class Wav2Vec2Model(Module): """Encoder model used in *wav2vec 2.0* [:footcite:`baevski2020wav2vec`]. Note: To build the model, please use one of the factory functions...
32.094845
92
0.655467
52b307a48adcd0ac5c618de57fd942d21049948c
1,100
py
Python
flight_plans/migrations/0008_checklistgroup_checklistitem.py
geoffreynyaga/ANGA-UTM
8371a51ad27c85d2479bb34d8c4e02ea28465941
[ "Apache-2.0" ]
7
2020-01-18T16:53:41.000Z
2021-12-21T07:02:43.000Z
flight_plans/migrations/0008_checklistgroup_checklistitem.py
geoffreynyaga/ANGA-UTM
8371a51ad27c85d2479bb34d8c4e02ea28465941
[ "Apache-2.0" ]
28
2020-01-06T18:36:54.000Z
2022-02-10T10:03:55.000Z
flight_plans/migrations/0008_checklistgroup_checklistitem.py
geoffreynyaga/ANGA-UTM
8371a51ad27c85d2479bb34d8c4e02ea28465941
[ "Apache-2.0" ]
3
2020-01-18T16:53:54.000Z
2020-10-26T11:21:41.000Z
# Generated by Django 2.2.16 on 2021-02-13 11:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('flight_plans', '0007_remove_preflight_area_size'), ] operations = [ migrations.CreateModel( name='ChecklistItem', f...
35.483871
114
0.591818
133ca0b4aeecab5464c0c98e9162d3cff51c0fe5
3,248
py
Python
08/vmFunctionCall.py
Bozar/Nand2Tetris
5f91805823b7572263bc31b0b4537aed14d6b4e7
[ "MIT" ]
3
2019-12-04T12:17:32.000Z
2021-08-04T07:08:24.000Z
08/vmFunctionCall.py
Bozar/Nand2Tetris
5f91805823b7572263bc31b0b4537aed14d6b4e7
[ "MIT" ]
null
null
null
08/vmFunctionCall.py
Bozar/Nand2Tetris
5f91805823b7572263bc31b0b4537aed14d6b4e7
[ "MIT" ]
1
2021-07-31T16:01:22.000Z
2021-07-31T16:01:22.000Z
import asmPushPop import vmPushPop # Use the following trick to set breakpoints for debugging. # http://nand2tetris-questions-and-answers-forum.32033.n3.nabble.com/Tip-debugging-trick-that-helped-me-td3662340.html def writeCall(functionName, numArgs, index): returnAddress = 'RETURN_ADDRESS$' + functionName + '$' ...
20.687898
118
0.430727
a62c23df3887a9b01f608e2ddcbd8dbfc8b9d5d5
1,012
py
Python
src/data/make_raw_price_paid_data.py
iaindillingham/property-prices
0109c3b130afc7da367306c5430dcfff3e4e0c8e
[ "MIT" ]
null
null
null
src/data/make_raw_price_paid_data.py
iaindillingham/property-prices
0109c3b130afc7da367306c5430dcfff3e4e0c8e
[ "MIT" ]
null
null
null
src/data/make_raw_price_paid_data.py
iaindillingham/property-prices
0109c3b130afc7da367306c5430dcfff3e4e0c8e
[ "MIT" ]
null
null
null
"""Reads external and writes raw Land Registry Price Paid Data CSVs. The external CSV does not have a header row. The raw CSV has a header row. """ import csv from src import EXTERNAL_DIR, RAW_DIR EXTERNAL_PP_DIR = EXTERNAL_DIR / "price_paid_data" RAW_PP_DIR = RAW_DIR / "price_paid_data" headers = [ "id", "...
20.653061
68
0.597826
e8dafb6fc27d01500f58b77db93c02128d3eeae6
355
py
Python
routes/web.py
girardinsamuel/masonite-inertia
78d98e6e022296fdc78fb8f7267cc67d6d40462f
[ "MIT" ]
15
2020-09-27T18:51:35.000Z
2022-02-13T11:12:42.000Z
routes/web.py
girardinsamuel/masonite-inertia
78d98e6e022296fdc78fb8f7267cc67d6d40462f
[ "MIT" ]
90
2020-09-27T18:28:27.000Z
2022-03-21T12:25:26.000Z
routes/web.py
girardinsamuel/masonite-inertia
78d98e6e022296fdc78fb8f7267cc67d6d40462f
[ "MIT" ]
2
2020-12-31T02:31:29.000Z
2021-04-22T17:13:20.000Z
""" Web Routes """ from masonite.routes import Get, Post ROUTES = [ Get("/", "InertiaController@inertia").name("home"), Post("/error", "InertiaController@inertia_with_error").name("home.error"), Get("/external", "InertiaController@external").name("home.external"), Get("/helloworld", "InertiaController@...
35.5
78
0.687324
17108d134c39d3bd09fa7cd6712f971df3934e8a
383
py
Python
iati/home/views.py
allthatilk/IATI-Standard-Website
21c726b11290575b1f353105f3632a98cc2fea74
[ "MIT" ]
null
null
null
iati/home/views.py
allthatilk/IATI-Standard-Website
21c726b11290575b1f353105f3632a98cc2fea74
[ "MIT" ]
null
null
null
iati/home/views.py
allthatilk/IATI-Standard-Website
21c726b11290575b1f353105f3632a98cc2fea74
[ "MIT" ]
null
null
null
"""View definitions for the home app.""" from django.shortcuts import redirect def reference_redirect(request): """Functional view that accepts any request starting with a reference namespace.""" base_url = "http://reference.iatistandard.org" slug = request.get_full_path() redirection_url = base_url ...
31.916667
87
0.746736
8cfc36c57398c3da149f5e5dc6ee3ed0d8a7cf7b
2,394
py
Python
csmpe/core_plugins/csm_check_config_filesystem/plugin.py
kstaniek/cmspe
16d9c1510a17b31c8de37ba05b3c689e4952b155
[ "BSD-2-Clause" ]
null
null
null
csmpe/core_plugins/csm_check_config_filesystem/plugin.py
kstaniek/cmspe
16d9c1510a17b31c8de37ba05b3c689e4952b155
[ "BSD-2-Clause" ]
null
null
null
csmpe/core_plugins/csm_check_config_filesystem/plugin.py
kstaniek/cmspe
16d9c1510a17b31c8de37ba05b3c689e4952b155
[ "BSD-2-Clause" ]
null
null
null
# ============================================================================= # plugin # # Copyright (c) 2016, Cisco Systems # All rights reserved. # # # Author: Klaudiusz Staniek # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditio...
40.576271
79
0.64411
2e619e2727f5f51390a3edd441e5039f850dfc4e
1,643
py
Python
mysite/urls.py
WildfootTW/Django_Demo
e696d80b711e636a9dacbb0c1e04fb46dba39e65
[ "MIT" ]
null
null
null
mysite/urls.py
WildfootTW/Django_Demo
e696d80b711e636a9dacbb0c1e04fb46dba39e65
[ "MIT" ]
null
null
null
mysite/urls.py
WildfootTW/Django_Demo
e696d80b711e636a9dacbb0c1e04fb46dba39e65
[ "MIT" ]
null
null
null
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-base...
36.511111
107
0.662203
73d5ce57cf9a876b7fc73886571c50ea03c18061
4,946
py
Python
sdk/python/pulumi_azure_native/logic/latest/__init__.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/logic/latest/__init__.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/logic/latest/__init__.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from ._enums import * from .get_integration_account import * from .get_integration_account_agreement import...
52.617021
101
0.765669
3149b20ed037d99bd0202ee62fcbf6153dbcc859
16,889
py
Python
tableau_rest_api/methods/schedule.py
Kamran-ov/tableau_tools
a373943fc8ea233ce00a2c2deaaf3f8d05716326
[ "MIT" ]
null
null
null
tableau_rest_api/methods/schedule.py
Kamran-ov/tableau_tools
a373943fc8ea233ce00a2c2deaaf3f8d05716326
[ "MIT" ]
null
null
null
tableau_rest_api/methods/schedule.py
Kamran-ov/tableau_tools
a373943fc8ea233ce00a2c2deaaf3f8d05716326
[ "MIT" ]
null
null
null
from .rest_api_base import * class ScheduleMethods(): def __init__(self, rest_api_base: TableauRestApiBase): self.rest_api_base = rest_api_base def __getattr__(self, attr): return getattr(self.rest_api_base, attr) def query_schedules(self) -> ET.Element: self.start_log_block() ...
45.769648
124
0.603943
6966dd32de6113249ce73140eaa2d3be4452d116
1,309
py
Python
flaskapp/resources/heretraffic.py
cs-510-explorations-car-dependence/backend
25fe32486890dd66a4c03f4a89fec25f412b4220
[ "MIT" ]
null
null
null
flaskapp/resources/heretraffic.py
cs-510-explorations-car-dependence/backend
25fe32486890dd66a4c03f4a89fec25f412b4220
[ "MIT" ]
1
2021-08-07T18:35:07.000Z
2021-08-07T20:23:59.000Z
flaskapp/resources/heretraffic.py
cs-510-explorations-car-dependence/backend
25fe32486890dd66a4c03f4a89fec25f412b4220
[ "MIT" ]
null
null
null
import requests from flaskapp.resources.utils import raise_if_invalid_coordinates class HERETraffic: """ A thin wrapper over the HERE Traffic Flow API. """ def __init__(self, apikey): self.apikey = apikey self.url_base = f"https://traffic.ls.hereapi.com/traffic/6.2/flow.json?apiKey={apikey}&res...
52.36
136
0.705882
350b64879b3ef5131b14027e1c528087f8f49d3a
350
py
Python
setup.py
reddymeghraj/lodge
10f94c7197bf47581f101ac0db6194accf80038e
[ "MIT" ]
null
null
null
setup.py
reddymeghraj/lodge
10f94c7197bf47581f101ac0db6194accf80038e
[ "MIT" ]
null
null
null
setup.py
reddymeghraj/lodge
10f94c7197bf47581f101ac0db6194accf80038e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages import os version = '0.0.1' setup( name='lodge', version=version, description='App for lodge', author='Wayzon', author_email='info@wayzon.in', packages=find_packages(), zip_safe=False, include_package_data=True, in...
19.444444
43
0.662857
b1cf8074377a8316691bd796bd3a1689deaec295
8,186
py
Python
configs/tabnet/icdar2019_tracka_modern:faster_rcnn_r50_fpn_2x.py
vansin/tabnet
2403c8134c23a704940522ace92a75b0fc6f5d99
[ "Apache-2.0" ]
2
2021-10-18T02:52:18.000Z
2022-01-21T08:54:18.000Z
configs/tabnet/icdar2019_tracka_modern:faster_rcnn_r50_fpn_2x.py
vansin/tabnet
2403c8134c23a704940522ace92a75b0fc6f5d99
[ "Apache-2.0" ]
null
null
null
configs/tabnet/icdar2019_tracka_modern:faster_rcnn_r50_fpn_2x.py
vansin/tabnet
2403c8134c23a704940522ace92a75b0fc6f5d99
[ "Apache-2.0" ]
null
null
null
# _base_ = [ # '../_base_/models/faster_rcnn_r50_fpn.py', # '../_base_/datasets/icdar2019_tracka_modern_detection.py', # '../_base_/schedules/schedule_2x.py', '../_base_/default_runtime.py' # ] model = dict( type='FasterRCNN', backbone=dict( type='ResNet', depth=50, num_sta...
34.834043
79
0.519057
00e1ce0f99cc4dc19139ed3c63812961ac60d7fe
13,776
py
Python
tests/core/test_suite.py
gregoil/rotest
c443bc1b99e02f047adfcab9943966f0023f652c
[ "MIT" ]
26
2017-06-11T18:21:17.000Z
2021-02-21T20:36:30.000Z
tests/core/test_suite.py
gregoil/rotest
c443bc1b99e02f047adfcab9943966f0023f652c
[ "MIT" ]
143
2017-06-29T11:18:35.000Z
2021-06-10T17:23:46.000Z
tests/core/test_suite.py
gregoil/rotest
c443bc1b99e02f047adfcab9943966f0023f652c
[ "MIT" ]
11
2017-06-12T09:16:14.000Z
2021-07-11T23:20:59.000Z
"""Test TestSuite behavior and common variables.""" # pylint: disable=too-many-locals,protected-access # pylint: disable=too-many-public-methods,invalid-name # pylint: disable=no-member,protected-access,no-init,too-few-public-methods from __future__ import absolute_import import os from future.builtins import object ...
37.846154
79
0.612805