hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
7f323a424962078f0d541730b2a001b0d6f3bd66
524
py
Python
guppe/atividades/secao_7/ex030.py
WesleyLucas97/cursos_python
b2cbd393e8fed6e36b84253f7934766f2b4f1de8
[ "MIT" ]
null
null
null
guppe/atividades/secao_7/ex030.py
WesleyLucas97/cursos_python
b2cbd393e8fed6e36b84253f7934766f2b4f1de8
[ "MIT" ]
null
null
null
guppe/atividades/secao_7/ex030.py
WesleyLucas97/cursos_python
b2cbd393e8fed6e36b84253f7934766f2b4f1de8
[ "MIT" ]
null
null
null
""" Faça um programa que leia dois vetores de 10 elementos. Crie um vetor que seja a intersecçao entre os 2 vetores anteriores, ou seja, que contém apenas os números que estao em ambos os vetores. Nao deve conter números repetidos. """ from random import randint vetor1 = [] vetor2 = [] inter = [] for x in range(10): ...
23.818182
115
0.69084
0
0
0
0
0
0
0
0
240
0.453686
7f3456525e16a28ff65bdae2bcdeda6075e74b3f
343
py
Python
tests/internal/instance_type/test_instance_type_h_auto.py
frolovv/aws.ec2.compare
582805823492f833d65c0441c4a14dce697c12aa
[ "Apache-2.0" ]
null
null
null
tests/internal/instance_type/test_instance_type_h_auto.py
frolovv/aws.ec2.compare
582805823492f833d65c0441c4a14dce697c12aa
[ "Apache-2.0" ]
null
null
null
tests/internal/instance_type/test_instance_type_h_auto.py
frolovv/aws.ec2.compare
582805823492f833d65c0441c4a14dce697c12aa
[ "Apache-2.0" ]
1
2021-12-15T11:58:22.000Z
2021-12-15T11:58:22.000Z
# Testing module instance_type.h import pytest import ec2_compare.internal.instance_type.h def test_get_internal_data_instance_type_h_get_instances_list(): assert len(ec2_compare.internal.instance_type.h.get_instances_list()) > 0 def test_get_internal_data_instance_type_h_get(): assert len(ec2_compare.internal.in...
34.3
75
0.845481
0
0
0
0
0
0
0
0
32
0.093294
7f350b0e080d9eba4c1970d4cf3a06f36a964718
1,529
py
Python
gridSearch.py
piotrbla/pyExamples
d949784e614da53afc05a1245c824d0b853d8234
[ "MIT" ]
null
null
null
gridSearch.py
piotrbla/pyExamples
d949784e614da53afc05a1245c824d0b853d8234
[ "MIT" ]
null
null
null
gridSearch.py
piotrbla/pyExamples
d949784e614da53afc05a1245c824d0b853d8234
[ "MIT" ]
null
null
null
#!/bin/python3 import sys # t = int(input().strip()) # for a0 in range(t): # G = [ # "7283455864", # "6731158619", # "8988242643", # "3830589324", # "2229505813", # "5633845374", # "6473530293", # "7053106601", # "0834282956", # "4607924137" # ] # P = ["9505", "3845", "3530"] G...
22.485294
97
0.400916
0
0
0
0
0
0
0
0
363
0.23741
7f3544b7340939d1a01b2aecf308475476d4e6eb
1,764
py
Python
rollbar_udp_agent/util.py
lrascao/rollbar-udp-agent
51c698837e5141bff5fef3e20afe7301c3ecdf27
[ "MIT" ]
1
2015-05-27T21:48:42.000Z
2015-05-27T21:48:42.000Z
rollbar_udp_agent/util.py
lrascao/rollbar-udp-agent
51c698837e5141bff5fef3e20afe7301c3ecdf27
[ "MIT" ]
null
null
null
rollbar_udp_agent/util.py
lrascao/rollbar-udp-agent
51c698837e5141bff5fef3e20afe7301c3ecdf27
[ "MIT" ]
null
null
null
import os import logging import tempfile log = logging.getLogger(__name__) class PidFile(object): """ A small helper class for pidfiles. """ PID_DIR = '/var/run/rollbard' def __init__(self, program, pid_dir=None): self.pid_file = "%s.pid" % program self.pid_dir = pid_dir or self.get_defa...
29.898305
89
0.570862
1,686
0.955782
0
0
0
0
0
0
381
0.215986
7f35a101be268b4de55d1e3fbef7b0fc92eca07c
1,388
py
Python
server/migrations/0019_auto_20151124_1806.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
2
2019-11-01T20:50:35.000Z
2021-01-13T22:02:55.000Z
server/migrations/0019_auto_20151124_1806.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
null
null
null
server/migrations/0019_auto_20151124_1806.py
gregneagle/sal
74c583fb1c1b33d3201b308b147376b3dcaca33f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('server', '0018_auto_20151124_1654'), ] operations = [ migrations.CreateModel( name='UpdateHistoryItem', ...
31.545455
169
0.561239
1,279
0.92147
0
0
0
0
0
0
341
0.245677
7f3657c2007cb8e2fe9ba1e91d9490a327ac7d62
3,624
py
Python
libc/kernel/tools/update_all.py
Keneral/abionic
0f441ff93f011ed0069339e16f59e572134a5f3b
[ "Unlicense" ]
null
null
null
libc/kernel/tools/update_all.py
Keneral/abionic
0f441ff93f011ed0069339e16f59e572134a5f3b
[ "Unlicense" ]
null
null
null
libc/kernel/tools/update_all.py
Keneral/abionic
0f441ff93f011ed0069339e16f59e572134a5f3b
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # import sys, cpp, kernel, glob, os, re, getopt, clean_header, subprocess from defaults import * from utils import * def usage(): print """\ usage: %(progname)s [kernel-original-path] [kernel-modified-path] this program is used to update all the auto-generated clean headers used by...
29.463415
96
0.631347
0
0
0
0
0
0
0
0
1,107
0.305464
7f36be3439ad38bb0d3934200cfedbede2aee704
1,816
py
Python
binding/python/ddls/feeder/batch.py
huzelin/ddls
3333a669c59ce2e525945f814a54784dafc6191b
[ "MIT" ]
3
2019-01-03T07:34:01.000Z
2020-02-13T19:53:35.000Z
binding/python/ddls/feeder/batch.py
huzelin/ddls
3333a669c59ce2e525945f814a54784dafc6191b
[ "MIT" ]
null
null
null
binding/python/ddls/feeder/batch.py
huzelin/ddls
3333a669c59ce2e525945f814a54784dafc6191b
[ "MIT" ]
1
2020-05-06T11:08:07.000Z
2020-05-06T11:08:07.000Z
""" batch iterator""" from __future__ import absolute_import import ctypes from ddls.base import check_call, LIB, c_str, c_array from ddls.hpps.tensor import Tensor class Batch(object): """ The BatchIterator """ def __init__(self, handle): """ The batch from iterator """ self.hand...
32.428571
84
0.522026
1,645
0.905837
0
0
0
0
0
0
279
0.153634
7f373e1985a3fef43fa656105237573ff16bc399
3,520
py
Python
pymoo/util/ref_dirs/energy_layer.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
762
2018-06-05T20:56:09.000Z
2021-09-14T09:09:42.000Z
pymoo/util/ref_dirs/energy_layer.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
176
2018-09-05T18:37:05.000Z
2021-09-14T01:18:43.000Z
pymoo/util/ref_dirs/energy_layer.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
160
2018-08-05T05:31:20.000Z
2021-09-14T09:09:45.000Z
import autograd.numpy as anp import numpy as np from autograd import value_and_grad from pymoo.factory import normalize from pymoo.util.ref_dirs.energy import squared_dist from pymoo.util.ref_dirs.optimizer import Adam from pymoo.util.reference_direction import ReferenceDirectionFactory, scale_reference_directions c...
29.579832
107
0.52642
2,551
0.724716
0
0
0
0
0
0
526
0.149432
7f3776d641ecf1c2ca820e1d8531b10c65ba6e21
1,555
py
Python
convert_pfm_json.py
biolib/deepclip
06e0a3c431db76745b6674afabc4d171f19b3eb0
[ "MIT" ]
7
2019-07-23T10:20:11.000Z
2022-03-14T14:46:13.000Z
convert_pfm_json.py
biolib/deepclip
06e0a3c431db76745b6674afabc4d171f19b3eb0
[ "MIT" ]
10
2019-09-05T22:45:04.000Z
2022-03-21T08:40:49.000Z
convert_pfm_json.py
biolib/deepclip
06e0a3c431db76745b6674afabc4d171f19b3eb0
[ "MIT" ]
5
2019-07-23T10:20:46.000Z
2021-11-14T07:18:05.000Z
#!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt import argparse import json parser = argparse.ArgumentParser() parser.add_argument("-seqs", required=True, type=str, default=None, help="File contain...
23.923077
130
0.607074
0
0
0
0
0
0
0
0
284
0.182637
7f38a2c200ca531dbe41a48a8f774eb63c7b3ea0
83
py
Python
xmpt/apps.py
anzrz/djangoapp
85b4f73754af53ddf33ec281a04a70415af02eb6
[ "MIT" ]
1
2021-04-23T14:19:33.000Z
2021-04-23T14:19:33.000Z
xmpt/apps.py
anzrz/djangoapp
85b4f73754af53ddf33ec281a04a70415af02eb6
[ "MIT" ]
null
null
null
xmpt/apps.py
anzrz/djangoapp
85b4f73754af53ddf33ec281a04a70415af02eb6
[ "MIT" ]
null
null
null
from django.apps import AppConfig class XmptConfig(AppConfig): name = 'xmpt'
13.833333
33
0.73494
46
0.554217
0
0
0
0
0
0
6
0.072289
7f3bbf18433361fecef0405dbb0e62ddd2cecfda
787
py
Python
prc/fatigue.py
moulin1024/WIRELES2
2fcd190531d24e4f98885824c7d78acb3f79b304
[ "MIT" ]
3
2020-09-10T13:34:21.000Z
2020-09-10T20:26:30.000Z
prc/fatigue.py
moulin1024/WIRELES2
2fcd190531d24e4f98885824c7d78acb3f79b304
[ "MIT" ]
null
null
null
prc/fatigue.py
moulin1024/WIRELES2
2fcd190531d24e4f98885824c7d78acb3f79b304
[ "MIT" ]
null
null
null
import numpy as np import math import fatpack import matplotlib.pyplot as plt import pandas as pd #Create a function that reutrns the Goodman correction: def Goodman_method_correction(M_a,M_m,M_max): M_u = 1.5*M_max M_ar = M_a/(1-M_m/M_u) return M_ar def Equivalent_bending_moment(M_ar,Neq,m): P = M_ar...
26.233333
79
0.673443
0
0
0
0
0
0
0
0
55
0.069886
7f3d359af8382d37dc10d0318477d716c6a3d982
12,040
py
Python
executor/process.py
xolox/python-executor
ea14d75ae3533fcc2f32554dd3ae1f6061c2c24c
[ "MIT" ]
82
2015-03-03T17:12:28.000Z
2022-02-11T21:54:15.000Z
executor/process.py
xolox/python-executor
ea14d75ae3533fcc2f32554dd3ae1f6061c2c24c
[ "MIT" ]
19
2015-03-03T17:12:13.000Z
2022-03-11T19:24:58.000Z
executor/process.py
xolox/python-executor
ea14d75ae3533fcc2f32554dd3ae1f6061c2c24c
[ "MIT" ]
19
2016-10-15T02:53:58.000Z
2021-07-22T15:28:25.000Z
# Programmer friendly subprocess wrapper. # # Author: Peter Odding <peter@peterodding.com> # Last Change: March 2, 2020 # URL: https://executor.readthedocs.io """ Portable process control functionality for the `executor` package. The :mod:`executor.process` module defines the :class:`ControllableProcess` abstract bas...
43.623188
111
0.635133
10,854
0.901495
0
0
2,015
0.167359
0
0
8,845
0.734635
7f3df3dc967b1922f0d38e1d9051faca1358ecc7
10,945
py
Python
lambda/qldb/import_transport_product.py
UBC-CIC/VaccineDistribution
3bd8d507eaabcf3a3213ec7c1d25127dd221c537
[ "MIT" ]
null
null
null
lambda/qldb/import_transport_product.py
UBC-CIC/VaccineDistribution
3bd8d507eaabcf3a3213ec7c1d25127dd221c537
[ "MIT" ]
null
null
null
lambda/qldb/import_transport_product.py
UBC-CIC/VaccineDistribution
3bd8d507eaabcf3a3213ec7c1d25127dd221c537
[ "MIT" ]
null
null
null
from logging import basicConfig, getLogger, INFO from connect_to_ledger import create_qldb_driver from amazon.ion.simpleion import dumps, loads logger = getLogger(__name__) basicConfig(level=INFO) from constants import Constants from register_person import get_scentityid_from_personid,get_scentity_contact from sampled...
65.14881
202
0.56921
0
0
0
0
0
0
0
0
1,333
0.121791
7f3df9c6bc7653f174e6f2a144e946916c638b4e
1,467
py
Python
rewx/components.py
akrk1986/re-wx
2f50d1c0afe77313548847b279327d7041623721
[ "MIT" ]
null
null
null
rewx/components.py
akrk1986/re-wx
2f50d1c0afe77313548847b279327d7041623721
[ "MIT" ]
null
null
null
rewx/components.py
akrk1986/re-wx
2f50d1c0afe77313548847b279327d7041623721
[ "MIT" ]
null
null
null
""" All components and wrappers currently supported by rewx. """ import wx import wx.adv import wx.lib.scrolledpanel import wx.media ActivityIndicator = wx.ActivityIndicator Button = wx.Button BitmapButton = wx.BitmapButton CalendarCtrl = wx.adv.CalendarCtrl CheckBox = wx.CheckBox # CollapsiblePane = wx.CollapsiblePa...
20.957143
58
0.720518
621
0.423313
0
0
0
0
0
0
457
0.31152
7f3e241328fb148652ce6188714ae1004458cf72
3,733
py
Python
test/blank_named_regtest.py
shraddha-pandhe/iscpy
69173bb101dbc9e454c8050ba480fa4b2d0efc46
[ "BSD-3-Clause" ]
null
null
null
test/blank_named_regtest.py
shraddha-pandhe/iscpy
69173bb101dbc9e454c8050ba480fa4b2d0efc46
[ "BSD-3-Clause" ]
null
null
null
test/blank_named_regtest.py
shraddha-pandhe/iscpy
69173bb101dbc9e454c8050ba480fa4b2d0efc46
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2009, Purdue University # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice, this # list ...
40.139785
91
0.686579
1,771
0.474417
0
0
0
0
0
0
2,774
0.743102
7f3f0bcb734c5067a788e80bda49721133fbbbe5
4,247
py
Python
oo/carro.py
RafaelLJC/pythonbirds
43d401c6ef2b539ec45e19a218d0032de0435162
[ "MIT" ]
null
null
null
oo/carro.py
RafaelLJC/pythonbirds
43d401c6ef2b539ec45e19a218d0032de0435162
[ "MIT" ]
null
null
null
oo/carro.py
RafaelLJC/pythonbirds
43d401c6ef2b539ec45e19a218d0032de0435162
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jul 21 16:41:09 2020 @author: rafae Exercício Você deve criar uma classe carro que vai possuir dois atributos compostos por outras duas classes: 1) motor; 2) Direção. O motor terá a responsabilidade de controlar a velocidade. Ele oferece os seguintes atributos: 1) Atribu...
23.859551
77
0.586296
965
0.226101
0
0
0
0
0
0
2,699
0.632381
7f4010676a7aac9aa896fa49d6f12bbf2ad6307d
21
py
Python
src/models/items/constants.py
MDRCS/deals-catcher
0c2e344e402917cc284fbeb4d83c2829a08595aa
[ "MIT" ]
null
null
null
src/models/items/constants.py
MDRCS/deals-catcher
0c2e344e402917cc284fbeb4d83c2829a08595aa
[ "MIT" ]
null
null
null
src/models/items/constants.py
MDRCS/deals-catcher
0c2e344e402917cc284fbeb4d83c2829a08595aa
[ "MIT" ]
null
null
null
Collection = "items"
10.5
20
0.714286
0
0
0
0
0
0
0
0
7
0.333333
7f42a433c6b582f0497ed7d135f6be1ed7ed4f11
3,829
py
Python
before.py
PatrickLTI/Refactor-Code-Smell
0c6c0369a39a3cbd375e541021165cccd5c1c1b5
[ "MIT" ]
null
null
null
before.py
PatrickLTI/Refactor-Code-Smell
0c6c0369a39a3cbd375e541021165cccd5c1c1b5
[ "MIT" ]
null
null
null
before.py
PatrickLTI/Refactor-Code-Smell
0c6c0369a39a3cbd375e541021165cccd5c1c1b5
[ "MIT" ]
null
null
null
""" Very advanced Employee management system. """ from dataclasses import dataclass from typing import List FIXED_VACATION_DAYS_PAYOUT = 5 # The fixed nr of vacation days that can be paid out. @dataclass class Employee: """Basic representation of an employee at the company.""" name: str role: str ...
31.130081
98
0.610342
3,054
0.797597
0
0
1,492
0.389658
0
0
1,261
0.329329
7f4616f095924fa5eac33a11190968db43cccd4e
261
py
Python
python/decorator/function_transform_with_decorator.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/decorator/function_transform_with_decorator.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/decorator/function_transform_with_decorator.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
def debug_transformer(func): def wrapper(): print(f'Function `{func.__name__}` called') func() print(f'Function `{func.__name__}` finished') return wrapper @debug_transformer def walkout(): print('Bye Felicia') walkout()
17.4
53
0.636015
0
0
0
0
58
0.222222
0
0
87
0.333333
7f46b98db9b94c982905dfaf5e2079f45ce4a9a6
850
py
Python
logging_context/helpers.py
vuonglv1612/logging-context
beef9f11494d729bbb3f429fdd7cf69a29e0c527
[ "MIT" ]
null
null
null
logging_context/helpers.py
vuonglv1612/logging-context
beef9f11494d729bbb3f429fdd7cf69a29e0c527
[ "MIT" ]
null
null
null
logging_context/helpers.py
vuonglv1612/logging-context
beef9f11494d729bbb3f429fdd7cf69a29e0c527
[ "MIT" ]
null
null
null
import functools import logging from typing import Callable from logging_context.context.base import BaseContext from .context import get_logging_context def context_logging_factory(record_factory: Callable, context: BaseContext) -> Callable: @functools.wraps(record_factory) def wrapper(*args, **kwargs): ...
31.481481
94
0.742353
0
0
0
0
175
0.205882
0
0
11
0.012941
7f4786e590d0a9418a3d92cb5ddc03d945909da4
6,840
py
Python
script/proxycheck/check.py
kenshinx/rps
3d141056f3512598525430ecc9ddb1ee79b887cf
[ "MIT" ]
6
2017-06-20T09:44:03.000Z
2018-07-28T06:44:10.000Z
script/proxycheck/check.py
kenshinx/rps
3d141056f3512598525430ecc9ddb1ee79b887cf
[ "MIT" ]
null
null
null
script/proxycheck/check.py
kenshinx/rps
3d141056f3512598525430ecc9ddb1ee79b887cf
[ "MIT" ]
3
2017-09-23T16:48:18.000Z
2018-05-26T19:12:12.000Z
#!/usr/bin/env python import re import sys import time import logging import asyncore import optparse from datetime import datetime import schedule from pymongo import MongoReplicaSetClient, MongoClient from async_s5 import AsyncSocks5Client from async_http import AsyncHTTPClient from async_http_tunnel import Async...
31.232877
100
0.594591
4,738
0.69269
314
0.045906
251
0.036696
0
0
894
0.130702
7f48ff2758ca1da69efc97e333be34fa3b8a2d3b
16,438
py
Python
Notebook/KL Divergence Loop.py
yxie367/Mushrooms
9b0fc5dfb6ab20c7c0c4146bff0d04de561302c5
[ "MIT" ]
null
null
null
Notebook/KL Divergence Loop.py
yxie367/Mushrooms
9b0fc5dfb6ab20c7c0c4146bff0d04de561302c5
[ "MIT" ]
null
null
null
Notebook/KL Divergence Loop.py
yxie367/Mushrooms
9b0fc5dfb6ab20c7c0c4146bff0d04de561302c5
[ "MIT" ]
null
null
null
# %% [Algorithm 1c Loop] # # MUSHROOMS # %% [markdown] # ## Binary Classification # %% [markdown] # ### Imports # %% import os import pandas as pd import numpy as np import tensorflow as tf from tensorflow import keras import matplotlib.pyplot as plt # %% [markdown] # ### Load Data dataset = pd.read_csv(r"C:\User...
27.673401
177
0.592469
0
0
0
0
0
0
0
0
5,174
0.314758
7f490e0f83f0b93f89c7b7920c449eae9a2ea21b
206
py
Python
galaxydb/__init__.py
alantelles/galaxydb
7eeeaae3c3f79736eade36a720fb1dc816570554
[ "MIT" ]
2
2019-03-15T17:14:16.000Z
2019-03-15T20:47:14.000Z
galaxydb/__init__.py
alantelles/galaxydb
7eeeaae3c3f79736eade36a720fb1dc816570554
[ "MIT" ]
null
null
null
galaxydb/__init__.py
alantelles/galaxydb
7eeeaae3c3f79736eade36a720fb1dc816570554
[ "MIT" ]
null
null
null
from galaxydb.column import Column from galaxydb.scheme import Scheme from galaxydb.logic import Logic from galaxydb.table import Table from galaxydb.constants import * from galaxydb.statics import *
29.428571
35
0.815534
0
0
0
0
0
0
0
0
0
0
7f495918acf00767d9fbeb784d409f5760173565
19,291
py
Python
attic/library/kepler.py
vdods/heisenberg
66921b80c2d035e5f10e0af4d0cec21d5470dbd1
[ "MIT" ]
3
2018-01-04T07:40:14.000Z
2021-02-19T15:27:10.000Z
attic/library/kepler.py
vdods/heisenberg
66921b80c2d035e5f10e0af4d0cec21d5470dbd1
[ "MIT" ]
null
null
null
attic/library/kepler.py
vdods/heisenberg
66921b80c2d035e5f10e0af4d0cec21d5470dbd1
[ "MIT" ]
null
null
null
# NOTE: This changes a/b to produce a floating point approximation of that # ratio, not the integer quotient. For integer quotient, use a//b instead. from __future__ import division import fourier_parameterization import numpy as np import multiindex import symbolic import sympy import tensor # TODO: look at and use...
50.368146
220
0.696024
12,886
0.66798
0
0
0
0
0
0
5,603
0.290446
7f497463579627def6a6bc8b025032e2117e0a72
1,029
py
Python
flaskr/tripods/tripod.py
ardtieboy/campy
dc59c62395aa45c0d125f6187a8a3b19521469d3
[ "MIT" ]
null
null
null
flaskr/tripods/tripod.py
ardtieboy/campy
dc59c62395aa45c0d125f6187a8a3b19521469d3
[ "MIT" ]
null
null
null
flaskr/tripods/tripod.py
ardtieboy/campy
dc59c62395aa45c0d125f6187a8a3b19521469d3
[ "MIT" ]
null
null
null
import pantilthat class Tripod(object): def __init__(self): self.horizontal = 0 self.vertical = 0 self.step_size = 5 pantilthat.pan(0) pantilthat.tilt(0) def left(self): if (-80 < self.horizontal): self.horizontal = self.horizontal - self.step_size ...
30.264706
62
0.597668
1,010
0.981535
0
0
0
0
0
0
55
0.05345
7f49b39edb1cf25e08b2f0cebd80eaca4c038d5a
5,592
py
Python
mercury_engine_data_structures/pkg_editor.py
duncathan/mercury-engine-data-structures
1bc4117dba9c7961d9a8f1b7f11b62daaf82b09b
[ "MIT" ]
null
null
null
mercury_engine_data_structures/pkg_editor.py
duncathan/mercury-engine-data-structures
1bc4117dba9c7961d9a8f1b7f11b62daaf82b09b
[ "MIT" ]
null
null
null
mercury_engine_data_structures/pkg_editor.py
duncathan/mercury-engine-data-structures
1bc4117dba9c7961d9a8f1b7f11b62daaf82b09b
[ "MIT" ]
null
null
null
import collections import contextlib import os.path import typing from contextlib import ExitStack from pathlib import Path from typing import BinaryIO, Dict, Optional, Generator, Iterator, Set from mercury_engine_data_structures import formats, dread_data from mercury_engine_data_structures.formats.base_resource impo...
40.817518
119
0.662375
5,082
0.908798
626
0.111946
0
0
0
0
890
0.159156
7f49d895aed1ee10667f68cdf1cd1adf069c4fea
142
py
Python
code/textProcessing.py
corollari/BaaCL
3ebe9ba7c3859243351fe1b12d4eb114bb51b441
[ "Unlicense" ]
1
2019-03-06T19:43:46.000Z
2019-03-06T19:43:46.000Z
code/textProcessing.py
corollari/BaaL
3ebe9ba7c3859243351fe1b12d4eb114bb51b441
[ "Unlicense" ]
null
null
null
code/textProcessing.py
corollari/BaaL
3ebe9ba7c3859243351fe1b12d4eb114bb51b441
[ "Unlicense" ]
null
null
null
def preprocess(text): text=text.replace('\n', '\n\r') return text def getLetter(): return open("./input/letter.txt", "r").read()
20.285714
49
0.605634
0
0
0
0
0
0
0
0
33
0.232394
7f4a8619142279843195d19ca55dc1994a765971
4,665
py
Python
lrthubcore/users/api/views.py
xrojan/lrthub-core
757189942c87f7136fd1f1fee536375d248d8233
[ "BSD-3-Clause" ]
null
null
null
lrthubcore/users/api/views.py
xrojan/lrthub-core
757189942c87f7136fd1f1fee536375d248d8233
[ "BSD-3-Clause" ]
null
null
null
lrthubcore/users/api/views.py
xrojan/lrthub-core
757189942c87f7136fd1f1fee536375d248d8233
[ "BSD-3-Clause" ]
null
null
null
# Created by Joshua de Guzman on 09/07/2018 # @email code@jmdg.io from django_filters.rest_framework import DjangoFilterBackend from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status, generi...
37.620968
82
0.653805
4,244
0.909753
0
0
0
0
0
0
595
0.127546
7f4a9a45f9839d4156f378a8a84cdc5c95302052
837
py
Python
tests/test_api_key.py
sodrooome/bmaclient
8d3609a63e3e2576642ecde77245ee0b02225e31
[ "MIT" ]
null
null
null
tests/test_api_key.py
sodrooome/bmaclient
8d3609a63e3e2576642ecde77245ee0b02225e31
[ "MIT" ]
null
null
null
tests/test_api_key.py
sodrooome/bmaclient
8d3609a63e3e2576642ecde77245ee0b02225e31
[ "MIT" ]
null
null
null
import os import unittest from bmaclient.utils import get_api_key_from_file DATA_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data') class APIKeyTest(unittest.TestCase): def test_get_api_key_from_file(self): path = os.path.join(DATA_DIR, 'api_key.txt') key = get_api_key_from_...
28.862069
75
0.706093
631
0.753883
0
0
0
0
0
0
92
0.109916
7f4c0b226d7280aa82d0b514ec3937f568c281d1
498
py
Python
planner/forms.py
celord/mealprep
c51329dd86953963d0e0405e9a929553eca1e2cf
[ "MIT" ]
null
null
null
planner/forms.py
celord/mealprep
c51329dd86953963d0e0405e9a929553eca1e2cf
[ "MIT" ]
null
null
null
planner/forms.py
celord/mealprep
c51329dd86953963d0e0405e9a929553eca1e2cf
[ "MIT" ]
null
null
null
from django import forms from django.forms import ModelForm from .models import Plan class DateInput(forms.DateInput): input_type = "date" class AddPlanForm(ModelForm): class Meta: model = Plan # fields = fields = '__all__' fields = [ "date", "meal", ...
19.92
67
0.512048
406
0.815261
0
0
0
0
0
0
125
0.251004
7f4c4a6d4785bd3dfed7a18ec25a7e8626976917
2,856
py
Python
lib/harm_plot.py
pnlbwh/multi-shell-dMRIharmonization
46e207c5d2b7fd68ddbbd1b305c33cfd45351ee8
[ "CNRI-Python", "Info-ZIP" ]
4
2020-04-28T15:31:07.000Z
2022-02-15T07:04:21.000Z
lib/harm_plot.py
pnlbwh/multi-shell-dMRIharmonization
46e207c5d2b7fd68ddbbd1b305c33cfd45351ee8
[ "CNRI-Python", "Info-ZIP" ]
30
2019-11-10T20:51:34.000Z
2021-04-19T19:08:14.000Z
lib/harm_plot.py
pnlbwh/multi-shell-dMRIharmonization
46e207c5d2b7fd68ddbbd1b305c33cfd45351ee8
[ "CNRI-Python", "Info-ZIP" ]
3
2019-10-18T16:06:03.000Z
2021-02-21T01:10:45.000Z
#!/usr/bin/env python import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import pandas as pd from conversion import read_imgs_masks from os.path import isfile, basename XERR=0.1 ELINEWIDTH=3 CAPSIZE=5 CAPTHICK=3 FMT='cD' def harm_plot(ydata, labels, outPrefix, bshell_b): '...
27.2
100
0.619748
0
0
0
0
0
0
0
0
1,135
0.397409
7f4c6dcef66737c0d797d459d092bd0f3dc07425
1,913
py
Python
tests/test_preproc_badframes.py
ChrisDelaX/VIP
7b728bdc78fdeb693e19de269ddfffba15064fb4
[ "MIT" ]
2
2017-02-10T02:02:17.000Z
2018-02-16T16:07:24.000Z
tests/test_preproc_badframes.py
ChrisDelaX/VIP
7b728bdc78fdeb693e19de269ddfffba15064fb4
[ "MIT" ]
null
null
null
tests/test_preproc_badframes.py
ChrisDelaX/VIP
7b728bdc78fdeb693e19de269ddfffba15064fb4
[ "MIT" ]
2
2020-07-18T19:31:03.000Z
2022-01-24T21:11:20.000Z
""" Tests for the badframes detection routines. """ import numpy as np import vip_hci as vip def test_badfr_corr(): im1 = vip.var.create_synth_psf(shape=(19, 19), fwhm=2) im2 = vip.var.create_synth_psf(shape=(19, 19), fwhm=(2, 4)) cube = np.array([im1, im2, im1, im2]) gind, bind = vip.preproc.cube_d...
39.854167
80
0.531103
0
0
0
0
0
0
0
0
58
0.030319
7f4d15cfb3ed6c16d32e8b711404ca08ebd94da8
13,774
py
Python
DE_rpy2.py
jhonP-Li/DE_rpy2
460724631527dc386a35268b9f923ab5c708166a
[ "MIT" ]
6
2021-05-02T09:15:59.000Z
2022-03-27T23:41:41.000Z
DE_rpy2.py
jhonP-Li/DE_rpy2
460724631527dc386a35268b9f923ab5c708166a
[ "MIT" ]
null
null
null
DE_rpy2.py
jhonP-Li/DE_rpy2
460724631527dc386a35268b9f923ab5c708166a
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021 Li Pan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
43.726984
121
0.614709
12,249
0.889284
0
0
0
0
0
0
6,732
0.488747
7f4dddafff562d1d609415b1456d1843f25b7c47
3,049
py
Python
cgatpipelines/tools/pipeline_docs/pipeline_rnaseqdiffexpression/trackers/Results.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
49
2015-04-13T16:49:25.000Z
2022-03-29T10:29:14.000Z
cgatpipelines/tools/pipeline_docs/pipeline_rnaseqdiffexpression/trackers/Results.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
252
2015-04-08T13:23:34.000Z
2019-03-18T21:51:29.000Z
cgatpipelines/tools/pipeline_docs/pipeline_rnaseqdiffexpression/trackers/Results.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
22
2015-05-21T00:37:52.000Z
2019-09-25T05:04:27.000Z
from CGATReport.Tracker import * from CGATReport.Utils import PARAMS as P from IsoformReport import * ############################################################################### # parse params ############################################################################### DATABASE = P.get('', P.get('sql_backend'...
30.49
79
0.608396
2,466
0.80879
0
0
0
0
0
0
2,018
0.661856
7f4f7c16103c58deb5243e5a653fd451eaf61603
2,063
py
Python
semseg/datasets/celebamaskhq.py
Genevievekim/semantic-segmentation-1
f28b026e44cff80fe3ca4cac94cea27e4073821b
[ "BSD-3-Clause" ]
196
2021-08-22T10:01:34.000Z
2022-03-29T09:59:51.000Z
semseg/datasets/celebamaskhq.py
Genevievekim/semantic-segmentation-1
f28b026e44cff80fe3ca4cac94cea27e4073821b
[ "BSD-3-Clause" ]
21
2021-08-22T09:59:02.000Z
2022-03-29T15:22:46.000Z
semseg/datasets/celebamaskhq.py
Genevievekim/semantic-segmentation-1
f28b026e44cff80fe3ca4cac94cea27e4073821b
[ "BSD-3-Clause" ]
36
2021-08-22T08:59:40.000Z
2022-03-28T10:13:20.000Z
import torch from torch import Tensor from torch.utils.data import Dataset from torchvision import io from pathlib import Path from typing import Tuple from torchvision import transforms as T class CelebAMaskHQ(Dataset): CLASSES = [ 'background', 'skin', 'nose', 'eye_g', 'l_eye', 'r_eye', 'l_brow', 'r_br...
38.924528
150
0.593311
1,694
0.821134
0
0
0
0
0
0
383
0.185652
7f54beba2b06ca2509ee89c2efe002bfd7c05562
282,158
py
Python
gui/py37/images_rc.py
briansune/UART2ETHERNET_MODULE
6ace3f5a7a75365d4d8c3d0e17b9368832237464
[ "MIT" ]
1
2022-03-30T20:37:33.000Z
2022-03-30T20:37:33.000Z
gui/py37/images_rc.py
briansune/UART2ETHERNET_MODULE
6ace3f5a7a75365d4d8c3d0e17b9368832237464
[ "MIT" ]
null
null
null
gui/py37/images_rc.py
briansune/UART2ETHERNET_MODULE
6ace3f5a7a75365d4d8c3d0e17b9368832237464
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.9.6) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x2d\x15\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\xc8\x0...
65.284128
105
0.727202
0
0
0
0
0
0
0
0
281,554
0.997859
7f5625881c7046dfae33e15d82f6f91717dbc467
430
py
Python
PYTHON/pythonDesafios/desafio062.py
Santos1000/Curso-Python
549223a1633f6f619c87554dd8078cf7841bb1df
[ "MIT" ]
null
null
null
PYTHON/pythonDesafios/desafio062.py
Santos1000/Curso-Python
549223a1633f6f619c87554dd8078cf7841bb1df
[ "MIT" ]
null
null
null
PYTHON/pythonDesafios/desafio062.py
Santos1000/Curso-Python
549223a1633f6f619c87554dd8078cf7841bb1df
[ "MIT" ]
null
null
null
print('Gerador de PA\n','==-'*10) primeiro = int(input('Primeiro termo:')) razao = int(input('Razao da PA:')) termo = primeiro c = 1 total = 0 mais = 10 while mais != 0: total = total + mais while c <= total: print(f'{termo} ->', end='') c += 1 termo += razao print('PAUSA') mais ...
25.294118
65
0.583721
0
0
0
0
0
0
0
0
163
0.37819
7f57b8e3e5f7d093c4f07748cc4cc4d938880d93
4,409
py
Python
codes/Lib/site-packages/RsInstrument/Internal/ConverterToScpiString.py
charlescayno/automation
a4a34d87f372d49fd69740ad3ca46ae19bf2612d
[ "MIT" ]
null
null
null
codes/Lib/site-packages/RsInstrument/Internal/ConverterToScpiString.py
charlescayno/automation
a4a34d87f372d49fd69740ad3ca46ae19bf2612d
[ "MIT" ]
null
null
null
codes/Lib/site-packages/RsInstrument/Internal/ConverterToScpiString.py
charlescayno/automation
a4a34d87f372d49fd69740ad3ca46ae19bf2612d
[ "MIT" ]
null
null
null
from enum import Enum from .Conversions import list_to_csv_quoted_str, value_to_quoted_str, list_to_csv_str, value_to_str, enum_list_to_str, enum_scalar_to_str from .Types import DataType def value_to_scpi_string(data, data_type: DataType): """Method to be used in the driver implementation. Convert data to SCPI st...
54.432099
219
0.756181
1,057
0.239737
0
0
0
0
0
0
1,911
0.433432
7f57d7df7fd0834188bfe8a6c66e64ecd0ee8e3e
565
py
Python
examples/example_interactive_prefix/main.py
David-Lor/Python-DotEnv-Settings-Handler
ca234914a93f94f59a8a37e65ff9010ffc9c4e99
[ "Apache-2.0" ]
6
2019-06-30T14:49:28.000Z
2020-03-10T19:56:30.000Z
examples/example_interactive_prefix/main.py
David-Lor/Python-DotEnv-Settings-Handler
ca234914a93f94f59a8a37e65ff9010ffc9c4e99
[ "Apache-2.0" ]
null
null
null
examples/example_interactive_prefix/main.py
David-Lor/Python-DotEnv-Settings-Handler
ca234914a93f94f59a8a37e65ff9010ffc9c4e99
[ "Apache-2.0" ]
null
null
null
"""This example read the settings and print them out, so you can check how they get loaded. """ # noinspection PyUnresolvedReferences,PyPackageRequirements from settings import my_settings as settings print("Redis Host:", settings.redis_host) print("Redis Port:", settings.redis_port) print("Redis Port / 2:", settings...
40.357143
91
0.753982
0
0
0
0
0
0
0
0
304
0.538053
7f58ffa14e511fa65d58d25693bfa7dcc12acb63
1,109
py
Python
Datasets/Generator/Disaster/main.py
undraaa/m2bench
b661b61ca04470ed1c9c50531ce760a2cd5000d9
[ "RSA-MD" ]
null
null
null
Datasets/Generator/Disaster/main.py
undraaa/m2bench
b661b61ca04470ed1c9c50531ce760a2cd5000d9
[ "RSA-MD" ]
null
null
null
Datasets/Generator/Disaster/main.py
undraaa/m2bench
b661b61ca04470ed1c9c50531ce760a2cd5000d9
[ "RSA-MD" ]
null
null
null
import sys import table_gen import doc_gen import graph_gen import array_gen import os def main(argv): outdir = './sf1_dataset_output/' if os.path.exists(outdir): os.system("rm -rf "+outdir) os.mkdir(outdir) earthquake_dirpath = argv[1] shelter_dirpath = argv[2] gps_dirpath = argv[3] ...
25.790698
58
0.71596
0
0
0
0
0
0
0
0
240
0.216411
7f5e9b1cd835e4eff21472b20f8a3b722d2a03e6
4,450
py
Python
MultiPManager/distProc.py
sebastiantrianac/SoftTLON
3b798393efbd49b4a22acf19a056d64bef1d0ddf
[ "MIT" ]
null
null
null
MultiPManager/distProc.py
sebastiantrianac/SoftTLON
3b798393efbd49b4a22acf19a056d64bef1d0ddf
[ "MIT" ]
null
null
null
MultiPManager/distProc.py
sebastiantrianac/SoftTLON
3b798393efbd49b4a22acf19a056d64bef1d0ddf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # # A module for create a multi-agent system over Ad-hoc networks # Copyright (C) 2017-2018 # Juan Sebastian Triana Correa <justrianaco@unal.edu.co> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as publ...
32.481752
97
0.704494
0
0
0
0
0
0
0
0
1,659
0.372809
7f60669d9c8f83bdc7550f5d0401483d476b3958
1,565
py
Python
setup.py
charlesthomas/testrail_reporter
bc522ed3a66aee38c21cc45e2d3b9a786df45e02
[ "MIT" ]
null
null
null
setup.py
charlesthomas/testrail_reporter
bc522ed3a66aee38c21cc45e2d3b9a786df45e02
[ "MIT" ]
null
null
null
setup.py
charlesthomas/testrail_reporter
bc522ed3a66aee38c21cc45e2d3b9a786df45e02
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup NAME = 'testrail_reporter' DESCRIPTION = 'Nosetests Plugin to Report Test Results to TestRail.' VERSION = open('VERSION').read().strip() LONG_DESC = open('README.rst').read() LICENSE = open('LICENSE').read() setup( name=NAME, version=VERSION, author='Char...
36.395349
98
0.645367
0
0
0
0
0
0
0
0
1,018
0.650479
7f60d515f24c5c7adbd364f7654c2e0099fc891b
871
py
Python
bleach__examples__remove_tags__clear_html/escape_protocols.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
bleach__examples__remove_tags__clear_html/escape_protocols.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
bleach__examples__remove_tags__clear_html/escape_protocols.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' # SOURCE: https://github.com/mozilla/bleach # SOURCE: https://bleach.readthedocs.io/en/latest/clean.html#allowed-protocols-protocols # pip install bleach import bleach # List of allowed protocols print('List of allowed protocols:', bleach.san...
21.243902
88
0.641791
0
0
0
0
0
0
0
0
578
0.663605
7f6302ecae4a93f7afb3564d0a9c878a96bd226e
4,920
py
Python
test/test_entity_builder.py
ari-bou/symro
b49a5578b4e1d95ab5ab92b06bfea2bc6ead2246
[ "MIT" ]
null
null
null
test/test_entity_builder.py
ari-bou/symro
b49a5578b4e1d95ab5ab92b06bfea2bc6ead2246
[ "MIT" ]
null
null
null
test/test_entity_builder.py
ari-bou/symro
b49a5578b4e1d95ab5ab92b06bfea2bc6ead2246
[ "MIT" ]
null
null
null
import symro import symro.src.handlers.metaentitybuilder as eb from symro.src.parsing.amplparser import AMPLParser from symro.test.test_util import * # Scripts # ---------------------------------------------------------------------------------------------------------------------- FIXED_DIM_SCRIPT = """ set I = {1, 2...
36.176471
120
0.641057
0
0
0
0
0
0
0
0
1,870
0.380081
7f64ce20d2bc7463fbe8a47e2e961d23f53650a4
14,042
py
Python
source/StimulationScreen.py
FelixTheoret/Ergocycle
0656e6cb43b535dd2f845420ad71742b1b85e412
[ "MIT" ]
null
null
null
source/StimulationScreen.py
FelixTheoret/Ergocycle
0656e6cb43b535dd2f845420ad71742b1b85e412
[ "MIT" ]
null
null
null
source/StimulationScreen.py
FelixTheoret/Ergocycle
0656e6cb43b535dd2f845420ad71742b1b85e412
[ "MIT" ]
2
2022-03-17T23:17:56.000Z
2022-03-23T01:08:58.000Z
""" Created on Wed March 30 11::00 2022 @author: Frédérique Leclerc """ from tracemalloc import start from numpy import number from Screen import Screen as Screen from PyQt5 import QtWidgets from PyQt5.QtWidgets import * from PyQt5.QtGui import QFont, QPixmap from PIL import Image #from Ergocycle.source.StartWindow i...
65.924883
230
0.703319
13,148
0.934537
0
0
0
0
0
0
3,152
0.224039
7f6557fd2c7f3025f39724cdaeb984fe7369be4f
1,412
py
Python
src/createVocabulary.py
aws-samples/aim317-uncover-insights-customer-conversations
663ba08fe9ad1cf1e520e77a88dc6a96b611619b
[ "MIT-0" ]
null
null
null
src/createVocabulary.py
aws-samples/aim317-uncover-insights-customer-conversations
663ba08fe9ad1cf1e520e77a88dc6a96b611619b
[ "MIT-0" ]
null
null
null
src/createVocabulary.py
aws-samples/aim317-uncover-insights-customer-conversations
663ba08fe9ad1cf1e520e77a88dc6a96b611619b
[ "MIT-0" ]
1
2021-12-20T16:40:55.000Z
2021-12-20T16:40:55.000Z
import boto3 import uuid import json import os def lambda_handler(event, context): record = event['Records'][0] s3bucket = record['s3']['bucket']['name'] s3object = record['s3']['object']['key'] print(s3object.split(".")[0].split("-")[2]) if s3object.split(".")[0].split("-")[2] ...
25.214286
73
0.526912
0
0
0
0
0
0
0
0
309
0.218839
7f661e451d1b0a515002a9da6f0b3193c7f5f896
773
py
Python
app/api/model/blacklist.py
ChegeBryan/politico
746ef4c76931928ef145593092c8b391421a50fd
[ "MIT" ]
1
2021-09-08T13:17:03.000Z
2021-09-08T13:17:03.000Z
app/api/model/blacklist.py
ChegeBryan/politico
746ef4c76931928ef145593092c8b391421a50fd
[ "MIT" ]
62
2019-02-04T07:08:32.000Z
2021-05-06T19:49:03.000Z
app/api/model/blacklist.py
ChegeBryan/politico
746ef4c76931928ef145593092c8b391421a50fd
[ "MIT" ]
5
2019-02-11T18:21:14.000Z
2022-02-25T07:41:07.000Z
""" Blacklist_token class method and model """ import datetime class BlacklistToken: """Blacklist token class 1. initializes the class with the user token and the time created """ def __init__(self, token): self.token = token self.blacklisted_on = datetime.datetime.now() def add...
26.655172
71
0.626132
706
0.913325
0
0
236
0.305304
0
0
344
0.445019
7f667e0c792310a6ca90389cd7acf95cb20a0aed
3,631
py
Python
matrix_procedures/load_dataset_class.py
jamiecook/AequilibraE
b1013d59cbeaf6fc4e1a944cf31f20460a2a4156
[ "MIT" ]
null
null
null
matrix_procedures/load_dataset_class.py
jamiecook/AequilibraE
b1013d59cbeaf6fc4e1a944cf31f20460a2a4156
[ "MIT" ]
null
null
null
matrix_procedures/load_dataset_class.py
jamiecook/AequilibraE
b1013d59cbeaf6fc4e1a944cf31f20460a2a4156
[ "MIT" ]
null
null
null
""" ----------------------------------------------------------------------------------------------------------- Package: AequilibraE Name: Loads datasets into AequilibraE binary files Purpose: Implements dataset creation Original Author: Pedro Camargo (c@margo.co) Contributors: Last edited by: Ped...
39.043011
108
0.56238
2,734
0.752961
0
0
0
0
0
0
1,023
0.281741
7f6761d3d7ac11e1232a9005ec969e6f67128b3e
781
py
Python
FastCAE_Linux/output/examples/example3/view.py
alleindrach/calculix-desktop
2cb2c434b536eb668ff88bdf82538d22f4f0f711
[ "MIT" ]
23
2020-03-16T03:01:43.000Z
2022-03-21T16:36:22.000Z
FastCAE_Linux/output/examples/example3/view.py
alleindrach/calculix-desktop
2cb2c434b536eb668ff88bdf82538d22f4f0f711
[ "MIT" ]
1
2020-03-17T05:50:07.000Z
2020-03-17T05:50:07.000Z
FastCAE_Linux/output/examples/example3/view.py
alleindrach/calculix-desktop
2cb2c434b536eb668ff88bdf82538d22f4f0f711
[ "MIT" ]
17
2020-03-16T01:46:36.000Z
2022-03-21T16:36:37.000Z
MainWindow.clearData() MainWindow.openPreWindow() box = CAD.Box() box.setName('Box_1') box.setLocation(0,0,0) box.setPara(10,10,10) box.create() cylinder = CAD.Cylinder() cylinder.setName('Cylinder_2') cylinder.setLocation(0,0,0) cylinder.setRadius(5) cylinder.setLength(10) cylinder.setAxis(0,0,1) cylinder...
25.193548
41
0.766965
0
0
0
0
0
0
0
0
31
0.039693
7f696039cf0e21135e93815d60394b72a34a443f
1,040
py
Python
app/api/routes/server/plot_queue.py
cPoolChia/ChiaAutoplotter-Backend
8d875c1f846df395ddc76e3d84b36da45ad4d557
[ "MIT" ]
7
2021-06-01T09:20:34.000Z
2021-10-12T07:24:04.000Z
app/api/routes/server/plot_queue.py
cPoolChia/ChiaFarmerManager-Backend
8d875c1f846df395ddc76e3d84b36da45ad4d557
[ "MIT" ]
null
null
null
app/api/routes/server/plot_queue.py
cPoolChia/ChiaFarmerManager-Backend
8d875c1f846df395ddc76e3d84b36da45ad4d557
[ "MIT" ]
1
2021-05-31T13:08:14.000Z
2021-05-31T13:08:14.000Z
from typing import Any from uuid import UUID, uuid4 import celery from app import crud, models, schemas from app.api import deps from app.core.config import settings from app.utils import auth from app.core import tasks from fastapi import APIRouter, Depends, HTTPException, Body, Query from sqlalchemy.orm import Sessi...
32.5
81
0.740385
537
0.516346
0
0
550
0.528846
0
0
3
0.002885
7f6a2ed067f756a98844a26933435661e374cbc1
991
py
Python
mushroom_rl/utils/eligibility_trace.py
PuzeLiu/mushroom-rl
99942b425e66b4ddcc26009d7105dde23841e95d
[ "MIT" ]
344
2020-01-10T09:45:02.000Z
2022-03-30T09:48:28.000Z
mushroom_rl/utils/eligibility_trace.py
AmmarFahmy/mushroom-rl
2625ee7f64d5613b3b9fba00f0b7a39fece88ca5
[ "MIT" ]
44
2020-01-23T03:00:56.000Z
2022-03-25T17:14:22.000Z
mushroom_rl/utils/eligibility_trace.py
AmmarFahmy/mushroom-rl
2625ee7f64d5613b3b9fba00f0b7a39fece88ca5
[ "MIT" ]
93
2020-01-10T21:17:58.000Z
2022-03-31T17:58:52.000Z
from mushroom_rl.utils.table import Table def EligibilityTrace(shape, name='replacing'): """ Factory method to create an eligibility trace of the provided type. Args: shape (list): shape of the eligibility trace table; name (str, 'replacing'): type of the eligibility trace. Returns: ...
21.543478
71
0.616549
389
0.392533
0
0
0
0
0
0
430
0.433905
7f6d004764ff3c98efc96ebb1cf1f394bc32a7c1
440
py
Python
example_pkg/Parrots.py
TillWeinhold/EQUSWORKSHOPTill
95099cc8d8ebc93b53db6d9e9b4c67051fcb7763
[ "MIT" ]
null
null
null
example_pkg/Parrots.py
TillWeinhold/EQUSWORKSHOPTill
95099cc8d8ebc93b53db6d9e9b4c67051fcb7763
[ "MIT" ]
null
null
null
example_pkg/Parrots.py
TillWeinhold/EQUSWORKSHOPTill
95099cc8d8ebc93b53db6d9e9b4c67051fcb7763
[ "MIT" ]
null
null
null
class Parrot(): def __init__(self, squawk, is_alive=True): self.squawk = squawk self.is_alive = is_alive african_grey = Parrot('Polly want a Cracker?') norwegian_blue = Parrot('', is_alive=False) def squawk(self): if self.is_alive: return self.squawk else: ...
22
46
0.652273
125
0.284091
0
0
0
0
0
0
25
0.056818
7f6f7feeb11eb05bb310cec5c813b37346f053c2
226
py
Python
Codility/python/problem2.py
rayguang/ratesbuddy
ec97f85201812967bb3380bba6de41bdb223eab6
[ "MIT" ]
null
null
null
Codility/python/problem2.py
rayguang/ratesbuddy
ec97f85201812967bb3380bba6de41bdb223eab6
[ "MIT" ]
null
null
null
Codility/python/problem2.py
rayguang/ratesbuddy
ec97f85201812967bb3380bba6de41bdb223eab6
[ "MIT" ]
null
null
null
def solution(S, K): # write your code in Python 3.6 day_dict = {0:'Mon', 1:'Tue', 2:'Wed', 3:'Thu', 4:'Fri', 5:'Sat', 6:'Sun'} return day_dict[list(day_dict.values()).index(S)+K] S='Wed' K=2 print(solution(S,K))
22.6
78
0.584071
0
0
0
0
0
0
0
0
71
0.314159
7f7137d3c4d91bf9456a8fd7ac1c27ab02193797
162
py
Python
ex030.py
MarcelleFranca/exercicios-python
e65c1d1f2d92db0e8f5035dea8062a53defa899f
[ "MIT" ]
null
null
null
ex030.py
MarcelleFranca/exercicios-python
e65c1d1f2d92db0e8f5035dea8062a53defa899f
[ "MIT" ]
null
null
null
ex030.py
MarcelleFranca/exercicios-python
e65c1d1f2d92db0e8f5035dea8062a53defa899f
[ "MIT" ]
null
null
null
n = int(input('Me diga um número qualquer: ')) re = n % 2 if re == 0: print('O número {} é PAR!'.format(n)) else: print('O número {} é ÍMPAR!'.format(n))
23.142857
46
0.567901
0
0
0
0
0
0
0
0
78
0.464286
7f71ee99f2565a596f85f7576a116d55d2f91fcd
6,927
py
Python
pyoperant/reinf.py
arouse01/pyoperant
e61de84862096720cca7dbecf517ee11c5d504d4
[ "BSD-3-Clause" ]
1
2019-01-26T17:19:47.000Z
2019-01-26T17:19:47.000Z
pyoperant/reinf.py
arouse01/pyoperant
e61de84862096720cca7dbecf517ee11c5d504d4
[ "BSD-3-Clause" ]
null
null
null
pyoperant/reinf.py
arouse01/pyoperant
e61de84862096720cca7dbecf517ee11c5d504d4
[ "BSD-3-Clause" ]
null
null
null
from numpy import random class BaseSchedule(object): """Maintains logic for deciding whether to consequate trials. This base class provides the most basic reinforcent schedule: every response is consequated. Methods: consequate(trial) -- returns a boolean value based on whether the trial ...
31.06278
91
0.664501
6,881
0.993359
0
0
0
0
0
0
3,764
0.543381
7f7253b551b2ff6d740c1f9d0a5085a8b1f18654
7,766
py
Python
Conditional/TextGAIL/model.py
mrazizi/TextGAIL
9b6e0e62669e0bd4fbb1a8b64098c8432b0d725d
[ "MIT" ]
19
2020-05-16T23:13:43.000Z
2022-03-08T15:01:48.000Z
Conditional/TextGAIL/model.py
MarkusSagen/TextGAIL
18ba72c6d63c3c3db1f195d118267c6e8243b4ff
[ "MIT" ]
2
2020-07-24T09:09:34.000Z
2022-02-22T11:56:31.000Z
Conditional/TextGAIL/model.py
MarkusSagen/TextGAIL
18ba72c6d63c3c3db1f195d118267c6e8243b4ff
[ "MIT" ]
10
2020-06-09T09:15:14.000Z
2022-03-20T09:36:30.000Z
from typing import Any, List, Dict, Iterator, Callable import torch import torch.nn as nn import torch.nn.functional as F from transformers import AutoTokenizer, RobertaForMultipleChoice import torchfly from torchfly.nn.transformers import GPT2LMHeadModel from torchfly.training import FlyModel from torchfly.nn.losses ...
40.873684
119
0.635076
7,184
0.925058
0
0
0
0
0
0
1,380
0.177698
7f7257441c10fd88f6708caf8a3bdeae39120b6f
5,622
py
Python
yolo_v1_inference.py
jerichosu/YOLO_V1_Pytorch
2f665f6b6b00d8cf9782bff43c5aede5aa5c3a4a
[ "MIT" ]
null
null
null
yolo_v1_inference.py
jerichosu/YOLO_V1_Pytorch
2f665f6b6b00d8cf9782bff43c5aede5aa5c3a4a
[ "MIT" ]
null
null
null
yolo_v1_inference.py
jerichosu/YOLO_V1_Pytorch
2f665f6b6b00d8cf9782bff43c5aede5aa5c3a4a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 10 14:12:28 2022 @author: 1517suj """ from model import Yolov1 import torch import torch.optim as optim import torchvision.transforms as T import cv2 from utils import ( non_max_suppression, mean_average_precision, intersection_over_unio...
26.771429
124
0.590359
0
0
0
0
0
0
0
0
4,174
0.74244
7f7260f159737945fe7bc1ae8aea08979812d974
1,812
py
Python
setup.py
sedatDemiriz/satisfy-calc
6b89226a87958dd89ed6327d9bf10bd5e9927a7b
[ "MIT" ]
null
null
null
setup.py
sedatDemiriz/satisfy-calc
6b89226a87958dd89ed6327d9bf10bd5e9927a7b
[ "MIT" ]
null
null
null
setup.py
sedatDemiriz/satisfy-calc
6b89226a87958dd89ed6327d9bf10bd5e9927a7b
[ "MIT" ]
null
null
null
import pathlib from setuptools import setup # The directory containing this file HERE = pathlib.Path(__file__).parent # The text of the README file README = (HERE / "README.md").read_text() setup( name="satisfy-calc", version="1.1.3", description="Command line crafting tree visualizer for Sat...
30.711864
105
0.598786
0
0
0
0
0
0
0
0
1,246
0.687638
7f74399a50cac0ddf062397297d09c884bd0d887
74
py
Python
projects/InstantTeaching/models/__init__.py
txdet/Instant-Teaching
d07910c4c811d875b03200ffb1822c32556ccf9a
[ "Apache-2.0" ]
18
2021-12-14T08:37:34.000Z
2022-03-25T18:53:21.000Z
projects/InstantTeaching/models/__init__.py
txdet/Instant-Teaching
d07910c4c811d875b03200ffb1822c32556ccf9a
[ "Apache-2.0" ]
1
2022-02-16T08:06:30.000Z
2022-02-16T08:06:30.000Z
projects/InstantTeaching/models/__init__.py
txdet/Instant-Teaching
d07910c4c811d875b03200ffb1822c32556ccf9a
[ "Apache-2.0" ]
1
2022-02-08T08:30:07.000Z
2022-02-08T08:30:07.000Z
from .detectors import * from .max_iou_assigner_v2 import MaxIoUAssignerV2
37
49
0.864865
0
0
0
0
0
0
0
0
0
0
7f74c0fc275d974a627baa79ccbe3262645f2513
2,195
py
Python
components/studio/projects/migrations/0015_auto_20210301_1015.py
aitmlouk/stackn
c8029394a15b03796a4864938f9db251b65c7354
[ "Apache-2.0" ]
25
2020-05-08T22:24:54.000Z
2022-03-11T18:16:58.000Z
components/studio/projects/migrations/0015_auto_20210301_1015.py
aitmlouk/stackn
c8029394a15b03796a4864938f9db251b65c7354
[ "Apache-2.0" ]
75
2020-05-08T22:15:59.000Z
2021-11-22T10:00:04.000Z
components/studio/projects/migrations/0015_auto_20210301_1015.py
aitmlouk/stackn
c8029394a15b03796a4864938f9db251b65c7354
[ "Apache-2.0" ]
12
2020-11-04T13:09:46.000Z
2022-03-14T16:22:40.000Z
# Generated by Django 3.1.6 on 2021-03-01 10:15 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('projects', '0014_environment_appenv'), ] operations = [ migrations.RemoveField( model_name='fla...
30.486111
115
0.541686
2,069
0.942597
0
0
0
0
0
0
343
0.156264
7f7574b64532b1f7794103ece680d1785b89f64b
210
py
Python
tests/Auth_Test.py
PyDO-Team/PyDO-Old
a89d9d30aee72a42ce3afdd90b5b297e7b908d73
[ "BSD-3-Clause" ]
1
2021-02-23T12:54:05.000Z
2021-02-23T12:54:05.000Z
tests/Auth_Test.py
PyDO-Team/PyDO-Old
a89d9d30aee72a42ce3afdd90b5b297e7b908d73
[ "BSD-3-Clause" ]
null
null
null
tests/Auth_Test.py
PyDO-Team/PyDO-Old
a89d9d30aee72a42ce3afdd90b5b297e7b908d73
[ "BSD-3-Clause" ]
1
2021-02-23T12:54:07.000Z
2021-02-23T12:54:07.000Z
from TestOutput import LogManager class Auth_Test: def __init__(self): self.logger = LogManager('AuthTest') self.logger.writeTestEvent('AuthTest', 'Test Started') if __name__ == "__main__": Auth_Test()
21
56
0.747619
134
0.638095
0
0
0
0
0
0
44
0.209524
7f76ceea26c08de27da1840f0d593d7e2ff3c37f
298
py
Python
app/models/db.py
cdlaimin/fastapi
4acf1a1da4a1eedd81a3bdf6256661c2464928b9
[ "BSD-3-Clause" ]
null
null
null
app/models/db.py
cdlaimin/fastapi
4acf1a1da4a1eedd81a3bdf6256661c2464928b9
[ "BSD-3-Clause" ]
null
null
null
app/models/db.py
cdlaimin/fastapi
4acf1a1da4a1eedd81a3bdf6256661c2464928b9
[ "BSD-3-Clause" ]
null
null
null
from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession from sqlalchemy.orm import sessionmaker from app.core.config import settings engine = create_async_engine(settings.ASYNC_SQLALCHEMY_DATABASE_URI) SessionLocal = sessionmaker(engine, class_=AsyncSession, expire_on_commit=False)
37.25
80
0.865772
0
0
0
0
0
0
0
0
0
0
7f774ce1cb63f287b074535083076da2eb2886d4
37
py
Python
src/globals.py
22PoojaGaur/COMINE-Plusplus-Algorithm-for-Finding-Correlated-Patterns-from-Transactions
3b554ab337765f8c02126c585dd025d71c539f73
[ "MIT" ]
null
null
null
src/globals.py
22PoojaGaur/COMINE-Plusplus-Algorithm-for-Finding-Correlated-Patterns-from-Transactions
3b554ab337765f8c02126c585dd025d71c539f73
[ "MIT" ]
6
2020-10-03T19:47:08.000Z
2021-04-23T10:55:19.000Z
src/globals.py
22PoojaGaur/COMINE-Plusplus-Algorithm-for-Finding-Correlated-Patterns-from-Transactions
3b554ab337765f8c02126c585dd025d71c539f73
[ "MIT" ]
null
null
null
MIN_SUPPORT = 2 MIN_ALL_CONF = 0.05
9.25
19
0.72973
0
0
0
0
0
0
0
0
0
0
7f794d62fc3c675ead0a023096a5c67f9a7ede0f
195
py
Python
1-iniciante/1038.py
marcobarone-dev/uri
82bf0b244d3966673b10a42948dcdeabcde07e76
[ "MIT" ]
1
2018-07-04T02:42:29.000Z
2018-07-04T02:42:29.000Z
1-iniciante/1038.py
marcobarone-dev/uri-python
82bf0b244d3966673b10a42948dcdeabcde07e76
[ "MIT" ]
null
null
null
1-iniciante/1038.py
marcobarone-dev/uri-python
82bf0b244d3966673b10a42948dcdeabcde07e76
[ "MIT" ]
null
null
null
produtos = {1: 4.0, 2: 4.5, 3: 5.0, 4: 2.0, 5: 1.5} produto, quantidade = [int(num) for num in input().split()] total = produtos[produto] * quantidade print('Total: R$ {:.2f}'.format(total))
39
60
0.605128
0
0
0
0
0
0
0
0
18
0.092308
7f7b9c9bf2b4a1aef51cf2613f660d03ff4d092d
1,168
py
Python
books/software-architecture-with-python/Ch04-performance-data-structures/primes.py
phiratio/lpthw
a32240d4355fb331805d515f96e1d009914e5c47
[ "MIT" ]
1
2021-04-21T09:38:38.000Z
2021-04-21T09:38:38.000Z
books/software-architecture-with-python/Ch04-performance-data-structures/primes.py
phiratio/lpthw
a32240d4355fb331805d515f96e1d009914e5c47
[ "MIT" ]
34
2019-12-16T16:53:24.000Z
2022-01-13T02:29:30.000Z
books/software-architecture-with-python/Ch04-performance-data-structures/primes.py
phiratio/lpthw
a32240d4355fb331805d515f96e1d009914e5c47
[ "MIT" ]
null
null
null
# Code Listing #3 """ Prime number iterator class """ class Prime(object): """ A prime number iterator for first 'n' primes """ def __init__(self, n): self.n = n self.count = 0 self.value = 0 def __iter__(self): return self def __next__(self): """ Return ne...
20.137931
58
0.518836
1,054
0.902397
0
0
0
0
0
0
347
0.297089
7f7cecbd7d8387712e80404ab9516b060333f0e5
444
py
Python
timeblock/stopwatch.py
daustin391/timeblock
1895f95205100f2f191feccbb1bcb90672aae043
[ "MIT" ]
null
null
null
timeblock/stopwatch.py
daustin391/timeblock
1895f95205100f2f191feccbb1bcb90672aae043
[ "MIT" ]
null
null
null
timeblock/stopwatch.py
daustin391/timeblock
1895f95205100f2f191feccbb1bcb90672aae043
[ "MIT" ]
null
null
null
""" Stopwatch A simple stopwatch for measuring time """ from datetime import datetime class Stopwatch: """Stopwatch object for measuring time""" def __init__(self): self._start = None def start(self): """Starts watch by setting start time to now""" self._start = datetime.now(...
22.2
55
0.635135
351
0.790541
0
0
0
0
0
0
194
0.436937
7f7d50f6a8fff49e5e4da85906cece438d04d0c3
623
py
Python
src/data/mnist_converter.py
laurabondeholst/Mapping_high_dimensional_data
208c1024d3984cf60fc2f54b7bfdffaa83c60157
[ "MIT" ]
null
null
null
src/data/mnist_converter.py
laurabondeholst/Mapping_high_dimensional_data
208c1024d3984cf60fc2f54b7bfdffaa83c60157
[ "MIT" ]
null
null
null
src/data/mnist_converter.py
laurabondeholst/Mapping_high_dimensional_data
208c1024d3984cf60fc2f54b7bfdffaa83c60157
[ "MIT" ]
null
null
null
""" Takes the MNIST dataset as input (images and labels separated) and creates a new dataset only with 0's and 1's """ import numpy as np DATA_PATH = "data/raw/" OUTPUT_PATH = "data/processed/mnist/" X = np.loadtxt(DATA_PATH + "mnist2500_X.txt") labels = np.loadtxt(DATA_PATH + "mnist2500_labels.txt") X_new = [] labe...
25.958333
64
0.693419
0
0
0
0
0
0
0
0
262
0.420546
7f7df73d539af4f42bcbde355e7bdef39b43dc8a
7,364
py
Python
models/pytorch_gcn.py
SamGalanakis/FlowCompare
ed26e48298fe42cf9ddcc252c19b502b4a71d54e
[ "MIT" ]
5
2021-05-22T23:14:19.000Z
2022-02-19T14:11:27.000Z
models/pytorch_gcn.py
SamGalanakis/PointFlowChange
ed26e48298fe42cf9ddcc252c19b502b4a71d54e
[ "MIT" ]
1
2021-06-05T11:20:53.000Z
2021-06-05T12:30:44.000Z
models/pytorch_gcn.py
SamGalanakis/PointFlowChange
ed26e48298fe42cf9ddcc252c19b502b4a71d54e
[ "MIT" ]
null
null
null
import os import sys import copy import math import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from models.nets import MLP # Original code from : https://github.com/WangYueFt/dgcnn/blob/master/pytorch/model.py def knn(x, k): inner = -2*torch.matmul(x.transpose(2, 1), x) xx ...
38.354167
144
0.562873
5,967
0.810293
0
0
0
0
0
0
1,539
0.20899
7f8193e422f05e255a9a742b6b7c71cffa4e2519
2,794
py
Python
src/weaver/models/custom/wrn28.py
Holim0711/holim-lightning
690972c8faa587e7042bc15d4980c363163083e4
[ "MIT" ]
1
2021-03-03T08:53:49.000Z
2021-03-03T08:53:49.000Z
src/weaver/models/custom/wrn28.py
Holim0711/holim-lightning
690972c8faa587e7042bc15d4980c363163083e4
[ "MIT" ]
1
2021-03-19T09:16:05.000Z
2021-03-19T09:35:18.000Z
src/weaver/models/custom/wrn28.py
Holim0711/holim-lightning
690972c8faa587e7042bc15d4980c363163083e4
[ "MIT" ]
null
null
null
import torch.nn as nn class BasicBlock(nn.Module): def __init__(self, cᵢ, cₒ, s=1, dropout=0., activate_before_residual=False): super().__init__() self.activate_before_residual = activate_before_residual # residual path self.conv0 = nn.Conv2d(cᵢ, cₒ, 3, s, 1, bias=False) s...
35.367089
119
0.57194
2,511
0.887279
0
0
0
0
0
0
53
0.018728
7f8384a311353de10a642c69e9df0c76f447b11c
1,565
py
Python
trisicell/ul/__init__.py
faridrashidi/trisicell
4db89edd44c03ccb6c7d3477beff0079c3ff8035
[ "BSD-3-Clause" ]
2
2021-07-02T13:53:15.000Z
2021-11-16T03:14:36.000Z
trisicell/ul/__init__.py
faridrashidi/trisicell
4db89edd44c03ccb6c7d3477beff0079c3ff8035
[ "BSD-3-Clause" ]
58
2021-06-14T17:14:39.000Z
2022-03-11T19:32:54.000Z
trisicell/ul/__init__.py
faridrashidi/trisicell
4db89edd44c03ccb6c7d3477beff0079c3ff8035
[ "BSD-3-Clause" ]
null
null
null
"""Utils Module.""" from trisicell.ul._hclustering import ( dist_cosine_ignore_na, dist_dendro, dist_l1_ignore_na, hclustering, ) from trisicell.ul._packages import ( import_graph_tool, import_graphviz, import_gurobi, import_mpi4py, import_rpy2, ) from trisicell.ul._trees import ( ...
16.302083
39
0.651118
0
0
0
0
0
0
0
0
19
0.012141
7f83ab03f9f78c70886157722d2f935b1bea1759
2,137
py
Python
utils/pktgen/sender.py
lilyhuegerich/No-hop
2e82af6c8036312c35b3f2338c776863416ea043
[ "MIT" ]
null
null
null
utils/pktgen/sender.py
lilyhuegerich/No-hop
2e82af6c8036312c35b3f2338c776863416ea043
[ "MIT" ]
1
2021-02-15T17:29:03.000Z
2021-02-15T17:29:03.000Z
utils/utils-backup/pktgen/sender.py
guiladkatz/NetAction
436c5ac9dcf0e2064bcc9a2facca556828de6703
[ "Apache-2.0" ]
1
2021-04-18T18:24:59.000Z
2021-04-18T18:24:59.000Z
#!/usr/bin/env python import argparse, sys, socket, random, struct, time from scapy.all import sendp, send, get_if_list, get_if_list, get_if_hwaddr, hexdump from scapy.all import Packet from scapy.all import Ether, IP, IPv6, UDP, TCP sip_port=5060 def get_if(): iface=None for i in get_if_list(): # ...
35.032787
115
0.602714
0
0
0
0
0
0
0
0
472
0.22087
7f83ea7d1cc3220adf9ebca24b106652d1d5a82a
2,898
py
Python
lib/coloraide/spaces/hsl/__init__.py
EatBreatheCode/sublime_color_helper
701d05807e51ce49088b1f0a8f55c4bf3845fa91
[ "MIT" ]
null
null
null
lib/coloraide/spaces/hsl/__init__.py
EatBreatheCode/sublime_color_helper
701d05807e51ce49088b1f0a8f55c4bf3845fa91
[ "MIT" ]
null
null
null
lib/coloraide/spaces/hsl/__init__.py
EatBreatheCode/sublime_color_helper
701d05807e51ce49088b1f0a8f55c4bf3845fa91
[ "MIT" ]
null
null
null
"""HSL class.""" from ...spaces import Space, Cylindrical from ...cat import WHITES from ...gamut.bounds import GamutBound, FLG_ANGLE, FLG_PERCENT from ... import util from ... import algebra as alg from ...types import Vector from typing import Tuple def srgb_to_hsl(rgb: Vector) -> Vector: """SRGB to HSL.""" ...
21.626866
79
0.509317
1,730
0.596963
0
0
1,215
0.419255
0
0
499
0.172188
7f83fb54d3d89551adb5762f761b61b33bff3c08
950
py
Python
maze/models.py
TerryHowe/pymaze
139f15fb8e932c1cf1e63f5c5aee7895691e993f
[ "MIT" ]
1
2020-12-14T04:01:08.000Z
2020-12-14T04:01:08.000Z
maze/models.py
TerryHowe/pymaze
139f15fb8e932c1cf1e63f5c5aee7895691e993f
[ "MIT" ]
null
null
null
maze/models.py
TerryHowe/pymaze
139f15fb8e932c1cf1e63f5c5aee7895691e993f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models # Create your models here. class Passage(models.Model): DIRECTIONS = ( ('N', 'North'), ('E', 'East'), ('S', 'South'), ('W', 'West'), ('U', 'Up'), ('D', 'Down'), ) room_x = models.IntegerField() room_y = model...
25.675676
138
0.676842
826
0.869474
0
0
104
0.109474
0
0
219
0.230526
7f85d28e2b17919468a9ea177eccdd701d33e549
3,181
py
Python
tests/varints_test.py
dargueta/binobj
00d91856678d7ecf17647a9b5cbff1810a39f275
[ "BSD-3-Clause" ]
2
2018-08-05T13:57:43.000Z
2021-06-25T15:20:16.000Z
tests/varints_test.py
dargueta/binobj
00d91856678d7ecf17647a9b5cbff1810a39f275
[ "BSD-3-Clause" ]
2
2020-10-26T11:11:17.000Z
2021-02-24T20:08:10.000Z
tests/varints_test.py
dargueta/binobj
00d91856678d7ecf17647a9b5cbff1810a39f275
[ "BSD-3-Clause" ]
1
2021-02-27T17:29:22.000Z
2021-02-27T17:29:22.000Z
"""Tests for the variable-length integers.""" import io import pytest from binobj import varints @pytest.mark.parametrize( "value,expected", ((0, b"\0"), (127, b"\x7f"), (128, b"\x81\x00"), (65535, b"\x83\xff\x7f")), ) def test_encode_vlq_basic(value, expected): assert varints.encode_integer_vlq(value)...
27.188034
85
0.636278
0
0
0
0
2,373
0.745992
0
0
845
0.26564
7f861eb33a0b220e3a89491dc68d3e6bfdddea0a
725
py
Python
src/settings/models.py
TolgaKara/prodai
a858d39226a072a2a52513d942dd046bb3787da8
[ "Apache-2.0" ]
null
null
null
src/settings/models.py
TolgaKara/prodai
a858d39226a072a2a52513d942dd046bb3787da8
[ "Apache-2.0" ]
7
2020-10-09T09:24:28.000Z
2022-03-12T00:14:07.000Z
src/settings/models.py
TolgaKara/prodai
a858d39226a072a2a52513d942dd046bb3787da8
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.contrib.auth.models import User # Create your models here. class Setting(models.Model): user_id = models.ForeignKey(User, on_delete=models.CASCADE) class TimeTrackingSetting(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) max_daily_work_ti...
31.521739
63
0.768276
616
0.849655
0
0
0
0
0
0
26
0.035862
7f873662ce9f9eb5dfd23f13cad81a3fb8b855d3
2,646
py
Python
python/place_molex_conn.py
willdickson/roman_led_frame
4cf54aa5ea15d9fa39ddaa1a27a83425fc449f36
[ "CC-BY-4.0" ]
null
null
null
python/place_molex_conn.py
willdickson/roman_led_frame
4cf54aa5ea15d9fa39ddaa1a27a83425fc449f36
[ "CC-BY-4.0" ]
null
null
null
python/place_molex_conn.py
willdickson/roman_led_frame
4cf54aa5ea15d9fa39ddaa1a27a83425fc449f36
[ "CC-BY-4.0" ]
null
null
null
from __future__ import print_function import os import sys import pcbnew import numpy as np import pprint def inch_to_nanometer(value): return (value*25.4)*1e6 def nanometer_to_inch(value): return value/(25.4*1.e6) def nm_to_mm(value): return value*1.e-6 def mm_to_nm(value): return value*1.e6 def...
24.275229
89
0.560469
0
0
0
0
0
0
0
0
324
0.122449
7f879d970a7233907064466650bfa626b47f7750
2,199
py
Python
RaspberryPi/appMasterKey.py
colindembovsky/iot-central-firmware
29493b18b2d37090c5a071669370d4a907eb3f51
[ "MIT" ]
136
2018-05-08T08:54:22.000Z
2022-02-17T21:39:41.000Z
RaspberryPi/appMasterKey.py
colindembovsky/iot-central-firmware
29493b18b2d37090c5a071669370d4a907eb3f51
[ "MIT" ]
90
2018-05-08T22:50:26.000Z
2020-11-04T16:11:44.000Z
RaspberryPi/appMasterKey.py
colindembovsky/iot-central-firmware
29493b18b2d37090c5a071669370d4a907eb3f51
[ "MIT" ]
97
2018-05-07T20:55:28.000Z
2022-02-17T21:39:43.000Z
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. import sys import iotc from iotc import IOTConnectType, IOTLogLevel from random import randint import base64 import hmac import hashlib gIsMicroPython = ('implementation' in dir(sys)) and ('name' in dir(sys.implementation)) and (sys.imp...
29.32
134
0.688495
0
0
0
0
0
0
0
0
545
0.24784
7f882238f2ac3dcd924d47d279ab3daa62b6851d
5,842
py
Python
genmod/annotate_models/variant_annotator.py
Varstation/genmod
991a0fca36936b5dde49a95e8ea1d4336288c7c0
[ "MIT" ]
null
null
null
genmod/annotate_models/variant_annotator.py
Varstation/genmod
991a0fca36936b5dde49a95e8ea1d4336288c7c0
[ "MIT" ]
null
null
null
genmod/annotate_models/variant_annotator.py
Varstation/genmod
991a0fca36936b5dde49a95e8ea1d4336288c7c0
[ "MIT" ]
1
2020-07-05T19:06:32.000Z
2020-07-05T19:06:32.000Z
#!/usr/bin/env python # encoding: utf-8 """ variant_consumer.py Consumes batches of variants and annotates them. Each batch is a dictionary with variant_id:s as keys and dictionaries with variant information. The variants will get different annotations depending on input Created by Måns Magnusson on 2013-03-01. Cop...
38.183007
90
0.574974
5,171
0.884991
0
0
0
0
0
0
2,260
0.386788
7f883457983496df8e066229a171bec7587a4bd5
343
py
Python
tests/context.py
SchluppiBobbz/DartsApp
3538b90db30b4c59a03d49867df58b62d2e0a84a
[ "MIT" ]
null
null
null
tests/context.py
SchluppiBobbz/DartsApp
3538b90db30b4c59a03d49867df58b62d2e0a84a
[ "MIT" ]
null
null
null
tests/context.py
SchluppiBobbz/DartsApp
3538b90db30b4c59a03d49867df58b62d2e0a84a
[ "MIT" ]
null
null
null
import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from dartsapp import game, player, darts_helper from dartsapp.exceptions import BullseyeHasNoTriple, FieldDoesNotExist,\ NoPlayerRegistered, OptionsNotSet,\ ...
42.875
82
0.661808
0
0
0
0
0
0
0
0
4
0.011662
7f886aba201c2234da3db891c1dca0d083b400bb
80,150
py
Python
WebApps/OrgChartPortal/tests.py
yizongk/DOTAnalysis_Django
688b59e668c6390b902d61a4aef546bd869d55ad
[ "Apache-2.0" ]
null
null
null
WebApps/OrgChartPortal/tests.py
yizongk/DOTAnalysis_Django
688b59e668c6390b902d61a4aef546bd869d55ad
[ "Apache-2.0" ]
1
2022-03-04T20:37:32.000Z
2022-03-04T20:37:32.000Z
WebApps/OrgChartPortal/tests.py
yizongk/DOTAnalysis_Django
688b59e668c6390b902d61a4aef546bd869d55ad
[ "Apache-2.0" ]
1
2022-01-06T18:20:40.000Z
2022-01-06T18:20:40.000Z
from .models import * from datetime import datetime from django.core.exceptions import ObjectDoesNotExist import json from WebAppsMain.settings import TEST_WINDOWS_USERNAME, TEST_PMS, TEST_SUPERVISOR_PMS, TEST_COMMISSIONER_PMS from WebAppsMain.testing_utils import HttpPostTestCase, HttpGetTestCase from django.db.models...
50.856599
255
0.62665
74,478
0.929233
0
0
14,766
0.18423
0
0
24,842
0.309944
7f89f00e8b87657252a144b19c11f0b25e549b6d
3,794
py
Python
test_net.py
reasonsolo/mtcnn_caffe
ec646c8e27af900da1380d5968970705f9e8f582
[ "MIT" ]
null
null
null
test_net.py
reasonsolo/mtcnn_caffe
ec646c8e27af900da1380d5968970705f9e8f582
[ "MIT" ]
null
null
null
test_net.py
reasonsolo/mtcnn_caffe
ec646c8e27af900da1380d5968970705f9e8f582
[ "MIT" ]
1
2019-01-15T05:56:06.000Z
2019-01-15T05:56:06.000Z
import cv2 import caffe import tools import sys import os import numpy as np from functools import partial import config def gen_scales(w, h, min_imgsize, net_imgsize): scales = [] scale = float(net_imgsize) / min_imgsize; minhw = min(w, h) * scale; while minhw > net_imgsize: scales.append(sc...
33.875
90
0.610174
0
0
0
0
0
0
0
0
238
0.062731
7f8cfe7c21edb98148f06559139a4693716409cf
515
py
Python
SharedData/list_all_files.py
kylemcdonald/SoundParts
964de07f28ac181be2b9e8050b9e5a7e9b10a93d
[ "MIT" ]
22
2017-05-02T07:55:25.000Z
2020-12-18T00:48:03.000Z
SharedData/list_all_files.py
kylemcdonald/SoundParts
964de07f28ac181be2b9e8050b9e5a7e9b10a93d
[ "MIT" ]
null
null
null
SharedData/list_all_files.py
kylemcdonald/SoundParts
964de07f28ac181be2b9e8050b9e5a7e9b10a93d
[ "MIT" ]
2
2019-08-29T06:46:02.000Z
2020-08-31T12:56:59.000Z
import os import fnmatch # extensions can be a single tring like '.png' or '.jpg' # or a list of extensions. they should all be lowercase # but the . is important. def list_all_files(directory, extensions=None): for root, dirnames, filenames in os.walk(directory): for filename in filenames: bas...
39.615385
80
0.660194
0
0
350
0.679612
0
0
0
0
136
0.264078
7f8dc67d585101b5b8e1bb738d00fbeb7fa08007
452
py
Python
Capitulo_02/exercise2_6.py
thiagosouzalink/my_codes-exercices-book-curso_intensivo_de_python
841aa855a7450ad3d0ba65393ba0b6debcd6a770
[ "MIT" ]
null
null
null
Capitulo_02/exercise2_6.py
thiagosouzalink/my_codes-exercices-book-curso_intensivo_de_python
841aa855a7450ad3d0ba65393ba0b6debcd6a770
[ "MIT" ]
null
null
null
Capitulo_02/exercise2_6.py
thiagosouzalink/my_codes-exercices-book-curso_intensivo_de_python
841aa855a7450ad3d0ba65393ba0b6debcd6a770
[ "MIT" ]
null
null
null
""" 2.6 – Citação famosa 2: Repita o Exercício 2.5, porém, desta vez, armazene o nome da pessoa famosa em uma variável chamada famous_person. Em seguida, componha sua mensagem e armazene-a em uma nova variável chamada message. Exiba sua mensagem. """ famous_person = "René Descartes" message = "As paixões são todas boa...
56.5
242
0.761062
0
0
0
0
0
0
0
0
426
0.918103
7f8ded4f80685086d5ad90cfec886cbe3a773f21
662
py
Python
algorithm/lin_search.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
algorithm/lin_search.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
algorithm/lin_search.py
terasakisatoshi/pythonCodes
baee095ecee96f6b5ec6431267cdc6c40512a542
[ "MIT" ]
null
null
null
import random import copy import time from numba import jit from array_creator import create_test_set from measure import get_elapsed_data @get_elapsed_data def scratch_lin_search(test_set): hit = False for key, arr in test_set: for i in arr: if i == key: break @get_elaps...
18.914286
43
0.663142
0
0
0
0
283
0.427492
0
0
10
0.015106
7f90b833e66c95aaa6e86ee20476290414956557
3,997
py
Python
setup.py
cdeil/astroquery
1bbb9f8ea0347abb1081dba52a66772a03408f11
[ "BSD-3-Clause" ]
null
null
null
setup.py
cdeil/astroquery
1bbb9f8ea0347abb1081dba52a66772a03408f11
[ "BSD-3-Clause" ]
null
null
null
setup.py
cdeil/astroquery
1bbb9f8ea0347abb1081dba52a66772a03408f11
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE.rst # Use "distribute" - the setuptools fork that supports python 3. from distribute_setup import use_setuptools use_setuptools() from distutils.command import sdist import glob import os import sys from setuptools import setup, find_p...
33.033058
96
0.739304
0
0
0
0
0
0
0
0
1,896
0.474356
7f910ebedcd5c2b2f971ebd3398b107397e47933
606
py
Python
dapr/serializers/base.py
mukundansundararajan/python-sdk
2ee94e31292a650135b97bc3c70e3eca885c9b47
[ "MIT" ]
null
null
null
dapr/serializers/base.py
mukundansundararajan/python-sdk
2ee94e31292a650135b97bc3c70e3eca885c9b47
[ "MIT" ]
null
null
null
dapr/serializers/base.py
mukundansundararajan/python-sdk
2ee94e31292a650135b97bc3c70e3eca885c9b47
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (c) Microsoft Corporation. Licensed under the MIT License. """ from abc import ABC, abstractmethod from typing import Any, Callable, Optional, Type class Serializer(ABC): """Serializer base class.""" @abstractmethod def serialize( self, obj: object, ...
23.307692
78
0.612211
415
0.684818
0
0
348
0.574257
0
0
127
0.209571
7f91f89b2955e012b51865efdeed3fe5d4ed3284
84
py
Python
htdocs/MPM - Copy/MM/apps.py
anji-a/Apache
d08893821cb0251b8f99197a7b6893c95db4eb6e
[ "Apache-2.0" ]
null
null
null
htdocs/MPM - Copy/MM/apps.py
anji-a/Apache
d08893821cb0251b8f99197a7b6893c95db4eb6e
[ "Apache-2.0" ]
null
null
null
htdocs/MPM - Copy/MM/apps.py
anji-a/Apache
d08893821cb0251b8f99197a7b6893c95db4eb6e
[ "Apache-2.0" ]
2
2020-11-04T06:30:46.000Z
2020-11-06T11:00:53.000Z
from django.apps import AppConfig class MmConfig(AppConfig): name = 'MM'
14
34
0.678571
43
0.511905
0
0
0
0
0
0
4
0.047619
7f9293a745961e293df2ce58166bf397c0164a1c
258
py
Python
reto-05/eleloi/main.py
jlnc/reto-python
7611b5ae231812b3bde1893a303af1c22765f859
[ "MIT" ]
18
2022-02-14T19:15:21.000Z
2022-03-29T12:56:18.000Z
reto-05/eleloi/main.py
jlnc/reto-python
7611b5ae231812b3bde1893a303af1c22765f859
[ "MIT" ]
22
2022-03-05T23:48:04.000Z
2022-03-31T04:33:58.000Z
reto-05/eleloi/main.py
jlnc/reto-python
7611b5ae231812b3bde1893a303af1c22765f859
[ "MIT" ]
21
2022-02-16T17:52:05.000Z
2022-03-28T20:13:46.000Z
import _config import _utils CONFIG_PATH = "config.toml" def main(): config = _config.read(CONFIG_PATH) for path_name in [x.in_ for x in config.directorios]: _utils.list_jpg_files_in_dir(path_name) if __name__ == "__main__": main()
16.125
57
0.697674
0
0
0
0
0
0
0
0
23
0.089147
7f92bdbd76e88952ccd41f7b4bb7059cb29661bf
360
py
Python
ravel/utils/data.py
eykd/ravel
bcd4a748c74acd39f09f4eab6a8cb65660e857b5
[ "MIT" ]
1
2020-05-16T12:27:44.000Z
2020-05-16T12:27:44.000Z
ravel/utils/data.py
eykd/ravel
bcd4a748c74acd39f09f4eab6a8cb65660e857b5
[ "MIT" ]
null
null
null
ravel/utils/data.py
eykd/ravel
bcd4a748c74acd39f09f4eab6a8cb65660e857b5
[ "MIT" ]
null
null
null
def merge_dicts(*dicts): """ Given any number of dicts, shallow copy and merge into a new dict, precedence goes to key value pairs in latter dicts. """ result = {} for d in dicts: result.update(d) return result def evaluate_term(term, **kwargs): return term.evaluate(**kwargs)...
22.5
73
0.65
0
0
0
0
0
0
0
0
148
0.411111
7f92e83ec063df76628d1922d90de32e41d7fd7e
11,067
py
Python
skyline.py
MyrrhDev/skyline-telegramBot
55b0d597b0710f2ae1314e3359b08c02276f094a
[ "MIT" ]
null
null
null
skyline.py
MyrrhDev/skyline-telegramBot
55b0d597b0710f2ae1314e3359b08c02276f094a
[ "MIT" ]
null
null
null
skyline.py
MyrrhDev/skyline-telegramBot
55b0d597b0710f2ae1314e3359b08c02276f094a
[ "MIT" ]
null
null
null
import random class Skyline: area = 0 max_height = 0 xmin = 0 height = [] width = [] x_pos = [] xmax = 0 def __init__(self, xmin, height, xmax): self.xmin = xmin self.height = [height] * ((xmax - xmin) + 1) self.xmax = xmax self.x_pos = list(range(xmin...
36.524752
106
0.562393
11,050
0.998464
0
0
0
0
0
0
868
0.078431
7f94715fd95a0d6e266114d4c58a4a00c641770c
1,699
py
Python
code/default/smart_router/local/socket_wrap.py
wuyongwen/XX-Net
313aefd862b8f230f7c61dc29db1b2b93a17e6ab
[ "BSD-2-Clause" ]
null
null
null
code/default/smart_router/local/socket_wrap.py
wuyongwen/XX-Net
313aefd862b8f230f7c61dc29db1b2b93a17e6ab
[ "BSD-2-Clause" ]
null
null
null
code/default/smart_router/local/socket_wrap.py
wuyongwen/XX-Net
313aefd862b8f230f7c61dc29db1b2b93a17e6ab
[ "BSD-2-Clause" ]
null
null
null
import time class SocketWrap(object): def __init__(self, sock, ip=None, port=None, host="", target=""): self._sock = sock self.ip = ip self.port = port self.host = host self.target = target self.recved_data = 0 self.recved_times = 0 self.create_time...
25.742424
83
0.535021
1,685
0.99176
0
0
0
0
0
0
48
0.028252
7f94ad38bbb98e281664244307b46754d21960c0
2,859
py
Python
tests/unit/test_handler_marker.py
Rogdham/bigxml
ab983f50c49bf861c3b61e3e636db90f9ff19ed1
[ "MIT" ]
4
2020-08-24T13:31:46.000Z
2022-01-25T08:03:19.000Z
tests/unit/test_handler_marker.py
Rogdham/bigxml
ab983f50c49bf861c3b61e3e636db90f9ff19ed1
[ "MIT" ]
null
null
null
tests/unit/test_handler_marker.py
Rogdham/bigxml
ab983f50c49bf861c3b61e3e636db90f9ff19ed1
[ "MIT" ]
null
null
null
import pytest from bigxml.handler_marker import _ATTR_MARKER, xml_handle_element, xml_handle_text from bigxml.nodes import XMLText def test_one_maker_element(): @xml_handle_element("abc", "def") def fct(arg): return arg * 6 assert getattr(fct, _ATTR_MARKER, None) == (("abc", "def"),) assert ...
23.628099
83
0.593214
464
0.162295
0
0
982
0.343477
0
0
253
0.088492
7f94c10f45c727e1a813931dfa3f4ee01c73a848
8,073
py
Python
gamestonk_terminal/due_diligence/stockgrid_dd_view.py
brocki/GamestonkTerminal
d1505359e595a50bf22c2c5601f261686117310f
[ "MIT" ]
1
2021-06-21T23:31:20.000Z
2021-06-21T23:31:20.000Z
gamestonk_terminal/due_diligence/stockgrid_dd_view.py
brocki/GamestonkTerminal
d1505359e595a50bf22c2c5601f261686117310f
[ "MIT" ]
1
2021-04-20T00:26:20.000Z
2021-04-20T00:26:20.000Z
gamestonk_terminal/due_diligence/stockgrid_dd_view.py
alokan/GamestonkTerminal
d7bb5a9456250114da83172e5d49beb242df5eed
[ "MIT" ]
null
null
null
"""Stockgrid DD View""" __docformat__ = "numpy" import argparse from typing import List from datetime import timedelta import requests import pandas as pd import matplotlib.pyplot as plt from tabulate import tabulate from gamestonk_terminal.config_plot import PLOT_DPI from gamestonk_terminal.feature_flags import USE_I...
28.935484
98
0.484454
0
0
0
0
0
0
0
0
1,933
0.23944
7f9565f8eece01aa89f290f3687bbf816b1d2520
2,428
py
Python
tests/schema/models_no_auto_create_m2m.py
Alirezaja1384/tortoise-orm
e7ecbc81d43860a3b0b6d5d9da27497ed6234049
[ "Apache-2.0" ]
33
2018-04-07T09:50:22.000Z
2018-08-24T10:25:29.000Z
tests/schema/models_no_auto_create_m2m.py
Alirezaja1384/tortoise-orm
e7ecbc81d43860a3b0b6d5d9da27497ed6234049
[ "Apache-2.0" ]
41
2018-03-29T17:09:18.000Z
2018-08-24T16:37:38.000Z
tests/schema/models_no_auto_create_m2m.py
Alirezaja1384/tortoise-orm
e7ecbc81d43860a3b0b6d5d9da27497ed6234049
[ "Apache-2.0" ]
4
2018-06-27T08:45:11.000Z
2018-07-30T18:16:55.000Z
""" This example demonstrates SQL Schema generation for each DB type supported. """ from tortoise import fields from tortoise.fields import SET_NULL from tortoise.models import Model class Tournament(Model): tid = fields.SmallIntField(pk=True) name = fields.CharField(max_length=100, description="Tournament n...
34.685714
92
0.68575
2,232
0.919275
0
0
0
0
0
0
601
0.247529
7f957a19c84f447fc2196f4923469f1f2c048f4b
9,025
py
Python
tests/functional/wsgi/v1_1/test_claims.py
vkmc/zaqar-websocket
a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b
[ "Apache-2.0" ]
1
2015-03-22T18:41:13.000Z
2015-03-22T18:41:13.000Z
tests/functional/wsgi/v1_1/test_claims.py
vkmc/zaqar-websocket
a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b
[ "Apache-2.0" ]
null
null
null
tests/functional/wsgi/v1_1/test_claims.py
vkmc/zaqar-websocket
a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Rackspace, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
32.581227
78
0.632244
8,320
0.921884
0
0
8,329
0.922881
0
0
2,615
0.289751
7f95f3f0fe5de4ccd5c5283999bb3a40f5d50004
1,889
py
Python
src/glyphs/utils/StringUtils.py
slorg1/glyphs
db498156897a1406545f041382913e2af69edc12
[ "MIT" ]
1
2019-05-09T14:35:31.000Z
2019-05-09T14:35:31.000Z
src/glyphs/utils/StringUtils.py
slorg1/glyphs
db498156897a1406545f041382913e2af69edc12
[ "MIT" ]
null
null
null
src/glyphs/utils/StringUtils.py
slorg1/glyphs
db498156897a1406545f041382913e2af69edc12
[ "MIT" ]
1
2019-05-10T16:06:30.000Z
2019-05-10T16:06:30.000Z
from __future__ import unicode_literals import six class StringUtils(object): """ Utility class for handling strings. """ @staticmethod def to_unicode(value): """ Returns the string representation of the given L{value} if it is not C{None}. Otherwise, returns ...
26.236111
114
0.611435
1,834
0.970884
0
0
1,699
0.899418
0
0
1,069
0.565908
7f971a249f5ab865830322c937e8dd39d7142ad5
149
py
Python
Codeforces Problems/Soldier and bananas/Soldier and Bananas.py
Social-CodePlat/Comptt-Coding-Solutions
240732e6c1a69e1124064bff4a27a5785a14b021
[ "MIT" ]
null
null
null
Codeforces Problems/Soldier and bananas/Soldier and Bananas.py
Social-CodePlat/Comptt-Coding-Solutions
240732e6c1a69e1124064bff4a27a5785a14b021
[ "MIT" ]
1
2020-10-13T20:57:34.000Z
2020-10-13T20:57:34.000Z
Codeforces Problems/Soldier and bananas/Soldier and Bananas.py
Social-CodePlat/Comptt-Coding-Solutions
240732e6c1a69e1124064bff4a27a5785a14b021
[ "MIT" ]
null
null
null
arr=[int(x) for x in input().split()] sum=0 for i in range(1,(arr[2]+1)): sum+=arr[0]*i if sum<=arr[1]: print(0) else: print(sum-arr[1])
16.555556
37
0.557047
0
0
0
0
0
0
0
0
0
0
7f9732b0483bd520dbc21d4a193f8cf3d1d42f99
2,578
py
Python
ansible/terminal_plugins/aos.py
xwjiang2021/sonic-mgmt
82c446b9fb016eb070af765aa9d9999e55b27342
[ "Apache-2.0" ]
2
2021-11-24T09:33:41.000Z
2021-12-03T09:08:29.000Z
ansible/terminal_plugins/aos.py
xwjiang2021/sonic-mgmt
82c446b9fb016eb070af765aa9d9999e55b27342
[ "Apache-2.0" ]
null
null
null
ansible/terminal_plugins/aos.py
xwjiang2021/sonic-mgmt
82c446b9fb016eb070af765aa9d9999e55b27342
[ "Apache-2.0" ]
null
null
null
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import re import json from ansible.plugins.terminal import TerminalBase from ansible.errors import AnsibleConnectionFailure from ansible.module_utils._text import to_bytes, to_text class TerminalModule(TerminalBase): termin...
37.362319
141
0.595035
2,304
0.893716
0
0
0
0
0
0
893
0.346393
7f9760f0a2fcfb023a35bdea0182735335363c6f
1,690
py
Python
day_15-chiton/part_2.py
lucacerone/advent-of-code-2021
56c985ec5bbf1b83e74451d795331f4a05d651a3
[ "MIT" ]
null
null
null
day_15-chiton/part_2.py
lucacerone/advent-of-code-2021
56c985ec5bbf1b83e74451d795331f4a05d651a3
[ "MIT" ]
null
null
null
day_15-chiton/part_2.py
lucacerone/advent-of-code-2021
56c985ec5bbf1b83e74451d795331f4a05d651a3
[ "MIT" ]
null
null
null
from numpy.core.fromnumeric import size import utils as u import numpy as np import heapq as hq s = """\ 1163751742 1381373672 2136511328 3694931569 7463417111 1319128137 1359912421 3125421639 1293138521 2311944581 """ #cave = np.array([[int(x) for x in l] for l in s.splitlines()]) cave = u.import_data("./data/inpu...
21.948052
117
0.661538
0
0
0
0
0
0
0
0
506
0.299408
7f977804ee14ad26b5e5c54480ba5ea17221d8c5
1,861
py
Python
aws-pentesting-with-python/kms/correct/updating_existing_kms.py
qodirovshohijahon/python-scripting
08f8492e137df37e7f9b41e9ee546f5783501c1a
[ "CNRI-Python" ]
null
null
null
aws-pentesting-with-python/kms/correct/updating_existing_kms.py
qodirovshohijahon/python-scripting
08f8492e137df37e7f9b41e9ee546f5783501c1a
[ "CNRI-Python" ]
null
null
null
aws-pentesting-with-python/kms/correct/updating_existing_kms.py
qodirovshohijahon/python-scripting
08f8492e137df37e7f9b41e9ee546f5783501c1a
[ "CNRI-Python" ]
null
null
null
from xmlrpc.client import Boolean import boto3 import logging from datetime import date, datetime from botocore.exceptions import ClientError import json from json_datetime_serializer import json_datetime_serializer from kms_client import kmsClient from search_kms_using_account_id import search_kms_using_account_id fro...
33.836364
85
0.667383
0
0
0
0
0
0
0
0
449
0.241268