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
18645f94ba67063154674ceff77d5989d4dbd944
8,550
py
Python
secureaws/secureaws.py
paliwalvimal/aws-secure-account
78447720a17176cc539d62775817026609e67339
[ "MIT" ]
1
2021-02-11T17:15:18.000Z
2021-02-11T17:15:18.000Z
secureaws/secureaws.py
paliwalvimal/aws-secure-account
78447720a17176cc539d62775817026609e67339
[ "MIT" ]
null
null
null
secureaws/secureaws.py
paliwalvimal/aws-secure-account
78447720a17176cc539d62775817026609e67339
[ "MIT" ]
1
2019-12-12T09:01:59.000Z
2019-12-12T09:01:59.000Z
""" ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## AUTHOR = Vimal Paliwal <[email protected]> """ import sys import boto3 import click import threading from botocore.exceptions import ClientError from secureaws import ch...
34.615385
179
0.582456
759
0.088772
0
0
6,620
0.774269
0
0
5,881
0.687836
1864d86874c3d8b77ca9978c07a999b3a352d135
888
py
Python
python/examples/find_similar.py
yupbank/euclidesdb
c4210b68a79aab20e6911c78940b909b8bede557
[ "Apache-2.0" ]
null
null
null
python/examples/find_similar.py
yupbank/euclidesdb
c4210b68a79aab20e6911c78940b909b8bede557
[ "Apache-2.0" ]
null
null
null
python/examples/find_similar.py
yupbank/euclidesdb
c4210b68a79aab20e6911c78940b909b8bede557
[ "Apache-2.0" ]
null
null
null
import sys import argparse import euclides from PIL import Image import numpy as np from torchvision.transforms import functional as F def run_main(): parser = argparse.ArgumentParser(description='Find similar images in EuclidesDB.') parser.add_argument('--topk', dest='topk', type=int, required=True, ...
26.909091
86
0.667793
0
0
0
0
0
0
0
0
138
0.155405
18662f52c2055666297ec86901f3368b3430ce9a
868
py
Python
gunpowder/nodes/renumber_connected_components.py
trivoldus28/gunpowder
97e9e64709fb616e2c47567b22d5f11a9234fe48
[ "MIT" ]
43
2017-05-03T22:27:11.000Z
2022-02-11T19:07:28.000Z
gunpowder/nodes/renumber_connected_components.py
trivoldus28/gunpowder
97e9e64709fb616e2c47567b22d5f11a9234fe48
[ "MIT" ]
102
2017-06-09T10:11:06.000Z
2022-03-29T13:56:37.000Z
gunpowder/nodes/renumber_connected_components.py
trivoldus28/gunpowder
97e9e64709fb616e2c47567b22d5f11a9234fe48
[ "MIT" ]
43
2017-04-25T20:25:17.000Z
2022-02-11T19:07:34.000Z
from .batch_filter import BatchFilter from gunpowder.ext import malis class RenumberConnectedComponents(BatchFilter): '''Find connected components of the same value, and replace each component with a new label. Args: labels (:class:`ArrayKey`): The label array to modify. ''' ...
29.931034
78
0.670507
796
0.917051
0
0
0
0
0
0
192
0.221198
18664b760b4ae7d4a23d616670b3152102c11769
401
py
Python
project/main/migrations/0003_auto_20200504_1852.py
Leeoku/MovieCrud
fb9e364895684f0cb1e3c1bc68971f0d4a7df1fc
[ "MIT" ]
null
null
null
project/main/migrations/0003_auto_20200504_1852.py
Leeoku/MovieCrud
fb9e364895684f0cb1e3c1bc68971f0d4a7df1fc
[ "MIT" ]
6
2021-03-19T02:52:05.000Z
2021-09-22T18:58:44.000Z
project/main/migrations/0003_auto_20200504_1852.py
Leeoku/MovieCrud
fb9e364895684f0cb1e3c1bc68971f0d4a7df1fc
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-05-04 18:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0002_auto_20200323_0327'), ] operations = [ migrations.AlterField( model_name='movieentry', name='date_watch...
21.105263
58
0.605985
308
0.76808
0
0
0
0
0
0
104
0.259352
1868e8987c751a0abe91a5dd69173ea001090442
3,534
py
Python
LR/lr/model/resource_data_monitor/incoming_copy_handler.py
LearningRegistry/LearningRegistry
d9f0a8117a4adb8fcf6bf101d3d58d799463a2e2
[ "Apache-2.0" ]
26
2015-04-14T03:11:58.000Z
2022-01-06T14:31:07.000Z
LR/lr/model/resource_data_monitor/incoming_copy_handler.py
LearningRegistry/LearningRegistry
d9f0a8117a4adb8fcf6bf101d3d58d799463a2e2
[ "Apache-2.0" ]
11
2015-04-03T21:54:03.000Z
2017-05-02T17:20:03.000Z
LR/lr/model/resource_data_monitor/incoming_copy_handler.py
LearningRegistry/LearningRegistry
d9f0a8117a4adb8fcf6bf101d3d58d799463a2e2
[ "Apache-2.0" ]
16
2015-02-11T09:30:18.000Z
2020-11-20T02:06:24.000Z
import logging import couchdb from collections import deque from threading import Thread from pylons import config from lr.lib import SpecValidationException, helpers as h from lr.lib.couch_change_monitor import BaseChangeHandler from lr.model import ResourceDataModel from couchdb import ResourceConflict from lr.lib.re...
36.061224
116
0.621958
2,612
0.739106
0
0
0
0
0
0
676
0.191285
186a448cd375a10732fb3690423f8d8f87976e4a
1,432
py
Python
proxyclient/m1n1/fw/asc/base.py
EricRabil/m1n1
0a1a9348c32e2e44374720cd9d68cbe81cf696df
[ "MIT" ]
1
2022-02-19T17:47:58.000Z
2022-02-19T17:47:58.000Z
proxyclient/m1n1/fw/asc/base.py
EricRabil/m1n1
0a1a9348c32e2e44374720cd9d68cbe81cf696df
[ "MIT" ]
null
null
null
proxyclient/m1n1/fw/asc/base.py
EricRabil/m1n1
0a1a9348c32e2e44374720cd9d68cbe81cf696df
[ "MIT" ]
2
2022-02-01T18:33:16.000Z
2022-02-19T17:50:25.000Z
# SPDX-License-Identifier: MIT from ...utils import * # System endpoints def msg_handler(message, regtype=None): def f(x): x.is_message = True x.message = message x.regtype = regtype return x return f class ASCMessage1(Register64): EP = 7, 0 class ASCBaseEndpoint: BAS...
25.122807
84
0.578212
1,185
0.827514
0
0
0
0
0
0
117
0.081704
186a5816589e84e463b32b76302f76cecdf63a3d
710
py
Python
misc/redirector.py
ktan2020/tooling
5a22adc2895f5baa98faad7028061219c545a675
[ "MIT" ]
null
null
null
misc/redirector.py
ktan2020/tooling
5a22adc2895f5baa98faad7028061219c545a675
[ "MIT" ]
null
null
null
misc/redirector.py
ktan2020/tooling
5a22adc2895f5baa98faad7028061219c545a675
[ "MIT" ]
null
null
null
import SimpleHTTPServer import SocketServer import sys from optparse import OptionParser class myHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_GET(self): print self.path self.send_response(301) new_path = 'http://%s%s'%(o.ip, self.path) self.send_header('Location', new_path)...
27.307692
67
0.685915
256
0.360563
0
0
0
0
0
0
126
0.177465
186a69b010242e5cd6623bba8225f28d59422edb
943
py
Python
alert/getinfo/model/configdata.py
xwwwb/genshin_task-resin-expedition_alert
cddaafc2723c5d9eea6fbd1db792ad70427344c8
[ "MIT" ]
2
2022-03-01T10:39:30.000Z
2022-03-29T13:40:37.000Z
alert/getinfo/model/configdata.py
xwwwb/genshin_task-resin-expedition_alert
cddaafc2723c5d9eea6fbd1db792ad70427344c8
[ "MIT" ]
null
null
null
alert/getinfo/model/configdata.py
xwwwb/genshin_task-resin-expedition_alert
cddaafc2723c5d9eea6fbd1db792ad70427344c8
[ "MIT" ]
null
null
null
from typing import List, Literal import pydantic class ConfigData(pydantic.BaseModel): UID: str COOKIE:str SCKEY:str SCTKEY:str BARK_KEY:str BARK_GROUP:str BARK_ICON:str BARK_ARCHIVE:str WW_ID: str WW_APP_SECRET: str WW_APP_USERID: str WW_APP_AGENTID: str WW_BOT_KEY...
23
60
0.688229
888
0.941676
0
0
0
0
0
0
64
0.067869
186ceed8bf38c2d8c4e7809751f03d8df4473f09
6,479
py
Python
src/cli.py
stefantaubert/tacotron
9ac37fbf8789b4e7fe1067212a736074181b6fd8
[ "MIT" ]
null
null
null
src/cli.py
stefantaubert/tacotron
9ac37fbf8789b4e7fe1067212a736074181b6fd8
[ "MIT" ]
1
2021-11-11T08:50:32.000Z
2021-11-19T12:39:06.000Z
src/cli.py
stefantaubert/tacotron
9ac37fbf8789b4e7fe1067212a736074181b6fd8
[ "MIT" ]
null
null
null
import os from argparse import ArgumentParser from pathlib import Path from general_utils import split_hparams_string, split_int_set_str # from tacotron.app.eval_checkpoints import eval_checkpoints from tacotron.app import (DEFAULT_MAX_DECODER_STEPS, continue_train, infer, plot_embeddings, t...
39.03012
97
0.748572
0
0
0
0
0
0
0
0
2,107
0.325205
186d347af5ccfb1407fd9334ac01a2985ccc1dd2
969
py
Python
apps/hello/uploadHandler.py
tenqaz/tornado_learning
3ff18039b69c49927452d778098e1a1b7fe7b5da
[ "MIT" ]
11
2019-10-08T07:31:06.000Z
2021-09-27T01:08:40.000Z
apps/hello/uploadHandler.py
tenqaz/tornado_learning
3ff18039b69c49927452d778098e1a1b7fe7b5da
[ "MIT" ]
null
null
null
apps/hello/uploadHandler.py
tenqaz/tornado_learning
3ff18039b69c49927452d778098e1a1b7fe7b5da
[ "MIT" ]
3
2020-04-17T06:29:42.000Z
2021-09-27T01:08:41.000Z
# -*- coding: utf-8 -*- """ @author: Jim @project: tornado_learning @time: 2019/8/20 14:48 @desc: 上传文件 """ from __future__ import annotations from tornado_learning.handler import BaseHandler import os import uuid import aiofiles class UploadHandler(BaseHandler): async def post(self): ret_data = {}...
24.225
95
0.603715
740
0.749747
0
0
0
0
701
0.710233
222
0.224924
18719fea4e335f1ca1128345b7f27750044e6081
2,906
py
Python
mathgrid_app/main.py
logiflo/mathgrid
9cfff50b66a45a6598651afd2c785560eed78f27
[ "BSD-2-Clause" ]
null
null
null
mathgrid_app/main.py
logiflo/mathgrid
9cfff50b66a45a6598651afd2c785560eed78f27
[ "BSD-2-Clause" ]
null
null
null
mathgrid_app/main.py
logiflo/mathgrid
9cfff50b66a45a6598651afd2c785560eed78f27
[ "BSD-2-Clause" ]
null
null
null
"""Main module """ # Standard library imports import string # Third party imports import numpy as np import justpy as jp import pandas as pd START_INDEX: int = 1 END_INDEX: int = 20 GRID_OPTIONS = """ { class: 'ag-theme-alpine', defaultColDef: { filter: true, sortable: false, resizab...
23.819672
77
0.631108
0
0
0
0
0
0
0
0
1,184
0.407433
1874ca96a1f31b40d52d15b318f020ba7a9562e6
811
py
Python
tests/test_linked_queue.py
dataloudlabs/dloud-ads
d0ad3f169c2384292db4097e00ba7858f37a8198
[ "MIT" ]
null
null
null
tests/test_linked_queue.py
dataloudlabs/dloud-ads
d0ad3f169c2384292db4097e00ba7858f37a8198
[ "MIT" ]
null
null
null
tests/test_linked_queue.py
dataloudlabs/dloud-ads
d0ad3f169c2384292db4097e00ba7858f37a8198
[ "MIT" ]
null
null
null
""" Unit tests for linked_queue.LinkedQueue """ from dloud_ads import linked_queue def test_dummy(): """ Test definition""" the_queue = linked_queue.LinkedQueue() assert the_queue.is_empty() assert not the_queue the_queue.enqueue(2) assert not the_queue.is_empty() assert len(the_queue) ...
26.16129
66
0.637485
0
0
0
0
0
0
0
0
69
0.08508
1875fb8f105e2c1eaf8a87c9adee8cca7ddd3e65
1,831
py
Python
setup.py
AnacletoLAB/grape
5ed0a84b7cedf588715919782f37c9492263bd12
[ "MIT" ]
6
2021-09-22T17:40:01.000Z
2022-03-24T04:28:00.000Z
setup.py
AnacletoLAB/grape
5ed0a84b7cedf588715919782f37c9492263bd12
[ "MIT" ]
5
2021-10-14T10:48:27.000Z
2022-03-23T11:03:05.000Z
setup.py
AnacletoLAB/grape
5ed0a84b7cedf588715919782f37c9492263bd12
[ "MIT" ]
2
2021-09-13T16:24:08.000Z
2021-09-24T16:23:35.000Z
import os import re # To use a consistent encoding from codecs import open as copen from os import path from setuptools import find_packages, setup here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with copen(path.join(here, 'README.rst'), encoding='utf-8') as f: long...
27.328358
83
0.653195
0
0
0
0
0
0
0
0
726
0.396505
187614996f13120eae23f5d092c2a9efde0e80bf
76,079
py
Python
pyLMS7002Soapy/LMS7002_BIAS.py
Surfndez/pyLMS7002Soapy
ea230dcb12048007300477e1e2e4decc5414f954
[ "Apache-2.0" ]
46
2016-11-29T05:10:36.000Z
2021-10-31T19:27:46.000Z
pyLMS7002M/LMS7002_BIAS.py
myriadrf/pyLMS7002M
b866deea1f05dba44c9ed1a1a4666352b811b66b
[ "Apache-2.0" ]
2
2017-04-15T21:36:01.000Z
2017-06-08T09:44:26.000Z
pyLMS7002Soapy/LMS7002_BIAS.py
Surfndez/pyLMS7002Soapy
ea230dcb12048007300477e1e2e4decc5414f954
[ "Apache-2.0" ]
16
2016-11-28T20:47:55.000Z
2021-04-07T01:48:20.000Z
#*************************************************************** #* Name: LMS7002_BIAS.py #* Purpose: Class implementing LMS7002 BIAS functions #* Author: Lime Microsystems () #* Created: 2016-11-14 #* Copyright: Lime Microsystems (limemicro.com) #* License: #************************************************...
27.604862
148
0.557736
75,622
0.993993
0
0
68,991
0.906834
0
0
32,965
0.4333
1876d8349cdadc13b5b12782011e2506eb566592
1,299
py
Python
NorthernLights/shapes/BaseShape.py
jgillick/coffeetable-programs
244e3cc9099993a050ed64b1d11e41c763a1cb72
[ "MIT" ]
null
null
null
NorthernLights/shapes/BaseShape.py
jgillick/coffeetable-programs
244e3cc9099993a050ed64b1d11e41c763a1cb72
[ "MIT" ]
null
null
null
NorthernLights/shapes/BaseShape.py
jgillick/coffeetable-programs
244e3cc9099993a050ed64b1d11e41c763a1cb72
[ "MIT" ]
null
null
null
import time # Colors RED = (1,0,0) YELLOW = (1,1,0) GREEN = (0,1,0) CYAN = (0,1,1) BLUE = (0,0,1) PURPLE = (1,0,1) class BaseShape: # A list of instance attribute names, which are animatable objects animatable_attrs = [] # The time of the last animation update last_update = None # The nu...
24.055556
70
0.583526
1,173
0.903002
0
0
0
0
0
0
316
0.243264
1878e0fb7794287a25d9e67514272eb4ae4e8c3c
148
py
Python
WD/Cwiczenia/rzymskie.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
1
2020-02-29T14:38:33.000Z
2020-02-29T14:38:33.000Z
WD/Cwiczenia/rzymskie.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
WD/Cwiczenia/rzymskie.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
rzymskie={'I':1,'II':2,'III':3,'IV':4,'V':5,'VI':6,'VII':7,'VIII':8} print(rzymskie) print('Jeden element slownika: \n') print(rzymskie['I'])
24.666667
69
0.587838
0
0
0
0
0
0
0
0
65
0.439189
187a7c6d2f82ad82d4fc1c57659cdd525e113835
1,791
py
Python
otoku.py
gitmori/WebTools
05d10f082875f1ffb0eaa6cb40f4bd028d3bf01f
[ "MIT" ]
null
null
null
otoku.py
gitmori/WebTools
05d10f082875f1ffb0eaa6cb40f4bd028d3bf01f
[ "MIT" ]
null
null
null
otoku.py
gitmori/WebTools
05d10f082875f1ffb0eaa6cb40f4bd028d3bf01f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from config.site_url import SiteUrl from urllib.request import urlopen from lxml.html import fromstring from random import randint from time import sleep # 余分な改行や文字列を削除し文字列に変換する関数 def conv(arg): arg = [item.strip().replace('    |', '') for item in arg] arg = ''.j...
29.360656
113
0.564489
0
0
0
0
0
0
0
0
1,316
0.544702
187af0810cbd6c021345784f16958a06b58a35c1
1,077
py
Python
falcon/util/net.py
jopereira/horus-tracer
03671206f02c5ebea18f5682b346f59884e0a538
[ "MIT" ]
21
2018-04-18T19:01:09.000Z
2021-11-24T19:22:33.000Z
falcon/util/net.py
jopereira/horus-tracer
03671206f02c5ebea18f5682b346f59884e0a538
[ "MIT" ]
29
2018-04-30T16:39:27.000Z
2021-04-03T16:04:19.000Z
falcon/util/net.py
jopereira/horus-tracer
03671206f02c5ebea18f5682b346f59884e0a538
[ "MIT" ]
7
2018-04-21T13:04:03.000Z
2021-03-07T08:24:26.000Z
import ctypes import ctypes.util libc = ctypes.CDLL(ctypes.util.find_library('c')) # Get network device's name def if_indextoname (index): if not isinstance (index, int): raise TypeError ('Index must be an integer.') libc.if_indextoname.argtypes = [ctypes.c_uint32, ctypes.c_char_p] libc.if_indexto...
32.636364
76
0.651811
0
0
0
0
0
0
0
0
163
0.151346
187b4fbe94a221126760180a6b88a7b0450b6264
3,677
py
Python
CKY_Parser/BackupGrammer.py
Deekshantiiitd/NLP-2019
36715d6032254bfd684fe4b9dcdebe94c3edaddc
[ "Apache-2.0" ]
null
null
null
CKY_Parser/BackupGrammer.py
Deekshantiiitd/NLP-2019
36715d6032254bfd684fe4b9dcdebe94c3edaddc
[ "Apache-2.0" ]
null
null
null
CKY_Parser/BackupGrammer.py
Deekshantiiitd/NLP-2019
36715d6032254bfd684fe4b9dcdebe94c3edaddc
[ "Apache-2.0" ]
null
null
null
import nltk,re,codecs from nltk.tokenize import word_tokenize,sent_tokenize from backNode import BackNode from nltk import Tree def trace_tree(trace): if trace.left==None and trace.right==None: return str(trace.root)+" "+str(trace.word) return "("+str(trace.root)+"("+str(trace_tree(trace.left))+")"+" "+"("+str...
25.894366
108
0.658689
0
0
0
0
0
0
0
0
1,135
0.308676
187b747a40ae7c538023582dc3ed2250cb3040ca
135
py
Python
mullvad_python/__init__.py
linusg/mullpy
6f29c33174e30ea2ba360327daae9bafe140c997
[ "MIT" ]
12
2018-08-02T20:05:54.000Z
2020-06-24T18:42:53.000Z
mullvad_python/__init__.py
linusg/mullpy
6f29c33174e30ea2ba360327daae9bafe140c997
[ "MIT" ]
3
2018-08-04T13:53:01.000Z
2020-06-24T19:03:42.000Z
mullvad_python/__init__.py
linusg/mullpy
6f29c33174e30ea2ba360327daae9bafe140c997
[ "MIT" ]
2
2018-08-05T14:06:39.000Z
2020-06-24T18:45:47.000Z
"""Initialization package.""" from .api import Mullpy from .banner import banner __all__ = ['Mullpy', 'banner'] __version__ = '0.3.1'
19.285714
30
0.703704
0
0
0
0
0
0
0
0
52
0.385185
187d64baa4437d9fea0c349cebbb000fe3c38925
5,813
py
Python
tests/init.py
Animenosekai/yuno
bcc48f7ceda022e26392e653c03606d3f5f66806
[ "MIT" ]
1
2022-02-25T13:39:18.000Z
2022-02-25T13:39:18.000Z
tests/init.py
Animenosekai/yuno
bcc48f7ceda022e26392e653c03606d3f5f66806
[ "MIT" ]
null
null
null
tests/init.py
Animenosekai/yuno
bcc48f7ceda022e26392e653c03606d3f5f66806
[ "MIT" ]
null
null
null
import inspect import pathlib import sys import yuno # CONSTANTS TEST_OBJECT = { "a": 1, "b": 2, "c": 3, "test_dict": { "a": 1, "b": 2, "c": 3 }, "float": 1.1, "int": 1, "test_list": [1, 2, 3], "null": None, "string": "test", "boolean": True } TEST...
26.543379
141
0.608636
0
0
0
0
0
0
0
0
1,095
0.188371
187dce0fab5d7dab6ce2381189b7af90777ddbc1
732
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/cli.py
go-choppy/choppy-cookiecutter-pypackage
b5bfc226089bba7002397c4055199b7b57c773ea
[ "BSD-3-Clause" ]
2
2019-07-09T14:03:02.000Z
2019-07-09T14:18:55.000Z
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/cli.py
yjcyxky/cookiecutter-pypackage
b5bfc226089bba7002397c4055199b7b57c773ea
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/cli.py
yjcyxky/cookiecutter-pypackage
b5bfc226089bba7002397c4055199b7b57c773ea
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # PYTHON_ARGCOMPLETE_OK """ {{cookiecutter.project_slug}}.cli ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {{ cookiecutter.project_short_description }} :copyright: © 2019 by the Choppy Team. :license: AGPLv3+, see LICENSE for more details. """ """Console script for {{cookiecutter.proje...
25.241379
68
0.64071
0
0
0
0
301
0.410641
0
0
554
0.755798
187e7d05e0f32e5a771a3ba903dffb0254e60e4c
891
py
Python
test/classes/test_players.py
teamvolik/teamvolik
35acc1405d4f0211236631d0c5bbdbf4f948fcb6
[ "MIT" ]
6
2022-03-27T22:13:35.000Z
2022-03-31T22:45:02.000Z
test/classes/test_players.py
teamvolik/teamvolik
35acc1405d4f0211236631d0c5bbdbf4f948fcb6
[ "MIT" ]
15
2022-03-18T09:47:31.000Z
2022-03-29T15:26:51.000Z
test/classes/test_players.py
teamvolik/teamvolik
35acc1405d4f0211236631d0c5bbdbf4f948fcb6
[ "MIT" ]
null
null
null
import unittest import src.classes.player as player class PlayersTest(unittest.TestCase): def test_to_string(self): self.assertTrue(str(player.Player()) == "Player(id=-1, name=UNDEFINED, is_adm=False, games=0, pitch=0.0, hold=0.0, passing=0.0, movement=0.0, attacking=0.0, rating=0.0)") def test_to_s...
40.5
178
0.654321
786
0.882155
0
0
0
0
0
0
158
0.177329
188087e6c1a4e48475b3e61cabbe3ac47fb2c2ff
3,745
py
Python
src/asphalt/core/concurrent.py
agronholm/asphalt
7b81a71941047770612aeea67e2b3332f92b5c18
[ "Apache-2.0" ]
226
2015-08-19T16:57:32.000Z
2022-03-31T22:28:18.000Z
src/asphalt/core/concurrent.py
Asphalt-framework/asphalt
7b81a71941047770612aeea67e2b3332f92b5c18
[ "Apache-2.0" ]
31
2015-09-05T11:18:33.000Z
2019-03-25T10:51:17.000Z
src/asphalt/core/concurrent.py
Asphalt-framework/asphalt
7b81a71941047770612aeea67e2b3332f92b5c18
[ "Apache-2.0" ]
11
2015-09-04T21:43:34.000Z
2017-12-08T19:06:20.000Z
from __future__ import annotations __all__ = ("executor",) import inspect import sys from asyncio import get_running_loop from concurrent.futures import Executor from functools import partial, wraps from typing import Awaitable, Callable, TypeVar, overload from asphalt.core import Context if sys.version_info >= (3,...
31.737288
88
0.666489
0
0
0
0
378
0.100935
0
0
1,469
0.392256
18817926b7a114ee1828bddf7e74ff4c0f734e43
2,309
py
Python
src/templates/rsc/year_test.py
bradunov/shkola
6ef057f5bd483318bf5763392972d48de481d0fb
[ "MIT" ]
2
2019-08-25T09:37:27.000Z
2021-01-25T20:22:30.000Z
src/templates/rsc/year_test.py
bradunov/shkola
6ef057f5bd483318bf5763392972d48de481d0fb
[ "MIT" ]
28
2019-07-04T19:53:36.000Z
2020-10-24T13:27:56.000Z
src/templates/rsc/year_test.py
bradunov/shkola
6ef057f5bd483318bf5763392972d48de481d0fb
[ "MIT" ]
null
null
null
import jinja2 page = {} page['title'] = 'Shkola' page['item_path'] = '../src/' page['google_signin_client_id'] = "" page['google_site_verification'] = "" page['button'] = { 'width' : '137px', 'height' : '140px', 'font_size' : '111px', 'margin' : '10px', 'choices' : [] } page['button']['choices...
22.201923
67
0.374188
0
0
0
0
0
0
0
0
920
0.398441
1882943906f0dcab9b6d642fa9c4ad632eb884ac
19,771
py
Python
merganser/conflict_prediction.py
ualberta-smr/merganser
9ce9acc2a187d165c923f4a6461bd82165cda764
[ "MIT" ]
6
2019-12-04T06:29:52.000Z
2020-09-28T01:27:17.000Z
merganser/conflict_prediction.py
ualberta-smr/merganser
9ce9acc2a187d165c923f4a6461bd82165cda764
[ "MIT" ]
null
null
null
merganser/conflict_prediction.py
ualberta-smr/merganser
9ce9acc2a187d165c923f4a6461bd82165cda764
[ "MIT" ]
4
2019-04-25T21:07:20.000Z
2021-11-22T15:04:04.000Z
import logging import json import glob import pandas as pd import multiprocessing import numpy as np from sklearn.ensemble import RandomForestClassifier from sklearn.ensemble import ExtraTreesClassifier from sklearn.tree import DecisionTreeClassifier from sklearn.ensemble import AdaBoostClassifier from sklearn.metrics...
43.452747
163
0.694401
0
0
0
0
0
0
0
0
4,529
0.229073
188415bc541aaa91a4194a25f98e0ed82bdb2af2
25,321
py
Python
lib/wx_lib.py
liveonnet/p3_server
2dab6eab6e98b3ef0d26093eb461c635f5bc07b4
[ "Apache-2.0" ]
null
null
null
lib/wx_lib.py
liveonnet/p3_server
2dab6eab6e98b3ef0d26093eb461c635f5bc07b4
[ "Apache-2.0" ]
null
null
null
lib/wx_lib.py
liveonnet/p3_server
2dab6eab6e98b3ef0d26093eb461c635f5bc07b4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import time import json import random import string import asyncio import aiohttp from aiohttp.resolver import AsyncResolver from hashlib import md5 from urllib.parse import quote #-#from operator import itemgetter #-#from itertools import chain #-#from cStringIO import StringIO if __name__ == ...
39.50234
229
0.529995
24,190
0.910117
0
0
0
0
20,232
0.761202
10,664
0.401219
43e657cee1737539636db5f58dee3a853afc6290
1,565
py
Python
django_fuzzytest/management/commands/fuzzytest.py
creotiv/django-fuzzytest
6102ac6e7aee3bf81ff5186fbe5bfb01e688acdc
[ "BSD-3-Clause" ]
8
2015-08-23T19:28:52.000Z
2021-12-03T06:36:58.000Z
django_fuzzytest/management/commands/fuzzytest.py
creotiv/django-fuzzytest
6102ac6e7aee3bf81ff5186fbe5bfb01e688acdc
[ "BSD-3-Clause" ]
null
null
null
django_fuzzytest/management/commands/fuzzytest.py
creotiv/django-fuzzytest
6102ac6e7aee3bf81ff5186fbe5bfb01e688acdc
[ "BSD-3-Clause" ]
1
2021-12-03T06:37:00.000Z
2021-12-03T06:37:00.000Z
# coding: utf-8 from __future__ import unicode_literals import time import logging import traceback from optparse import make_option import json from django.core.management.base import BaseCommand, CommandError from django.conf import settings from django_fuzzytest.runner import FuzzyRunner logger = logging.getLogge...
30.686275
81
0.578275
1,230
0.785942
0
0
0
0
0
0
300
0.191693
43e9c5052f55a709d60fa878953b3e380fa1ce96
6,727
py
Python
save_sim/maker.py
jrbourbeau/composition
f8debd81b0467a6094d5ba56a5f0fc6047369d30
[ "MIT" ]
null
null
null
save_sim/maker.py
jrbourbeau/composition
f8debd81b0467a6094d5ba56a5f0fc6047369d30
[ "MIT" ]
null
null
null
save_sim/maker.py
jrbourbeau/composition
f8debd81b0467a6094d5ba56a5f0fc6047369d30
[ "MIT" ]
null
null
null
#!/usr/bin/env python import glob import re import os import argparse import time import getpass import composition.support_functions.paths as paths import composition.support_functions.simfunctions as simfunctions from composition.support_functions.checkdir import checkdir def get_argdict(comp_data_dir, **args): ...
36.166667
95
0.581388
0
0
0
0
0
0
0
0
1,843
0.273971
43e9f411bc2778ec1b8d67dbf67237a43e84adad
7,257
py
Python
xlsxwriter_tables/xlsxwriter_tables.py
johncmacy/xlsxwriter-tables
8e4db55d8d4bbc66209e23f0852d7351f40db587
[ "MIT" ]
null
null
null
xlsxwriter_tables/xlsxwriter_tables.py
johncmacy/xlsxwriter-tables
8e4db55d8d4bbc66209e23f0852d7351f40db587
[ "MIT" ]
null
null
null
xlsxwriter_tables/xlsxwriter_tables.py
johncmacy/xlsxwriter-tables
8e4db55d8d4bbc66209e23f0852d7351f40db587
[ "MIT" ]
null
null
null
from typing import Union class ExcelTable: def _get_column(self, column_name:str, column_props:Union[dict, str]) -> dict: ''' Defaults to the title-cased `column_name`: my_favorite_color: 'My Favorite Color' For acronyms, abbreviations, provide the correct capitalization in t...
30.2375
126
0.51564
7,230
0.996279
0
0
0
0
0
0
4,120
0.567728
43eab223999e2604b87fae88107217a209d85e53
859
py
Python
teachers_toolkit/grading_system/migrations/0003_auto_20180706_1923.py
luiscberrocal/teachers_toolkit
078c55c4a9ad9c5a74e1484d80ac34f3b26b69c9
[ "MIT" ]
null
null
null
teachers_toolkit/grading_system/migrations/0003_auto_20180706_1923.py
luiscberrocal/teachers_toolkit
078c55c4a9ad9c5a74e1484d80ac34f3b26b69c9
[ "MIT" ]
null
null
null
teachers_toolkit/grading_system/migrations/0003_auto_20180706_1923.py
luiscberrocal/teachers_toolkit
078c55c4a9ad9c5a74e1484d80ac34f3b26b69c9
[ "MIT" ]
null
null
null
# Generated by Django 2.0.7 on 2018-07-06 19:23 from django.db import migrations, models import django_extensions.db.fields class Migration(migrations.Migration): dependencies = [ ('grading_system', '0002_student_email'), ] operations = [ migrations.RenameField( model_name='...
28.633333
135
0.620489
731
0.85099
0
0
0
0
0
0
168
0.195576
43ebc0969b2793f79841f3adb90ba457341afae3
67,834
py
Python
sdk/python/pulumi_google_native/vmmigration/v1alpha1/outputs.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/vmmigration/v1alpha1/outputs.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/vmmigration/v1alpha1/outputs.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
38.542045
653
0.637306
66,571
0.981381
0
0
66,891
0.986098
0
0
34,755
0.512354
43ed227cd2674901d74eb5739cfb902ec959b334
6,300
py
Python
tests/test_utils.py
yoshikyoto/django-filter-0.14
b5166e93f4c0fec5f5e8a73b6d1e8e0550b3929b
[ "BSD-3-Clause" ]
null
null
null
tests/test_utils.py
yoshikyoto/django-filter-0.14
b5166e93f4c0fec5f5e8a73b6d1e8e0550b3929b
[ "BSD-3-Clause" ]
1
2016-08-23T18:20:47.000Z
2016-08-23T19:16:07.000Z
tests/test_utils.py
yoshikyoto/django-filter-0.14
b5166e93f4c0fec5f5e8a73b6d1e8e0550b3929b
[ "BSD-3-Clause" ]
null
null
null
import unittest import django from django.test import TestCase from django.db import models from django.db.models.constants import LOOKUP_SEP from django_filters.utils import get_model_field, resolve_field from django_filters.exceptions import FieldLookupError from .models import User from .models import Article fr...
36
108
0.644762
5,890
0.934921
0
0
3,328
0.528254
0
0
1,495
0.237302
43ee04853e52a2ff347eaf6785c0c115ae6ad8aa
164
py
Python
agc/agc007/agc007a.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
agc/agc007/agc007a.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
agc/agc007/agc007a.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
H, W = map(int, input().split()) A = [input() for _ in range(H)] if H + W - 1 == sum(a.count('#') for a in A): print('Possible') else: print('Impossible')
20.5
45
0.542683
0
0
0
0
0
0
0
0
25
0.152439
43f06ebbb7637e1e6c0f53bef04ad021c74daf38
2,188
py
Python
relfs/relfs/fuse/mount_root.py
matus-chochlik/various
2a9f5eddd964213f7d1e1ce8328e2e0b2a8e998b
[ "MIT" ]
1
2020-10-25T12:28:50.000Z
2020-10-25T12:28:50.000Z
relfs/relfs/fuse/mount_root.py
matus-chochlik/various
2a9f5eddd964213f7d1e1ce8328e2e0b2a8e998b
[ "MIT" ]
null
null
null
relfs/relfs/fuse/mount_root.py
matus-chochlik/various
2a9f5eddd964213f7d1e1ce8328e2e0b2a8e998b
[ "MIT" ]
null
null
null
# coding=utf-8 #------------------------------------------------------------------------------# import os import time import fuse import errno from .item import RelFuseItem from .static_dir import StaticDirectory #------------------------------------------------------------------------------# class MountRoot(RelFuseIte...
35.290323
80
0.359232
1,811
0.827697
138
0.063071
0
0
0
0
895
0.409049
43f1172d32150bd985177a2463faa8dd3ab137f9
3,935
py
Python
clip_onnx/clip_converter.py
EmbarkStudios/CLIP-ONNX
52f4ce4d603722cb934d27b570f7523f26f1ef7f
[ "MIT" ]
null
null
null
clip_onnx/clip_converter.py
EmbarkStudios/CLIP-ONNX
52f4ce4d603722cb934d27b570f7523f26f1ef7f
[ "MIT" ]
null
null
null
clip_onnx/clip_converter.py
EmbarkStudios/CLIP-ONNX
52f4ce4d603722cb934d27b570f7523f26f1ef7f
[ "MIT" ]
null
null
null
import torch import onnx from torch import nn from onnxruntime.quantization import quantize_qat, quantize_dynamic, QuantType from .utils import Textual, DEFAULT_EXPORT class clip_converter(nn.Module): def __init__(self, model, visual_path: str = "clip_visual.onnx", textual_path: str = "clip_textu...
41.421053
88
0.629225
3,764
0.956544
0
0
0
0
0
0
440
0.111817
43f1186dd806bfa7da9c44b01e37a130943f2f23
6,493
py
Python
electrum/gui/kivy/uix/dialogs/add_token_dialog.py
VIPSTARCOIN-electrum/electrum-vips
ebe93c09717ea44c049fcb9c3f366af64dc87b37
[ "MIT" ]
2
2019-07-17T23:09:42.000Z
2019-10-25T05:44:04.000Z
electrum/gui/kivy/uix/dialogs/add_token_dialog.py
VIPSTARCOIN-electrum/electrum-vips
ebe93c09717ea44c049fcb9c3f366af64dc87b37
[ "MIT" ]
null
null
null
electrum/gui/kivy/uix/dialogs/add_token_dialog.py
VIPSTARCOIN-electrum/electrum-vips
ebe93c09717ea44c049fcb9c3f366af64dc87b37
[ "MIT" ]
3
2019-08-10T15:14:29.000Z
2021-05-26T20:02:02.000Z
from datetime import datetime from kivy.app import App from kivy.factory import Factory from kivy.lang import Builder from kivy.clock import Clock from kivy.uix.button import Button from electrum.gui.kivy.i18n import _ from electrum.bitcoin import Token from electrum.util import parse_token_URI, InvalidTokenURI fro...
36.273743
176
0.588788
4,352
0.67026
0
0
0
0
0
0
2,130
0.328046
43f27c688e68efd3839a07cc972cfa2dd88cc2cc
17,625
py
Python
statey/syms/encoders.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
4
2021-02-16T19:34:38.000Z
2022-01-31T16:44:14.000Z
statey/syms/encoders.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
null
null
null
statey/syms/encoders.py
cfeenstra67/statey
6d127ed48265e2e072fbb26486458a4b28a333ec
[ "MIT" ]
null
null
null
import abc import base64 from datetime import date, datetime import dataclasses as dc from typing import Type as PyType, Any, Dict, Optional import marshmallow as ma import pickle import pluggy import statey as st from statey.syms import types, utils, Object class Encoder(abc.ABC): """ An encoder encodes d...
29.228856
109
0.633816
15,638
0.887262
0
0
13,400
0.760284
0
0
2,571
0.145872
43f28356d6bbc800add9ebabe90e54e8e11a08d4
13,558
py
Python
src/data.py
saattrupdan/danish-asr-models
967e558d0032d67afbe72b625f3cad0eca65cc2a
[ "MIT" ]
2
2022-03-10T10:47:43.000Z
2022-03-11T09:24:34.000Z
src/data.py
saattrupdan/danish-asr-models
967e558d0032d67afbe72b625f3cad0eca65cc2a
[ "MIT" ]
null
null
null
src/data.py
saattrupdan/danish-asr-models
967e558d0032d67afbe72b625f3cad0eca65cc2a
[ "MIT" ]
null
null
null
'''Functions related to the data loading and processing''' from transformers import (Wav2Vec2CTCTokenizer, Wav2Vec2FeatureExtractor, Wav2Vec2Processor) from datasets import (load_dataset as ds_load_dataset, Dataset, Dataset...
34.411168
79
0.52906
10,943
0.804159
0
0
2,549
0.187316
0
0
5,673
0.416887
43f298d87e261cc2cbf422453d37df22dea68372
1,604
py
Python
etravel/urls.py
zahir1509/project-ap-etravel
2113a84ae4340be0e8cfa2676f448878c625e3e3
[ "MIT" ]
1
2020-12-06T17:49:11.000Z
2020-12-06T17:49:11.000Z
etravel/urls.py
zahir1509/project-ap-etravel
2113a84ae4340be0e8cfa2676f448878c625e3e3
[ "MIT" ]
null
null
null
etravel/urls.py
zahir1509/project-ap-etravel
2113a84ae4340be0e8cfa2676f448878c625e3e3
[ "MIT" ]
1
2020-12-07T14:20:41.000Z
2020-12-07T14:20:41.000Z
"""etravel URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
42.210526
77
0.706983
0
0
0
0
0
0
0
0
895
0.55798
43f37d4e6dabec0097acd8b5f0892f346b8200d5
4,447
py
Python
adet/data/video_data/yvos_annot_condinst.py
Tanveer81/BoxVOS
c30aa319f18f3fbee2a25e0ed25cb006a4598300
[ "BSD-2-Clause" ]
4
2022-02-16T02:48:27.000Z
2022-03-08T06:54:32.000Z
adet/data/video_data/yvos_annot_condinst.py
Tanveer81/BoxVOS
c30aa319f18f3fbee2a25e0ed25cb006a4598300
[ "BSD-2-Clause" ]
null
null
null
adet/data/video_data/yvos_annot_condinst.py
Tanveer81/BoxVOS
c30aa319f18f3fbee2a25e0ed25cb006a4598300
[ "BSD-2-Clause" ]
null
null
null
import json import time from glob import glob from pathlib import Path from adet.data.video_data.util import * from PIL import Image, ImageFont, ImageDraw import os import random categories = ['airplane', 'ape', 'bear', 'bike', 'bird', 'boat', 'bucket', 'bus', 'camel', 'cat', 'cow', 'crocodil...
43.174757
106
0.527097
0
0
0
0
0
0
0
0
1,275
0.28671
43f63cbc9ceb8f44b281dc9e30baf482c1545385
1,342
py
Python
lookup_table.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
2
2017-03-21T14:18:35.000Z
2020-03-30T20:51:33.000Z
lookup_table.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
null
null
null
lookup_table.py
yishayv/lyacorr
deed114b4cadd4971caec68e2838a5fac39827b1
[ "MIT" ]
null
null
null
import numpy as np def fast_linear_interpolate(f, x): """ :param f: array of evenly spaced function values :param x: array of fractional positions to sample :type f: np.multiarray.ndarray :type x: np.multiarray.ndarray :rtype: np.multiarray.ndarray """ x0 = np.floor(x).astype(int) ...
29.822222
100
0.622206
854
0.636364
0
0
0
0
0
0
564
0.420268
43f6879757f40989d16e1db4126c95e8352e1759
492
py
Python
src/seedwork/domain/rules.py
pgorecki/python-ddd
0073ccce35c651be263f5d7d3d63f9a49bc0b78a
[ "MIT" ]
10
2022-03-16T19:26:51.000Z
2022-03-31T23:50:51.000Z
src/seedwork/domain/rules.py
pgorecki/python-ddd
0073ccce35c651be263f5d7d3d63f9a49bc0b78a
[ "MIT" ]
null
null
null
src/seedwork/domain/rules.py
pgorecki/python-ddd
0073ccce35c651be263f5d7d3d63f9a49bc0b78a
[ "MIT" ]
2
2022-03-16T19:26:54.000Z
2022-03-27T13:21:02.000Z
from pydantic import BaseModel class BusinessRule(BaseModel): """This is a base class for implementing domain rules""" class Config: arbitrary_types_allowed = True # This is an error message that broken rule reports back __message: str = "Business rule is broken" def get_message(self) -...
23.428571
63
0.666667
458
0.930894
0
0
0
0
0
0
185
0.376016
43f6f242e391b123212da34e3f976064029b361e
627
py
Python
exs/mundo_2/python/067.py
QuatroQuatros/exercicios-CeV
c9b995b717fe1dd2c2eee3557db0161390bc78b0
[ "MIT" ]
45
2021-01-02T18:36:01.000Z
2022-03-26T19:46:47.000Z
exs/mundo_2/python/067.py
QuatroQuatros/exercicios-CeV
c9b995b717fe1dd2c2eee3557db0161390bc78b0
[ "MIT" ]
24
2020-12-31T17:23:16.000Z
2021-03-11T19:44:36.000Z
exs/mundo_2/python/067.py
QuatroQuatros/exercicios-CeV
c9b995b717fe1dd2c2eee3557db0161390bc78b0
[ "MIT" ]
28
2020-12-30T15:57:16.000Z
2022-03-26T19:46:49.000Z
""" Desafio 067 Problema: Faça um programa que mostre a tabuada de vários números, um de cada vez, para cada valor digitado pelo usuário. O programa será interrompido quando o número solicitado for negativo. Resolução do problema: """ print('-' * 20) print(f'{" Tabuada v3.0 ":~^20}') pri...
23.222222
66
0.601276
0
0
0
0
0
0
0
0
435
0.685039
43fbb641614733e9b5376e1fc262a24a13b94350
1,492
py
Python
pyexcel_xlsx/__init__.py
pyexcel/pyexcel-xlsx
3b3639d12270cc10fff32651280d139ec65bb354
[ "BSD-3-Clause" ]
101
2016-02-22T03:51:39.000Z
2022-03-08T02:21:50.000Z
pyexcel_xlsx/__init__.py
pyexcel/pyexcel-xlsx
3b3639d12270cc10fff32651280d139ec65bb354
[ "BSD-3-Clause" ]
46
2016-05-09T14:16:31.000Z
2022-02-25T18:40:57.000Z
pyexcel_xlsx/__init__.py
pyexcel/pyexcel-xlsx
3b3639d12270cc10fff32651280d139ec65bb354
[ "BSD-3-Clause" ]
23
2016-01-29T12:26:02.000Z
2021-12-30T04:32:20.000Z
""" pyexcel_xlsx ~~~~~~~~~~~~~~~~~~~ The lower level xlsx file format handler using openpyxl :copyright: (c) 2015-2019 by Onni Software Ltd & its contributors :license: New BSD License """ from pyexcel_io.io import get_data as read_data from pyexcel_io.io import isstream from pyexcel_io.io import ...
31.744681
75
0.72185
0
0
0
0
0
0
0
0
496
0.33244
43fc77cfe764566289284319cba58cc6a6b81ffc
12,775
py
Python
GeneralTools/graph_funcs/generative_model_metric.py
frhrdr/MMD-GAN
7522093498b658026344541ddd5c248095763fb6
[ "Apache-2.0" ]
null
null
null
GeneralTools/graph_funcs/generative_model_metric.py
frhrdr/MMD-GAN
7522093498b658026344541ddd5c248095763fb6
[ "Apache-2.0" ]
null
null
null
GeneralTools/graph_funcs/generative_model_metric.py
frhrdr/MMD-GAN
7522093498b658026344541ddd5c248095763fb6
[ "Apache-2.0" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow.contrib import gan as tfgan from GeneralTools.graph_funcs.my_session import MySession from GeneralTools.math_funcs.graph_func_support import mean_cov_np, trace_sqrt_product_np from GeneralTools.misc_fun import FLAGS class GenerativeModelMetric(object): d...
45.301418
133
0.636947
12,498
0.978164
0
0
1,701
0.13313
0
0
4,682
0.36644
43fe8ce604f5be764fdbae5dfb8933ec293fcd26
187
py
Python
App/softwares_env/wizard/wsd/main.py
Wizard-collab/wizard
c2ec623fe011626716493c232b895fb0513f68ff
[ "MIT" ]
null
null
null
App/softwares_env/wizard/wsd/main.py
Wizard-collab/wizard
c2ec623fe011626716493c232b895fb0513f68ff
[ "MIT" ]
null
null
null
App/softwares_env/wizard/wsd/main.py
Wizard-collab/wizard
c2ec623fe011626716493c232b895fb0513f68ff
[ "MIT" ]
null
null
null
import yaml class wsd(): def __init__(self, file, dict): self.file = file self.dict = dict def write_sd(self): with open(self.file, 'w') as f: f.write(yaml.dump(self.dict))
17
33
0.652406
174
0.930481
0
0
0
0
0
0
3
0.016043
a1003f2195e718d7338e4e93046ad32eab667f13
6,545
py
Python
loldib/getratings/models/NA/na_rengar/na_rengar_mid.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_rengar/na_rengar_mid.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_rengar/na_rengar_mid.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
from getratings.models.ratings import Ratings class NA_Rengar_Mid_Aatrox(Ratings): pass class NA_Rengar_Mid_Ahri(Ratings): pass class NA_Rengar_Mid_Akali(Ratings): pass class NA_Rengar_Mid_Alistar(Ratings): pass class NA_Rengar_Mid_Amumu(Ratings): pass class NA_Rengar_Mid_Anivia(Ratings): ...
15.695444
46
0.766692
5,944
0.908174
0
0
0
0
0
0
0
0
a100629a10b0553407de408897d5616acb03768b
3,372
py
Python
fixtures_browsers.py
aleksandr-kotlyar/python_tests_and_hacks
291e3c33b70ef35deb9ba687885e70e6d23fe82f
[ "Apache-2.0" ]
9
2020-02-07T05:15:00.000Z
2022-01-19T10:19:02.000Z
fixtures_browsers.py
aleksandr-kotlyar/python_tests_and_hacks
291e3c33b70ef35deb9ba687885e70e6d23fe82f
[ "Apache-2.0" ]
5
2020-05-03T07:34:03.000Z
2021-03-25T18:18:30.000Z
fixtures_browsers.py
aleksandr-kotlyar/python_tests_and_hacks
291e3c33b70ef35deb9ba687885e70e6d23fe82f
[ "Apache-2.0" ]
1
2021-07-26T06:24:36.000Z
2021-07-26T06:24:36.000Z
import logging import pytest from selene import Browser, Config from selenium import webdriver from selenium.webdriver.chrome.options import Options from webdriver_manager.chrome import ChromeDriverManager @pytest.fixture(scope='function') def browser_func(choose_driver): """Browser that closes after each test f...
32.423077
93
0.695136
0
0
419
0.124259
735
0.217972
0
0
946
0.280546
a101053cd887c912399a70d0a235e2cfdc45a962
34
py
Python
evaluation/__init__.py
Luxios22/Dual_Norm
b404a03b15fc05749e0c648d9e46ffe70f6b2a80
[ "MIT" ]
null
null
null
evaluation/__init__.py
Luxios22/Dual_Norm
b404a03b15fc05749e0c648d9e46ffe70f6b2a80
[ "MIT" ]
null
null
null
evaluation/__init__.py
Luxios22/Dual_Norm
b404a03b15fc05749e0c648d9e46ffe70f6b2a80
[ "MIT" ]
null
null
null
from .evaluation import evaluation
34
34
0.882353
0
0
0
0
0
0
0
0
0
0
a1016a14567b8bcc8f6f0d1e157f8a64f32c5aaf
7,034
py
Python
utils/file_utils.py
lkrmbhlz/MVSC_3D
7e32f1b507eb0bc85fae2649da0c8bfa89672064
[ "MIT" ]
2
2022-01-22T15:09:22.000Z
2022-01-22T15:09:48.000Z
utils/file_utils.py
lkrmbhlz/MVSC_3D
7e32f1b507eb0bc85fae2649da0c8bfa89672064
[ "MIT" ]
null
null
null
utils/file_utils.py
lkrmbhlz/MVSC_3D
7e32f1b507eb0bc85fae2649da0c8bfa89672064
[ "MIT" ]
null
null
null
import open3d as o3d import numpy as np from pclpy import pcl from tqdm import tqdm import os def o3d_meshes(dataset_name: str, path_to_data_folder='../../data'): """ Read in mesh (.ply, .stl, .off) files. The function assumes that each class of objects is in a separate folder and highly spefified for our...
38.228261
259
0.65681
0
0
0
0
0
0
0
0
2,326
0.33068
a101ea954f07ea0e68e1799f7386155f6a1d887a
9,523
py
Python
Program.py
aakash-lambton/project
04a1991fc5e65e0cb8988029adbb1fda03656612
[ "Apache-2.0" ]
null
null
null
Program.py
aakash-lambton/project
04a1991fc5e65e0cb8988029adbb1fda03656612
[ "Apache-2.0" ]
null
null
null
Program.py
aakash-lambton/project
04a1991fc5e65e0cb8988029adbb1fda03656612
[ "Apache-2.0" ]
null
null
null
import pymongo import random def create_database(db): user_collection = db['users'] user_collection.drop() user_collection = db['users'] post_collection = db['posts'] post_collection.drop() post_collection = db['posts'] comment_collection = db['comments'] comment_collection.drop() ...
26.825352
118
0.522209
0
0
0
0
0
0
0
0
3,005
0.315552
a102475986cb4c83a3d10579c02a0bf8df165a0a
530
py
Python
Mundo 2/ex053.py
judigunkel/judi-exercicios-python
c61bb75b1ae6141defcf42214194e141a70af15d
[ "MIT" ]
null
null
null
Mundo 2/ex053.py
judigunkel/judi-exercicios-python
c61bb75b1ae6141defcf42214194e141a70af15d
[ "MIT" ]
null
null
null
Mundo 2/ex053.py
judigunkel/judi-exercicios-python
c61bb75b1ae6141defcf42214194e141a70af15d
[ "MIT" ]
1
2021-03-06T02:41:36.000Z
2021-03-06T02:41:36.000Z
""" Crie um programa que leia um a frase qualquer e diga se ela é um palíndromo, desconsiderando os espaços. ex: apos a sopa a sacada da casa a torre da derrota o lobo ama o bolo anotaram a data da maratona """ frase = input('Digite uma frase (sem acentos): ').replace(' ', '').upper() inverso = '' for c in range(len(fr...
26.5
76
0.681132
0
0
0
0
0
0
0
0
368
0.682746
a1027c07377717af9273b6289963cf9e75ece183
1,546
py
Python
inferfuzzy/base_set.py
leynier/inferfuzzy
bc9dd3a3d0d59f323c5c573423ff7d20ba771eeb
[ "MIT" ]
3
2020-11-23T21:05:31.000Z
2020-11-25T17:33:27.000Z
inferfuzzy/base_set.py
leynier/fuzzpy
bc9dd3a3d0d59f323c5c573423ff7d20ba771eeb
[ "MIT" ]
null
null
null
inferfuzzy/base_set.py
leynier/fuzzpy
bc9dd3a3d0d59f323c5c573423ff7d20ba771eeb
[ "MIT" ]
null
null
null
from typing import Any, Callable import matplotlib.pyplot as plt from numpy import arange from .membership import Membership class BaseSet: def __init__( self, name: str, membership: Membership, aggregation: Callable[[Any, Any], Any], ): self.name = name self....
25.766667
57
0.568564
1,416
0.915912
0
0
0
0
0
0
99
0.064036
a104d65ea80539f94a6a62d27d42b32939f7ca2a
9,911
py
Python
play/play_loop.py
wmloh/ChessAI
b8eafd673ecb8162e464d78fccd32979a0c28126
[ "MIT" ]
1
2021-09-07T20:40:44.000Z
2021-09-07T20:40:44.000Z
play/play_loop.py
wmloh/ChessAI
b8eafd673ecb8162e464d78fccd32979a0c28126
[ "MIT" ]
null
null
null
play/play_loop.py
wmloh/ChessAI
b8eafd673ecb8162e464d78fccd32979a0c28126
[ "MIT" ]
null
null
null
import numpy as np import chess import chess.engine from tkinter.filedialog import asksaveasfilename from parsing.math_encode import tensor_encode, tensor_decode from inference.infer_action import get_action class PlayLoop: __doc__ = ''' An interactive REPL environment for play with a trained chess AI ''...
39.486056
105
0.563112
9,699
0.97861
0
0
0
0
0
0
3,279
0.330845
a10591815a24a01b78e2571e754c9c37c5e03b4b
205
py
Python
wave/synth/wave/wave/base/curve.py
jedhsu/wave
a05d8f4b0a96722bdc2f5a514646c7a44681982b
[ "Apache-2.0" ]
null
null
null
wave/synth/wave/wave/base/curve.py
jedhsu/wave
a05d8f4b0a96722bdc2f5a514646c7a44681982b
[ "Apache-2.0" ]
null
null
null
wave/synth/wave/wave/base/curve.py
jedhsu/wave
a05d8f4b0a96722bdc2f5a514646c7a44681982b
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from typing import Generic, Mapping, TypeVar __all__ = ["Curve"] T = TypeVar("T") U = TypeVar("U") @dataclass class _Curve(Generic[T, U]): mapping: Mapping[T, U]
14.642857
44
0.692683
55
0.268293
0
0
66
0.321951
0
0
13
0.063415
a10652730ddf79d36acced38c1989dd4d1acb1fa
877
py
Python
src/jellyroll/providers/utils/anyetree.py
blturner/jellyroll
8a3b96e84d6cfbaac478bb8f9e406aabff5a77f3
[ "BSD-3-Clause" ]
3
2015-03-02T06:34:45.000Z
2016-11-24T18:53:59.000Z
src/jellyroll/providers/utils/anyetree.py
blturner/jellyroll
8a3b96e84d6cfbaac478bb8f9e406aabff5a77f3
[ "BSD-3-Clause" ]
null
null
null
src/jellyroll/providers/utils/anyetree.py
blturner/jellyroll
8a3b96e84d6cfbaac478bb8f9e406aabff5a77f3
[ "BSD-3-Clause" ]
null
null
null
""" Get an Etree library. Usage:: >>> from anyetree import etree Returns some etree library. Looks for (in order of decreasing preference): * ``lxml.etree`` (http://cheeseshop.python.org/pypi/lxml/) * ``xml.etree.cElementTree`` (built into Python 2.5) * ``cElementTree`` (http://effbot.org/zone/celem...
25.057143
74
0.652223
0
0
0
0
0
0
0
0
624
0.711517
a1081e4aca80f13d81fb5c284f116c973136197c
608
py
Python
libs/dispatch/dispatcher.py
eeshakumar/hythe
52ca795c8370ddfb2aa6fb87ff3f63a85c55f913
[ "MIT" ]
null
null
null
libs/dispatch/dispatcher.py
eeshakumar/hythe
52ca795c8370ddfb2aa6fb87ff3f63a85c55f913
[ "MIT" ]
null
null
null
libs/dispatch/dispatcher.py
eeshakumar/hythe
52ca795c8370ddfb2aa6fb87ff3f63a85c55f913
[ "MIT" ]
null
null
null
from abc import abstractmethod, ABC class Dispatcher(ABC): def __init__(self, dispatch_dict=None): self._dispatch_dict = dispatch_dict self._process_list = [] return def set_dispatch_dict(self, dispatch_dict): self._dispatch_dict = dispatch_dict @abstractmethod def d...
22.518519
67
0.648026
567
0.932566
0
0
304
0.5
0
0
31
0.050987
a10a14a640ca1ca76f6da0a67be2551ab7a5efc8
766
py
Python
3_TT_FLIM.py
swabianinstruments/swabianinstruments-web-demo
2d59f79958a942ed61f04ea7dd44c98ab2cf17df
[ "MIT" ]
null
null
null
3_TT_FLIM.py
swabianinstruments/swabianinstruments-web-demo
2d59f79958a942ed61f04ea7dd44c98ab2cf17df
[ "MIT" ]
null
null
null
3_TT_FLIM.py
swabianinstruments/swabianinstruments-web-demo
2d59f79958a942ed61f04ea7dd44c98ab2cf17df
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Mar 25 11:01:41 2020 @author: liu """ from time import sleep import plot_TT from TimeTagger import createTimeTagger, freeAllTimeTagger, TimeDifferences # create a Time Tagger instance tagger = createTimeTagger() tagger.reset() # assign channels for measu...
19.15
91
0.707572
0
0
0
0
0
0
0
0
267
0.348564
a10b1c87fe2ffd2a2fe1dee4b23ec1fe16f8cf15
287
py
Python
electroPyy/io/__init__.py
ludo67100/electroPyy_Dev
3b940adbfdf005dd8231e7ac61aca708033d5a95
[ "OML" ]
null
null
null
electroPyy/io/__init__.py
ludo67100/electroPyy_Dev
3b940adbfdf005dd8231e7ac61aca708033d5a95
[ "OML" ]
null
null
null
electroPyy/io/__init__.py
ludo67100/electroPyy_Dev
3b940adbfdf005dd8231e7ac61aca708033d5a95
[ "OML" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Nov 21 14:54:51 2019 @author: Ludovic.SPAETH """ from electroPyy.io.BaseRawIO import BaseRawIO from electroPyy.io.HdF5IO import HdF5IO from electroPyy.io.NeuroExIO import NeuroExIO from electroPyy.io.WinWcpRawIO import WinWcpRawIO
23.916667
50
0.745645
0
0
0
0
0
0
0
0
96
0.334495
a10d6496b80a4c774fdd41dcbb4c0a5e756986a0
317
py
Python
torch_geometric_temporal/signal/__init__.py
tforgaard/pytorch_geometric_temporal
d3a6a55119cb8cc38cb6d941ba8f74879d02c4b8
[ "MIT" ]
1,410
2020-06-27T03:36:19.000Z
2022-03-31T23:29:22.000Z
torch_geometric_temporal/signal/__init__.py
tforgaard/pytorch_geometric_temporal
d3a6a55119cb8cc38cb6d941ba8f74879d02c4b8
[ "MIT" ]
124
2020-07-07T16:11:09.000Z
2022-03-31T07:21:53.000Z
torch_geometric_temporal/signal/__init__.py
tforgaard/pytorch_geometric_temporal
d3a6a55119cb8cc38cb6d941ba8f74879d02c4b8
[ "MIT" ]
230
2020-07-27T11:13:52.000Z
2022-03-31T14:31:29.000Z
from .dynamic_graph_temporal_signal import * from .dynamic_graph_temporal_signal_batch import * from .static_graph_temporal_signal import * from .static_graph_temporal_signal_batch import * from .dynamic_graph_static_signal import * from .dynamic_graph_static_signal_batch import * from .train_test_split import *
28.818182
50
0.858044
0
0
0
0
0
0
0
0
0
0
a10e01e242ade75c580d5f9cde2741f0eeac1fca
3,605
py
Python
sdks/python/apache_beam/examples/streaming_wordcount_debugging_test.py
aaltay/incubator-beam
b150ace0884c88bc93da21f6dfe3b7684f886e94
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
9
2016-09-28T18:25:24.000Z
2019-05-09T12:28:29.000Z
sdks/python/apache_beam/examples/streaming_wordcount_debugging_test.py
aaltay/incubator-beam
b150ace0884c88bc93da21f6dfe3b7684f886e94
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
28
2020-03-04T22:01:48.000Z
2022-03-12T00:59:47.000Z
sdks/python/apache_beam/examples/streaming_wordcount_debugging_test.py
aaltay/incubator-beam
b150ace0884c88bc93da21f6dfe3b7684f886e94
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
6
2020-12-02T09:51:34.000Z
2022-03-15T23:09: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 us...
32.477477
76
0.691262
2,098
0.581969
0
0
2,131
0.591123
0
0
1,512
0.419417
a10e3d1311566cfbb4eeacef8a5558e6389ab6c2
147
py
Python
rest_framework_bulk/__init__.py
xordoquy/django-rest-framework-bulk
484df717a790591a7bc58d5fed34f958ae82929a
[ "MIT" ]
1
2019-08-20T02:08:33.000Z
2019-08-20T02:08:33.000Z
rest_framework_bulk/__init__.py
xordoquy/django-rest-framework-bulk
484df717a790591a7bc58d5fed34f958ae82929a
[ "MIT" ]
null
null
null
rest_framework_bulk/__init__.py
xordoquy/django-rest-framework-bulk
484df717a790591a7bc58d5fed34f958ae82929a
[ "MIT" ]
null
null
null
__version__ = '0.1.3' __author__ = 'Miroslav Shubernetskiy' try: from .generics import * from .mixins import * except Exception: pass
16.333333
37
0.687075
0
0
0
0
0
0
0
0
31
0.210884
a10e6a87e856699221521cf8bdbfca12b9ee5a97
1,773
py
Python
random_forest_classifier.py
duongntbk/FashionMNIST
982f31ac7d857b5deadfde37f979bc6a047fa007
[ "MIT" ]
null
null
null
random_forest_classifier.py
duongntbk/FashionMNIST
982f31ac7d857b5deadfde37f979bc6a047fa007
[ "MIT" ]
10
2020-01-28T22:19:43.000Z
2022-02-10T00:30:45.000Z
random_forest_classifier.py
duongntbk/FashionMNIST
982f31ac7d857b5deadfde37f979bc6a047fa007
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pickle from sklearn.ensemble import RandomForestClassifier from base_shallow_classifier import BaseShallowClassifier class RFClassifier(BaseShallowClassifier): ''' Image classification using random forest classifier (RFC). Can reach 87.82% accuracy on test set of FashionM...
31.105263
75
0.674563
1,619
0.913142
0
0
0
0
0
0
773
0.435984
a10f0a0a33562a06ed9b546b2f53186a7237246b
2,387
py
Python
setup.py
mehta-lab/recOrder
67f2edb9ab13114dfe41d57e465ae24f961b0004
[ "Unlicense" ]
2
2022-01-19T21:13:32.000Z
2022-02-24T19:40:24.000Z
setup.py
mehta-lab/recOrder
67f2edb9ab13114dfe41d57e465ae24f961b0004
[ "Unlicense" ]
55
2021-06-24T18:53:18.000Z
2022-03-30T21:05:14.000Z
setup.py
mehta-lab/recOrder
67f2edb9ab13114dfe41d57e465ae24f961b0004
[ "Unlicense" ]
null
null
null
import os.path as osp from setuptools import setup, find_packages # todo: modify as we decide on versions, names, descriptions. readme MIN_PY_VER = '3.7' DISTNAME = 'recOrder' DESCRIPTION = 'computational microscopy toolkit for label-free imaging' with open("README.md", "r") as fh: LONG_DESCRIPTION = fh.read() ...
33.619718
86
0.6615
0
0
0
0
0
0
0
0
1,123
0.470465
a1102b00cc945569015366b5d33e47090c8e92f5
6,457
py
Python
oscrypto/_openssl/_libssl_ctypes.py
frennkie/oscrypto
24aff3148379b931d9c72ab3b069e537dc2195f8
[ "MIT" ]
1
2020-05-17T06:44:51.000Z
2020-05-17T06:44:51.000Z
oscrypto/_openssl/_libssl_ctypes.py
frennkie/oscrypto
24aff3148379b931d9c72ab3b069e537dc2195f8
[ "MIT" ]
null
null
null
oscrypto/_openssl/_libssl_ctypes.py
frennkie/oscrypto
24aff3148379b931d9c72ab3b069e537dc2195f8
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function import platform import sys from ctypes.util import find_library from ctypes import CDLL, CFUNCTYPE, POINTER, c_void_p, c_char_p, c_int, c_size_t, c_long from .. import _backend_config from .._ffi import FFIEngineError f...
24.093284
119
0.671055
0
0
0
0
0
0
0
0
382
0.059161
a1102cc6df4e46f14ab22665f1a454bf74d422a0
382
py
Python
etl/etl.py
amalshehu/exercism-python
eb469246504fb22463e036a989dc9b44e0a83410
[ "MIT" ]
2
2016-08-25T10:58:44.000Z
2017-11-13T12:58:04.000Z
etl/etl.py
amalshehu/exercism-python
eb469246504fb22463e036a989dc9b44e0a83410
[ "MIT" ]
1
2016-08-25T10:59:23.000Z
2016-08-25T12:20:19.000Z
etl/etl.py
amalshehu/exercism-python
eb469246504fb22463e036a989dc9b44e0a83410
[ "MIT" ]
null
null
null
# File: etl.py # Purpose: To do the `Transform` step of an Extract-Transform-Load. # Programmer: Amal Shehu # Course: Exercism # Date: Thursday 22 September 2016, 03:40 PM def transform(words): new_words = dict() for point, letters in words.items(): for letter in letters: ...
27.285714
71
0.63089
0
0
0
0
0
0
0
0
191
0.5
a11034c8715f1c4364caa1c40989aaba6b81cecc
2,983
py
Python
codango/account/api.py
NdagiStanley/silver-happiness
67fb6dd4047c603a84276f88a021d4489cf3b41e
[ "MIT" ]
2
2019-10-17T01:03:12.000Z
2021-11-24T07:43:14.000Z
codango/account/api.py
NdagiStanley/silver-happiness
67fb6dd4047c603a84276f88a021d4489cf3b41e
[ "MIT" ]
49
2019-09-05T02:48:04.000Z
2021-06-28T02:29:42.000Z
codango/account/api.py
NdagiStanley/silver-happiness
67fb6dd4047c603a84276f88a021d4489cf3b41e
[ "MIT" ]
1
2021-11-25T10:19:27.000Z
2021-11-25T10:19:27.000Z
import psycopg2 from rest_framework import generics, permissions # from serializers import UserSerializer, UserFollowSerializer, UserSettingsSerializer from serializers import UserSerializer, UserFollowSerializer, UserSettingsSerializer from serializers import AllUsersSerializer, UserRegisterSerializer from userprofil...
31.072917
86
0.706336
2,529
0.847804
0
0
0
0
0
0
832
0.278914
a1105853736e4203adc6fff03b4073278e494bcb
3,597
py
Python
backend/app/apis/v1/resources.py
williamsyb/StockTick
1dd10101d44fa3a0584f849b022fc8254c2e66c7
[ "MIT" ]
2
2020-11-23T13:38:49.000Z
2021-08-17T15:37:04.000Z
backend/app/apis/v1/resources.py
williamsyb/StockTick
1dd10101d44fa3a0584f849b022fc8254c2e66c7
[ "MIT" ]
null
null
null
backend/app/apis/v1/resources.py
williamsyb/StockTick
1dd10101d44fa3a0584f849b022fc8254c2e66c7
[ "MIT" ]
null
null
null
# -*- coding:UTF-8 -*- from flask import Blueprint, current_app, request import pandas as pd from app.protocol import serialize from app.utils import Utils from app.database.crud import db_mgr from app.cache import redis_mgr api_v1 = Blueprint('api_v1', __name__) @api_v1.route('/show_raw_data', methods=['GET']) def ...
38.677419
86
0.659438
0
0
0
0
3,369
0.924787
0
0
906
0.248696
a111862555b1576ad0436f2aab598c4b8d1d29a9
708
py
Python
report/api/hooks.py
Aaron-DH/openstack_sample_project
711a56311806d52b632e4394743bd4bdbacb103a
[ "Apache-2.0" ]
null
null
null
report/api/hooks.py
Aaron-DH/openstack_sample_project
711a56311806d52b632e4394743bd4bdbacb103a
[ "Apache-2.0" ]
null
null
null
report/api/hooks.py
Aaron-DH/openstack_sample_project
711a56311806d52b632e4394743bd4bdbacb103a
[ "Apache-2.0" ]
null
null
null
from oslo_log import log from oslo_config import cfg from report import storage from pecan import hooks LOG = log.getLogger(__name__) class RPCHook(hooks.PecanHook): def __init__(self, rcp_client): self._rpc_client = rcp_client def before(self, state): state.request.rpc_client = self._rpc_cl...
25.285714
78
0.69209
567
0.800847
0
0
0
0
0
0
55
0.077684
a1119377e73c71b58b46883ef014d640d56156e5
117
py
Python
garageofcode/semantic/main.py
tpi12jwe/garageofcode
3cfaf01f6d77130bb354887e6ed9921c791db849
[ "MIT" ]
2
2020-02-11T10:32:06.000Z
2020-02-11T17:00:47.000Z
garageofcode/semantic/main.py
tpi12jwe/garageofcode
3cfaf01f6d77130bb354887e6ed9921c791db849
[ "MIT" ]
null
null
null
garageofcode/semantic/main.py
tpi12jwe/garageofcode
3cfaf01f6d77130bb354887e6ed9921c791db849
[ "MIT" ]
null
null
null
def have(subj, obj): subj.add(obj) def change(subj, obj, state): pass if __name__ == '__main__': main()
14.625
29
0.606838
0
0
0
0
0
0
0
0
10
0.08547
a111d2ca236c2a067c9980e65999cf841b19dd21
548
py
Python
scholariumat/products/migrations/0012_auto_20181125_1221.py
valuehack/scholariumat
47c13f3429b95b9ad5ca59b45cf971895260bb5c
[ "MIT" ]
null
null
null
scholariumat/products/migrations/0012_auto_20181125_1221.py
valuehack/scholariumat
47c13f3429b95b9ad5ca59b45cf971895260bb5c
[ "MIT" ]
232
2018-06-30T11:40:52.000Z
2020-04-29T23:55:41.000Z
scholariumat/products/migrations/0012_auto_20181125_1221.py
valuehack/scholariumat
47c13f3429b95b9ad5ca59b45cf971895260bb5c
[ "MIT" ]
3
2018-05-31T12:57:03.000Z
2020-02-27T16:25:44.000Z
# Generated by Django 2.0.9 on 2018-11-25 11:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0011_auto_20181123_1446'), ] operations = [ migrations.RenameField( model_name='item', old_name='amount'...
22.833333
66
0.578467
455
0.830292
0
0
0
0
0
0
131
0.239051
a113c8e85fbfe0a4e5ea8110782dae46220ba93c
262
py
Python
setup.py
geickelb/hsip441_neiss_python
0ad88a664b369ea058b28d79ed98d02ff8418aad
[ "MIT" ]
null
null
null
setup.py
geickelb/hsip441_neiss_python
0ad88a664b369ea058b28d79ed98d02ff8418aad
[ "MIT" ]
null
null
null
setup.py
geickelb/hsip441_neiss_python
0ad88a664b369ea058b28d79ed98d02ff8418aad
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.0.1', description='compiling code for HSIP441 using python to explore the Neiss database', author='Garrett Eickelberg', license='MIT', )
23.818182
88
0.70229
0
0
0
0
0
0
0
0
108
0.412214
a114b71d6021e2552fc945ad4a1ac94774faab77
189
py
Python
test.py
j178/spotlight
1e65ff35826fee9a9d522b502cd781e86fbed01f
[ "WTFPL" ]
5
2016-12-06T04:03:16.000Z
2020-09-24T14:08:49.000Z
test.py
j178/spotlight
1e65ff35826fee9a9d522b502cd781e86fbed01f
[ "WTFPL" ]
1
2020-05-04T02:19:09.000Z
2020-06-10T08:44:11.000Z
test.py
j178/spotlight
1e65ff35826fee9a9d522b502cd781e86fbed01f
[ "WTFPL" ]
null
null
null
from weibo import WeiboClient from weibo.watchyou import fetch_replies for r in fetch_replies(): # fetch_replies所依赖的weibo全局变量是在watchyou模块中存在的, 函数无法访问到这个模块中的全局变量 print(r['text'])
31.5
91
0.793651
0
0
0
0
0
0
0
0
136
0.533333
a114be84d6fa960cedd6c469ba949d63204c8275
8,181
py
Python
tests/unit/test_db_config_options.py
feddovanede/cf-mendix-buildpack-heapdump
584678bfab90a2839cfbac4126b08d6359885f91
[ "Apache-2.0" ]
null
null
null
tests/unit/test_db_config_options.py
feddovanede/cf-mendix-buildpack-heapdump
584678bfab90a2839cfbac4126b08d6359885f91
[ "Apache-2.0" ]
null
null
null
tests/unit/test_db_config_options.py
feddovanede/cf-mendix-buildpack-heapdump
584678bfab90a2839cfbac4126b08d6359885f91
[ "Apache-2.0" ]
null
null
null
import datetime import json import os from unittest import TestCase, mock from urllib.parse import parse_qs, urlencode, urlparse, urlunparse from buildpack.infrastructure.database import ( UrlDatabaseConfiguration, get_config, ) from cryptography import x509 from cryptography.hazmat.primitives import hashes, s...
33.391837
174
0.620218
7,555
0.923481
0
0
3,697
0.451901
0
0
1,990
0.243247
a11510f716edaa915f408fd4bc5559303960aa62
1,770
py
Python
Computer & Information Science Core courses/2168/A*/graph.py
Vaporjawn/Temple-University-Computer-Science-Resources
8d54db3a85a1baa8ba344efc90593b440eb6d585
[ "MIT" ]
1
2020-07-28T16:18:38.000Z
2020-07-28T16:18:38.000Z
Computer & Information Science Core courses/2168/A*/graph.py
Vaporjawn/Temple-University-Computer-Science-Resources
8d54db3a85a1baa8ba344efc90593b440eb6d585
[ "MIT" ]
4
2020-07-15T06:40:55.000Z
2020-08-13T16:01:30.000Z
Computer & Information Science Core courses/2168/A*/graph.py
Vaporjawn/Temple-University-Computer-Science-Resources
8d54db3a85a1baa8ba344efc90593b440eb6d585
[ "MIT" ]
null
null
null
"""Implement the graph to traverse.""" from collections import Counter class Node: """Node class.""" def __init__(self, value, x, y): """Initialize node.""" self.x = x self.y = y self.value = value self.neighbors = [] def add_neighbor(self, n, weight): ""...
28.095238
77
0.564972
1,692
0.955932
0
0
0
0
0
0
541
0.30565
a115499f10a5a3acf2f24d7e3dd1a76b57b5b137
245
py
Python
Projects/Python_Python2_json/main.py
LiuOcean/luban_examples
75d5fd7c1b15d79efc0ebbac21a74bf050aed1fb
[ "MIT" ]
44
2021-05-06T06:16:55.000Z
2022-03-30T06:27:25.000Z
Projects/Python_Python2_json/main.py
HFX-93/luban_examples
5b90e392d404950d12ff803a186b26bdea5e0292
[ "MIT" ]
1
2021-07-25T16:35:32.000Z
2021-08-23T04:59:49.000Z
Projects/Python_Python2_json/main.py
HFX-93/luban_examples
5b90e392d404950d12ff803a186b26bdea5e0292
[ "MIT" ]
14
2021-06-09T10:38:59.000Z
2022-03-30T06:27:24.000Z
import json import gen.Types def loader(f): return json.load(open('../GenerateDatas/json/' + f + ".json", 'r'), encoding="utf-8") tables = gen.Types.Tables(loader) print(tables) r = tables.TbFullTypes.getDataList()[0].__dict__ print(r)
18.846154
89
0.685714
0
0
0
0
0
0
0
0
41
0.167347
a115806c8d50f7e45e72b3d28a59a48fb80d6f6e
10,255
py
Python
rplugin/python3/defx/base/kind.py
kazukazuinaina/defx.nvim
376b2a91703b6bf19283e58bf1e7b5ce5baae5af
[ "MIT" ]
null
null
null
rplugin/python3/defx/base/kind.py
kazukazuinaina/defx.nvim
376b2a91703b6bf19283e58bf1e7b5ce5baae5af
[ "MIT" ]
null
null
null
rplugin/python3/defx/base/kind.py
kazukazuinaina/defx.nvim
376b2a91703b6bf19283e58bf1e7b5ce5baae5af
[ "MIT" ]
null
null
null
# ============================================================================ # FILE: kind.py # AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com> # License: MIT license # ============================================================================ import json import typing from pathlib import Path from defx.acti...
33.295455
78
0.660263
195
0.019015
0
0
8,910
0.868844
0
0
1,319
0.12862
a11589146f3d49dce0f6bfd0ac0a0e58ecd53f6f
3,659
py
Python
shopify_listener/dispatcher.py
smallwat3r/shopify-webhook-manager
1161f070470bc2d2f81c98222b67300bc616121f
[ "MIT" ]
6
2019-08-13T18:12:37.000Z
2021-05-26T17:55:58.000Z
shopify_listener/dispatcher.py
smallwat3r/shopify-webhook-manager
1161f070470bc2d2f81c98222b67300bc616121f
[ "MIT" ]
null
null
null
shopify_listener/dispatcher.py
smallwat3r/shopify-webhook-manager
1161f070470bc2d2f81c98222b67300bc616121f
[ "MIT" ]
4
2019-10-16T06:14:35.000Z
2021-06-03T06:25:26.000Z
# -*- coding: utf-8 -*- # @Author: Matthieu Petiteau # @Date: 2019-04-26 21:01:07 # @Last Modified by: Matthieu Petiteau # @Last Modified time: 2019-04-26 21:52:46 """Dispatch webhook event to specific actions.""" import json class Dispatcher: """Dispatch the different webhook events to the related functions...
18.20398
70
0.622301
3,425
0.936048
0
0
151
0.041268
0
0
539
0.147308
a115d6f4a8b34eb7bb70f84e6420459fec3a66db
790
py
Python
open_spiel/higc/bots/test_bot_fail_after_few_actions.py
higcompetition/tournament
b61688f7fad6d33a6af8097c75cb0bf0bc84faf2
[ "Apache-2.0" ]
4
2021-07-22T08:01:26.000Z
2021-12-30T07:07:23.000Z
open_spiel/higc/bots/test_bot_fail_after_few_actions.py
higcompetition/tournament
b61688f7fad6d33a6af8097c75cb0bf0bc84faf2
[ "Apache-2.0" ]
1
2021-07-22T16:42:31.000Z
2021-07-23T09:46:22.000Z
open_spiel/higc/bots/test_bot_fail_after_few_actions.py
higcompetition/tournament
b61688f7fad6d33a6af8097c75cb0bf0bc84faf2
[ "Apache-2.0" ]
3
2021-07-21T19:02:56.000Z
2021-07-30T17:40:39.000Z
# A bot that picks the first action from the list for the first two rounds, # and then exists with an exception. # Used only for tests. game_name = input() play_as = int(input()) print("ready") while True: print("start") num_actions = 0 while True: message = input() if message == "tourname...
26.333333
75
0.572152
0
0
0
0
0
0
0
0
216
0.273418
a116cfc21ab7921ef0308c2ab54fca839bd22800
2,027
py
Python
python/hsfs/util.py
berthoug/feature-store-api
85c23ae08c7de65acd79a3b528fa72c07e52a272
[ "Apache-2.0" ]
null
null
null
python/hsfs/util.py
berthoug/feature-store-api
85c23ae08c7de65acd79a3b528fa72c07e52a272
[ "Apache-2.0" ]
null
null
null
python/hsfs/util.py
berthoug/feature-store-api
85c23ae08c7de65acd79a3b528fa72c07e52a272
[ "Apache-2.0" ]
null
null
null
# # Copyright 2020 Logical Clocks AB # # 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 ag...
27.026667
76
0.700543
261
0.128762
0
0
0
0
0
0
758
0.373952
a11724652d428320ddd7198c24a9514a2d3d1923
1,720
py
Python
src/map_generation/map_parser.py
tbvanderwoude/matching-epea-star
13d8716f932bb98398fe8e190e668ee65bcf0f34
[ "MIT" ]
1
2021-08-23T18:00:13.000Z
2021-08-23T18:00:13.000Z
src/map_generation/map_parser.py
tbvanderwoude/matching-epea-star
13d8716f932bb98398fe8e190e668ee65bcf0f34
[ "MIT" ]
null
null
null
src/map_generation/map_parser.py
tbvanderwoude/matching-epea-star
13d8716f932bb98398fe8e190e668ee65bcf0f34
[ "MIT" ]
1
2021-08-24T08:16:31.000Z
2021-08-24T08:16:31.000Z
import os.path from typing import List, Tuple from mapfmclient import MarkedLocation, Problem class MapParser: def __init__(self, root_folder: str): self.root_folder = root_folder def parse_map(self, name: str) -> Problem: with open(os.path.join(self.root_folder, name)) as file: ...
31.851852
87
0.55
1,622
0.943023
0
0
0
0
0
0
187
0.108721
a118bed580cb119e113df0f842732da313be42d4
9,803
py
Python
library/oci_api_key.py
AndreyAdnreyev/oci-ansible-modules
accd6e482ff1e8c2ddd6e85958dfe12cd6114383
[ "Apache-2.0" ]
null
null
null
library/oci_api_key.py
AndreyAdnreyev/oci-ansible-modules
accd6e482ff1e8c2ddd6e85958dfe12cd6114383
[ "Apache-2.0" ]
null
null
null
library/oci_api_key.py
AndreyAdnreyev/oci-ansible-modules
accd6e482ff1e8c2ddd6e85958dfe12cd6114383
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2018, 2019, Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for ...
36.040441
124
0.65531
0
0
0
0
0
0
0
0
4,585
0.467714
a118ceb32497416f45bc3e52e40410e78c21e051
836
py
Python
python_modules/dagster/dagster/core/types/builtin_enum.py
jake-billings/dagster
7a1548a1f246c48189f3d8109e831b744bceb7d4
[ "Apache-2.0" ]
1
2019-07-15T17:34:04.000Z
2019-07-15T17:34:04.000Z
python_modules/dagster/dagster/core/types/builtin_enum.py
jake-billings/dagster
7a1548a1f246c48189f3d8109e831b744bceb7d4
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/types/builtin_enum.py
jake-billings/dagster
7a1548a1f246c48189f3d8109e831b744bceb7d4
[ "Apache-2.0" ]
null
null
null
import sys if sys.version_info.major >= 3: import typing class BuiltinEnum: ANY = typing.Any BOOL = typing.NewType('Bool', bool) FLOAT = typing.NewType('Float', float) INT = typing.NewType('Int', int) PATH = typing.NewType('Path', str) STRING = typing.NewType('...
22.594595
70
0.551435
728
0.870813
0
0
205
0.245215
0
0
87
0.104067
a11a0df896228fb34c45a26a79b430c991c408ae
1,173
py
Python
sallybrowse/extensions/document/__init__.py
XiuyuanLu/browse
ee5ca57e54fe492d5b109b7cae87d1c8a45dbe25
[ "MIT" ]
null
null
null
sallybrowse/extensions/document/__init__.py
XiuyuanLu/browse
ee5ca57e54fe492d5b109b7cae87d1c8a45dbe25
[ "MIT" ]
null
null
null
sallybrowse/extensions/document/__init__.py
XiuyuanLu/browse
ee5ca57e54fe492d5b109b7cae87d1c8a45dbe25
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys, os, re, html from flask import request, Response from sallybrowse.extensions import BaseExtension from subprocess import Popen, PIPE class Extension(BaseExtension): PATTERN = re.compile(r".*\.(pdf|xlsx|xls|docx|doc|ods|odt|xlt|ppt|pptx|odp|otp|ltx)$", re.IGNORECASE) PRIORITY = 100...
18.919355
102
0.597613
1,002
0.85422
0
0
0
0
0
0
359
0.306053
a11c3d72105134f3cd78ad0e461a7ff2f92aa01d
4,713
py
Python
Tests/testGalaxy.py
elsiehupp/traveller_pyroute
32a43665910894896b807576125acee56ef02797
[ "MIT" ]
12
2017-02-09T08:58:16.000Z
2021-09-04T22:12:57.000Z
Tests/testGalaxy.py
elsiehupp/traveller_pyroute
32a43665910894896b807576125acee56ef02797
[ "MIT" ]
23
2017-07-14T05:04:30.000Z
2022-03-27T02:20:06.000Z
Tests/testGalaxy.py
elsiehupp/traveller_pyroute
32a43665910894896b807576125acee56ef02797
[ "MIT" ]
4
2016-12-31T06:23:47.000Z
2022-03-03T19:36:43.000Z
""" Created on Nov 30, 2021 @author: CyberiaResurrection """ import unittest import re import sys sys.path.append('../PyRoute') from Galaxy import Galaxy from Galaxy import Sector class testGalaxy(unittest.TestCase): """ A very simple, barebones test to check that Verge and Reft end up in their correct r...
46.205882
136
0.70401
4,526
0.960323
0
0
0
0
0
0
1,479
0.313813
a11c870ae3ef5f8dd838f6f8d4edc0a12f86fa5e
188
py
Python
py_boot/test.py
davidcawork/Investigacion
ed25678cbab26e30370e9e2d07b84029bbad4d0b
[ "Apache-2.0" ]
null
null
null
py_boot/test.py
davidcawork/Investigacion
ed25678cbab26e30370e9e2d07b84029bbad4d0b
[ "Apache-2.0" ]
null
null
null
py_boot/test.py
davidcawork/Investigacion
ed25678cbab26e30370e9e2d07b84029bbad4d0b
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time driver = webdriver.Firefox() driver.get('https://www.google.com') time.sleep(60) driver.close()
20.888889
47
0.787234
0
0
0
0
0
0
0
0
24
0.12766
a11d080c34ade0f2e6de40e4b89c652d910ddf38
1,240
py
Python
tests/test_dlms_state.py
Layty/dlms-cosem
95b67054a1dfb928e960547b0246b7b6794f0594
[ "MIT" ]
1
2021-08-20T09:19:07.000Z
2021-08-20T09:19:07.000Z
tests/test_dlms_state.py
Layty/dlms-cosem
95b67054a1dfb928e960547b0246b7b6794f0594
[ "MIT" ]
null
null
null
tests/test_dlms_state.py
Layty/dlms-cosem
95b67054a1dfb928e960547b0246b7b6794f0594
[ "MIT" ]
null
null
null
import pytest from dlms_cosem import enumerations, state from dlms_cosem.exceptions import LocalDlmsProtocolError from dlms_cosem.protocol import acse from dlms_cosem.protocol.acse import UserInformation from dlms_cosem.protocol.xdlms import Conformance, InitiateRequestApdu def test_non_aarq_on_initial_raises_protoc...
32.631579
84
0.765323
0
0
0
0
0
0
0
0
0
0
a11ebc5157787a925779b80587bf0be3060a8389
705
py
Python
sets-add.py
limeonion/Python-Programming
90cbbbd7651fc04669e21be2adec02ba655868cf
[ "MIT" ]
null
null
null
sets-add.py
limeonion/Python-Programming
90cbbbd7651fc04669e21be2adec02ba655868cf
[ "MIT" ]
null
null
null
sets-add.py
limeonion/Python-Programming
90cbbbd7651fc04669e21be2adec02ba655868cf
[ "MIT" ]
null
null
null
''' f we want to add a single element to an existing set, we can use the .add() operation. It adds the element to the set and returns 'None'. Example >>> s = set('HackerRank') >>> s.add('H') >>> print s set(['a', 'c', 'e', 'H', 'k', 'n', 'r', 'R']) >>> print s.add('HackerRank') None >>> print s set(['a', 'c', 'e', '...
22.741935
87
0.635461
0
0
0
0
0
0
0
0
600
0.851064
a120a8bf6158dc27ba03b14f3d39ab89d4fa4e32
2,331
py
Python
lesson_08/lesson_08_06.py
amindmobile/geekbrains-python-002
4bc2f7af755d00e73ddc48f1138830cb78e87034
[ "MIT" ]
null
null
null
lesson_08/lesson_08_06.py
amindmobile/geekbrains-python-002
4bc2f7af755d00e73ddc48f1138830cb78e87034
[ "MIT" ]
null
null
null
lesson_08/lesson_08_06.py
amindmobile/geekbrains-python-002
4bc2f7af755d00e73ddc48f1138830cb78e87034
[ "MIT" ]
null
null
null
# 6. Продолжить работу над вторым заданием. Реализуйте механизм валидации вводимых пользователем данных. Например, для # указания количества принтеров, отправленных на склад, нельзя использовать строковый тип данных. # Подсказка: постарайтесь по возможности реализовать в проекте «Склад оргтехники» максимум возможностей...
33.3
118
0.637066
1,940
0.683099
0
0
0
0
0
0
1,437
0.505986
a120f8eceb39d652a13f796940ef296a98d1bfaa
1,212
py
Python
epicteller/core/dao/credential.py
KawashiroNitori/epicteller
264b11e7e6eb58beb0f67ecbbb811d268a533f7a
[ "MIT" ]
null
null
null
epicteller/core/dao/credential.py
KawashiroNitori/epicteller
264b11e7e6eb58beb0f67ecbbb811d268a533f7a
[ "MIT" ]
null
null
null
epicteller/core/dao/credential.py
KawashiroNitori/epicteller
264b11e7e6eb58beb0f67ecbbb811d268a533f7a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from typing import Optional from epicteller.core import redis from epicteller.core.model.credential import Credential class CredentialDAO: r = redis.pool @classmethod async def set_access_credential(cls, credential: Credential): await cls.r.pool.set(...
32.756757
106
0.679868
1,044
0.861386
0
0
975
0.804455
890
0.734323
198
0.163366
a1219febbcf1d75638bb20d8c543ddf6a4896780
1,101
py
Python
models.py
drigobon/prep.gg
5db0e5eb99acd7bd41d7546629d6f1b53db2f46e
[ "MIT" ]
null
null
null
models.py
drigobon/prep.gg
5db0e5eb99acd7bd41d7546629d6f1b53db2f46e
[ "MIT" ]
null
null
null
models.py
drigobon/prep.gg
5db0e5eb99acd7bd41d7546629d6f1b53db2f46e
[ "MIT" ]
null
null
null
class LeagueGame: def __init__(self, data): self.patch = data['patch'] self.win = data['win'] self.side = data['side'] self.opp = data['opp'] self.bans = data['bans'] self.vs_bans = data['vs_bans'] self.picks = data['picks'] self.vs_picks = data['vs_picks'] self.players = data['players'] class Lea...
22.9375
46
0.643052
1,086
0.986376
0
0
0
0
0
0
208
0.188919
a121e58fcc354bb0486144293e6dc4511324fbba
1,046
py
Python
option.py
lotress/new-DL
adc9f6f94538088d3d70327d9c7bb089ef7e1638
[ "MIT" ]
null
null
null
option.py
lotress/new-DL
adc9f6f94538088d3d70327d9c7bb089ef7e1638
[ "MIT" ]
null
null
null
option.py
lotress/new-DL
adc9f6f94538088d3d70327d9c7bb089ef7e1638
[ "MIT" ]
null
null
null
from common import * from model import vocab option = dict(edim=256, epochs=1.5, maxgrad=1., learningrate=1e-3, sdt_decay_step=1, batchsize=8, vocabsize=vocab, fp16=2, saveInterval=10, logInterval=.4) option['loss'] = lambda opt, model, y, out, *_, rewards=[]: F.cross_entropy(out.transpose(-1, -2), y, reduction='none')...
69.733333
155
0.686424
0
0
0
0
0
0
0
0
266
0.254302
a122487d9193d1e9db5e1e4904c5779cf5ab0b4a
1,713
py
Python
Release/cyberbot-micropython/Examples/Terminal_DA_AD.py
parallaxinc/cyberbot
f7c4d355ee0310dcfef81027802cc41ac6ce90e1
[ "MIT" ]
4
2019-03-18T20:49:41.000Z
2022-03-24T01:44:36.000Z
Release/cyberbot-micropython/Examples/Terminal_DA_AD.py
parallaxinc/cyberbot
f7c4d355ee0310dcfef81027802cc41ac6ce90e1
[ "MIT" ]
5
2019-06-07T18:09:27.000Z
2021-04-08T17:16:55.000Z
Release/cyberbot-micropython/Examples/Terminal_DA_AD.py
parallaxinc/cyberbot
f7c4d355ee0310dcfef81027802cc41ac6ce90e1
[ "MIT" ]
null
null
null
# Terminal_DA_AD.py # Circuit # D/A0---A/D0, D/A1---A/D1, # pot A---3.3V, potB---GND, pot wiper---A/D2 # Procedure # Run, then open REPL and then CTRL + D # Twist pot input while program runs to see ad2 vary # Notes # micro:bit ground is 0.4 V below cyber:bot board ground # micro:bit 3.3 V = 3.245 V WRT ...
32.320755
92
0.565674
0
0
0
0
0
0
0
0
1,354
0.790426
a122b64cab542d8bb7f50552627ee57f6ed6232b
4,781
py
Python
cinebot_mini_render_server/animation_routes.py
cheng-chi/cinebot_mini
708a7c80d2f203dfe3b52bf84d9cbafac7673d27
[ "MIT" ]
null
null
null
cinebot_mini_render_server/animation_routes.py
cheng-chi/cinebot_mini
708a7c80d2f203dfe3b52bf84d9cbafac7673d27
[ "MIT" ]
null
null
null
cinebot_mini_render_server/animation_routes.py
cheng-chi/cinebot_mini
708a7c80d2f203dfe3b52bf84d9cbafac7673d27
[ "MIT" ]
null
null
null
import bpy from aiohttp import web import numpy as np from mathutils import Matrix, Vector import asyncio from cinebot_mini_render_server.blender_timer_executor import EXECUTOR routes = web.RouteTableDef() def delete_animation_helper(obj): if not obj.animation_data: return False if not obj.animation_...
31.873333
113
0.665551
0
0
0
0
1,758
0.367706
1,611
0.336959
592
0.123823
a124c13c10af7bc999fd4983d83bef5b21b878ff
64
py
Python
notebooks/_solutions/13-raster-processing32.py
jorisvandenbossche/DS-python-geospatial
893a12edc5c203a75815f6dcb5f1e18c577c8cd5
[ "BSD-3-Clause" ]
58
2020-10-09T10:10:59.000Z
2022-03-07T14:58:07.000Z
notebooks/_solutions/13-raster-processing32.py
jorisvandenbossche/DS-python-geospatial
893a12edc5c203a75815f6dcb5f1e18c577c8cd5
[ "BSD-3-Clause" ]
24
2020-09-30T19:57:14.000Z
2021-10-05T07:21:09.000Z
notebooks/_solutions/13-raster-processing32.py
jorisvandenbossche/DS-python-geospatial
893a12edc5c203a75815f6dcb5f1e18c577c8cd5
[ "BSD-3-Clause" ]
19
2020-10-05T09:32:18.000Z
2022-03-20T00:09:14.000Z
roads_subset = roads[roads["frc_omschrijving"].isin(road_types)]
64
64
0.8125
0
0
0
0
0
0
0
0
18
0.28125
a124d29567d8f21e6a4afe3634fc6ada1ceff28c
4,176
py
Python
pade/tests/v1/script_2_revisado_local.py
AndreCrescenzo/multi-agents
1c76595aab2fd37cc2de0d44a3b3daadcfe6f4f3
[ "MIT" ]
72
2018-10-02T21:02:36.000Z
2022-02-19T11:24:10.000Z
pade/tests/v1/script_2_revisado_local.py
AndreCrescenzo/multi-agents
1c76595aab2fd37cc2de0d44a3b3daadcfe6f4f3
[ "MIT" ]
47
2018-10-24T14:57:02.000Z
2022-03-16T00:09:31.000Z
pade/tests/v1/script_2_revisado_local.py
AndreCrescenzo/multi-agents
1c76595aab2fd37cc2de0d44a3b3daadcfe6f4f3
[ "MIT" ]
36
2018-06-03T11:29:27.000Z
2022-03-15T23:53:19.000Z
# -*- encoding: utf-8 -*- from utils import display_message, set_ams, start_loop, config_loop #config_loop(gui=True) from agent import Agent from messages import ACLMessage from aid import AID from protocols import FipaContractNetProtocol from filters import Filter from pickle import loads, dumps from time import slee...
41.76
127
0.58477
1,935
0.463362
0
0
0
0
0
0
1,261
0.301964
a1251c76fb85b2d7c8033d0baea28470e0f14346
9,320
py
Python
beta/dump/pbasis.py
addschile/pymctdh
20a93ce543526de1919757defceef16f9005f423
[ "MIT" ]
null
null
null
beta/dump/pbasis.py
addschile/pymctdh
20a93ce543526de1919757defceef16f9005f423
[ "MIT" ]
null
null
null
beta/dump/pbasis.py
addschile/pymctdh
20a93ce543526de1919757defceef16f9005f423
[ "MIT" ]
null
null
null
from copy import deepcopy from numba import jit,njit import numpy as np import pymctdh.opfactory as opfactory from pymctdh.cy.sparsemat import CSRmat#,matvec @njit(fastmath=True) def matvec(nrows,IA,JA,data,vec,outvec): """ """ d_ind = 0 for i in range(nrows): ncol = IA[i+1]-IA[i] for...
32.932862
83
0.483584
6,042
0.648283
0
0
311
0.033369
0
0
1,967
0.211052
a12707fafb28025c41d88777cd9bef6fd6e1e539
13,018
py
Python
handyrl/envs/kaggle/hungry_geese.py
HantianZheng/HandyRL
2a109faab4745b936e4176e079da4c98dff592e8
[ "MIT" ]
1
2021-07-14T07:57:51.000Z
2021-07-14T07:57:51.000Z
handyrl/envs/kaggle/hungry_geese.py
HantianZheng/HandyRL
2a109faab4745b936e4176e079da4c98dff592e8
[ "MIT" ]
null
null
null
handyrl/envs/kaggle/hungry_geese.py
HantianZheng/HandyRL
2a109faab4745b936e4176e079da4c98dff592e8
[ "MIT" ]
null
null
null
# Copyright (c) 2020 DeNA Co., Ltd. # Licensed under The MIT License [see LICENSE for details] # kaggle_environments licensed under Copyright 2020 Kaggle Inc. and the Apache License, Version 2.0 # (see https://github.com/Kaggle/kaggle-environments/blob/master/LICENSE for details) # wrapper of Hungry Geese environment...
38.40118
130
0.536027
11,009
0.845675
0
0
0
0
0
0
2,758
0.211861
a128f73c987352e7a2b67ff853ae7ba81f0f3c24
198
py
Python
py files/normalization.py
kilarinikhil/ComputerVision
1cb2985f9c5e45bd0763cb676028ea97fce2b27b
[ "Apache-2.0" ]
null
null
null
py files/normalization.py
kilarinikhil/ComputerVision
1cb2985f9c5e45bd0763cb676028ea97fce2b27b
[ "Apache-2.0" ]
null
null
null
py files/normalization.py
kilarinikhil/ComputerVision
1cb2985f9c5e45bd0763cb676028ea97fce2b27b
[ "Apache-2.0" ]
1
2020-06-04T18:39:00.000Z
2020-06-04T18:39:00.000Z
import numpy as np def normalize(image): mean = np.mean(image) meanSubtractedImage = image - mean return np.divide(meanSubtractedImage,np.power(np.sum(np.power(meanSubtractedImage,2)),0.5))
22
92
0.752525
0
0
0
0
0
0
0
0
0
0