hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
e3aa1ffc1e14dfe4f9fbcf3c2bfe1900027180dd
56,728
py
Python
yt/visualization/eps_writer.py
lconaboy/yt
d97c3cf6d7911cd12b8337784d3232068ebc59f6
[ "BSD-3-Clause-Clear" ]
360
2017-04-24T05:06:04.000Z
2022-03-31T10:47:07.000Z
yt/visualization/eps_writer.py
chrishavlin/yt
023680e3a7bd1000d601727e02a55e72b4cbdc75
[ "BSD-3-Clause-Clear" ]
2,077
2017-04-20T20:36:07.000Z
2022-03-31T16:39:43.000Z
yt/visualization/eps_writer.py
chrishavlin/yt
023680e3a7bd1000d601727e02a55e72b4cbdc75
[ "BSD-3-Clause-Clear" ]
257
2017-04-19T20:52:28.000Z
2022-03-29T12:23:52.000Z
import os import numpy as np import pyx from matplotlib import cm, pyplot as plt from yt.config import ytcfg from yt.units.unit_object import Unit # type: ignore from yt.units.yt_array import YTQuantity from yt.utilities.logger import ytLogger as mylog from .plot_window import PlotWindow from .profile_plotter impor...
34.759804
88
0.475814
9f772c646eaf348dd36cf650ab2bab85e42a5b79
19,646
py
Python
zhmcclient/_console.py
vkpro-forks/python-zhmcclient
eab2dca37cb417d03411450dabf72805214b5ca0
[ "Apache-2.0" ]
null
null
null
zhmcclient/_console.py
vkpro-forks/python-zhmcclient
eab2dca37cb417d03411450dabf72805214b5ca0
[ "Apache-2.0" ]
null
null
null
zhmcclient/_console.py
vkpro-forks/python-zhmcclient
eab2dca37cb417d03411450dabf72805214b5ca0
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 IBM Corp. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
34.64903
79
0.632342
12659b7fbb0acbc33e55b72a834ea3bae7fb1eff
19,887
py
Python
lib/Evaluator.py
francisyyan/Object-Detection-Metrics
cd501f5ff66a979eb301f70c943b076cb48d36fe
[ "MIT" ]
null
null
null
lib/Evaluator.py
francisyyan/Object-Detection-Metrics
cd501f5ff66a979eb301f70c943b076cb48d36fe
[ "MIT" ]
null
null
null
lib/Evaluator.py
francisyyan/Object-Detection-Metrics
cd501f5ff66a979eb301f70c943b076cb48d36fe
[ "MIT" ]
null
null
null
########################################################################################### # # # Evaluator class: Implements the most popular metrics for object detection # # ...
45.928406
103
0.515412
58ff15debe53f2df89932b6409623f51245baab3
1,616
py
Python
closed/Nettrix/configs/bert/__init__.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
12
2021-09-23T08:05:57.000Z
2022-03-21T03:52:11.000Z
closed/Nettrix/configs/bert/__init__.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
11
2021-09-23T20:34:06.000Z
2022-01-22T07:58:02.000Z
closed/Nettrix/configs/bert/__init__.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
16
2021-09-23T20:26:38.000Z
2022-03-09T12:59:56.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
35.911111
187
0.767946
2ac763a5cb52dafaa23c4d982f846b7f869c60e6
3,544
py
Python
Policy-Gradient-Methods/ddpg/ddpg.py
pnnayyeri/Reinforcement-learning
45d596b69075999fedfa64bacafbe144eafddb0a
[ "MIT" ]
null
null
null
Policy-Gradient-Methods/ddpg/ddpg.py
pnnayyeri/Reinforcement-learning
45d596b69075999fedfa64bacafbe144eafddb0a
[ "MIT" ]
null
null
null
Policy-Gradient-Methods/ddpg/ddpg.py
pnnayyeri/Reinforcement-learning
45d596b69075999fedfa64bacafbe144eafddb0a
[ "MIT" ]
null
null
null
import torch import torch.optim as optim import torch.autograd as autograd import torch.nn.functional as F from models import Critic, Actor from common.replay_buffers import BasicBuffer from common.noise import OUNoise class DDPGAgent: def __init__(self, env, gamma, tau, buffer_maxlen, critic_learning_rate,...
42.698795
112
0.674097
de24c11d57e2b37b114ab469f6d3a810147b1cb2
7,220
py
Python
markovchain/text/markov.py
akx/markovchain
9981ef327e70ba3e42f1a6c926f1252b47c29b48
[ "MIT" ]
16
2017-10-28T10:06:51.000Z
2021-06-05T15:38:34.000Z
markovchain/text/markov.py
santhoshtr/markovchain
daf7273d15826b2555f92026ce1a999fb5906e37
[ "MIT" ]
1
2019-06-07T09:29:00.000Z
2019-06-07T19:29:45.000Z
markovchain/text/markov.py
santhoshtr/markovchain
daf7273d15826b2555f92026ce1a999fb5906e37
[ "MIT" ]
6
2017-11-06T16:03:26.000Z
2021-04-02T20:56:30.000Z
import random from itertools import chain, islice, cycle from .formatter import FormatterBase, Formatter from .rank import Rank, Const from .scanner import RegExpScanner from .util import get_words, ReplyMode from ..parser import Parser from ..base import Markov from ..util import load, state_size_dataset class Mark...
29.349593
79
0.518698
061e33791d8ce23b601c1c135990721e8c026a2c
21,316
py
Python
tensorflow_probability/python/math/generic_test.py
mayou36/probability
f185c852146894af6dc02223020413bf26ecdd5c
[ "Apache-2.0" ]
1
2020-08-28T21:01:19.000Z
2020-08-28T21:01:19.000Z
tensorflow_probability/python/math/generic_test.py
mayou36/probability
f185c852146894af6dc02223020413bf26ecdd5c
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/math/generic_test.py
mayou36/probability
f185c852146894af6dc02223020413bf26ecdd5c
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
35.467554
80
0.634734
ff31d0c887cbec385599c95270fa76906b3c56d4
1,349
py
Python
app/core/tests/test_admin.py
andreistefanciprian/recipe-app-api
1143aea709682b7b2cbf18dfcf594bb4c664d9e7
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
andreistefanciprian/recipe-app-api
1143aea709682b7b2cbf18dfcf594bb4c664d9e7
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
andreistefanciprian/recipe-app-api
1143aea709682b7b2cbf18dfcf594bb4c664d9e7
[ "MIT" ]
1
2020-08-24T08:11:40.000Z
2020-08-24T08:11:40.000Z
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from django.test import Client class AdminSiteTests(TestCase): def setUp(self): self.client = Client() self.admin_user = get_user_model().objects.create_superuser( email='ad...
31.372093
68
0.644181
27b6929ee73923bde2348a38373ef441a4ea8869
1,431
py
Python
fobsimbeewareapp/src/fobsimbeewareapp/simulator/storage_cost_analysis.py
akosfenyvesi/fobsim-beeware
584d3b956b019fecb3264e6e631e4c91ec40d678
[ "CC0-1.0" ]
null
null
null
fobsimbeewareapp/src/fobsimbeewareapp/simulator/storage_cost_analysis.py
akosfenyvesi/fobsim-beeware
584d3b956b019fecb3264e6e631e4c91ec40d678
[ "CC0-1.0" ]
null
null
null
fobsimbeewareapp/src/fobsimbeewareapp/simulator/storage_cost_analysis.py
akosfenyvesi/fobsim-beeware
584d3b956b019fecb3264e6e631e4c91ec40d678
[ "CC0-1.0" ]
null
null
null
import os from pandas import DataFrame import time times = [0] sizes = [0] run_time_seconds = 200 def run_storage_analysis(): path = 'temporary' # initialize the size\ total_size = 0 # use the walk() method to navigate through directory tree for dirpath, dirnames, filenames in os.walk(path): ...
29.204082
88
0.60587
0b663ef52572dadf4740f1efdb80883335554c88
23,449
py
Python
setup.py
ContinuumIO/salt
91c0955cfc24b13f07f4917d3d44a9fd9636347a
[ "Apache-2.0" ]
2
2017-09-17T21:10:35.000Z
2019-08-26T03:00:12.000Z
setup.py
ContinuumIO/salt
91c0955cfc24b13f07f4917d3d44a9fd9636347a
[ "Apache-2.0" ]
null
null
null
setup.py
ContinuumIO/salt
91c0955cfc24b13f07f4917d3d44a9fd9636347a
[ "Apache-2.0" ]
3
2021-02-23T08:12:48.000Z
2021-02-23T08:13:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' The setup script for salt ''' # pylint: disable=C0111,E1101,E1103,F0401,W0611 # For Python 2.5. A no-op on 2.6 and above. from __future__ import with_statement import os import sys import glob import urllib2 from datetime import datetime # pylint: disable=E0611 from...
35.8
87
0.541004
c431db2bc743f3ea9529398fd30885a0eda842a7
5,992
py
Python
libraries/botframework-connector/botframework/connector/aio/operations_async/_attachments_operations_async.py
awaemmanuel/botbuilder-python
bcc85a49f1426ccf682205566fd03937ee6d315c
[ "MIT" ]
1
2019-05-31T10:55:15.000Z
2019-05-31T10:55:15.000Z
libraries/botframework-connector/botframework/connector/aio/operations_async/_attachments_operations_async.py
awaemmanuel/botbuilder-python
bcc85a49f1426ccf682205566fd03937ee6d315c
[ "MIT" ]
null
null
null
libraries/botframework-connector/botframework/connector/aio/operations_async/_attachments_operations_async.py
awaemmanuel/botbuilder-python
bcc85a49f1426ccf682205566fd03937ee6d315c
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
39.946667
136
0.663718
fd191cbbb9b06188f4a6453ab1bcd3d6a3fdacf4
1,078
py
Python
108/save1_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
108/save1_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
108/save1_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
from collections import namedtuple BeltStats = namedtuple('BeltStats', 'score ninjas') ninja_belts = {'yellow': BeltStats(50, 11), 'orange': BeltStats(100, 7), 'green': BeltStats(175, 1), 'blue': BeltStats(250, 5)} def get_total_points(belts=ninja_belts): """Calculat...
37.172414
77
0.666976
2a1ad255c748546cc9e9e8055449ac9db846119f
4,913
py
Python
validator.py
spin-org/mds-validator
c57c942a7c4e105fca6b9baef0147a3faa61319d
[ "Apache-2.0" ]
null
null
null
validator.py
spin-org/mds-validator
c57c942a7c4e105fca6b9baef0147a3faa61319d
[ "Apache-2.0" ]
null
null
null
validator.py
spin-org/mds-validator
c57c942a7c4e105fca6b9baef0147a3faa61319d
[ "Apache-2.0" ]
null
null
null
import argparse import jsonschema from jsonschema import Draft4Validator import requests import pandas as pd MDS_SCHEMA_PATH ="https://raw.githubusercontent.com/CityOfLosAngeles/mobility-data-specification/dev/provider/" class Error(Exception): """Base class for exceptions in this module.""" pass class Pro...
37.503817
127
0.622837
243e30cc2539df8bb4c0d10af0606c6f75150d2c
1,898
py
Python
examples/ad_manager/v201908/company_service/get_advertisers.py
ale180192/googleads-python-lib
783a2d40a49956fb16ed73280708f6f9e322aa09
[ "Apache-2.0" ]
1
2019-09-30T06:36:07.000Z
2019-09-30T06:36:07.000Z
examples/ad_manager/v201908/company_service/get_advertisers.py
ale180192/googleads-python-lib
783a2d40a49956fb16ed73280708f6f9e322aa09
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v201908/company_service/get_advertisers.py
ale180192/googleads-python-lib
783a2d40a49956fb16ed73280708f6f9e322aa09
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
37.215686
79
0.71549
c0277bc8eb4d839192f55ef3950a539c5b2446f6
27,281
py
Python
examples/training/huggingface/bert/task_glue/run_glue.py
hexisyztem/lightseq
25265dabaaee42ee9e7b7ec43c8c04fb90292733
[ "Apache-2.0" ]
106
2019-12-06T09:02:58.000Z
2020-09-09T07:12:21.000Z
examples/training/huggingface/bert/task_glue/run_glue.py
hexisyztem/lightseq
25265dabaaee42ee9e7b7ec43c8c04fb90292733
[ "Apache-2.0" ]
null
null
null
examples/training/huggingface/bert/task_glue/run_glue.py
hexisyztem/lightseq
25265dabaaee42ee9e7b7ec43c8c04fb90292733
[ "Apache-2.0" ]
15
2019-12-09T05:44:28.000Z
2020-09-04T03:43:56.000Z
#!/usr/bin/env python # coding=utf-8 # Copyright 2021 The LightSeq Team # Copyright 2020 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
39.028612
119
0.636524
778f83c60231f0fa8d93679f4318de2e5ca05b48
587
py
Python
NSI/Chapitre 3/TP5.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
NSI/Chapitre 3/TP5.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
NSI/Chapitre 3/TP5.py
S-c-r-a-t-c-h-y/coding-projects
cad33aedb72720c3e3a37c7529e55abd3edb291a
[ "MIT" ]
null
null
null
from pile import Pile def evaluer(chaine) : """ Fonction qui évalue le résultat d'une expression en NPI""" pile1 = Pile() nombre = '' for c in chaine : if c in '+-*' : op2 = pile1.depiler() op1 = pile1.depiler() pile1.empiler(eval(f'{op1} {c} {op2}')) ...
23.48
66
0.512777
e743687a1d0d23b26791091f4a0639f0f9b6aa81
2,513
py
Python
symphony/Pod/users.py
mcleo-d/python-symphony
2144566d9291afee2ec1e2f7fb20934d9e8ca85b
[ "Apache-2.0" ]
18
2016-12-06T22:26:25.000Z
2021-09-29T13:54:03.000Z
symphony/Pod/users.py
mcleo-d/python-symphony
2144566d9291afee2ec1e2f7fb20934d9e8ca85b
[ "Apache-2.0" ]
30
2016-11-18T20:51:31.000Z
2018-11-06T14:39:55.000Z
symphony/Pod/users.py
mcleo-d/python-symphony
2144566d9291afee2ec1e2f7fb20934d9e8ca85b
[ "Apache-2.0" ]
13
2017-04-15T15:47:16.000Z
2021-12-16T16:54:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Purpose: pod endpoint Users methods ''' __author__ = 'Matt Joyce' __email__ = 'matt@joyce.nyc' __copyright__ = 'Copyright 2016, Symphony Communication Services LLC' class Users(object): def __init__(self, *args, **kwargs): super(Users, self)...
33.959459
80
0.612813
adfcfbf11ce941bd3a7e049f0dd10040a3369580
6,473
py
Python
python/GafferUI/NodeEditor.py
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
1
2016-07-31T09:55:09.000Z
2016-07-31T09:55:09.000Z
python/GafferUI/NodeEditor.py
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
null
null
null
python/GafferUI/NodeEditor.py
Kthulhu/gaffer
8995d579d07231988abc92c3ac2788c15c8bc75c
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2011-2012, John Haddon. All rights reserved. # Copyright (c) 2011-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted prov...
31.42233
108
0.688861
4ff5f122dd7cc577890190121ac42e9cfb4a45ee
1,487
py
Python
speak.py
garg-akash/SpeechRecognition_HRI
9d64ec22aece386a9ced09a076a04f51c892b8c1
[ "MIT" ]
null
null
null
speak.py
garg-akash/SpeechRecognition_HRI
9d64ec22aece386a9ced09a076a04f51c892b8c1
[ "MIT" ]
null
null
null
speak.py
garg-akash/SpeechRecognition_HRI
9d64ec22aece386a9ced09a076a04f51c892b8c1
[ "MIT" ]
null
null
null
#gtts(google text to speech) is to convert text to audio from gtts import gTTS import spacy import pyaudio import speech_recognition as sr import pyglet import time, os recognition = sr.Recognizer() def init_the_mic(mic): print("Please wait, while microphone is callibrating. It will take 4 seconds.") print("Yo...
30.979167
83
0.691325
dc67fbd8615c7e28eed4f8486214e0260802aae0
590
py
Python
app.py
sindack/jx-python-app-test
369736fba737db835c7c6b5374550c0b5b819e4c
[ "Apache-2.0" ]
null
null
null
app.py
sindack/jx-python-app-test
369736fba737db835c7c6b5374550c0b5b819e4c
[ "Apache-2.0" ]
1
2020-05-05T20:14:46.000Z
2020-05-05T20:16:47.000Z
app.py
sindack/jx-python-app-test
369736fba737db835c7c6b5374550c0b5b819e4c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # hi again from http.server import BaseHTTPRequestHandler, HTTPServer PORT_NUMBER = 8080 class MyHandler(BaseHTTPRequestHandler): def do_GET(self): """Handler for GET requests""" self.send_response(200) self.send_header('Content-type','image/png') self.end_headers() with open...
22.692308
58
0.713559
73bc907b8bfd7249bb0e2c234117394c10c0219b
17,061
py
Python
jupyterlab_nvdashboard/apps/gpu.py
vidosits/jupyterlab-nvdashboard
50cf834b22dc3c6a6ce44997cbfd01aae2bed7e2
[ "BSD-3-Clause" ]
368
2019-10-07T15:32:50.000Z
2022-03-27T03:42:29.000Z
jupyterlab_nvdashboard/apps/gpu.py
vidosits/jupyterlab-nvdashboard
50cf834b22dc3c6a6ce44997cbfd01aae2bed7e2
[ "BSD-3-Clause" ]
82
2019-10-03T02:05:39.000Z
2022-03-17T20:27:16.000Z
jupyterlab_nvdashboard/apps/gpu.py
vidosits/jupyterlab-nvdashboard
50cf834b22dc3c6a6ce44997cbfd01aae2bed7e2
[ "BSD-3-Clause" ]
42
2019-10-03T09:02:46.000Z
2021-12-08T05:32:24.000Z
from bokeh.plotting import figure, ColumnDataSource from bokeh.models import DataRange1d, NumeralTickFormatter, BasicTicker from bokeh.layouts import column from bokeh.models.mappers import LinearColorMapper from bokeh.palettes import all_palettes import math import time import pynvml from jupyterlab_nvdashboard.uti...
28.340532
87
0.537542
193a6e9bfbda763e33b5566d772d4b69983d268c
669
py
Python
MonoAl/tests/MonoTest.py
Adasumizox/crypto
45cb3cd19007a1b319efea20137a04a83afcf975
[ "MIT" ]
null
null
null
MonoAl/tests/MonoTest.py
Adasumizox/crypto
45cb3cd19007a1b319efea20137a04a83afcf975
[ "MIT" ]
null
null
null
MonoAl/tests/MonoTest.py
Adasumizox/crypto
45cb3cd19007a1b319efea20137a04a83afcf975
[ "MIT" ]
null
null
null
import unittest from MonoAl.src.Mono import Mono class MonoTest(unittest.TestCase): def setUp(self) -> None: self._mono = Mono("test") def test_init(self): self.assertIsInstance(self._mono, Mono) def test_is_english(self): self.assertTrue(self._mono.is_english("test")) def t...
23.068966
117
0.666667
0a7c6ae2c76ec6862bdecb7a423fcd213617e6f4
423
py
Python
transaction_service/transactions/migrations/0002_wallets_uuid.py
deorz/TransactionService
f04a99f5546fda155b6bf072ff7d82ee73d2fee2
[ "MIT" ]
null
null
null
transaction_service/transactions/migrations/0002_wallets_uuid.py
deorz/TransactionService
f04a99f5546fda155b6bf072ff7d82ee73d2fee2
[ "MIT" ]
null
null
null
transaction_service/transactions/migrations/0002_wallets_uuid.py
deorz/TransactionService
f04a99f5546fda155b6bf072ff7d82ee73d2fee2
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-03-12 15:13 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('transactions', '0001_initial'), ] operations = [ migrations.AddField( model_name='wallets', name='uuid',...
21.15
84
0.612293
0d4ccedc45ddeef8c8e2b14d0602ad8f936cea73
8,428
py
Python
bridge/esp8266/mqtt.py
lunakk-PL/micropython-mqtt
5c2e5db546d3f31373d3dd43853b09933bfec12f
[ "MIT" ]
295
2017-06-18T14:16:46.000Z
2022-03-29T23:33:09.000Z
bridge/esp8266/mqtt.py
tomklapka/micropython-mqtt
63746ecbd0e2e7ebd6f449e28e84db9602db6b2c
[ "MIT" ]
63
2017-12-01T22:04:31.000Z
2022-03-10T15:10:24.000Z
bridge/esp8266/mqtt.py
tomklapka/micropython-mqtt
63746ecbd0e2e7ebd6f449e28e84db9602db6b2c
[ "MIT" ]
81
2017-07-28T08:51:10.000Z
2022-03-24T12:20:53.000Z
# mqtt.py MQTT library for the micropython board using an ESP8266. # asyncio version # Author: Peter Hinch # Copyright Peter Hinch 2017-2021 Released under the MIT license # Accessed via pbmqtt.py on Pyboard import gc import ubinascii from mqtt_as import MQTTClient, config from machine import Pin, unique_id, freq im...
37.963964
102
0.576412
f56738461ce563a656a9223f5b515a7faa76e176
342
py
Python
jobs/apps.py
7ooL/web_home_auto
66d1a96359154a2a8015fb8ebfabfedcf38f69a9
[ "MIT" ]
null
null
null
jobs/apps.py
7ooL/web_home_auto
66d1a96359154a2a8015fb8ebfabfedcf38f69a9
[ "MIT" ]
8
2020-12-30T17:41:41.000Z
2021-01-24T19:16:54.000Z
jobs/apps.py
7ooL/HomeAuto
66d1a96359154a2a8015fb8ebfabfedcf38f69a9
[ "MIT" ]
null
null
null
from django.apps import AppConfig import logging, sys logger = logging.getLogger(__name__) class JobsConfig(AppConfig): name = 'jobs' verbose_name = "Job Scheduler" if 'runserver' in sys.argv: def ready(self): logger.debug('Starting Jobs App') import jobs.jobs as jobs ...
21.375
45
0.637427
c76e86ec64cb5c9cf0daf3d456a3d062e701e53f
887
py
Python
fbapp/models.py
jonathan-sudo/flask_oc
fa55a58fea6e3a591f988f0d381ccae06bfef355
[ "MIT" ]
null
null
null
fbapp/models.py
jonathan-sudo/flask_oc
fa55a58fea6e3a591f988f0d381ccae06bfef355
[ "MIT" ]
null
null
null
fbapp/models.py
jonathan-sudo/flask_oc
fa55a58fea6e3a591f988f0d381ccae06bfef355
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy from .views import app import logging as lg import enum app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db = SQLAlchemy(app) class Gender(enum.Enum): female = 0 male = 1 other = 2 class Content(db.Model): id = db.Column(db.Integer, primary_key=True) ...
24.638889
81
0.687711
cd4b9074fb9f34d4f7d1b58252fa3e1c1bdea5ae
29,672
py
Python
CameraInteface.py
gsboylan/meerk40t
7607b034368a428dfc5cab56629032d6074c756d
[ "MIT" ]
null
null
null
CameraInteface.py
gsboylan/meerk40t
7607b034368a428dfc5cab56629032d6074c756d
[ "MIT" ]
null
null
null
CameraInteface.py
gsboylan/meerk40t
7607b034368a428dfc5cab56629032d6074c756d
[ "MIT" ]
null
null
null
import threading import wx import time from Kernel import Module from LaserRender import DRAW_MODE_FLIPXY, DRAW_MODE_INVERT from ZMatrix import ZMatrix from icons import * from svgelements import SVGImage, Matrix, Point _ = wx.GetTranslation CORNER_SIZE = 25 class CameraInterface(wx.Frame, Module)...
41.557423
161
0.57957
749295e01d8e5ada1b6f29ad61f19aa49abead26
210
py
Python
fhir_patient_summary/__init__.py
nicford/FHIR-Patient-Summary
facda81a739d0981cdd8cc5637c7bd43b632f4bb
[ "MIT" ]
1
2020-03-29T23:11:55.000Z
2020-03-29T23:11:55.000Z
fhir_patient_summary/__init__.py
nicford/FHIR-Patient-Summary
facda81a739d0981cdd8cc5637c7bd43b632f4bb
[ "MIT" ]
null
null
null
fhir_patient_summary/__init__.py
nicford/FHIR-Patient-Summary
facda81a739d0981cdd8cc5637c7bd43b632f4bb
[ "MIT" ]
null
null
null
from .createPatientSummaryDocument import createPatientSummaryDocument, createPatientSummaryDocumentFromPatientIDList __all__ = ['createPatientSummaryDocument', 'createPatientSummaryDocumentFromPatientIDList']
70
117
0.909524
4b752f63d66e4f20ca620413ab2ec283acb41b24
120
py
Python
mmdet/core/keypoint/__init__.py
rra94/mmdetection
e7773ca738c2ff35cf7d38af117464d445a6edbc
[ "Apache-2.0" ]
1
2021-05-31T06:43:08.000Z
2021-05-31T06:43:08.000Z
mmdet/core/keypoint/__init__.py
rra94/mmdetection
e7773ca738c2ff35cf7d38af117464d445a6edbc
[ "Apache-2.0" ]
null
null
null
mmdet/core/keypoint/__init__.py
rra94/mmdetection
e7773ca738c2ff35cf7d38af117464d445a6edbc
[ "Apache-2.0" ]
2
2020-07-02T08:06:07.000Z
2020-08-12T20:31:51.000Z
from .keypoint_target import keypoint_target, keypoint_target2 __all__ = [ 'keypoint_target', 'keypoint_target2' ]
20
62
0.783333
38564e0be75115cc2b084177b1659e2cf48cb163
2,741
py
Python
keystone-moon/keystone/common/clean.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
1
2019-05-08T06:09:35.000Z
2019-05-08T06:09:35.000Z
keystone-moon/keystone/common/clean.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
4
2020-02-10T12:02:37.000Z
2021-07-14T15:16:57.000Z
keystone-moon/keystone/common/clean.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
5
2019-06-06T15:11:37.000Z
2021-06-07T08:23:23.000Z
# Copyright 2012 OpenStack Foundation # # 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...
31.147727
75
0.680773
6ca3b9c0957170e75200aec4846c4491e589f188
40
py
Python
autoscalingsim/scaling/policiesbuilder/metric/scaling_aspect_calculation/calculators/learning_based/__init__.py
Remit/autoscaling-simulator
091943c0e9eedf9543e9305682a067ab60f56def
[ "MIT" ]
6
2021-03-10T16:23:10.000Z
2022-01-14T04:57:46.000Z
autoscalingsim/scaling/policiesbuilder/metric/scaling_aspect_calculation/calculators/learning_based/__init__.py
Remit/autoscaling-simulator
091943c0e9eedf9543e9305682a067ab60f56def
[ "MIT" ]
null
null
null
autoscalingsim/scaling/policiesbuilder/metric/scaling_aspect_calculation/calculators/learning_based/__init__.py
Remit/autoscaling-simulator
091943c0e9eedf9543e9305682a067ab60f56def
[ "MIT" ]
1
2022-01-14T04:57:55.000Z
2022-01-14T04:57:55.000Z
from . import learning_based_calculator
20
39
0.875
8fcacb0328850d0a9d0dd3b0321c6195ae4683dc
2,274
py
Python
backend/pyrogram/raw/types/url_auth_result_default.py
appheap/social-media-analyzer
0f9da098bfb0b4f9eb38e0244aa3a168cf97d51c
[ "Apache-2.0" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/types/url_auth_result_default.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/types/url_auth_result_default.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
31.150685
103
0.636763
7b3b95ee29ea1936a2a77f9661fa7c8fd88258d9
6,609
py
Python
ticks.py
Srikanth-Rubique/OCRCapsNet
730743df8f45d513fea672f98e707b1682d0f563
[ "MIT" ]
null
null
null
ticks.py
Srikanth-Rubique/OCRCapsNet
730743df8f45d513fea672f98e707b1682d0f563
[ "MIT" ]
null
null
null
ticks.py
Srikanth-Rubique/OCRCapsNet
730743df8f45d513fea672f98e707b1682d0f563
[ "MIT" ]
null
null
null
import cv2 import numpy as np #sample_path='application_form-5a096c7c-fb0-1.jpg' #img=cv2.imread(sample_path)44 def ticks_prediction(img): imgray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) size=(1700,2338) thresh = cv2.resize(img, size, interpolation = cv2.INTER_AREA) #type of loan personal_loan = thresh[570:...
35.532258
96
0.621274
34682fd298536382a7b15d96fbf99ca439f13e04
2,113
py
Python
notebooks/nb_acm_nations_lite.py
cursorius-cursor/bi-nb-kassel-gi
032e8398e55a79cd543d6753d082c6c89ff1969e
[ "MIT" ]
null
null
null
notebooks/nb_acm_nations_lite.py
cursorius-cursor/bi-nb-kassel-gi
032e8398e55a79cd543d6753d082c6c89ff1969e
[ "MIT" ]
null
null
null
notebooks/nb_acm_nations_lite.py
cursorius-cursor/bi-nb-kassel-gi
032e8398e55a79cd543d6753d082c6c89ff1969e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import pathlib from pyhasse.core.csv_io import CSVReader from pyhasse.core.hddata import HDData from pyhasse.acm.calc import ACM import json prefs={ 'start': 1, # all bars with values between 'start'... 'stop': 4, # and 'stop' will be shown. To avoid trivial results it...
28.945205
121
0.646474
48010560771100916b0d0b62185d244cf30612a1
3,770
py
Python
src/lib/detectors/ctdet.py
wanglaotou/centernet_ncnn
31f82063215ef8391a90a0f6901e4787d71871f7
[ "MIT" ]
12
2020-06-10T11:47:58.000Z
2022-03-20T16:30:10.000Z
src/lib/detectors/ctdet.py
dun933/centernet_ncnn
31f82063215ef8391a90a0f6901e4787d71871f7
[ "MIT" ]
1
2022-03-20T16:32:18.000Z
2022-03-26T05:24:17.000Z
src/lib/detectors/ctdet.py
dun933/centernet_ncnn
31f82063215ef8391a90a0f6901e4787d71871f7
[ "MIT" ]
5
2020-06-24T01:00:19.000Z
2022-03-20T16:30:19.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import cv2 import numpy as np from progress.bar import Bar import time import torch try: from external.nms import soft_nms except: print('NMS not imported! If you need it,' ' do \n cd $CenterNet_RO...
38.469388
95
0.638196
2555f4b6b5849a9a82c4b222f131f9aec9d58923
1,007
py
Python
azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action_detail_paged.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action_detail_paged.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action_detail_paged.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
35.964286
149
0.604767
e5017b63bc7d770c2618a456a7d2b86cb7a5727d
2,031
py
Python
src/oci/dns/models/update_zone_records_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/dns/models/update_zone_records_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/dns/models/update_zone_records_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
30.313433
245
0.660266
9669adca55448e299d7ad246175e967d62db62f5
3,942
py
Python
api/environments/identities/traits/models.py
SolidStateGroup/Bullet-Train-API
ea47ccbdadf665a806ae4e0eff6ad1a2f1b0ba19
[ "BSD-3-Clause" ]
126
2019-12-13T18:41:43.000Z
2020-11-10T13:33:55.000Z
api/environments/identities/traits/models.py
SolidStateGroup/Bullet-Train-API
ea47ccbdadf665a806ae4e0eff6ad1a2f1b0ba19
[ "BSD-3-Clause" ]
30
2019-12-12T16:52:01.000Z
2020-11-09T18:55:29.000Z
api/environments/identities/traits/models.py
SolidStateGroup/Bullet-Train-API
ea47ccbdadf665a806ae4e0eff6ad1a2f1b0ba19
[ "BSD-3-Clause" ]
20
2020-02-14T21:55:36.000Z
2020-11-03T22:29:03.000Z
import typing from core.constants import BOOLEAN, FLOAT, INTEGER, STRING from django.core.exceptions import ObjectDoesNotExist from django.db import models from environments.identities.traits.exceptions import TraitPersistenceError class Trait(models.Model): TRAIT_VALUE_TYPES = ( (INTEGER, "Integer"), ...
36.165138
96
0.653983
5639749003088a68f3ad83c892ae4cd95fb3e7f4
2,058
py
Python
Day-24/part2.py
archanpatkar/advent2020
86065eb744c885ce0e29ea8228b8e8ebbd38c939
[ "MIT" ]
null
null
null
Day-24/part2.py
archanpatkar/advent2020
86065eb744c885ce0e29ea8228b8e8ebbd38c939
[ "MIT" ]
null
null
null
Day-24/part2.py
archanpatkar/advent2020
86065eb744c885ce0e29ea8228b8e8ebbd38c939
[ "MIT" ]
null
null
null
import sys sys.path.append("..") from common import * def parse(data): data = data.strip() temp = [] prev = "" for ch in data: if (ch == "e" or ch == "w") and len(prev) == 0: temp.append(ch) elif ch == "e" or ch == "w" and len(prev): temp.append(prev+ch) prev = "...
25.725
135
0.508746
ebeeb9a847721fd10003f88fe8475d41570ba24b
268
py
Python
web/env/lib/python3.6/site-packages/mfa/__init__.py
rizwansoaib/face
59300441b52d32f3ecb5095085ef9d448aef63af
[ "MIT" ]
42
2019-03-01T09:51:13.000Z
2021-07-22T12:22:49.000Z
web/env/lib/python3.6/site-packages/mfa/__init__.py
rizwansoaib/FACE-ATTENDENCE
59300441b52d32f3ecb5095085ef9d448aef63af
[ "MIT" ]
3
2020-06-06T01:17:20.000Z
2021-06-10T22:33:34.000Z
web/env/lib/python3.6/site-packages/mfa/__init__.py
rizwansoaib/FACE-ATTENDENCE
59300441b52d32f3ecb5095085ef9d448aef63af
[ "MIT" ]
9
2019-03-13T16:53:10.000Z
2022-03-24T12:27:31.000Z
# @property # def urls(): # import django # if django.VERSION < (1, 9): # from .mfa_urls import url_patterns # return url_patterns, 'mfa', '' # else: # from .mfa_urls import url_patterns # return url_patterns,'mfa' #
24.363636
45
0.559701
4c41290714bf2f020b6c462a43a9735f410b5101
968
py
Python
tools/embedtools.py
Nalle-Buhi/PoliceBuhi
5ffac5ed11f69470419cfbd0b9ea0bc9e8b531d5
[ "MIT" ]
null
null
null
tools/embedtools.py
Nalle-Buhi/PoliceBuhi
5ffac5ed11f69470419cfbd0b9ea0bc9e8b531d5
[ "MIT" ]
null
null
null
tools/embedtools.py
Nalle-Buhi/PoliceBuhi
5ffac5ed11f69470419cfbd0b9ea0bc9e8b531d5
[ "MIT" ]
null
null
null
import discord import datetime # embed handling async def embed_builder( ctx, title, description, fields=None, image=None, thumbnail=None ): em = discord.Embed( title=title, description=description, color=discord.Color.random(), timestamp=datetime.datetime.utcnow(), ) ...
31.225806
98
0.65186
cf2acf831bb0bdeba6545de63503de753b0996a2
6,043
py
Python
functions/source/KeyGen/cryptography/hazmat/backends/openssl/ed448.py
kenmoini/aws-quickstart-centos-okd
1e9daf4e283550e4ed240913352b0283ace6568d
[ "Apache-2.0" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
functions/source/KeyGen/cryptography/hazmat/backends/openssl/ed448.py
kenmoini/aws-quickstart-centos-okd
1e9daf4e283550e4ed240913352b0283ace6568d
[ "Apache-2.0" ]
248
2017-09-13T20:11:40.000Z
2022-03-30T07:30:40.000Z
functions/source/KeyGen/cryptography/hazmat/backends/openssl/ed448.py
kenmoini/aws-quickstart-centos-okd
1e9daf4e283550e4ed240913352b0283ace6568d
[ "Apache-2.0" ]
216
2017-09-14T19:46:22.000Z
2022-03-29T22:19:20.000Z
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function from cryptography import exceptions, utils from cryptography.hazmat.primi...
38.987097
79
0.643224
8e468c9114bf83b3d8cf6eaa2d1c4787f72b8f1d
40,164
py
Python
ivy/stateful/layers.py
MarShaikh/ivy
e6bf8c1ea2af409fe61d16bc5874b5e21dc5a333
[ "Apache-2.0" ]
1
2022-03-19T21:41:36.000Z
2022-03-19T21:41:36.000Z
ivy/stateful/layers.py
MarShaikh/ivy
e6bf8c1ea2af409fe61d16bc5874b5e21dc5a333
[ "Apache-2.0" ]
null
null
null
ivy/stateful/layers.py
MarShaikh/ivy
e6bf8c1ea2af409fe61d16bc5874b5e21dc5a333
[ "Apache-2.0" ]
null
null
null
"""Collection of Ivy neural network layers as stateful classes.""" # local import ivy from ivy.stateful.module import Module from ivy.stateful.initializers import Zeros, GlorotUniform # Linear # # -------# class Linear(Module): def __init__( self, input_channels, output_channels, ...
37.327138
88
0.590056
c2379390feed038a156e113ffd481c26703762f0
502
py
Python
recipes/docopt.cpp/all/test_package/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
562
2019-09-04T12:23:43.000Z
2022-03-29T16:41:43.000Z
recipes/docopt.cpp/all/test_package/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
9,799
2019-09-04T12:02:11.000Z
2022-03-31T23:55:45.000Z
recipes/docopt.cpp/all/test_package/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
1,126
2019-09-04T11:57:46.000Z
2022-03-31T16:43:38.000Z
from conans import ConanFile, CMake, tools import os class TestPackageConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake", "cmake_find_package_multi" def build(self): cmake = CMake(self) cmake.configure() cmake.build() def test(self): ...
27.888889
73
0.63745
0b672156dcfc5c31624e828d2b0de3878afa5981
631
py
Python
inventario/migrations/0002_activo_negocio.py
darkdrei/Inventario
dc2dcc830be5a49ba602c242d8c7d5d9c24c7b5c
[ "MIT" ]
null
null
null
inventario/migrations/0002_activo_negocio.py
darkdrei/Inventario
dc2dcc830be5a49ba602c242d8c7d5d9c24c7b5c
[ "MIT" ]
null
null
null
inventario/migrations/0002_activo_negocio.py
darkdrei/Inventario
dc2dcc830be5a49ba602c242d8c7d5d9c24c7b5c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-06-21 18:54 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('empleados', '0005_cajero_autenticate'), ('inventario'...
26.291667
122
0.646593
c02b331b312f92c9ce147a06847210a99eadb632
857
py
Python
tests/pyutils/test_or_list.py
patrys/graphql-core-next
f6b078bddae4dd8a48ebf878a6fd5fbbac52bd1b
[ "MIT" ]
null
null
null
tests/pyutils/test_or_list.py
patrys/graphql-core-next
f6b078bddae4dd8a48ebf878a6fd5fbbac52bd1b
[ "MIT" ]
3
2021-03-20T05:19:34.000Z
2021-06-02T03:27:28.000Z
tests/pyutils/test_or_list.py
patrys/graphql-core-next
f6b078bddae4dd8a48ebf878a6fd5fbbac52bd1b
[ "MIT" ]
null
null
null
from pytest import raises from graphql.pyutils import or_list def describe_or_list(): def returns_none_for_empty_list(): with raises(TypeError): or_list([]) def prints_list_with_one_item(): assert or_list(["one"]) == "one" def prints_list_with_two_items(): assert or_...
29.551724
75
0.575263
cf2b43e4119b5faf0b35e627d5747fd5a050d4dc
4,031
py
Python
gallery/ui/app.py
proper-gramar/py-recov
41efe646cd0671f82b25b4adc587797034e38f68
[ "MIT" ]
null
null
null
gallery/ui/app.py
proper-gramar/py-recov
41efe646cd0671f82b25b4adc587797034e38f68
[ "MIT" ]
null
null
null
gallery/ui/app.py
proper-gramar/py-recov
41efe646cd0671f82b25b4adc587797034e38f68
[ "MIT" ]
null
null
null
from flask import Flask from flask import request from flask import render_template import json import psycopg2 import db as f import re app = Flask(__name__) ################################# ###db.py contents running here### ################################# ### establishes connection to postgreSQL database db_hos...
22.027322
102
0.624163
4ba6bd0eb7f542a5f1ec35792ed137ad6179cbec
846
py
Python
bocadillo/app_types.py
teaglebuilt/bocadillo
b2138e77747d3ab9f87e4b352f6b7c1e72520fe1
[ "MIT" ]
434
2018-11-19T15:16:05.000Z
2022-02-19T03:18:52.000Z
bocadillo/app_types.py
teaglebuilt/bocadillo
b2138e77747d3ab9f87e4b352f6b7c1e72520fe1
[ "MIT" ]
295
2018-11-20T15:11:17.000Z
2020-03-14T19:42:03.000Z
bocadillo/app_types.py
teaglebuilt/bocadillo
b2138e77747d3ab9f87e4b352f6b7c1e72520fe1
[ "MIT" ]
62
2018-11-17T22:41:06.000Z
2021-09-11T17:45:59.000Z
import typing from .request import Request from .response import Response if typing.TYPE_CHECKING: # pragma: no cover from .applications import App # ASGI Scope = dict Event = typing.MutableMapping[str, typing.Any] Receive = typing.Callable[[], typing.Awaitable[Event]] Send = typing.Callable[[Event], None] cl...
22.864865
75
0.729314
be6ea93d788f483d91301275426ddc778c48e10e
2,379
py
Python
example/urls.py
DLRSP/example
9598ff5c18176b1246568c83ab90b60cf00166bd
[ "MIT" ]
null
null
null
example/urls.py
DLRSP/example
9598ff5c18176b1246568c83ab90b60cf00166bd
[ "MIT" ]
73
2021-11-22T20:53:01.000Z
2022-03-29T13:40:29.000Z
example/urls.py
DLRSP/example
9598ff5c18176b1246568c83ab90b60cf00166bd
[ "MIT" ]
null
null
null
"""example URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
34.478261
87
0.728037
5bb03a40020a07170c374c1c0f0066ee851dcbaa
768
py
Python
leetcode/isPowerOfTwo.py
huynonstop/solving-everything
21c7c32f9e482e1e88d5ec8a03f8815d28f7ef39
[ "MIT" ]
null
null
null
leetcode/isPowerOfTwo.py
huynonstop/solving-everything
21c7c32f9e482e1e88d5ec8a03f8815d28f7ef39
[ "MIT" ]
null
null
null
leetcode/isPowerOfTwo.py
huynonstop/solving-everything
21c7c32f9e482e1e88d5ec8a03f8815d28f7ef39
[ "MIT" ]
null
null
null
class Solution: def isPowerOfTwo(self, n: int) -> bool: return is_power_of_two_bitwise(n) def is_power_of_two_bitwise(n): cur = 1 while cur < n: cur = cur << 1 return cur == n # If n is the power of two: # n = 2 ^ 0 = 1 = 0b0000...00000001, and (n - 1) = 0 = 0b0000...0000. # n = 2 ^...
26.482759
71
0.536458
122700c44445459584d6d0bb81c165cae5a571a4
536
py
Python
InteractionTracker/uxengine/views.py
desertzebra/Lean-UX-Platform
1b61a4b4e0af6fc08e052fb22b4141e65122ef9a
[ "Apache-2.0" ]
34
2019-03-11T08:10:16.000Z
2021-12-14T05:53:22.000Z
InteractionTracker/uxengine/views.py
shahidzaffar/Lean-UX-Platform
40c46c0421dd21cdfca254db689bf566c95e4d6a
[ "Apache-2.0" ]
6
2020-11-17T06:57:39.000Z
2022-01-04T16:51:41.000Z
InteractionTracker/uxengine/views.py
shahidzaffar/Lean-UX-Platform
40c46c0421dd21cdfca254db689bf566c95e4d6a
[ "Apache-2.0" ]
28
2019-03-11T08:10:19.000Z
2021-12-14T06:02:37.000Z
""" # Interaction Tracker # @license http://www.apache.org/licenses/LICENSE-2.0 # Author @ Jamil Hussain, Zaki """ from django.shortcuts import render from django.http import HttpResponseRedirect, Http404 from analytics.models import App # Create your views here. def homeView(request): Apps = App.objects.all(...
25.52381
54
0.695896
c83e07303f8837d7fd2d60bd116b22bda255ec96
1,224
py
Python
.config/pianobar/scripts/pandoraUtils.py
desmith/dotfiles-nix
1cae31a4aa679a684231e3beee6fb88f613b3ad3
[ "MIT" ]
1
2021-01-12T05:22:01.000Z
2021-01-12T05:22:01.000Z
.config/pianobar/scripts/pandoraUtils.py
desmith/dotfiles-nix
1cae31a4aa679a684231e3beee6fb88f613b3ad3
[ "MIT" ]
null
null
null
.config/pianobar/scripts/pandoraUtils.py
desmith/dotfiles-nix
1cae31a4aa679a684231e3beee6fb88f613b3ad3
[ "MIT" ]
null
null
null
import os, pickle, serial LCD = serial.Serial('/dev/ttyAMA0', 9600) def writeToLCD(line1 = "", line2 = ""): global LCD if line2 == "" and len(line1) > 16: tempLine = line1 line1 = tempLine[0:16] line2 = tempLine[16:len(tempLine)] LCD.open() LCD.write('\xFE\x01') LCD.write('\xFE\x80') LCD.write(lcdLi...
18.830769
67
0.683007
c74c12f15806392902acd045a68400aa5260cfcd
7,907
py
Python
examples/basic.py
at7h/trod
5167abeb69f5d72ccf81b719cc94bab1b509b1ed
[ "MIT" ]
13
2019-11-12T05:17:58.000Z
2020-03-23T04:42:40.000Z
examples/basic.py
acthse/Trod
5167abeb69f5d72ccf81b719cc94bab1b509b1ed
[ "MIT" ]
1
2020-10-04T16:20:21.000Z
2020-10-04T16:20:21.000Z
examples/basic.py
acthse/Trod
5167abeb69f5d72ccf81b719cc94bab1b509b1ed
[ "MIT" ]
3
2019-11-12T05:22:34.000Z
2020-03-19T06:47:19.000Z
import asyncio import datetime import helo db = helo.G() class Person(helo.Model): id = helo.BigAuto() name = helo.VarChar(length=45, null=False) class Employee(Person): department = helo.Smallint() salary = helo.Float(default=0) class User(Person): email = helo.Email(default='') passwo...
26.269103
74
0.578222
5a71160185a5fe03d9b7c6979241296349c7f3ca
39
py
Python
example/jhub.py
javagg/oidcauthenticator
237c4b0813e42e8cd4d28a6147a6f660901bc96d
[ "MIT" ]
null
null
null
example/jhub.py
javagg/oidcauthenticator
237c4b0813e42e8cd4d28a6147a6f660901bc96d
[ "MIT" ]
null
null
null
example/jhub.py
javagg/oidcauthenticator
237c4b0813e42e8cd4d28a6147a6f660901bc96d
[ "MIT" ]
null
null
null
from jupyterhub.app import main main()
13
31
0.794872
cf6e91850fb6a8096c811f3472c783c6dfd34531
19,750
py
Python
salt/states/dellchassis.py
mmckinst/salt
4dd606a0e37cf319a080d712f668ab9a1833b502
[ "Apache-2.0" ]
null
null
null
salt/states/dellchassis.py
mmckinst/salt
4dd606a0e37cf319a080d712f668ab9a1833b502
[ "Apache-2.0" ]
1
2018-08-23T18:25:42.000Z
2018-08-23T18:25:42.000Z
salt/states/dellchassis.py
mmckinst/salt
4dd606a0e37cf319a080d712f668ab9a1833b502
[ "Apache-2.0" ]
1
2018-04-19T16:57:27.000Z
2018-04-19T16:57:27.000Z
# -*- coding: utf-8 -*- ''' Manage chassis via Salt Proxies. .. versionadded:: 2015.8.2 Below is an example state that sets basic parameters: .. code-block:: yaml my-dell-chassis: dellchassis.chassis: - chassis_name: my-dell-chassis - datacenter: dc-1-us - location: my-location ...
33.082077
112
0.534278
9269604e29681c9bdd2b7574c852c8eeb4f5ce31
28,664
py
Python
third_party/chromite/cbuildbot/stages/generic_stages_unittest.py
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/chromite/cbuildbot/stages/generic_stages_unittest.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/chromite/cbuildbot/stages/generic_stages_unittest.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Unittests for generic stages.""" from __future__ import print_function import contextlib import copy import mock import o...
37.225974
80
0.717695
87824e0105b3f987c1631bee5a3404393779eaf2
5,117
py
Python
utils/xmlparser.py
jking-r7/scanman
28c7d4525c3a711bd25bfec092236743434e14af
[ "MIT" ]
null
null
null
utils/xmlparser.py
jking-r7/scanman
28c7d4525c3a711bd25bfec092236743434e14af
[ "MIT" ]
null
null
null
utils/xmlparser.py
jking-r7/scanman
28c7d4525c3a711bd25bfec092236743434e14af
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import xml.etree.ElementTree as ET import logging class NseParser: ''' Nmap NSE Script Scan XML Parser. ''' xmlroot = None def parse_xml(self, filepath): ''' Parses/read an xml file and return the 'nmaprun' xmlroot. arg(s):xmlfile:str ''' xmltree = ET.parse(fi...
26.512953
104
0.623412
3d732fb67a137d25cf0594dfdab4ab19c807902d
240
py
Python
tests/test_general.py
ArtellaPipe/artellapipe-libs-picker
cbd71d1cf58e6ae3f07495a1db444eceb311feeb
[ "MIT" ]
null
null
null
tests/test_general.py
ArtellaPipe/artellapipe-libs-picker
cbd71d1cf58e6ae3f07495a1db444eceb311feeb
[ "MIT" ]
null
null
null
tests/test_general.py
ArtellaPipe/artellapipe-libs-picker
cbd71d1cf58e6ae3f07495a1db444eceb311feeb
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains general tests for artellapipe-libs-maya """ import pytest from artellapipe.libs.picker import __version__ def test_version(): assert __version__.get_version()
16
60
0.725
5dcb608f069d1f306e9a32c1b5e07871d375a3cf
72
py
Python
python/dev.py
simplosophy/capman
9c8d2836f84d6538e739fbe9d4424873d5464e99
[ "MIT" ]
null
null
null
python/dev.py
simplosophy/capman
9c8d2836f84d6538e739fbe9d4424873d5464e99
[ "MIT" ]
null
null
null
python/dev.py
simplosophy/capman
9c8d2836f84d6538e739fbe9d4424873d5464e99
[ "MIT" ]
null
null
null
#!/usr/bin/python #dev.py start|stop|restart import os import sys
6.545455
26
0.694444
2dad8678963d3ebc12fd1bd5c79e670a833d5b25
545
py
Python
src/helpers/call.py
MineHubCZ/MH-DOS
0d1361aee8aa4903e7b6c89c1df279b74d55d703
[ "MIT" ]
2
2021-08-01T12:59:59.000Z
2021-09-27T05:51:05.000Z
src/helpers/call.py
MineHubCZ/MH-DOS
0d1361aee8aa4903e7b6c89c1df279b74d55d703
[ "MIT" ]
3
2021-07-25T07:54:19.000Z
2021-08-18T20:35:26.000Z
src/helpers/call.py
MineHubCZ/MH-DOS
0d1361aee8aa4903e7b6c89c1df279b74d55d703
[ "MIT" ]
null
null
null
from command_list import command_list from helpers.rich import printr import commands.dos_help import commands.clear import commands.posts.kernel import commands.exit import commands.changelog def call(command: str, arguments: list): """ Command caller ================= Calls specific command Para...
21.8
56
0.642202
58705f823256b0cbb271c3f211470eb7de31b2f1
5,881
py
Python
silk/views/requests.py
eduzen/django-silk
8f8d159a4209f4c294aba16bce3b1ca5789dc2d2
[ "MIT" ]
2,027
2018-01-10T16:48:35.000Z
2022-03-31T17:11:44.000Z
silk/views/requests.py
eduzen/django-silk
8f8d159a4209f4c294aba16bce3b1ca5789dc2d2
[ "MIT" ]
270
2018-01-10T10:24:53.000Z
2022-03-24T11:12:23.000Z
silk/views/requests.py
eduzen/django-silk
8f8d159a4209f4c294aba16bce3b1ca5789dc2d2
[ "MIT" ]
210
2018-01-10T14:03:28.000Z
2022-03-08T06:20:55.000Z
from django.db.models import Sum from django.shortcuts import render from django.template.context_processors import csrf from django.utils.decorators import method_decorator from django.views.generic import View from silk.auth import login_possibly_required, permissions_possibly_required from silk.models import Reques...
33.414773
113
0.590376
2407df0522c487effa5ddab4d35800e484185838
1,219
py
Python
homepage/migrations/0012_user_likes_test_data.py
oriAdler/ClassRater
a68492ea8eab1475ab604da9d6efc99c73954d4b
[ "MIT" ]
1
2021-04-12T18:05:12.000Z
2021-04-12T18:05:12.000Z
homepage/migrations/0012_user_likes_test_data.py
ellaml/ClassRater
d786f9fb4bb51041590e46165badf12a7beef67e
[ "MIT" ]
103
2021-03-09T07:12:20.000Z
2021-05-23T06:13:21.000Z
homepage/migrations/0012_user_likes_test_data.py
ellaml/ClassRater
d786f9fb4bb51041590e46165badf12a7beef67e
[ "MIT" ]
17
2021-03-09T07:07:44.000Z
2021-05-02T16:31:45.000Z
from django.db import migrations, transaction class Migration(migrations.Migration): dependencies = [ ('homepage', '0001_initial'), ('homepage', '0002_user_test_data'), ('homepage', '0003_course_test_data'), ('homepage', '0006_review_test_data'), ('homepage', '00...
33.861111
65
0.602133
d1fd1c56dcdf247843198792a197a9a3596e2df0
466
py
Python
docs/python/chapter3/hcluster_test.py
saxsir/hhlab2013s-js-a
45851647ee57a55c0d1efd81224f51909940da3b
[ "MIT" ]
null
null
null
docs/python/chapter3/hcluster_test.py
saxsir/hhlab2013s-js-a
45851647ee57a55c0d1efd81224f51909940da3b
[ "MIT" ]
null
null
null
docs/python/chapter3/hcluster_test.py
saxsir/hhlab2013s-js-a
45851647ee57a55c0d1efd81224f51909940da3b
[ "MIT" ]
null
null
null
# coding:utf-8 import lib.clusters as clusters import sys argvs = sys.argv argc = len(argvs) # 引数がなければ使い方を表示してプログラムを終了する。 if (argc < 2): print 'Usage: # python %s path_to_blogdata.txt' % argvs[0] quit() input_file_path = argvs[1] output_file_path = 'hcluster_test.result.jpg' # こっからメイン blognames,words,data = cl...
19.416667
65
0.761803
c14b35e684d0eb10b747de699e8e7032ce06d057
565
py
Python
boards/forms.py
AxioDL/axiodl-www
f5011f3ee3ad8e45b72884c6ea238fb4cea7929c
[ "MIT" ]
null
null
null
boards/forms.py
AxioDL/axiodl-www
f5011f3ee3ad8e45b72884c6ea238fb4cea7929c
[ "MIT" ]
7
2021-03-18T23:27:44.000Z
2022-03-11T23:52:23.000Z
boards/forms.py
AxioDL/axiodl-www
f5011f3ee3ad8e45b72884c6ea238fb4cea7929c
[ "MIT" ]
null
null
null
from django import forms from martor.fields import MartorFormField from .models import Topic, Post, Board class BoardForm(forms.ModelForm): class Meta: model = Board fields = ['name', 'description', 'parent'] class NewTopicForm(forms.ModelForm): message = MartorFormField( max_length=...
21.730769
56
0.640708
4114cf6c82cc90c54dc51424ca19a0a1b97490c3
13,187
py
Python
craft_text_detector/craft_utils.py
ducviet00/craft-text-detector
39bf75674da1169c08c6fa79f085bf43d518e721
[ "MIT" ]
null
null
null
craft_text_detector/craft_utils.py
ducviet00/craft-text-detector
39bf75674da1169c08c6fa79f085bf43d518e721
[ "MIT" ]
null
null
null
craft_text_detector/craft_utils.py
ducviet00/craft-text-detector
39bf75674da1169c08c6fa79f085bf43d518e721
[ "MIT" ]
null
null
null
import math import os from collections import OrderedDict from pathlib import Path from typing import Optional, Union import cv2 import numpy as np import craft_text_detector.file_utils as file_utils import craft_text_detector.torch_utils as torch_utils CRAFT_GDRIVE_URL = "https://drive.google.com/uc?id=1bupFXqT-VU6...
32.321078
88
0.539243
fc6b39700ab095971fde3190c088c5f5dc96a52a
459
py
Python
Django/django_doc/my_app/models.py
fajardodiaz/python_devops
6b598ea0a782a9bfa009519ebcccc362b601eec3
[ "MIT" ]
null
null
null
Django/django_doc/my_app/models.py
fajardodiaz/python_devops
6b598ea0a782a9bfa009519ebcccc362b601eec3
[ "MIT" ]
null
null
null
Django/django_doc/my_app/models.py
fajardodiaz/python_devops
6b598ea0a782a9bfa009519ebcccc362b601eec3
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Reporter(models.Model): full_name = models.CharField(max_length=100) def __str__(self): return self.full_name class Article(models.Model): pub_date = models.DateField() headline = models.CharField(max_length=200) content = ...
27
67
0.714597
9a8ab5165f9469c96df33ef65cc86023fbcd33a4
2,837
py
Python
SalishSeaTools/salishsea_tools/onc_sog_adcps.py
SalishSeaCast/tools
4be9170bbe7ab700ab1b3afc3138e669053d43f8
[ "ECL-2.0", "Apache-2.0" ]
2
2020-06-23T16:09:00.000Z
2022-01-11T17:37:37.000Z
SalishSeaTools/salishsea_tools/onc_sog_adcps.py
SalishSeaCast/tools
4be9170bbe7ab700ab1b3afc3138e669053d43f8
[ "ECL-2.0", "Apache-2.0" ]
2
2020-11-19T17:51:25.000Z
2021-04-07T21:36:07.000Z
SalishSeaTools/salishsea_tools/onc_sog_adcps.py
SalishSeaCast/tools
4be9170bbe7ab700ab1b3afc3138e669053d43f8
[ "ECL-2.0", "Apache-2.0" ]
4
2020-05-15T03:34:47.000Z
2021-11-24T22:39:16.000Z
# Copyright 2013-2021 The Salish Sea NEMO Project and # The University of British Columbia # 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 # U...
35.024691
75
0.583363
edee4e40981e12eba119660d0c79faab5254cec8
177
py
Python
Server/IrssiNotifierServer/cron.py
jheidel/IrssiNotifier
a3bb0164fd33b8ed27a99a7f7567c44b977caef7
[ "Apache-2.0" ]
83
2015-01-18T21:00:02.000Z
2022-03-14T08:11:30.000Z
Server/IrssiNotifierServer/cron.py
jheidel/IrssiNotifier
a3bb0164fd33b8ed27a99a7f7567c44b977caef7
[ "Apache-2.0" ]
43
2015-01-29T08:46:33.000Z
2019-11-02T16:50:01.000Z
Server/IrssiNotifierServer/cron.py
jheidel/IrssiNotifier
a3bb0164fd33b8ed27a99a7f7567c44b977caef7
[ "Apache-2.0" ]
40
2015-02-05T13:37:22.000Z
2022-03-06T18:12:27.000Z
import webapp2 import logging from controllers import CronController app = webapp2.WSGIApplication([('/cron/clear', CronController)], debug=True) logging.debug("loaded cron")
22.125
76
0.79096
bc29f555baf20bc71ac2b08ded1c4bf07d4b1e0a
678
py
Python
eggs/bx_python-0.7.2-py2.7-linux-x86_64-ucs2.egg/EGG-INFO/scripts/maf_gc_content.py
psnehal/MethylSig
5efad71e71ff2515feff2e49579c856ef9a1bbd8
[ "CC-BY-3.0" ]
null
null
null
eggs/bx_python-0.7.2-py2.7-linux-x86_64-ucs2.egg/EGG-INFO/scripts/maf_gc_content.py
psnehal/MethylSig
5efad71e71ff2515feff2e49579c856ef9a1bbd8
[ "CC-BY-3.0" ]
null
null
null
eggs/bx_python-0.7.2-py2.7-linux-x86_64-ucs2.egg/EGG-INFO/scripts/maf_gc_content.py
psnehal/MethylSig
5efad71e71ff2515feff2e49579c856ef9a1bbd8
[ "CC-BY-3.0" ]
null
null
null
#!/afs/bx.psu.edu/project/pythons/py2.7-linux-x86_64-ucs2/bin/python2.7 """ Read a MAF from standard input and print average GC content of each alignment usage: %prog < maf > out """ from __future__ import division import sys from bx.align import maf def __main__(): maf_reader = maf.Reader( sys.stdin ) ...
20.545455
77
0.566372
68858a7bf0b04364614859da3bfe0e173899bee4
334
py
Python
output/models/ms_data/schema/sch_d5_a_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/schema/sch_d5_a_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/schema/sch_d5_a_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.schema.sch_d5_a_xsd.ns_a import ( AE2, AE3, BE1, BE3, CE1, CE2, CtA, CtB, CtC, E1, E2, E3, Root, ) __all__ = [ "AE2", "AE3", "BE1", "BE3", "CE1", "CE2", "CtA", "CtB", "CtC", "E1", "E2", "E3", ...
10.4375
60
0.39521
700d9b75bda58bde284b1d74b1422440d245ecde
6,781
py
Python
octavia/amphorae/backends/agent/api_server/keepalived.py
sapcc/octavia
1714d612f3416b96a195f941e526b0146daebce4
[ "Apache-2.0" ]
null
null
null
octavia/amphorae/backends/agent/api_server/keepalived.py
sapcc/octavia
1714d612f3416b96a195f941e526b0146daebce4
[ "Apache-2.0" ]
10
2020-09-18T12:17:59.000Z
2022-03-14T15:45:38.000Z
octavia/amphorae/backends/agent/api_server/keepalived.py
sapcc/octavia
1714d612f3416b96a195f941e526b0146daebce4
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Hewlett Packard Enterprise Development Company LP # # 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 applic...
40.60479
79
0.623064
b62f036b55a0f2aef1af1d85036252395e146b0f
2,934
py
Python
src/python/pipelines_utils_rdkit/splitter.py
InformaticsMatters/pipelines-utils-rdkit
ab81c2e11cfee517cfeca5b59bf634ab928029da
[ "Apache-2.0" ]
1
2020-06-02T21:24:05.000Z
2020-06-02T21:24:05.000Z
src/python/pipelines_utils_rdkit/splitter.py
InformaticsMatters/pipelines-utils-rdkit
ab81c2e11cfee517cfeca5b59bf634ab928029da
[ "Apache-2.0" ]
4
2019-01-17T18:04:13.000Z
2020-01-31T11:28:59.000Z
src/python/pipelines_utils_rdkit/splitter.py
InformaticsMatters/pipelines-utils-rdkit
ab81c2e11cfee517cfeca5b59bf634ab928029da
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2017 Informatics Matters Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
34.928571
146
0.657464
fbb06367716d5c2189b0c704118fdf6ef1b34df7
1,556
py
Python
sketches/demo_01/tilingwm.py
heerdyes/raspi-art
2e38c1926b6a6f4c745e0629b193d9c3c15acc22
[ "MIT" ]
1
2021-02-02T12:36:07.000Z
2021-02-02T12:36:07.000Z
sketches/demo_01/tilingwm.py
heerdyes/raspi-art
2e38c1926b6a6f4c745e0629b193d9c3c15acc22
[ "MIT" ]
null
null
null
sketches/demo_01/tilingwm.py
heerdyes/raspi-art
2e38c1926b6a6f4c745e0629b193d9c3c15acc22
[ "MIT" ]
null
null
null
class Win: def __init__(self,x,y,w,h,nm): self.x,self.y,self.w,self.h=x,y,w,h self.title=nm self.topbarht=24 self.hleft=7 self.htop=3 self.font=createFont("assets/ocr-a_regular.ttf",14); def render(self): fill(0) rect(self.x,self.y,self.w,self...
26.372881
96
0.52635
5d029d1205bd0cdd3dc8cdc7b19a141a58ab951f
8,337
py
Python
sklearn/decomposition/truncated_svd.py
NickVeld/scikit-learn-proj
9694a5641a7abbec96c93817aed88ce827dbacd3
[ "BSD-3-Clause" ]
1
2021-11-26T12:22:13.000Z
2021-11-26T12:22:13.000Z
sklearn/decomposition/truncated_svd.py
NickVeld/scikit-learn-proj
9694a5641a7abbec96c93817aed88ce827dbacd3
[ "BSD-3-Clause" ]
null
null
null
sklearn/decomposition/truncated_svd.py
NickVeld/scikit-learn-proj
9694a5641a7abbec96c93817aed88ce827dbacd3
[ "BSD-3-Clause" ]
null
null
null
"""Truncated SVD for sparse matrices, aka latent semantic analysis (LSA). """ # Author: Lars Buitinck # Olivier Grisel <olivier.grisel@ensta.org> # Michael Becker <mike@beckerfuffle.com> # License: 3-clause BSD. import numpy as np import scipy.sparse as sp try: from scipy.sparse.linalg import svd...
35.935345
78
0.632122
a04213f4d6c9116a076e2543294231ec9abe4708
1,884
py
Python
italian_csv_type_prediction/mixed_types/extractor.py
LucaCappelletti94/italian_csv_type_prediction
a6332c4fd5b29d3b52e9b940fe964c9fffa2b3b4
[ "MIT" ]
null
null
null
italian_csv_type_prediction/mixed_types/extractor.py
LucaCappelletti94/italian_csv_type_prediction
a6332c4fd5b29d3b52e9b940fe964c9fffa2b3b4
[ "MIT" ]
1
2021-02-24T11:01:06.000Z
2021-02-24T11:01:06.000Z
italian_csv_type_prediction/mixed_types/extractor.py
LucaCappelletti94/italian_csv_type_prediction
a6332c4fd5b29d3b52e9b940fe964c9fffa2b3b4
[ "MIT" ]
null
null
null
from typing import Dict from ..utils import TranslateType from ..simple_types import AnyTypePredictor class Extractor: def __init__(self, translator: TranslateType = None, fail_on_collision: bool = False): """Abstract class for Extractor object. Parameters ------------------------ ...
34.254545
90
0.584395
86eff285926ba559611cdd95354f5471b6056d4f
716
py
Python
authentication/serializers.py
shtanaka/dang
2abca007524112b449dede66883e5b690124a8c9
[ "Apache-2.0" ]
null
null
null
authentication/serializers.py
shtanaka/dang
2abca007524112b449dede66883e5b690124a8c9
[ "Apache-2.0" ]
3
2016-12-13T12:29:14.000Z
2016-12-13T12:48:55.000Z
authentication/serializers.py
shtanaka/dang
2abca007524112b449dede66883e5b690124a8c9
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth import update_session_auth_hash from rest_framework import serializers from authentication.models import Account class AccountSerializer(serializers.ModelSerializer): password = serializers.CharField(write_only=True, required=False) confirm_password = serializers.CharField(write_only...
26.518519
77
0.610335
81c379c577195d7f19a38fcb650eaf176044e8c7
9,938
py
Python
third_party/stdlib/unittest_suite.py
wangwansan/grumpy
aff3b3ff62a34c5baa9783307764f640df021337
[ "Apache-2.0" ]
11,252
2017-01-04T16:19:12.000Z
2022-03-31T13:42:31.000Z
third_party/stdlib/unittest_suite.py
wangwansan/grumpy
aff3b3ff62a34c5baa9783307764f640df021337
[ "Apache-2.0" ]
301
2017-01-04T17:34:00.000Z
2022-03-15T21:40:21.000Z
third_party/stdlib/unittest_suite.py
wangwansan/grumpy
aff3b3ff62a34c5baa9783307764f640df021337
[ "Apache-2.0" ]
819
2017-01-04T17:26:26.000Z
2022-03-20T14:11:28.000Z
"""TestSuite""" import sys # from . import case # from . import util import unittest_case as case import unittest_util as util __unittest = True def _call_if_exists(parent, attr): func = getattr(parent, attr, lambda: None) func() class BaseTestSuite(object): """A simple test suite that doesn't provid...
32.371336
80
0.601026
588fc7e012ddcb272e07ffc684884fb8f47d1097
1,323
py
Python
toontown/hood/LawbotHQ.py
AnonymousDeveloper65535/open-toontown
3d05c22a7d960ad843dde231140447c46973dba5
[ "BSD-3-Clause" ]
8
2017-10-10T11:41:01.000Z
2021-02-23T12:55:47.000Z
toontown/hood/LawbotHQ.py
AnonymousDeveloper65535/open-toontown
3d05c22a7d960ad843dde231140447c46973dba5
[ "BSD-3-Clause" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/hood/LawbotHQ.py
AnonymousDeveloper65535/open-toontown
3d05c22a7d960ad843dde231140447c46973dba5
[ "BSD-3-Clause" ]
3
2021-06-03T05:36:36.000Z
2021-06-22T15:07:31.000Z
import CogHood from toontown.toonbase import ToontownGlobals from toontown.coghq import LawbotCogHQLoader class LawbotHQ(CogHood.CogHood): def __init__(self, parentFSM, doneEvent, dnaStore, hoodId): CogHood.CogHood.__init__(self, parentFSM, doneEvent, dnaStore, hoodId) self.id = ToontownGlobals.La...
37.8
102
0.719577
671e42dc9db34de1f25ab96f01054d59556d31e8
403
py
Python
jobs/migrations/0004_auto_20150526_1523.py
hotosm/hot-exports-two
d60530445e89b2a46bd55ea3b7c2e72409b0f493
[ "BSD-3-Clause" ]
95
2017-09-29T13:20:38.000Z
2022-03-14T06:43:47.000Z
jobs/migrations/0004_auto_20150526_1523.py
posm/osm-export-tool2
5a1f4096f1afbe7420363376e6e1e8d42e47e1d1
[ "BSD-3-Clause" ]
229
2015-07-29T08:50:27.000Z
2017-09-21T18:05:56.000Z
jobs/migrations/0004_auto_20150526_1523.py
posm/osm-export-tool2
5a1f4096f1afbe7420363376e6e1e8d42e47e1d1
[ "BSD-3-Clause" ]
30
2017-10-06T23:53:48.000Z
2022-03-10T06:17:07.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('jobs', '0003_job_region'), ] operations = [ migrations.AlterField( model_name='job', name='region', ...
20.15
65
0.590571
1761f1637fcca3e05a0045e7721b9246e50ebe9e
1,421
py
Python
sendAPRSfi.py
M2I-HABET/RotorController
8561ab59f6177e9389c14bf621aef6857f249427
[ "MIT" ]
2
2020-06-01T22:57:36.000Z
2022-02-28T21:09:13.000Z
sendAPRSfi.py
M2I-HABET/HABET-ROTOR
8561ab59f6177e9389c14bf621aef6857f249427
[ "MIT" ]
null
null
null
sendAPRSfi.py
M2I-HABET/HABET-ROTOR
8561ab59f6177e9389c14bf621aef6857f249427
[ "MIT" ]
null
null
null
import rot2proG import serial import math import time import requests import json home_lat = 42.02700680709537 home_lon = -93.65338786489195 home_alt = 300 R = 6372.795477598*1000 flightID = "a8fa88c0-a1b2-4751-a3e9-44a7419b0983" scriptID = "429c4f46-140b-4db4-8cf9-6acc88f5b019" postURL = "http://127.0.0.1:8000/REST/...
25.375
135
0.591133
67e10c3fb5f12171fee660ded64db34bcf62c186
1,243
py
Python
Utilities/AWS/Ocean/ECS/Misc/ecs_deregister_task.py
spotinst/spotinst-examples
a99dda50ae0910d9b98daff19fff977fc512b801
[ "Apache-2.0" ]
14
2019-06-11T07:28:01.000Z
2022-02-24T06:15:03.000Z
Utilities/AWS/Ocean/ECS/Misc/ecs_deregister_task.py
spotinst/spotinst-examples
a99dda50ae0910d9b98daff19fff977fc512b801
[ "Apache-2.0" ]
1
2022-02-24T06:13:39.000Z
2022-02-24T06:13:39.000Z
Utilities/AWS/Ocean/ECS/Misc/ecs_deregister_task.py
spotinst/spotinst-examples
a99dda50ae0910d9b98daff19fff977fc512b801
[ "Apache-2.0" ]
7
2019-07-10T14:05:22.000Z
2022-01-10T14:04:01.000Z
######################################### ## Written by steven.feltner@spot.io ## Delete task Definitions that start with "SFM" ## NOTE: Please use at your own discrection. Not responsible for any damage or accidental deletion of AWS infrastructure. ############## ### Parameters ### region = '' # Profile is Optional ...
29.595238
121
0.681416
8533384cd5476e0f65860e04bfb469a280a6dcb4
2,252
py
Python
app.py
ididid8/toapi-douguo
0e94ead38ca1be1f74543858c41647641fbb1307
[ "Apache-2.0" ]
2
2019-02-26T09:52:28.000Z
2019-09-17T09:40:17.000Z
app.py
ididid8/toapi-douguo
0e94ead38ca1be1f74543858c41647641fbb1307
[ "Apache-2.0" ]
3
2019-10-24T01:40:37.000Z
2021-12-13T19:55:35.000Z
app.py
ididid8/toapi-douguo
0e94ead38ca1be1f74543858c41647641fbb1307
[ "Apache-2.0" ]
1
2020-12-18T02:42:01.000Z
2020-12-18T02:42:01.000Z
from flask import request from htmlparsing import Attr, Text from toapi import Api, Item import re import time api = Api() @api.site('https://www.douguo.com') @api.list('ul.recipe-list > li.item') @api.route('/index', '/') class Selected(Item): title = Text('.name') img = Attr('a > img', 'src') url = Att...
28.871795
123
0.618117
547fe75aabb35e9a100a0ae52ff8d678295f8b8e
1,468
py
Python
isaactest/tests/signup.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
null
null
null
isaactest/tests/signup.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
1
2016-01-15T11:28:06.000Z
2016-01-25T17:09:18.000Z
isaactest/tests/signup.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
1
2019-05-14T16:53:49.000Z
2019-05-14T16:53:49.000Z
import time from ..utils.log import log, INFO, ERROR, PASS from ..utils.isaac import sign_up_to_isaac from ..utils.i_selenium import assert_tab from ..tests import TestWithDependency from selenium.common.exceptions import NoSuchElementException __all__ = ["signup"] ##### # Test : Sign Up to Isaac ##### @TestWithDepe...
34.139535
90
0.679837
855824422bb9c86b61c6f046bb3cdacc847d3548
651
py
Python
vehicle-detection/detection.py
endormi/automation
7a44e5d2fcb60de7298c1b797b4010b5b4905bde
[ "MIT" ]
31
2019-08-22T17:36:12.000Z
2022-03-08T07:05:35.000Z
vehicle-detection/detection.py
endormi/automation
923da78f1c1a5ef6fb8aaf11e2865156afe4f34d
[ "MIT" ]
null
null
null
vehicle-detection/detection.py
endormi/automation
923da78f1c1a5ef6fb8aaf11e2865156afe4f34d
[ "MIT" ]
12
2020-07-08T14:35:09.000Z
2021-09-02T07:01:06.000Z
""" author: @endormi Automated vehicle detection """ import cv2 haar_cascade = 'cars.xml' video = 'cars.mp4' cascade_set = cv2.CascadeClassifier(haar_cascade) video = cv2.VideoCapture(video) while video.isOpened(): ret, frames = video.read() if ret: gray = cv2.cvtColor(frames, cv2.COLOR_BGR2GRA...
17.131579
71
0.611367
315c028677ab9e57afd88e0844f804bf6281006e
4,684
py
Python
SSDBAdmin/controller/zset.py
dangerousxiaoyu/SSDBAdmin
954ae60ac000f3f1b693ea1c928e0ba1a333f252
[ "Apache-2.0" ]
null
null
null
SSDBAdmin/controller/zset.py
dangerousxiaoyu/SSDBAdmin
954ae60ac000f3f1b693ea1c928e0ba1a333f252
[ "Apache-2.0" ]
null
null
null
SSDBAdmin/controller/zset.py
dangerousxiaoyu/SSDBAdmin
954ae60ac000f3f1b693ea1c928e0ba1a333f252
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys reload(sys) sys.setdefaultencoding('utf-8') from SSDBAdmin import app from flask import render_template, request, make_response, redirect, url_for from SSDBAdmin.model.ssdb_admin import SSDBObject # from SSDBAdmin.util import get_paging_tabs_info @app.route('/ssdbadmin/zset/') de...
33.457143
105
0.584757
0ca70339ada4bacc1af1a148b8a24ae481dacd8b
4,371
py
Python
database/tools.py
Ollie-Hooper/SpotifySentiment
bafdacd3a6f668c708c67dab40055a3b5629aa87
[ "MIT" ]
10
2020-05-23T12:01:20.000Z
2021-07-23T12:58:29.000Z
database/tools.py
Ollie-Hooper/SpotifySentiment
bafdacd3a6f668c708c67dab40055a3b5629aa87
[ "MIT" ]
1
2021-03-31T19:38:42.000Z
2021-03-31T19:38:42.000Z
database/tools.py
Ollie-Hooper/SpotifySentiment
bafdacd3a6f668c708c67dab40055a3b5629aa87
[ "MIT" ]
4
2020-06-19T20:52:04.000Z
2021-02-11T17:07:06.000Z
import sqlite3 import pandas as pd class Database: def __init__(self, name): try: self.db_name = name self.cn = sqlite3.connect(f'database/{self.db_name}.db') self.cur = self.cn.cursor() except sqlite3.Error as e: raise Exception(f'Failed to connect...
37.042373
144
0.551819
77b06bf1883345f8a2b01506008285a184a597b6
1,862
py
Python
pylego/pylego/reader.py
jgalle29/ga
fbf52ecdc8c7ba09b772d83b824e4fdf365c7b35
[ "MIT" ]
2
2020-01-07T14:20:49.000Z
2021-02-22T23:17:12.000Z
pylego/pylego/reader.py
gallego-posada/gait
fbf52ecdc8c7ba09b772d83b824e4fdf365c7b35
[ "MIT" ]
null
null
null
pylego/pylego/reader.py
gallego-posada/gait
fbf52ecdc8c7ba09b772d83b824e4fdf365c7b35
[ "MIT" ]
1
2021-10-19T17:45:21.000Z
2021-10-19T17:45:21.000Z
from abc import ABC, abstractmethod import collections import numpy as np import torch from torch.utils import data def _worker_init(_): return np.random.seed(torch.initial_seed() % np.iinfo(np.uint32).max) class Reader(ABC): def __init__(self, splits): """Initialize the reader. splits - ...
33.25
117
0.641246
9312c04e801a5216c139c1010af7834a9b49b4bb
22,257
py
Python
spikeinterface/core/core_tools.py
andrei8782/spikeinterface
c9f5672ee142189d149dfd776c51c664693b083a
[ "MIT" ]
null
null
null
spikeinterface/core/core_tools.py
andrei8782/spikeinterface
c9f5672ee142189d149dfd776c51c664693b083a
[ "MIT" ]
null
null
null
spikeinterface/core/core_tools.py
andrei8782/spikeinterface
c9f5672ee142189d149dfd776c51c664693b083a
[ "MIT" ]
null
null
null
from pathlib import Path import os import sys import datetime import numpy as np from tqdm import tqdm from .job_tools import ensure_chunk_size, ensure_n_jobs, divide_segment_into_chunks, ChunkRecordingExecutor, \ _shared_job_kwargs_doc def read_python(path): """Parses python scripts in a dictionary Pa...
35.956381
119
0.621153
3bbf7c2a2a7e782773abf0e092fde81648bcf706
2,630
py
Python
jdcloud_sdk/services/cdn/apis/ConfigServiceNoticeRequest.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
jdcloud_sdk/services/cdn/apis/ConfigServiceNoticeRequest.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
jdcloud_sdk/services/cdn/apis/ConfigServiceNoticeRequest.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
27.395833
75
0.6327
8c232c96c8c2eb4ac3f878f3615a4727bf423294
5,473
py
Python
bot/services/state/build_manager.py
Scottdecat/HiveMind
cbd9de0645d756a63d65918f6c971753e1178652
[ "MIT" ]
null
null
null
bot/services/state/build_manager.py
Scottdecat/HiveMind
cbd9de0645d756a63d65918f6c971753e1178652
[ "MIT" ]
null
null
null
bot/services/state/build_manager.py
Scottdecat/HiveMind
cbd9de0645d756a63d65918f6c971753e1178652
[ "MIT" ]
null
null
null
from typing import Dict, Union, Tuple from sc2 import UnitTypeId, BotAI, Race from sc2.units import Units from sc2.unit import Unit from sc2.game_data import UnitTypeData from bot.services.state_service import StateService from bot.model.scouting_information import ScoutingInformation import bot.injector as injector ...
52.12381
182
0.685182
f14fc68d0fb0c7d554951027c10a514d642235f8
1,568
py
Python
ietf/codestand/requests/urls.py
wpjesus/codematch
eee7405259cce9239ea0545a2a1300ee1accfe94
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2015-09-02T19:53:12.000Z
2015-09-02T19:53:12.000Z
ietf/codestand/requests/urls.py
wpjesus/codematch
eee7405259cce9239ea0545a2a1300ee1accfe94
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ietf/codestand/requests/urls.py
wpjesus/codematch
eee7405259cce9239ea0545a2a1300ee1accfe94
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, url from ietf.codestand.requests import views urlpatterns = patterns('ietf.codestand.requests.views', url(r'^show_list/$', views.show_list, name="show_list"), url(r'^show_list/(?P<type_list>.*)/(?P<att>.*)/(?P<state>.*)/(?P<page>.*)$'...
68.173913
116
0.470026
c04f4330fd4f1940ddbb703fefb2086a42c4c91b
17,136
py
Python
lib/artifact_lib.py
patriotemeritus/grr
bf2b9268c8b9033ab091e27584986690438bd7c3
[ "Apache-2.0" ]
1
2015-06-24T09:07:20.000Z
2015-06-24T09:07:20.000Z
lib/artifact_lib.py
patriotemeritus/grr
bf2b9268c8b9033ab091e27584986690438bd7c3
[ "Apache-2.0" ]
3
2020-09-11T12:54:50.000Z
2020-09-11T12:55:01.000Z
lib/artifact_lib.py
Tourountzis/grr
0ac377613af92f23948b829d7cf86b9b947b1e44
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Library for processing of artifacts. This file contains non-GRR specific pieces of artifact processing and is intended to end up as an independent library. """ import itertools import os import re import yaml import logging from grr.lib import objectfilter from grr.lib import rdfvalue cla...
37.090909
80
0.670051
22dc6a16d7323240fdf1017217c553649480a4e8
7,588
py
Python
xobox/utils/version.py
gitter-badger/xobox
5278774f4dea55c54fa06803326bfbb9355caf47
[ "MIT" ]
null
null
null
xobox/utils/version.py
gitter-badger/xobox
5278774f4dea55c54fa06803326bfbb9355caf47
[ "MIT" ]
null
null
null
xobox/utils/version.py
gitter-badger/xobox
5278774f4dea55c54fa06803326bfbb9355caf47
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ xobox.utils.version ~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2017 by the Stormrose Project team, see AUTHORS. :license: MIT License, see LICENSE for details. """ from .convert import to_str import xobox import os.path import subprocess import datetime def get_version(*a...
38.714286
116
0.641803
0ec6c9214288eafff0521eab8d3d9a5c9e9202f4
282
py
Python
ultimatewebsite/downloads/admin.py
poshan0126/class-ultimate-classof2020
722d8fac6f354aa22fd41094d38a4e20c1e354fd
[ "MIT" ]
null
null
null
ultimatewebsite/downloads/admin.py
poshan0126/class-ultimate-classof2020
722d8fac6f354aa22fd41094d38a4e20c1e354fd
[ "MIT" ]
null
null
null
ultimatewebsite/downloads/admin.py
poshan0126/class-ultimate-classof2020
722d8fac6f354aa22fd41094d38a4e20c1e354fd
[ "MIT" ]
null
null
null
from django.contrib import admin from downloads.models import DownloadItem # Register your models here. class DownloadItemAdmin(admin.ModelAdmin): ''' Admin View for DownloadItem ''' list_display = ('file',) admin.site.register(DownloadItem, DownloadItemAdmin)
25.636364
52
0.744681
3edff7e0945b08f34e9093808ac9974a23fae43d
1,604
py
Python
setup.py
rhapsodyman/Robotframework-Database-Library
b793092f35bd514a7d6210de03d7b0e9e972391b
[ "Apache-2.0" ]
3
2016-04-21T05:07:13.000Z
2021-06-16T15:25:22.000Z
setup.py
rhapsodyman/Robotframework-Database-Library
b793092f35bd514a7d6210de03d7b0e9e972391b
[ "Apache-2.0" ]
2
2016-05-07T07:56:50.000Z
2018-01-19T03:01:17.000Z
setup.py
rhapsodyman/Robotframework-Database-Library
b793092f35bd514a7d6210de03d7b0e9e972391b
[ "Apache-2.0" ]
2
2016-05-19T06:25:37.000Z
2016-06-22T09:59:10.000Z
#!/usr/bin/env python # Copyright (c) 2010 Franz Allan Valencia See # # 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 requir...
33.416667
88
0.675187
bdbae1802e900ee0ca1382715b2de6f8f03cd0c1
1,865
py
Python
mresvgene/get_wgsContig.py
dnolivieri/MResVgene
08d5cc2368b051ab64ac593b8ebb1b725265f30a
[ "MIT" ]
null
null
null
mresvgene/get_wgsContig.py
dnolivieri/MResVgene
08d5cc2368b051ab64ac593b8ebb1b725265f30a
[ "MIT" ]
null
null
null
mresvgene/get_wgsContig.py
dnolivieri/MResVgene
08d5cc2368b051ab64ac593b8ebb1b725265f30a
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ dnolivieri: updated ...4 nov 2015 *** Just gets the contigs specified.... """ import numpy as np import time import os, fnmatch import sys import itertools from operator import itemgetter, attrgetter import math from Bio import SeqIO from Bio import Seq from Bio.SeqRecord import Se...
23.3125
66
0.624129
628c7f2a5260b1cc64cfcc5d255131450453ff6a
3,155
py
Python
UDA/pytorch0.3/DAN/DatasetsGeneratorFromFiles.py
Marwaahmed96/deep-transfer-learning
a1d65b075330d7777479c2a070b5bdfad0f918cd
[ "MIT" ]
null
null
null
UDA/pytorch0.3/DAN/DatasetsGeneratorFromFiles.py
Marwaahmed96/deep-transfer-learning
a1d65b075330d7777479c2a070b5bdfad0f918cd
[ "MIT" ]
null
null
null
UDA/pytorch0.3/DAN/DatasetsGeneratorFromFiles.py
Marwaahmed96/deep-transfer-learning
a1d65b075330d7777479c2a070b5bdfad0f918cd
[ "MIT" ]
null
null
null
import numpy as np import h5py from torch.utils.data import Dataset class DatasetGenerator(Dataset): def __init__(self, data, options, patches, phase='train'): self.data= data self.phase = phase self.patches= patches self.options= options self.batch_size= options['batch_siz...
37.559524
120
0.482092
1bbd96d604b84d2e7ba8ed4872d3b6e282ec61c8
2,374
py
Python
discord/types/audit_log.py
jeromedontdev/discord.py
42bab370a73440fa8af2380211ad92ccb6bf7f46
[ "MIT" ]
13
2020-12-16T06:13:11.000Z
2021-04-15T12:01:38.000Z
discord/types/audit_log.py
penguenn/discord.py
fb024546ffd12cda771bb58a762b2ebc824f0299
[ "MIT" ]
1
2021-05-23T16:08:10.000Z
2021-05-23T16:08:10.000Z
discord/types/audit_log.py
penguenn/discord.py
fb024546ffd12cda771bb58a762b2ebc824f0299
[ "MIT" ]
6
2020-12-16T00:01:24.000Z
2021-02-05T12:32:54.000Z
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz 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, merg...
22.186916
75
0.710194
3307b9dc0d6a18c1287689c8de5483c228aaac18
2,058
py
Python
herbie_core/services/json_schema_validator.py
barash-asenov/herbie
86fcec23d5b0cd167a830adab84aa4e2e5d0d79d
[ "MIT" ]
9
2020-01-28T09:22:18.000Z
2021-08-17T17:17:26.000Z
herbie_core/services/json_schema_validator.py
barash-asenov/herbie
86fcec23d5b0cd167a830adab84aa4e2e5d0d79d
[ "MIT" ]
6
2020-01-24T15:05:27.000Z
2021-09-07T12:05:37.000Z
herbie_core/services/json_schema_validator.py
barash-asenov/herbie
86fcec23d5b0cd167a830adab84aa4e2e5d0d79d
[ "MIT" ]
5
2020-01-29T16:07:31.000Z
2021-06-24T13:10:17.000Z
import json import re from jsonschema import Draft7Validator, draft7_format_checker from herbie_core.constants import ValidatorResponseConstants from herbie_core.services.schema_registry import SchemaRegistry class JsonSchemaValidator: def __init__(self): self._schema_registry = SchemaRegistry() def...
41.16
91
0.66035
b7e36034ed3f18f586e6c9c70e9da216375537c1
5,044
py
Python
app/main/bokeh_plot_wedge.py
bdowdell/flask_pyseistuned
b64ba2baf7aaf41929c548077160e773d5b659ca
[ "Apache-2.0" ]
1
2021-03-05T21:31:17.000Z
2021-03-05T21:31:17.000Z
app/main/bokeh_plot_wedge.py
bdowdell/flask_pyseistuned
b64ba2baf7aaf41929c548077160e773d5b659ca
[ "Apache-2.0" ]
1
2021-03-01T18:29:23.000Z
2021-03-01T18:29:23.000Z
app/main/bokeh_plot_wedge.py
bdowdell/flask_pyseistuned
b64ba2baf7aaf41929c548077160e773d5b659ca
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Copyright 2020, Benjamin L. Dowdell 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 ...
32.127389
116
0.622918