hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
794f799e5b9c778bf1f402253c3193dc8a3ff8e3
8,002
py
Python
baselines/common/cmd_util.py
aprendizaje-de-maquinas/baselines
cb162681fe7cb5851a743031c60416c6d320d260
[ "MIT" ]
null
null
null
baselines/common/cmd_util.py
aprendizaje-de-maquinas/baselines
cb162681fe7cb5851a743031c60416c6d320d260
[ "MIT" ]
null
null
null
baselines/common/cmd_util.py
aprendizaje-de-maquinas/baselines
cb162681fe7cb5851a743031c60416c6d320d260
[ "MIT" ]
null
null
null
""" Helpers for scripts like run_atari.py. """ import os try: from mpi4py import MPI except ImportError: MPI = None import gym #from gym.wrappers import FlattenDictWrapper from baselines import logger from baselines.bench import Monitor from baselines.common import set_global_seeds from baselines.common.atari...
38.471154
204
0.670582
794f79bb02206b025c4139d6ad3363dfb8e85a97
3,303
py
Python
examples/src/main/python/mllib/sampled_rdds.py
hochoy18/spark-2.2
421979234f03e698d61b2d14010deb0c6d34d890
[ "0BSD", "BSD-3-Clause-Open-MPI", "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
9
2018-08-08T05:40:20.000Z
2020-07-25T12:21:41.000Z
examples/src/main/python/mllib/sampled_rdds.py
rongyousu/spark-2.2
421979234f03e698d61b2d14010deb0c6d34d890
[ "0BSD", "BSD-3-Clause-Open-MPI", "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
2
2020-05-15T21:40:43.000Z
2021-01-21T00:17:29.000Z
examples/src/main/python/mllib/sampled_rdds.py
rongyousu/spark-2.2
421979234f03e698d61b2d14010deb0c6d34d890
[ "0BSD", "BSD-3-Clause-Open-MPI", "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "BSD-3-Clause-Clear", "PostgreSQL", "BSD-3-Clause" ]
14
2019-01-14T07:01:36.000Z
2021-01-06T01:45:08.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 n...
37.534091
95
0.667878
794f7a1034dc32878ab929d8d9b7c2cc0a1d61b2
6,639
py
Python
utils/s3_multipart_upload.py
kokyriakidis/cloudbiolinux
a318ecbade2b27e23c275601571b1b19c8842d7a
[ "MIT" ]
122
2015-01-04T13:23:27.000Z
2022-01-18T22:52:12.000Z
utils/s3_multipart_upload.py
kokyriakidis/cloudbiolinux
a318ecbade2b27e23c275601571b1b19c8842d7a
[ "MIT" ]
170
2015-02-09T18:03:49.000Z
2021-11-14T02:32:09.000Z
utils/s3_multipart_upload.py
kokyriakidis/cloudbiolinux
a318ecbade2b27e23c275601571b1b19c8842d7a
[ "MIT" ]
107
2015-01-06T06:10:04.000Z
2022-02-10T17:25:34.000Z
#!/usr/bin/env python """Split large file into multiple pieces for upload to S3. S3 only supports 5Gb files for uploading directly, so for larger CloudBioLinux box images we need to use boto's multipart file support. This parallelizes the task over available cores using multiprocessing. It checks for an up to date v...
37.721591
92
0.675403
794f7a5b51ab54fa014e703c3b09dd556d4c8e98
666
py
Python
01.Fundamentals/_01_Introduction-to-Programming/_15_Age.py
VProfirov/Telerik-Academy-Course_Python-version_Homeworks-and-Exams
d8dadce0a3084d466d522292038ef1ff3b876891
[ "MIT" ]
null
null
null
01.Fundamentals/_01_Introduction-to-Programming/_15_Age.py
VProfirov/Telerik-Academy-Course_Python-version_Homeworks-and-Exams
d8dadce0a3084d466d522292038ef1ff3b876891
[ "MIT" ]
null
null
null
01.Fundamentals/_01_Introduction-to-Programming/_15_Age.py
VProfirov/Telerik-Academy-Course_Python-version_Homeworks-and-Exams
d8dadce0a3084d466d522292038ef1ff3b876891
[ "MIT" ]
null
null
null
from datetime import datetime def get_current_age(birthdate_str): current_date = datetime.now() birth_date = datetime.strptime(birthdate_str,'%d.%m.%Y') current_age = current_date.year - birth_date.year if (birth_date.date() > current_date.replace(year= current_date.year - current_age).date()): ...
27.75
96
0.720721
794f7aea676706767c9065cd6b84c3f63dc93949
21,730
py
Python
py/vr/latex.py
acorg/ssm-report-n
eecb082c280a991116f15751bfd63da8c5680d1f
[ "MIT" ]
null
null
null
py/vr/latex.py
acorg/ssm-report-n
eecb082c280a991116f15751bfd63da8c5680d1f
[ "MIT" ]
null
null
null
py/vr/latex.py
acorg/ssm-report-n
eecb082c280a991116f15751bfd63da8c5680d1f
[ "MIT" ]
null
null
null
T_Head = r"""% !TEX encoding = UTF-8 Unicode % generated by %program% on %now% %documentclass% \pagestyle{empty} \usepackage[cm]{fullpage} \usepackage{verbatim} \usepackage[table]{xcolor} \usepackage{tikz} % draw filled circles in \ColorCodedByRegion \usepackage{graphicx} % multiple pdfs per pa...
37.081911
260
0.56093
794f7b3645f428521e2355d06352e4f49d1b9daf
3,335
py
Python
django_hello_world/django_hello_world/settings.py
sferhan/django_docker_walkthrough
5998860cc8b357647ba9b57fd653f975ff94c6b8
[ "MIT" ]
null
null
null
django_hello_world/django_hello_world/settings.py
sferhan/django_docker_walkthrough
5998860cc8b357647ba9b57fd653f975ff94c6b8
[ "MIT" ]
null
null
null
django_hello_world/django_hello_world/settings.py
sferhan/django_docker_walkthrough
5998860cc8b357647ba9b57fd653f975ff94c6b8
[ "MIT" ]
null
null
null
""" Django settings for django_hello_world project. Generated by 'django-admin startproject' using Django 4.0.3. For more information on this file, see https://docs.djangoproject.com/en/4.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/4.0/ref/settings/ """ f...
26.468254
91
0.716042
794f7bccab9bc428b07c8f159f3ed7a575af8385
95,156
py
Python
hata/discord/guild/guild.py
catzoo/hata
49a55f4e02f4f8b5f3adcebc51952b612b4acb73
[ "0BSD" ]
null
null
null
hata/discord/guild/guild.py
catzoo/hata
49a55f4e02f4f8b5f3adcebc51952b612b4acb73
[ "0BSD" ]
null
null
null
hata/discord/guild/guild.py
catzoo/hata
49a55f4e02f4f8b5f3adcebc51952b612b4acb73
[ "0BSD" ]
null
null
null
__all__ = ('COMMUNITY_FEATURES', 'EMOJI_UPDATE_DELETE', 'EMOJI_UPDATE_EDIT', 'EMOJI_UPDATE_CREATE', 'EMOJI_UPDATE_NONE', 'Guild', 'LARGE_GUILD_LIMIT', 'STICKER_UPDATE_DELETE', 'STICKER_UPDATE_EDIT', 'STICKER_UPDATE_CREATE', 'STICKER_UPDATE_NONE', 'VOICE_STATE_JOIN', 'VOICE_STATE_LEAVE', 'VOICE_STATE_NONE', ...
34.539383
120
0.502753
794f7bfdbafe04dc67cc05deaab3f5bcd2268370
8,658
py
Python
web_frontend/cloudscheduler/glintwebui/glint_utils.py
hep-gc/cloud-scheduler-2
180d9dc4f8751cf8c8254518e46f83f118187e84
[ "Apache-2.0" ]
null
null
null
web_frontend/cloudscheduler/glintwebui/glint_utils.py
hep-gc/cloud-scheduler-2
180d9dc4f8751cf8c8254518e46f83f118187e84
[ "Apache-2.0" ]
null
null
null
web_frontend/cloudscheduler/glintwebui/glint_utils.py
hep-gc/cloud-scheduler-2
180d9dc4f8751cf8c8254518e46f83f118187e84
[ "Apache-2.0" ]
null
null
null
# glint utils import logging import os import string import random #import hashlib from cloudscheduler.lib.openstack_functions import get_openstack_sess, get_glance_connection from cloudscheduler.lib.db_config import Config config = Config('/etc/cloudscheduler/cloudscheduler.yaml', ['general', 'openstackPoller.py', ...
40.083333
147
0.63964
794f7c3e95ce50b47b5a7a8aa9fefd5a26bb85eb
5,036
bzl
Python
build_extensions/remove_from_jar.bzl
dayanruben/android-test
2ed50d534cb7e48433dcfa5f5e9e793e99506d84
[ "Apache-2.0" ]
836
2018-05-20T23:00:12.000Z
2022-03-29T09:53:59.000Z
build_extensions/remove_from_jar.bzl
dayanruben/android-test
2ed50d534cb7e48433dcfa5f5e9e793e99506d84
[ "Apache-2.0" ]
602
2018-06-29T04:44:44.000Z
2022-03-30T19:13:09.000Z
build_extensions/remove_from_jar.bzl
dayanruben/android-test
2ed50d534cb7e48433dcfa5f5e9e793e99506d84
[ "Apache-2.0" ]
233
2018-05-21T19:51:09.000Z
2022-03-23T17:01:25.000Z
"""Removes files / directories from jar (or any zip) file. If overlapping_jars is present, then it also removes entries in the primary jar that exists in any of the overlapping_jars. """ def remove_from_jar( name, jar, keep_spec, remove_spec = None, overlapping_jars = [], ...
34.493151
86
0.555004
794f7d25dfe905f29b35c8287b7b0dae5ef56d3e
544
py
Python
api/migrations/0002_auto_20190403_0216.py
hyusuf4/FriendZone2
342a2f86295341ea98bbb9dd596ef823eb509962
[ "Apache-2.0" ]
null
null
null
api/migrations/0002_auto_20190403_0216.py
hyusuf4/FriendZone2
342a2f86295341ea98bbb9dd596ef823eb509962
[ "Apache-2.0" ]
null
null
null
api/migrations/0002_auto_20190403_0216.py
hyusuf4/FriendZone2
342a2f86295341ea98bbb9dd596ef823eb509962
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.7 on 2019-04-03 02:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.AddField( model_name='node', name='password', field=m...
22.666667
62
0.566176
794f7e220094b18603981a90cf13293911a3487b
2,611
py
Python
tools/scons/scons-local-1.2.0/SCons/Tool/aixf77.py
rohankumardubey/node
d49d53fd499f7cf68fdfcc7d0c9d401e4e4407fb
[ "MIT" ]
48
2015-01-09T20:39:35.000Z
2021-12-21T21:17:52.000Z
tools/scons/scons-local-1.2.0/SCons/Tool/aixf77.py
dalizard/node
776754c33f347ef4827cf2b9d3cea7c1d46be7b5
[ "MIT" ]
2
2016-02-05T10:27:37.000Z
2019-01-22T16:22:51.000Z
tools/scons/scons-local-1.2.0/SCons/Tool/aixf77.py
dalizard/node
776754c33f347ef4827cf2b9d3cea7c1d46be7b5
[ "MIT" ]
8
2015-01-12T17:14:36.000Z
2018-09-15T14:10:27.000Z
"""engine.SCons.Tool.aixf77 Tool-specific initialization for IBM Visual Age f77 Fortran compiler. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 20...
34.813333
83
0.726159
794f7ea4ec39144347f9e6181798c0811815f60b
1,136
py
Python
djangocms_fbcomments/cms_plugins.py
mishbahr/djangocms-fbcomments
4e6bf2c636196fee85a489b510f13ae67ae05af6
[ "BSD-3-Clause" ]
20
2015-09-29T10:00:56.000Z
2018-06-15T03:28:36.000Z
djangocms_fbcomments/cms_plugins.py
mishbahr/djangocms-fbcomments
4e6bf2c636196fee85a489b510f13ae67ae05af6
[ "BSD-3-Clause" ]
1
2020-05-14T02:23:00.000Z
2020-05-27T14:45:59.000Z
djangocms_fbcomments/cms_plugins.py
mishbahr/djangocms-fbcomments
4e6bf2c636196fee85a489b510f13ae67ae05af6
[ "BSD-3-Clause" ]
2
2016-08-04T21:35:40.000Z
2020-05-14T02:19:06.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.utils.translation import get_language, to_locale from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from .conf import settings from .models import FacebookComments class FacebookCommentsPlugin(CMSPluginBase):...
33.411765
92
0.751761
794f7ee0708e915467808da24688b373bdb52eeb
2,664
py
Python
scripts/copy_couchdb_fields.py
amywieliczka/harvester
ed21e0167ac5e6e6002fa7c89aa78cc1e93e29d8
[ "BSD-3-Clause" ]
5
2015-01-14T20:48:28.000Z
2015-05-13T15:31:12.000Z
scripts/copy_couchdb_fields.py
amywieliczka/harvester
ed21e0167ac5e6e6002fa7c89aa78cc1e93e29d8
[ "BSD-3-Clause" ]
87
2015-01-09T00:17:44.000Z
2021-12-13T19:37:44.000Z
scripts/copy_couchdb_fields.py
amywieliczka/harvester
ed21e0167ac5e6e6002fa7c89aa78cc1e93e29d8
[ "BSD-3-Clause" ]
4
2015-02-26T23:27:44.000Z
2019-06-11T21:43:17.000Z
import sys import os from harvester.post_processing.couchdb_runner import CouchDBWorker from harvester.image_harvest import harvest_image_for_doc from harvester.couchdb_init import get_couchdb import couchdb #couchdb-python from dplaingestion.selector import getprop, setprop EMAIL_RETURN_ADDRESS = os.environ.get('EMA...
36
78
0.650526
794f7f998aa1a640dc5ed0268e53823f4b64dce7
292
py
Python
scripts/logging.py
sporkmonger/brunet
5e51cd74af03c6649b3f917d1c30251ab4e3bffe
[ "MIT" ]
1
2015-03-06T09:29:20.000Z
2015-03-06T09:29:20.000Z
scripts/logging.py
kingctan/brunet
d17c9d951a7b9d23fb22c1daef5b09a36fc5bc6e
[ "MIT" ]
null
null
null
scripts/logging.py
kingctan/brunet
d17c9d951a7b9d23fb22c1daef5b09a36fc5bc6e
[ "MIT" ]
1
2022-01-30T10:31:57.000Z
2022-01-30T10:31:57.000Z
#!/usr/bin/python import xmlrpclib, sys, socket ip = "127.0.0.1" port = "10000" socket.setdefaulttimeout(10) server = xmlrpclib.Server("http://" + ip + ":" + port + "/xm.rem") enable = sys.argv[1] option = sys.argv[2] print server.localproxy("LogManager." + enable, "BooleanSwitch", option)
26.545455
72
0.678082
794f7ff2bf2b729b8470c6185bc04f36e500b18e
17,231
py
Python
openstack_dashboard/usage/quotas.py
kogotko/carburetor
4afa3f51de877d955e6e1cc71c0bd7e07d606ad6
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/usage/quotas.py
kogotko/carburetor
4afa3f51de877d955e6e1cc71c0bd7e07d606ad6
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/usage/quotas.py
kogotko/carburetor
4afa3f51de877d955e6e1cc71c0bd7e07d606ad6
[ "Apache-2.0" ]
null
null
null
# 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 # distributed under t...
37.953744
79
0.631304
794f80507796638ae49761ca281f4f1b8e758a03
1,537
py
Python
clane/similarity.py
helloybz/CLANE
60e6f0503642ac63d3bcde136885e47954067c17
[ "MIT" ]
1
2021-12-14T10:52:55.000Z
2021-12-14T10:52:55.000Z
clane/similarity.py
helloybz/CLANE
60e6f0503642ac63d3bcde136885e47954067c17
[ "MIT" ]
14
2021-10-13T08:52:16.000Z
2021-12-15T04:19:53.000Z
clane/similarity.py
helloybz/CLANE
60e6f0503642ac63d3bcde136885e47954067c17
[ "MIT" ]
null
null
null
import torch import torch.nn as nn class CosineSimilarity: """ Cosine similarity between the two vector. Given two vector v1 and v2, the cosine similarity between the two vector is the cosine of theta, where the theta is the angle between the two vector on therir inner product space. The cosine ...
29
110
0.60052
794f81527deaf78650cbef16e6f600fb42c7be49
4,552
py
Python
bonus_lesson_examples/collateral/os_upgrade/upgrade_device_alt.py
ktbyers/python_course
db288d2978b3d244a0d7d51a79dfbb5afc5dcbe8
[ "Apache-2.0" ]
24
2018-03-16T19:24:16.000Z
2022-01-05T09:18:07.000Z
bonus_lesson_examples/collateral/os_upgrade/upgrade_device_alt.py
ktbyers/python_course
db288d2978b3d244a0d7d51a79dfbb5afc5dcbe8
[ "Apache-2.0" ]
null
null
null
bonus_lesson_examples/collateral/os_upgrade/upgrade_device_alt.py
ktbyers/python_course
db288d2978b3d244a0d7d51a79dfbb5afc5dcbe8
[ "Apache-2.0" ]
29
2018-03-16T15:49:36.000Z
2022-03-16T14:44:32.000Z
#!/usr/bin/env python """ Alternate solution to the OS Upgrade Example. This was the one I created during my initial planning and experimentation. """ from __future__ import print_function, unicode_literals from getpass import getpass from datetime import datetime import re import sys from netmiko import ConnectHandle...
28.993631
93
0.63203
794f8305b528bab8091f2662332b930f23717e45
885
py
Python
ws2122-lspm/Lib/site-packages/pm4py/statistics/concurrent_activities/__init__.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
ws2122-lspm/Lib/site-packages/pm4py/statistics/concurrent_activities/__init__.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
ws2122-lspm/Lib/site-packages/pm4py/statistics/concurrent_activities/__init__.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
40.227273
76
0.749153
794f83f2b608614994804228a4c5cf4a46aed2db
4,802
py
Python
datasets/EPNDataset.py
CuiRuikai/mfm-net
8fc67543fe6ec63cd93102c5ca78bd19d1926fdd
[ "MIT" ]
null
null
null
datasets/EPNDataset.py
CuiRuikai/mfm-net
8fc67543fe6ec63cd93102c5ca78bd19d1926fdd
[ "MIT" ]
null
null
null
datasets/EPNDataset.py
CuiRuikai/mfm-net
8fc67543fe6ec63cd93102c5ca78bd19d1926fdd
[ "MIT" ]
null
null
null
from unicodedata import category import torch.utils.data as data import numpy as np import os, sys BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) import data_transforms from .io import IO import random import os import json from .build import DATASETS from utils.logger import * # Refe...
36.378788
137
0.586839
794f84017791695a80027f215c016113d16c5c39
382
py
Python
dice_game/api/migrations/0003_alter_game_game_end.py
mriduldhall/Dice-Game-NEA
c3ff301a1fb7d3fb8b60d6a3b3417e068e6fda83
[ "MIT" ]
null
null
null
dice_game/api/migrations/0003_alter_game_game_end.py
mriduldhall/Dice-Game-NEA
c3ff301a1fb7d3fb8b60d6a3b3417e068e6fda83
[ "MIT" ]
null
null
null
dice_game/api/migrations/0003_alter_game_game_end.py
mriduldhall/Dice-Game-NEA
c3ff301a1fb7d3fb8b60d6a3b3417e068e6fda83
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-10-04 20:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0002_game'), ] operations = [ migrations.AlterField( model_name='game', name='game_end', field=mo...
20.105263
64
0.586387
794f84e2a43a3945726a8aa8ea1dd0be2d664219
4,516
py
Python
repos.py
asha-bc/BrightcovePY
52e220e8e95221745b4de52ba94689509d27c072
[ "MIT" ]
3
2020-12-14T23:08:09.000Z
2021-08-05T05:44:19.000Z
repos.py
asha-bc/BrightcovePY
52e220e8e95221745b4de52ba94689509d27c072
[ "MIT" ]
null
null
null
repos.py
asha-bc/BrightcovePY
52e220e8e95221745b4de52ba94689509d27c072
[ "MIT" ]
2
2021-10-19T15:24:28.000Z
2022-03-08T08:17:30.000Z
#!/usr/bin/env python3 import sys import argparse from brightcove.DeliverySystem import DeliverySystem from brightcove.OAuth import OAuth from brightcove.utils import load_account_info # init the argument parsing parser = argparse.ArgumentParser(prog=sys.argv[0]) parser.add_argument('--list', action='store_true', defa...
46.556701
147
0.686891
794f8519b65f0f8d2a3664d4a28fee193bc83e5a
1,105
py
Python
examples/08_raytracingtriangle_colorvertex.py
Oleg595/pyRT
6fc0ccbc6fb24dcc2a8532aa22eb9574f1afdb3a
[ "MIT" ]
74
2016-09-02T08:15:39.000Z
2021-08-09T08:16:23.000Z
examples/08_raytracingtriangle_colorvertex.py
Oleg595/pyRT
6fc0ccbc6fb24dcc2a8532aa22eb9574f1afdb3a
[ "MIT" ]
22
2016-09-02T08:15:14.000Z
2021-02-22T19:52:21.000Z
examples/08_raytracingtriangle_colorvertex.py
Oleg595/pyRT
6fc0ccbc6fb24dcc2a8532aa22eb9574f1afdb3a
[ "MIT" ]
27
2016-09-04T12:55:27.000Z
2022-03-19T11:21:24.000Z
# Example 8: Raytracing a single triangle - with vertex color # # A triangle is renderereda again - this time every vertex in the triangle has a different color from pyrt.math import * from pyrt.scene import * from pyrt.geometry import Triangle, Vertex from pyrt.camera import OrthographicCamera, PerspectiveCamera from...
27.625
96
0.707692
794f852f406fb1132ad0f677a9dbd073d3fe96b3
415
py
Python
backend/misty_thunder_31453/wsgi.py
crowdbotics-apps/misty-thunder-31453
69637f0acd518ce8004e0f8c8918c07ac66fa0d1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/misty_thunder_31453/wsgi.py
crowdbotics-apps/misty-thunder-31453
69637f0acd518ce8004e0f8c8918c07ac66fa0d1
[ "FTL", "AML", "RSA-MD" ]
8
2021-10-15T20:28:47.000Z
2021-10-15T20:28:53.000Z
backend/misty_thunder_31453/wsgi.py
crowdbotics-apps/misty-thunder-31453
69637f0acd518ce8004e0f8c8918c07ac66fa0d1
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" WSGI config for misty_thunder_31453 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('...
24.411765
79
0.79759
794f8561c4bd5b1236d10b83d39975bdf0a5ad52
4,146
py
Python
bioparser/bodymap2.py
dhimmel/serg-pycode
075de0ba470e4fbda5e33dfc23cb9ecd86ec53b7
[ "BSD-2-Clause-Patent" ]
null
null
null
bioparser/bodymap2.py
dhimmel/serg-pycode
075de0ba470e4fbda5e33dfc23cb9ecd86ec53b7
[ "BSD-2-Clause-Patent" ]
null
null
null
bioparser/bodymap2.py
dhimmel/serg-pycode
075de0ba470e4fbda5e33dfc23cb9ecd86ec53b7
[ "BSD-2-Clause-Patent" ]
null
null
null
import os import csv import collections import data import mapping.manual_reader class BodyMap2(object): def __init__(self, directory=None): if not directory: directory = data.source_data_dir('bodymap2') self.directory = directory self.path = os.path.join(directory, 'E-MTA...
34.840336
84
0.56247
794f85625974e2db07abe64383a687d92fd865cb
85
py
Python
boxesinboxes/src/boxesinboxes/__main__.py
pmfrank/beeware-tutorials
96274b0a735bd468e946111baf441a527ff0b0d5
[ "BSD-2-Clause" ]
1
2021-06-04T05:51:39.000Z
2021-06-04T05:51:39.000Z
boxesinboxes/src/boxesinboxes/__main__.py
pmfrank/beeware-tutorials
96274b0a735bd468e946111baf441a527ff0b0d5
[ "BSD-2-Clause" ]
null
null
null
boxesinboxes/src/boxesinboxes/__main__.py
pmfrank/beeware-tutorials
96274b0a735bd468e946111baf441a527ff0b0d5
[ "BSD-2-Clause" ]
null
null
null
from boxesinboxes.app import main if __name__ == '__main__': main().main_loop()
17
33
0.705882
794f857c3f6eff25ad918f4f49abaec6d9758d3b
50,037
py
Python
data/bin/Lib/configparser.py
shakenetwork/collector
60864537f9b8046d1b42258756e36a54149dddf9
[ "Apache-2.0" ]
309
2015-05-08T18:22:55.000Z
2022-01-11T12:27:41.000Z
data/bin/Lib/configparser.py
shakenetwork/collector
60864537f9b8046d1b42258756e36a54149dddf9
[ "Apache-2.0" ]
30
2015-05-13T02:15:15.000Z
2019-12-28T14:01:19.000Z
data/bin/Lib/configparser.py
shakenetwork/collector
60864537f9b8046d1b42258756e36a54149dddf9
[ "Apache-2.0" ]
35
2015-06-11T05:35:55.000Z
2022-01-11T19:32:00.000Z
"""Configuration file parser. A configuration file consists of sections, lead by a "[section]" header, and followed by "name: value" entries, with continuations and such in the style of RFC 822. Intrinsic defaults can be specified by passing them into the ConfigParser constructor as a dictionary. class: ConfigParse...
39.337264
79
0.577333
794f87a29d79a2eb34d3e55433cc03c89e7c11a4
901
py
Python
hb_quant/huobi/service/market/sub_candlestick.py
wenli135/Binance-volatility-trading-bot
75a03ad61df0e95492128fb6f1f419d4dc256ab3
[ "MIT" ]
611
2019-07-10T08:17:50.000Z
2022-03-21T18:56:39.000Z
hb_quant/huobi/service/market/sub_candlestick.py
wenli135/Binance-volatility-trading-bot
75a03ad61df0e95492128fb6f1f419d4dc256ab3
[ "MIT" ]
105
2019-07-12T03:43:41.000Z
2022-03-30T10:33:06.000Z
hb_quant/huobi/service/market/sub_candlestick.py
wenli135/Binance-volatility-trading-bot
75a03ad61df0e95492128fb6f1f419d4dc256ab3
[ "MIT" ]
325
2019-07-12T02:46:54.000Z
2022-03-21T18:56:41.000Z
import time from huobi.utils import * from huobi.connection.subscribe_client import SubscribeClient from huobi.model.market import * class SubCandleStickService: def __init__(self, params): self.params = params def subscribe(self, callback, error_handler, **kwargs): symbol_list = self.par...
26.5
74
0.584906
794f87bedecad232fbf4083f635b29ec07adc499
23
py
Python
APIs/Oauth/venv/lib/python3.8/site-packages/sanic/__version__.py
clarencejlee/jdp
d3d31db0138ff06f2f5ec592d85317941af4f280
[ "MIT" ]
null
null
null
APIs/Oauth/venv/lib/python3.8/site-packages/sanic/__version__.py
clarencejlee/jdp
d3d31db0138ff06f2f5ec592d85317941af4f280
[ "MIT" ]
null
null
null
APIs/Oauth/venv/lib/python3.8/site-packages/sanic/__version__.py
clarencejlee/jdp
d3d31db0138ff06f2f5ec592d85317941af4f280
[ "MIT" ]
null
null
null
__version__ = "21.3.4"
11.5
22
0.652174
794f8832d5ed963c60f9a5b3b9ea04cd57781f32
52
py
Python
hseling-api-midrusnlp/main.py
hseling/hseling-repo-midrusnlp
f04a3b737df2586cf5d273cb296d77f140440c72
[ "MIT" ]
null
null
null
hseling-api-midrusnlp/main.py
hseling/hseling-repo-midrusnlp
f04a3b737df2586cf5d273cb296d77f140440c72
[ "MIT" ]
null
null
null
hseling-api-midrusnlp/main.py
hseling/hseling-repo-midrusnlp
f04a3b737df2586cf5d273cb296d77f140440c72
[ "MIT" ]
1
2021-03-31T07:40:07.000Z
2021-03-31T07:40:07.000Z
from hseling_api_midrusnlp.main import ( app, )
13
40
0.730769
794f890741723a0e262f258f7b8ba66eaab3970b
2,392
py
Python
spice_api/tokens.py
Utagai/spice
a2604ad01c12138067eeb2036258437e0f8e4b82
[ "MIT" ]
41
2016-08-01T04:57:24.000Z
2022-02-13T01:38:04.000Z
spice_api/tokens.py
Utagai/spice
a2604ad01c12138067eeb2036258437e0f8e4b82
[ "MIT" ]
32
2016-07-13T18:10:22.000Z
2018-06-05T22:58:48.000Z
spice_api/tokens.py
Utagai/spice
a2604ad01c12138067eeb2036258437e0f8e4b82
[ "MIT" ]
14
2016-08-25T23:09:03.000Z
2018-05-06T19:33:32.000Z
""" Oh, and a license thingy because otherwise it won't look cool and professional. MIT License Copyright (c) [2016] [Mehrab Hoque] 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 restr...
32.324324
79
0.747492
794f89c184a62850fdd55221995845f24cf3a978
1,079
py
Python
main (16).py
lorenaEscobar0014/TECS2
92f5f6f820211b445c6388e058d97945b12b2591
[ "MIT" ]
null
null
null
main (16).py
lorenaEscobar0014/TECS2
92f5f6f820211b445c6388e058d97945b12b2591
[ "MIT" ]
null
null
null
main (16).py
lorenaEscobar0014/TECS2
92f5f6f820211b445c6388e058d97945b12b2591
[ "MIT" ]
null
null
null
d=str(input("Digite el día de nacimiento: ")) m=str(input("Digite el mes de nacimiento: ")) if(m==12 and(d>=22 and d<=31) or (m==1 and (d<=20))): print("Capricornio") elif(m==1 and(d>=21 and d<=31) or (m==2 and (d<=19))): print("Acuario") elif(m==2 and(d>=20 and d<=29) or (m==3 and (d<=20))): print("Picsis") elif...
37.206897
56
0.557924
794f8b9e41d63be25db17fb233ab2bd6407bb80e
2,061
py
Python
restless/interfaces/aws.py
j-ventura/restless
25b37a54783234c26ec671a13016162e5a870ba6
[ "MIT" ]
null
null
null
restless/interfaces/aws.py
j-ventura/restless
25b37a54783234c26ec671a13016162e5a870ba6
[ "MIT" ]
null
null
null
restless/interfaces/aws.py
j-ventura/restless
25b37a54783234c26ec671a13016162e5a870ba6
[ "MIT" ]
null
null
null
from restless.util import camel_to_snake, snake_to_camel, UniversalEncoder from restless.interfaces import BaseRequest import json from urllib.parse import unquote_plus from base64 import b64decode, b64encode from typing import Iterable class Request(BaseRequest): @property def authorizer(self) -> dict: ...
34.932203
106
0.589034
794f8be8a7920197768cc08897059ca509f8735d
5,312
py
Python
tests/test_intent_classification.py
BatsResearch/zsl-kg
9bc4d4537a0f90ee3bbcefdf90ceae6dbcf48572
[ "Apache-2.0" ]
83
2021-08-30T02:50:37.000Z
2022-02-22T09:37:36.000Z
tests/test_intent_classification.py
BatsResearch/zsl-kg
9bc4d4537a0f90ee3bbcefdf90ceae6dbcf48572
[ "Apache-2.0" ]
2
2021-09-10T08:44:13.000Z
2022-01-23T17:33:35.000Z
tests/test_intent_classification.py
BatsResearch/zsl-kg
9bc4d4537a0f90ee3bbcefdf90ceae6dbcf48572
[ "Apache-2.0" ]
6
2021-09-10T07:09:41.000Z
2021-11-07T14:31:33.000Z
import os from typing import Text import torch import unittest import torch.nn as nn import torch.optim as optim from allennlp.models import Model from allennlp.data.vocabulary import Vocabulary from zsl_kg.class_encoders.auto_gnn import AutoGNN from zsl_kg.example_encoders.text_encoder import TextEncoder from zsl_kg...
31.247059
77
0.573419
794f8c21f5153f6802a28514f477a79a5d24fc14
11,145
py
Python
problem/serializers.py
binbon095/OnlineJudge
325035092f61bee4c11045e9f62151bd85c693bf
[ "MIT" ]
null
null
null
problem/serializers.py
binbon095/OnlineJudge
325035092f61bee4c11045e9f62151bd85c693bf
[ "MIT" ]
null
null
null
problem/serializers.py
binbon095/OnlineJudge
325035092f61bee4c11045e9f62151bd85c693bf
[ "MIT" ]
null
null
null
import re from django import forms from options.options import SysOptions from utils.api import UsernameSerializer, serializers from utils.constants import Difficulty from utils.serializers import LanguageNameMultiChoiceField, SPJLanguageNameChoiceField, LanguageNameChoiceField from .models import Problem, ProblemRu...
38.968531
111
0.745805
794f8ddb5e3715df12aeffaff5d3106cf75ba5ad
5,428
py
Python
docs/conf.py
codingbandit/Adafruit_CircuitPython_AzureIoT
d7c91400b23a3a99528ff03ea7734c58f3bce7d1
[ "MIT" ]
null
null
null
docs/conf.py
codingbandit/Adafruit_CircuitPython_AzureIoT
d7c91400b23a3a99528ff03ea7734c58f3bce7d1
[ "MIT" ]
null
null
null
docs/conf.py
codingbandit/Adafruit_CircuitPython_AzureIoT
d7c91400b23a3a99528ff03ea7734c58f3bce7d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys sys.path.insert(0, os.path.abspath("..")) # -- General configuration ------------------------------------------------ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. exten...
31.55814
110
0.680545
794f9185a02d2e07cef959d386552395b6a8518b
2,070
py
Python
lib/surface/privateca/reusable_configs/describe.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/surface/privateca/reusable_configs/describe.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/surface/privateca/reusable_configs/describe.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# Lint as: python3 # -*- coding: utf-8 -*- # # 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....
32.857143
74
0.729469
794f91fdd23d4b1b2abc35f2fc9eb18c9394b417
12,925
py
Python
adb/windows/platform-tools/systrace/catapult/telemetry/telemetry/timeline/memory_dump_event.py
llaske/sugarizer-deployment-tool-desktop
34df1a56b68b15b6771671f87ab66586d60c514a
[ "Apache-2.0" ]
1
2019-01-17T19:03:17.000Z
2019-01-17T19:03:17.000Z
adb/MACOS/platform-tools/systrace/catapult/telemetry/telemetry/timeline/memory_dump_event.py
llaske/sugarizer-deployment-tool-desktop
34df1a56b68b15b6771671f87ab66586d60c514a
[ "Apache-2.0" ]
2
2017-09-08T20:26:05.000Z
2017-09-08T20:29:07.000Z
adb/windows/platform-tools/systrace/catapult/telemetry/telemetry/timeline/memory_dump_event.py
llaske/sugarizer-deployment-tool-desktop
34df1a56b68b15b6771671f87ab66586d60c514a
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import posixpath import re from telemetry.timeline import event as timeline_event class MmapCategory(object): _DEFAULT_CATEGORY = None def __init__(s...
37.572674
79
0.668008
794f9395b015c4ee107658d92c359a71f0a25c7b
7,327
py
Python
kubernetes/client/models/v1beta1_custom_resource_definition_names.py
scele/kubernetes-client-python
9e982cbdb5f19dc1a3935a75bdd92288f3b807fb
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta1_custom_resource_definition_names.py
scele/kubernetes-client-python
9e982cbdb5f19dc1a3935a75bdd92288f3b807fb
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta1_custom_resource_definition_names.py
scele/kubernetes-client-python
9e982cbdb5f19dc1a3935a75bdd92288f3b807fb
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.8.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
30.40249
176
0.610345
794f9412d154dbe0614dd2afb514122b469781e4
683
py
Python
setup.py
smwa/single_elimination
3fef8d00492dd21dd34c62035718d01f888223fd
[ "MIT" ]
2
2021-08-11T15:41:00.000Z
2022-01-12T20:49:42.000Z
setup.py
smwa/single_elimination
3fef8d00492dd21dd34c62035718d01f888223fd
[ "MIT" ]
null
null
null
setup.py
smwa/single_elimination
3fef8d00492dd21dd34c62035718d01f888223fd
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="single_elimination", version="1.2.0", author="Michael Smith", author_email="michael.smith.ok@gmail.com", description="A single elimination tournament match handler.", long_description=...
29.695652
65
0.676428
794f945bf6ac79dcf6534fe5782952573e4de5da
72,632
py
Python
simpletransformers/question_answering/question_answering_utils.py
shaoormunir/simpletransformers
7a0889a57143d9cc25f0a82b7b979e0b2c6f3a45
[ "Apache-2.0" ]
null
null
null
simpletransformers/question_answering/question_answering_utils.py
shaoormunir/simpletransformers
7a0889a57143d9cc25f0a82b7b979e0b2c6f3a45
[ "Apache-2.0" ]
null
null
null
simpletransformers/question_answering/question_answering_utils.py
shaoormunir/simpletransformers
7a0889a57143d9cc25f0a82b7b979e0b2c6f3a45
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, division, print_function import collections import json import logging import math import os import re import string from io import open from multiprocessing import Pool, cpu_count from functools import partial from pprint import pprint from tqdm import tqdm, trange import tor...
38.861423
118
0.606317
794f948ab8ec7933fed9e42ac27a5b2ad90523b8
1,017
py
Python
stubs.min/Autodesk/Revit/DB/Electrical_parts/CircuitLoadCalculationMethod.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/Autodesk/Revit/DB/Electrical_parts/CircuitLoadCalculationMethod.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/Autodesk/Revit/DB/Electrical_parts/CircuitLoadCalculationMethod.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class CircuitLoadCalculationMethod(Enum,IComparable,IFormattable,IConvertible): """ Methods to calculate circuit loads enum CircuitLoadCalculationMethod,values: SumApparentLoad (1),SumTrueLoadAndReactiveLoad (0) """ def __eq__(self,*args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==>...
29.911765
215
0.689282
794f958093746918f8184e276f6105a63d2fc14c
201
py
Python
src/test/data_pipe_test/native_index_test.py
random-python/data_pipe
e64fbbdb04f9cd43f7f3e58688c4ac1e2c2bbb45
[ "Apache-2.0" ]
14
2020-02-08T06:27:09.000Z
2021-06-02T07:35:09.000Z
src/test/data_pipe_test/native_index_test.py
random-python/data_pipe
e64fbbdb04f9cd43f7f3e58688c4ac1e2c2bbb45
[ "Apache-2.0" ]
null
null
null
src/test/data_pipe_test/native_index_test.py
random-python/data_pipe
e64fbbdb04f9cd43f7f3e58688c4ac1e2c2bbb45
[ "Apache-2.0" ]
null
null
null
""" """ from data_pipe.runtime_library import * from data_pipe_test.verify_index import * def test_index_store(): index_store = NativeIndex() # @UndefinedVariable verify_index(index_store)
18.272727
53
0.751244
794f96243a84bea7f957118427107a75908a5cfd
812
py
Python
yatube/yatube/urls.py
Kors557/yatubeV2.1
6cd4f232e823c856b963b312b0ef648bb251e0f3
[ "MIT" ]
null
null
null
yatube/yatube/urls.py
Kors557/yatubeV2.1
6cd4f232e823c856b963b312b0ef648bb251e0f3
[ "MIT" ]
null
null
null
yatube/yatube/urls.py
Kors557/yatubeV2.1
6cd4f232e823c856b963b312b0ef648bb251e0f3
[ "MIT" ]
null
null
null
"""yatube URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
35.304348
77
0.703202
794f97fd1aed2fe1b63ef715d46a2735d45bf3d5
6,362
py
Python
docs/en_US/conf.py
acured/nni
03ff374189837d28d98c3e0a14ea248d9a231f82
[ "MIT" ]
2
2020-10-27T06:53:53.000Z
2021-02-22T22:11:15.000Z
docs/en_US/conf.py
acured/nni
03ff374189837d28d98c3e0a14ea248d9a231f82
[ "MIT" ]
null
null
null
docs/en_US/conf.py
acured/nni
03ff374189837d28d98c3e0a14ea248d9a231f82
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
31.034146
133
0.661584
794f987af5c2dbd386c9753c22bdaf12c824979f
2,068
py
Python
superset/db_engine_specs/db2.py
rodrigoguariento/incubator-superset
b2633a51d43faaca74751349b96fc32784d4b377
[ "Apache-2.0" ]
7
2017-11-01T06:00:12.000Z
2019-01-05T13:31:48.000Z
superset/db_engine_specs/db2.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
108
2019-06-10T05:48:22.000Z
2021-07-26T04:20:03.000Z
superset/db_engine_specs/db2.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
4
2018-12-13T06:20:34.000Z
2020-10-02T16:07:17.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 u...
39.769231
80
0.631528
794f9881c8dac4d483aa7479061872e92455a22b
100
py
Python
Curso_em_Video_py3/metros em centimetros e milimetros.py
Rodrigo98Matos/Projetos_py
6428e2c09d28fd8a717743f4434bc788e7d7d3cc
[ "MIT" ]
1
2021-05-11T12:39:43.000Z
2021-05-11T12:39:43.000Z
Curso_em_Video_py3/metros em centimetros e milimetros.py
Rodrigo98Matos/Projetos_py
6428e2c09d28fd8a717743f4434bc788e7d7d3cc
[ "MIT" ]
null
null
null
Curso_em_Video_py3/metros em centimetros e milimetros.py
Rodrigo98Matos/Projetos_py
6428e2c09d28fd8a717743f4434bc788e7d7d3cc
[ "MIT" ]
null
null
null
m = float(input('inserir metros:')) print('centimetros: {} \nmilimetros: {}'.format(m*100, m*1000))
33.333333
63
0.66
794f988cfcc6662d00f358906dcf13aed98bcd73
470
py
Python
examples/acoustics/normalize_int_16.py
AssembleSoftware/IoTPy
d4b7b516ef95a45cff69827003d5e2d205f2ba55
[ "BSD-3-Clause" ]
28
2017-12-19T20:21:44.000Z
2022-02-04T09:44:03.000Z
examples/acoustics/normalize_int_16.py
AssembleSoftware/IoTPy
d4b7b516ef95a45cff69827003d5e2d205f2ba55
[ "BSD-3-Clause" ]
4
2020-05-30T20:21:58.000Z
2020-07-11T20:49:31.000Z
examples/acoustics/normalize_int_16.py
sdeepaknarayanan/IoTPy
ba022c3d6696527b834a865b9cf403d90665145b
[ "BSD-3-Clause" ]
11
2017-05-21T15:37:41.000Z
2021-10-16T13:45:11.000Z
def normalize_int_16(a, max_value): """ Parameters ---------- a: np.darray A 1-D array, i.e. vector max_value: int The expected maximum value of the array. Returns ------- result: np.ndarray A 1-D array The inpu...
23.5
53
0.474468
794f99ab352865b7dc10b9be500d5564e9e1d0d3
2,566
py
Python
Companion/Python/companion.py
magico13/ESP-cube
1a8dc4c223661fa6365a186241ab65ee6ebb05e7
[ "MIT" ]
null
null
null
Companion/Python/companion.py
magico13/ESP-cube
1a8dc4c223661fa6365a186241ab65ee6ebb05e7
[ "MIT" ]
null
null
null
Companion/Python/companion.py
magico13/ESP-cube
1a8dc4c223661fa6365a186241ab65ee6ebb05e7
[ "MIT" ]
null
null
null
# python module to make interfacing with the cube simpler import requests import json class Animation(object): def __init__(self): self.animation_type = "None" def to_json(self): return f'{{"animation":{self.animation_type}}}' class Blink(Animation): def __init__(self, count=1, wait=1...
27.010526
98
0.51403
794f99c1031f98cb217d22dce8fd3733eea2493c
3,959
py
Python
Datasets/Vectors/us_census_states.py
jdgomezmo/gee
7016c47ee902dbf60b1aeb6319424c61c1107345
[ "MIT" ]
1
2020-11-16T22:07:42.000Z
2020-11-16T22:07:42.000Z
Datasets/Vectors/us_census_states.py
jdgomezmo/gee
7016c47ee902dbf60b1aeb6319424c61c1107345
[ "MIT" ]
null
null
null
Datasets/Vectors/us_census_states.py
jdgomezmo/gee
7016c47ee902dbf60b1aeb6319424c61c1107345
[ "MIT" ]
null
null
null
# %% """ <table class="ee-notebook-buttons" align="left"> <td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/Datasets/Vectors/us_census_states.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td> <td><a ta...
50.113924
1,021
0.743117
794f9bc2d667d488acb5aa275b3d81f1842e6c93
10,430
py
Python
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_error_body.py
cjohnson-ctl/platform-client-sdk-python
38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100
[ "MIT" ]
10
2019-02-22T00:27:08.000Z
2021-09-12T23:23:44.000Z
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_error_body.py
cjohnson-ctl/platform-client-sdk-python
38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100
[ "MIT" ]
5
2018-06-07T08:32:00.000Z
2021-07-28T17:37:26.000Z
build/PureCloudPlatformClientV2/models/queue_conversation_callback_event_topic_error_body.py
cjohnson-ctl/platform-client-sdk-python
38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100
[ "MIT" ]
6
2020-04-09T17:43:07.000Z
2022-02-17T08:48:05.000Z
# coding: utf-8 """ Copyright 2016 SmartBear Software 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...
28.575342
113
0.625024
794f9ccfbe56769bdfe2c20e355f63355160bf81
1,150
py
Python
Python_Hard_Way_W2/ex14b.py
jhanse9522/toolkitten
98d6bf3792eae13b1ff14726c99b0afd2a20185d
[ "MIT" ]
null
null
null
Python_Hard_Way_W2/ex14b.py
jhanse9522/toolkitten
98d6bf3792eae13b1ff14726c99b0afd2a20185d
[ "MIT" ]
null
null
null
Python_Hard_Way_W2/ex14b.py
jhanse9522/toolkitten
98d6bf3792eae13b1ff14726c99b0afd2a20185d
[ "MIT" ]
null
null
null
from sys import argv script, user_name, fav_ice = argv prompt = '> ' print(f"Hi {user_name}, who likes {fav_ice} icecream. I'm the {script} script.") print("I'd like to ask you a few questions.") print(f"Do you like me {user_name} who likes {fav_ice} icecream?") likes = input(prompt) print(f"Where do you live {user_...
34.848485
155
0.716522
794f9df4f7435269f711e61c5303e94da3c1deae
79,214
py
Python
exportsrv/tests/unittests/stubdata/solrdata.py
golnazads/export_service
873f2e8d98eea036d2607b57cd51c3cd2ef73747
[ "MIT" ]
4
2019-01-13T00:42:35.000Z
2021-06-03T15:04:35.000Z
exportsrv/tests/unittests/stubdata/solrdata.py
golnazads/export_service
873f2e8d98eea036d2607b57cd51c3cd2ef73747
[ "MIT" ]
179
2015-05-26T21:00:26.000Z
2022-03-30T00:13:04.000Z
exportsrv/tests/unittests/stubdata/solrdata.py
golnazads/export_service
873f2e8d98eea036d2607b57cd51c3cd2ef73747
[ "MIT" ]
7
2016-04-18T14:25:44.000Z
2022-02-02T19:48:08.000Z
# -*- coding: utf-8 -*- # We have 22 different doctype in Solr, these are bibcode used to extract the data below # bibcodes = ['2017yCat.113380453S', '2018SAAS...38.....D', '1995ans..agar..390M', '1983aiaa.meetY....K', '2007RJPh....1...35.', '2007AAS...210.2104M', # '2009bcet.book...65L', '2018PhRvL.120b99...
77.966535
5,282
0.606168
794f9ea28bc974d19108a23cf5eee15cc7f13f9f
3,692
py
Python
limitedToken.py
wonabru/chainnet
f8ec1e2b580af837cba3322ffe69b95156b1b9a1
[ "MIT" ]
5
2019-04-20T18:54:55.000Z
2019-08-23T09:17:20.000Z
limitedToken.py
wonabru/chainnet
f8ec1e2b580af837cba3322ffe69b95156b1b9a1
[ "MIT" ]
null
null
null
limitedToken.py
wonabru/chainnet
f8ec1e2b580af837cba3322ffe69b95156b1b9a1
[ "MIT" ]
null
null
null
from account import CAccount class CLimitedToken(CAccount): def __init__(self, DB, tokenName, totalSupply, creator, address): self.creator = 0 super().__init__(DB, tokenName, creator, address) self.totalSupply = totalSupply if creator is None: self.owner = CAccount(DB, '...
37.292929
120
0.644637
794f9ef1cc01d5a45b19ccc700aabdf94b69c72e
1,003
py
Python
commands/open_in_browser.py
deathaxe/FileManager
08becc98f9e71f1d76c096b84708c927eaee9eba
[ "MIT" ]
null
null
null
commands/open_in_browser.py
deathaxe/FileManager
08becc98f9e71f1d76c096b84708c927eaee9eba
[ "MIT" ]
null
null
null
commands/open_in_browser.py
deathaxe/FileManager
08becc98f9e71f1d76c096b84708c927eaee9eba
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- import os import sublime from .fmcommand import FmWindowCommand class FmOpenInBrowserCommand(FmWindowCommand): def run(self, paths=None, *args, **kwargs): folders = self.window.folders() view = self.window.active_view() url = view.settings().get("url") ...
30.393939
82
0.499501
794f9ef95b4dac9c46afc23a2495c5c7f20b631e
7,352
py
Python
pyslim/provenance.py
benjeffery/pyslim
580f17f950dcb904295884a5725a14563885c142
[ "MIT" ]
null
null
null
pyslim/provenance.py
benjeffery/pyslim
580f17f950dcb904295884a5725a14563885c142
[ "MIT" ]
null
null
null
pyslim/provenance.py
benjeffery/pyslim
580f17f950dcb904295884a5725a14563885c142
[ "MIT" ]
null
null
null
from __future__ import print_function import platform import warnings import attr import json import msprime import tskit from . import _version __version__ = _version.pyslim_version @attr.s class ProvenanceMetadata(object): model_type = attr.ib() slim_generation = attr.ib() file_version = attr.ib() ...
32.104803
92
0.556447
794f9f16649b73e6ccd0f6148072dc9c04c421c0
158
py
Python
dps-api/dps_api/blueprints/base.py
mrendi29/dental-patient-schedule
d5e2777d135d7379d1941cd911b71fe2be2fc759
[ "BSD-3-Clause" ]
null
null
null
dps-api/dps_api/blueprints/base.py
mrendi29/dental-patient-schedule
d5e2777d135d7379d1941cd911b71fe2be2fc759
[ "BSD-3-Clause" ]
null
null
null
dps-api/dps_api/blueprints/base.py
mrendi29/dental-patient-schedule
d5e2777d135d7379d1941cd911b71fe2be2fc759
[ "BSD-3-Clause" ]
null
null
null
from flask import Blueprint bp = Blueprint("base", __name__, url_prefix="/base") @bp.route("/") def helloWorld(): return "Hello, cross-origin-world!"
15.8
52
0.683544
794f9f67d3fded0935b5e1c527e46e5fad47c079
10,609
py
Python
google/ads/googleads/v5/services/services/ad_group_criterion_simulation_service/transports/grpc.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v5/services/services/ad_group_criterion_simulation_service/transports/grpc.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v5/services/services/ad_group_criterion_simulation_service/transports/grpc.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 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 o...
40.803846
120
0.629937
794f9f8d2af8a5005d2a0b746a7d3f1e89400c71
9,316
py
Python
doc/source/conf.py
pnavaro/ElasticFDA.jl
0ed8c3f483c3a62f4215a6b65894da34e77eefc1
[ "MIT" ]
7
2017-02-05T23:39:14.000Z
2021-06-03T06:41:47.000Z
doc/source/conf.py
pnavaro/ElasticFDA.jl
0ed8c3f483c3a62f4215a6b65894da34e77eefc1
[ "MIT" ]
3
2016-08-31T20:48:32.000Z
2021-12-15T02:18:36.000Z
doc/source/conf.py
pnavaro/ElasticFDA.jl
0ed8c3f483c3a62f4215a6b65894da34e77eefc1
[ "MIT" ]
6
2016-07-12T02:13:16.000Z
2020-09-22T17:42:16.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # ElasticFDA.jl documentation build configuration file, created by # sphinx-quickstart on Tue Oct 13 21:02:35 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in thi...
32.573427
79
0.716724
794fa11720caf34527dd61fbff5efb203f5765db
1,783
py
Python
utils.py
stratosGithub/COCO-GAN
44805d71166dbe39d57acc2ece8d1e659161b2a6
[ "MIT" ]
282
2019-04-01T11:14:10.000Z
2022-02-15T11:07:57.000Z
utils.py
CheapLife/dataset
727674a6ff20114cd432971f309a2d4115ef4b0d
[ "MIT" ]
15
2019-05-02T12:24:25.000Z
2021-09-06T09:37:03.000Z
utils.py
CheapLife/dataset
727674a6ff20114cd432971f309a2d4115ef4b0d
[ "MIT" ]
36
2019-04-26T05:12:58.000Z
2022-01-20T13:24:48.000Z
import os import tensorflow as tf import numpy as np from scipy.misc import imsave def aug_cylindrical_data_tensor(batch_images_t): width = batch_images_t.shape[2].value rotate_dist = tf.round(tf.random.uniform([], 0, 1) * width) rotate_dist = tf.cast(rotate_dist, tf.int32) batch_aug_results = tf.conc...
34.288462
87
0.610208
794fa1be31ca7f690cc9d73c33fe02c028432bcf
13,575
py
Python
groupdocs_editor_cloud/apis/edit_api.py
groupdocs-editor-cloud/groupdocs-editor-cloud-python
e766afc58f244245835178a81f1832b1780aa500
[ "MIT" ]
null
null
null
groupdocs_editor_cloud/apis/edit_api.py
groupdocs-editor-cloud/groupdocs-editor-cloud-python
e766afc58f244245835178a81f1832b1780aa500
[ "MIT" ]
null
null
null
groupdocs_editor_cloud/apis/edit_api.py
groupdocs-editor-cloud/groupdocs-editor-cloud-python
e766afc58f244245835178a81f1832b1780aa500
[ "MIT" ]
null
null
null
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose Pty Ltd" file="editor_api.py"> # Copyright (c) 2003-2021 Aspose Pty Ltd # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of ...
39.234104
111
0.628729
794fa20f2c316a6d48ddab0017cb13f4c654fad1
92
py
Python
casemgmt_example/__init__.py
saolsen/oso-casemgmt-django
05e7e1d54c0ca274341df3fa53c82b9735c377c6
[ "MIT" ]
3
2020-12-18T13:52:16.000Z
2021-02-17T17:05:28.000Z
casemgmt_example/__init__.py
saolsen/oso-casemgmt-django
05e7e1d54c0ca274341df3fa53c82b9735c377c6
[ "MIT" ]
1
2021-04-13T18:58:17.000Z
2021-04-13T18:58:17.000Z
casemgmt_example/__init__.py
saolsen/oso-casemgmt-django
05e7e1d54c0ca274341df3fa53c82b9735c377c6
[ "MIT" ]
2
2020-12-21T15:10:29.000Z
2021-02-17T19:22:05.000Z
# Register Oso extensions, etc from casemgmt_example import auth auth.register_extensions()
23
33
0.836957
794fa282ae38f525bb5d567414f2d75f6ae365dd
777
py
Python
main.py
UCY-LINC-LAB/fogify
80dee9e2079ef45c49a6cd6629a3bf0b31461afb
[ "Apache-2.0" ]
21
2020-11-09T07:47:07.000Z
2022-02-13T10:58:10.000Z
main.py
UCY-LINC-LAB/fogify
80dee9e2079ef45c49a6cd6629a3bf0b31461afb
[ "Apache-2.0" ]
7
2020-12-16T13:47:23.000Z
2021-06-14T12:21:43.000Z
main.py
UCY-LINC-LAB/fogify
80dee9e2079ef45c49a6cd6629a3bf0b31461afb
[ "Apache-2.0" ]
3
2020-11-18T07:27:53.000Z
2021-05-27T14:42:57.000Z
import argparse from agent.agent import Agent from controller.controller import Controller from flask_api import FlaskAPI def initialize(): app = FlaskAPI(__name__) parser = argparse.ArgumentParser() parser.add_argument('--agent', help='Run agent', default=False, action="store_true") parser.add_argume...
25.9
88
0.688546
794fa3bddbf811a69aaf93ed0fcebc589e188140
278
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/largest-unique-number.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/largest-unique-number.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/largest-unique-number.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(n) # Space: O(n) import collections class Solution(object): def largestUniqueNumber(self, A): """ :type A: List[int] :rtype: int """ A.append(-1) return max(k for k,v in collections.Counter(A).items() if v == 1)
18.533333
73
0.535971
794fa3fb1d80dbd8c925e73f24debd5b12550073
5,746
py
Python
oil_lang/builtin_funcs.py
adisbladis/oil
8ae78500da543dfa899404bdca830b90277d17ad
[ "Apache-2.0" ]
null
null
null
oil_lang/builtin_funcs.py
adisbladis/oil
8ae78500da543dfa899404bdca830b90277d17ad
[ "Apache-2.0" ]
null
null
null
oil_lang/builtin_funcs.py
adisbladis/oil
8ae78500da543dfa899404bdca830b90277d17ad
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 """ builtin_funcs.py """ from __future__ import print_function from _devbuild.gen.runtime_asdl import value, scope_e from _devbuild.gen.syntax_asdl import sh_lhs_expr from oil_lang import objects def SetGlobalFunc(mem, name, func): """Used by bin/oil.py to set split(), etc.""" assert call...
26.601852
84
0.643752
794fa6c64df7a848b230937d74c9404e2c10adab
664
py
Python
plan/utils.py
timgates42/plan
1e976dcfd7cbe4ae7f95a4ff48f7e40a369ca8ee
[ "BSD-3-Clause" ]
553
2015-01-04T08:41:44.000Z
2022-02-26T03:11:26.000Z
plan/utils.py
jcao1022/plan
1e976dcfd7cbe4ae7f95a4ff48f7e40a369ca8ee
[ "BSD-3-Clause" ]
5
2015-01-03T14:55:41.000Z
2020-05-14T03:02:38.000Z
plan/utils.py
jcao1022/plan
1e976dcfd7cbe4ae7f95a4ff48f7e40a369ca8ee
[ "BSD-3-Clause" ]
71
2015-01-17T19:52:23.000Z
2020-04-30T14:11:38.000Z
# -*- coding: utf-8 -*- """ plan.utils ~~~~~~~~~~ Various utilities for Plan. :copyright: (c) 2014 by Shipeng Feng. :license: BSD, see LICENSE for more details. """ from subprocess import Popen, PIPE def communicate_process(command, stdin=None, *args, **kwargs): """Run the command described...
26.56
77
0.659639
794fa8a982689c038439abc824687d894d16dc12
489
py
Python
app/schemas.py
rikkih/softwaerie
716e1e06d3131364beac61ed09ef9fe75502d6c9
[ "MIT" ]
null
null
null
app/schemas.py
rikkih/softwaerie
716e1e06d3131364beac61ed09ef9fe75502d6c9
[ "MIT" ]
null
null
null
app/schemas.py
rikkih/softwaerie
716e1e06d3131364beac61ed09ef9fe75502d6c9
[ "MIT" ]
null
null
null
from typing import Optional from pydantic import BaseModel, UUID4 class PostBase(BaseModel): title: Optional[str] = None body: Optional[str] = None # Properties to receive class PostCreate(PostBase): title: str body: str class PostUpdate(PostBase): pass class PostInDBBase(PostBase): id:...
13.583333
37
0.695297
794fa9261639c08a9ae7ce27e0d43216b4ed77de
4,559
py
Python
formulas/powers.py
pascalmolin/fungrim
f498ad76a385fe7a3b932a314747b7aa2ff475da
[ "MIT" ]
null
null
null
formulas/powers.py
pascalmolin/fungrim
f498ad76a385fe7a3b932a314747b7aa2ff475da
[ "MIT" ]
null
null
null
formulas/powers.py
pascalmolin/fungrim
f498ad76a385fe7a3b932a314747b7aa2ff475da
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .expr import * def_Topic( Title("Powers"), Entries( "ef9f8a", ), Section("Integer exponents"), Entries( "d316bc", "310f36", "a249f6", "6c2b31", "c53d94", ), Section("Elementary functions"), Entries( "4...
33.277372
161
0.573371
794fa93ef577021c763a2437930b076948d75952
796
py
Python
learn-django/learning_log/learning_logs/models.py
ornichola/learn-proramming
67f2e4d8846300db766e716b7ddf66bd54209fca
[ "Unlicense" ]
1
2021-06-28T10:55:00.000Z
2021-06-28T10:55:00.000Z
learn-django/learning_log/learning_logs/models.py
ornichola/learn-proramming
67f2e4d8846300db766e716b7ddf66bd54209fca
[ "Unlicense" ]
null
null
null
learn-django/learning_log/learning_logs/models.py
ornichola/learn-proramming
67f2e4d8846300db766e716b7ddf66bd54209fca
[ "Unlicense" ]
null
null
null
from django.db import models # Create your models here. class Topic(models.Model): """Тема, которую изучает пользователь""" text = models.CharField(max_length=200) date_added = models.DateTimeField(auto_now_add=True) def __str__(self): """Возвращает строковое представление модели.""" re...
29.481481
56
0.657035
794faa74f372a5d80796e2fdce7d61f2c18d7ca2
26
py
Python
viberio/__init__.py
bostud/Viber_bot
076113433837aab942f86a0f73275c50037ed8f9
[ "MIT" ]
null
null
null
viberio/__init__.py
bostud/Viber_bot
076113433837aab942f86a0f73275c50037ed8f9
[ "MIT" ]
null
null
null
viberio/__init__.py
bostud/Viber_bot
076113433837aab942f86a0f73275c50037ed8f9
[ "MIT" ]
null
null
null
__version__ = '0.0.1dev1'
13
25
0.692308
794fab004a3d19febcd658a0d9b358d43828ecce
5,071
py
Python
tests/memory_checks.py
agarny/libopencor
a0c9612935bcfb74da50138f636ce051607ce1b9
[ "Apache-2.0" ]
null
null
null
tests/memory_checks.py
agarny/libopencor
a0c9612935bcfb74da50138f636ce051607ce1b9
[ "Apache-2.0" ]
52
2021-05-12T23:26:46.000Z
2022-03-31T22:46:31.000Z
tests/memory_checks.py
agarny/libopencor
a0c9612935bcfb74da50138f636ce051607ce1b9
[ "Apache-2.0" ]
1
2021-05-13T04:56:45.000Z
2021-05-13T04:56:45.000Z
#!/usr/bin/env python # Copyright libOpenCOR contributors. # # 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 applicabl...
26.139175
166
0.60284
794fab18d5038f414b3fbd87a0fc68c1b18f4b39
14,764
py
Python
randomapi.py
Tantusar/randomapi
c3accc8d5570479821a5d26d6789ca91a4a71338
[ "MIT" ]
1
2020-06-16T19:04:19.000Z
2020-06-16T19:04:19.000Z
randomapi.py
Tantusar/randomapi
c3accc8d5570479821a5d26d6789ca91a4a71338
[ "MIT" ]
null
null
null
randomapi.py
Tantusar/randomapi
c3accc8d5570479821a5d26d6789ca91a4a71338
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ randomapi.py: a Python implementation of the RANDOM.org JSON-RPC API Author: Mitchell Cohen (mitch.cohen@me.com) https://github.com/mitchchn/randomapi Maintainer: Thomas Chick (twitter.com/Tantusar) https://github.com/tantusar/randomapi Date: January 18, 2020 Version: 0.3.2 RANDOM.org API...
36.544554
96
0.68308
794fab8fae3d8f6ab2ee386af2854ab8d6d93b41
2,834
py
Python
packages/mbed-host-tests/test/host_registry.py
noralsydmp/mbed-os-tools
5a14958aa49eb5764afba8e1dc3208cae2955cd7
[ "Apache-2.0" ]
29
2018-11-30T19:45:22.000Z
2022-03-29T17:02:16.000Z
packages/mbed-host-tests/test/host_registry.py
noralsydmp/mbed-os-tools
5a14958aa49eb5764afba8e1dc3208cae2955cd7
[ "Apache-2.0" ]
160
2018-11-30T21:55:52.000Z
2022-01-18T10:58:09.000Z
packages/mbed-host-tests/test/host_registry.py
noralsydmp/mbed-os-tools
5a14958aa49eb5764afba8e1dc3208cae2955cd7
[ "Apache-2.0" ]
73
2018-11-30T21:34:41.000Z
2021-10-02T05:51:40.000Z
""" mbed SDK Copyright (c) 2011-2015 ARM Limited 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 wr...
36.805195
95
0.729358
794fac4ba47f099ec1449b97421fc09eb156b2b0
121
py
Python
shop/products/admin.py
ahmadreza-smdi/ms-shop
65ba3f3061e2ac5c63115b08dadfe7d67f645fb6
[ "MIT" ]
6
2019-11-23T17:16:17.000Z
2021-09-20T13:12:55.000Z
shop/products/admin.py
abdulkarimFallatah/ms-shop
65ba3f3061e2ac5c63115b08dadfe7d67f645fb6
[ "MIT" ]
5
2021-04-08T22:00:07.000Z
2022-02-10T12:38:25.000Z
shop/products/admin.py
abdulkarimFallatah/ms-shop
65ba3f3061e2ac5c63115b08dadfe7d67f645fb6
[ "MIT" ]
2
2019-11-24T20:33:16.000Z
2021-09-09T00:29:52.000Z
from django.contrib import admin from .models import Product # Register your models here. admin.site.register(Product)
17.285714
32
0.801653
794facd9798de4988880d8fad0eaa62d26c55c64
1,680
py
Python
examples/ElasticsearchDomain.py
DrLuke/troposphere
05672a2b0cf87215dbd6a2a656669e0d3c92d0e5
[ "BSD-2-Clause" ]
1
2019-05-27T21:22:51.000Z
2019-05-27T21:22:51.000Z
examples/ElasticsearchDomain.py
DrLuke/troposphere
05672a2b0cf87215dbd6a2a656669e0d3c92d0e5
[ "BSD-2-Clause" ]
1
2021-06-25T15:20:46.000Z
2021-06-25T15:20:46.000Z
examples/ElasticsearchDomain.py
DrLuke/troposphere
05672a2b0cf87215dbd6a2a656669e0d3c92d0e5
[ "BSD-2-Clause" ]
2
2018-05-05T18:40:43.000Z
2018-09-19T04:17:05.000Z
# Converted from Elasticsearch Domain example located at: # http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticsearch-domain.html#d0e51519 from troposphere import Template, constants from troposphere.elasticsearch import Domain, EBSOptions, VPCOptions from troposphere.elasticsearch impor...
35.744681
111
0.633929
794fae319c24c59c23eeb135b2597fd2b24d1ce1
448
py
Python
project/src/main/python/backTest/factorAnalysis/main_simple.py
daifengqi/big-data-hft
013747ca3c2ca984eeac723fd5d8f8e3458b840c
[ "MIT" ]
1
2022-03-07T09:32:40.000Z
2022-03-07T09:32:40.000Z
project/src/main/python/backTest/factorAnalysis/main_simple.py
daifengqi/big-data-hft
013747ca3c2ca984eeac723fd5d8f8e3458b840c
[ "MIT" ]
null
null
null
project/src/main/python/backTest/factorAnalysis/main_simple.py
daifengqi/big-data-hft
013747ca3c2ca984eeac723fd5d8f8e3458b840c
[ "MIT" ]
1
2022-03-03T16:22:37.000Z
2022-03-03T16:22:37.000Z
# from updateStockPool import UpdateStockPool,update_benchmark_return from factorAnalysisTimeHorizonSimple import updateFactorAnalysisResSimple # from factorAnalysisResPlot import plotFactorAnalysisRes # import sys import time import warnings warnings.filterwarnings("ignore") factor_analysis_config_path = r"D:\HX_proj\...
40.727273
91
0.886161
794fae3b16c3935b4600103819cdefdc0b061ec8
19,863
py
Python
manila/share/drivers/tegile/tegile.py
openstack/manila
1ebae738c235c6f1874ac7b11307e0d5fb567dba
[ "Apache-2.0" ]
159
2015-01-02T09:35:15.000Z
2022-01-04T11:51:34.000Z
manila/share/drivers/tegile/tegile.py
openstack/manila
1ebae738c235c6f1874ac7b11307e0d5fb567dba
[ "Apache-2.0" ]
5
2015-07-24T09:28:21.000Z
2020-11-20T04:33:51.000Z
manila/share/drivers/tegile/tegile.py
openstack/manila
1ebae738c235c6f1874ac7b11307e0d5fb567dba
[ "Apache-2.0" ]
128
2015-01-05T22:52:28.000Z
2021-12-29T14:00:58.000Z
# Copyright (c) 2016 by Tegile Systems, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
38.34556
79
0.533907
794faeb1bd5c8954656b2bbe6484546c425c57e3
4,341
py
Python
rtutil/SettingAPI/classes.py
tuna2134/rt-backend-1
71c48f56f21720b05a76dc0cdbdcb18a80d16afb
[ "BSD-4-Clause" ]
null
null
null
rtutil/SettingAPI/classes.py
tuna2134/rt-backend-1
71c48f56f21720b05a76dc0cdbdcb18a80d16afb
[ "BSD-4-Clause" ]
null
null
null
rtutil/SettingAPI/classes.py
tuna2134/rt-backend-1
71c48f56f21720b05a76dc0cdbdcb18a80d16afb
[ "BSD-4-Clause" ]
null
null
null
# rtutil SettingAPI - Classes from typing import (Type, Literal, Optional, Union, Iterator, Any, List, Tuple, Dict, Callable, Coroutine) from sanic import exceptions from copy import copy from discord.ext import commands import discord SettingType = Literal["guild", "user"] ModeType ...
30.787234
80
0.535361
794fafad4f6fffcac832e7c520b5b960222c736f
16,155
py
Python
designate_tempest_plugin/tests/api/v2/test_transfer_request.py
openstack/designate-tempest-plugin
0ebf5006bb416435af88b03272247e1f8a3c7921
[ "Apache-2.0" ]
15
2016-04-22T10:00:44.000Z
2020-01-08T02:36:34.000Z
designate_tempest_plugin/tests/api/v2/test_transfer_request.py
openstack/designate-tempest-plugin
0ebf5006bb416435af88b03272247e1f8a3c7921
[ "Apache-2.0" ]
null
null
null
designate_tempest_plugin/tests/api/v2/test_transfer_request.py
openstack/designate-tempest-plugin
0ebf5006bb416435af88b03272247e1f8a3c7921
[ "Apache-2.0" ]
10
2016-04-14T16:35:07.000Z
2019-03-18T14:47:36.000Z
# Copyright 2016 NEC Corporation. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
44.875
79
0.668709
794faff3ce512565452020f3a4c2123d8cb79186
425
py
Python
robots/test/strategies/run_tests/tests/test_pick_best/init.py
memristor/mep2
bc5cddacba3d740f791f3454b8cb51bda83ce202
[ "MIT" ]
5
2018-11-27T15:15:00.000Z
2022-02-10T21:44:13.000Z
robots/test/strategies/run_tests/tests/test_pick_best/init.py
memristor/mep2
bc5cddacba3d740f791f3454b8cb51bda83ce202
[ "MIT" ]
2
2018-10-20T15:48:40.000Z
2018-11-20T05:11:33.000Z
robots/test/strategies/run_tests/tests/test_pick_best/init.py
memristor/mep2
bc5cddacba3d740f791f3454b8cb51bda83ce202
[ "MIT" ]
1
2020-02-07T12:44:47.000Z
2020-02-07T12:44:47.000Z
weight=1 a=_State(2) from core.Util import col def run(): @_do def _(): sleep(0.2) _print('hehe1') @_do def _(): sleep(0.2) _print('hehe1') _print(col.yellow,'pick best',col.white) with _pick_best(): sleep(4) @_do def _(): sleep(3) _print('hehe') @_do def _(): _print('1 sec hehe...
12.142857
41
0.557647
794fb036da944b52799e44ad31da45c01ab100de
14,813
py
Python
polyglotdb/query/annotations/attributes/base.py
jeffmielke/PolyglotDB
619fb487a15db1c4b9e844e843c81e0994973421
[ "MIT" ]
null
null
null
polyglotdb/query/annotations/attributes/base.py
jeffmielke/PolyglotDB
619fb487a15db1c4b9e844e843c81e0994973421
[ "MIT" ]
null
null
null
polyglotdb/query/annotations/attributes/base.py
jeffmielke/PolyglotDB
619fb487a15db1c4b9e844e843c81e0994973421
[ "MIT" ]
null
null
null
from ...base.helper import key_for_cypher from ....exceptions import AnnotationAttributeError, SubsetError from ..elements import (EqualClauseElement, GtClauseElement, GteClauseElement, LtClauseElement, LteClauseElement, NotEqualClauseElement, InClauseElement, NotInClaus...
37.982051
119
0.607507
794fb18cb77dbfe40223c33ac50a017e42898c0e
1,564
py
Python
gbe/templatetags/gbe_tags.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
1
2021-03-14T11:56:47.000Z
2021-03-14T11:56:47.000Z
gbe/templatetags/gbe_tags.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
180
2019-09-15T19:52:46.000Z
2021-11-06T23:48:01.000Z
gbe/templatetags/gbe_tags.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
null
null
null
from django import template from django.conf import settings from django.utils.formats import date_format register = template.Library() @register.inclusion_tag('gbe/tag_templates/mailchimp.tmpl') def mailchimp(): if settings.MC_API_KEY == 'TEST': return {'have_mc': False} return {'mc_api_url': settin...
26.965517
78
0.662404
794fb23d7ea2b0eb8cd884bcaa97539ca13b4d78
361
py
Python
2020/day_02/__main__.py
d02d33pak/Advent-Of-Code
765b0302c256ad61864095a537a3f6379901b1c2
[ "MIT" ]
null
null
null
2020/day_02/__main__.py
d02d33pak/Advent-Of-Code
765b0302c256ad61864095a537a3f6379901b1c2
[ "MIT" ]
null
null
null
2020/day_02/__main__.py
d02d33pak/Advent-Of-Code
765b0302c256ad61864095a537a3f6379901b1c2
[ "MIT" ]
null
null
null
""" Day 2 Main Module """ from day02 import parse_input, part1, part2 if __name__ == "__main__": # trying out the new walrus[:=] oprtr in python if (part := int(input("Enter Part: "))) == 1: print(part1(parse_input("input.txt"))) elif part == 2: print(part2(parse_input("input.txt"))) e...
24.066667
51
0.595568
794fb24cfe67240a1fc8392b4b2d703bc32fdf6f
14,460
py
Python
external/workload-automation/wa/instruments/perf.py
qais-yousef/lisa
8343e26bf0565589928a69ccbe67b1be03403db7
[ "Apache-2.0" ]
null
null
null
external/workload-automation/wa/instruments/perf.py
qais-yousef/lisa
8343e26bf0565589928a69ccbe67b1be03403db7
[ "Apache-2.0" ]
null
null
null
external/workload-automation/wa/instruments/perf.py
qais-yousef/lisa
8343e26bf0565589928a69ccbe67b1be03403db7
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2015 ARM Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
45.615142
122
0.567842
794fb2e3c2f739eb867f619027ee0ac937881e96
6,626
py
Python
tools/misc/bsn_proposal_generation.py
kiyoon/Video-Swin-Transformer
7a0d40ced8fb52c064d1cd11ffa8b0c3bbb77607
[ "Apache-2.0" ]
648
2021-06-24T19:33:09.000Z
2022-03-31T06:27:24.000Z
tools/bsn_proposal_generation.py
xumingze0308/mmaction2
777546f27f8f5a3c83e10d966e2149be2fc9fa31
[ "Apache-2.0" ]
53
2021-07-01T03:07:52.000Z
2022-03-27T16:15:29.000Z
tools/bsn_proposal_generation.py
xumingze0308/mmaction2
777546f27f8f5a3c83e10d966e2149be2fc9fa31
[ "Apache-2.0" ]
117
2021-06-25T01:22:32.000Z
2022-03-31T08:33:55.000Z
import argparse import os import os.path as osp import mmcv import numpy as np import torch.multiprocessing as mp from mmaction.localization import (generate_bsp_feature, generate_candidate_proposals) def load_video_infos(ann_file): """Load the video annotations. Args: ...
33.464646
79
0.630546
794fb2e4556709410bc96c8724226455c0392c39
879
py
Python
lkmltools/linter/rules/fieldrules/all_caps_rule.py
iserko/lookml-tools
caa46e489e789f59987965be98038cab10c0fdf0
[ "Apache-2.0" ]
null
null
null
lkmltools/linter/rules/fieldrules/all_caps_rule.py
iserko/lookml-tools
caa46e489e789f59987965be98038cab10c0fdf0
[ "Apache-2.0" ]
null
null
null
lkmltools/linter/rules/fieldrules/all_caps_rule.py
iserko/lookml-tools
caa46e489e789f59987965be98038cab10c0fdf0
[ "Apache-2.0" ]
null
null
null
""" an all caps rule Authors: Carl Anderson (carl.anderson@weightwatchers.com) """ from lkmltools.linter.field_rule import FieldRule from lkmltools.lookml_field import LookMLField class AllCapsRule(FieldRule): """is the name non all caps? """ def run(self, lookml_field): """i...
24.416667
75
0.596132
794fb34d3960238e99605119f2f9dee1993937ba
1,144
py
Python
vccpython/components/evaporator.py
thermalogic/SimVCCE
23b6f2f5adc1a49ca023d40a8de0ca61f27d4564
[ "MIT" ]
null
null
null
vccpython/components/evaporator.py
thermalogic/SimVCCE
23b6f2f5adc1a49ca023d40a8de0ca61f27d4564
[ "MIT" ]
null
null
null
vccpython/components/evaporator.py
thermalogic/SimVCCE
23b6f2f5adc1a49ca023d40a8de0ca61f27d4564
[ "MIT" ]
null
null
null
from .port import * class Evaporator: energy = "QIN" devtype = "EVAPORATOR" def __init__(self, dictDev): """ Initializes the Evaporator """ self.name = dictDev['name'] self.iPort = [Port(dictDev['iPort'])] self.oPort = [Port(dictDev['oPort'])] # map the name of p...
29.333333
75
0.528846
794fb501b60793a42de59c8f2f065ca2568e28c1
2,491
py
Python
test/functional/mempool_resurrect.py
karbonbaron/monicoin
b87519b1e1d84778afddff3b5a530da1ab545157
[ "MIT" ]
null
null
null
test/functional/mempool_resurrect.py
karbonbaron/monicoin
b87519b1e1d84778afddff3b5a530da1ab545157
[ "MIT" ]
null
null
null
test/functional/mempool_resurrect.py
karbonbaron/monicoin
b87519b1e1d84778afddff3b5a530da1ab545157
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test resurrection of mined transactions when the blockchain is re-organized.""" from test_framework.te...
38.921875
93
0.680851
794fb7414b331c197d49a8a69b78efe486131ddc
679
py
Python
interpretImage.py
BlanchonMarc/RandomImageGenerator
fd684c8f27d0c7eeec66cd2521d482a8405dd097
[ "MIT" ]
null
null
null
interpretImage.py
BlanchonMarc/RandomImageGenerator
fd684c8f27d0c7eeec66cd2521d482a8405dd097
[ "MIT" ]
null
null
null
interpretImage.py
BlanchonMarc/RandomImageGenerator
fd684c8f27d0c7eeec66cd2521d482a8405dd097
[ "MIT" ]
null
null
null
import numpy as np import glob import matplotlib.image as mpimg import matplotlib.pyplot as plt import matplotlib.colors as color import math def ParamToInten(AoP, DoP, Inten, angle): return ((Inten/2.0) * (1 + DoP*np.cos(math.radians(2*AoP) - 2*math.radians(angle)))) if __name__ == "__main__": imagedir = "...
24.25
88
0.600884
794fb7855cb5f92af770939a9089f8bd580cd525
104
py
Python
src/lib/application/client/api.py
kolesa-team/python-ms-skeleton
b0ac658a0539ce18bb4384f96dc7f7473e701111
[ "MIT" ]
null
null
null
src/lib/application/client/api.py
kolesa-team/python-ms-skeleton
b0ac658a0539ce18bb4384f96dc7f7473e701111
[ "MIT" ]
1
2021-06-01T22:48:10.000Z
2021-06-01T22:48:10.000Z
src/lib/application/client/api.py
kolesa-team/python-ms-skeleton
b0ac658a0539ce18bb4384f96dc7f7473e701111
[ "MIT" ]
1
2018-10-12T11:40:55.000Z
2018-10-12T11:40:55.000Z
import requests from src.lib.application.httpClient import HttpClient class Api(HttpClient): pass
14.857143
53
0.798077
794fb883a0aa7518ae60e193f3ce0ad76426c4bb
932
py
Python
vc_rcnn/data/datasets/list_dataset.py
alfred100p/VC-R-CNN
c887f5b6db6932fb5c828c8037e299ce5baadb9e
[ "MIT" ]
344
2020-02-27T07:48:49.000Z
2022-02-02T10:37:49.000Z
vc_rcnn/data/datasets/list_dataset.py
aLefred0/VC-R-CNN
5b01e44618c406592184275b734d3fbd3f11234c
[ "MIT" ]
18
2020-03-01T05:22:21.000Z
2021-08-12T15:06:34.000Z
vc_rcnn/data/datasets/list_dataset.py
aLefred0/VC-R-CNN
5b01e44618c406592184275b734d3fbd3f11234c
[ "MIT" ]
59
2020-02-29T12:53:41.000Z
2022-03-07T02:17:35.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. """ Simple dataset class that wraps a list of path names """ from PIL import Image from vc_rcnn.structures.bounding_box import BoxList class ListDataset(object): def __init__(self, image_lists, transforms=None): self.image_lists = i...
25.189189
71
0.635193
794fb98b738d31fb0a1ff53883f39400075bf4d6
513
py
Python
blog/migrations/0003_auto_20191008_1328.py
joaopaiva/BlogAC318
12a0723043259864cf16a138e1d5224282f6a709
[ "MIT" ]
null
null
null
blog/migrations/0003_auto_20191008_1328.py
joaopaiva/BlogAC318
12a0723043259864cf16a138e1d5224282f6a709
[ "MIT" ]
1
2021-06-10T22:03:59.000Z
2021-06-10T22:03:59.000Z
blog/migrations/0003_auto_20191008_1328.py
joaopaiva/BlogAC318
12a0723043259864cf16a138e1d5224282f6a709
[ "MIT" ]
null
null
null
# Generated by Django 2.0.13 on 2019-10-08 16:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0002_post_post_type'), ] operations = [ migrations.RemoveField( model_name='post', name='post_type', ...
22.304348
73
0.576998
794fba1005de2980db1212e20654d6493364c46d
778
py
Python
packages/postgres-database/src/simcore_postgres_database/models/scicrunch_resources.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
25
2018-04-13T12:44:12.000Z
2022-03-12T15:01:17.000Z
packages/postgres-database/src/simcore_postgres_database/models/scicrunch_resources.py
colinRawlings/osparc-simcore
bf2f18d5bc1e574d5f4c238d08ad15156184c310
[ "MIT" ]
2,553
2018-01-18T17:11:55.000Z
2022-03-31T16:26:40.000Z
packages/postgres-database/src/simcore_postgres_database/models/scicrunch_resources.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
20
2018-01-18T19:45:33.000Z
2022-03-29T07:08:47.000Z
""" Stores SOME of the information associated to Research Resource Identifiers (RRIDs) as defined in https://scicrunch.org/resources """ import sqlalchemy as sa from sqlalchemy.sql import func from .base import metadata scicrunch_resources = sa.Table( "scicrunch_resources", metadata, sa.Column("rrid", sa...
29.923077
132
0.679949
794fbb023063d4b88c35838db3913d2f58b25750
60
py
Python
cifar10/models/__init__.py
huangleiBuaa/IterNorm-pytorch
574b1247036106c40d199c73ab29785b16d05407
[ "BSD-2-Clause" ]
28
2019-04-23T14:40:47.000Z
2022-03-28T13:55:21.000Z
cifar10/models/__init__.py
huangleiBuaa/IterNorm-pytorch
574b1247036106c40d199c73ab29785b16d05407
[ "BSD-2-Clause" ]
2
2019-06-27T08:27:26.000Z
2021-07-03T14:40:44.000Z
cifar10/models/__init__.py
huangleiBuaa/IterNorm-pytorch
574b1247036106c40d199c73ab29785b16d05407
[ "BSD-2-Clause" ]
8
2019-04-10T13:20:25.000Z
2021-07-29T11:10:49.000Z
from .resnet import * from .vgg import * from .WRN import *
15
21
0.7
794fbb1257669e0cc1524949f05e56ce6c145241
2,389
py
Python
tools/_gen_firrtl_modules.py
edwardcwang/coreir
f71c5864c21cf82112dc641ab0400aac778685c9
[ "BSD-3-Clause" ]
104
2017-04-05T23:23:32.000Z
2022-03-18T03:47:05.000Z
tools/_gen_firrtl_modules.py
edwardcwang/coreir
f71c5864c21cf82112dc641ab0400aac778685c9
[ "BSD-3-Clause" ]
588
2017-04-02T17:11:29.000Z
2021-12-22T01:37:47.000Z
tools/_gen_firrtl_modules.py
edwardcwang/coreir
f71c5864c21cf82112dc641ab0400aac778685c9
[ "BSD-3-Clause" ]
27
2017-03-15T17:05:13.000Z
2022-03-30T20:23:08.000Z
class Source: def __init__(self): self._source = "" def add_line(self, text=""): self._source += text + "\n" def __str__(self): return self._source source = Source() ops = { "unary": { "not" : "not(in)", "neg" : "asUInt(neg(in))", # `neg` works on UInts, so ...
31.853333
126
0.480117
794fbbb990a003bc87a24cb7fe158b3ba7652c51
5,609
py
Python
tb_rest_client/models/models_pe/client_attributes_querying_snmp_communication_config.py
samson0v/python_tb_rest_client
08ff7898740f7cec2170e85d5c3c89e222e967f7
[ "Apache-2.0" ]
30
2020-06-19T06:42:50.000Z
2021-08-23T21:16:36.000Z
tb_rest_client/models/models_pe/client_attributes_querying_snmp_communication_config.py
samson0v/python_tb_rest_client
08ff7898740f7cec2170e85d5c3c89e222e967f7
[ "Apache-2.0" ]
25
2021-08-30T01:17:27.000Z
2022-03-16T14:10:14.000Z
tb_rest_client/models/models_pe/client_attributes_querying_snmp_communication_config.py
samson0v/python_tb_rest_client
08ff7898740f7cec2170e85d5c3c89e222e967f7
[ "Apache-2.0" ]
23
2020-07-06T13:41:54.000Z
2021-08-23T21:04:50.000Z
# coding: utf-8 """ ThingsBoard REST API ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501 OpenAPI spec version: 3.3.3PAAS-RC1 Contact: info@thingsboard.io Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F40...
33.189349
145
0.629167
794fbbe58fbe9b74ba63157e11523b1078e9b8c3
1,200
py
Python
modules/boost_math/doc/gamma_p_inv.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
1
2022-03-24T03:35:10.000Z
2022-03-24T03:35:10.000Z
modules/boost_math/doc/gamma_p_inv.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
modules/boost_math/doc/gamma_p_inv.py
brycelelbach/nt2
73d7e8dd390fa4c8d251c6451acdae65def70e0b
[ "BSL-1.0" ]
null
null
null
[ ## this file was manually modified by jt { 'functor' : { 'arity' : '2', 'call_types' : [], 'ret_arity' : '0', 'rturn' : { 'default' : 'T', }, 'simd_types' : [], 'special' : ['boost_math'], 'type_defs' : [], 'type...
27.272727
69
0.334167
794fbc5a1b53297dc32c0a49adada8c020e5e2e0
1,342
py
Python
site_info/migrations/0009_auto_20180220_2058.py
WarwickAnimeSoc/aniMango
f927c2bc6eb484561ab38172ebebee6f03c8b13b
[ "MIT" ]
null
null
null
site_info/migrations/0009_auto_20180220_2058.py
WarwickAnimeSoc/aniMango
f927c2bc6eb484561ab38172ebebee6f03c8b13b
[ "MIT" ]
6
2016-10-18T14:52:05.000Z
2020-06-18T15:14:41.000Z
site_info/migrations/0009_auto_20180220_2058.py
WarwickAnimeSoc/aniMango
f927c2bc6eb484561ab38172ebebee6f03c8b13b
[ "MIT" ]
6
2020-02-07T17:37:37.000Z
2021-01-15T00:01:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2018-02-20 20:58 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('site_info', '0008_auto_20170923_0911'), ] operations = [ migrations.AlterFi...
51.615385
409
0.603577
794fbc7bef1a26bd51327d4e19d2ef5b72fc6754
4,957
py
Python
spark/src/main/resources/python/zeppelin_pyspark.py
fogbeam/fogbeam_zeppelin
6a096c90d9ef46c337b02995ae7caab8659768a9
[ "Apache-2.0" ]
1
2018-01-29T06:23:01.000Z
2018-01-29T06:23:01.000Z
spark/src/main/resources/python/zeppelin_pyspark.py
BabbleGrabble/incubator-zeppelin-oauth2
784bba97678282cdd65ad5093d5bf883d101bd9e
[ "Apache-2.0" ]
null
null
null
spark/src/main/resources/python/zeppelin_pyspark.py
BabbleGrabble/incubator-zeppelin-oauth2
784bba97678282cdd65ad5093d5bf883d101bd9e
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
30.042424
92
0.730684
794fbcc001e1123a1b5576ea4ab34a6a6f7f9ec1
4,145
py
Python
docs/source/examples/kkr_bandstruc_example.py
broeder-j/aiida-kkr
fe7f39aa8f1396e02c0eb51c1cd2a7dc050620d6
[ "MIT" ]
2
2017-11-09T10:21:43.000Z
2017-11-09T18:42:05.000Z
docs/source/examples/kkr_bandstruc_example.py
broeder-j/aiida-kkr
fe7f39aa8f1396e02c0eb51c1cd2a7dc050620d6
[ "MIT" ]
8
2018-07-19T12:33:28.000Z
2018-10-18T10:02:32.000Z
docs/source/examples/kkr_bandstruc_example.py
broeder-j/aiida-kkr
fe7f39aa8f1396e02c0eb51c1cd2a7dc050620d6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # connect to aiida db from aiida import load_dbenv, is_dbenv_loaded if not is_dbenv_loaded(): load_dbenv() # load essential aiida classes from aiida.orm import Code, DataFactory, load_node StructureData = DataFactory('structure') ParameterData = DataFactory('parameter') # helper function: de...
33.97541
133
0.740893
794fbcc63d34d8d21101f56cd7aa5bab090bad76
753
py
Python
elk_project/elk_project/urls.py
joyliao07/elk
c697d6847c57c0e7f3b4dc71a373c5fe0407e237
[ "MIT" ]
null
null
null
elk_project/elk_project/urls.py
joyliao07/elk
c697d6847c57c0e7f3b4dc71a373c5fe0407e237
[ "MIT" ]
7
2019-12-04T23:17:25.000Z
2021-06-09T17:54:51.000Z
elk_project/elk_project/urls.py
joyliao07/elk
c697d6847c57c0e7f3b4dc71a373c5fe0407e237
[ "MIT" ]
null
null
null
"""elk_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
34.227273
77
0.710491