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
14957696cb1891350b557305b08ba165264c3588
383
py
Python
Curso-Em-Video-Python/2Exercicios/057_validacao_de_dados.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/057_validacao_de_dados.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/057_validacao_de_dados.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
sexo = 1 while sexo != 0: resposta = str(input('Qual o seu sexo: [M/F] ')).upper()[0] if resposta == 'M' or resposta == 'F': sexo = 0 if resposta == 'M': print('Correto!! Sexo Masculino!!') if resposta == 'F': print('Correto!! Sexo Feminino!!') else: p...
29.461538
63
0.509138
612b5150c8ca2b6d853a0355bd685bd63d0015c5
413
py
Python
tfc_web/transport/migrations/0005_auto_20170131_2134.py
SmartCambridge/tfc_web
ac16b3c2aa5200320e9ffa9d270fb409b98ed55d
[ "MIT" ]
2
2018-10-28T20:15:23.000Z
2019-03-29T09:06:09.000Z
tfc_web/transport/migrations/0005_auto_20170131_2134.py
SmartCambridge/tfc_web
ac16b3c2aa5200320e9ffa9d270fb409b98ed55d
[ "MIT" ]
107
2018-10-22T06:57:07.000Z
2020-09-15T14:43:03.000Z
tfc_web/transport/migrations/0005_auto_20170131_2134.py
SmartCambridge/tfc_web
ac16b3c2aa5200320e9ffa9d270fb409b98ed55d
[ "MIT" ]
1
2020-03-20T19:49:29.000Z
2020-03-20T19:49:29.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('transport', '0004_auto_20170123_1958'), ] operations = [ migrations.AlterField( model_name='stop', n...
20.65
50
0.615012
46c84f4800a452319f7795e5e2df375711ed8ba8
16,189
py
Python
tests/test_auth0.py
garyd203/fastapi-cloudauth
8ce84544db32467b63fcef26ee3d222f90530afd
[ "MIT" ]
null
null
null
tests/test_auth0.py
garyd203/fastapi-cloudauth
8ce84544db32467b63fcef26ee3d222f90530afd
[ "MIT" ]
null
null
null
tests/test_auth0.py
garyd203/fastapi-cloudauth
8ce84544db32467b63fcef26ee3d222f90530afd
[ "MIT" ]
null
null
null
import os from datetime import datetime, timedelta from sys import version_info as info from typing import Iterable, List, Optional import pytest import requests from auth0.v3.authentication import GetToken from auth0.v3.management import Auth0 as Auth0sdk from fastapi.security.http import HTTPAuthorizationCredentials...
35.041126
123
0.63049
1bb80cdb4fc4a50cd24872f5a52c3ae6e683d9d1
262
py
Python
convert_lrs2.py
cranberrymuffin/talking-head-anime-demo
5b0f029009de592555deecab8efdc2f3808bd3e3
[ "MIT" ]
null
null
null
convert_lrs2.py
cranberrymuffin/talking-head-anime-demo
5b0f029009de592555deecab8efdc2f3808bd3e3
[ "MIT" ]
null
null
null
convert_lrs2.py
cranberrymuffin/talking-head-anime-demo
5b0f029009de592555deecab8efdc2f3808bd3e3
[ "MIT" ]
null
null
null
import os for directory, subdirlist, filelist in os.walk('/users/anatara7/pretrain'): for f in filelist: if(f.endswith(".mp4")): video = str(directory) + "/" + str(f) os.system("python app/video_puppeteer.py --video " + str(video)
37.428571
75
0.622137
bf265a58db4cdff0292f959c1d72812635f3dba9
1,047
py
Python
tests/test_betti_numbers.py
jmann277/homcv
6b2de9d76bc41501250703b079ef0798ef0928bb
[ "MIT" ]
1
2020-04-26T19:59:58.000Z
2020-04-26T19:59:58.000Z
tests/test_betti_numbers.py
jmann277/homology_of_greyscale_images
6b2de9d76bc41501250703b079ef0798ef0928bb
[ "MIT" ]
null
null
null
tests/test_betti_numbers.py
jmann277/homology_of_greyscale_images
6b2de9d76bc41501250703b079ef0798ef0928bb
[ "MIT" ]
null
null
null
import numpy as np from .context import homcv from homcv import betti_numbers def test_disk_betti_numbers(disk): assert betti_numbers(disk, .5)[0] == 1, ( 'Disk has 1 connected component') assert betti_numbers(disk, .5)[1] == 0, ( 'Disk has 0 first homology classes') def test_circle_betti_n...
30.794118
53
0.676218
a8e1d703d036f8508398714d0398743aee3f71e5
4,869
py
Python
javatool/hack.py
tengge1/javatool
44caa18b4b4c0222fe3ed629c88f17627013cf78
[ "Apache-2.0" ]
2
2017-04-10T14:04:12.000Z
2020-08-16T04:07:15.000Z
javatool/hack.py
tengge1/javatool
44caa18b4b4c0222fe3ed629c88f17627013cf78
[ "Apache-2.0" ]
null
null
null
javatool/hack.py
tengge1/javatool
44caa18b4b4c0222fe3ed629c88f17627013cf78
[ "Apache-2.0" ]
null
null
null
import appuifw import zipfile class Hack(object): hacked=0 def __init__(self,super): self.cn=super.cn self.t=super.t self.add=super.add f=open(super.MPATH+"settings\\settings.ini","rb") d=int(f.read()[1].encode("hex"),16) f.close() if d==0: se...
34.531915
150
0.494352
a36ed13f43d23a510dc8c0ad37067ba3f861f4ab
8,191
py
Python
experiments/shikhar/corl2019/mulitobj_cvae/spoon.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/shikhar/corl2019/mulitobj_cvae/spoon.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/shikhar/corl2019/mulitobj_cvae/spoon.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from experiments.murtaza.multiworld.skew_fit.reacher.generate_uniform_dataset import generate_uniform_dataset_reacher from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in, sawyer_pusher_camera_upright_v2 from rlkit.launchers.launcher_util import run_experiment ...
37.573394
152
0.567208
9516963a982327d37bd6fafbe37fe5fd8dd2e841
16,906
py
Python
tests/components/homekit/test_type_media_players.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
6
2016-11-25T06:36:27.000Z
2021-11-16T11:20:23.000Z
tests/components/homekit/test_type_media_players.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
57
2020-10-15T06:47:00.000Z
2022-03-31T06:11:18.000Z
tests/components/homekit/test_type_media_players.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
14
2018-08-19T16:28:26.000Z
2021-09-02T18:26:53.000Z
"""Test different accessory types: Media Players.""" from homeassistant.components.homekit.const import ( ATTR_KEY_NAME, ATTR_VALUE, CHAR_REMOTE_KEY, CONF_FEATURE_LIST, EVENT_HOMEKIT_TV_REMOTE_KEY_PRESSED, FEATURE_ON_OFF, FEATURE_PLAY_PAUSE, FEATURE_PLAY_STOP, FEATURE_TOGGLE_MUTE, ...
35.893843
86
0.730214
b19addddbcaf4ab17a595a81b75afa95fed52a32
181
py
Python
src/apispec/__init__.py
bagerard/apispec
797a60070a2122239981b0fd77dc5cb729d168da
[ "MIT" ]
null
null
null
src/apispec/__init__.py
bagerard/apispec
797a60070a2122239981b0fd77dc5cb729d168da
[ "MIT" ]
null
null
null
src/apispec/__init__.py
bagerard/apispec
797a60070a2122239981b0fd77dc5cb729d168da
[ "MIT" ]
null
null
null
"""Contains main apispec classes: `APISpec` and `BasePlugin`""" from .core import APISpec from .plugin import BasePlugin __version__ = "3.0.0" __all__ = ["APISpec", "BasePlugin"]
22.625
63
0.723757
09a4b11dda12dece20f2f5b33906d7ca44594f9c
683
py
Python
example/get_tests.py
takumade/Hot-Recharge-ZW
9d59bcdb83c0ad38c7a4b944bc74e82ed20adda1
[ "MIT" ]
8
2020-07-22T07:25:48.000Z
2021-12-18T17:38:45.000Z
example/get_tests.py
takumade/Hot-Recharge-ZW
9d59bcdb83c0ad38c7a4b944bc74e82ed20adda1
[ "MIT" ]
2
2020-12-28T07:31:49.000Z
2021-09-15T20:49:34.000Z
example/get_tests.py
DonnC/Hot-Recharge-ZW
51bf6bf09aea879dc06f99f6ac7752b354ed3be8
[ "MIT" ]
2
2021-02-04T10:01:23.000Z
2021-02-13T23:17:20.000Z
# get_tests.py # @author: Donald Chinhuru # @created: 09 Dec 2019 # @updated: Mar 2021 import hotrecharge import pprint # use config helper class config = hotrecharge.HRAuthConfig( access_code='', access_password='', reference='' ) api = hotrecharge.HotRecharge(config=config) try: ...
20.088235
46
0.669107
d775a5f0684aaa0ec8b4ced43bf43a551e8787fe
22,708
py
Python
hanibal/ans_reporte/reporte_orden_pago.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
null
null
null
hanibal/ans_reporte/reporte_orden_pago.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
null
null
null
hanibal/ans_reporte/reporte_orden_pago.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # -*- coding: latin-1 -*- from openerp.osv import fields, osv from openerp import models, fields, api, _ from datetime import datetime,timedelta,date from dateutil import parser import logging from datetime import datetime, date, timedelta import calendar import base64 import itertools import ...
40.120141
395
0.527171
ddadf1d8b6af95d834efec86d243940799e18e60
1,205
py
Python
app/src/main/python/logStore/appconn/kotlin_connection.py
RenatoFarruggio/qrCodeReaderWriter
a7de9b367da2c0651b8a9494c08e501e07d1265b
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
app/src/main/python/logStore/appconn/kotlin_connection.py
RenatoFarruggio/qrCodeReaderWriter
a7de9b367da2c0651b8a9494c08e501e07d1265b
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
app/src/main/python/logStore/appconn/kotlin_connection.py
RenatoFarruggio/qrCodeReaderWriter
a7de9b367da2c0651b8a9494c08e501e07d1265b
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from .connection import Function class KotlinFunction(Function): """Connection to the group kotlin to insert and output the chat elements""" def __init__(self): super(KotlinFunction, self).__init__() def insert_data(self, cbor): """adds a new chat element as cbor Tested ...
30.897436
89
0.6639
079106d0fc49c580f3d09fa42be631c1fc4fcf30
6,848
py
Python
sbench/libs/schedule/schedule.py
txu2k8/storage-benchmark
b0e53cbfe398f48abdc3e445c97a9a4c6ab42d27
[ "MIT" ]
null
null
null
sbench/libs/schedule/schedule.py
txu2k8/storage-benchmark
b0e53cbfe398f48abdc3e445c97a9a4c6ab42d27
[ "MIT" ]
null
null
null
sbench/libs/schedule/schedule.py
txu2k8/storage-benchmark
b0e53cbfe398f48abdc3e445c97a9a4c6ab42d27
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/11/1 15:57 # @Author : Tao.Xu # @Email : tao.xu2008@outlook.com """This try schedule the func task and list the tasks with PrettyTable If the func is a instance.func and class has __dict_.phase_list, can record the all phase status. Such as: class A(o...
29.264957
81
0.584988
0e79d3ed182267b04a20c0f6ff1e1c223473eb5d
1,288
py
Python
django_pesapal/migrations/0001_initial.py
odero/django-pesapal
5a9f53c8f80e10c4d2c2b643049abbb3c03315c2
[ "BSD-3-Clause" ]
16
2015-04-28T07:30:34.000Z
2022-01-21T18:28:19.000Z
django_pesapal/migrations/0001_initial.py
Labohkip81/django-pesapal
95656ca8d9b9a88cc7def9d5d8eb4061afd60b7f
[ "BSD-3-Clause" ]
10
2015-01-29T19:32:13.000Z
2022-01-21T10:35:12.000Z
django_pesapal/migrations/0001_initial.py
Labohkip81/django-pesapal
95656ca8d9b9a88cc7def9d5d8eb4061afd60b7f
[ "BSD-3-Clause" ]
12
2015-01-02T20:04:52.000Z
2021-06-03T00:21:05.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import uuid class Migration(migrations.Migration): dependencies = [] operations = [ migrations.CreateModel( name="Transaction", fields=[ ( ...
29.272727
84
0.463509
7fee29acd0f6abe0343963f0bc256d0093ba9bfc
11,531
py
Python
python/mxnet/visualization.py
GrassSunFlower/mxnet_tmp
190f16172cbe80f751d4840847fd5a5df43552bd
[ "Apache-2.0" ]
null
null
null
python/mxnet/visualization.py
GrassSunFlower/mxnet_tmp
190f16172cbe80f751d4840847fd5a5df43552bd
[ "Apache-2.0" ]
null
null
null
python/mxnet/visualization.py
GrassSunFlower/mxnet_tmp
190f16172cbe80f751d4840847fd5a5df43552bd
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # pylint: disable=invalid-name, too-many-locals, fixme # pylint: disable=too-many-branches, too-many-statements # pylint: disable=too-many-arguments # pylint: disable=dangerous-default-value """Visualization module""" from __future__ import absolute_import import re import copy import json from .symbo...
36.375394
90
0.494059
078ddeb21a0e56505a92f23bbc1f6b982b9aca3f
74
py
Python
ssod/datasets/pipelines/__init__.py
hattrickcr7/ctrst
69cb26965ecd1637b6847892627018707fd36129
[ "MIT" ]
null
null
null
ssod/datasets/pipelines/__init__.py
hattrickcr7/ctrst
69cb26965ecd1637b6847892627018707fd36129
[ "MIT" ]
null
null
null
ssod/datasets/pipelines/__init__.py
hattrickcr7/ctrst
69cb26965ecd1637b6847892627018707fd36129
[ "MIT" ]
null
null
null
from .formatting import * from .rand_aug import * from .moco_aug import *
18.5
25
0.756757
c42323844f2b3a432bccfd2f61b8ecc4266adcae
18,948
py
Python
Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/contrib/distributions/python/ops/relaxed_onehot_categorical.py
JustinACoder/H22-GR3-UnrealAI
361eb9ef1147f8a2991e5f98c4118cd823184adf
[ "MIT" ]
6
2022-02-04T18:12:24.000Z
2022-03-21T23:57:12.000Z
Lib/site-packages/tensorflow/contrib/distributions/python/ops/relaxed_onehot_categorical.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/tensorflow/contrib/distributions/python/ops/relaxed_onehot_categorical.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2022-02-08T03:53:23.000Z
2022-02-08T03:53:23.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...
43.962877
81
0.694744
79735f813373204d8141dcb0631a32694265251f
2,903
py
Python
.env/lib/python2.7/site-packages/IPython/utils/tests/test_io.py
ViduraPrasangana/faster-rcnn-caffe
af6f5ee89c6e82d295bddd192d9dfcebd60d7c52
[ "MIT" ]
2
2017-11-24T12:44:30.000Z
2020-04-11T17:28:43.000Z
.env/lib/python2.7/site-packages/IPython/utils/tests/test_io.py
ViduraPrasangana/faster-rcnn-caffe
af6f5ee89c6e82d295bddd192d9dfcebd60d7c52
[ "MIT" ]
6
2017-11-10T19:45:18.000Z
2017-11-12T14:50:42.000Z
.env/lib/python2.7/site-packages/IPython/utils/tests/test_io.py
ViduraPrasangana/faster-rcnn-caffe
af6f5ee89c6e82d295bddd192d9dfcebd60d7c52
[ "MIT" ]
5
2018-05-19T05:08:51.000Z
2021-04-29T16:03:45.000Z
# encoding: utf-8 """Tests for io.py""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from __future__ import print_function from __future__ import absolute_import import io as stdlib_io import os.path import stat import sys from subprocess import Popen, PIPE im...
28.460784
95
0.64485
ae11b23f9583e5eecbe3a5c11a6c1534fc7b7ee8
7,182
py
Python
data/coco.py
mdsmith-cim/ssd.pytorch
c10b2310ee35fd320c7b34967ed62c3e4293e994
[ "MIT" ]
null
null
null
data/coco.py
mdsmith-cim/ssd.pytorch
c10b2310ee35fd320c7b34967ed62c3e4293e994
[ "MIT" ]
null
null
null
data/coco.py
mdsmith-cim/ssd.pytorch
c10b2310ee35fd320c7b34967ed62c3e4293e994
[ "MIT" ]
null
null
null
from .config import HOME import os import os.path as osp import sys import torch import torch.utils.data as data import torchvision.transforms as transforms import cv2 import numpy as np COCO_ROOT = '/usr/local/data/msmith/APL/Datasets/coco' IMAGES = 'images' ANNOTATIONS = 'annotations' COCO_API = 'PythonAPI' INSTANCE...
39.679558
110
0.565859
d862a44a7c7205b7a46f95bf3a8cbca54d670765
2,080
py
Python
spark_pager/core.py
BrightEmah123/spark-pager
05dc52628fba404b30987435d949d25f07f8da83
[ "Apache-2.0" ]
null
null
null
spark_pager/core.py
BrightEmah123/spark-pager
05dc52628fba404b30987435d949d25f07f8da83
[ "Apache-2.0" ]
null
null
null
spark_pager/core.py
BrightEmah123/spark-pager
05dc52628fba404b30987435d949d25f07f8da83
[ "Apache-2.0" ]
null
null
null
""" coding .:: utf-8 """ import threading import json import requests from .mailer import send_mail class Pager(): """ Description: """ def __init__(self, spark_context, username, password, host='smtp.gmail.com', port=587): self.spark_context = spark_context self.username = username ...
27.733333
93
0.492788
fd0c49587bb4dc3395a3993e720f475961ce6d56
6,755
py
Python
GPConstr/util/linalg.py
m-shalaby/gp_constr
2ddb30500bba694572861077a9669caa226250f6
[ "MIT" ]
11
2020-05-01T18:26:48.000Z
2022-03-08T16:13:08.000Z
GPConstr/util/linalg.py
m-shalaby/gp_constr
2ddb30500bba694572861077a9669caa226250f6
[ "MIT" ]
3
2019-08-20T07:17:11.000Z
2021-05-23T22:08:59.000Z
GPConstr/util/linalg.py
m-shalaby/gp_constr
2ddb30500bba694572861077a9669caa226250f6
[ "MIT" ]
6
2019-07-10T15:16:24.000Z
2022-01-10T21:31:50.000Z
import numpy as np import scipy as sp from numpy.core.umath_tests import inner1d def is_symPD_svd(M, verbatim = False, sym_tol = 1E-5, psd_tol = 1E-5): """ Check if matrix is symmetric and positive definite up to some error using SVD """ # Symmetric symdiff = abs(M - M.T).max() is_sym = symdiff <...
31.273148
129
0.574389
8c61a70f301ef2a3e473f41063e1cd7386c9e07e
9,280
py
Python
src/robot/running/runner.py
guykisel/robotframework
495befccb8eec20a7c38d22bf0abcc8eda72582e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/running/runner.py
guykisel/robotframework
495befccb8eec20a7c38d22bf0abcc8eda72582e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/running/runner.py
guykisel/robotframework
495befccb8eec20a7c38d22bf0abcc8eda72582e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Solutions and Networks # # 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 l...
43.364486
85
0.617565
797fdf001c05a9447dc195810977fa95c85621ad
90,279
py
Python
src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py
IamPeterPan/azure-cli
458a7641bf706601d22ee5b5e6435aab7ec95bca
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py
IamPeterPan/azure-cli
458a7641bf706601d22ee5b5e6435aab7ec95bca
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-network/azure/cli/command_modules/network/_params.py
IamPeterPan/azure-cli
458a7641bf706601d22ee5b5e6435aab7ec95bca
[ "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. # --------------------------------------------------------------------...
82.37135
390
0.722771
4bfb0e7240e85d5bd809eb56e2eb1e6c9d2aa998
2,542
py
Python
src/util.py
fullkawa/aglab
c8d08791a515c7c1b2a99c0ce54db882222c240f
[ "MIT" ]
3
2015-05-05T13:40:26.000Z
2015-11-27T17:42:23.000Z
src/util.py
fullkawa/aglab
c8d08791a515c7c1b2a99c0ce54db882222c240f
[ "MIT" ]
9
2015-01-01T09:06:26.000Z
2015-01-18T14:21:44.000Z
src/util.py
fullkawa/aglab
c8d08791a515c7c1b2a99c0ce54db882222c240f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import re def dict_merge(dct, merge_dct): """ Recursive dict merge. Inspired by :meth:``dict.update()``, instead of updating only top-level keys, dict_merge recurses down into dicts nested to an arbitrary depth, updating keys. The ``merge_dct`` is merged into ...
26.206186
77
0.597561
0649cb0ff951e53eb3061132e2eb6a28ca7bd453
2,596
py
Python
homeassistant/components/prosegur/alarm_control_panel.py
Tediore/home-assistant
5ff5ed47446eea264b68182ea9ddebc476ebfcb0
[ "Apache-2.0" ]
null
null
null
homeassistant/components/prosegur/alarm_control_panel.py
Tediore/home-assistant
5ff5ed47446eea264b68182ea9ddebc476ebfcb0
[ "Apache-2.0" ]
12
2021-12-16T06:18:49.000Z
2022-03-31T06:25:54.000Z
homeassistant/components/prosegur/alarm_control_panel.py
Tediore/home-assistant
5ff5ed47446eea264b68182ea9ddebc476ebfcb0
[ "Apache-2.0" ]
null
null
null
"""Support for Prosegur alarm control panels.""" import logging from pyprosegur.auth import Auth from pyprosegur.installation import Installation, Status import homeassistant.components.alarm_control_panel as alarm from homeassistant.components.alarm_control_panel import AlarmControlPanelEntityFeature from homeassist...
31.277108
87
0.720339
31fd5c0e77f6a5489cae27ee10326af344b6097b
2,098
py
Python
HD_training_generate.py
corganhejijun/frontal-face-trans
a8d4d99bf537b4947258666272622f5a4bc759b5
[ "MIT" ]
null
null
null
HD_training_generate.py
corganhejijun/frontal-face-trans
a8d4d99bf537b4947258666272622f5a4bc759b5
[ "MIT" ]
null
null
null
HD_training_generate.py
corganhejijun/frontal-face-trans
a8d4d99bf537b4947258666272622f5a4bc759b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import numpy as np import cv2 import random from src.resize_for_train import combineImg OUT_SIZE = 256 NP_SAVE_DIR = "datasets/celeba_NP_MASK" HD_CELEBA_DIR = "datasets/celeba/data_crop_512_jpg" DEST_DIR = "datasets/HD_training_" + str(OUT_SIZE) BLACK_POINT_VALUE = 100 counter = 0 f...
31.787879
99
0.557674
829aedd0a2c16eaf41d547d4819b60749599686f
473
py
Python
util/folder.py
johnosn/orb_01_talos_queries
6c50dccba91ee664d79c20c15bd90f0811c63490
[ "MIT" ]
null
null
null
util/folder.py
johnosn/orb_01_talos_queries
6c50dccba91ee664d79c20c15bd90f0811c63490
[ "MIT" ]
null
null
null
util/folder.py
johnosn/orb_01_talos_queries
6c50dccba91ee664d79c20c15bd90f0811c63490
[ "MIT" ]
null
null
null
"""Proccesing for folders.""" from util.json_files import enum_json from util.yaml_files import enum_yaml def process_folder(repo_path, folder): """Find files and send for processing.""" folder_path = repo_path + folder + "\\" vars()[folder] = dict() json_queries = enum_json(folder_path) ...
27.823529
46
0.682875
3106d6bdf7aa9414d944c5f33a5ea7446500eac1
114
py
Python
services/urls.py
Yubisel/webempresa
a96086a225946aff0c79c537da6d6f11a852f4ad
[ "MIT" ]
null
null
null
services/urls.py
Yubisel/webempresa
a96086a225946aff0c79c537da6d6f11a852f4ad
[ "MIT" ]
null
null
null
services/urls.py
Yubisel/webempresa
a96086a225946aff0c79c537da6d6f11a852f4ad
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.services, name='services'), ]
19
46
0.692982
36b12e0640a39c29c5834504fbd81dda81d719c8
834
py
Python
setup.py
frommie/rasahub-debug-client
76d3bb081a9438d0a8c209b2582872b846f628ed
[ "MIT" ]
null
null
null
setup.py
frommie/rasahub-debug-client
76d3bb081a9438d0a8c209b2582872b846f628ed
[ "MIT" ]
1
2018-05-30T07:53:47.000Z
2018-05-30T07:53:47.000Z
setup.py
frommie/rasahub-debug-client
76d3bb081a9438d0a8c209b2582872b846f628ed
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages install_requires = [ 'rasahub', 'rasahub-debug', ] tests_requires = [ ] extras_requires = { 'test': tests_requires } setup( name='rasahub-debug-client', version='0.0.1', description='Debugging for Rasahub', author='Christian Frommert', auth...
23.828571
54
0.657074
68b612fa4ccdcabb4b5f490deb09a8adfa90a704
1,088
py
Python
assignment/assignment-4/sql-injection_fixed.py
mfranzil/unitn-m-st
7d32acee2d3bea658cec4cd3b0eda22e82c8ecad
[ "MIT" ]
null
null
null
assignment/assignment-4/sql-injection_fixed.py
mfranzil/unitn-m-st
7d32acee2d3bea658cec4cd3b0eda22e82c8ecad
[ "MIT" ]
null
null
null
assignment/assignment-4/sql-injection_fixed.py
mfranzil/unitn-m-st
7d32acee2d3bea658cec4cd3b0eda22e82c8ecad
[ "MIT" ]
null
null
null
import sys import os import sqlite3 # Connect to database conn = None try: conn = sqlite3.connect('users.db') except Exception: print("Can't connect to the database") sys.exit(-1) print("Welcome to this vulnerable database reader") print("You have to login first") print("Insert your user-id") user_id = i...
27.2
79
0.663603
24931ab8c27ca41808d23f1195818c097081c99c
90
py
Python
layout/__init__.py
y252328/ATerm
36430b704a5a6cf333347ccc2e9f89a0b3c59645
[ "MIT" ]
1
2021-11-04T07:13:55.000Z
2021-11-04T07:13:55.000Z
layout/__init__.py
y252328/ATerm
36430b704a5a6cf333347ccc2e9f89a0b3c59645
[ "MIT" ]
null
null
null
layout/__init__.py
y252328/ATerm
36430b704a5a6cf333347ccc2e9f89a0b3c59645
[ "MIT" ]
1
2020-02-03T03:15:09.000Z
2020-02-03T03:15:09.000Z
from .Ui_MainWindow import Ui_MainWindow from .Ui_SendFileDialog import Ui_SendFileDialog
45
48
0.888889
552d9b70ebe610f24c516a01dc85e2b95f3508d1
15,752
py
Python
agents/student_agent.py
EbotFabien/AI-
847e6cc77247d315640d6d83d561b0a11707ed01
[ "MIT" ]
1
2022-03-27T14:16:45.000Z
2022-03-27T14:16:45.000Z
agents/student_agent.py
EbotFabien/AI-
847e6cc77247d315640d6d83d561b0a11707ed01
[ "MIT" ]
null
null
null
agents/student_agent.py
EbotFabien/AI-
847e6cc77247d315640d6d83d561b0a11707ed01
[ "MIT" ]
null
null
null
# Student agent: Add your own agent here from agents.agent import Agent from store import register_agent import sys import numpy as np from copy import deepcopy import sys @register_agent("student_agent") class StudentAgent(Agent): """ A dummy class for your implementation. Feel free to use this class to ...
34.849558
135
0.447943
6878965e0c50cd378d71a90952200a1b72d31170
12,677
py
Python
src/_pytest/pathlib.py
isidentical/pytest
cc283cfe79b9ab97edd2d10fb05d217ff498b809
[ "MIT" ]
null
null
null
src/_pytest/pathlib.py
isidentical/pytest
cc283cfe79b9ab97edd2d10fb05d217ff498b809
[ "MIT" ]
null
null
null
src/_pytest/pathlib.py
isidentical/pytest
cc283cfe79b9ab97edd2d10fb05d217ff498b809
[ "MIT" ]
null
null
null
import atexit import fnmatch import itertools import os import shutil import sys import uuid import warnings from functools import partial from os.path import expanduser from os.path import expandvars from os.path import isabs from os.path import sep from posixpath import sep as posix_sep from typing import Iterable fr...
31.6925
118
0.649996
68bf110a4f053ebb63dddcb9aa78e6e3264be5bf
441
py
Python
mysite/core/migrations/0002_profile_employer.py
coetzeevs/chiron
f6d369a4df7986b6cb9b8c5eff42869d1746119c
[ "MIT" ]
null
null
null
mysite/core/migrations/0002_profile_employer.py
coetzeevs/chiron
f6d369a4df7986b6cb9b8c5eff42869d1746119c
[ "MIT" ]
null
null
null
mysite/core/migrations/0002_profile_employer.py
coetzeevs/chiron
f6d369a4df7986b6cb9b8c5eff42869d1746119c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-02 12:51 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.AddField( m...
21
53
0.60771
d1ab4c32e49e51de3e216b4acbe86e79763046de
616
py
Python
grr/server/aff4_objects/registry_init.py
nexus-lab/relf-server
d46774799c20376691c38f9293f454a3aff3ccb3
[ "Apache-2.0" ]
null
null
null
grr/server/aff4_objects/registry_init.py
nexus-lab/relf-server
d46774799c20376691c38f9293f454a3aff3ccb3
[ "Apache-2.0" ]
null
null
null
grr/server/aff4_objects/registry_init.py
nexus-lab/relf-server
d46774799c20376691c38f9293f454a3aff3ccb3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Load all aff4 objects in order to populate the registry. """ # pylint: disable=unused-import from grr.server.aff4_objects import aff4_grr from grr.server.aff4_objects import collects from grr.server.aff4_objects import cronjobs from grr.server.aff4_objects import filestore from grr.server.aff4_...
38.5
59
0.840909
160d5076dc28247eafde6f93b1b5ed576584b754
13,883
py
Python
test/functional/interface_pexa_cli.py
fakecoinbase/pexaslashcore
dd0612727878844da7e47bdad0e0aca6c841aa81
[ "MIT" ]
19
2019-10-25T12:53:27.000Z
2022-01-31T13:25:16.000Z
test/functional/interface_pexa_cli.py
fakecoinbase/pexaslashcore
dd0612727878844da7e47bdad0e0aca6c841aa81
[ "MIT" ]
3
2020-12-23T16:17:31.000Z
2020-12-26T10:12:37.000Z
test/functional/interface_pexa_cli.py
fakecoinbase/pexaslashcore
dd0612727878844da7e47bdad0e0aca6c841aa81
[ "MIT" ]
6
2020-04-20T19:21:37.000Z
2021-08-31T19:35:48.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2020 The Pexa Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test pexa-cli""" from decimal import Decimal from test_framework.test_framework import PexaTestFramework ...
57.131687
166
0.655406
5c9d2b7e4314b6886ffb32b4a502b441843e2ea8
1,001
py
Python
Day 2 Assigment/question number2.py
Rohitsaravanan2002/Letsupgrade-Python-B7
a6a44a1379c76f7d5d6ff7230c93f8237f341522
[ "Apache-2.0" ]
null
null
null
Day 2 Assigment/question number2.py
Rohitsaravanan2002/Letsupgrade-Python-B7
a6a44a1379c76f7d5d6ff7230c93f8237f341522
[ "Apache-2.0" ]
null
null
null
Day 2 Assigment/question number2.py
Rohitsaravanan2002/Letsupgrade-Python-B7
a6a44a1379c76f7d5d6ff7230c93f8237f341522
[ "Apache-2.0" ]
null
null
null
#Question 2 #Dictionary and its default functions.......... #syntax dic_name={key1:value1,key2:value2...............} Details={"name":"rohit","rollno":10,"Subject":"Python"} print("Printing the dictionary elements............",Details) #5 functions in python................. #copy() Returns a copy of ...
25.025
79
0.687313
db7a5b37b1e2822602e806e1844285003b934cda
42,444
py
Python
tests/dashboard/test_permissions.py
jslegend/python3-django-saleor
4b93add64e6f612ee9ce4ea3108effab65c2ad31
[ "BSD-3-Clause" ]
1
2021-01-29T13:28:29.000Z
2021-01-29T13:28:29.000Z
tests/dashboard/test_permissions.py
jslegend/python3-django-saleor
4b93add64e6f612ee9ce4ea3108effab65c2ad31
[ "BSD-3-Clause" ]
1
2022-02-10T14:46:00.000Z
2022-02-10T14:46:00.000Z
tests/dashboard/test_permissions.py
jslegend/python3-django-saleor
4b93add64e6f612ee9ce4ea3108effab65c2ad31
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.urls import reverse from saleor.userprofile.models import User def test_admin_can_view_staff_list(admin_client): response = admin_client.get(reverse('dashboard:staff-list')) assert response.status_code == 200 def test_staff_cant_view_staff_list(staff_cli...
45.346154
98
0.715343
095efb3aa9307b2b55929fa6111b9d186d1955d0
3,716
py
Python
PokerRL/eval/lbr/LocalLBRMaster.py
EricSteinberger/DREAM
bfe21bbb0f60ab27a1af9774308efbbbd41e68c4
[ "MIT" ]
78
2020-06-21T09:45:39.000Z
2022-03-28T11:39:38.000Z
PokerRL/eval/lbr/LocalLBRMaster.py
EricSteinberger/DREAM
bfe21bbb0f60ab27a1af9774308efbbbd41e68c4
[ "MIT" ]
5
2020-06-26T05:21:57.000Z
2021-04-11T11:03:27.000Z
PokerRL/eval/lbr/LocalLBRMaster.py
EricSteinberger/DREAM
bfe21bbb0f60ab27a1af9774308efbbbd41e68c4
[ "MIT" ]
18
2020-06-22T16:05:57.000Z
2021-11-13T07:29:34.000Z
# Copyright (c) 2019 Eric Steinberger """ The local master contains logic to manage many workers, but if instantiated as local, will only manage one. It handles logging and provides an interface to the LBR computation. """ import numpy as np from PokerRL.eval._.EvaluatorMasterBase import EvaluatorMasterBase from Pok...
40.835165
120
0.548977
c4e76b4677fffa94987e4289d83cdf104da30526
1,755
py
Python
py/trash/904_probe_0129-4.py
KazukiOnodera/Microsoft-Malware-Prediction
103cbf7c4fc98ae584e1aa9d1c220bb79ddbbd80
[ "MIT" ]
24
2019-03-14T05:03:16.000Z
2021-07-16T05:14:05.000Z
py/trash/904_probe_0129-4.py
xwc940512/Microsoft-Malware-Prediction
103cbf7c4fc98ae584e1aa9d1c220bb79ddbbd80
[ "MIT" ]
1
2019-05-20T10:06:33.000Z
2019-05-20T10:06:33.000Z
py/trash/904_probe_0129-4.py
xwc940512/Microsoft-Malware-Prediction
103cbf7c4fc98ae584e1aa9d1c220bb79ddbbd80
[ "MIT" ]
8
2019-03-14T06:28:38.000Z
2019-05-21T14:58:21.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jan 29 21:33:45 2019 @author: kazuki.onodera # different category EngineVersion: ['1.1.15300.6', '1.1.15400.4', '1.1.15400.5'] AppVersion: ['4.18.1809.2', '4.18.1810.5'] Census_OSVersion: ['10.0.17134.345'] """ import numpy as np import pandas as pd...
22.792208
79
0.51567
c36e44341c7caaba39de4d8f188fe677e8e4dd74
446
py
Python
actions/utils/statics/static.py
oraclecloudbricks/action_fireup
ef56a66f25f5a17dd418c4d507724149fe978417
[ "UPL-1.0" ]
1
2022-01-25T01:14:22.000Z
2022-01-25T01:14:22.000Z
actions/utils/statics/static.py
oraclecloudbricks/action_fireup
ef56a66f25f5a17dd418c4d507724149fe978417
[ "UPL-1.0" ]
1
2022-01-13T14:50:30.000Z
2022-01-26T01:18:47.000Z
actions/utils/statics/static.py
oraclecloudbricks/action_fireup
ef56a66f25f5a17dd418c4d507724149fe978417
[ "UPL-1.0" ]
null
null
null
# Copyright (c) 2022 Oracle and/or its affiliates. # All rights reserved. The Universal Permissive License (UPL), Version 1.0 as shown at http://oss.oracle.com/licenses/upl # statics.py # Description: Includes all statics variables used in project __STATICS_PATH ='github/workspace/common/utils/statics/Statics.py' __H...
44.6
121
0.795964
5620dccffc0d64172039b9e8c00a401abe5c4822
5,974
py
Python
python/jittor/optim.py
shiminhu/jittor
8aa5974fef8106d3ddea8209fb44b33cec120a09
[ "Apache-2.0" ]
5
2020-08-09T02:27:58.000Z
2021-01-13T16:04:32.000Z
python/jittor/optim.py
Zhengjun-Du/jittor
8aa5974fef8106d3ddea8209fb44b33cec120a09
[ "Apache-2.0" ]
null
null
null
python/jittor/optim.py
Zhengjun-Du/jittor
8aa5974fef8106d3ddea8209fb44b33cec120a09
[ "Apache-2.0" ]
null
null
null
# *************************************************************** # Copyright (c) 2020 Jittor. Authors: # Guowei Yang <471184555@qq.com> # Guoye Yang <498731903@qq.com> # Wenyang Zhou <576825820@qq.com> # Meng-Hao Guo <guomenghao1997@gmail.com> # Dun Liang <randonlang@gmail.com>. # # All Rights Rese...
34.732558
94
0.518413
9d03dcd9ba537d440e85c9f5dea46163276e67b1
3,200
py
Python
frigate/stats.py
fl42/frigate
d7460d9c3606267b36a2ba5efccde395f6e05064
[ "MIT" ]
2
2020-11-18T20:53:52.000Z
2021-01-25T01:06:36.000Z
frigate/stats.py
fl42/frigate
d7460d9c3606267b36a2ba5efccde395f6e05064
[ "MIT" ]
1
2021-05-18T20:01:13.000Z
2021-05-19T02:11:54.000Z
frigate/stats.py
fl42/frigate
d7460d9c3606267b36a2ba5efccde395f6e05064
[ "MIT" ]
null
null
null
import json import logging import threading import time import psutil import shutil from frigate.config import FrigateConfig from frigate.const import RECORD_DIR, CLIPS_DIR, CACHE_DIR from frigate.version import VERSION logger = logging.getLogger(__name__) def stats_init(camera_metrics, detectors): stats_trackin...
34.408602
101
0.643438
f13d8281cf2d7a0c40ac05a321965d6b067ea8fb
1,581
py
Python
survae/data/loaders/image/imagenet32.py
robert-giaquinto/survae_flows
4d7dc638f77c48ad3c8393b967c33ac9dbad60fe
[ "MIT" ]
2
2021-03-06T19:37:39.000Z
2022-01-09T11:19:45.000Z
survae/data/loaders/image/imagenet32.py
robert-giaquinto/survae_flows
4d7dc638f77c48ad3c8393b967c33ac9dbad60fe
[ "MIT" ]
null
null
null
survae/data/loaders/image/imagenet32.py
robert-giaquinto/survae_flows
4d7dc638f77c48ad3c8393b967c33ac9dbad60fe
[ "MIT" ]
null
null
null
from survae.data.datasets.image import UnsupervisedImageNet32Dataset, SuperResolutionImageNet32Dataset from torchvision.transforms import Compose, ToTensor, Resize from survae.data.transforms import Quantize from survae.data import TrainTestLoader, DATA_PATH class ImageNet32(TrainTestLoader): ''' The ImageNet...
49.40625
163
0.729918
9dd9995f9cd0793b86df80671a439dbab0c9ec38
6,007
py
Python
chapter_06/inference.py
XiangLiK/cv_course
da7c2318fd4128bbdab96db26ddbb2524f37d0a0
[ "MIT" ]
8
2020-04-11T12:09:39.000Z
2020-07-13T06:43:45.000Z
chapter_06/inference.py
XLEric/cv_course
da7c2318fd4128bbdab96db26ddbb2524f37d0a0
[ "MIT" ]
null
null
null
chapter_06/inference.py
XLEric/cv_course
da7c2318fd4128bbdab96db26ddbb2524f37d0a0
[ "MIT" ]
1
2020-08-16T20:42:42.000Z
2020-08-16T20:42:42.000Z
#-*-coding:utf-8-*- # date:2020-04-25 # Author: xiang li # function: inference import os import argparse import torch import torch.nn as nn from data_iter.datasets import letterbox import numpy as np import time import datetime import os import math from datetime import datetime import cv2 import ...
38.018987
116
0.541368
1deb06eecacc2a651666a7f75ecfc487b6b8e486
6,475
py
Python
cowin_project/models/sub_project/post_investment_management/sub_project_three_empowerment.py
shangdinvxu/cowinaddons
4e9d69894cd80e5427ccc9bac6c37b8bd67cadd0
[ "MIT" ]
null
null
null
cowin_project/models/sub_project/post_investment_management/sub_project_three_empowerment.py
shangdinvxu/cowinaddons
4e9d69894cd80e5427ccc9bac6c37b8bd67cadd0
[ "MIT" ]
null
null
null
cowin_project/models/sub_project/post_investment_management/sub_project_three_empowerment.py
shangdinvxu/cowinaddons
4e9d69894cd80e5427ccc9bac6c37b8bd67cadd0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from odoo import models, fields, api class sub_project_three_empowerment(models.Model): _name = 'cowin_project.sub_three_empowerment' ''' 三会授权书 ''' subproject_id = fields.Many2one('cowin_project.cowin_subproject', ondelete="cascade") # # name = fie...
39.006024
157
0.629344
af92b65153c7b072d7f00ee2fdf7611c5d9e06a5
4,029
py
Python
MRC/helper.py
microsoft/AzureSearch-MRC
25886cf2241a73e23d5d68ab66ddc6dfff09b222
[ "MIT" ]
null
null
null
MRC/helper.py
microsoft/AzureSearch-MRC
25886cf2241a73e23d5d68ab66ddc6dfff09b222
[ "MIT" ]
null
null
null
MRC/helper.py
microsoft/AzureSearch-MRC
25886cf2241a73e23d5d68ab66ddc6dfff09b222
[ "MIT" ]
1
2021-11-10T11:43:28.000Z
2021-11-10T11:43:28.000Z
import logging import sys def main(): return None def get_config(req): ''' Get config and set parameters ''' # Assuming that we receive the params via url question = req.params.get('question') n_doc = req.params.get('az_documents') treshold = req.params.get('az_treshold') tokenize ...
39.891089
149
0.650782
b98c9927d622305b487974223a2ce650cf721d7e
1,872
py
Python
examples/mujoco/sac.py
cindycia/Atari-SAC-Discrete
5d92339f3efbac34488a14db024499b8951fc3b3
[ "MIT" ]
16
2019-11-15T13:37:20.000Z
2022-01-24T10:29:38.000Z
examples/mujoco/sac.py
cindycia/Atari-SAC-Discrete
5d92339f3efbac34488a14db024499b8951fc3b3
[ "MIT" ]
1
2020-05-09T18:24:21.000Z
2020-05-10T12:44:39.000Z
examples/mujoco/sac.py
ku2482/rltorch
7819af49d95bfa268e00413a7606564b0e7286a7
[ "MIT" ]
3
2020-12-21T08:21:15.000Z
2022-01-24T10:29:43.000Z
import os from datetime import datetime import argparse import gym from rltorch.agent import SacActor, SacLearner from rltorch.distributed import run_distributed def run(): parser = argparse.ArgumentParser() parser.add_argument('--env_id', type=str, default='HalfCheetah-v2') parser.add_argument('-n', '--...
28.8
72
0.563568
ee2e3fe2871ac20300d6376fe9972beaaa5c01af
1,824
py
Python
openerp/addons/l10n_si/__openerp__.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
3
2016-01-29T14:39:49.000Z
2018-12-29T22:42:00.000Z
odoo/addons/l10n_si/__openerp__.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
2
2016-03-23T14:29:41.000Z
2017-02-20T17:11:30.000Z
odoo/addons/l10n_si/__openerp__.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
3
2020-10-08T14:42:10.000Z
2022-01-28T14:12:29.000Z
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright: (C) 2012 - Mentis d.o.o., Dravograd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affe...
39.652174
88
0.603618
d8a3e1d57043cc61e80b5ba9f4c2ada514d13478
1,090
py
Python
kolibri/plugins/learn/kolibri_plugin.py
arceduardvincent/kolibri
26073dda2569bb38bfe1e08ba486e96f650d10ce
[ "MIT" ]
null
null
null
kolibri/plugins/learn/kolibri_plugin.py
arceduardvincent/kolibri
26073dda2569bb38bfe1e08ba486e96f650d10ce
[ "MIT" ]
null
null
null
kolibri/plugins/learn/kolibri_plugin.py
arceduardvincent/kolibri
26073dda2569bb38bfe1e08ba486e96f650d10ce
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from . import hooks from kolibri.core.auth.constants.user_kinds import LEARNER from kolibri.core.hooks import NavigationHook from kolibri.core.hooks import RoleBasedRedirectHook from kolibri.core.webpac...
25.952381
68
0.773394
19e0474489059859a26a86a48c0348696145c309
51,485
py
Python
generator/wrapper_gen.py
SmirnovEgorRu/daal4py
86ba419afe159edb3cb33e6b629f0800811853c8
[ "Apache-2.0" ]
null
null
null
generator/wrapper_gen.py
SmirnovEgorRu/daal4py
86ba419afe159edb3cb33e6b629f0800811853c8
[ "Apache-2.0" ]
null
null
null
generator/wrapper_gen.py
SmirnovEgorRu/daal4py
86ba419afe159edb3cb33e6b629f0800811853c8
[ "Apache-2.0" ]
null
null
null
#******************************************************************************* # Copyright 2014-2019 Intel 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.apa...
38.250371
228
0.606623
9895288a014311b45f1dba6c8f2270561961a3a5
78,051
py
Python
xonsh/environ.py
Itay4/xonsh
c482940c885ca15c1d9484af908285bf91143a32
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xonsh/environ.py
Itay4/xonsh
c482940c885ca15c1d9484af908285bf91143a32
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xonsh/environ.py
Itay4/xonsh
c482940c885ca15c1d9484af908285bf91143a32
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- """Environment for the xonsh shell.""" import os import re import sys import pprint import textwrap import locale import builtins import warnings import contextlib import collections import collections.abc as cabc import subprocess from xonsh import __version__ as XONSH_VERSION from xonsh.lazya...
35.477727
104
0.550397
f511ada215dbef258fe088f3ed11fc8c2f972750
2,417
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_EE.py
AMuratTuran/mkn
557086426773ced10d82c969304bd349414a601e
[ "BSD-3-Clause" ]
4
2018-10-19T04:36:20.000Z
2020-02-13T16:14:09.000Z
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_EE.py
AMuratTuran/mkn
557086426773ced10d82c969304bd349414a601e
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_EE.py
AMuratTuran/mkn
557086426773ced10d82c969304bd349414a601e
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. EE metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_EE = PhoneMetadata(id='EE', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='1\\d{2,5}', possible_length=(3, 4, 5, 6...
201.416667
783
0.565163
11ccabf91e81be5c7abb897410655d683ba60d25
1,856
py
Python
ch07/plot_map.py
laszlokiraly/LearningAlgorithms
032a3cc409546619cf41220821d081cde54bbcce
[ "MIT" ]
74
2021-05-06T22:03:18.000Z
2022-03-25T04:37:51.000Z
ch07/plot_map.py
laszlokiraly/LearningAlgorithms
032a3cc409546619cf41220821d081cde54bbcce
[ "MIT" ]
null
null
null
ch07/plot_map.py
laszlokiraly/LearningAlgorithms
032a3cc409546619cf41220821d081cde54bbcce
[ "MIT" ]
19
2021-07-16T11:42:00.000Z
2022-03-22T00:25:49.000Z
""" Supporting functions for plotting the latitude/longitude data. """ from ch07.dependencies import plt_error from ch07.replacement import WEIGHT def plot_edge_path(positions, src, target, edge_to, marker='.', color='green'): """ Plot path using list of nodes in edge_to[] according to positional information ...
26.898551
82
0.614763
fc389318569a119fde084b540620b1a47e189afb
1,118
py
Python
mojangapi.py
paolo565/McTelegram
70f0c14d7187862ffe6fecc584bdde97a672d355
[ "MIT" ]
null
null
null
mojangapi.py
paolo565/McTelegram
70f0c14d7187862ffe6fecc584bdde97a672d355
[ "MIT" ]
null
null
null
mojangapi.py
paolo565/McTelegram
70f0c14d7187862ffe6fecc584bdde97a672d355
[ "MIT" ]
null
null
null
import requests import json def check_mojang_status(): response = requests.request("GET", "https://status.mojang.com/check") if response.status_code != 200: return False statuses = {} for data in response.json(): key = list(data.keys())[0] statuses[key] = data[key] return ...
23.787234
102
0.624329
aed47c822d551000d4a3969f3010d3a090984cf3
503
py
Python
tools/intogen/runtime/pyenv/lib/python2.7/site-packages/scipy/integrate/setupscons.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
tools/intogen/runtime/pyenv/lib/python2.7/site-packages/scipy/integrate/setupscons.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
tools/intogen/runtime/pyenv/lib/python2.7/site-packages/scipy/integrate/setupscons.py
globusgenomics/galaxy
7caf74d9700057587b3e3434c64e82c5b16540f1
[ "CC-BY-3.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
#!/usr/bin/env python from __future__ import division, print_function, absolute_import from os.path import join def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('integrate', parent_package, top_path) config.add_sconscript('SC...
25.15
65
0.751491
80d0569b0a5918a10ea66a5debf0ae8d05b2bdea
911
py
Python
main.py
jesiqueira/binance
f7d46b1a1ad864288f57548266e3d95c173f8bb9
[ "MIT" ]
null
null
null
main.py
jesiqueira/binance
f7d46b1a1ad864288f57548266e3d95c173f8bb9
[ "MIT" ]
null
null
null
main.py
jesiqueira/binance
f7d46b1a1ad864288f57548266e3d95c173f8bb9
[ "MIT" ]
null
null
null
from binance.client import Client from time import sleep from binance import ThreadedDepthCacheManager from config import Config import pprint client = Client(Config.API_KEY, Config.API_SECRET) client.API_URL = 'https://testnet.binance.vision/api' # Informações da conta # print(client.get_account()) # Preço mais re...
25.305556
76
0.706915
0e1d156282cdd39635c6e3b83c6c76140584de00
374
py
Python
falcon/media/__init__.py
5onic/falcon
afe0ce142615f4983180cddee0c5ddde03690e83
[ "Apache-2.0" ]
1
2020-04-18T12:58:51.000Z
2020-04-18T12:58:51.000Z
falcon/media/__init__.py
5onic/falcon
afe0ce142615f4983180cddee0c5ddde03690e83
[ "Apache-2.0" ]
1
2021-07-24T15:39:29.000Z
2021-07-24T15:39:29.000Z
falcon/media/__init__.py
5onic/falcon
afe0ce142615f4983180cddee0c5ddde03690e83
[ "Apache-2.0" ]
1
2020-03-06T13:38:33.000Z
2020-03-06T13:38:33.000Z
from .base import BaseHandler from .handlers import Handlers from .json import JSONHandler from .msgpack import MessagePackHandler from .multipart import MultipartFormHandler from .urlencoded import URLEncodedFormHandler __all__ = [ 'BaseHandler', 'Handlers', 'JSONHandler', 'MessagePackHandler', '...
22
45
0.76738
5fb0eedca0b5ba31391b825121346ea22d73e4fc
6,843
py
Python
sfdoc/publish/tests/utils.py
SFDO-Tooling/sfdoc
6bc7277cbc6e01c03581a7217a2c33fbfa91a537
[ "BSD-3-Clause" ]
5
2019-08-01T18:53:00.000Z
2022-02-07T16:16:09.000Z
sfdoc/publish/tests/utils.py
SFDO-Tooling/sfdoc
6bc7277cbc6e01c03581a7217a2c33fbfa91a537
[ "BSD-3-Clause" ]
144
2019-04-25T21:40:44.000Z
2022-03-28T20:43:31.000Z
sfdoc/publish/tests/utils.py
SalesforceFoundation/sfdoc
6bc7277cbc6e01c03581a7217a2c33fbfa91a537
[ "BSD-3-Clause" ]
1
2019-03-28T05:06:06.000Z
2019-03-28T05:06:06.000Z
import re import os import glob import time from http import HTTPStatus from io import BytesIO from urllib.parse import urlencode from urllib.parse import urljoin from zipfile import ZipFile from contextlib import contextmanager from unittest import mock from tempfile import TemporaryDirectory from django.conf import s...
29.49569
103
0.606459
61063be6be8299dfd82babd2428465facf16bb29
22,270
py
Python
python/ccxt/async_support/lykke.py
asedighi/ccxt
627ef1f31c8023655df96cf03e33726a62dee668
[ "MIT" ]
1
2022-01-26T04:35:56.000Z
2022-01-26T04:35:56.000Z
python/ccxt/async_support/lykke.py
asedighi/ccxt
627ef1f31c8023655df96cf03e33726a62dee668
[ "MIT" ]
null
null
null
python/ccxt/async_support/lykke.py
asedighi/ccxt
627ef1f31c8023655df96cf03e33726a62dee668
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange from ccxt.base.precise import Precise class lykke(Exchange): def describe(self...
37.303183
126
0.46044
0e8fc7e4c5ba44fca2e371f3733ee637aed1c647
18,346
py
Python
contextualbandits/linreg/__init__.py
umangsaraf98/contextualbandits
c77f4833db9780fb2d0e0362474f0599654233e0
[ "BSD-2-Clause" ]
null
null
null
contextualbandits/linreg/__init__.py
umangsaraf98/contextualbandits
c77f4833db9780fb2d0e0362474f0599654233e0
[ "BSD-2-Clause" ]
null
null
null
contextualbandits/linreg/__init__.py
umangsaraf98/contextualbandits
c77f4833db9780fb2d0e0362474f0599654233e0
[ "BSD-2-Clause" ]
null
null
null
import numpy as np import ctypes from scipy.sparse import issparse, isspmatrix_csr import warnings from sklearn.base import BaseEstimator from . import _wrapper_double, _wrapper_float class LinearRegression(BaseEstimator): """ Linear Regression Typical Linear Regression model, which keeps track of th...
38.300626
118
0.563611
e70b07de4860d59969c7b66a807c97f562834d0c
16
py
Python
src/wyatterp/__init__.py
ktsiligkiris/wyatterp
4be521e6fc6ef3f9fa3bed754e9a9ffae66ab74d
[ "Apache-2.0" ]
null
null
null
src/wyatterp/__init__.py
ktsiligkiris/wyatterp
4be521e6fc6ef3f9fa3bed754e9a9ffae66ab74d
[ "Apache-2.0" ]
39
2021-11-01T18:23:40.000Z
2022-03-30T18:25:15.000Z
src/wyatterp/__init__.py
ktsiligkiris/wyatterp
4be521e6fc6ef3f9fa3bed754e9a9ffae66ab74d
[ "Apache-2.0" ]
null
null
null
"""Wyatterp."""
8
15
0.5
07041773507d60a852aa42aa8327484637a73cea
4,383
py
Python
prompt_toolkit/shortcuts/utils.py
rokn/python-prompt-toolkit
b8a8be975fb356cb927fb08ac47801c4c93724ed
[ "BSD-3-Clause" ]
null
null
null
prompt_toolkit/shortcuts/utils.py
rokn/python-prompt-toolkit
b8a8be975fb356cb927fb08ac47801c4c93724ed
[ "BSD-3-Clause" ]
null
null
null
prompt_toolkit/shortcuts/utils.py
rokn/python-prompt-toolkit
b8a8be975fb356cb927fb08ac47801c4c93724ed
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals, print_function from prompt_toolkit.formatted_text import to_formatted_text from prompt_toolkit.output import Output, ColorDepth from prompt_toolkit.output.defaults import create_output, get_default_output from prompt_toolkit.renderer import print_formatted_text as renderer_print...
29.816327
106
0.660735
3abba0b781bc5b04a6e63b9f3b1fc9662aeb8220
3,028
py
Python
src/transformers/models/openai/__init__.py
dctelus/transformers
6786cbc4b14ebff0ac59c768cadd109391db9a08
[ "Apache-2.0" ]
8,028
2018-11-05T15:19:44.000Z
2019-07-16T09:14:59.000Z
src/transformers/models/openai/__init__.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
731
2018-11-05T21:35:52.000Z
2019-07-16T09:51:26.000Z
src/transformers/models/openai/__init__.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
2,106
2018-11-05T15:29:15.000Z
2019-07-16T08:51:57.000Z
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
34.409091
113
0.722919
13b6b93644c31460c00eee1effd92f524144d06a
3,327
py
Python
beamlines/fzp/fzp_beamline.py
Lexelius/contrast
175a289e33775bc5b7a6a2a65c6b13761c618272
[ "MIT" ]
3
2021-05-20T07:49:53.000Z
2021-07-12T11:27:39.000Z
beamlines/fzp/fzp_beamline.py
alexbjorling/contrast
ef7d6d8c51fb922e89c1c46db734e3c09f88a9fc
[ "MIT" ]
1
2021-04-20T10:09:17.000Z
2021-04-20T10:09:17.000Z
beamlines/fzp/fzp_beamline.py
alexbjorling/contrast
ef7d6d8c51fb922e89c1c46db734e3c09f88a9fc
[ "MIT" ]
2
2021-08-03T15:13:06.000Z
2021-09-02T09:47:37.000Z
""" Sets up a some actual nanomax hardware. """ # need this main guard here because Process.start() (so our recorders) # import __main__, and we don't want the subprocess to start new sub- # processes etc. if __name__=='__main__': import contrast from contrast.environment import env, runCommand from contr...
40.573171
118
0.713255
a1471e4580baca9c9dfe51dd71e7c7aed43a0ae9
3,768
py
Python
coupons/tests/test_forms.py
Boondockers-Welcome/django-coupons
32b7219cd022ded7600cfb2f861b362775e7d76f
[ "BSD-3-Clause" ]
null
null
null
coupons/tests/test_forms.py
Boondockers-Welcome/django-coupons
32b7219cd022ded7600cfb2f861b362775e7d76f
[ "BSD-3-Clause" ]
null
null
null
coupons/tests/test_forms.py
Boondockers-Welcome/django-coupons
32b7219cd022ded7600cfb2f861b362775e7d76f
[ "BSD-3-Clause" ]
null
null
null
from datetime import timedelta from django.contrib.auth.models import User from django.utils import timezone from django.test import TestCase from coupons.forms import CouponGenerationForm, CouponForm from coupons.models import Coupon, CouponUser class CouponGenerationFormTestCase(TestCase): def test_form(self)...
33.945946
94
0.661624
6d8fd35b738b267d1537646fe80d27129f261637
902
py
Python
mtpiclick/cseries/xga/hmi.py
patricktoohey/mtpiclick
0ab92e93f842023d8d419be3a8e47a8e9e58f2e4
[ "MIT" ]
null
null
null
mtpiclick/cseries/xga/hmi.py
patricktoohey/mtpiclick
0ab92e93f842023d8d419be3a8e47a8e9e58f2e4
[ "MIT" ]
null
null
null
mtpiclick/cseries/xga/hmi.py
patricktoohey/mtpiclick
0ab92e93f842023d8d419be3a8e47a8e9e58f2e4
[ "MIT" ]
null
null
null
import time from pyautogui import ( moveTo, keyDown, keyUp, press ) from mtpiclick.click import moveClick from mtpiclick.point import point class hmi: """ """ home = "ButtonHome" start = "ButtonStart" menu = "ButtonList" changeover = "packageName" lock = "buttonUser" weight = "labelWei...
22
59
0.577605
50c9a3709850efd062575309c8be3233cb44ef36
23,857
py
Python
skimage/filter/rank/generic.py
tonysyu/scikit-image
d5776656a8217e58cb28d5760439a54e96d15316
[ "BSD-3-Clause" ]
null
null
null
skimage/filter/rank/generic.py
tonysyu/scikit-image
d5776656a8217e58cb28d5760439a54e96d15316
[ "BSD-3-Clause" ]
null
null
null
skimage/filter/rank/generic.py
tonysyu/scikit-image
d5776656a8217e58cb28d5760439a54e96d15316
[ "BSD-3-Clause" ]
null
null
null
"""The local histogram is computed using a sliding window similar to the method described in [1]_. Input image can be 8-bit or 16-bit, for 16-bit input images, the number of histogram bins is determined from the maximum value present in the image. Result image is 8-/16-bit or double with respect to the input image an...
32.195682
79
0.621243
5db42a3336db04ec1d5b2f8acfcfe1d2a4ff91c6
6,541
py
Python
var/spack/repos/builtin/packages/amrvis/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/amrvis/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/amrvis/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) class Amrvis(MakefilePackage): """Amrvis is a visualization package specifically designed to read and display ...
32.869347
77
0.538144
b1763221cecdc58098e2a46686e849acc2b5adfb
281,085
py
Python
tests/integration/mininet_tests.py
mab68/faucet
47d4ee31d34a82392a34fe61fbfd4ef117b91e93
[ "Apache-2.0" ]
null
null
null
tests/integration/mininet_tests.py
mab68/faucet
47d4ee31d34a82392a34fe61fbfd4ef117b91e93
[ "Apache-2.0" ]
10
2020-03-19T03:49:17.000Z
2020-07-06T00:38:03.000Z
tests/integration/mininet_tests.py
mab68/faucet
47d4ee31d34a82392a34fe61fbfd4ef117b91e93
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """Mininet tests for FAUCET.""" # pylint: disable=too-many-lines # pylint: disable=missing-docstring # pylint: disable=too-many-arguments # pylint: disable=unbalanced-tuple-unpacking import binascii import collections import copy import itertools import ipaddress import json import os import r...
33.755854
126
0.5742
656bc8d36efad3c48eaf25b191701fa89b5c3fdd
713
py
Python
insta/forms.py
kelvin-wahome/Instaclone
8a65c8bb62c8c20e4aea55103a21700acd1df874
[ "Unlicense" ]
null
null
null
insta/forms.py
kelvin-wahome/Instaclone
8a65c8bb62c8c20e4aea55103a21700acd1df874
[ "Unlicense" ]
5
2020-06-05T21:26:36.000Z
2021-09-08T01:04:55.000Z
insta/forms.py
kelvin-wahome/Instaclone
8a65c8bb62c8c20e4aea55103a21700acd1df874
[ "Unlicense" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from .models import Profile,Image,Comment class SignupForm(UserCreationForm): email = forms.EmailField(max_length=200, help_text='Required') class Meta: model = User fie...
26.407407
66
0.678822
64d47dea08c470e3545543508ebaef88c7e7f7e5
2,963
py
Python
dev/sidebar_data.py
tank671/fastai_dev
aa9ff3f78ac560881f46f7161c0c17a6ca38e87b
[ "Apache-2.0" ]
1
2019-10-22T11:47:38.000Z
2019-10-22T11:47:38.000Z
dev/sidebar_data.py
tank671/fastai_dev
aa9ff3f78ac560881f46f7161c0c17a6ca38e87b
[ "Apache-2.0" ]
5
2019-10-28T23:03:36.000Z
2019-11-04T23:41:04.000Z
dev/sidebar_data.py
tank671/fastai_dev
aa9ff3f78ac560881f46f7161c0c17a6ca38e87b
[ "Apache-2.0" ]
null
null
null
# Usage: After editing this file, next run: # # tools/make_sidebar.py # git commit docs/_data/sidebars/home_sidebar.yml docs_src/sidebar/sidebar_data.py # git push # This dict defines the structure: sidebar_d = { 'Getting started': { 'Installation': 'https://github.com/fastai/fastai/blob/master/README.md#...
30.864583
94
0.502869
8b3b741b82e27ccf8846f3442e98ebcf7e9765f4
3,752
py
Python
metagym/navigator2d/navigator.py
WorldEditors/MetaGym
ad7263fcc80abd6831965ab6b556d54f75e17315
[ "Apache-2.0" ]
null
null
null
metagym/navigator2d/navigator.py
WorldEditors/MetaGym
ad7263fcc80abd6831965ab6b556d54f75e17315
[ "Apache-2.0" ]
null
null
null
metagym/navigator2d/navigator.py
WorldEditors/MetaGym
ad7263fcc80abd6831965ab6b556d54f75e17315
[ "Apache-2.0" ]
null
null
null
""" 2D WheeledRobot Navigating Tasks """ import numpy import sys import gym import pygame from numpy import random from numpy import cos, sin from math import acos, asin from gym import error, spaces, utils T_Pi = 6.2831852 # Singal Transmission Decay def signal_transmission(d, P_o, d_o, n, sigma): signal = max(0...
38.285714
119
0.630064
acd4ff58b4b9369d15dce21bb03d4b50506bbb59
2,878
py
Python
api_core/setup.py
cycomike/google-cloud-python
a7e957f8245af927ae348c4312697adfa36dbb4c
[ "Apache-2.0" ]
1
2021-06-30T11:43:47.000Z
2021-06-30T11:43:47.000Z
api_core/setup.py
cycomike/google-cloud-python
a7e957f8245af927ae348c4312697adfa36dbb4c
[ "Apache-2.0" ]
null
null
null
api_core/setup.py
cycomike/google-cloud-python
a7e957f8245af927ae348c4312697adfa36dbb4c
[ "Apache-2.0" ]
1
2021-06-30T11:44:03.000Z
2021-06-30T11:44:03.000Z
# Copyright 2018 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
29.670103
75
0.681723
5d11af5ac2f99b5b2a9b1924a2e161d47d2523e8
6,995
py
Python
skyscrapers.py
stepansushko1/skyscrapers
ef48426974d4adb87bc44bcf07fc052d29f6d581
[ "MIT" ]
null
null
null
skyscrapers.py
stepansushko1/skyscrapers
ef48426974d4adb87bc44bcf07fc052d29f6d581
[ "MIT" ]
null
null
null
skyscrapers.py
stepansushko1/skyscrapers
ef48426974d4adb87bc44bcf07fc052d29f6d581
[ "MIT" ]
null
null
null
""" https://github.com/stepansushko1/skyscrapers """ def read_input(path: str): """ Read game board file from path. Return list of str. """ input_lines = [] with open(path, "r", encoding="utf-8") as file: for line in file: line = line.strip("\n") input_lines.app...
28.786008
97
0.547534
4455672061e57f9bdf82b86d1ebbe35acb28d0d1
1,779
py
Python
main.py
CONABIO/Sipecam-Kobo-a-Zendro
59eae83ac64348021c78d5014bbfd6920a134019
[ "Apache-2.0" ]
null
null
null
main.py
CONABIO/Sipecam-Kobo-a-Zendro
59eae83ac64348021c78d5014bbfd6920a134019
[ "Apache-2.0" ]
null
null
null
main.py
CONABIO/Sipecam-Kobo-a-Zendro
59eae83ac64348021c78d5014bbfd6920a134019
[ "Apache-2.0" ]
null
null
null
import os from dotenv import load_dotenv import requests import json import time from utils import * # load dotenv vars located in .env file load_dotenv() ''' Survey's common name ''' common_names = { "deployments": "Camara Trampa y Grabadoras v 1.1 cumulo", "individuals": "Pequeños Mamíferos v 1.1", ...
26.954545
81
0.671164
1be522063def5f9c485d30904de5844600352767
516
py
Python
aydin/util/fast_correlation/correlation.py
AhmetCanSolak/aydin
e8bc81ee88c96e0f34986df30a63c96468a45f70
[ "BSD-3-Clause" ]
78
2021-11-08T16:11:23.000Z
2022-03-27T17:51:04.000Z
aydin/util/fast_correlation/correlation.py
AhmetCanSolak/aydin
e8bc81ee88c96e0f34986df30a63c96468a45f70
[ "BSD-3-Clause" ]
19
2021-11-08T17:15:40.000Z
2022-03-30T17:46:55.000Z
aydin/util/fast_correlation/correlation.py
AhmetCanSolak/aydin
e8bc81ee88c96e0f34986df30a63c96468a45f70
[ "BSD-3-Clause" ]
7
2021-11-09T17:42:32.000Z
2022-03-09T00:37:57.000Z
import traceback from numpy.typing import ArrayLike from scipy.ndimage import correlate as scipy_ndimage_correlate from aydin.util.fast_correlation.numba_cpu import numba_cpu_correlate def correlate(image: ArrayLike, weights: ArrayLike, output: ArrayLike = None): try: output = numba_cpu_correlate(image...
30.352941
82
0.76938
c73ad3225da64eaa800b0db49ced172ccc6bc77e
656
py
Python
python/phd/thunderstorm/kotlin_rltge_prototype.py
Zelenyy/phd-code
d5b8bfefd2418a915dde89f7da2cb6683f438556
[ "MIT" ]
null
null
null
python/phd/thunderstorm/kotlin_rltge_prototype.py
Zelenyy/phd-code
d5b8bfefd2418a915dde89f7da2cb6683f438556
[ "MIT" ]
null
null
null
python/phd/thunderstorm/kotlin_rltge_prototype.py
Zelenyy/phd-code
d5b8bfefd2418a915dde89f7da2cb6683f438556
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import numpy as np import matplotlib as mpl def read_kotlin_rltge_text_file(path): with open(path) as fin: text = fin.readlines() def split_line(line): temp = line.split(" ") return int(temp[6][:-1]), int(temp[2]) data = np.array...
26.24
55
0.644817
17c5687b3d1b877b31578bc21264279eff56679a
1,056
py
Python
setup.py
peterblockman/spectroscope
2a33742838a95c1e56ce0e13cc7719c56e9d6cc8
[ "Apache-2.0" ]
null
null
null
setup.py
peterblockman/spectroscope
2a33742838a95c1e56ce0e13cc7719c56e9d6cc8
[ "Apache-2.0" ]
null
null
null
setup.py
peterblockman/spectroscope
2a33742838a95c1e56ce0e13cc7719c56e9d6cc8
[ "Apache-2.0" ]
null
null
null
import setuptools setuptools.setup( name="spectroscope", packages=setuptools.find_packages(exclude=["tests"]), install_requires=[ "click>=7.1.2", "click-default-group>=1.2.2", "ethereumapis>=0.12.0", "grpcio>=1.34.0", "pydantic>=1.7.3", "toml>=0.10.2", ],...
33
86
0.591856
96f14a3fafacbe35ae143c9be800cdcdd3989be3
5,784
py
Python
keras/tests/convert_to_constants_test.py
phanvanthinh98/keras_LSTM
b22cff1e9fd762226ec3dc9d3af3e300484dd833
[ "Apache-2.0" ]
11
2015-11-27T18:33:56.000Z
2020-08-12T22:51:57.000Z
keras/tests/convert_to_constants_test.py
sarvex/keras
2d551d31915906120f3f6a3ed3c4de94ba4bb288
[ "Apache-2.0" ]
3
2017-03-19T16:38:43.000Z
2017-07-06T09:35:30.000Z
keras/tests/convert_to_constants_test.py
sarvex/keras
2d551d31915906120f3f6a3ed3c4de94ba4bb288
[ "Apache-2.0" ]
2
2015-12-08T06:15:54.000Z
2016-01-09T08:30:11.000Z
# Copyright 2019 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...
33.824561
80
0.679633
250d53119fb9ac9306ff88a5468515759cadf49d
23,365
py
Python
udsoncan/connections.py
martinjthompson/python-udsoncan
fd89262785b968eb4a1aab15af86dbbd7353488b
[ "MIT" ]
326
2017-08-11T10:23:13.000Z
2022-03-30T09:03:27.000Z
udsoncan/connections.py
martinjthompson/python-udsoncan
fd89262785b968eb4a1aab15af86dbbd7353488b
[ "MIT" ]
105
2018-04-17T13:26:57.000Z
2022-03-30T09:00:34.000Z
udsoncan/connections.py
martinjthompson/python-udsoncan
fd89262785b968eb4a1aab15af86dbbd7353488b
[ "MIT" ]
142
2018-02-20T19:52:18.000Z
2022-03-10T00:39:06.000Z
import socket import queue import threading import logging import binascii import sys from abc import ABC, abstractmethod import functools import time try: import can _import_can_err = None except Exception as e: _import_can_err = e try: import isotp _import_isotp_err = None exc...
32.72409
180
0.609801
c0480e6777380c2acccc7639746af59cdccec432
2,830
py
Python
setup.py
sanketsaurav/gs-quant
ff271160c8051608a6c2a25211a1299218e96819
[ "Apache-2.0" ]
1
2019-11-13T21:09:41.000Z
2019-11-13T21:09:41.000Z
setup.py
sanketsaurav/gs-quant
ff271160c8051608a6c2a25211a1299218e96819
[ "Apache-2.0" ]
null
null
null
setup.py
sanketsaurav/gs-quant
ff271160c8051608a6c2a25211a1299218e96819
[ "Apache-2.0" ]
null
null
null
""" Copyright 2018 Goldman Sachs. 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, software di...
33.690476
110
0.662544
965b2647ddc64f7bba42dc1e6360bf91946e4081
2,154
py
Python
DB_Repository_Contributor.py
twelveand0/github-crawler
85006afc915c5cf7d1f2588fe005185495378ab4
[ "Apache-2.0" ]
3
2017-07-02T02:13:50.000Z
2018-10-07T23:13:09.000Z
DB_Repository_Contributor.py
twelveand0/github-crawler
85006afc915c5cf7d1f2588fe005185495378ab4
[ "Apache-2.0" ]
null
null
null
DB_Repository_Contributor.py
twelveand0/github-crawler
85006afc915c5cf7d1f2588fe005185495378ab4
[ "Apache-2.0" ]
3
2018-10-07T23:13:11.000Z
2020-10-02T07:10:54.000Z
#!/usr/bin/python # -*- coding: UTF-8 -*- import github import db_operation import datetime class DB_Repository_Contributor: """ This class represents DB_Repository_Contributor as a class describles the contribution-ship between \ github.Repository.Repository and github.NamedUser.Named...
23.16129
137
0.49675
39827f0d9a811653c402054dffc5370b7106b4fa
16,014
py
Python
nova/network/rpcapi.py
bopopescu/nova-35
c32c01e08dccad921b4af6fc03d971d6e74c990f
[ "Apache-2.0" ]
null
null
null
nova/network/rpcapi.py
bopopescu/nova-35
c32c01e08dccad921b4af6fc03d971d6e74c990f
[ "Apache-2.0" ]
null
null
null
nova/network/rpcapi.py
bopopescu/nova-35
c32c01e08dccad921b4af6fc03d971d6e74c990f
[ "Apache-2.0" ]
1
2020-07-24T09:13:22.000Z
2020-07-24T09:13:22.000Z
# Copyright 2013, Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
46.688047
79
0.623579
1f38fdf3c8278d74843b9ca172526ecefda37bba
8,284
py
Python
homeassistant/components/climate/daikin.py
dotlambda/home-assistant
68d2851ecf2dcd05bd5197240a31980d4fee8d2e
[ "Apache-2.0" ]
null
null
null
homeassistant/components/climate/daikin.py
dotlambda/home-assistant
68d2851ecf2dcd05bd5197240a31980d4fee8d2e
[ "Apache-2.0" ]
null
null
null
homeassistant/components/climate/daikin.py
dotlambda/home-assistant
68d2851ecf2dcd05bd5197240a31980d4fee8d2e
[ "Apache-2.0" ]
null
null
null
""" Support for the Daikin HVAC. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/climate.daikin/ """ import logging import re import voluptuous as vol from homeassistant.components.climate import ( ATTR_CURRENT_TEMPERATURE, ATTR_FAN_MODE, ATTR_OPERA...
31.260377
79
0.614679
182829a28bcbd90710ab4db430d7def9b55cdaae
98
py
Python
src/database.py
a2441918/covid19-api
1730932d924b32554dfcb6494d1c50bf613f1150
[ "MIT" ]
null
null
null
src/database.py
a2441918/covid19-api
1730932d924b32554dfcb6494d1c50bf613f1150
[ "MIT" ]
1
2021-04-30T21:17:57.000Z
2021-04-30T21:17:57.000Z
src/database.py
a2441918/covid19-api
1730932d924b32554dfcb6494d1c50bf613f1150
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy(session_options={"autoflush": False})
14
53
0.785714
2edf03aa3ff4dacc7278c0d2f031d5f53d6f8fa2
105
py
Python
bucket/urls.py
ching56/dengue_report_server
aa5855a43039ac4b4916447e6d9da69cc6b31a03
[ "Apache-2.0" ]
null
null
null
bucket/urls.py
ching56/dengue_report_server
aa5855a43039ac4b4916447e6d9da69cc6b31a03
[ "Apache-2.0" ]
null
null
null
bucket/urls.py
ching56/dengue_report_server
aa5855a43039ac4b4916447e6d9da69cc6b31a03
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from bucket import views urlpatterns = [ url(r'^$', views.index) ]
15
32
0.695238
b359cd31e17d529fdfadaaae56b454a91b78a015
65
py
Python
ocr_cipher_solver/ciphers/__init__.py
ocr-cipher-solver/ocr-cipher-solver
0932a631149164efb2abc28274b65ded6df79caf
[ "MIT" ]
null
null
null
ocr_cipher_solver/ciphers/__init__.py
ocr-cipher-solver/ocr-cipher-solver
0932a631149164efb2abc28274b65ded6df79caf
[ "MIT" ]
1
2021-10-09T16:20:24.000Z
2021-10-09T16:20:24.000Z
ocr_cipher_solver/ciphers/__init__.py
ocr-cipher-solver/ocr-cipher-solver
0932a631149164efb2abc28274b65ded6df79caf
[ "MIT" ]
null
null
null
from .base import Encipherer from .caesar import CaesarianCipher
21.666667
35
0.846154
c4f5461f6ed93b05d53f2fa4a7f6e04101675b79
1,758
py
Python
src/main/python/bookstore/app.py
imlegend19/Capstone-Assignment
dea04ac5d230b019bb7942b677cb2d281ab6b4bb
[ "MIT" ]
null
null
null
src/main/python/bookstore/app.py
imlegend19/Capstone-Assignment
dea04ac5d230b019bb7942b677cb2d281ab6b4bb
[ "MIT" ]
null
null
null
src/main/python/bookstore/app.py
imlegend19/Capstone-Assignment
dea04ac5d230b019bb7942b677cb2d281ab6b4bb
[ "MIT" ]
null
null
null
import os from flask import Flask, redirect, render_template, request from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) basedir = os.path.abspath(os.path.dirname(__file__)) app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir, '...
23.756757
92
0.63595
8ba6880ed84bda7afeb983ea5287dbde31e83ea4
8,660
py
Python
src/CaseManagerBase.py
jpgil/procdelay
c5a8c73b1833bb29d0c67fdb94b122916d92e603
[ "MIT" ]
null
null
null
src/CaseManagerBase.py
jpgil/procdelay
c5a8c73b1833bb29d0c67fdb94b122916d92e603
[ "MIT" ]
null
null
null
src/CaseManagerBase.py
jpgil/procdelay
c5a8c73b1833bb29d0c67fdb94b122916d92e603
[ "MIT" ]
null
null
null
""" Holds the logic to split logs in cases .. module:: CaseManager A case is an ordered subset of a log the contains events comparables between them. There are two kind of objects: event: (object) The raw event could be a string or a complex object like JSON. This object must be consistent across the process and it ...
37.652174
168
0.641224
b18b5ace76c7648f76c7133d7851cee5b956bed6
7,187
py
Python
tensorflow/compiler/tests/adagrad_da_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/compiler/tests/adagrad_da_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/compiler/tests/adagrad_da_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# 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...
43.295181
81
0.647558
4052d6110fcb71ed5469b9993109ae2c2c36e3d0
2,280
py
Python
setup.py
Deinara/super-giggle
c8a604bb6f794d3a76c90c022f290af83b42a4ac
[ "MIT" ]
null
null
null
setup.py
Deinara/super-giggle
c8a604bb6f794d3a76c90c022f290af83b42a4ac
[ "MIT" ]
null
null
null
setup.py
Deinara/super-giggle
c8a604bb6f794d3a76c90c022f290af83b42a4ac
[ "MIT" ]
null
null
null
#!/usr/bin/python import os import sys import termios import json TERMIOS = termios #check for root if os.geteuid() != 0: exit("You need to have root privileges to run this script.\nPlease try again using 'sudo'.") #define character get for the menu def getkey(): fd = sys.stdin.fileno() old = termi...
26.511628
110
0.560965
5f8dc3da46d7a157618348e7fc741ae251816c4e
183,796
py
Python
gslib/utils/copy_helper.py
tank0226/gsutil
7d103c135db57b6c05bc7b3549ae0c27c7149e77
[ "Apache-2.0" ]
null
null
null
gslib/utils/copy_helper.py
tank0226/gsutil
7d103c135db57b6c05bc7b3549ae0c27c7149e77
[ "Apache-2.0" ]
null
null
null
gslib/utils/copy_helper.py
tank0226/gsutil
7d103c135db57b6c05bc7b3549ae0c27c7149e77
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2011 Google Inc. All Rights Reserved. # Copyright 2011, Nexenta Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/...
42.097114
130
0.676636
3f614f59d6964a8fe0d6c3665e0456d92172853f
2,288
py
Python
creme/optim/ftrl.py
mihir-thakkar-ai/creme
008b0c1beb26b36b448fc3d04537e02e66d402b3
[ "BSD-3-Clause" ]
23
2020-11-21T22:09:24.000Z
2022-03-21T22:33:07.000Z
creme/optim/ftrl.py
53X/creme
3b397d6aafdfad48dbb36813c90ed3fd1844fc30
[ "BSD-3-Clause" ]
null
null
null
creme/optim/ftrl.py
53X/creme
3b397d6aafdfad48dbb36813c90ed3fd1844fc30
[ "BSD-3-Clause" ]
1
2021-04-25T16:24:43.000Z
2021-04-25T16:24:43.000Z
import collections import numpy as np from . import base __all__ = ['FTRLProximal'] class FTRLProximal(base.Optimizer): """FTRL-Proximal optimizer. Parameters: alpha beta l1 l2 Attributes: z (collections.defaultdict) n (collections.defaultdict) Ex...
29.333333
420
0.561189
8ed17233d3c2d3b0668ed1e63620725f33be2a5c
2,021
py
Python
main.py
Linfeng-Tang/PIAFusion
599608b0bcac1e02c4b87a08b9a3a6d3082b0650
[ "MIT" ]
3
2021-08-28T02:27:55.000Z
2022-03-22T08:46:59.000Z
main.py
Linfeng-Tang/PIAFusion
599608b0bcac1e02c4b87a08b9a3a6d3082b0650
[ "MIT" ]
1
2021-12-24T07:44:36.000Z
2021-12-24T07:51:03.000Z
main.py
Linfeng-Tang/PIAFusion
599608b0bcac1e02c4b87a08b9a3a6d3082b0650
[ "MIT" ]
null
null
null
# from train import model from model import PIAFusion import numpy as np import tensorflow as tf import pprint import os os.environ["CUDA_VISIBLE_DEVICES"] = "0" flags = tf.app.flags flags.DEFINE_integer("epoch", 30, "Number of epoch [10]") flags.DEFINE_integer("batch_size", 64, "The size of batch images [128]") flag...
42.104167
106
0.663038
9cfb5b8bdfaa49686b47cd7d63081004f713bfb0
10,896
py
Python
tests/unit/test_select.py
OmriBromberg/python-bigquery-sqlalchemy
f5adfc091f37d531921374768742a199a8c41420
[ "MIT" ]
null
null
null
tests/unit/test_select.py
OmriBromberg/python-bigquery-sqlalchemy
f5adfc091f37d531921374768742a199a8c41420
[ "MIT" ]
null
null
null
tests/unit/test_select.py
OmriBromberg/python-bigquery-sqlalchemy
f5adfc091f37d531921374768742a199a8c41420
[ "MIT" ]
null
null
null
# Copyright (c) 2021 The PyBigQuery Authors # # 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, publi...
35.842105
88
0.601046
ba66ab5bc0138e480239bc0c7ad16be6ab1dc838
6,228
py
Python
scripts/build_excel_files.py
jolange/xlwings
f97b80f68209ef68326bb5b4edcbb31a506fd36e
[ "BSD-3-Clause" ]
1
2020-11-05T19:38:33.000Z
2020-11-05T19:38:33.000Z
scripts/build_excel_files.py
artkovl/xlwings
c2807b973ce29a207517cdf36145255f4e0f5f6a
[ "BSD-3-Clause" ]
null
null
null
scripts/build_excel_files.py
artkovl/xlwings
c2807b973ce29a207517cdf36145255f4e0f5f6a
[ "BSD-3-Clause" ]
null
null
null
import os import re import zipfile import tempfile import shutil # pythonnet import clr dll = os.path.abspath(os.path.join(os.environ["GITHUB_WORKSPACE"], "aspose", "lib", "net40", "Aspose.Cells.dll")) clr.AddReference(dll) from Aspose.Cells import Workbook, License this_dir = os.path.dirname(os.path.abspath(__file_...
44.805755
746
0.726076
8ebcf7459130cf2cd14825b1136451568aee757a
1,886
py
Python
django_demo/accounts/views.py
neuroticnerd/django-demo-app
d15874e09444cf302d0d3f9b98196e3c86bcc6aa
[ "MIT" ]
null
null
null
django_demo/accounts/views.py
neuroticnerd/django-demo-app
d15874e09444cf302d0d3f9b98196e3c86bcc6aa
[ "MIT" ]
null
null
null
django_demo/accounts/views.py
neuroticnerd/django-demo-app
d15874e09444cf302d0d3f9b98196e3c86bcc6aa
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib import auth from django.contrib.auth.forms import AuthenticationForm from django.utils.decorators import method_decorator from django.utils.http import is_safe_url from django.views.decorators.debug import sensitive_post_parameters from django.views import generic fr...
36.269231
74
0.743902
6a1884004d803aa7a8dae6016e49a3b866427ca6
3,352
py
Python
charms/hss-operator/tests/test_pod_spec.py
charmed-osm/5g-ims
bb902efa575e2e3cf7b97441fc85ace2e917c39b
[ "Apache-2.0" ]
1
2021-06-10T06:53:34.000Z
2021-06-10T06:53:34.000Z
charms/hss-operator/tests/test_pod_spec.py
charmed-osm/5g-ims
bb902efa575e2e3cf7b97441fc85ace2e917c39b
[ "Apache-2.0" ]
3
2021-08-25T02:30:13.000Z
2022-02-25T06:08:16.000Z
charms/hss-operator/tests/test_pod_spec.py
charmed-osm/5g-ims
bb902efa575e2e3cf7b97441fc85ace2e917c39b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2020 Tata Elxsi # # 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 o...
32.230769
80
0.619928
87bd8b54ada6f366cb354b7cea15ab540b0c453e
490
py
Python
dyftc/feedings/tests/factories.py
sokotim/dyftc
55749a80a579a70c248521b1112a0136fb35b639
[ "MIT" ]
2
2020-04-02T14:40:49.000Z
2020-04-02T14:42:50.000Z
dyftc/feedings/tests/factories.py
sokotim/dyftc
55749a80a579a70c248521b1112a0136fb35b639
[ "MIT" ]
null
null
null
dyftc/feedings/tests/factories.py
sokotim/dyftc
55749a80a579a70c248521b1112a0136fb35b639
[ "MIT" ]
null
null
null
from factory import DjangoModelFactory, SubFactory, post_generation from dyftc.feedings.models import Feeding from dyftc.users.tests.factories import UserFactory class FeedingFactory(DjangoModelFactory): feeder = SubFactory(UserFactory) class Meta: model = Feeding @post_generation def cats(...
23.333333
67
0.677551