hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
0e2eef944501ca809923d1207c2ae47fba7fce8b
44
py
Python
32.3/testing_fail.py
vinigofr/computer-science-exercises
b60ef1c5e3be09ff4c4241afc4279250c1e7129a
[ "MIT" ]
null
null
null
32.3/testing_fail.py
vinigofr/computer-science-exercises
b60ef1c5e3be09ff4c4241afc4279250c1e7129a
[ "MIT" ]
null
null
null
32.3/testing_fail.py
vinigofr/computer-science-exercises
b60ef1c5e3be09ff4c4241afc4279250c1e7129a
[ "MIT" ]
null
null
null
def divide(num1, num2): return num1 / num2
22
23
0.704545
c3517bfd634d6312a89cee0fc97e7fe215317eab
231
py
Python
src/02_Comments/01_hashtag.py
UltiRequiem/W3Schools-Python-Exercises
34d10d48d7ce7b9e50466cd8537a8aece0426ce8
[ "MIT" ]
5
2021-05-29T23:30:50.000Z
2022-01-15T16:35:20.000Z
src/02_Comments/01_hashtag.py
UltiRequiem/W3Schools-Python-Exercises
34d10d48d7ce7b9e50466cd8537a8aece0426ce8
[ "MIT" ]
null
null
null
src/02_Comments/01_hashtag.py
UltiRequiem/W3Schools-Python-Exercises
34d10d48d7ce7b9e50466cd8537a8aece0426ce8
[ "MIT" ]
4
2021-03-18T17:48:06.000Z
2021-07-22T19:32:36.000Z
# Instructions: Comments in Python are written with a special character, which one? # Solution: # This is a comment ''' # Are used for single line comments Read More Here: https://www.w3schools.com/python/python_comments.asp '''
25.666667
83
0.748918
8aa903be333c8a0fd46c9dd98dd442866ba68ea7
10,733
py
Python
sdk/python/pulumi_azure_nextgen/desktopvirtualization/v20210201preview/msix_package.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/desktopvirtualization/v20210201preview/msix_package.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/desktopvirtualization/v20210201preview/msix_package.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# 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! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
46.665217
564
0.666449
38b742d3106bb9053a091ba781dc5eb9e5d8406b
5,774
py
Python
format/FormatBruker.py
dials/dx2
94a5e2fd048b4133241c5a528ffaf7c504f22f8b
[ "BSD-3-Clause" ]
null
null
null
format/FormatBruker.py
dials/dx2
94a5e2fd048b4133241c5a528ffaf7c504f22f8b
[ "BSD-3-Clause" ]
null
null
null
format/FormatBruker.py
dials/dx2
94a5e2fd048b4133241c5a528ffaf7c504f22f8b
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function import sys from builtins import range from iotbx.detectors.bruker import BrukerImage from dxtbx import IncorrectFormatError from dxtbx.format.Format import Format class FormatBruker(Format): """cctbx has no authoritative sources describing the Br...
35.641975
84
0.591791
b30d5c30438bb3c2260cd27f8d00d3a1c2bc3fb7
2,008
py
Python
iirc/tests/test_get_dataset.py
chandar-lab/IIRC
ae6ffcfc0a42274bcda66e2288e09118604620e4
[ "MIT" ]
23
2021-01-19T11:50:57.000Z
2021-12-12T17:20:22.000Z
iirc/tests/test_get_dataset.py
chandar-lab/IIRC
ae6ffcfc0a42274bcda66e2288e09118604620e4
[ "MIT" ]
1
2021-04-06T14:35:03.000Z
2021-06-20T08:56:15.000Z
iirc/tests/test_get_dataset.py
chandar-lab/IIRC
ae6ffcfc0a42274bcda66e2288e09118604620e4
[ "MIT" ]
8
2021-01-05T10:49:19.000Z
2021-12-12T17:20:38.000Z
import pytest import numpy as np from PIL import Image from iirc.datasets_loader import _get_dataset # Test that the output dataset have the specified shape (image/image_path, (label1,)) or # (image/image_path, (label1, label2)) np.random.seed(100) @pytest.mark.parametrize("dataset_name", ["iirc_cifar100", "iirc_ima...
47.809524
107
0.696713
2e7a43f5326d4107c587d451d5f552708272657f
1,034
py
Python
setup.py
jdoda/sdl2hl
a9f00e07c47b12ae7814a088800f07e51d394d39
[ "Zlib" ]
1
2016-11-29T19:16:21.000Z
2016-11-29T19:16:21.000Z
setup.py
jdoda/sdl2hl
a9f00e07c47b12ae7814a088800f07e51d394d39
[ "Zlib" ]
3
2016-11-30T05:57:37.000Z
2021-04-28T01:44:27.000Z
setup.py
jdoda/sdl2hl
a9f00e07c47b12ae7814a088800f07e51d394d39
[ "Zlib" ]
2
2016-04-28T20:37:21.000Z
2016-11-29T19:21:15.000Z
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='sdl2hl', version='0.3.4', description='A Pythonic API wrapper ...
25.219512
64
0.612186
10355b645020047cdf69076d0a2084bb4c1cf0ac
5,016
py
Python
flappy_03.py
php568/FlapPyBird-master
0afcfc8c96762cd2f1931c668681b89bd2f0de44
[ "MIT" ]
null
null
null
flappy_03.py
php568/FlapPyBird-master
0afcfc8c96762cd2f1931c668681b89bd2f0de44
[ "MIT" ]
null
null
null
flappy_03.py
php568/FlapPyBird-master
0afcfc8c96762cd2f1931c668681b89bd2f0de44
[ "MIT" ]
null
null
null
from itertools import cycle import random import sys # 将pygame库导入到python程序中 import pygame # 需要引入pygame中的所有常量。 导入一些常用的函数和常量 from pygame.locals import * #向sys模块借一个exit函数用来退出程序 # from sys import exit # 每秒传输帧数(Frames Per Second) FPS = 30 SCREENWIDTH = 288 #屏幕宽度 SCREENHEIGHT = 512 #屏幕高度 # base那个条条所在的高度 注意以左上角为坐标起始点 ...
29.162791
105
0.601077
b72cb569f1cd18c8cc8a72deb0034c75c463bbfe
2,939
py
Python
projects/adnet/options/general.py
hizb-resume/LTD-local-track-to-detect-for-VID
7147ac7c6cd4b22a956aaaabaa151e5ed5410c68
[ "Apache-2.0" ]
1
2021-03-30T07:25:42.000Z
2021-03-30T07:25:42.000Z
projects/adnet/options/general.py
hizb-resume/LTD-local-track-to-detect-for-VID
7147ac7c6cd4b22a956aaaabaa151e5ed5410c68
[ "Apache-2.0" ]
null
null
null
projects/adnet/options/general.py
hizb-resume/LTD-local-track-to-detect-for-VID
7147ac7c6cd4b22a956aaaabaa151e5ed5410c68
[ "Apache-2.0" ]
null
null
null
# source: https://github.com/hellbell/ADNet/blob/3a7955587b5d395401ebc94a5ab067759340680d/utils/init_params.m #parameter settings show_visualization = 0 record_video = 0 GT_anno_interval = 1 # ============================ # NETWORK PARAMETERS # ============================ opts = { 'imgSize' : [112, 112, 3], ...
26.241071
144
0.508676
eb8f9a819065a73fd4c2ea19850922a485fed11c
1,865
py
Python
var/spack/repos/builtin/packages/r-multicool/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "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/r-multicool/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "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/r-multicool/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "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) from spack import * class RMulticool(RPackage): """Permutations of multisets in cool-lex order A set of tools t...
51.805556
97
0.759249
fe4201d711ec7f5c695d1bd57d6f05f9834c1a83
4,008
py
Python
cnn/word_accetuation/syllabled_letters/v3_3/workbench.py
lkrsnik/accetuation
02724147f88aa034487c7922eb75e0fc321aa93f
[ "MIT" ]
null
null
null
cnn/word_accetuation/syllabled_letters/v3_3/workbench.py
lkrsnik/accetuation
02724147f88aa034487c7922eb75e0fc321aa93f
[ "MIT" ]
null
null
null
cnn/word_accetuation/syllabled_letters/v3_3/workbench.py
lkrsnik/accetuation
02724147f88aa034487c7922eb75e0fc321aa93f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals # text in Western (Windows 1252) import pickle import numpy as np from keras import optimizers from keras.models import Model from keras.layers import Dense, Dropout, Input from keras.layers.merge import concatenate from keras.layers.convolutional import ...
37.811321
186
0.727545
45fe18a3631864e3ce8c3dff6816f0464d8e1bb4
12,731
py
Python
userbot/modules/ramadan.py
Hans-userboot/Hans-userboot
3c07703a2f554f905520e9cbf021546b4ffd65ac
[ "Naumen", "Condor-1.1", "MS-PL" ]
4
2022-01-31T14:35:01.000Z
2022-03-31T06:42:39.000Z
userbot/modules/ramadan.py
Hans-userboot/Hans-userboot
3c07703a2f554f905520e9cbf021546b4ffd65ac
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-03-19T15:54:46.000Z
2022-03-19T15:54:46.000Z
userbot/modules/ramadan.py
Hans-userboot/Hans-userboot
3c07703a2f554f905520e9cbf021546b4ffd65ac
[ "Naumen", "Condor-1.1", "MS-PL" ]
22
2022-01-29T20:29:35.000Z
2022-03-31T06:42:41.000Z
# @JustRex # Xa-Userbot # Special Ramadhan # recode by @greyyvbss from userbot import CMD_HANDLER as cmd from userbot import CMD_HELP from userbot.utils import edit_or_reply, cilik_cmd @cilik_cmd(pattern="puasa(?: |$)(.*)") async def _(event): await event.client.send_message( event.chat_id, "**As...
28.544843
192
0.571361
1e3765635ff0029e579369d3f3ac06fadf311a09
11,877
py
Python
sdk/python/pulumi_azure_native/appplatform/v20190501preview/service.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/appplatform/v20190501preview/service.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/appplatform/v20190501preview/service.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "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! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
43.346715
667
0.645197
e1718ece2d9f6d4ab559a0cb5afa365d764b4ff4
30,907
py
Python
sdk/python/pulumi_aws/autoscaling/schedule.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
1
2021-11-10T16:33:40.000Z
2021-11-10T16:33:40.000Z
sdk/python/pulumi_aws/autoscaling/schedule.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/autoscaling/schedule.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
47.843653
209
0.650791
154443257724be6f18acac6cb12f19636cda52e2
406
py
Python
test/test_client_service.py
fmerlin/pyrolysis
2edf1094466b09b4c5d1ab93f5cbc2bb01cc73c3
[ "MIT" ]
1
2020-05-01T14:14:23.000Z
2020-05-01T14:14:23.000Z
test/test_client_service.py
fmerlin/pyrolysis
2edf1094466b09b4c5d1ab93f5cbc2bb01cc73c3
[ "MIT" ]
null
null
null
test/test_client_service.py
fmerlin/pyrolysis
2edf1094466b09b4c5d1ab93f5cbc2bb01cc73c3
[ "MIT" ]
null
null
null
import unittest import os.path from pyrolysis.client import service class TestService(unittest.TestCase): def test_petshop(self): petshop = service.ClientService(api_key='my_key') petshop.load(file=os.path.join(os.path.dirname(__file__), 'fixture', 'petshop-swagger.json')) self.assertTrue(...
27.066667
101
0.729064
9c471601619440210d13b5f5d8054ee429967f55
208
py
Python
leetcode/medium/adding_two_nums/srcs/__init__.py
BillionsRichard/pycharmWorkspace
709e2681fc6d85ff52fb25717215a365f51073aa
[ "Apache-2.0" ]
null
null
null
leetcode/medium/adding_two_nums/srcs/__init__.py
BillionsRichard/pycharmWorkspace
709e2681fc6d85ff52fb25717215a365f51073aa
[ "Apache-2.0" ]
null
null
null
leetcode/medium/adding_two_nums/srcs/__init__.py
BillionsRichard/pycharmWorkspace
709e2681fc6d85ff52fb25717215a365f51073aa
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """ @version: v1.0 @author: Richard @license: Apache Licence @contact: billions.richard@qq.com @site: @software: PyCharm @time: 2019/9/8 17:51 """ from pprint import pprint as pp
17.333333
34
0.677885
800b9627b862f7121eed902fc235f7bb4581565f
21,581
py
Python
research/vrgripper/vrgripper_env_meta_models.py
cecethea/tensor2robot
6d57b4f5bd2141589ab5af84a132db7041b07835
[ "Apache-2.0" ]
1
2021-04-01T11:19:45.000Z
2021-04-01T11:19:45.000Z
research/vrgripper/vrgripper_env_meta_models.py
AakashOfficial/tensor2robot
e17e1e06b6f8623da0ed7433eb0fc5eb1f5c88a9
[ "Apache-2.0" ]
null
null
null
research/vrgripper/vrgripper_env_meta_models.py
AakashOfficial/tensor2robot
e17e1e06b6f8623da0ed7433eb0fc5eb1f5c88a9
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Tensor2Robot Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
37.729021
98
0.696863
e65f0062f35efaebaecd196662607b410a3861e5
91,721
py
Python
vycontrol/firewall/views.py
jibaku/vycontrol
8f7eae10b0a76ed931b52cc60e70172584c11bfc
[ "MIT" ]
null
null
null
vycontrol/firewall/views.py
jibaku/vycontrol
8f7eae10b0a76ed931b52cc60e70172584c11bfc
[ "MIT" ]
null
null
null
vycontrol/firewall/views.py
jibaku/vycontrol
8f7eae10b0a76ed931b52cc60e70172584c11bfc
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from django.shortcuts import redirect from django.conf import settings from django.urls import reverse from django.http import QueryDict import vyos import vycontrol_vyos_api_lib as vapilib import vycontrol_vyo...
42.680782
163
0.556263
4421bfeae34d192dcaa7c9740f72651c8b7cb5cb
2,077
py
Python
scripts/augment_edsr.py
Khanhnn00/srfbn
7e9e07362b215f57e4801ff365eaf9ff527b21d8
[ "MIT" ]
null
null
null
scripts/augment_edsr.py
Khanhnn00/srfbn
7e9e07362b215f57e4801ff365eaf9ff527b21d8
[ "MIT" ]
1
2021-06-17T12:17:12.000Z
2021-09-29T17:43:58.000Z
scripts/augment_edsr.py
Khanhnn00/srfbn
7e9e07362b215f57e4801ff365eaf9ff527b21d8
[ "MIT" ]
null
null
null
from glob import glob from flags import * import os import os.path as osp from scipy import misc import numpy as np import datetime import imageio import torch from multiprocessing.dummy import Pool as ThreadPool dataroot_HR = '../../dataset/Flickr2K/Flickr2K_HR' dataroot_LR = '../../dataset/Flickr2K/Flick...
32.453125
110
0.619644
eb6688648019797c7a6817333206ba1b200a8827
2,559
py
Python
nappy/mkcell/cell_convertor.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
27
2015-10-05T06:21:28.000Z
2021-10-04T17:08:23.000Z
nappy/mkcell/cell_convertor.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
4
2020-11-08T12:39:38.000Z
2021-01-10T22:31:36.000Z
nappy/mkcell/cell_convertor.py
ryokbys/nap
ddd0b5a5a956f7c335a22adb4f8e00f1d38a7804
[ "MIT" ]
4
2015-01-29T23:10:34.000Z
2022-01-08T05:20:13.000Z
#!/usr/bin/env python """ Convert cell from the original one. Usage: cell_convertor.py [options] INFILE OUTFILE Options: -h,--help Show this message and exit. --specorder=SPECORDER Set species order. [default: None] """ from __future__ import print_function from docopt import docopt import numpy ...
27.516129
83
0.600625
599345736e76ac42516a309143cb7cc599804127
556
py
Python
src/handler/getinformationbyconfig/ports.py
julianVelandia/Eureka
b7cfea2d7fbc9f4dbb0d08f0b6dd547b6367602e
[ "MIT" ]
2
2022-01-29T17:56:42.000Z
2022-02-05T01:33:01.000Z
src/handler/getinformationbyconfig/ports.py
Turing-Core-Team/Eureka-v1.0
b7cfea2d7fbc9f4dbb0d08f0b6dd547b6367602e
[ "MIT" ]
null
null
null
src/handler/getinformationbyconfig/ports.py
Turing-Core-Team/Eureka-v1.0
b7cfea2d7fbc9f4dbb0d08f0b6dd547b6367602e
[ "MIT" ]
null
null
null
from abc import abstractmethod, ABCMeta from typing import List from internal.information.core.entity.information import Information from internal.information.core.query.get_config import GetConfig from src.handler.getinformationbyconfig.contract.request import Params class UseCaseInterface(metaclass=ABCMeta): @...
29.263158
70
0.789568
51ec93eecb83b712e984dc5ea7a60852ca590067
2,676
py
Python
tests/test_commands.py
openforceit/orco-bot
dc93301f7385c0f6859eeccc7cfa51564f5447fd
[ "MIT" ]
1
2020-05-28T14:39:49.000Z
2020-05-28T14:39:49.000Z
tests/test_commands.py
openforceit/oca-github-bot
dc93301f7385c0f6859eeccc7cfa51564f5447fd
[ "MIT" ]
2
2020-05-28T14:39:54.000Z
2021-01-29T16:27:20.000Z
tests/test_commands.py
openforceit/oca-github-bot
dc93301f7385c0f6859eeccc7cfa51564f5447fd
[ "MIT" ]
1
2020-07-13T11:00:21.000Z
2020-07-13T11:00:21.000Z
# Copyright (c) ACSONE SA/NV 2019 # Distributed under the MIT License (http://opensource.org/licenses/MIT). import pytest from orco_bot.commands import ( InvalidCommandError, InvalidOptionsError, parse_commands, ) def test_parse_command_not_a_command(): with pytest.raises(InvalidCommandError): ...
28.168421
73
0.571001
d9f45dc912efd0c86db65ec2238517a6e837f5d6
2,168
py
Python
init.py
farleyta/RaspbeeryPi
4ebc24ff2580a1ec2fc19cdcd9494ddc5b74eab0
[ "MIT" ]
1
2022-01-29T02:42:02.000Z
2022-01-29T02:42:02.000Z
init.py
farleyta/RaspbeeryPi
4ebc24ff2580a1ec2fc19cdcd9494ddc5b74eab0
[ "MIT" ]
null
null
null
init.py
farleyta/RaspbeeryPi
4ebc24ff2580a1ec2fc19cdcd9494ddc5b74eab0
[ "MIT" ]
null
null
null
#!/usr/bin/python import time from datetime import datetime import RPi.GPIO as GPIO from flowmeter import * from logPour import logPour LEFT_TAP_GPIO = 18 RIGHT_TAP_GPIO = 14 GPIO.setmode(GPIO.BCM) # use real GPIO numbering GPIO.setup(LEFT_TAP_GPIO,GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(RIGHT_TAP_GPIO,GPIO.IN...
35.540984
122
0.715867
38f29fe8fd52fdd9174354854668c2611b4461ca
115
py
Python
WWW/pycopia/WWW/auth/__main__.py
kdart/pycopia3
8a7c820f096245411eabbb72345e4f30a35988b6
[ "Apache-2.0" ]
3
2018-11-26T15:00:20.000Z
2022-01-28T23:17:58.000Z
WWW/pycopia/WWW/auth/__main__.py
kdart/pycopia3
8a7c820f096245411eabbb72345e4f30a35988b6
[ "Apache-2.0" ]
null
null
null
WWW/pycopia/WWW/auth/__main__.py
kdart/pycopia3
8a7c820f096245411eabbb72345e4f30a35988b6
[ "Apache-2.0" ]
1
2018-11-26T15:00:21.000Z
2018-11-26T15:00:21.000Z
""" Run as package for testing only. """ from pycopia.WWW.auth import app app.run(debug=True, use_reloader=True)
14.375
38
0.730435
328eb9434d582a00316d835d247e3ea3cdd98938
316
py
Python
main/migrations/0002_remove_about_instagram.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
main/migrations/0002_remove_about_instagram.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
main/migrations/0002_remove_about_instagram.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-31 20:07 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('main', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='about', name='instagram', ), ]
17.555556
47
0.575949
cf46cec7d0457e4d68b930e62b8e9f7e9b642bc6
21,433
py
Python
tests/components/smartthings/test_climate.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
tests/components/smartthings/test_climate.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
tests/components/smartthings/test_climate.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
""" Test for the SmartThings climate platform. The only mocking required is of the underlying SmartThings API object so real HTTP calls are not initiated during testing. """ from pysmartthings import Attribute, Capability from pysmartthings.device import Status import pytest from openpeerpower.components.climate.cons...
36.637607
84
0.684972
8db7c805adb1d0ee76e8133409259153a07016bb
251
py
Python
reactodo/manage.py
tukeJonny/test-react
a7b0fd3a1b929ce593d6878981df7fd67f41d525
[ "MIT" ]
null
null
null
reactodo/manage.py
tukeJonny/test-react
a7b0fd3a1b929ce593d6878981df7fd67f41d525
[ "MIT" ]
null
null
null
reactodo/manage.py
tukeJonny/test-react
a7b0fd3a1b929ce593d6878981df7fd67f41d525
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "reactodo.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
22.818182
72
0.772908
f686eb66427843d6f883db5cf9d41effb6ca2808
2,789
py
Python
umiread/umi_extract.py
matt-sd-watson/umiread
f5ca44b202b108bb0426f683db75aa20e31f4069
[ "MIT" ]
null
null
null
umiread/umi_extract.py
matt-sd-watson/umiread
f5ca44b202b108bb0426f683db75aa20e31f4069
[ "MIT" ]
null
null
null
umiread/umi_extract.py
matt-sd-watson/umiread
f5ca44b202b108bb0426f683db75aa20e31f4069
[ "MIT" ]
null
null
null
#!/usr/bin/python """The 10X single cell RNA 3' assay generates Illumina-compatible libraries that can contain valuable sequencing data corresponding to gene expression levels at single cell resolution. An essential element of the assay is the use of a unique molecular identifier (UMI) in Read 1, which allows for ...
51.648148
118
0.71531
ae8e78aadfbbb690c18ef410bb89b3c828e9a19d
8,106
py
Python
tests/attr/test_saliency.py
min-tang-hash/captum
1168bc5f57f38d169a02a97553edbdf192be0134
[ "BSD-3-Clause" ]
1
2020-10-12T16:57:42.000Z
2020-10-12T16:57:42.000Z
tests/attr/test_saliency.py
min-tang-hash/captum
1168bc5f57f38d169a02a97553edbdf192be0134
[ "BSD-3-Clause" ]
null
null
null
tests/attr/test_saliency.py
min-tang-hash/captum
1168bc5f57f38d169a02a97553edbdf192be0134
[ "BSD-3-Clause" ]
3
2020-05-27T18:26:11.000Z
2020-10-15T10:52:24.000Z
#!/usr/bin/env python3 from typing import Any, Tuple, Union, cast import torch from torch import Tensor from torch.nn import Module from captum._utils.gradient import compute_gradients from captum._utils.typing import TensorOrTupleOfTensorsGeneric from captum.attr._core.noise_tunnel import NoiseTunnel from captum.att...
38.056338
88
0.663953
63ce92cfc03f8c2afeb80c59be15e11397b193a6
409
py
Python
Mundo 2/ex54.py
Silvalhd/Aulas-Python
77ddc0e276accff4bfef9d474f80d0ad399ef74f
[ "MIT" ]
null
null
null
Mundo 2/ex54.py
Silvalhd/Aulas-Python
77ddc0e276accff4bfef9d474f80d0ad399ef74f
[ "MIT" ]
null
null
null
Mundo 2/ex54.py
Silvalhd/Aulas-Python
77ddc0e276accff4bfef9d474f80d0ad399ef74f
[ "MIT" ]
null
null
null
from datetime import date atual = date.today().year totmaior = 0 totmenor = 0 for c in range(1, 8): nasc = int(input('Em que ano a {}º pessoa nasceu ? '.format(c))) idade = atual - nasc if idade >= 19: totmaior += 1 else: totmenor += 1 print('Ao todo tivemos {} pessoas maiores de idade'....
29.214286
70
0.645477
45e57220a41df503de76739fc64c24dc0e86bcc1
7,658
py
Python
tests/test_transforms.py
TheShadow29/pytorchvideo
39a3e34e33fb0e1ec142288df08f6e8c3585961a
[ "Apache-2.0" ]
null
null
null
tests/test_transforms.py
TheShadow29/pytorchvideo
39a3e34e33fb0e1ec142288df08f6e8c3585961a
[ "Apache-2.0" ]
null
null
null
tests/test_transforms.py
TheShadow29/pytorchvideo
39a3e34e33fb0e1ec142288df08f6e8c3585961a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import unittest import torch from pytorchvideo.data.utils import thwc_to_cthw from pytorchvideo.transforms import ( ApplyTransformToKey, RandomShortSideScale, UniformCropVideo, UniformTemporalSubsample, Normalize, ) from pytor...
37.356098
88
0.619744
bce276e5511d98b0312d9b5db91256e4877a9371
8,393
py
Python
etl/publish.py
owid/etl
c859554268c65c4a1b04f8b58fe1a71747dbea3f
[ "MIT" ]
5
2021-11-01T18:54:52.000Z
2022-03-10T17:19:14.000Z
etl/publish.py
owid/etl
c859554268c65c4a1b04f8b58fe1a71747dbea3f
[ "MIT" ]
98
2021-09-24T19:29:34.000Z
2022-03-31T15:57:18.000Z
etl/publish.py
owid/etl
c859554268c65c4a1b04f8b58fe1a71747dbea3f
[ "MIT" ]
2
2021-12-15T07:53:38.000Z
2022-02-05T14:50:43.000Z
# # publish.py # etl # import re import sys from typing import Any, Dict, Iterator, Optional, cast from collections.abc import Iterable from urllib.error import HTTPError from pathlib import Path import concurrent.futures import click import boto3 from botocore.client import ClientError import pandas as pd from ow...
30.082437
108
0.619921
47c3c5866b30c59713cb0ae9c1b7c00ac476e44d
6,627
py
Python
iptv_proxy/controller.py
sfanous/IPTVProxy
23047be01a229ef8f69ea6ca55185eae93adc56e
[ "MIT" ]
9
2018-11-02T02:51:50.000Z
2022-01-12T06:22:33.000Z
iptv_proxy/controller.py
sfanous/IPTVProxy
23047be01a229ef8f69ea6ca55185eae93adc56e
[ "MIT" ]
3
2019-05-11T21:28:32.000Z
2020-04-27T00:58:46.000Z
iptv_proxy/controller.py
sfanous/IPTVProxy
23047be01a229ef8f69ea6ca55185eae93adc56e
[ "MIT" ]
7
2019-01-03T20:31:30.000Z
2022-01-29T04:09:24.000Z
import logging import os import sys import traceback from ssl import SSLError from threading import Event from iptv_proxy.cache import CacheManager from iptv_proxy.configuration import Configuration from iptv_proxy.configuration import OptionalSettings from iptv_proxy.db import Database from iptv_proxy.html_template_e...
33.984615
88
0.658669
a1ceafff82b6e191e4996eab1307468ca7606ece
20,562
py
Python
imaging/ml/ml_codelab/scripts/trainer/model.py
mberger/healthcare
ef0aa87ddef6b23b1f5bbfae7b7a18f7791db9e8
[ "Apache-2.0" ]
null
null
null
imaging/ml/ml_codelab/scripts/trainer/model.py
mberger/healthcare
ef0aa87ddef6b23b1f5bbfae7b7a18f7791db9e8
[ "Apache-2.0" ]
null
null
null
imaging/ml/ml_codelab/scripts/trainer/model.py
mberger/healthcare
ef0aa87ddef6b23b1f5bbfae7b7a18f7791db9e8
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC. 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 a...
39.240458
101
0.734899
be14431aa1c76d6c0e9ee669fe026226ba29991d
8,290
py
Python
sdks/python/apache_beam/dataframe/frames.py
Zhangyx39/beam
a73b6bc199f865227e868cf8df89b3d90946ff7a
[ "Apache-2.0" ]
1
2020-06-10T10:38:02.000Z
2020-06-10T10:38:02.000Z
sdks/python/apache_beam/dataframe/frames.py
Zhangyx39/beam
a73b6bc199f865227e868cf8df89b3d90946ff7a
[ "Apache-2.0" ]
1
2020-09-03T06:16:36.000Z
2020-09-10T07:08:27.000Z
sdks/python/apache_beam/dataframe/frames.py
Zhangyx39/beam
a73b6bc199f865227e868cf8df89b3d90946ff7a
[ "Apache-2.0" ]
1
2020-06-25T23:45:11.000Z
2020-06-25T23:45:11.000Z
# # 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 us...
34.256198
78
0.679614
7b28ebfd40b88db7480f273cf18176a893869c98
50,099
py
Python
pyNastran/converters/panair/panair_grid.py
luzpaz/pyNastran
939e9eefdc87a3bf67939a23dc09f155b93969a0
[ "BSD-3-Clause" ]
293
2015-03-22T20:22:01.000Z
2022-03-14T20:28:24.000Z
pyNastran/converters/panair/panair_grid.py
luzpaz/pyNastran
939e9eefdc87a3bf67939a23dc09f155b93969a0
[ "BSD-3-Clause" ]
512
2015-03-14T18:39:27.000Z
2022-03-31T16:15:43.000Z
pyNastran/converters/panair/panair_grid.py
luzpaz/pyNastran
939e9eefdc87a3bf67939a23dc09f155b93969a0
[ "BSD-3-Clause" ]
136
2015-03-19T03:26:06.000Z
2022-03-25T22:14:54.000Z
""" defines: - PanairGrid(log=None, debug=False) """ import os from itertools import count from math import ceil, sin, cos, radians import numpy as np from pyNastran.converters.panair.panair_grid_patch import ( PanairPatch, PanairWakePatch, print_float) from pyNastran.converters.panair.assign_type import ( ...
38.836434
148
0.496158
8d4b058f257adbf4a8b9569b28e62e8a701874d9
9,404
py
Python
egicli/endpoint.py
cloudbustinguk/egicli
092c368bd273ac67852a8a7d0e8caec27d379322
[ "MIT" ]
null
null
null
egicli/endpoint.py
cloudbustinguk/egicli
092c368bd273ac67852a8a7d0e8caec27d379322
[ "MIT" ]
null
null
null
egicli/endpoint.py
cloudbustinguk/egicli
092c368bd273ac67852a8a7d0e8caec27d379322
[ "MIT" ]
null
null
null
from __future__ import print_function import os import defusedxml.ElementTree as ET import click from six.moves.urllib import parse import requests from tabulate import tabulate from egicli.checkin import refresh_access_token GOCDB_PUBLICURL = "https://goc.egi.eu/gocdbpi/public/" def get_sites(): q = {"method...
30.832787
87
0.650787
27d36a8db947679351031fa035ec0c9035e3a2f5
910
py
Python
python/Data Structures/Linked Lists/MergeTwoSorted.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
python/Data Structures/Linked Lists/MergeTwoSorted.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
python/Data Structures/Linked Lists/MergeTwoSorted.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def mergeTwoLists(self, l1: Optional[ListNode], l2: Optional[ListNode]) -> Optional[ListNode]: if not l1: return l2 if no...
27.575758
98
0.482418
1a01a46fcd61970b8745832411ae55312352c126
266
py
Python
Python/script_template.py
mfcallahan/Scripts
2f1f62ea55ffc42585a80efe9721b57ced2b911b
[ "MIT" ]
null
null
null
Python/script_template.py
mfcallahan/Scripts
2f1f62ea55ffc42585a80efe9721b57ced2b911b
[ "MIT" ]
null
null
null
Python/script_template.py
mfcallahan/Scripts
2f1f62ea55ffc42585a80efe9721b57ced2b911b
[ "MIT" ]
null
null
null
# import os class Foo: def __init__(self, name, age): self.name = name self.age = age def main(): foo = Foo('Matt', 38) someFunction(foo.name) def someFunction(name): print('Hello, ' + name) if __name__ == "__main__": main()
15.647059
34
0.575188
80a1050a91a0dbcbdb71cc0d70964b4ffb29d540
4,991
py
Python
cogs/tickets.py
VasilyCodes/Exon
79075161aecb75b17a696ec8bbe5e77e138dacd3
[ "MIT" ]
1
2022-02-27T23:47:22.000Z
2022-02-27T23:47:22.000Z
cogs/tickets.py
VasilyCodes/Exon
79075161aecb75b17a696ec8bbe5e77e138dacd3
[ "MIT" ]
1
2022-02-28T00:06:45.000Z
2022-02-28T00:06:45.000Z
cogs/tickets.py
VasilyCodes/Exon
79075161aecb75b17a696ec8bbe5e77e138dacd3
[ "MIT" ]
null
null
null
# Coded By: Tom Sumner # Date: 07-04-2022 # Github: Tom-Sumner / https://github.com/Tom-Sumner # Discord: TSumner#5215 # License: MIT # Note: If you use this code, you MUST credit me in your project. from typing import Text import nextcord, os, sys, colorama, time, asyncio from colorama import init, Fore, Back, Styl...
38.392308
195
0.746143
a9c66c998d473b91e3eec124cf059e4d686ac76a
41,877
py
Python
imperative/python/megengine/jit/tracing.py
cqchu/MegEngine
98365154c638cb9393f1fc6eff9b17c60ad38e0c
[ "Apache-2.0" ]
1
2021-03-29T04:25:30.000Z
2021-03-29T04:25:30.000Z
imperative/python/megengine/jit/tracing.py
cqchu/MegEngine
98365154c638cb9393f1fc6eff9b17c60ad38e0c
[ "Apache-2.0" ]
null
null
null
imperative/python/megengine/jit/tracing.py
cqchu/MegEngine
98365154c638cb9393f1fc6eff9b17c60ad38e0c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2020 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTI...
37.092117
93
0.547604
5c928173df6357f05b1e3b0a35c3ef278f2b54da
10,785
py
Python
all_time_graph.py
JupyterJones/LBRYnomics
9967a9d7c8feef4e59205dece2964c40f3308357
[ "MIT" ]
null
null
null
all_time_graph.py
JupyterJones/LBRYnomics
9967a9d7c8feef4e59205dece2964c40f3308357
[ "MIT" ]
null
null
null
all_time_graph.py
JupyterJones/LBRYnomics
9967a9d7c8feef4e59205dece2964c40f3308357
[ "MIT" ]
1
2020-03-09T16:40:26.000Z
2020-03-09T16:40:26.000Z
""" Get the timestamps of all claims and plot the cumulative number vs. time! """ import datetime import json import matplotlib.pyplot as plt import numpy as np import os import requests import sqlite3 import time def make_graph(mode, show=True): """ mode must be "claims" or "channels" """ if mode != ...
34.238095
173
0.587112
8f9e4ef6e0df9a62fe87cf25b0d97c4a5b1b8d94
867
py
Python
tests/io/file1.py
peterson79/pycom-micropython-sigfox
3f93fc2c02567c96f18cff4af9125db8fd7a6fb4
[ "MIT" ]
37
2017-12-07T15:49:29.000Z
2022-03-16T16:01:38.000Z
tests/io/file1.py
peterson79/pycom-micropython-sigfox
3f93fc2c02567c96f18cff4af9125db8fd7a6fb4
[ "MIT" ]
27
2015-01-02T16:17:37.000Z
2015-09-07T19:21:26.000Z
tests/io/file1.py
peterson79/pycom-micropython-sigfox
3f93fc2c02567c96f18cff4af9125db8fd7a6fb4
[ "MIT" ]
22
2016-08-01T01:35:30.000Z
2022-03-22T18:12:23.000Z
f = open("io/data/file1") print(f.read(5)) print(f.readline()) print(f.read()) f = open("io/data/file1") print(f.readlines()) f = open("io/data/file1","r") print(f.readlines()) f = open("io/data/file1","rb") print(f.readlines()) f = open("io/data/file1",mode="r") print(f.readlines()) f = open("io/data/file1",mode="rb")...
18.446809
51
0.621684
e479af895a923f12cf75d60743a72433d48f4d9c
19,983
py
Python
src/python/zquantum/core/interfaces/backend_test.py
zapatacomputing/z-quantum-core
456f5d83ba641982e710e2abe19afa4e266ab4a8
[ "Apache-2.0" ]
24
2020-04-15T17:36:59.000Z
2022-01-25T05:02:14.000Z
src/python/zquantum/core/interfaces/backend_test.py
zapatacomputing/z-quantum-core
456f5d83ba641982e710e2abe19afa4e266ab4a8
[ "Apache-2.0" ]
177
2020-04-23T15:19:59.000Z
2022-03-30T18:06:17.000Z
src/python/zquantum/core/interfaces/backend_test.py
zapatacomputing/z-quantum-core
456f5d83ba641982e710e2abe19afa4e266ab4a8
[ "Apache-2.0" ]
19
2020-06-24T10:56:02.000Z
2021-09-30T13:02:21.000Z
"""Test case prototypes that can be used in other projects. Note that this file won't be executed on its own by pytest. You need to define your own test cases that inherit from the ones defined here. Note regarding testing specific gates. To test that a gate is properly implemented, we can ask for its matrix represe...
38.062857
88
0.684482
f65c89d1f1940d9cfd995f068f9cbd47d5b39502
112,760
py
Python
nexus/lib/machines.py
recohen/qmcpack
66c894da2e3108d709dfb4ae5cdf4f756f517763
[ "NCSA" ]
null
null
null
nexus/lib/machines.py
recohen/qmcpack
66c894da2e3108d709dfb4ae5cdf4f756f517763
[ "NCSA" ]
null
null
null
nexus/lib/machines.py
recohen/qmcpack
66c894da2e3108d709dfb4ae5cdf4f756f517763
[ "NCSA" ]
null
null
null
################################################################## ## (c) Copyright 2015- by Jaron T. Krogel ## ################################################################## #====================================================================# # machines.py ...
33.851696
297
0.522198
43a1d7cb4d5e858dfa0ecb7aa3684eb2f471af00
974
py
Python
sevenbridges/models/compound/jobs/job.py
sbg/sevenbridges-python
b3e14016066563470d978c9b13e1a236a41abea8
[ "Apache-2.0" ]
46
2016-04-27T12:51:17.000Z
2021-11-24T23:43:12.000Z
sevenbridges/models/compound/jobs/job.py
sbg/sevenbridges-python
b3e14016066563470d978c9b13e1a236a41abea8
[ "Apache-2.0" ]
111
2016-05-25T15:44:31.000Z
2022-02-05T20:45:37.000Z
sevenbridges/models/compound/jobs/job.py
sbg/sevenbridges-python
b3e14016066563470d978c9b13e1a236a41abea8
[ "Apache-2.0" ]
37
2016-04-27T12:10:43.000Z
2021-03-18T11:22:28.000Z
from sevenbridges.meta.fields import ( StringField, DateTimeField, CompoundField, BooleanField ) from sevenbridges.meta.resource import Resource from sevenbridges.models.compound.jobs.job_docker import JobDocker from sevenbridges.models.compound.jobs.job_instance import Instance from sevenbridges.models.compound.jo...
36.074074
67
0.758727
4dfc3562e7debe6187a22b98fc61f2060e271eab
1,686
py
Python
src/submission_filters.py
pkupidura/reddit-corpus-builder
d47fdff1bef5ab0ba6f9e24118c2f7b8ae40a6df
[ "MIT" ]
1
2020-08-25T12:40:35.000Z
2020-08-25T12:40:35.000Z
src/submission_filters.py
pkupidura/reddit-corpus-builder
d47fdff1bef5ab0ba6f9e24118c2f7b8ae40a6df
[ "MIT" ]
null
null
null
src/submission_filters.py
pkupidura/reddit-corpus-builder
d47fdff1bef5ab0ba6f9e24118c2f7b8ae40a6df
[ "MIT" ]
null
null
null
from typing import Callable from models import RawSubmission RawSubmissionFilter = Callable[[RawSubmission], bool] ALLOWED_SUBREDDITS = ['AskReddit', 'unpopularopinion', 'teenagers', 'DebateRightists', 'climatechange', 'collapse', 'NoStupidQuestions', 'environment', 'ChapoTrapHouse', 'climate',...
34.408163
119
0.645907
a61b96fc0797e95b3659a3f693a3a3c3e23e3cd0
4,956
py
Python
tfx/orchestration/portable/python_executor_operator.py
epona-science/tfx
2081eee1e94d97de399514e02079a233309d648d
[ "Apache-2.0" ]
null
null
null
tfx/orchestration/portable/python_executor_operator.py
epona-science/tfx
2081eee1e94d97de399514e02079a233309d648d
[ "Apache-2.0" ]
null
null
null
tfx/orchestration/portable/python_executor_operator.py
epona-science/tfx
2081eee1e94d97de399514e02079a233309d648d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC. 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 a...
39.967742
88
0.749395
7a62b1f0d02ac5901f65e342fc8377595ee4adad
4,168
py
Python
mmseg/models/backbones/hrnet_refine.py
lixuekai2001/BPR
e3674fe675744b8680a5daf7e113720b396598b9
[ "Apache-2.0" ]
113
2021-04-13T07:08:52.000Z
2022-03-30T03:34:15.000Z
mmseg/models/backbones/hrnet_refine.py
chufengt/BPR
dba1b8ced3f1df62697271451b577d5c9f0b62df
[ "Apache-2.0" ]
27
2021-04-23T06:46:49.000Z
2022-02-09T11:56:08.000Z
mmseg/models/backbones/hrnet_refine.py
chufengt/BPR
dba1b8ced3f1df62697271451b577d5c9f0b62df
[ "Apache-2.0" ]
14
2021-05-07T09:18:30.000Z
2022-03-04T08:25:30.000Z
import torch.nn as nn from mmcv.cnn import (build_conv_layer, build_norm_layer, constant_init, kaiming_init) from mmcv.runner import load_checkpoint from mmcv.utils.parrots_wrapper import _BatchNorm from mmseg.ops import Upsample, resize from mmseg.utils import get_root_logger from ..builder impo...
34.446281
79
0.528071
971fcacc6934e43de77d41dd70bc9630812797b2
45,329
py
Python
research/object_detection/builders/model_builder.py
gitlost-murali/models
e3135c03429c462f16d298b92315213647e36190
[ "Apache-2.0" ]
549
2020-01-02T05:14:57.000Z
2022-03-29T18:34:12.000Z
research/object_detection/builders/model_builder.py
gitlost-murali/models
e3135c03429c462f16d298b92315213647e36190
[ "Apache-2.0" ]
98
2020-01-21T09:41:30.000Z
2022-03-12T00:53:06.000Z
research/object_detection/builders/model_builder.py
gitlost-murali/models
e3135c03429c462f16d298b92315213647e36190
[ "Apache-2.0" ]
233
2020-01-18T03:46:27.000Z
2022-03-19T03:17:47.000Z
# Copyright 2017 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...
44.571288
121
0.791546
bac74a3aed1d8ba6dc0fb952346bd1e78b3904fe
1,416
py
Python
launch_testing/setup.py
RoverRobotics-forks/launch
998a916cfff25b2f8f45b557715376281facbc3d
[ "Apache-2.0" ]
null
null
null
launch_testing/setup.py
RoverRobotics-forks/launch
998a916cfff25b2f8f45b557715376281facbc3d
[ "Apache-2.0" ]
null
null
null
launch_testing/setup.py
RoverRobotics-forks/launch
998a916cfff25b2f8f45b557715376281facbc3d
[ "Apache-2.0" ]
null
null
null
import glob from setuptools import find_packages from setuptools import setup setup( name='launch_testing', version='0.8.3', packages=find_packages(exclude=['test']), data_files=[ ('share/ament_index/resource_index/packages', ['resource/launch_testing']), ('lib/launch_testing', glob.g...
35.4
83
0.668079
c07fdc9ca0b46e8e3a5ac1935562354629d97992
3,065
py
Python
src/stactools/ephemeral/stac.py
pjhartzell/stactools-template
f9868d3681121e5e29c1eb5285db60d9f7d139f3
[ "Apache-2.0" ]
null
null
null
src/stactools/ephemeral/stac.py
pjhartzell/stactools-template
f9868d3681121e5e29c1eb5285db60d9f7d139f3
[ "Apache-2.0" ]
null
null
null
src/stactools/ephemeral/stac.py
pjhartzell/stactools-template
f9868d3681121e5e29c1eb5285db60d9f7d139f3
[ "Apache-2.0" ]
null
null
null
import logging from datetime import datetime, timezone from pystac import ( Asset, CatalogType, Collection, Extent, Item, MediaType, Provider, ProviderRole, SpatialExtent, TemporalExtent, ) from pystac.extensions.projection import ProjectionExtension logger = logging.getLogger(...
25.974576
87
0.62186
d97f0afbc7ee89c514d6cf00ccb8ef2107e81f28
723
py
Python
melisa/listeners/channel_update.py
jungledev1/melisa
835e4b644e50b5038599ecbd1bfa510a0d3200e9
[ "MIT" ]
1
2022-03-23T09:04:49.000Z
2022-03-23T09:04:49.000Z
melisa/listeners/channel_update.py
jungledev1/melisa
835e4b644e50b5038599ecbd1bfa510a0d3200e9
[ "MIT" ]
null
null
null
melisa/listeners/channel_update.py
jungledev1/melisa
835e4b644e50b5038599ecbd1bfa510a0d3200e9
[ "MIT" ]
null
null
null
# Copyright MelisaDev 2022 - Present # Full MIT License can be found in `LICENSE.txt` at the project root. from __future__ import annotations from ..utils.types import Coro from ..models.guild import Channel, ChannelType, channel_types_for_converting async def channel_update_listener(self, gateway, payload: dict): ...
28.92
81
0.753804
d160febadc2705eb6876d051030b56c171d2ce88
5,405
py
Python
conans/client/generators/cmake.py
kristofferkoch/conan
b33ba8f7c87d1980bf80e8c98090b3ae9f7f6e5d
[ "MIT" ]
null
null
null
conans/client/generators/cmake.py
kristofferkoch/conan
b33ba8f7c87d1980bf80e8c98090b3ae9f7f6e5d
[ "MIT" ]
null
null
null
conans/client/generators/cmake.py
kristofferkoch/conan
b33ba8f7c87d1980bf80e8c98090b3ae9f7f6e5d
[ "MIT" ]
null
null
null
from conans.client.generators.cmake_common import cmake_dependencies, cmake_dependency_vars, \ cmake_global_vars, cmake_macros, cmake_package_info, cmake_settings_info, cmake_user_info_vars, \ generate_targets_section, CMakeCommonMacros from conans.model import Generator from conans.paths import BUILD_INFO_CMAK...
45.420168
101
0.623867
afd5cb31374eba3bdc50e80a3f2893e887fc13fc
170,472
py
Python
tensorflow/python/eager/function.py
victorromeo/tensorflow
d1fbd64a9ba8a3f937cbfeab7c34d93f563e2a8e
[ "Apache-2.0" ]
null
null
null
tensorflow/python/eager/function.py
victorromeo/tensorflow
d1fbd64a9ba8a3f937cbfeab7c34d93f563e2a8e
[ "Apache-2.0" ]
1
2020-10-09T09:21:11.000Z
2020-10-09T09:21:11.000Z
tensorflow/python/eager/function.py
victorromeo/tensorflow
d1fbd64a9ba8a3f937cbfeab7c34d93f563e2a8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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...
42.63932
162
0.703863
00725e8f8167a27f6dcb643adc1c02d7bd2ca573
5,641
py
Python
run/django/mysite/settings.py
InstantDomain/python-docs-samples
f8e293c722998b269da38b7fe11b98aae8932b8f
[ "Apache-2.0" ]
null
null
null
run/django/mysite/settings.py
InstantDomain/python-docs-samples
f8e293c722998b269da38b7fe11b98aae8932b8f
[ "Apache-2.0" ]
null
null
null
run/django/mysite/settings.py
InstantDomain/python-docs-samples
f8e293c722998b269da38b7fe11b98aae8932b8f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 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, ...
31.165746
91
0.72824
dfac5c6889ea8ac0e8d1b992de908404e4c6f6a7
3,475
py
Python
dataset/vc_dataset.py
HikaruHotta/M2M-VC-CycleGAN
a93b06221c787cc3e13b2d92fee728b811e5d526
[ "MIT" ]
5
2021-02-23T05:22:18.000Z
2021-03-23T19:17:22.000Z
dataset/vc_dataset.py
hikaruhotta/M2M-VC-CycleGAN
a93b06221c787cc3e13b2d92fee728b811e5d526
[ "MIT" ]
null
null
null
dataset/vc_dataset.py
hikaruhotta/M2M-VC-CycleGAN
a93b06221c787cc3e13b2d92fee728b811e5d526
[ "MIT" ]
null
null
null
#! python # -*- coding: utf-8 -*- # Author: kun # @Time: 2019-07-23 14:36 from torch.utils.data.dataset import Dataset import torch import numpy as np class trainingDataset(Dataset): def __init__(self, datasetA, datasetB, n_frames=64, max_mask_len=25, valid=False): self.datasetA = datasetA self.d...
39.488636
98
0.625036
9bb85971a93cb4e9502cb8715391844ec894582a
167
py
Python
docs/_build/jupyter_execute/example.py
QMSS-G5072-2021/cipher_hu_yang
9aa6731d975ca70cbdeabca8dfc1390b77908411
[ "MIT" ]
null
null
null
docs/_build/jupyter_execute/example.py
QMSS-G5072-2021/cipher_hu_yang
9aa6731d975ca70cbdeabca8dfc1390b77908411
[ "MIT" ]
null
null
null
docs/_build/jupyter_execute/example.py
QMSS-G5072-2021/cipher_hu_yang
9aa6731d975ca70cbdeabca8dfc1390b77908411
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Example usage # # To use `cipher_yh3395` in a project: # In[1]: import cipher_yh3395 print(cipher_yh3395.__version__)
11.133333
38
0.694611
a27f801a9726eafe787006d48eb1a1efaf0bcc8e
1,766
py
Python
tests/test_dataset/test_ndcoordrange.py
Mailaender/spectrochempy
d58221afeb9f78e2e3e0079b3fd6c0162a902c04
[ "CECILL-B" ]
null
null
null
tests/test_dataset/test_ndcoordrange.py
Mailaender/spectrochempy
d58221afeb9f78e2e3e0079b3fd6c0162a902c04
[ "CECILL-B" ]
null
null
null
tests/test_dataset/test_ndcoordrange.py
Mailaender/spectrochempy
d58221afeb9f78e2e3e0079b3fd6c0162a902c04
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- # ====================================================================================================================== # Copyright (©) 2015-2021 LCS - Laboratoire Catalyse et Spectrochimie, Caen, France. = # CeCILL-B FREE SOFTWARE LICENSE AGREEMENT - See ful...
36.040816
120
0.342016
28c3701d20519497fd33acb79ad431f2db60d1bc
1,274
py
Python
upgraded-ARP-Poisoning.py
deadlysnowman3308/upgraded-ARP-Poisoning
012e8d6b255fce7c3e274dd43bbdc91889e19156
[ "MIT" ]
4
2021-03-22T14:56:56.000Z
2021-12-31T09:43:17.000Z
upgraded-ARP-Poisoning.py
deadlysnowman3308/upgraded-ARP-Poisoning
012e8d6b255fce7c3e274dd43bbdc91889e19156
[ "MIT" ]
null
null
null
upgraded-ARP-Poisoning.py
deadlysnowman3308/upgraded-ARP-Poisoning
012e8d6b255fce7c3e274dd43bbdc91889e19156
[ "MIT" ]
null
null
null
#!/usr/bin/env python from scapy.all import * import os, sys from os import system from termcolor import colored, cprint os.system('cls' if os.name == 'nt' else 'clear') try: dest_random = RandIP() print("\n") cprint(colored("[+] Made by Aniket [+]", "yellow", attrs=["blink"])) print("\n") user = s...
39.8125
131
0.600471
6911b142f062828b79adbf6c1c88d382afd1aa05
43,678
py
Python
src/backend/marsha/core/tests/test_utils_medialive_utils.py
openfun/marsha
71f34badce54fd66d589477005b1d18be3023b85
[ "MIT" ]
64
2018-04-26T23:46:14.000Z
2022-03-26T21:32:23.000Z
src/backend/marsha/core/tests/test_utils_medialive_utils.py
openfun/marsha
71f34badce54fd66d589477005b1d18be3023b85
[ "MIT" ]
533
2018-04-17T10:17:24.000Z
2022-03-31T13:07:49.000Z
src/backend/marsha/core/tests/test_utils_medialive_utils.py
openfun/marsha
71f34badce54fd66d589477005b1d18be3023b85
[ "MIT" ]
16
2018-09-21T12:52:34.000Z
2021-11-29T16:44:51.000Z
"""Test medialive utils functions.""" from unittest import mock from django.test import TestCase, override_settings from botocore.stub import Stubber from ..factories import VideoFactory from ..utils import medialive_utils class MediaLiveUtilsTestCase(TestCase): """Test medialive utils.""" maxDiff = None ...
46.764454
99
0.384679
027317f5d2437026823ced9d15335f768eda2588
662
py
Python
functional/__init__.py
trisongz/PyFunctional
363529c71848ade0f49e6be0222ae388ec96d7cd
[ "MIT" ]
null
null
null
functional/__init__.py
trisongz/PyFunctional
363529c71848ade0f49e6be0222ae388ec96d7cd
[ "MIT" ]
null
null
null
functional/__init__.py
trisongz/PyFunctional
363529c71848ade0f49e6be0222ae388ec96d7cd
[ "MIT" ]
null
null
null
""" Package for creating data pipelines, LINQ-style data analysis, and functional programming. Imports the primary entrypoint at streams.seq Originally Forked From __author__ = "Pedro Rodriguez" __copyright__ = "Copyright 2021, Pedro Rodriguez" __license__ = "MIT" __version__ = "1.4.3" __maintainer__ = "Pedro Rodrigu...
25.461538
98
0.765861
ade548ae02926e6226a9ce58acf79c6138173907
33,729
py
Python
iommi/query.py
bgrundmann/iommi
886a5af587101252d47c17ee865d9bfec8c0baaf
[ "BSD-3-Clause" ]
null
null
null
iommi/query.py
bgrundmann/iommi
886a5af587101252d47c17ee865d9bfec8c0baaf
[ "BSD-3-Clause" ]
null
null
null
iommi/query.py
bgrundmann/iommi
886a5af587101252d47c17ee865d9bfec8c0baaf
[ "BSD-3-Clause" ]
null
null
null
import operator from functools import reduce from typing import ( Type, Union, ) from django.core.exceptions import ( MultipleObjectsReturned, ObjectDoesNotExist, ) from django.db.models import ( F, Model, Q, QuerySet, ) from django.utils.translation import gettext from iommi import ( ...
34.736354
454
0.627146
2eb523a538088d5f97fd8e6705c5f47d7d9ac833
2,997
py
Python
src/ska_mid_cbf_mcs/fsp/fsp_pst.py
jamesjiang52/mid-cbf-mcs
072f8fdb91d77010e875f441e536fab842bf8319
[ "BSD-3-Clause" ]
null
null
null
src/ska_mid_cbf_mcs/fsp/fsp_pst.py
jamesjiang52/mid-cbf-mcs
072f8fdb91d77010e875f441e536fab842bf8319
[ "BSD-3-Clause" ]
4
2021-05-20T05:19:23.000Z
2021-05-20T05:19:26.000Z
src/ska_mid_cbf_mcs/fsp/fsp_pst.py
ska-telescope/mid-cbf-mcs
072f8fdb91d77010e875f441e536fab842bf8319
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of the Vcc project # # # # Distributed under the terms of the GPL license. # See LICENSE.txt for more info. # """ # Author: James Jiang James.Jiang@nrc-cnrc.gc.ca, # Herzberg Astronomy and Astrophysics, National Research Council of Canada # Copyright (c) 2019 National Rese...
26.289474
76
0.634301
0bbc99e032172b5a26c74da6c3a6334dca291897
13,404
py
Python
python/ray/_private/runtime_env/conda.py
rajagurunath/ray
dd1fe58f689509b7f95930a8411b92903edd405c
[ "Apache-2.0" ]
33
2020-05-27T14:25:24.000Z
2022-03-22T06:11:30.000Z
python/ray/_private/runtime_env/conda.py
rajagurunath/ray
dd1fe58f689509b7f95930a8411b92903edd405c
[ "Apache-2.0" ]
115
2021-01-19T04:40:50.000Z
2022-03-26T07:09:00.000Z
python/ray/_private/runtime_env/conda.py
rajagurunath/ray
dd1fe58f689509b7f95930a8411b92903edd405c
[ "Apache-2.0" ]
5
2020-08-06T15:53:07.000Z
2022-02-09T03:31:31.000Z
import os import sys import json import logging import yaml import hashlib import subprocess import runpy import shutil from filelock import FileLock from typing import Optional, List, Dict, Any, Set from pathlib import Path import ray from ray._private.runtime_env.utils import RuntimeEnv from ray._private.runtime_e...
40.618182
79
0.636153
72e5852018149a451e40d0562f509f18cd1ee0bc
1,076
py
Python
assign5/xcoverage.py
edim024/learning_python
3f1912a5e4fced0d79b45b35803663474cf53237
[ "MIT" ]
null
null
null
assign5/xcoverage.py
edim024/learning_python
3f1912a5e4fced0d79b45b35803663474cf53237
[ "MIT" ]
null
null
null
assign5/xcoverage.py
edim024/learning_python
3f1912a5e4fced0d79b45b35803663474cf53237
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Write a program that simulates random BAC coverage over a genome # Command line arguments include # Genome size (e.g. 1000) # X coverage (e.g. 5) # Use assert() to check parameter bounds # Report min, max, and histogram of coverage # Note that your output may vary due to random function imp...
14.346667
66
0.619888
2a631e33653e4019ccf7e83a524e438a1ed01b88
4,039
py
Python
spatial_scene_grammars_examples/singles_pairs/grammar_constituency.py
gizatt/spatial_scene_grammars
014cf39c54a173e8710f1b7690c3ce627bb20ee1
[ "MIT" ]
8
2020-11-30T16:53:34.000Z
2022-03-27T22:37:17.000Z
spatial_scene_grammars_examples/singles_pairs/grammar_constituency.py
gizatt/spatial_scene_grammars
014cf39c54a173e8710f1b7690c3ce627bb20ee1
[ "MIT" ]
null
null
null
spatial_scene_grammars_examples/singles_pairs/grammar_constituency.py
gizatt/spatial_scene_grammars
014cf39c54a173e8710f1b7690c3ce627bb20ee1
[ "MIT" ]
1
2020-12-01T01:24:09.000Z
2020-12-01T01:24:09.000Z
import torch from spatial_scene_grammars.nodes import * from spatial_scene_grammars.rules import * from spatial_scene_grammars.scene_grammar import * from spatial_scene_grammars.drake_interop import * import pydrake import pydrake.geometry as pydrake_geom ''' Scene contains a number of oriented objects (represented b...
31.310078
93
0.552117
fb6d8448bca41e11d4d8e25a0e52c5f49d3d14fc
6,473
py
Python
plugins/modules/oci_database_management_role_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_database_management_role_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_database_management_role_facts.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
29.967593
133
0.627839
bbd53a6e152a3f7396eb7a4de2f4c1afe33ba1d4
1,305
py
Python
options/test_options.py
megvii-research/GeneGAN
8a1ba544481978c6f5513e7eed5f11622ad3976f
[ "MIT" ]
5
2021-08-08T17:28:00.000Z
2022-02-18T03:20:56.000Z
options/test_options.py
megvii-research/GeneGAN
8a1ba544481978c6f5513e7eed5f11622ad3976f
[ "MIT" ]
null
null
null
options/test_options.py
megvii-research/GeneGAN
8a1ba544481978c6f5513e7eed5f11622ad3976f
[ "MIT" ]
2
2021-08-15T15:38:25.000Z
2021-08-15T21:21:30.000Z
from .base_options import BaseOptions class TestOptions(BaseOptions): """This class includes test options. It also includes shared options defined in BaseOptions. """ def initialize(self, parser): parser = BaseOptions.initialize(self, parser) # define shared options parser.add_argum...
35.27027
87
0.611494
58432c8ccec85be319119f0226913809313090e4
93,418
py
Python
ui_main.py
anjalp/GUI-Templates
d27ebebf7068ec3fb84d524a9c8be433f7fc3530
[ "MIT" ]
186
2020-08-13T10:38:42.000Z
2022-03-28T11:01:06.000Z
ui_main.py
sagarbiophysics/Minimalistic-Flat-Modern-GUI-Template
d27ebebf7068ec3fb84d524a9c8be433f7fc3530
[ "MIT" ]
2
2020-10-03T15:00:07.000Z
2021-03-10T18:17:00.000Z
ui_main.py
sagarbiophysics/Minimalistic-Flat-Modern-GUI-Template
d27ebebf7068ec3fb84d524a9c8be433f7fc3530
[ "MIT" ]
78
2020-08-20T19:00:58.000Z
2022-03-28T15:39:53.000Z
########################################################################################### ### CODE: WRITTEN BY: ANJAL.P AUGUST 11 2020 ### ### PROJECT: PELLIS Z1 ### ### PURPOSE: WINDO...
42.637152
888
0.693667
32244de75a9258d8a3772d4991abddab2466ade4
85
py
Python
src/test.py
deranderemark/CigarTracer
3f1172683c57dc7f28dd7517132014b23adfff90
[ "Apache-2.0" ]
null
null
null
src/test.py
deranderemark/CigarTracer
3f1172683c57dc7f28dd7517132014b23adfff90
[ "Apache-2.0" ]
1
2022-02-06T15:50:07.000Z
2022-02-06T15:50:07.000Z
src/test.py
deranderemark/CigarTracer
3f1172683c57dc7f28dd7517132014b23adfff90
[ "Apache-2.0" ]
null
null
null
def foo(): return print\print() def bar(): print() \print() \print()
12.142857
24
0.505882
cad9ef94cff56211e8ef9a48661127395bdc3864
911
py
Python
pandapower/control/__init__.py
jwiemer112/pandapower
8ba89c342e5d2ff4a564a093ae1ddcb7f637cb78
[ "BSD-3-Clause" ]
1
2021-07-05T22:19:10.000Z
2021-07-05T22:19:10.000Z
pandapower/control/__init__.py
lvzhibai/pandapower
24ed3056558887cc89f67d15b5527523990ae9a1
[ "BSD-3-Clause" ]
null
null
null
pandapower/control/__init__.py
lvzhibai/pandapower
24ed3056558887cc89f67d15b5527523990ae9a1
[ "BSD-3-Clause" ]
1
2020-08-24T12:10:10.000Z
2020-08-24T12:10:10.000Z
import pandapower.control.basic_controller import pandapower.control.controller # --- Controller --- from pandapower.control.controller.const_control import ConstControl from pandapower.control.controller.characteristic_control import CharacteristicControl from pandapower.control.controller.trafo.ContinuousTapControl i...
50.611111
89
0.878156
1de7cf74da22a75213fdb90b1dece63f03a82928
969
py
Python
pycws/pycws/views.py
FranchuFranchu/pycws
b1ed7f506889b8d1fd8323669ef5cb0d680e3b8c
[ "MIT" ]
null
null
null
pycws/pycws/views.py
FranchuFranchu/pycws
b1ed7f506889b8d1fd8323669ef5cb0d680e3b8c
[ "MIT" ]
null
null
null
pycws/pycws/views.py
FranchuFranchu/pycws
b1ed7f506889b8d1fd8323669ef5cb0d680e3b8c
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404, get_list_or_404 from django.http import Http404 from django.contrib.auth.forms import UserCreationForm from django.contrib.auth import login, authenticate from users.models import UserProfile def feed(request): return render(request, 'feed.html') d...
37.269231
81
0.687307
3f1ab476b6ddae091d1afa6fa75dd87f78cf56ea
11,085
py
Python
Bio/SeqUtils/ProtParam.py
barendt/biopython
391bcdbee7f821bff3e12b75c635a06bc1b2dcea
[ "PostgreSQL" ]
1
2016-05-09T13:17:59.000Z
2016-05-09T13:17:59.000Z
Bio/SeqUtils/ProtParam.py
cymon/biopython-github-master
7be9697599296401b0a7126d23b5eda391a94116
[ "PostgreSQL" ]
null
null
null
Bio/SeqUtils/ProtParam.py
cymon/biopython-github-master
7be9697599296401b0a7126d23b5eda391a94116
[ "PostgreSQL" ]
null
null
null
# Copyright Yair Benita Y.Benita@pharm.uu.nl # Biopython (http://biopython.org) license applies import sys import ProtParamData, IsoelectricPoint from ProtParamData import kd # Added by Iddo to enable the gravy method from Bio.Seq import Seq from Bio.Alphabet import IUPAC from Bio.Data import IUPACData #from BioModul...
43.988095
205
0.661254
2f03c50268ac3b3ea7de1777806b11ea5fb0fe58
2,215
py
Python
testproject/settings/base.py
Saurabh-Singh-00/django-cassandra-engine
1028919bff04743dcbf70b849fd19980ee131740
[ "BSD-2-Clause" ]
334
2015-01-07T17:22:46.000Z
2022-03-11T18:07:00.000Z
testproject/settings/base.py
hsamfm/django-cassandra-engine
f3ad96a00c8d91be9703ee4e4b1b45d4f93cb012
[ "BSD-2-Clause" ]
130
2015-01-16T09:59:52.000Z
2022-01-18T03:58:36.000Z
testproject/settings/base.py
hsamfm/django-cassandra-engine
f3ad96a00c8d91be9703ee4e4b1b45d4f93cb012
[ "BSD-2-Clause" ]
99
2015-01-19T12:16:24.000Z
2022-01-29T14:57:51.000Z
""" Django settings for testproject project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, .....
25.170455
71
0.726862
fc4db531cf00b8f75d9eb2a59ba78f5b325a61e1
1,358
py
Python
sync/local/apps/src/stub.py
roshan-githubb/sdn-cockpit
d40d4e456575db1967e6ffd85c8b0efe462d5dce
[ "BSD-2-Clause" ]
21
2018-03-03T18:02:41.000Z
2022-03-26T01:47:28.000Z
sync/local/apps/src/stub.py
roshan-githubb/sdn-cockpit
d40d4e456575db1967e6ffd85c8b0efe462d5dce
[ "BSD-2-Clause" ]
10
2019-11-27T12:31:04.000Z
2021-12-02T03:28:36.000Z
sync/local/apps/src/stub.py
roshan-githubb/sdn-cockpit
d40d4e456575db1967e6ffd85c8b0efe462d5dce
[ "BSD-2-Clause" ]
14
2018-02-28T08:28:38.000Z
2021-12-01T10:05:04.000Z
from ryu.base import app_manager from ryu.controller import ofp_event from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER from ryu.controller.handler import set_ev_cls import ryu.ofproto.ofproto_v1_3_parser as parser import ryu.ofproto.ofproto_v1_3 as ofproto from ryu.lib.packet import packet from ryu...
34.820513
73
0.725331
26cef7094e754947e331f4897866fc5bc57d5bc2
14,924
py
Python
sdk/python/pulumi_azure_native/securityandcompliance/private_link_services_for_m365_security_center.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/securityandcompliance/private_link_services_for_m365_security_center.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/securityandcompliance/private_link_services_for_m365_security_center.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "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! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
43.132948
591
0.652774
34e02da0e24b7fed205c4849d81bc8cb226b666c
1,174
py
Python
kubernetes_asyncio/test/test_apiregistration_v1beta1_service_reference.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
1
2020-03-25T01:24:27.000Z
2020-03-25T01:24:27.000Z
kubernetes_asyncio/test/test_apiregistration_v1beta1_service_reference.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/test/test_apiregistration_v1beta1_service_reference.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1.10.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import u...
28.634146
147
0.765758
cf813e1067062a9c78739a15bb9a6053c0e8e119
133,984
py
Python
test_ranges.py
BubaVV/ranges
f37623503060506366901b08b06d0ac249867836
[ "MIT" ]
null
null
null
test_ranges.py
BubaVV/ranges
f37623503060506366901b08b06d0ac249867836
[ "MIT" ]
null
null
null
test_ranges.py
BubaVV/ranges
f37623503060506366901b08b06d0ac249867836
[ "MIT" ]
null
null
null
# -*- coding: future_fstrings -*- import pytest from pytest import fail from ranges import Range, RangeSet, RangeDict import numbers from decimal import Decimal import datetime def asserterror(errortype, func, args=None, kwargs=None): """ A helper method - basically, "execute the given function wit...
60.626244
121
0.469407
ded1762c1309c3110f5103091ad5f05dd79ea503
3,639
py
Python
Algorithms/exp9a.py
curiousTejas/OpenOctober
2b348b9b7e713fd06719d742aadcbe3afb04ef11
[ "Apache-2.0" ]
32
2020-10-17T09:58:41.000Z
2021-10-13T04:43:35.000Z
Algorithms/exp9a.py
curiousTejas/OpenOctober
2b348b9b7e713fd06719d742aadcbe3afb04ef11
[ "Apache-2.0" ]
380
2020-10-18T15:35:49.000Z
2021-12-25T05:03:50.000Z
Algorithms/exp9a.py
curiousTejas/OpenOctober
2b348b9b7e713fd06719d742aadcbe3afb04ef11
[ "Apache-2.0" ]
68
2020-10-17T17:29:54.000Z
2021-10-13T04:43:35.000Z
from itertools import combinations from tabulate import tabulate import numpy as np def getData(): n=int(input("Enter the total no. of item sets: ")) data=[] for i in range(n): temp=[] print("Enter item set",i+1,": ") s=input() temp=[i for i in s.split(",")] ...
30.07438
102
0.506183
c8cf9af839a9a7bbe569c8ce101a45186f4243d0
745
py
Python
lang/module/listdir.py
joez/letspy
9f653bc0071821fdb49da8c19787dc7e12921457
[ "Apache-2.0" ]
null
null
null
lang/module/listdir.py
joez/letspy
9f653bc0071821fdb49da8c19787dc7e12921457
[ "Apache-2.0" ]
null
null
null
lang/module/listdir.py
joez/letspy
9f653bc0071821fdb49da8c19787dc7e12921457
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import sys from pathlib import Path def listdir(dir): print('listdir:') print([e for e in os.listdir(dir) if os.path.isdir(os.path.join(dir, e))]) def scandir(dir): print('scandir:') with os.scandir(dir) as entries: print([e.name for e in entries if e.is_dir()...
23.28125
78
0.598658
603cd262a065fd3aa24121500bde3bca8214939a
20,052
py
Python
angr/engines/unicorn.py
aflorea-2k/angr
39306e5fbd629cd80880b7aa59b1c6b832423996
[ "BSD-2-Clause" ]
null
null
null
angr/engines/unicorn.py
aflorea-2k/angr
39306e5fbd629cd80880b7aa59b1c6b832423996
[ "BSD-2-Clause" ]
null
null
null
angr/engines/unicorn.py
aflorea-2k/angr
39306e5fbd629cd80880b7aa59b1c6b832423996
[ "BSD-2-Clause" ]
null
null
null
import copy import functools import logging import archinfo from ..errors import SimIRSBError, SimIRSBNoDecodeError, SimValueError from .engine import SuccessorsMixin from .vex.heavy.heavy import VEXEarlyExit from .. import sim_options as o from ..misc.ux import once from ..state_plugins.inspect import BP_AFTER, BP_B...
51.415385
120
0.629114
fcf879649d77b65042644bfa5b16e91cd3d0ba71
6,964
py
Python
app/generated/MainWindow_ui.py
namuan/orkestra
83b67f7e816c94b75232691c14d91fd9d62213ed
[ "MIT" ]
null
null
null
app/generated/MainWindow_ui.py
namuan/orkestra
83b67f7e816c94b75232691c14d91fd9d62213ed
[ "MIT" ]
11
2020-06-07T12:29:21.000Z
2020-06-24T19:44:36.000Z
app/generated/MainWindow_ui.py
namuan/orkestra
83b67f7e816c94b75232691c14d91fd9d62213ed
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'resources/views/MainWindow.ui' # # Created by: PyQt5 UI code generator 5.12.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): ...
57.553719
116
0.753446
4373664edf6e988e40300d4a904a6cbd589d9c18
121
py
Python
python/two-fer/two_fer.py
Coffeyliu/exercism
02354be676b17e94d820df92d5436373ca656bf8
[ "MIT" ]
null
null
null
python/two-fer/two_fer.py
Coffeyliu/exercism
02354be676b17e94d820df92d5436373ca656bf8
[ "MIT" ]
null
null
null
python/two-fer/two_fer.py
Coffeyliu/exercism
02354be676b17e94d820df92d5436373ca656bf8
[ "MIT" ]
null
null
null
# TODO: these guys are too easy for you, lady def two_fer(name='you'): return "One for {}, one for me.".format(name)
30.25
49
0.661157
8c460295b6767af0d0994595afb6d4f4334c804a
3,089
py
Python
code/tmp_rtrip/test/test_importlib/import_/test_caching.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
24
2018-01-23T05:28:40.000Z
2021-04-13T20:52:59.000Z
code/tmp_rtrip/test/test_importlib/import_/test_caching.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
17
2017-12-21T18:32:31.000Z
2018-12-18T17:09:50.000Z
code/tmp_rtrip/test/test_importlib/import_/test_caching.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
null
null
null
"""Test that sys.modules is used properly by import.""" from .. import util import sys from types import MethodType import unittest class UseCache: """When it comes to sys.modules, import prefers it over anything else. Once a name has been resolved, sys.modules is checked to see if it contains the module...
38.135802
79
0.653286
44df6881fea9224323e476c2ccde4a5309293219
12,544
py
Python
Lectures/UAV_control/beard/mav_dynamics.py
donnel2-cooper/drone_control
3bb3a1c1f768916ac41d4b78692e2edab0776c07
[ "MIT" ]
null
null
null
Lectures/UAV_control/beard/mav_dynamics.py
donnel2-cooper/drone_control
3bb3a1c1f768916ac41d4b78692e2edab0776c07
[ "MIT" ]
null
null
null
Lectures/UAV_control/beard/mav_dynamics.py
donnel2-cooper/drone_control
3bb3a1c1f768916ac41d4b78692e2edab0776c07
[ "MIT" ]
null
null
null
""" mavDynamics - this file implements the dynamic equations of motion for MAV - use unit quaternion for the attitude state part of mavPySim - Beard & McLain, PUP, 2012 - Update history: 12/20/2018 - RWB 2/24/2020 """ import sys sys.path.append('..') import numpy as np # load m...
41.674419
197
0.563297
aac0dda81316cd7867c4fe210be86cde0af2d2b6
2,289
py
Python
model_zoo/official/cv/ssd/postprocess.py
chncwang/mindspore
6dac92aedf0aa1541d181e6aedab29aaadc2dafb
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
model_zoo/official/cv/ssd/postprocess.py
chncwang/mindspore
6dac92aedf0aa1541d181e6aedab29aaadc2dafb
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
model_zoo/official/cv/ssd/postprocess.py
chncwang/mindspore
6dac92aedf0aa1541d181e6aedab29aaadc2dafb
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # less required by applicable law or agreed to i...
36.919355
97
0.686326
d21688bd8e1a5adb646068e56c4c707a9110b63a
5,791
py
Python
wagtail_localize/views/update_translations.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
6
2019-09-10T19:53:55.000Z
2019-11-14T16:57:07.000Z
wagtail_localize/views/update_translations.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
17
2019-07-11T11:17:37.000Z
2019-11-19T16:40:31.000Z
wagtail_localize/views/update_translations.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
2
2019-09-30T20:23:39.000Z
2019-10-31T14:09:31.000Z
from django import forms from django.contrib import messages from django.contrib.admin.utils import quote from django.core.exceptions import PermissionDenied, ValidationError from django.db import transaction from django.shortcuts import get_object_or_404, redirect from django.urls import reverse from django.utils.tran...
35.746914
102
0.616474
433a8c830aedf5ad215aca66efc778dc74464bc9
9,514
py
Python
pychron/pipeline/tasks/plugin.py
UManPychron/pychron
b84c9fd70072f9cbda30abe2c471e64fe3dd75d8
[ "Apache-2.0" ]
null
null
null
pychron/pipeline/tasks/plugin.py
UManPychron/pychron
b84c9fd70072f9cbda30abe2c471e64fe3dd75d8
[ "Apache-2.0" ]
11
2015-10-08T14:21:39.000Z
2022-01-26T14:19:21.000Z
pychron/pipeline/tasks/plugin.py
UManPychron/pychron
b84c9fd70072f9cbda30abe2c471e64fe3dd75d8
[ "Apache-2.0" ]
null
null
null
# =============================================================================== # Copyright 2015 Jake Ross # # 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...
45.090047
120
0.585348
5a4562ce06c5286be97f8a90d425a3fd505105f0
8,800
py
Python
halotools/mock_observables/void_statistics/void_prob_func.py
pllim/halotools
6499cff09e7e0f169e4f425ee265403f6be816e8
[ "BSD-3-Clause" ]
83
2015-01-15T14:54:16.000Z
2021-12-09T11:28:02.000Z
halotools/mock_observables/void_statistics/void_prob_func.py
pllim/halotools
6499cff09e7e0f169e4f425ee265403f6be816e8
[ "BSD-3-Clause" ]
579
2015-01-14T15:57:37.000Z
2022-01-13T18:58:44.000Z
halotools/mock_observables/void_statistics/void_prob_func.py
pllim/halotools
6499cff09e7e0f169e4f425ee265403f6be816e8
[ "BSD-3-Clause" ]
70
2015-01-14T15:15:58.000Z
2021-12-22T18:18:31.000Z
""" Module containing the `~halotools.mock_observables.void_prob_func` and `~halotools.mock_observables.underdensity_prob_func` used to calculate void statistics. """ from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np from six.moves import xrange as range from astro...
41.121495
93
0.675227
4d4723e59efe39ce650bf90272a5fcf21e402b99
1,519
py
Python
tests/unit/schema/wrappers/test_operation.py
michaelbausor/gapic-generator-python
c3a00b67ca1ded066f9e6e660ae83bfeda7476fc
[ "Apache-2.0" ]
null
null
null
tests/unit/schema/wrappers/test_operation.py
michaelbausor/gapic-generator-python
c3a00b67ca1ded066f9e6e660ae83bfeda7476fc
[ "Apache-2.0" ]
null
null
null
tests/unit/schema/wrappers/test_operation.py
michaelbausor/gapic-generator-python
c3a00b67ca1ded066f9e6e660ae83bfeda7476fc
[ "Apache-2.0" ]
null
null
null
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
37.04878
74
0.748519
beee856e507e7616563ed34f9fd181acf58ff4b8
79,509
py
Python
Documentation/ReferenceManualScripts/python/BeautifulSoup.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Documentation/ReferenceManualScripts/python/BeautifulSoup.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Documentation/ReferenceManualScripts/python/BeautifulSoup.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
"""Beautiful Soup Elixir and Tonic "The Screen-Scraper's Friend" http://www.crummy.com/software/BeautifulSoup/ Beautiful Soup parses a (possibly invalid) XML or HTML document into a tree representation. It provides methods and Pythonic idioms that make it easy to navigate, search, and modify the tree. A well-formed X...
39.380386
186
0.57918
16b2a205711ead9b376a99062a6081a197a431e6
4,717
py
Python
packages/journal/Memo.py
rtburns-jpl/pyre
ffc4fc1b2936e355f709d084eb4055954960b3a2
[ "BSD-3-Clause" ]
null
null
null
packages/journal/Memo.py
rtburns-jpl/pyre
ffc4fc1b2936e355f709d084eb4055954960b3a2
[ "BSD-3-Clause" ]
1
2021-06-10T23:42:13.000Z
2021-06-10T23:42:13.000Z
packages/journal/Memo.py
jlmaurer/pyre
6af38a83621d7d6228d147b4bb94f97fbb10f6e2
[ "BSD-3-Clause" ]
2
2020-08-31T18:07:52.000Z
2021-12-10T08:54:39.000Z
# -*- coding: utf-8 -*- # # michael a.g. aïvázis <michael.aivazis@para-sim.com> # (c) 1998-2020 all rights reserved # superclass from .Renderer import Renderer # the renderer or developer-facing essages class Memo(Renderer): """ The renderer of user-facing messages """ # implementation details ...
28.762195
93
0.49841
f632b50a908edce0c7a5d95df453152442c63da2
1,793
py
Python
aiospotify/objects/playback.py
proguy914629bot/aiospotify
4ea468b0c0cd7aba5a612cd42f591a635d3a2e64
[ "MIT" ]
null
null
null
aiospotify/objects/playback.py
proguy914629bot/aiospotify
4ea468b0c0cd7aba5a612cd42f591a635d3a2e64
[ "MIT" ]
null
null
null
aiospotify/objects/playback.py
proguy914629bot/aiospotify
4ea468b0c0cd7aba5a612cd42f591a635d3a2e64
[ "MIT" ]
null
null
null
# Future from __future__ import annotations # My stuff from aiospotify import objects from aiospotify.typings.objects import ContextData, CurrentlyPlayingContextData, CurrentlyPlayingData __all__ = ( "Context", "CurrentlyPlaying", "CurrentlyPlayingContext" ) class Context: def __init__(self, data:...
29.393443
101
0.667596
38b8e1372315acdb6594ed29a5f497499cddf309
2,690
py
Python
cogs/help.py
DorianAarno/PointsBot
e0bae20bc9caf0c274cb8fe57e7429ebc879eac8
[ "Apache-2.0" ]
3
2022-03-02T09:56:26.000Z
2022-03-02T09:59:59.000Z
cogs/help.py
DorianAarno/PointsBot
e0bae20bc9caf0c274cb8fe57e7429ebc879eac8
[ "Apache-2.0" ]
null
null
null
cogs/help.py
DorianAarno/PointsBot
e0bae20bc9caf0c274cb8fe57e7429ebc879eac8
[ "Apache-2.0" ]
null
null
null
from disnake import * from disnake.ext import commands from assets import functions as func import traceback from cogs.points_commands import PointsCommands class Help(commands.Cog): def __init__(self,bot): self.bot = bot @commands.group(invoke_without_command=True, case_insensitive=True) async de...
48.909091
213
0.660595
7e39a9b890684d68d86a31b640bf61be8a6fa9e4
3,054
py
Python
genrel/Bianchi.py
KaiSmith/Pynstein
9dc1959c80f8da41f14a5f2a15143468fb67fb92
[ "MIT" ]
12
2015-11-26T09:38:14.000Z
2021-09-09T20:24:51.000Z
genrel/Bianchi.py
uxvrob/Pynstein
fa35808f590e7e972279722eb99085826eaf7ad1
[ "MIT" ]
null
null
null
genrel/Bianchi.py
uxvrob/Pynstein
fa35808f590e7e972279722eb99085826eaf7ad1
[ "MIT" ]
6
2018-04-10T18:45:32.000Z
2021-03-13T20:26:19.000Z
""" Numerically evolves a Bianchi Class I universe given initial conditions. David Clark, Kai Smith Case Western Reserve University 2014 """ from GR import * from math import * import numpy as np import sympy as sp import matplotlib.pyplot as pplot def dVdt(V, t): return sqrt(3*I0*(omega['m']*V0*V+omega['r']*V0**sp.R...
25.881356
141
0.629011
4a550ee558dffd1840288472d00e705a1567e4c0
3,135
py
Python
signbank/settings/production.py
ljsharp/GhSL_signbank
27dc2909b1861463241d723b45bfbe809c404f82
[ "BSD-3-Clause" ]
null
null
null
signbank/settings/production.py
ljsharp/GhSL_signbank
27dc2909b1861463241d723b45bfbe809c404f82
[ "BSD-3-Clause" ]
null
null
null
signbank/settings/production.py
ljsharp/GhSL_signbank
27dc2909b1861463241d723b45bfbe809c404f82
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Production environment specific settings for FinSL-signbank.""" from __future__ import unicode_literals from signbank.settings.base import * # settings.base imports settings_secret # The following settings are defined in settings_secret: # SECRET_KEY, ADMINS, DATABASES, EMAIL_HOST, EMAIL_POR...
35.625
117
0.70622
2c3ae0bdc35908d8c962e64c35669cdb15a8b225
4,190
py
Python
rplugin/python3/lucid/__init__.py
TomasTomecek/lucid
b6bfd29600830583e795cd8e834815852aae5cb2
[ "MIT" ]
null
null
null
rplugin/python3/lucid/__init__.py
TomasTomecek/lucid
b6bfd29600830583e795cd8e834815852aae5cb2
[ "MIT" ]
11
2018-03-24T07:45:07.000Z
2019-02-07T11:41:11.000Z
rplugin/python3/lucid/__init__.py
TomasTomecek/lucid
b6bfd29600830583e795cd8e834815852aae5cb2
[ "MIT" ]
null
null
null
import logging import os from lucid.app import App import neovim from lucid.conf import Configuration log = logging.getLogger("lucid") def set_logging( logger_name="lucid", level=logging.DEBUG, format='%(asctime)s.%(msecs).03d %(filename)-17s %(levelname)-6s %(message)s', date_for...
29.300699
89
0.616468
6b546832580296ddecac67e71e4a8f36517b50ed
2,622
py
Python
jacket/api/storage/contrib/availability_zones.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
null
null
null
jacket/api/storage/contrib/availability_zones.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
null
null
null
jacket/api/storage/contrib/availability_zones.py
bopopescu/jacket
d7ad3147fcb43131098c2a5210847634ff5fb325
[ "Apache-2.0" ]
2
2016-08-10T02:21:49.000Z
2020-07-24T01:57:21.000Z
# Copyright (c) 2013 OpenStack Foundation # 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 ...
36.929577
81
0.687262
0a654d7993ec50d330125f77bde17ead95291919
888
py
Python
test/test_users_pin_redeem_result.py
stanionascu/python-embyapi
a3f7aa49aea4052277cc43605c0d89bc6ff21913
[ "BSD-3-Clause" ]
null
null
null
test/test_users_pin_redeem_result.py
stanionascu/python-embyapi
a3f7aa49aea4052277cc43605c0d89bc6ff21913
[ "BSD-3-Clause" ]
null
null
null
test/test_users_pin_redeem_result.py
stanionascu/python-embyapi
a3f7aa49aea4052277cc43605c0d89bc6ff21913
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ Emby Server API Explore the Emby Server API # noqa: E501 OpenAPI spec version: 4.1.1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import embyapi from embyapi.models.users_pin_redeem_result im...
22.2
93
0.707207
3b4b47001f1217caf0f5cc8607f9821459d08664
11,643
py
Python
examples/mnist_pruning.py
pierricklee/dm-haiku
b0d07402ecc9ab76644d459d716c6f6890c062c0
[ "Apache-2.0" ]
1
2021-01-07T07:13:13.000Z
2021-01-07T07:13:13.000Z
examples/mnist_pruning.py
pierricklee/dm-haiku
b0d07402ecc9ab76644d459d716c6f6890c062c0
[ "Apache-2.0" ]
null
null
null
examples/mnist_pruning.py
pierricklee/dm-haiku
b0d07402ecc9ab76644d459d716c6f6890c062c0
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 DeepMind Technologies Limited. 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 ...
37.558065
80
0.705145