hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
f381167e8d010fda04299377952b97149e058591
8,501
py
Python
ros/src/tl_detector/tl_detector.py
helloxms/autonomous_ros
860fb5b759eb2c7981da17c12ac907cceee870b3
[ "MIT" ]
null
null
null
ros/src/tl_detector/tl_detector.py
helloxms/autonomous_ros
860fb5b759eb2c7981da17c12ac907cceee870b3
[ "MIT" ]
null
null
null
ros/src/tl_detector/tl_detector.py
helloxms/autonomous_ros
860fb5b759eb2c7981da17c12ac907cceee870b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import Int32 from geometry_msgs.msg import PoseStamped, Pose from styx_msgs.msg import TrafficLightArray, TrafficLight from styx_msgs.msg import Lane from sensor_msgs.msg import Image from cv_bridge import CvBridge from light_classification.tl_classifier import TLCla...
38.292793
147
0.642748
2bf73bafd3c92ffdaeb1dcf60d565aa015704801
589
py
Python
extendedAPIs/utils/find_transaction_objects.py
ttw225/IOTA_learning
90b804765b9250c349dab7db8a06144cdcbdb52d
[ "MIT" ]
null
null
null
extendedAPIs/utils/find_transaction_objects.py
ttw225/IOTA_learning
90b804765b9250c349dab7db8a06144cdcbdb52d
[ "MIT" ]
null
null
null
extendedAPIs/utils/find_transaction_objects.py
ttw225/IOTA_learning
90b804765b9250c349dab7db8a06144cdcbdb52d
[ "MIT" ]
null
null
null
from iota.commands.extended.utils import find_transaction_objects address=[] address.append('LEYNSIMADMXAUYRGXKKEXPHDMZLRISZBSRZXUMCIKP9JQDOXSCIUGKYFFNPPVPGCHEJAWWSDHCKGOORPC') transactions = find_transaction_objects(addresses=address) for transaction in transactions: # Ignore input transactions; these have cryptog...
29.45
99
0.794567
5bcebd2bdbe7132a490db108446eab0af744b74a
1,232
py
Python
src/test.py
ZhenningLang/wheezy-captcha
7b84c88dffb896f75ea3912b1c3e5b8085ab400f
[ "MIT" ]
null
null
null
src/test.py
ZhenningLang/wheezy-captcha
7b84c88dffb896f75ea3912b1c3e5b8085ab400f
[ "MIT" ]
null
null
null
src/test.py
ZhenningLang/wheezy-captcha
7b84c88dffb896f75ea3912b1c3e5b8085ab400f
[ "MIT" ]
null
null
null
import random from captchacha.image import captcha from captchacha.image import text, background, offset, rotate from captchacha.image import curve, noise, smooth if __name__ == '__main__': import string import os color_choices = ('#674331', '#515329', '#725a38', '#68483e', '#7b2616', '#53595f') de...
34.222222
86
0.591721
cda1e5d17adb74c0aaa37cb79e28eb27b8886557
4,663
py
Python
pandoc/filters/main.py
jasonchoimtt/dotfiles
3064785ddc4f5fd13118e15167ee38409eac5bc9
[ "MIT" ]
13
2016-09-24T02:20:59.000Z
2017-04-27T09:15:02.000Z
pandoc/filters/main.py
jasonchoimtt/dotfiles
3064785ddc4f5fd13118e15167ee38409eac5bc9
[ "MIT" ]
null
null
null
pandoc/filters/main.py
jasonchoimtt/dotfiles
3064785ddc4f5fd13118e15167ee38409eac5bc9
[ "MIT" ]
1
2019-01-28T06:17:15.000Z
2019-01-28T06:17:15.000Z
#!/usr/bin/env python3 import os import os.path import panflute as pf from codeblocks import codeblocks from file_codeblocks import file_codeblocks from listings import listings DEFAULT_PACKAGES = ['unicode-math', (os.path.dirname(__file__) + '/mylistings')] def default_packages(elem: pf.Element, doc: pf.Doc): ...
34.036496
103
0.600043
549626bf4a5adfeec063b1b2a82c339de3c49581
9,326
py
Python
talon_draft_window/draft_talon_helpers.py
CameronSBell/knausj_talon
3e57e0165257cf07b0e21880d44a91e79cb3ef16
[ "MIT" ]
298
2020-02-23T03:00:51.000Z
2022-03-30T02:11:00.000Z
talon_draft_window/draft_talon_helpers.py
CameronSBell/knausj_talon
3e57e0165257cf07b0e21880d44a91e79cb3ef16
[ "MIT" ]
521
2020-02-21T18:21:17.000Z
2022-03-31T16:40:34.000Z
talon_draft_window/draft_talon_helpers.py
CameronSBell/knausj_talon
3e57e0165257cf07b0e21880d44a91e79cb3ef16
[ "MIT" ]
499
2020-03-07T05:43:52.000Z
2022-03-28T12:24:54.000Z
from typing import Optional from talon import ui, settings, Module, Context, actions from .draft_ui import DraftManager mod = Module() # ctx is for toggling the draft_window_showing variable # which lets you execute actions whenever the window is visible. ctx = Context() # ctx_focused is active only when the draft w...
29.05296
87
0.622239
a8d4d22e66f5a5fbde090c34d5077b7f8ddbae8d
3,365
py
Python
projects/ocr/ocr.py
julien-amar/date-a-scientist
8748516ab5bcfca488e6ef6ecb4fcd3786daa8fc
[ "Apache-2.0" ]
4
2019-02-11T22:18:51.000Z
2021-02-21T10:46:24.000Z
projects/ocr/ocr.py
julien-amar/code-academy-ml
8748516ab5bcfca488e6ef6ecb4fcd3786daa8fc
[ "Apache-2.0" ]
1
2018-11-14T15:00:01.000Z
2018-11-14T15:00:01.000Z
projects/ocr/ocr.py
julien-amar/date-a-scientist
8748516ab5bcfca488e6ef6ecb4fcd3786daa8fc
[ "Apache-2.0" ]
6
2019-06-22T12:28:38.000Z
2021-07-23T08:53:20.000Z
import codecademylib3_seaborn import numpy as np from matplotlib import pyplot as plt from sklearn import datasets from sklearn.cluster import KMeans # Get Optical Recognition of Handwritten Digits Data Set digits = datasets.load_digits() # Get data set description print (digits.DESCR) # Get data set pixels print (...
39.127907
322
0.643388
939ab50848aeb5efc6f5ff0cd91d3b2cff0b7235
180
py
Python
b.py
kelvinndmo/me
06b9959b4284abc20b5ee365223381c75ec574d9
[ "MIT" ]
null
null
null
b.py
kelvinndmo/me
06b9959b4284abc20b5ee365223381c75ec574d9
[ "MIT" ]
null
null
null
b.py
kelvinndmo/me
06b9959b4284abc20b5ee365223381c75ec574d9
[ "MIT" ]
null
null
null
def inv(c): if 'a' <= c <= 'z': print(chr(122 - ord(c) + 97)) if 'A' <= c <= 'Z': print(chr(90 - ord(c) + 65)) return c ''.join(inv(c) for c in 'az')
18
37
0.405556
b062991e4478398f17b8c641f7baba2ae9706233
1,135
py
Python
powerline_shell/themes/load_theme.py
aradzu10/powerline-shell
299493eb3ad65b0331d9369a279833e61237d9a6
[ "MIT" ]
null
null
null
powerline_shell/themes/load_theme.py
aradzu10/powerline-shell
299493eb3ad65b0331d9369a279833e61237d9a6
[ "MIT" ]
null
null
null
powerline_shell/themes/load_theme.py
aradzu10/powerline-shell
299493eb3ad65b0331d9369a279833e61237d9a6
[ "MIT" ]
null
null
null
""" We load themes that way in order to improve performance. """ from powerline_shell import utils def aradz(): from powerline_shell.themes import aradz return aradz.Color def basic(): from powerline_shell.themes import basic return basic.Color def default(): from powerline_shell.themes impor...
19.568966
65
0.722467
272e64a18107e0482e7efbd9518c18b9fceb0f5b
19,134
py
Python
eval_vit_on_medical.py
ericpts/OD-test-master
82bdf234e69660d3c2e59c06062445196b865a79
[ "MIT" ]
null
null
null
eval_vit_on_medical.py
ericpts/OD-test-master
82bdf234e69660d3c2e59c06062445196b865a79
[ "MIT" ]
null
null
null
eval_vit_on_medical.py
ericpts/OD-test-master
82bdf234e69660d3c2e59c06062445196b865a79
[ "MIT" ]
null
null
null
import glob import random import shutil import time import numpy as np import sys import os if os.getcwd() not in sys.path: sys.path.append(os.getcwd()) from flax.training import checkpoints as flax_checkpoints from vit_jax import checkpoint from vit_jax import models from vit_jax import train from vit_jax.config...
31.731343
128
0.667242
f45903d86ee42f2cc3d9fb085987c5856513e6b3
31,571
py
Python
litedram/init.py
thirtythreeforty/litedram
db879ae3f7d591482e4665801c946241bb663bce
[ "OLDAP-2.6", "OLDAP-2.3", "OLDAP-2.7" ]
null
null
null
litedram/init.py
thirtythreeforty/litedram
db879ae3f7d591482e4665801c946241bb663bce
[ "OLDAP-2.6", "OLDAP-2.3", "OLDAP-2.7" ]
null
null
null
litedram/init.py
thirtythreeforty/litedram
db879ae3f7d591482e4665801c946241bb663bce
[ "OLDAP-2.6", "OLDAP-2.3", "OLDAP-2.7" ]
null
null
null
# # This file is part of LiteDRAM. # # Copyright (c) 2013-2014 Sebastien Bourdeauducq <sb@m-labs.hk> # Copyright (c) 2013-2020 Florent Kermarrec <florent@enjoy-digital.fr> # Copyright (c) 2017 whitequark <whitequark@whitequark.org> # Copyright (c) 2014 Yann Sionneau <ys@m-labs.hk> # Copyright (c) 2018 bunnie <bunnie@ko...
36.37212
125
0.530645
ec5ce2b9edf8897bf42395399df660457cf91354
1,197
py
Python
test/test_phones.py
alkava/python_traning
ce7334572cea7de08de8951b240e506ea9cd87a7
[ "Apache-2.0" ]
null
null
null
test/test_phones.py
alkava/python_traning
ce7334572cea7de08de8951b240e506ea9cd87a7
[ "Apache-2.0" ]
null
null
null
test/test_phones.py
alkava/python_traning
ce7334572cea7de08de8951b240e506ea9cd87a7
[ "Apache-2.0" ]
null
null
null
import re def test_phones_on_home_page(app): contact_from_home_page = app.contact.get_contact_list()[0] contact_from_edit_page = app.contact.get_contact_info_from_edit_page(0) assert contact_from_home_page.all_phones_from_home_page == merge_phones_like_on_home_page(contact_from_edit_page) def test_phones...
44.333333
120
0.751044
13e900db384a36c96161a1f4a3e26e29ca257abf
328
py
Python
floppyforms/__init__.py
jonashaag/django-floppyforms
eec8a0c1902e2bcdbf1bc05f0f5ff5403cae7afd
[ "BSD-3-Clause" ]
null
null
null
floppyforms/__init__.py
jonashaag/django-floppyforms
eec8a0c1902e2bcdbf1bc05f0f5ff5403cae7afd
[ "BSD-3-Clause" ]
null
null
null
floppyforms/__init__.py
jonashaag/django-floppyforms
eec8a0c1902e2bcdbf1bc05f0f5ff5403cae7afd
[ "BSD-3-Clause" ]
null
null
null
# flake8: noqa from django.forms import (BaseModelForm, model_to_dict, fields_for_model, save_instance, ValidationError, Media, MediaDefiningClass) from .fields import * from .forms import * from .models import * from .widgets import * from . import gis __version__ ...
25.230769
73
0.652439
8e4b7ff667d963e203fa625799aadab2eab7c0c8
946
py
Python
odziez/clothes/forms.py
szymanskirafal/odziez
029d20da0474a0380e8383f9f89c1072666c5399
[ "MIT" ]
null
null
null
odziez/clothes/forms.py
szymanskirafal/odziez
029d20da0474a0380e8383f9f89c1072666c5399
[ "MIT" ]
null
null
null
odziez/clothes/forms.py
szymanskirafal/odziez
029d20da0474a0380e8383f9f89c1072666c5399
[ "MIT" ]
null
null
null
from django.forms import HiddenInput, ModelForm from .models import Clothe class ClotheCreateForm(ModelForm): class Meta: model = Clothe fields = [ 'ordered', 'received', 'destroyed', ] widgets = { 'ordered': HiddenInput, ...
23.65
50
0.502114
6120674715a508a97f53ed3389f32ae4ce2da505
319
py
Python
medtech_bpa/medtech_bpa/custom_scripts/delivery_note/delivery_note.py
sds2402/MedTech-BPA-1
9b159cb619d363cc89678365642f9af6fd9f59b5
[ "MIT" ]
1
2021-03-25T12:51:19.000Z
2021-03-25T12:51:19.000Z
medtech_bpa/medtech_bpa/custom_scripts/delivery_note/delivery_note.py
sds2402/MedTech-BPA-1
9b159cb619d363cc89678365642f9af6fd9f59b5
[ "MIT" ]
1
2021-11-08T07:20:32.000Z
2021-11-08T07:20:32.000Z
medtech_bpa/medtech_bpa/custom_scripts/delivery_note/delivery_note.py
sds2402/MedTech-BPA-1
9b159cb619d363cc89678365642f9af6fd9f59b5
[ "MIT" ]
9
2021-01-04T10:21:57.000Z
2021-12-08T12:44:48.000Z
from __future__ import unicode_literals import frappe def validate(doc, method): so_name = [row.against_sales_order for row in doc.items if row.against_sales_order] if so_name: so_doc =frappe.get_doc("Sales Order", so_name[0]) so_doc.workflow_state = "Pending Dispatch" so_doc.db_update() frappe.db.commit()
29
84
0.774295
15a0cc1d9daaac15254628060f71077f94ff198a
2,864
py
Python
var/spack/repos/builtin/packages/spdlog/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-08-13T15:24:33.000Z
2021-10-18T18:38:19.000Z
var/spack/repos/builtin/packages/spdlog/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2022-02-26T11:44:34.000Z
2022-03-12T12:14:50.000Z
var/spack/repos/builtin/packages/spdlog/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-01-22T14:01:28.000Z
2020-07-23T21:35:12.000Z
# Copyright 2013-2020 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 Spdlog(CMakePackage): """Very fast, header only, C++ logging library""" homepage = "h...
51.142857
96
0.732891
451048f5741ef34db7dcfa4ec2f7767d50ed6226
30,231
py
Python
src/regressor_bank.py
Paratra/IoTAnalytics_pub
8c1d02b60ef609c3cba654ce4a5568c39fc63edf
[ "MIT" ]
null
null
null
src/regressor_bank.py
Paratra/IoTAnalytics_pub
8c1d02b60ef609c3cba654ce4a5568c39fc63edf
[ "MIT" ]
null
null
null
src/regressor_bank.py
Paratra/IoTAnalytics_pub
8c1d02b60ef609c3cba654ce4a5568c39fc63edf
[ "MIT" ]
1
2021-09-01T13:10:31.000Z
2021-09-01T13:10:31.000Z
''' author: ming ming.song.cn@outlook.com copyright@2020 ''' import os from pdb import Pdb import sys import numpy as np import torch from torch.optim import * from torch import nn, optim, cuda from torch.utils.data import Dataset, DataLoader # from torch.utils.data import from sklearn import preprocessing import cop...
35.316589
155
0.616817
b72ccc9acbc0640e410d65ff6fdcd16e2292324f
794
py
Python
rest_json_helper.py
vzaliva/xbee_temp_sensor
1b1dd275687c2aea2f22a4feb9db5f87a18ad598
[ "Unlicense" ]
1
2016-05-24T23:56:21.000Z
2016-05-24T23:56:21.000Z
rest_json_helper.py
vzaliva/xbee_temp_sensor
1b1dd275687c2aea2f22a4feb9db5f87a18ad598
[ "Unlicense" ]
null
null
null
rest_json_helper.py
vzaliva/xbee_temp_sensor
1b1dd275687c2aea2f22a4feb9db5f87a18ad598
[ "Unlicense" ]
null
null
null
""" Simple helper function to do HTTP request to give URL and parse response as a JSON document. The main reason for this module is to isloate code working with urllib2. In python 2.7 there is a connection leak in urllib2 which could cause some long-term running REST API pollers to stop working. See https://github.co...
26.466667
103
0.693955
ff5fb0449d79543cbff59932218279fccbb6eead
5,788
py
Python
implicit/nmslib_als.py
redbubble/implicit
fe85f79f8b547a75e42186bf5357ad2f395366a4
[ "MIT" ]
null
null
null
implicit/nmslib_als.py
redbubble/implicit
fe85f79f8b547a75e42186bf5357ad2f395366a4
[ "MIT" ]
null
null
null
implicit/nmslib_als.py
redbubble/implicit
fe85f79f8b547a75e42186bf5357ad2f395366a4
[ "MIT" ]
null
null
null
import itertools import logging import numpy from implicit.als import AlternatingLeastSquares from implicit.approximate_als import augment_inner_product_matrix log = logging.getLogger("implicit") logging.getLogger('nmslib').setLevel(logging.WARNING) class NMSLibALSWrapper: """A wrapper of the :class:`~implicit...
42.248175
102
0.666897
5b8d56cea06f1d748129342e9e267429e92496ce
174
py
Python
py2asm/instructions/interrupts.py
malikshahzad228/py2asm
de80070a0a166bc752657040af928da0f3f8be5b
[ "MIT" ]
null
null
null
py2asm/instructions/interrupts.py
malikshahzad228/py2asm
de80070a0a166bc752657040af928da0f3f8be5b
[ "MIT" ]
1
2020-09-05T17:11:09.000Z
2020-09-06T11:24:05.000Z
py2asm/instructions/interrupts.py
malikshahzad228/py2asm
de80070a0a166bc752657040af928da0f3f8be5b
[ "MIT" ]
2
2020-09-02T08:05:20.000Z
2021-05-26T05:27:56.000Z
from py2asm.instructions.base import Instruction class Int(Instruction): name = 'INT' def __init__(self, immediate_byte): super().__init__(immediate_byte)
19.333333
48
0.718391
e7dcefbd7c6769734e9c88774af183f7b2a88d6f
1,357
py
Python
final_configs/mnist_frozen_DDTPRHL.py
manuel-delverme/difference_target_propagation
3e1630f7304a7367a5116ef3fb7ee9492e3b9065
[ "Apache-2.0" ]
15
2020-11-04T04:41:14.000Z
2022-03-13T02:52:25.000Z
final_configs/mnist_frozen_DDTPRHL.py
manuel-delverme/difference_target_propagation
3e1630f7304a7367a5116ef3fb7ee9492e3b9065
[ "Apache-2.0" ]
null
null
null
final_configs/mnist_frozen_DDTPRHL.py
manuel-delverme/difference_target_propagation
3e1630f7304a7367a5116ef3fb7ee9492e3b9065
[ "Apache-2.0" ]
7
2021-01-11T01:33:49.000Z
2022-01-11T01:16:49.000Z
config = { 'lr': 0.0012747819097520146, 'target_stepsize': 0.02480955861721637, 'beta1': 0.9, 'beta2': 0.999, 'epsilon': 5.716850868633521e-05, 'lr_fb': 0.0006038728632117109, 'sigma': 0.03631642883132282, 'feedback_wd': 9.454160319664471e-05, 'beta1_fb': 0.99, 'beta2_fb': 0.999, 'epsilon_fb': 3.6548150986492877e-06, '...
24.232143
40
0.728077
b4dca49fd5ffeecf8ae9fdd20e561ce7522111b1
905
py
Python
alipay/aop/api/domain/AlipayOpenPublicGroupDeleteModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOpenPublicGroupDeleteModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOpenPublicGroupDeleteModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenPublicGroupDeleteModel(object): def __init__(self): self._group_id = None @property def group_id(self): return self._group_id @group_id.sette...
22.073171
67
0.59779
6a082b42fedc1873cbb8146b65556196fab5b240
5,733
py
Python
Collections-a-installer/community-general-2.4.0/plugins/modules/ovirt_permission_facts.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
5
2020-12-16T21:42:09.000Z
2022-03-28T16:04:32.000Z
Collections-a-installer/community-general-2.4.0/plugins/modules/ovirt_permission_facts.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
null
null
null
Collections-a-installer/community-general-2.4.0/plugins/modules/ovirt_permission_facts.py
d-amien-b/simple-getwordpress
da90d515a0aa837b633d50db4d91d22b031c04a2
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2016 Red Hat, Inc. # # This file is part of Ansible # # Ansible 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 #...
34.329341
148
0.677481
487da42a4a23e4fc4a20cd169a179383d674d3da
3,056
py
Python
patterns/cli/commands/upload.py
basis-os/basis-devkit
0e650457a905782ffd66b226d17f3d9546b4ed3b
[ "BSD-3-Clause" ]
7
2021-12-08T17:17:33.000Z
2022-03-31T04:23:43.000Z
patterns/cli/commands/upload.py
basis-os/basis-devkit
0e650457a905782ffd66b226d17f3d9546b4ed3b
[ "BSD-3-Clause" ]
28
2021-10-14T18:46:36.000Z
2022-03-30T20:39:15.000Z
patterns/cli/commands/upload.py
basis-os/basis-devkit
0e650457a905782ffd66b226d17f3d9546b4ed3b
[ "BSD-3-Clause" ]
null
null
null
from pathlib import Path from typer import Option, Argument from patterns.cli.services.deploy import deploy_graph_version from patterns.cli.services.graph_components import create_graph_component from patterns.cli.services.lookup import IdLookup from patterns.cli.services.output import sprint, abort_on_error from pat...
39.688312
88
0.654777
d12a6b31c004895a8997c46226ccc9b9bec476a0
238
py
Python
Model Productionization/Task 1 - Creating and Debugging ML App/project.py
akashloka/Innomatics-Research-Labs-Data-Science
0537b1ae585d665eef3598327fc66b327a471228
[ "MIT" ]
null
null
null
Model Productionization/Task 1 - Creating and Debugging ML App/project.py
akashloka/Innomatics-Research-Labs-Data-Science
0537b1ae585d665eef3598327fc66b327a471228
[ "MIT" ]
null
null
null
Model Productionization/Task 1 - Creating and Debugging ML App/project.py
akashloka/Innomatics-Research-Labs-Data-Science
0537b1ae585d665eef3598327fc66b327a471228
[ "MIT" ]
null
null
null
import streamlit as st import data_app as da import ml_app as ma def main(): # EDA da.main() st.header("LogisticRegression Predictor :sunglasses:") # Predictor ma.main() if(__name__ == '__main__'): main()
11.333333
58
0.634454
800a1638d527081216b90f31ae8f4d20ef35ab4e
739
py
Python
spacy/tests/regression/test_issue8190.py
ZeeD/spaCy
884d439413662e45feba2d989f383234c0340b9d
[ "BSD-3-Clause", "MIT" ]
1
2021-06-29T08:15:09.000Z
2021-06-29T08:15:09.000Z
spacy/tests/regression/test_issue8190.py
ZeeD/spaCy
884d439413662e45feba2d989f383234c0340b9d
[ "BSD-3-Clause", "MIT" ]
1
2021-06-22T13:32:07.000Z
2021-06-23T09:15:29.000Z
spacy/tests/regression/test_issue8190.py
ZeeD/spaCy
884d439413662e45feba2d989f383234c0340b9d
[ "BSD-3-Clause", "MIT" ]
1
2021-06-25T02:39:44.000Z
2021-06-25T02:39:44.000Z
import spacy from spacy.lang.en import English from ..util import make_tempdir def test_issue8190(): """Test that config overrides are not lost after load is complete.""" source_cfg = { "nlp": { "lang": "en", }, "custom": { "key": "value" } } so...
25.482759
73
0.558863
016830cb67a7682e8b291cff70f748ba23b7682d
5,796
py
Python
processing.py
dssg/mlpolicylab_fall20_bills1_public
c0b991daf24ef8d35689bbd7ad83baf142c420a2
[ "MIT" ]
null
null
null
processing.py
dssg/mlpolicylab_fall20_bills1_public
c0b991daf24ef8d35689bbd7ad83baf142c420a2
[ "MIT" ]
null
null
null
processing.py
dssg/mlpolicylab_fall20_bills1_public
c0b991daf24ef8d35689bbd7ad83baf142c420a2
[ "MIT" ]
1
2021-11-22T19:34:00.000Z
2021-11-22T19:34:00.000Z
import string import re import time import pandas as pd from tqdm import tqdm from nltk.tokenize import word_tokenize from nltk.corpus import stopwords from nltk.stem import PorterStemmer # or LancasterStemmer, RegexpStemmer, SnowballStemmer from nltk.stem import WordNetLemmatizer from multiprocessing import Pool fro...
35.341463
130
0.673395
000abd7ca8401c4f8cd1ba9e076949f644ed20e7
11,985
py
Python
PubMedNotifier.py
amartos/PubMedNotifier
b2aef9fa8a64d0d5400b08730db00653971592b2
[ "MIT" ]
null
null
null
PubMedNotifier.py
amartos/PubMedNotifier
b2aef9fa8a64d0d5400b08730db00653971592b2
[ "MIT" ]
null
null
null
PubMedNotifier.py
amartos/PubMedNotifier
b2aef9fa8a64d0d5400b08730db00653971592b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os, sys, argparse import re, datetime, textwrap import metapub import configparser from xdg import (XDG_CACHE_HOME, XDG_DATA_HOME, XDG_CONFIG_HOME) class EmailSyntaxError(ValueError): """Error to raise if the provided e-mail is not syntactically valid.""" pass class EmptyDe...
36.539634
110
0.571464
3a6a174366c856bf6a6696b3a0c560d8785a5719
9,598
py
Python
codecarbon/viz/data.py
fvaleye/codecarbon
9564dc53a94aeda9816316404290e3e5067336c5
[ "MIT" ]
null
null
null
codecarbon/viz/data.py
fvaleye/codecarbon
9564dc53a94aeda9816316404290e3e5067336c5
[ "MIT" ]
null
null
null
codecarbon/viz/data.py
fvaleye/codecarbon
9564dc53a94aeda9816316404290e3e5067336c5
[ "MIT" ]
null
null
null
from typing import Dict, List, Tuple import dash_table as dt import pandas as pd from codecarbon.core.emissions import Emissions from codecarbon.input import DataSource, DataSourceException class Data: def __init__(self): self._data_source = DataSource() self._emissions = Emissions(self._data_so...
41.37069
118
0.577933
81ab0ab09f1d1148603c7750e33ea35fb496e0a3
2,996
py
Python
beta/UNET.py
Mike-n-ike/deep-learning-for-pkd-patients
9812a0a54d42dee0d986c78f046ae9fb7d0027db
[ "MIT" ]
null
null
null
beta/UNET.py
Mike-n-ike/deep-learning-for-pkd-patients
9812a0a54d42dee0d986c78f046ae9fb7d0027db
[ "MIT" ]
null
null
null
beta/UNET.py
Mike-n-ike/deep-learning-for-pkd-patients
9812a0a54d42dee0d986c78f046ae9fb7d0027db
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torchvision.transforms.functional as TF class DoubleConv(nn.Module): def __init__(self, in_channels, out_channels): super(DoubleConv, self).__init__() self.conv = nn.Sequential( nn.Conv2d(in_channels, out_channels, kernel_size=3, stride=1, paddi...
33.288889
131
0.590788
2f3df41013cfc23e0fd223fa20a8a21ac0eea406
2,605
py
Python
delegates/lgbattery.py
stevepbyrne/dbus-systemcalc-py
4d50ca36af51bbe1e3040cb63f60ef262da5d397
[ "MIT" ]
5
2018-07-08T20:05:52.000Z
2021-11-29T03:07:00.000Z
delegates/lgbattery.py
stevepbyrne/dbus-systemcalc-py
4d50ca36af51bbe1e3040cb63f60ef262da5d397
[ "MIT" ]
2
2016-10-13T13:02:54.000Z
2021-03-05T17:08:55.000Z
delegates/lgbattery.py
stevepbyrne/dbus-systemcalc-py
4d50ca36af51bbe1e3040cb63f60ef262da5d397
[ "MIT" ]
13
2015-04-13T12:21:24.000Z
2022-01-24T16:28:35.000Z
import logging from dbus.exceptions import DBusException from delegates.base import SystemCalcDelegate class LgCircuitBreakerDetect(SystemCalcDelegate): def __init__(self): SystemCalcDelegate.__init__(self) self._lg_voltage_buffer = None self._lg_battery = None def set_sources(self, dbusmonitor, settings, dbu...
42.704918
96
0.758925
410af19fbd3849a42747e895c6646a23530149cc
1,392
py
Python
google/appengine/_internal/django/utils/version.py
vladushakov987/appengine_python3
0dd481c73e2537a50ee10f1b79cd65938087e555
[ "Apache-2.0" ]
null
null
null
google/appengine/_internal/django/utils/version.py
vladushakov987/appengine_python3
0dd481c73e2537a50ee10f1b79cd65938087e555
[ "Apache-2.0" ]
null
null
null
google/appengine/_internal/django/utils/version.py
vladushakov987/appengine_python3
0dd481c73e2537a50ee10f1b79cd65938087e555
[ "Apache-2.0" ]
null
null
null
from google.appengine._internal import django import os.path import re def get_svn_revision(path=None): """ Returns the SVN revision in the form SVN-XXXX, where XXXX is the revision number. Returns SVN-unknown if anything goes wrong, such as an unexpected format of internal SVN files. If pat...
31.636364
81
0.62069
cae976e944676f75cdc057a32a6d7e0d68b79aac
962
py
Python
setup.py
znerol/spreadflow-delta
246f6d61072c41b5a8a68053650b731981259aab
[ "MIT" ]
null
null
null
setup.py
znerol/spreadflow-delta
246f6d61072c41b5a8a68053650b731981259aab
[ "MIT" ]
null
null
null
setup.py
znerol/spreadflow-delta
246f6d61072c41b5a8a68053650b731981259aab
[ "MIT" ]
null
null
null
from setuptools import setup tests_require = [ 'coveralls', 'mock', 'testtools' ] setup( name='SpreadFlowDelta', version='0.0.1', description='Common SpreadFlow processors for delta-type messages', author='Lorenz Schori', author_email='lo@znerol.ch', url='https://github.com/znerol/...
24.666667
71
0.608108
7d3f4706f25527af22f874cc47d480c4ff3f768b
925
py
Python
nlcpy_test/712_IReadWrite_Shared.py
SX-Aurora/mpi4py-ve
aa6b1f97933196f8a485d5d808e89d5a29b58b1c
[ "BSD-2-Clause" ]
null
null
null
nlcpy_test/712_IReadWrite_Shared.py
SX-Aurora/mpi4py-ve
aa6b1f97933196f8a485d5d808e89d5a29b58b1c
[ "BSD-2-Clause" ]
null
null
null
nlcpy_test/712_IReadWrite_Shared.py
SX-Aurora/mpi4py-ve
aa6b1f97933196f8a485d5d808e89d5a29b58b1c
[ "BSD-2-Clause" ]
null
null
null
from mpi4pyve import MPI import numpy as np import nlcpy as vp from utils_io import get_fh comm = MPI.COMM_WORLD size = comm.Get_size() rank = comm.Get_rank() fh = get_fh() fh.Set_size(0) fh.Set_view(0, MPI.INT) x = vp.array([1,2,3], dtype=int) y = vp.empty(3, dtype=int) print("x = ",x) print("type(x) = ",typ...
18.877551
60
0.641081
fcee05a5a6a9adcb8f8db425c521c7c23fed06fc
3,323
py
Python
utils/pager.py
mmmattleung/django_blog
cbb4ddf1737f7f09248d172478fcd9e2b79b7f0a
[ "Apache-2.0" ]
null
null
null
utils/pager.py
mmmattleung/django_blog
cbb4ddf1737f7f09248d172478fcd9e2b79b7f0a
[ "Apache-2.0" ]
7
2020-06-06T00:37:13.000Z
2022-03-12T00:13:10.000Z
utils/pager.py
mmmattleung/django_blog
cbb4ddf1737f7f09248d172478fcd9e2b79b7f0a
[ "Apache-2.0" ]
1
2020-10-27T03:30:25.000Z
2020-10-27T03:30:25.000Z
import copy from django.urls import reverse from django.core.paginator import Paginator,Page,PageNotAnInteger,EmptyPage def get_pager(self, request, articles, pages): def _get_request_param(request): page_param_dict = copy.deepcopy(request.GET) page_param_dict._mutable = True if request.GE...
33.565657
102
0.552212
ad172acaf89d6275296f7d80da6bbe43039bb66c
334
py
Python
vow.py
CrownCrafter/School
488810b223ad746d7d1b396e609ce8f90f25662c
[ "MIT" ]
null
null
null
vow.py
CrownCrafter/School
488810b223ad746d7d1b396e609ce8f90f25662c
[ "MIT" ]
null
null
null
vow.py
CrownCrafter/School
488810b223ad746d7d1b396e609ce8f90f25662c
[ "MIT" ]
1
2021-02-06T04:28:17.000Z
2021-02-06T04:28:17.000Z
#!/usr/bin/env python3 s = input("Enter string ") v = 0 c = 0 u = 0 l = 0 for i in s: if(i in 'aeiouAEIOU'): v +=1 else: c +=1 if(i.isupper() == True): u += 1 else: l += 1 print("Vowels " + str(v)) print("Consonants " + str(c)) print("Uppercase " + str(u)) print("Lowercas...
16.7
29
0.488024
1ba9fdb709c41b5dd639de2b461565007c051214
1,348
py
Python
vpv/ui/views/ui_editor_tab.py
Dorky-Lever/vpv
0f156b2ad79cbb7060140434e34b5841ab5b1a26
[ "Apache-2.0" ]
null
null
null
vpv/ui/views/ui_editor_tab.py
Dorky-Lever/vpv
0f156b2ad79cbb7060140434e34b5841ab5b1a26
[ "Apache-2.0" ]
null
null
null
vpv/ui/views/ui_editor_tab.py
Dorky-Lever/vpv
0f156b2ad79cbb7060140434e34b5841ab5b1a26
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui_editor_tab.ui' # # Created by: PyQt5 UI code generator 5.7 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_console(object): def setupUi(self, console): console.set...
37.444444
78
0.72181
35c202aa5bfc5885117bd57c2e9015eed05952c6
817
py
Python
lecture_03/16_inverse_kinematics_rhino.py
g-jami/COMPAS-II-FS2021
3282036db5f7caa2d904370d47878e578092ae24
[ "MIT" ]
48
2021-11-27T05:28:31.000Z
2022-02-06T16:08:30.000Z
lecture_03/16_inverse_kinematics_rhino.py
g-jami/COMPAS-II-FS2021
3282036db5f7caa2d904370d47878e578092ae24
[ "MIT" ]
15
2021-03-03T10:50:59.000Z
2021-06-21T07:47:47.000Z
lecture_03/16_inverse_kinematics_rhino.py
g-jami/COMPAS-II-FS2021
3282036db5f7caa2d904370d47878e578092ae24
[ "MIT" ]
25
2021-03-02T15:08:11.000Z
2022-03-29T14:34:20.000Z
from compas.geometry import Frame from compas.robots import LocalPackageMeshLoader from compas.robots import RobotModel from compas_rhino.artists import RobotModelArtist from ur_kinematics import inverse_kinematics_ur5 loader = LocalPackageMeshLoader('models', 'ur_description') model = RobotModel.from_urdf_file(loade...
31.423077
80
0.773562
ccc0a987ed824e16ae1ded79fe754d6cf75a735f
5,389
py
Python
src/utils/setup.py
danielecalda/ReviewExplanationExtraction
91bb212f91cec6283e668eaba4196104e27e8ba1
[ "Apache-2.0" ]
null
null
null
src/utils/setup.py
danielecalda/ReviewExplanationExtraction
91bb212f91cec6283e668eaba4196104e27e8ba1
[ "Apache-2.0" ]
null
null
null
src/utils/setup.py
danielecalda/ReviewExplanationExtraction
91bb212f91cec6283e668eaba4196104e27e8ba1
[ "Apache-2.0" ]
null
null
null
import pickle import json import collections import spacy from metal.contrib.info_extraction.mentions import RelationMention import numpy as np import progressbar DATA_FILE1 = 'data/train_examples.pkl' DATA_FILE2 = 'data/dev_examples.pkl' DATA_FILE3 = 'data/test_examples.pkl' DATA_FILE4 = 'data/train_labels.pkl' DATA...
31.7
102
0.597142
dfedabde77a5cd04811f4dc4e63ab0a2b6e5b327
625
py
Python
lumen/showcase/migrations/0006_auto_20210728_0454.py
kowabunga314/lumen
df2f87ca3c7fda19eafe99e8e59b3376c25cfd80
[ "MIT" ]
null
null
null
lumen/showcase/migrations/0006_auto_20210728_0454.py
kowabunga314/lumen
df2f87ca3c7fda19eafe99e8e59b3376c25cfd80
[ "MIT" ]
null
null
null
lumen/showcase/migrations/0006_auto_20210728_0454.py
kowabunga314/lumen
df2f87ca3c7fda19eafe99e8e59b3376c25cfd80
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-28 04:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('showcase', '0005_auto_20210728_0438'), ] operations = [ migrations.AlterField( model_name='photo', name='photo', ...
26.041667
92
0.6
571ff120fb77b6904ef297ac3255082a53b00677
881
py
Python
modules/tests/morgan.py
ansteh/multivariate
fbd166f9e9a6d721a1d876b6e46db064f43afe53
[ "Apache-2.0" ]
null
null
null
modules/tests/morgan.py
ansteh/multivariate
fbd166f9e9a6d721a1d876b6e46db064f43afe53
[ "Apache-2.0" ]
null
null
null
modules/tests/morgan.py
ansteh/multivariate
fbd166f9e9a6d721a1d876b6e46db064f43afe53
[ "Apache-2.0" ]
null
null
null
import pandas as ps import numpy as np import os, sys sys.path.append('../../modules/') from analysis.covariance import cov from analysis.symmetric import isSymmetric from analysis.definite import isPositiveDefinite from analysis.correlation import corr from algorithms.morgan import morgan data = ps.read_csv(os.path....
27.53125
101
0.684449
2b137307b39843adc622ed35bdda087587ba8623
24,354
bzl
Python
tensorflow/core/platform/default/build_config.bzl
mouse36872/tensorflow
64228599fdeeec0bf504485901a8c8e558a5a9ad
[ "Apache-2.0" ]
2
2017-09-20T22:52:37.000Z
2018-09-26T18:43:27.000Z
tensorflow/core/platform/default/build_config.bzl
mouse36872/tensorflow
64228599fdeeec0bf504485901a8c8e558a5a9ad
[ "Apache-2.0" ]
null
null
null
tensorflow/core/platform/default/build_config.bzl
mouse36872/tensorflow
64228599fdeeec0bf504485901a8c8e558a5a9ad
[ "Apache-2.0" ]
3
2017-09-20T22:52:39.000Z
2018-10-14T11:10:21.000Z
# Platform-specific build configurations. load("@com_google_protobuf//:protobuf.bzl", "proto_gen") load("//tensorflow:tensorflow.bzl", "clean_dep", "if_not_windows") load("//tensorflow/core/platform:default/build_config_root.bzl", "if_static") load("@local_config_cuda//cuda:build_defs.bzl", "if_cuda") load("@local_con...
33.179837
111
0.612795
5822ff7a0b5e74cb4dda79bc0e44e7d8f2d9bdd7
284
py
Python
admin/actions/deploy/samples/echobody.py
sciabarra/io-sdk
4fa4e3dbf56a653162730ccf6b74845b97b915e4
[ "MIT" ]
6
2020-06-16T06:46:15.000Z
2020-07-26T21:44:40.000Z
admin/actions/deploy/samples/echobody.py
sciabarra/io-sdk
4fa4e3dbf56a653162730ccf6b74845b97b915e4
[ "MIT" ]
32
2020-06-15T07:18:03.000Z
2020-11-28T19:17:36.000Z
admin/actions/deploy/samples/echobody.py
sciabarra/io-sdk
4fa4e3dbf56a653162730ccf6b74845b97b915e4
[ "MIT" ]
18
2020-06-15T12:22:05.000Z
2020-11-28T19:14:16.000Z
import base64 import time import os import json import pip def main(args): body = args["__ow_body"] if args["__ow_headers"]["content-type"] == "application/json": body = base64.b64decode(body).decode("utf-8") body = json.loads(body) return { "body": body }
20.285714
66
0.651408
8a0e509e664833213b66e14d68c19bc6e68361ce
4,781
py
Python
2015/advent22.py
AwesomeGitHubRepos/adventofcode
84ba7963a5d7905973f14bb1c2e3a59165f8b398
[ "MIT" ]
96
2018-04-21T07:53:34.000Z
2022-03-15T11:00:02.000Z
2015/advent22.py
AwesomeGitHubRepos/adventofcode
84ba7963a5d7905973f14bb1c2e3a59165f8b398
[ "MIT" ]
17
2019-02-07T05:14:47.000Z
2021-12-27T12:11:04.000Z
2015/advent22.py
AwesomeGitHubRepos/adventofcode
84ba7963a5d7905973f14bb1c2e3a59165f8b398
[ "MIT" ]
14
2019-02-05T06:34:15.000Z
2022-01-24T17:35:00.000Z
from collections import namedtuple from functools import reduce from heapq import heappop, heappush from itertools import count class Spell(namedtuple('BaseSpell', 'name cost effect turns damage heal armour mana')): def __new__(cls, name, cost, effect=False, turns=None, damage=0, heal=0, ...
35.414815
79
0.576239
256bcb3494fa644476975dcb3f3e4c5a6f9e7116
753
py
Python
fairseq/criterions/__init__.py
atliSig/entropyRegularization
34a127cef30237a6b72d7b5b33d5f8f263904fc0
[ "MIT" ]
8
2020-05-03T19:20:00.000Z
2021-04-21T06:38:53.000Z
fairseq/criterions/__init__.py
atliSig/entropyRegularization
34a127cef30237a6b72d7b5b33d5f8f263904fc0
[ "MIT" ]
null
null
null
fairseq/criterions/__init__.py
atliSig/entropyRegularization
34a127cef30237a6b72d7b5b33d5f8f263904fc0
[ "MIT" ]
1
2020-10-29T15:32:38.000Z
2020-10-29T15:32:38.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import importlib import os from fairseq import registry from fairseq.criterions.fairseq_criterion import FairseqCriterion build_criterion, r...
31.375
82
0.754316
6680e2d6f42b8aef1c1ac53f584946e28c7b07bb
1,033
py
Python
discogs2xlsx/__init__.py
fscm/discogs2xlsx
b478c78a61cc90ef981b1c9372dabe42538e78aa
[ "MIT" ]
5
2021-02-18T18:21:38.000Z
2021-11-08T11:42:32.000Z
discogs2xlsx/__init__.py
fscm/discogs2xlsx
b478c78a61cc90ef981b1c9372dabe42538e78aa
[ "MIT" ]
null
null
null
discogs2xlsx/__init__.py
fscm/discogs2xlsx
b478c78a61cc90ef981b1c9372dabe42538e78aa
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # # copyright: 2020-2021, Frederico Martins # author: Frederico Martins <http://github.com/fscm> # license: SPDX-License-Identifier: MIT """discogs2xlsx. Export your Discogs collection or wantlist into a xlsx file. This tool will try to export your collection or wantlist from Discogs into a `...
29.514286
70
0.745402
a3bbbc82f2b3b34be50a47c2f3d74b98e012ec04
805
py
Python
daiquiri/jobs/migrations/0010_add_fields.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
14
2018-12-23T18:35:02.000Z
2021-12-15T04:55:12.000Z
daiquiri/jobs/migrations/0010_add_fields.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
40
2018-12-20T12:44:05.000Z
2022-03-21T11:35:20.000Z
daiquiri/jobs/migrations/0010_add_fields.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
5
2019-05-16T08:03:35.000Z
2021-08-23T20:03:11.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-07-24 15:28 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('daiquiri_jobs', '0009_meta'), ] operations = [ migrations.AddField( ...
25.967742
73
0.581366
f58902e03e46284be99d9528a3e4d6e87de13bdb
25,864
py
Python
interface_grafica/doc_qrc.py
GTL98/Exon-Finder
b27501207338c728d0cccfed64cd886765bb96b4
[ "MIT" ]
null
null
null
interface_grafica/doc_qrc.py
GTL98/Exon-Finder
b27501207338c728d0cccfed64cd886765bb96b4
[ "MIT" ]
null
null
null
interface_grafica/doc_qrc.py
GTL98/Exon-Finder
b27501207338c728d0cccfed64cd886765bb96b4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.15.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x10\x08\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ ...
59.050228
130
0.713927
8958d594db951fc45e4ca793233c828ba47886a2
2,276
py
Python
examples/contrib/cifar100_amp_benchmark/benchmark_fp32.py
louis-she/ignite
d05a8939139e056e5c5daf842c81af0ab5b0caaf
[ "BSD-3-Clause" ]
3
2021-12-15T17:08:20.000Z
2022-01-06T14:53:09.000Z
examples/contrib/cifar100_amp_benchmark/benchmark_fp32.py
louis-she/ignite
d05a8939139e056e5c5daf842c81af0ab5b0caaf
[ "BSD-3-Clause" ]
null
null
null
examples/contrib/cifar100_amp_benchmark/benchmark_fp32.py
louis-she/ignite
d05a8939139e056e5c5daf842c81af0ab5b0caaf
[ "BSD-3-Clause" ]
null
null
null
import fire import torch from torch.nn import CrossEntropyLoss from torch.optim import SGD from torchvision.models import wide_resnet50_2 from utils import get_train_eval_loaders from ignite.contrib.handlers import ProgressBar from ignite.engine import convert_tensor, create_supervised_evaluator, Engine, Events from i...
32.985507
110
0.714411
a7d0d8fa4c84549233033373bb5923c2b8203ef1
11,550
py
Python
Python/klampt/sim/batch.py
ipa-rmb-mr/Klampt
71793b54eead788811b4e62bcf8dadb49b68ff17
[ "BSD-3-Clause" ]
null
null
null
Python/klampt/sim/batch.py
ipa-rmb-mr/Klampt
71793b54eead788811b4e62bcf8dadb49b68ff17
[ "BSD-3-Clause" ]
null
null
null
Python/klampt/sim/batch.py
ipa-rmb-mr/Klampt
71793b54eead788811b4e62bcf8dadb49b68ff17
[ "BSD-3-Clause" ]
null
null
null
from ..robotsim import * from ..model import access from simulation import SimpleSimulator import time def getWorldSimState(world): """Returns a dict containing a copy of all variables that are simulated in the world. Can be used with setWorldSimState to save/ restore state. NOTE: this does not perf...
41.103203
91
0.618009
8afca7c1f9e3c2a76f6cbb6b19d1b01c72783652
4,114
py
Python
ct/py/csv_comparer_test.py
isabella232/skia-buildbot
6bfdd3e57760c114fdd6b207a4a254e01c0579be
[ "BSD-3-Clause" ]
119
2015-01-09T20:49:54.000Z
2022-02-20T03:03:54.000Z
ct/py/csv_comparer_test.py
isabella232/skia-buildbot
6bfdd3e57760c114fdd6b207a4a254e01c0579be
[ "BSD-3-Clause" ]
74
2018-06-22T09:57:11.000Z
2022-03-28T14:10:25.000Z
ct/py/csv_comparer_test.py
isabella232/skia-buildbot
6bfdd3e57760c114fdd6b207a4a254e01c0579be
[ "BSD-3-Clause" ]
55
2015-01-23T13:45:32.000Z
2022-02-20T03:11:46.000Z
#!/usr/bin/env python # Copyright (c) 2013 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. """Tests for module csv_merger.""" import datetime import filecmp import os import shutil import tempfile import unittest import ...
34.864407
75
0.672095
eb3e60bcdc28f7c2fd2c12f6c0f31cfdccd30aa1
5,491
py
Python
send.py
jlinoff/simple-client-server
b5a9cf05f140f34df47aefead4981455c04a7e83
[ "MIT" ]
4
2016-11-03T17:08:46.000Z
2021-09-21T13:57:32.000Z
send.py
jlinoff/simple-client-server
b5a9cf05f140f34df47aefead4981455c04a7e83
[ "MIT" ]
null
null
null
send.py
jlinoff/simple-client-server
b5a9cf05f140f34df47aefead4981455c04a7e83
[ "MIT" ]
2
2018-03-28T12:43:22.000Z
2021-09-21T13:57:33.000Z
#!/usr/bin/env python ''' Simple sender. Sends messages over a specific port to a host at periodic intervals. Here is an example that sends messages to recv_host on port 8500. $ firewall-cmd --zone=public --add-port=8500/tcp $ send.py --host recv_host --port 8500 Here is what you would run on the recv_host: ...
27.873096
99
0.516482
3729ed86845f9e46358ae63361144b6e9a0770c3
781
py
Python
foaflib/classes/onlineaccount.py
lmaurits/foaflib
d194357ba0631c03d581fb84522107f2893cc4d0
[ "BSD-3-Clause" ]
null
null
null
foaflib/classes/onlineaccount.py
lmaurits/foaflib
d194357ba0631c03d581fb84522107f2893cc4d0
[ "BSD-3-Clause" ]
null
null
null
foaflib/classes/onlineaccount.py
lmaurits/foaflib
d194357ba0631c03d581fb84522107f2893cc4d0
[ "BSD-3-Clause" ]
null
null
null
import rdflib class OnlineAccount(object): def __init__(self, graph=None, node=None): self.accountServiceHomepage = "" self.accountName = "" self.accountProfilePage = "" if graph and node: for homepage in graph.objects(subject=node, predicate=rdflib.URIRef('http://xmlns.com/foa...
45.941176
133
0.674776
5aad5b1d97ebace9a79cdbbcf5bbbcf325d4cb04
7,806
py
Python
lightcone_resample/util_scripts/plot_redshift_color_diagnostics.py
ArgonneCPAC/skysim
f271debe3439efd1ae5230c6020b2dbc5f79d824
[ "BSD-2-Clause" ]
4
2020-08-08T10:01:49.000Z
2022-02-27T07:21:00.000Z
lightcone_resample/util_scripts/plot_redshift_color_diagnostics.py
ArgonneCPAC/skysim
f271debe3439efd1ae5230c6020b2dbc5f79d824
[ "BSD-2-Clause" ]
67
2018-07-16T22:12:16.000Z
2020-07-02T01:12:48.000Z
lightcone_resample/util_scripts/plot_redshift_color_diagnostics.py
aphearin/cosmodc2
5bc2abebd7123f29b424efc11c3ef374a51cd6c1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2.7 from __future__ import print_function, division import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as clr from matplotlib import cm import dtk import h5py import sys import time from scipy import stats def get_hfiles(fname, healpix_pixels): if len(healpix_pix...
32.661088
100
0.614399
770b7622edc0e033f94a22ed1113857ac09fa827
106
py
Python
config/test_run.py
ibalagurov/selenoid_workshop
39a3d9348e41fe508cbfa46954d2e3aecb05e638
[ "MIT" ]
1
2020-08-24T07:41:29.000Z
2020-08-24T07:41:29.000Z
config/test_run.py
ibalagurov/selenoid_workshop
39a3d9348e41fe508cbfa46954d2e3aecb05e638
[ "MIT" ]
null
null
null
config/test_run.py
ibalagurov/selenoid_workshop
39a3d9348e41fe508cbfa46954d2e3aecb05e638
[ "MIT" ]
null
null
null
from config import env ONE_SESSION = env.get_bool("ONE_SESSION", False) GGR = env.get_bool("GGR", False)
21.2
48
0.745283
a750e5327687607e89115b278e34fb00907308e1
3,682
py
Python
netneurotools/civet.py
liuzhenqi77/netneurotools
fbdf9a3c0e4c5734dda336218553da50fae54267
[ "BSD-3-Clause" ]
18
2019-08-01T00:15:17.000Z
2022-03-12T07:09:13.000Z
netneurotools/civet.py
liuzhenqi77/netneurotools
fbdf9a3c0e4c5734dda336218553da50fae54267
[ "BSD-3-Clause" ]
100
2018-11-03T17:36:35.000Z
2021-12-11T13:21:20.000Z
netneurotools/civet.py
liuzhenqi77/netneurotools
fbdf9a3c0e4c5734dda336218553da50fae54267
[ "BSD-3-Clause" ]
19
2017-10-24T14:44:31.000Z
2022-01-21T02:19:42.000Z
# -*- coding: utf-8 -*- """ Functions for working with CIVET data (ugh) """ import nibabel as nib import numpy as np from scipy.interpolate import griddata from .datasets import fetch_civet, fetch_fsaverage _MNI305to152 = np.array([[0.9975, -0.0073, 0.0176, -0.0429], [0.0146, 1.0009, -0.0024...
33.779817
79
0.58365
82cd40dde852df34836dae9c52391c6b167143c0
6,223
py
Python
jina/__init__.py
Virus2466/jina
9ca715bf73558c9a63aeb43205073a4404011a47
[ "Apache-2.0" ]
1
2022-02-11T07:19:59.000Z
2022-02-11T07:19:59.000Z
jina/__init__.py
Sangwan5688/jina
ecd810543e19f91af80e91df11afb03ff96b1ec6
[ "Apache-2.0" ]
null
null
null
jina/__init__.py
Sangwan5688/jina
ecd810543e19f91af80e91df11afb03ff96b1ec6
[ "Apache-2.0" ]
null
null
null
""" Top-level module of Jina. The primary function of this module is to import all of the public Jina interfaces into a single place. The interfaces themselves are located in sub-modules, as described below. """ import datetime as _datetime import os as _os import platform as _platform import signal as _signal impor...
29.633333
122
0.712839
97a7757b74c82adad494657f789787c838407312
8,568
py
Python
demo_docs/source/conf.py
consiglionazionaledellericerche/docs-cnr-theme
8b041ffac388f737aa18aa2160b642c56cc6d898
[ "BSD-3-Clause" ]
null
null
null
demo_docs/source/conf.py
consiglionazionaledellericerche/docs-cnr-theme
8b041ffac388f737aa18aa2160b642c56cc6d898
[ "BSD-3-Clause" ]
null
null
null
demo_docs/source/conf.py
consiglionazionaledellericerche/docs-cnr-theme
8b041ffac388f737aa18aa2160b642c56cc6d898
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Sphinx RTD theme demo documentation build configuration file, created by # sphinx-quickstart on Sun Nov 3 11:56:36 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated...
31.970149
109
0.713819
21cd7e571d3c5d7a1c0ebed202ee0607108b4abc
3,967
py
Python
plugins/inline.py
fakeenemy01/ProMusicBot
276d7a658a07bb13acd66090a2cd0fa93303c0b1
[ "MIT" ]
1
2021-08-18T05:37:42.000Z
2021-08-18T05:37:42.000Z
plugins/inline.py
fakeenemy01/ProMusicBot
276d7a658a07bb13acd66090a2cd0fa93303c0b1
[ "MIT" ]
null
null
null
plugins/inline.py
fakeenemy01/ProMusicBot
276d7a658a07bb13acd66090a2cd0fa93303c0b1
[ "MIT" ]
null
null
null
#MIT License #Copyright (c) 2021 @Professor_Botz #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, merge, publ...
39.67
274
0.62667
ae747ea7dee7e580055ace55bd218d06c059917a
391
py
Python
imparh/candidatos/migrations/0003_auto_20201103_1946.py
alexandresillva/imparh
c1eb2e05376a76520ca7e254d73a3981bd6234b0
[ "MIT" ]
null
null
null
imparh/candidatos/migrations/0003_auto_20201103_1946.py
alexandresillva/imparh
c1eb2e05376a76520ca7e254d73a3981bd6234b0
[ "MIT" ]
null
null
null
imparh/candidatos/migrations/0003_auto_20201103_1946.py
alexandresillva/imparh
c1eb2e05376a76520ca7e254d73a3981bd6234b0
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-03 22:46 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('candidatos', '0002_auto_20201103_1945'), ] operations = [ migrations.RenameField( model_name='candidato', old_name='rg_orgao...
20.578947
50
0.613811
80c98f2e0778f03713cd05aedac004e65cad50b3
796
py
Python
scrapy/scrapy_crawler/pipelines.py
FedeGuastadisegni/PS-WB
2012e0bb70a63ca55d5956e2fdbb4c15bc2011d6
[ "MIT" ]
null
null
null
scrapy/scrapy_crawler/pipelines.py
FedeGuastadisegni/PS-WB
2012e0bb70a63ca55d5956e2fdbb4c15bc2011d6
[ "MIT" ]
null
null
null
scrapy/scrapy_crawler/pipelines.py
FedeGuastadisegni/PS-WB
2012e0bb70a63ca55d5956e2fdbb4c15bc2011d6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re from scrapy.xlib.pydispatch import dispatcher from scrapy import signals class ScrapRapiPagoPipeline(object): def process_item(self, item, spider): item['address'] = self.cleanup_address(item['address']) item.save() return item def cleanup_address(se...
27.448276
68
0.677136
3bb6c55ed94c3f70a70699bdcbca0e9dc0dc9d55
4,589
py
Python
svm+pca.py
yzgrfsy/inceptionv3
35fcc9c61135f0c0e686a7137b5479063635180e
[ "MIT" ]
null
null
null
svm+pca.py
yzgrfsy/inceptionv3
35fcc9c61135f0c0e686a7137b5479063635180e
[ "MIT" ]
null
null
null
svm+pca.py
yzgrfsy/inceptionv3
35fcc9c61135f0c0e686a7137b5479063635180e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Dec 02 15:51:14 2016 @author: JiaY """ from time import time from PIL import Image import glob import numpy as np import sys from sklearn.model_selection import KFold from sklearn.model_selection import train_test_split from sklearn.decomposition import PCA from...
32.316901
88
0.650469
572554ccb0db3eff4b8237868c95cea0b35b3393
1,519
py
Python
src/manager/om/script/gspylib/inspection/items/database/CheckXid.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
1
2020-06-30T15:00:50.000Z
2020-06-30T15:00:50.000Z
src/manager/om/script/gspylib/inspection/items/database/CheckXid.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
null
null
null
src/manager/om/script/gspylib/inspection/items/database/CheckXid.py
wotchin/openGauss-server
ebd92e92b0cfd76b121d98e4c57a22d334573159
[ "MulanPSL-1.0" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (c) 2020 Huawei Technologies Co.,Ltd. # # openGauss is licensed under Mulan PSL v2. # You can use this software according to the terms # and conditions of the Mulan PSL v2. # You may obtain a copy of Mulan PSL v2 at: # # http://license.coscl.org.cn/MulanPSL2 # # THIS SOFTWARE...
37.975
78
0.61817
2c7890cfe3bc2bcc27540bf03f769342a06bc5dc
117
py
Python
study/curso-em-video/exercises/008.py
jhonatanmaia/python
d53c64e6bab598c7e85813fd3f107c6f23c1fc46
[ "MIT" ]
null
null
null
study/curso-em-video/exercises/008.py
jhonatanmaia/python
d53c64e6bab598c7e85813fd3f107c6f23c1fc46
[ "MIT" ]
null
null
null
study/curso-em-video/exercises/008.py
jhonatanmaia/python
d53c64e6bab598c7e85813fd3f107c6f23c1fc46
[ "MIT" ]
null
null
null
n5=float(input('Digite o comprimento em metro: ')) print('A medida convertida é {}cm ou {}mm'.format(n5*100,n5*1000))
58.5
66
0.709402
395e39ff236ff7060319988a1a9a7a447460ef1e
47,983
py
Python
tests/io/test_dataset.py
ShreyashKad/sleap
32fec569d44ee727f4ec46e6bd94ccfb28398b83
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/io/test_dataset.py
ShreyashKad/sleap
32fec569d44ee727f4ec46e6bd94ccfb28398b83
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/io/test_dataset.py
ShreyashKad/sleap
32fec569d44ee727f4ec46e6bd94ccfb28398b83
[ "BSD-3-Clause-Clear" ]
null
null
null
import os import pytest import numpy as np from pathlib import Path import sleap from sleap.skeleton import Skeleton from sleap.instance import Instance, Point, LabeledFrame, PredictedInstance, Track from sleap.io.video import Video, MediaVideo from sleap.io.dataset import Labels, load_file from sleap.io.legacy import...
32.955357
88
0.689348
bf221ba2abcaa8454e9ce013125d72d90a2e8759
8,551
py
Python
htmldoom/elements.py
sayanarijit/htmldoom
c8e1528a35c5117db577c5c54f7e092e8e99222a
[ "MIT" ]
43
2019-05-27T12:40:34.000Z
2021-11-15T09:52:47.000Z
htmldoom/elements.py
sayanarijit/htmldoom
c8e1528a35c5117db577c5c54f7e092e8e99222a
[ "MIT" ]
44
2019-05-25T19:00:35.000Z
2019-11-16T19:05:57.000Z
htmldoom/elements.py
sayanarijit/htmldoom
c8e1528a35c5117db577c5c54f7e092e8e99222a
[ "MIT" ]
5
2019-06-23T14:32:06.000Z
2020-06-20T18:18:26.000Z
"""All the elements that resides in an HTML DOM. Example: >>> from htmldoom import render, elements as e >>> render(e.p(class_="comeclass")("This is a paragraph")) <p class="someclass">This is a paragraph</p> """ from htmldoom.base import composite_tag, leaf_tag __all__ = [ "a", "abbr", "addr...
15.894052
62
0.641212
1db37851d40614c8a66257276f430a515b09822a
58,075
py
Python
test/engine/test_reflection.py
Thhhza/sqlalchemy
f2b267043e17b2b769dc2a5b8139f6be2a3d4e84
[ "MIT" ]
1
2015-11-07T12:34:26.000Z
2015-11-07T12:34:26.000Z
test/engine/test_reflection.py
Thhhza/sqlalchemy
f2b267043e17b2b769dc2a5b8139f6be2a3d4e84
[ "MIT" ]
1
2021-08-07T12:14:52.000Z
2021-08-07T12:14:52.000Z
test/engine/test_reflection.py
Thhhza/sqlalchemy
f2b267043e17b2b769dc2a5b8139f6be2a3d4e84
[ "MIT" ]
null
null
null
import operator import unicodedata import sqlalchemy as sa from sqlalchemy import schema, events, event, inspect from sqlalchemy import MetaData, Integer, String from sqlalchemy.testing import (ComparesTables, engines, AssertsCompiledSQL, fixtures, skip) from sqlalchemy.testing.schema import Table, Column from sql...
36.071429
85
0.564529
a9387754a517098fc9d619835b0e551efa7a40dc
4,330
py
Python
src/python/WMCore/WorkQueue/WorkQueueUtils.py
tslazarova/WMCore
a09e2aefe700fb9b0d12b9f7089b21bde5a5bd62
[ "Apache-2.0" ]
1
2015-02-05T13:43:46.000Z
2015-02-05T13:43:46.000Z
src/python/WMCore/WorkQueue/WorkQueueUtils.py
tslazarova/WMCore
a09e2aefe700fb9b0d12b9f7089b21bde5a5bd62
[ "Apache-2.0" ]
1
2016-10-13T14:57:35.000Z
2016-10-13T14:57:35.000Z
src/python/WMCore/WorkQueue/WorkQueueUtils.py
juztas/WMCore
f7e830a573d50fb1d7240797f18d809f994b934d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Various helper functions for workqueue""" import logging import os from WMCore.Services.CRIC.CRIC import CRIC __dbses = {} def get_dbs(url): """Return DBS object for url""" try: return __dbses[url] except KeyError: from WMCore.Services.DBS.DBSReader import DBSRe...
34.365079
96
0.674596
326c2c919496182695017ed03b6fadbadd6c698f
1,676
py
Python
config/wsgi.py
tomcentrate/TestDjango
8b1a47d01ccd527ec37e905fce798523471bc603
[ "MIT" ]
null
null
null
config/wsgi.py
tomcentrate/TestDjango
8b1a47d01ccd527ec37e905fce798523471bc603
[ "MIT" ]
null
null
null
config/wsgi.py
tomcentrate/TestDjango
8b1a47d01ccd527ec37e905fce798523471bc603
[ "MIT" ]
null
null
null
""" WSGI config for Project Name project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATI...
39.904762
79
0.797136
eb59e6dd999de46bd248b61e0c0772af33ccf30b
1,075
py
Python
zulip/integrations/jabber/jabber_mirror.py
iishiishii/python-zulip-api
8500a3238739a080e1809e204c54685437631457
[ "Apache-2.0" ]
null
null
null
zulip/integrations/jabber/jabber_mirror.py
iishiishii/python-zulip-api
8500a3238739a080e1809e204c54685437631457
[ "Apache-2.0" ]
null
null
null
zulip/integrations/jabber/jabber_mirror.py
iishiishii/python-zulip-api
8500a3238739a080e1809e204c54685437631457
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys import subprocess import os import traceback import signal from types import FrameType from typing import Any from zulip import RandomExponentialBackoff def die(signal, frame): # type: (int, FrameType) -> None """We actually want to exit, so run os._exit (so as not to be caug...
25.595238
90
0.704186
694bbb832b2e17d5774fbe0b43c3e317a49da3d2
250
py
Python
server/lib/python3.9/site-packages/stripe/api_resources/reporting/report_type.py
ejanicas-stripe/hotel
a0d0a7e1ae14b509a5c9d05d17603b99399cb752
[ "MIT" ]
1,078
2015-01-06T03:35:05.000Z
2022-03-25T13:25:48.000Z
server/lib/python3.9/site-packages/stripe/api_resources/reporting/report_type.py
ejanicas-stripe/hotel
a0d0a7e1ae14b509a5c9d05d17603b99399cb752
[ "MIT" ]
558
2015-01-07T19:05:02.000Z
2022-03-28T22:19:24.000Z
server/lib/python3.9/site-packages/stripe/api_resources/reporting/report_type.py
ejanicas-stripe/hotel
a0d0a7e1ae14b509a5c9d05d17603b99399cb752
[ "MIT" ]
382
2015-01-04T14:06:09.000Z
2022-03-16T04:52:04.000Z
# File generated from our OpenAPI spec from __future__ import absolute_import, division, print_function from stripe.api_resources.abstract import ListableAPIResource class ReportType(ListableAPIResource): OBJECT_NAME = "reporting.report_type"
27.777778
64
0.836
3b4cd9582aa6fa7c62058fb11a92792ea8d88805
3,251
py
Python
PyFunceble/dataset/whois/base.py
spirillen/PyFunceble
f5188532dadb20a01d453e775825b0e0cfb64fb1
[ "Apache-2.0" ]
2
2021-09-24T21:46:56.000Z
2021-12-19T13:50:14.000Z
PyFunceble/dataset/whois/base.py
spirillen/PyFunceble
f5188532dadb20a01d453e775825b0e0cfb64fb1
[ "Apache-2.0" ]
33
2020-09-20T12:16:23.000Z
2021-06-13T17:45:58.000Z
PyFunceble/dataset/whois/base.py
spirillen/PyFunceble
f5188532dadb20a01d453e775825b0e0cfb64fb1
[ "Apache-2.0" ]
null
null
null
""" The tool to check the availability or syntax of domain, IP or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ █████╗ █...
29.554545
88
0.552753
3fdadde68472ce72561f6348e7ad8507d5b3df8b
2,027
py
Python
AutoEncoder/basicAE.py
wangyarui/deep-learning
0e6db09d5cd9c12bfb07dee09dc086a5d7eb759a
[ "Unlicense" ]
1
2017-09-23T02:48:21.000Z
2017-09-23T02:48:21.000Z
AutoEncoder/basicAE.py
wangyarui/deep-learning
0e6db09d5cd9c12bfb07dee09dc086a5d7eb759a
[ "Unlicense" ]
1
2019-04-08T00:33:02.000Z
2019-07-24T08:44:18.000Z
AutoEncoder/basicAE.py
wangyarui/deep-learning
0e6db09d5cd9c12bfb07dee09dc086a5d7eb759a
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import tensorflow as tf print('TensorFlow version: %s' % tf.__version__) import matplotlib.pyplot as plt from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets('MNIST_data', validation_size=0, one_hot=False) img = mnist.train.images[2...
28.152778
84
0.676369
bb395edf7bd9f0a5f83c1a01f74bb440db3d395b
4,499
py
Python
UnifiedPipeline/automl_inference/scripts/forecast.py
nickwiecien/solution-accelerator-many-models
ff286029b474ebff09ff010418be56e2eb55de57
[ "MIT" ]
null
null
null
UnifiedPipeline/automl_inference/scripts/forecast.py
nickwiecien/solution-accelerator-many-models
ff286029b474ebff09ff010418be56e2eb55de57
[ "MIT" ]
null
null
null
UnifiedPipeline/automl_inference/scripts/forecast.py
nickwiecien/solution-accelerator-many-models
ff286029b474ebff09ff010418be56e2eb55de57
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import pandas as pd import os import argparse from sklearn.externals import joblib import datetime import hashlib from azureml.core import Run from azureml.core.model import Model from azureml_user.parallel_run import EntrySc...
34.875969
90
0.649922
d1f889eccfac3e3e6dad0a4724181971d88bfcd7
917
py
Python
api/weather_data_flaskapi/date_range_arguments.py
Fyzel/weather-data-flaskapi
6b06c1f79091bbb5c9ee3327d2ff778c90bb28a8
[ "Apache-2.0" ]
1
2017-09-24T03:30:55.000Z
2017-09-24T03:30:55.000Z
api/weather_data_flaskapi/date_range_arguments.py
Fyzel/weather-data-flaskapi
6b06c1f79091bbb5c9ee3327d2ff778c90bb28a8
[ "Apache-2.0" ]
17
2017-09-27T23:54:02.000Z
2022-03-31T11:10:18.000Z
api/weather_data_flaskapi/date_range_arguments.py
Fyzel/weather-data-flaskapi
6b06c1f79091bbb5c9ee3327d2ff778c90bb28a8
[ "Apache-2.0" ]
1
2020-06-15T19:29:56.000Z
2020-06-15T19:29:56.000Z
""" @author: Fyzel@users.noreply.github.com @copyright: 2017 Englesh.org. All rights reserved. @license: https://github.com/Fyzel/weather-data-flaskapi/blob/master/LICENSE @contact: Fyzel@users.noreply.github.com @deffield updated: 2017-06-14 """ from flask_restplus import reqparse from datetime impor...
32.75
80
0.534351
c1d1294dd1c0a965ac10297f7e74018a0fa0643a
149
py
Python
home/views.py
xuxiaowei-com-cn/Django-demo
110d15cd615854bb6732d26ddd85f45afe7d7d0a
[ "MIT" ]
null
null
null
home/views.py
xuxiaowei-com-cn/Django-demo
110d15cd615854bb6732d26ddd85f45afe7d7d0a
[ "MIT" ]
null
null
null
home/views.py
xuxiaowei-com-cn/Django-demo
110d15cd615854bb6732d26ddd85f45afe7d7d0a
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. def index(request): """学习笔记的主页""" return render(request, 'home/index.html')
16.555556
45
0.697987
dfe0046f340fca5b36bdf27ec191fc29895494db
1,512
py
Python
everyday_wechat/control/onewords/juzimi.py
jianxchen/EverydayWechat
93c1e25fca066587afe2d1196ca8382761c9dbfb
[ "MIT" ]
1
2021-05-18T07:06:52.000Z
2021-05-18T07:06:52.000Z
everyday_wechat/control/onewords/juzimi.py
jianxchen/EverydayWechat
93c1e25fca066587afe2d1196ca8382761c9dbfb
[ "MIT" ]
null
null
null
everyday_wechat/control/onewords/juzimi.py
jianxchen/EverydayWechat
93c1e25fca066587afe2d1196ca8382761c9dbfb
[ "MIT" ]
null
null
null
# coding=utf-8 """ 句子迷:(https://www.juzimi.com/) 民国情书:朱生豪先生的情话 && 爱你就像爱生命 Author: ClaireYiu(https://github.com/ClaireYiu) """ import random import requests from everyday_wechat.utils.common import ( Proxies ) # from requests_html import HTMLSession def get_zsh_info(): """ 句子迷:(https://www.juzimi.com/) ...
25.2
60
0.554233
54a7786ab0f5fafc80c05ae34573918c76f15bf6
1,290
py
Python
fpga/boards/artya7-100t/c-class/configure/main.py
Rajssss/shakti-soc
7dbf88dd7e568c9f1fcd67ee8fbf579f2fe21f9d
[ "BSD-3-Clause" ]
null
null
null
fpga/boards/artya7-100t/c-class/configure/main.py
Rajssss/shakti-soc
7dbf88dd7e568c9f1fcd67ee8fbf579f2fe21f9d
[ "BSD-3-Clause" ]
null
null
null
fpga/boards/artya7-100t/c-class/configure/main.py
Rajssss/shakti-soc
7dbf88dd7e568c9f1fcd67ee8fbf579f2fe21f9d
[ "BSD-3-Clause" ]
null
null
null
import logging import os import shutil import sys import configure.configure as configure import configure.utils as utils def main(): ''' Entry point for riscv_config. ''' # Set up the parser parser = utils.config_cmdline_args() args = parser.parse_args() # Set up the logger util...
26.326531
76
0.624806
3dfd3be150bd887bb4b7c89a86b4c32fa4304b67
645
py
Python
digital/db/migration.py
knowx/digital
47872a783856444cce6ff8ebda355f3f3da727ac
[ "Apache-2.0" ]
null
null
null
digital/db/migration.py
knowx/digital
47872a783856444cce6ff8ebda355f3f3da727ac
[ "Apache-2.0" ]
null
null
null
digital/db/migration.py
knowx/digital
47872a783856444cce6ff8ebda355f3f3da727ac
[ "Apache-2.0" ]
null
null
null
from stevedore import driver from digital import conf CONF = conf.CONF _IMPL = None def get_backend(): global _IMPL if not _IMPL: _IMPL = driver.DriverManager("digital.database.migration_backend", "sqlalchemy").driver return _IMPL def upgrade(version=None):...
20.15625
74
0.67907
fe745f0d591a9a3ea36ce38acd032e16b64869c2
2,794
py
Python
masonite/managers/Manager.py
w3x10e8/core
d8f0ca29c2bd5e86d199391fa916ce2f5c9b0f49
[ "MIT" ]
null
null
null
masonite/managers/Manager.py
w3x10e8/core
d8f0ca29c2bd5e86d199391fa916ce2f5c9b0f49
[ "MIT" ]
null
null
null
masonite/managers/Manager.py
w3x10e8/core
d8f0ca29c2bd5e86d199391fa916ce2f5c9b0f49
[ "MIT" ]
null
null
null
""" Manager Module """ import inspect from masonite.exceptions import (DriverNotFound, MissingContainerBindingNotFound, UnacceptableDriverType) class Manager: """Base Manager Class """ config = None driver_prefix = None def __in...
31.75
149
0.598067
68c44d3b02dffc24cc4fb706eed5ce4226a78005
110
py
Python
pyspline/__init__.py
kanekosh/pyspline
13fdb0cd8231d2efdb5d5b5f4f2c0c693b51363d
[ "Apache-2.0" ]
null
null
null
pyspline/__init__.py
kanekosh/pyspline
13fdb0cd8231d2efdb5d5b5f4f2c0c693b51363d
[ "Apache-2.0" ]
null
null
null
pyspline/__init__.py
kanekosh/pyspline
13fdb0cd8231d2efdb5d5b5f4f2c0c693b51363d
[ "Apache-2.0" ]
null
null
null
__version__ = "1.4.0" from .pyCurve import Curve from .pySurface import Surface from .pyVolume import Volume
18.333333
30
0.781818
2b4e5517afcff4fb395ed0c37f99eebad7c34df8
17,233
py
Python
chamberconnectlibrary/modbus.py
tim-andes/ChamberConnectLibrary
1d2deb8b2629e47a45a838e89419ffe1d066cecd
[ "MIT" ]
21
2016-07-19T20:13:22.000Z
2021-12-15T11:18:35.000Z
chamberconnectlibrary/modbus.py
tim-andes/ChamberConnectLibrary
1d2deb8b2629e47a45a838e89419ffe1d066cecd
[ "MIT" ]
15
2017-05-18T13:26:03.000Z
2021-12-21T17:41:33.000Z
chamberconnectlibrary/modbus.py
tim-andes/ChamberConnectLibrary
1d2deb8b2629e47a45a838e89419ffe1d066cecd
[ "MIT" ]
13
2017-05-18T06:50:50.000Z
2022-01-28T14:09:23.000Z
''' Copyright (C) Espec North America, INC. - All Rights Reserved Written by Myles Metzler mmetzler@espec.com, Feb. 2016 Partial modbus implimantation for communicating with watlow controllers (input/holding registers only) ''' #pylint: disable=W0703 import socket import struct import time import collections import s...
34.260437
142
0.562409
809d166ffc35ab942af097c6c3c5d1f46e052246
1,571
py
Python
aliyun-python-sdk-companyreg/aliyunsdkcompanyreg/request/v20201022/GetElementEstimateRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-companyreg/aliyunsdkcompanyreg/request/v20201022/GetElementEstimateRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-companyreg/aliyunsdkcompanyreg/request/v20201022/GetElementEstimateRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "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 u...
35.704545
78
0.762572
ad05156989187a0fa93c37df148b12e1e53d8b36
1,149
py
Python
sysinfo.py
robDaglio/sysinfo
f7a2325b9e6815bb12cb439853c0d26dccab4782
[ "MIT" ]
null
null
null
sysinfo.py
robDaglio/sysinfo
f7a2325b9e6815bb12cb439853c0d26dccab4782
[ "MIT" ]
null
null
null
sysinfo.py
robDaglio/sysinfo
f7a2325b9e6815bb12cb439853c0d26dccab4782
[ "MIT" ]
null
null
null
# ======================================================| # Program Name: sysinfo # Author: Rob Daglio # Last Updated: 10_11_2019 # Descript: Simple system information gathering script #========================================================| #!/usr/bin/env python import os from platform import uname from time import...
23.9375
80
0.440383
fb8a9bd1c1c4b066ec3f882d94544d5192d16f96
54,760
py
Python
tests/contract/test_resource_client.py
WaelA/cloudformation-cli
9a2c6a357036286c04fc8585469ddbae9220df38
[ "Apache-2.0" ]
null
null
null
tests/contract/test_resource_client.py
WaelA/cloudformation-cli
9a2c6a357036286c04fc8585469ddbae9220df38
[ "Apache-2.0" ]
null
null
null
tests/contract/test_resource_client.py
WaelA/cloudformation-cli
9a2c6a357036286c04fc8585469ddbae9220df38
[ "Apache-2.0" ]
null
null
null
# fixture and parameter have the same name # pylint: disable=redefined-outer-name,protected-access import logging import time from io import StringIO from unittest.mock import ANY, patch import pytest from rpdk.core.boto_helpers import LOWER_CAMEL_CRED_KEYS from rpdk.core.contract.interface import Action, HandlerErro...
32.173913
94
0.583254
f50567f32bb9bea334374dca83fba1fd5825d693
13,847
py
Python
peitho/errors_and_parsers/abc_sysbio/abcsysbio_parser/Parser.py
MichaelPHStumpf/Peitho
a4daa9a3b2d8960079573d08d5baa019b5ac857e
[ "MIT" ]
1
2018-01-05T21:59:49.000Z
2018-01-05T21:59:49.000Z
peitho/errors_and_parsers/abc_sysbio/abcsysbio_parser/Parser.py
MichaelPHStumpf/Peitho
a4daa9a3b2d8960079573d08d5baa019b5ac857e
[ "MIT" ]
null
null
null
peitho/errors_and_parsers/abc_sysbio/abcsysbio_parser/Parser.py
MichaelPHStumpf/Peitho
a4daa9a3b2d8960079573d08d5baa019b5ac857e
[ "MIT" ]
3
2018-01-05T22:00:09.000Z
2018-12-25T13:32:10.000Z
from numpy import * from libsbml import * import re import os from peitho.errors_and_parsers.abc_sysbio.abcsysbio.relations import * from peitho.errors_and_parsers.abc_sysbio.abcsysbio_parser.CWriter import CWriter from peitho.errors_and_parsers.abc_sysbio.abcsysbio_parser.SDEPythonWriter import SDEPythonWriter from pe...
55.834677
205
0.611252
1f16df828caf389574d2479fae2f71787fc859b6
19,682
py
Python
aps/transform/utils.py
LvHang/aps
3e9c8b247e0526481970c28e8af1a6a93cc7f2cc
[ "Apache-2.0" ]
5
2021-07-05T12:21:44.000Z
2021-11-23T08:09:45.000Z
aps/transform/utils.py
LvHang/aps
3e9c8b247e0526481970c28e8af1a6a93cc7f2cc
[ "Apache-2.0" ]
null
null
null
aps/transform/utils.py
LvHang/aps
3e9c8b247e0526481970c28e8af1a6a93cc7f2cc
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Jian Wu # License: Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) import math import numpy as np import torch as th import torch.nn as nn import torch.nn.functional as tf import librosa.filters as filters from aps.const import EPSILON, TORCH_VERSION from typing import Optional, Union, Tuple...
34.712522
121
0.538919
247d321ce0c16d5bb207856247ce1707ddf9bd17
15,527
py
Python
qa327_frontend_test/test_r1.py
RF0606/CISC327_PROJECT
b0e5839fdc1b6f754bbf05ce174feca9dac54a69
[ "MIT" ]
null
null
null
qa327_frontend_test/test_r1.py
RF0606/CISC327_PROJECT
b0e5839fdc1b6f754bbf05ce174feca9dac54a69
[ "MIT" ]
null
null
null
qa327_frontend_test/test_r1.py
RF0606/CISC327_PROJECT
b0e5839fdc1b6f754bbf05ce174feca9dac54a69
[ "MIT" ]
null
null
null
from importlib import reload import pytest import os import io import sys import qa327.app as app path = os.path.dirname(os.path.abspath(__file__)) '''test case for R1.1: Test if user is logged in''' def test_loggedIn(capsys): if app.status: terminal_input = ['logout', 'exit'] expected_tail_of_t...
44.236467
121
0.448702
9ee1225cb9bd79e8c8d6a6747084a5b1966dbff8
2,876
py
Python
process_plan_rates.py
sleibman/health-plan-stats
feec61d282cfa2102b8632d8ecc4c1696ed68bfd
[ "MIT" ]
null
null
null
process_plan_rates.py
sleibman/health-plan-stats
feec61d282cfa2102b8632d8ecc4c1696ed68bfd
[ "MIT" ]
null
null
null
process_plan_rates.py
sleibman/health-plan-stats
feec61d282cfa2102b8632d8ecc4c1696ed68bfd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Executable script for computing the Second Lowest Cost Silver Plan (SLCSP). This code implements the assignment described at https://homework.adhoc.team/slcsp/ For a complete description of this implementation, see https://github.com/sleibman/health-plan-stats Typical usage example: ....
44.9375
120
0.729138
c9cc98073f04612bebb61116b6aecc6938fa97d6
7,246
py
Python
hgail/policies/latent_sampler.py
Kailiangdong/hgail
a668c4dda09d4e7f85b4640f42ff57b6764d24cc
[ "MIT" ]
24
2018-03-16T22:29:16.000Z
2021-11-12T07:33:28.000Z
hgail/policies/latent_sampler.py
Kailiangdong/hgail
a668c4dda09d4e7f85b4640f42ff57b6764d24cc
[ "MIT" ]
2
2018-06-29T06:37:46.000Z
2018-08-06T01:02:13.000Z
hgail/policies/latent_sampler.py
Kailiangdong/hgail
a668c4dda09d4e7f85b4640f42ff57b6764d24cc
[ "MIT" ]
15
2018-07-30T16:46:07.000Z
2022-03-13T06:24:11.000Z
from rllab.core.serializable import Serializable from rllab.misc.overrides import overrides import copy import numpy as np import tensorflow as tf class LatentSampler(object): ''' Mixin class to be used when making a class intended to sample latent variables. Since this is a mixin, we add the **kwargs a...
35.346341
102
0.635385
bace9a60e302759bc248a01f8e7de8d5b73bc002
619
py
Python
Python/Python For Absolute Beginner/13 If Else & Elif Conditions.py
omkarsutar1255/Python-Data
169d0c54b23d9dd5a7f1aea41ab385121c3b3c63
[ "CC-BY-3.0" ]
null
null
null
Python/Python For Absolute Beginner/13 If Else & Elif Conditions.py
omkarsutar1255/Python-Data
169d0c54b23d9dd5a7f1aea41ab385121c3b3c63
[ "CC-BY-3.0" ]
null
null
null
Python/Python For Absolute Beginner/13 If Else & Elif Conditions.py
omkarsutar1255/Python-Data
169d0c54b23d9dd5a7f1aea41ab385121c3b3c63
[ "CC-BY-3.0" ]
null
null
null
var1=78 print("enter your value") var2 = int(input()) if var1>var2: print("lesser") elif var1==var2: #elif use for else if print("equal") else: print("greater") list={1,2,3,4,5,6} print(5 in list) #in is used for check number in list print(24 not in list) #not in used for check n...
20.633333
70
0.625202
e49f60272dfb6b862154be28f17183cfa0252d61
3,539
py
Python
src/gen_labels.py
FunmiKesa/JLA
4fcd6a0a382d451a54703e432e476c3a16166232
[ "MIT" ]
5
2021-11-22T16:17:17.000Z
2022-02-17T13:06:14.000Z
src/gen_labels.py
FunmiKesa/JLA
4fcd6a0a382d451a54703e432e476c3a16166232
[ "MIT" ]
1
2021-11-29T15:09:57.000Z
2021-11-30T09:30:49.000Z
src/gen_labels.py
FunmiKesa/JLA
4fcd6a0a382d451a54703e432e476c3a16166232
[ "MIT" ]
null
null
null
import os.path as osp import os import numpy as np import shutil def mkdirs(d): if not osp.exists(d): os.makedirs(d) def gen_labels_15(seq_root, label_root, seq_label="img1", gt_label="gt"): seqs = [s for s in os.listdir(seq_root)] seqs.sort() tid_curr = 0 tid_last = -1 for seq in s...
34.359223
96
0.534897
95f2235211d75c8de84acd61213ee5f9602a3294
2,886
py
Python
lib/gen_grid.py
borovik135/VisSatSatelliteStereo
e591e8753c48e231d2c5cce74d37df2252c4ed93
[ "BSD-3-Clause" ]
37
2019-11-22T14:55:36.000Z
2022-03-27T07:52:18.000Z
lib/gen_grid.py
borovik135/VisSatSatelliteStereo
e591e8753c48e231d2c5cce74d37df2252c4ed93
[ "BSD-3-Clause" ]
11
2020-02-10T16:23:25.000Z
2022-03-12T00:47:32.000Z
lib/gen_grid.py
borovik135/VisSatSatelliteStereo
e591e8753c48e231d2c5cce74d37df2252c4ed93
[ "BSD-3-Clause" ]
14
2020-03-19T06:19:06.000Z
2022-02-16T07:59:38.000Z
# =============================================================================================================== # Copyright (c) 2019, Cornell University. All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that # the following conditions...
50.631579
115
0.677408
aa091563369b6938ac587697b1016ba8bbb89803
1,488
py
Python
bin/create_docker_commands_for_students_from_csv_file.py
mgalland/docker-for-teaching
2cf9505672f6bb64c8d7e5273b418f9239f3b121
[ "Apache-2.0" ]
null
null
null
bin/create_docker_commands_for_students_from_csv_file.py
mgalland/docker-for-teaching
2cf9505672f6bb64c8d7e5273b418f9239f3b121
[ "Apache-2.0" ]
2
2020-04-10T09:09:45.000Z
2020-04-10T09:10:50.000Z
bin/create_docker_commands_for_students_from_csv_file.py
ScienceParkStudyGroup/docker-master-gls
0928800620f4e2fb0c88e4f4d8c0785f64f28905
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Usage: python create_docker_commands_for_all_students.py [csv file with student to virtual machine correspondence] [docker image] # # This script returns a series of docker run command that can be used to launch several RStudio instances for all students on a virtual machine. # # Example: pyt...
37.2
144
0.722446
72a881ada46a48e795f8dea23d4adb738b6b0d74
1,020
py
Python
tests/mock/adapters.py
matlegit/kdr-watchman
6b154641e2d3324fbab43ef70162c407a73ffd1d
[ "MIT" ]
null
null
null
tests/mock/adapters.py
matlegit/kdr-watchman
6b154641e2d3324fbab43ef70162c407a73ffd1d
[ "MIT" ]
null
null
null
tests/mock/adapters.py
matlegit/kdr-watchman
6b154641e2d3324fbab43ef70162c407a73ffd1d
[ "MIT" ]
null
null
null
from kdr import syncthing_factory as factory import os home_dir = os.path.expanduser('~') test_dir = os.path.join(home_dir, 'kdr_test') client_conf = { 'port' : 8389, 'sync_home' : os.path.join(test_dir, 'client'), 'sync_dir' : os.path.join(test_dir, 'client', 'sync') + '/', } server_conf = { 'port' : 8390, ...
26.153846
62
0.70098
761a2205ef0bf7ede8faad0b46924951d8411851
45,680
py
Python
aliyun-tablestore-python-sdk-master/tablestore/encoder.py
SuiMingYang/sales-message-classify
1b9ce984e907b688096c2287ad80e495034b347c
[ "MIT" ]
1
2020-09-01T10:37:51.000Z
2020-09-01T10:37:51.000Z
aliyun-tablestore-python-sdk-master/tablestore/encoder.py
SuiMingYang/sales-message-classify
1b9ce984e907b688096c2287ad80e495034b347c
[ "MIT" ]
null
null
null
aliyun-tablestore-python-sdk-master/tablestore/encoder.py
SuiMingYang/sales-message-classify
1b9ce984e907b688096c2287ad80e495034b347c
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*-# import six from builtins import int from tablestore.error import * from tablestore.metadata import * from tablestore.plainbuffer.plain_buffer_builder import * import tablestore.protobuf.table_store_pb2 as pb2 import tablestore.protobuf.table_store_filter_pb2 as filter_pb2 import tablestore.pro...
40.895255
143
0.64757
fbd0e18723d6a03f6228afd14f1033ad9fa6c5d4
3,786
py
Python
airflow/providers/microsoft/azure/hooks/container_volume.py
takuti/airflow
0ac3b8c3dd749c59e60cf0169580b9e7c5049d9e
[ "Apache-2.0" ]
8,092
2016-04-27T20:32:29.000Z
2019-01-05T07:39:33.000Z
airflow/providers/microsoft/azure/hooks/container_volume.py
takuti/airflow
0ac3b8c3dd749c59e60cf0169580b9e7c5049d9e
[ "Apache-2.0" ]
2,961
2016-05-05T07:16:16.000Z
2019-01-05T08:47:59.000Z
airflow/providers/microsoft/azure/hooks/container_volume.py
takuti/airflow
0ac3b8c3dd749c59e60cf0169580b9e7c5049d9e
[ "Apache-2.0" ]
3,546
2016-05-04T20:33:16.000Z
2019-01-05T05:14:26.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...
39.030928
107
0.667987
d65e825fd5142a23a8d69d3495ac24c4b15da201
3,559
py
Python
explorer/scripts/healthcare_gov_extract.py
bayesimpact/tds-frontend
a4f47e384ef4fe4dc43c30423a1713c2c93dc87f
[ "Apache-2.0" ]
15
2018-05-08T23:54:38.000Z
2020-03-07T20:46:37.000Z
explorer/scripts/healthcare_gov_extract.py
akegan/encompass
85852a91c646c62e8cd05f9c2b0c7cf0079ea7f2
[ "Apache-2.0" ]
297
2018-02-05T19:04:26.000Z
2022-02-12T07:52:37.000Z
explorer/scripts/healthcare_gov_extract.py
bayesimpact/tds
a4f47e384ef4fe4dc43c30423a1713c2c93dc87f
[ "Apache-2.0" ]
6
2018-05-21T19:51:15.000Z
2019-03-21T19:20:27.000Z
#!/usr/local/bin/python3.6 """ Extract provider json files from Healthcare.gov provider endpoints. Writes results to data folder in this repo bayeshack github repo: https://github.com/bayesimpact/bayeshack-hhs-marketplace Spreadsheet of links to all machine readable PUFs: http://download.cms.gov/marketplace-puf/2016...
35.237624
97
0.623771
c47ebe4b73ef4bde427916a26febc32e18bc55aa
21,333
py
Python
shingetsu/gateway.py
acemomiage/saku
66ab704106d368f7c916f9ba71b28fe9bef62c48
[ "BSD-2-Clause" ]
78
2015-01-09T10:49:10.000Z
2022-02-16T03:06:28.000Z
shingetsu/gateway.py
acemomiage/saku
66ab704106d368f7c916f9ba71b28fe9bef62c48
[ "BSD-2-Clause" ]
5
2015-01-11T16:24:33.000Z
2019-02-18T15:02:32.000Z
shingetsu/gateway.py
acemomiage/saku
66ab704106d368f7c916f9ba71b28fe9bef62c48
[ "BSD-2-Clause" ]
24
2015-01-07T08:29:47.000Z
2022-03-23T07:22:20.000Z
"""Saku Gateway base module. """ # # Copyright (c) 2005-2021 shinGETsu Project. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyrigh...
32.719325
79
0.516524
4410440ed496956dc0bd8485eb299823c688c96f
1,016
py
Python
app/services/roles.py
NewShadesDAO/api
1e66336f0ea526f245918ecdc328c9a66280be91
[ "CC0-1.0" ]
1
2022-03-21T07:37:02.000Z
2022-03-21T07:37:02.000Z
app/services/roles.py
NewShadesDAO/api
1e66336f0ea526f245918ecdc328c9a66280be91
[ "CC0-1.0" ]
25
2022-01-16T13:18:21.000Z
2022-03-29T13:08:19.000Z
app/services/roles.py
NewShadesDAO/api
1e66336f0ea526f245918ecdc328c9a66280be91
[ "CC0-1.0" ]
1
2022-01-15T21:42:00.000Z
2022-01-15T21:42:00.000Z
from bson import ObjectId from app.helpers.cache_utils import cache from app.helpers.permissions import Permission, needs from app.models.user import Role, User from app.schemas.users import RoleCreateSchema from app.services.crud import create_item, get_items @needs(permissions=[Permission.ROLES_LIST]) async def ge...
42.333333
104
0.770669
c9948ef29439233d873edccc2339e8dcd01df540
1,123
py
Python
src/rainbow.py
MukhriddinMike/SomeGames
3f347967cfbe61dd3d68e1c7288d4ee3e161387c
[ "FSFAP" ]
null
null
null
src/rainbow.py
MukhriddinMike/SomeGames
3f347967cfbe61dd3d68e1c7288d4ee3e161387c
[ "FSFAP" ]
null
null
null
src/rainbow.py
MukhriddinMike/SomeGames
3f347967cfbe61dd3d68e1c7288d4ee3e161387c
[ "FSFAP" ]
null
null
null
# Rainbow, by Al Sweigart al@inventwithpython.com # Shows a simple rainbow animation. import time, sys assert sys.version_info.major == 3, 'Run this program on Python 3.' try: import bext except: sys.exit('Bext is required to run this. Run `pip install bext` from the shell to install it.') indent = 0 # How m...
25.522727
98
0.581478