hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
576acce6fb8aee36735ff671a49a541abb4f2890
750
py
Python
setup.py
ksachdeva/symbulate
409188680c599622140ff6c984c95703173472e8
[ "MIT" ]
25
2017-04-04T01:55:22.000Z
2022-03-28T17:57:49.000Z
setup.py
ksachdeva/symbulate
409188680c599622140ff6c984c95703173472e8
[ "MIT" ]
67
2017-06-27T23:32:29.000Z
2022-01-15T19:57:28.000Z
setup.py
ksachdeva/symbulate
409188680c599622140ff6c984c95703173472e8
[ "MIT" ]
21
2017-04-04T01:55:22.000Z
2022-01-11T20:03:52.000Z
from setuptools import setup, find_packages setup( name="symbulate", version="0.5.5", description="A symbolic algebra for specifying simulations.", url="https://github.com/dlsun/symbulate", author="Dennis Sun", author_email="dsun09@calpoly.edu", license="GPLv3", classifiers=[ ...
22.058824
75
0.612
576b51feddb0ad573026e5dec3bf36423cf565ad
833
py
Python
snakemake/scripts/pipeline/gc.py
BDI-pathogens/ShiverCovid
a032a7a786288b28994eae51215e7851f7571018
[ "MIT" ]
null
null
null
snakemake/scripts/pipeline/gc.py
BDI-pathogens/ShiverCovid
a032a7a786288b28994eae51215e7851f7571018
[ "MIT" ]
null
null
null
snakemake/scripts/pipeline/gc.py
BDI-pathogens/ShiverCovid
a032a7a786288b28994eae51215e7851f7571018
[ "MIT" ]
null
null
null
from __future__ import print_function import gzip import os import sys from decimal import Decimal if __name__ == '__main__': if not len(sys.argv) > 1 or not os.path.isfile(sys.argv[1]): sys.stderr.write('Usage: gc.py <fastq[.gz] file with no blank lines>\n') sys.exit(1) gc, ttl = calculate_...
28.724138
84
0.623049
576cac074c13eb095065c6d2030dffe84a3c2e7c
725
py
Python
blind_automation/event/blocker.py
RaphiOriginal/blindAutomation
47f087be0ef33983cfc372abe09760c9a64f1849
[ "MIT" ]
1
2020-08-20T19:43:14.000Z
2020-08-20T19:43:14.000Z
blind_automation/event/blocker.py
RaphiOriginal/blindAutomation
47f087be0ef33983cfc372abe09760c9a64f1849
[ "MIT" ]
null
null
null
blind_automation/event/blocker.py
RaphiOriginal/blindAutomation
47f087be0ef33983cfc372abe09760c9a64f1849
[ "MIT" ]
null
null
null
from typing import Optional, TypeVar from .event import EventBlocker T = TypeVar('T')
21.323529
90
0.609655
576cb2eea467a88f13b66f007bd906188c23f5fc
4,239
py
Python
lib/systems/chlorophyll_c2.py
pulsar-chem/BPModule
f8e64e04fdb01947708f098e833600c459c2ff0e
[ "BSD-3-Clause" ]
null
null
null
lib/systems/chlorophyll_c2.py
pulsar-chem/BPModule
f8e64e04fdb01947708f098e833600c459c2ff0e
[ "BSD-3-Clause" ]
null
null
null
lib/systems/chlorophyll_c2.py
pulsar-chem/BPModule
f8e64e04fdb01947708f098e833600c459c2ff0e
[ "BSD-3-Clause" ]
null
null
null
import pulsar as psr def load_ref_system(): """ Returns chlorophyll_c2 as found in the IQMol fragment library. All credit to https://github.com/nutjunkie/IQmol """ return psr.make_system(""" C -2.51105 2.48309 -0.00367 C -1.01315 4.06218 0.09798...
52.333333
70
0.362114
5771a8c9a11c0b65fd2a5981efe83e45f9b456e5
14,669
py
Python
fth.py
anonymous-sys19/fth
cbde3030f43d048970e1471dc9c4fafba50fedb8
[ "Apache-2.0" ]
2
2021-02-01T18:31:19.000Z
2021-05-28T19:14:51.000Z
fth.py
anonymous-sys19/fth
cbde3030f43d048970e1471dc9c4fafba50fedb8
[ "Apache-2.0" ]
null
null
null
fth.py
anonymous-sys19/fth
cbde3030f43d048970e1471dc9c4fafba50fedb8
[ "Apache-2.0" ]
null
null
null
import os import time import sys import random user_pass = ('''admin admi admin universo html veggeta Admin bados free-fire royale clang free fire anonimo anonimous anoni bills anonymous Aanonimous pass password wordlist kali linux kali-linux start Hacker parrot ubuntu blacken redhat deepin lubuntu depin gogeta hacke...
23.247227
118
0.439703
5771c942a9c694ad105aa8ab9cf5971afb8d6de1
5,637
py
Python
AN-24_Nizhneangarsk/data/google_earth.py
paulross/pprune-calc
ebed46e7e029bc7a3067f50ad180a1df236052cf
[ "MIT" ]
1
2020-10-24T15:46:18.000Z
2020-10-24T15:46:18.000Z
AN-24_Nizhneangarsk/data/google_earth.py
paulross/pprune-calc
ebed46e7e029bc7a3067f50ad180a1df236052cf
[ "MIT" ]
null
null
null
AN-24_Nizhneangarsk/data/google_earth.py
paulross/pprune-calc
ebed46e7e029bc7a3067f50ad180a1df236052cf
[ "MIT" ]
null
null
null
import itertools import math import pprint import sys import typing import map_funcs GOOGLE_EARTH_AIRPORT_IMAGES = { 'GoogleEarth_AirportCamera_C.jpg' : { 'path': 'video_images/GoogleEarth_AirportCamera_C.jpg', 'width': 4800, 'height': 3011, # Originally measured on the 100m legend...
45.829268
105
0.693809
5772fd07bf52569383712e22c1c25c0c240b9a7f
4,527
py
Python
mongo_queue/queue.py
shunyeka/mongo_queue
df20894e96bfb93c6b710cd5b3d604498fb69576
[ "MIT" ]
6
2020-08-05T13:08:34.000Z
2022-02-10T10:01:03.000Z
mongo_queue/queue.py
shunyeka/mongo_queue
df20894e96bfb93c6b710cd5b3d604498fb69576
[ "MIT" ]
null
null
null
mongo_queue/queue.py
shunyeka/mongo_queue
df20894e96bfb93c6b710cd5b3d604498fb69576
[ "MIT" ]
4
2020-08-05T13:08:48.000Z
2022-03-29T17:13:18.000Z
import pymongo from datetime import datetime, timedelta from mongo_queue.job import Job from uuid import uuid4 from pymongo import errors DEFAULT_INSERT = { "attempts": 0, "locked_by": None, "locked_at": None, "last_error": None }
33.533333
109
0.522863
5773699f898326e720821addb402b1324a622597
776
py
Python
CursoGuanabara/ex71_aula15_guanabara.py
cirino/python
6c45b5305aebeeeebb7ffef335700e41cc0b6b3b
[ "MIT" ]
1
2018-05-06T01:25:28.000Z
2018-05-06T01:25:28.000Z
CursoGuanabara/ex71_aula15_guanabara.py
cirino/python
6c45b5305aebeeeebb7ffef335700e41cc0b6b3b
[ "MIT" ]
1
2019-02-10T18:46:37.000Z
2019-02-12T21:17:50.000Z
CursoGuanabara/ex71_aula15_guanabara.py
cirino/python
6c45b5305aebeeeebb7ffef335700e41cc0b6b3b
[ "MIT" ]
null
null
null
print(''' Exerccio 71 da aula 15 de Python Curso do Guanabara Day 24 Code Python - 23/05/2018 ''') print('{:^30}'.format('BANCO DO CIRINO')) print('=' * 30) n = int(input('Qual o valor para sacar? R$ ')) total = n nota = 50 # comear de cima para baixo na estrutura qtdNota = 0 while True: if total ...
18.47619
56
0.487113
5773c7f1c83fb78f2af7b935f1a55fb941e08abf
1,823
py
Python
models/face_completion.py
MartinKondor/MachineLearning
2deb257796cb63bcc4d13594484e266a93ab7a83
[ "MIT" ]
null
null
null
models/face_completion.py
MartinKondor/MachineLearning
2deb257796cb63bcc4d13594484e266a93ab7a83
[ "MIT" ]
null
null
null
models/face_completion.py
MartinKondor/MachineLearning
2deb257796cb63bcc4d13594484e266a93ab7a83
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from sklearn.utils.validation import check_random_state from sklearn.datasets import fetch_olivetti_faces from sklearn.externals import joblib rng = check_random_state(21) dataset = fetch_olivetti_faces() X = dataset.images.reshape(dataset.images.shape[0], -1) trai...
34.396226
130
0.690071
57742842c8a7ea0601406b324c435a1136e7bdad
1,815
py
Python
tests/utility.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
1
2021-05-06T19:45:54.000Z
2021-05-06T19:45:54.000Z
tests/utility.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
tests/utility.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
TONES = list('CDEFGAB')
29.274194
88
0.648485
577497e84fee800ed831d409f33393bf3915e7c8
3,447
py
Python
backend/api/serializers/information_serializer.py
ferdn4ndo/infotrem
4728c5fe8385dcc0a1c75068429fa20e2afbf6f2
[ "MIT" ]
null
null
null
backend/api/serializers/information_serializer.py
ferdn4ndo/infotrem
4728c5fe8385dcc0a1c75068429fa20e2afbf6f2
[ "MIT" ]
1
2020-06-21T18:38:14.000Z
2020-06-21T21:57:09.000Z
backend/api/serializers/information_serializer.py
ferdn4ndo/infotrem
4728c5fe8385dcc0a1c75068429fa20e2afbf6f2
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db.models import Sum from rest_framework import serializers from api.models.information_model import Information from api.models.information_effect_model import InformationEffect from api.models.information_vote_model import InformationVote from api.serializers.u...
34.818182
103
0.691326
5774e1717dedb11588476f4f78df3c3d0a8e219f
3,493
py
Python
insightface/face_model.py
dniku/insightface
763060b2608aaa9e77103ac6aaa393878501dee3
[ "MIT" ]
null
null
null
insightface/face_model.py
dniku/insightface
763060b2608aaa9e77103ac6aaa393878501dee3
[ "MIT" ]
null
null
null
insightface/face_model.py
dniku/insightface
763060b2608aaa9e77103ac6aaa393878501dee3
[ "MIT" ]
null
null
null
import os import cv2 import mxnet as mx import numpy as np from . import face_preprocess from .mtcnn_detector import MtcnnDetector
37.159574
146
0.603206
577604174c837cf71abd588c86d1070a895c9358
316
py
Python
src/newspaperkk.py
harakiriboy/Python-Final-exam-
11a08453fe4dd547d09c97baeda57f3899b1e17a
[ "MIT" ]
null
null
null
src/newspaperkk.py
harakiriboy/Python-Final-exam-
11a08453fe4dd547d09c97baeda57f3899b1e17a
[ "MIT" ]
null
null
null
src/newspaperkk.py
harakiriboy/Python-Final-exam-
11a08453fe4dd547d09c97baeda57f3899b1e17a
[ "MIT" ]
null
null
null
import newspaper from newspaper import Article
18.588235
47
0.607595
577688ba8ec27db2c2499b1d093cb54fc4a94c4c
71
py
Python
Server/app/schema/utils/__init__.py
Team-SeeTo/SeeTo-Backend
19990cd6f4895e773eaa504f7b7a07ddbb5856e5
[ "Apache-2.0" ]
4
2018-06-18T06:50:12.000Z
2018-11-15T00:08:24.000Z
Server/app/schema/utils/__init__.py
Team-SeeTo/SeeTo-Backend
19990cd6f4895e773eaa504f7b7a07ddbb5856e5
[ "Apache-2.0" ]
null
null
null
Server/app/schema/utils/__init__.py
Team-SeeTo/SeeTo-Backend
19990cd6f4895e773eaa504f7b7a07ddbb5856e5
[ "Apache-2.0" ]
null
null
null
from .activity_logger import idea_activity_logger, todo_activity_logger
71
71
0.915493
57778b9212cbd84692109c1076197d5f351d5c74
1,302
py
Python
h2o-py/tests/testdir_misc/pyunit_pubdev_7506_model_download_with_cv.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
6,098
2015-05-22T02:46:12.000Z
2022-03-31T16:54:51.000Z
h2o-py/tests/testdir_misc/pyunit_pubdev_7506_model_download_with_cv.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
2,517
2015-05-23T02:10:54.000Z
2022-03-30T17:03:39.000Z
h2o-py/tests/testdir_misc/pyunit_pubdev_7506_model_download_with_cv.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
2,199
2015-05-22T04:09:55.000Z
2022-03-28T22:20:45.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- import h2o import os from h2o.estimators.gbm import H2OGradientBoostingEstimator from tests import pyunit_utils if __name__ == "__main__": pyunit_utils.standalone_test(model_download_with_cv) else: model_download_with_cv()
38.294118
114
0.771889
5777cb4aa061f3c293f389812b1b6779768ca886
890
py
Python
CNN/VGGNET/vgg16_features.py
reddyprasade/Deep-Learning
35fea69af72f94f6ad62a0f308de7bd515c27e7a
[ "MIT" ]
15
2020-01-23T12:01:22.000Z
2022-03-29T21:07:41.000Z
CNN/VGGNET/vgg16_features.py
reddyprasade/Deep-Learning
35fea69af72f94f6ad62a0f308de7bd515c27e7a
[ "MIT" ]
null
null
null
CNN/VGGNET/vgg16_features.py
reddyprasade/Deep-Learning
35fea69af72f94f6ad62a0f308de7bd515c27e7a
[ "MIT" ]
10
2020-02-12T02:52:04.000Z
2021-07-04T07:38:39.000Z
import tensorflow as tf from tensorflow.keras.applications.vgg16 import VGG16 from tensorflow.keras import models from tensorflow.keras.preprocessing import image from tensorflow.keras.applications.vgg16 import preprocess_input import numpy as np import cv2 # prebuild model with pre-trained weights on imagene...
30.689655
65
0.769663
57785e3742249e6e69fdb5606027bac6121de3f7
3,262
py
Python
evaluate.py
m4ln/HIWI_classification
f872c3da03bf999aeddd870eeed34332c8a9471a
[ "MIT" ]
1
2020-09-07T10:02:07.000Z
2020-09-07T10:02:07.000Z
evaluate.py
m4ln/HIWI_classification
f872c3da03bf999aeddd870eeed34332c8a9471a
[ "MIT" ]
1
2020-09-16T14:26:01.000Z
2020-09-16T14:26:01.000Z
evaluate.py
m4ln/HIWI_classification
f872c3da03bf999aeddd870eeed34332c8a9471a
[ "MIT" ]
1
2020-09-07T11:29:47.000Z
2020-09-07T11:29:47.000Z
""" call in shell: python evaluate.py --dir <rootdir/experiment/> --epoch <epoch to> e.g. in shell: python evaluate.py --dir Runs/se_resnet_trained_final/ --epoch 149 loops over all folds and calculates + stores the accuracies in a file in the root folder of the experiment you might change the model in line 45 from r...
34.336842
139
0.656039
5778b44bc575b3aed34007cd02dacc145c82ec6d
18,413
py
Python
Allura/allura/webhooks.py
brondsem/allura
37f4f4a68e71c7f1b8d72f4eee4c0b3d08c1a906
[ "Apache-2.0" ]
null
null
null
Allura/allura/webhooks.py
brondsem/allura
37f4f4a68e71c7f1b8d72f4eee4c0b3d08c1a906
[ "Apache-2.0" ]
null
null
null
Allura/allura/webhooks.py
brondsem/allura
37f4f4a68e71c7f1b8d72f4eee4c0b3d08c1a906
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (t...
36.174853
109
0.576875
5779139c5edd9a302a13fd80a4c26bb0aae39343
11,139
py
Python
monitor/monitor_v6_diagnostic.py
nlourie/vent-flowmeter
7aa6e3814a7bf8a7da4d81eb80da69ceb5e8da80
[ "MIT" ]
2
2020-04-13T19:22:45.000Z
2020-04-14T17:17:12.000Z
monitor/monitor_v6_diagnostic.py
nlourie/vent-flowmeter
7aa6e3814a7bf8a7da4d81eb80da69ceb5e8da80
[ "MIT" ]
null
null
null
monitor/monitor_v6_diagnostic.py
nlourie/vent-flowmeter
7aa6e3814a7bf8a7da4d81eb80da69ceb5e8da80
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Apr 7 08:38:28 2020 pyqt realtime plot tutorial source: https://www.learnpyqt.com/courses/graphics-plotting/plotting-pyqtgraph/ @author: nlourie """ from PyQt5 import QtWidgets, QtCore,uic from pyqtgraph import PlotWidget, plot,QtGui import pyqtgra...
34.700935
227
0.589281
577b488a4c6bb95a24f07ede098c7e6465673424
380
py
Python
src/quotes_crawlspider/quotes/items.py
azzamsa/learn-scrapy
8d408763ff0be21fe2e0933b91b4ad1fe082b3ec
[ "MIT" ]
null
null
null
src/quotes_crawlspider/quotes/items.py
azzamsa/learn-scrapy
8d408763ff0be21fe2e0933b91b4ad1fe082b3ec
[ "MIT" ]
null
null
null
src/quotes_crawlspider/quotes/items.py
azzamsa/learn-scrapy
8d408763ff0be21fe2e0933b91b4ad1fe082b3ec
[ "MIT" ]
null
null
null
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy
23.75
53
0.705263
577c1794e9fcb7bdccc6a2a9158ce5b0867f7053
4,230
py
Python
notebook/pandas_agg.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
174
2018-05-30T21:14:50.000Z
2022-03-25T07:59:37.000Z
notebook/pandas_agg.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
5
2019-08-10T03:22:02.000Z
2021-07-12T20:31:17.000Z
notebook/pandas_agg.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
53
2018-04-27T05:26:35.000Z
2022-03-25T07:59:37.000Z
import pandas as pd import numpy as np print(pd.__version__) # 1.0.0 print(pd.DataFrame.agg is pd.DataFrame.aggregate) # True df = pd.DataFrame({'A': [0, 1, 2], 'B': [3, 4, 5]}) print(df) # A B # 0 0 3 # 1 1 4 # 2 2 5 print(df.agg(['sum', 'mean', 'min', 'max'])) # A B # sum 3.0 12.0 # mean ...
18.883929
77
0.513002
577c3969fe84dd6102e296297a763c6f7d167111
4,016
py
Python
boonai/model.py
Scapogo/boonai
ebc889cdc7a67e613c512f694ed8050e78b9b4e8
[ "MIT" ]
null
null
null
boonai/model.py
Scapogo/boonai
ebc889cdc7a67e613c512f694ed8050e78b9b4e8
[ "MIT" ]
null
null
null
boonai/model.py
Scapogo/boonai
ebc889cdc7a67e613c512f694ed8050e78b9b4e8
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy from flask_user import UserMixin from itsdangerous import (TimedJSONWebSignatureSerializer as Serializer, BadSignature, SignatureExpired) db = SQLAlchemy()
35.539823
89
0.677042
577d66ecbe1bdf71f6e1d9db706fc825c2daa640
6,324
py
Python
botfw/bitflyer/api_web.py
Snufkin0866/btc_bot_framework
164db3924ec2126e71cfac4be96acc65fb47d1d6
[ "MIT" ]
3
2020-10-17T14:08:57.000Z
2021-07-08T03:30:52.000Z
botfw/bitflyer/api_web.py
Snufkin0866/btc_bot_framework
164db3924ec2126e71cfac4be96acc65fb47d1d6
[ "MIT" ]
null
null
null
botfw/bitflyer/api_web.py
Snufkin0866/btc_bot_framework
164db3924ec2126e71cfac4be96acc65fb47d1d6
[ "MIT" ]
2
2021-01-07T15:12:38.000Z
2021-04-01T19:11:50.000Z
import json from urllib.parse import urlencode import requests from bs4 import BeautifulSoup from .api import BitflyerApi
31.778894
79
0.542062
577f6cf385c7b053dbf2eea92626a248674a8677
2,969
py
Python
codes/train.py
PowerLZY/malware_classification_bdci
42058b076a06174d629cc759a1d0e81224baeb06
[ "MIT" ]
8
2022-02-14T07:10:14.000Z
2022-03-23T05:18:43.000Z
codes/train.py
PowerLZY/malware_classification_bdci
42058b076a06174d629cc759a1d0e81224baeb06
[ "MIT" ]
null
null
null
codes/train.py
PowerLZY/malware_classification_bdci
42058b076a06174d629cc759a1d0e81224baeb06
[ "MIT" ]
1
2022-02-17T06:21:23.000Z
2022-02-17T06:21:23.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : train.py @Contact : 3289218653@qq.com @License : (C)Copyright 2021-2022 PowerLZY @Modify Time @Author @Version @Desciption ------------ ------- -------- ----------- 2021-10-04 15:03 PowerLZY&yuan_mes ...
33.359551
144
0.633883
5782896b4d6e5c85e7c0c81d31dbd8cff1438078
453
py
Python
crawlMp/enums.py
domarm-comat/crawlMp
32b66573f351a2f28fcb7ce8627f8605975f76eb
[ "MIT" ]
1
2021-12-03T15:14:36.000Z
2021-12-03T15:14:36.000Z
crawlMp/enums.py
domarm-comat/crawlMp
32b66573f351a2f28fcb7ce8627f8605975f76eb
[ "MIT" ]
2
2021-12-03T16:10:14.000Z
2021-12-03T18:09:33.000Z
crawlMp/enums.py
domarm-comat/crawlMp
32b66573f351a2f28fcb7ce8627f8605975f76eb
[ "MIT" ]
null
null
null
from enum import Enum from typing import Tuple, Type, Optional Header_ref = Tuple[Header, Type, Optional[str]]
16.777778
47
0.602649
5782a0f511913dc91413d535eac081c7bb757a0f
6,190
py
Python
protocols.py
MartinKist/p2p
046c6258f936789aff73b884235b9b202e7e7f7a
[ "MIT" ]
2
2021-06-29T11:32:59.000Z
2021-06-30T09:11:24.000Z
protocols.py
MartinKist/p2p
046c6258f936789aff73b884235b9b202e7e7f7a
[ "MIT" ]
null
null
null
protocols.py
MartinKist/p2p
046c6258f936789aff73b884235b9b202e7e7f7a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # (c) 2021 Martin Kistler from abc import ABC, abstractmethod from enum import Enum from os import linesep from twisted.internet import reactor from twisted.internet.error import ConnectionDone from twisted.internet.protocol import Factory, Protocol from twisted.logger import Logger from twiste...
30.79602
121
0.664297
578339eb7a9855dc70e1449145cbddebafa88983
1,803
py
Python
002-python-oop/code/021_oop_class_builtin_attributes.py
CHemaxi/python
6544ea79be447bcd39488e7366685966bebd9964
[ "MIT" ]
null
null
null
002-python-oop/code/021_oop_class_builtin_attributes.py
CHemaxi/python
6544ea79be447bcd39488e7366685966bebd9964
[ "MIT" ]
null
null
null
002-python-oop/code/021_oop_class_builtin_attributes.py
CHemaxi/python
6544ea79be447bcd39488e7366685966bebd9964
[ "MIT" ]
null
null
null
""" MARKDOWN --- YamlDesc: CONTENT-ARTICLE Title: python builtin class attributes MetaDescription: python object oriented programming class builtin attributes __doc__, __name__, __module__, __bases__ example code, tutorials MetaKeywords: python object oriented programming class builtin attributes __doc__, __name__, __m...
30.05
141
0.709373
57844212fa28ebcdefb93bfed459606ee05dd39b
2,950
py
Python
Prototype_2/web/blueprints/index.py
amal66/Kawm
3bf442ea1f4b572f4ec840e0ee6ec7d96ae23133
[ "MIT" ]
null
null
null
Prototype_2/web/blueprints/index.py
amal66/Kawm
3bf442ea1f4b572f4ec840e0ee6ec7d96ae23133
[ "MIT" ]
null
null
null
Prototype_2/web/blueprints/index.py
amal66/Kawm
3bf442ea1f4b572f4ec840e0ee6ec7d96ae23133
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template,redirect,url_for,request,flash,make_response from flask import current_app as app from flask_login import ( LoginManager, current_user, login_required, login_user, logout_user, UserMixin, ) from ..models import User, db from ..security import hash_str...
43.382353
124
0.557288
57855a5d43bc96be7a4767d1b460ba7bd929c017
2,072
py
Python
sensor/GY521_MPU6050.py
Smart4L/embedded-server
cf10ebb1ccc3002b45c20315ec521eaf1a9e7f10
[ "MIT" ]
null
null
null
sensor/GY521_MPU6050.py
Smart4L/embedded-server
cf10ebb1ccc3002b45c20315ec521eaf1a9e7f10
[ "MIT" ]
null
null
null
sensor/GY521_MPU6050.py
Smart4L/embedded-server
cf10ebb1ccc3002b45c20315ec521eaf1a9e7f10
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import time from math import atan2, degrees import board import busio import adafruit_mpu6050 if __name__ == '__main__': sensor = GY521_MPU6050("GY521_MPU6050") try: while True: print(sensor.measure()) time.sleep(1) except Exception as e: prin...
28
153
0.64527
5785a172941ebdf8c77fe0b87766c3f3223d087b
1,832
py
Python
sumo/tools/projects/TaxiFCD_Krieg/src/taxiQuantity/TaxisPerEdge.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/tools/projects/TaxiFCD_Krieg/src/taxiQuantity/TaxisPerEdge.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/tools/projects/TaxiFCD_Krieg/src/taxiQuantity/TaxisPerEdge.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
2
2017-12-14T16:41:59.000Z
2020-10-16T17:51:27.000Z
#!/usr/bin/env python # -*- coding: Latin-1 -*- """ @file TaxisPerEdge.py @author Sascha Krieg @author Daniel Krajzewicz @author Michael Behrisch @date 2008-04-08 @version $Id$ Counts for every edge in the given FCD-file the number of Taxis which used this edge. After that this information can be visualized w...
26.941176
95
0.674672
5785e6a036807a5d9394d69f5f7eaf543965d731
879
py
Python
Tree/maxDepth.py
konantian/LeetCode
f97609cfe139159bc000cac5b39a1d0c28517d24
[ "MIT" ]
2
2018-06-02T03:57:20.000Z
2018-10-20T22:15:17.000Z
Tree/maxDepth.py
konantian/leetcode
f97609cfe139159bc000cac5b39a1d0c28517d24
[ "MIT" ]
null
null
null
Tree/maxDepth.py
konantian/leetcode
f97609cfe139159bc000cac5b39a1d0c28517d24
[ "MIT" ]
1
2019-01-31T05:17:19.000Z
2019-01-31T05:17:19.000Z
''' Source : https://leetcode.com/problems/maximum-depth-of-binary-tree/ Author : Yuan Wang Date : 2018-07-21 /********************************************************************************** *Given a binary tree, find its maximum depth. * *The maximum depth is the number of nodes along the longest path from the ...
21.975
84
0.544937
57872eecc46c7a0d72ec8a778e7292de65dabc9e
6,358
py
Python
cli/mmt/mmtcli.py
Centaurioun/modernmt
4dec42090088fdecf2d75c3e1ed9d41e603a7de1
[ "Apache-2.0" ]
154
2019-04-18T04:46:45.000Z
2022-03-23T21:21:50.000Z
cli/mmt/mmtcli.py
Centaurioun/modernmt
4dec42090088fdecf2d75c3e1ed9d41e603a7de1
[ "Apache-2.0" ]
406
2016-01-08T22:42:59.000Z
2019-01-31T17:07:39.000Z
cli/mmt/mmtcli.py
Centaurioun/modernmt
4dec42090088fdecf2d75c3e1ed9d41e603a7de1
[ "Apache-2.0" ]
38
2016-05-29T16:50:40.000Z
2018-12-15T02:53:42.000Z
import os import re from cli.mmt import MMT_HOME_DIR, MMT_LIB_DIR, MMT_BIN_DIR, MMT_JAR, MMT_PLUGINS_JARS from cli.utils import osutils __java_version = __get_java_version() assert __java_version is not None, 'missing Java executable, please check INSTALL.md' assert __java_version > 7, 'wrong version of Java: requi...
37.845238
120
0.617332
57883f6ad7f708a53fa8b719d4d89b28c98e01a8
2,497
py
Python
DocumentClassicifation.py
ValentineNauli/My_MachineLearning
3c32253e5f1ef43dc94de14da47e4e456d5bfb3f
[ "Apache-2.0" ]
1
2020-10-20T02:33:50.000Z
2020-10-20T02:33:50.000Z
DocumentClassicifation.py
ValentineNauli/My_MachineLearning
3c32253e5f1ef43dc94de14da47e4e456d5bfb3f
[ "Apache-2.0" ]
null
null
null
DocumentClassicifation.py
ValentineNauli/My_MachineLearning
3c32253e5f1ef43dc94de14da47e4e456d5bfb3f
[ "Apache-2.0" ]
null
null
null
#AUTHOR : HAMORA HADI """ You have been given a stack of documents that have already been processed and some that have not. Your task is to classify these documents into one of eight categories: [1,2,3,...8]. You look at the specifications on what a document must contain and are baffled by the jargon. However...
31.607595
133
0.635162
57885b1f14f79ac4171cf51a11ef29a2c3dc1503
4,232
py
Python
utils/make_temporal_subsets.py
davidhwyllie/findNeighbour4
d42e10711e59e93ebf0e798fbb1598929f662c9c
[ "MIT" ]
null
null
null
utils/make_temporal_subsets.py
davidhwyllie/findNeighbour4
d42e10711e59e93ebf0e798fbb1598929f662c9c
[ "MIT" ]
14
2021-11-26T14:43:25.000Z
2022-03-22T00:39:17.000Z
utils/make_temporal_subsets.py
davidhwyllie/findNeighbour4
d42e10711e59e93ebf0e798fbb1598929f662c9c
[ "MIT" ]
null
null
null
""" generates lists of SARS-CoV-2 samples which occurred before a particular date Also generates a dictionary of reference compressed sequences And a subset of these Together, these can be passed to a ram_persistence object which can be used instead of an fn3persistence object to test the performance of PCA, or for o...
36.8
127
0.756144
5788ff69ca8306377b664e4a0c3f2b102ca5c7c0
7,476
py
Python
kiauhoku/dartmouth.py
zclaytor/kiauhoku
5b3357dc2093577f97f80cc829c1ca785e4fae63
[ "MIT" ]
12
2019-10-12T03:10:17.000Z
2021-05-05T04:18:49.000Z
kiauhoku/dartmouth.py
zclaytor/kiauhoku
5b3357dc2093577f97f80cc829c1ca785e4fae63
[ "MIT" ]
1
2022-02-07T10:55:11.000Z
2022-02-26T00:27:31.000Z
kiauhoku/dartmouth.py
zclaytor/kiauhoku
5b3357dc2093577f97f80cc829c1ca785e4fae63
[ "MIT" ]
1
2019-10-18T21:50:32.000Z
2019-10-18T21:50:32.000Z
import os import re import pickle import numpy as np import pandas as pd from tqdm import tqdm # Assign labels used in eep conversion eep_params = dict( age = 'Age (yrs)', hydrogen_lum = 'L_H', lum = 'Log L', logg = 'Log g', log_teff = 'Log T', core_hydrogen_frac = 'X_core', # must be added ...
32.224138
80
0.651284
57891dccfc7a6660f1ab82ce9811e218955d5cf9
685
py
Python
geoscript/geom/io/wkt.py
jericks/geoscript-py
8dc600343f42dd87b1981023522a1a8cf56006a9
[ "MIT" ]
null
null
null
geoscript/geom/io/wkt.py
jericks/geoscript-py
8dc600343f42dd87b1981023522a1a8cf56006a9
[ "MIT" ]
null
null
null
geoscript/geom/io/wkt.py
jericks/geoscript-py
8dc600343f42dd87b1981023522a1a8cf56006a9
[ "MIT" ]
null
null
null
from com.vividsolutions.jts.io import WKTReader, WKTWriter from geoscript.util import deprecated def readWKT(wkt): """ Constructs a geometry from Well Known Text. *wkt* is the Well Known Text string representing the geometry as described by http://en.wikipedia.org/wiki/Well-known_text. >>> readWKT('POINT (1...
20.757576
125
0.683212
578b06c44ad4120f5203622c4930a21961e766fa
1,053
py
Python
config/settings/production.py
maxelite1520/multi-vendor-e-commerce
98dfe5533a7f7ce33ef8e43ecb8669614d7298c5
[ "MIT" ]
null
null
null
config/settings/production.py
maxelite1520/multi-vendor-e-commerce
98dfe5533a7f7ce33ef8e43ecb8669614d7298c5
[ "MIT" ]
1
2021-09-01T15:21:10.000Z
2021-09-01T15:21:10.000Z
config/settings/production.py
maxelite1520/multi-vendor-e-commerce
98dfe5533a7f7ce33ef8e43ecb8669614d7298c5
[ "MIT" ]
null
null
null
import os import dj_database_url import dotenv from .base import BASE_DIR env = BASE_DIR / '.env' dotenv.read_dotenv(env) # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False ALLOWED_HOSTS = ["multiple-vendor-e-commerce.herokuapp.com"] # Database # https://docs.djangoproject.com/en/3....
19.5
65
0.750237
578c743bedee8f67d9035661125837e42bfc1a81
638
py
Python
webapp/starter/tracker/views.py
jersobh/docker-covidoff
a0d62f6f7c2bae5f1e6a567abdcbf59a90a5e03f
[ "MIT" ]
null
null
null
webapp/starter/tracker/views.py
jersobh/docker-covidoff
a0d62f6f7c2bae5f1e6a567abdcbf59a90a5e03f
[ "MIT" ]
6
2020-03-19T20:13:44.000Z
2021-06-10T18:42:30.000Z
webapp/starter/tracker/views.py
jersobh/docker-covidoff
a0d62f6f7c2bae5f1e6a567abdcbf59a90a5e03f
[ "MIT" ]
null
null
null
from django.views import View from django.http import JsonResponse from tracker.models import Match from tracker.forms import MatchForm import json
21.266667
61
0.713166
57927aebea275b8a5baaf7a2a83d8d6768dd7f0a
2,400
py
Python
precise/covariance/ledoitwolf.py
iklasky/precise
dd0b772b0c15ce1e47e076a027bb1b26239ed16d
[ "MIT" ]
null
null
null
precise/covariance/ledoitwolf.py
iklasky/precise
dd0b772b0c15ce1e47e076a027bb1b26239ed16d
[ "MIT" ]
null
null
null
precise/covariance/ledoitwolf.py
iklasky/precise
dd0b772b0c15ce1e47e076a027bb1b26239ed16d
[ "MIT" ]
null
null
null
from precise.covariance.movingaverage import ema_scov from precise.covariance.matrixfunctions import grand_mean, grand_shrink from sklearn.covariance._shrunk_covariance import ledoit_wolf_shrinkage import numpy as np # Experimental estimator inspired by Ledoit-Wolf # Keeps a buffer of last n_buffer observations # Tra...
25.806452
83
0.544167
57931e36703d83bfbb031c2fa680eb23f332ac35
704
py
Python
setup.py
ProrokWielki/Text2CArray
db1fdd54dcbd3ab3d728e35ebfca6a05ac230e04
[ "MIT" ]
null
null
null
setup.py
ProrokWielki/Text2CArray
db1fdd54dcbd3ab3d728e35ebfca6a05ac230e04
[ "MIT" ]
null
null
null
setup.py
ProrokWielki/Text2CArray
db1fdd54dcbd3ab3d728e35ebfca6a05ac230e04
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('README.md') as f: long_description = f.read() setup(name='Text2CArray', version='0.1.0', description='Script for generating C arrays from text.', long_description=long_description, long_description_content_type='text/markdown', # This i...
29.333333
73
0.640625
57944f7748440824b510084999250896fd1e4190
32
py
Python
robotframework-ls/tests/robotframework_ls_tests/_resources/case_vars_file/robotvars.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
92
2020-01-22T22:15:29.000Z
2022-03-31T05:19:16.000Z
robotframework-ls/tests/robotframework_ls_tests/_resources/case_vars_file/robotvars.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
604
2020-01-25T17:13:27.000Z
2022-03-31T18:58:24.000Z
robotframework-ls/tests/robotframework_ls_tests/_resources/case_vars_file/robotvars.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
39
2020-02-06T00:38:06.000Z
2022-03-15T06:14:19.000Z
VARIABLE_1 = 10 VARIABLE_2 = 20
10.666667
15
0.75
57963d19d43781ea87b371e11a9dd7e27acce2dd
7,708
py
Python
src/markovRecipe.py
schollz/parseingredient
4953eb986375304e6eaab04e26d14b3450f62b90
[ "MIT" ]
1
2020-07-10T12:52:43.000Z
2020-07-10T12:52:43.000Z
src/markovRecipe.py
schollz/parseingredient
4953eb986375304e6eaab04e26d14b3450f62b90
[ "MIT" ]
null
null
null
src/markovRecipe.py
schollz/parseingredient
4953eb986375304e6eaab04e26d14b3450f62b90
[ "MIT" ]
1
2021-10-05T05:24:57.000Z
2021-10-05T05:24:57.000Z
import json import os.path import operator import time from multiprocessing import Pool import markovify from tqdm import tqdm removeWords = ['c', 'tsp', 'qt', 'lb', 'pkg', 'oz', 'med', 'tbsp', 'sm'] removeWords2 = [" recipes "," recipe "," mashed "," fat ",' c. ',' c ','grams','gram','chopped','tbsps','tbsp','cups',...
34.720721
170
0.61741
57978560a0242c56700cc234e8aab484133ef169
11,740
py
Python
nanome/api/structure/complex.py
nanome-ai/nanome
7777a782168fe4e68f58c42f01cff9e66f3675aa
[ "MIT" ]
1
2020-04-10T09:47:54.000Z
2020-04-10T09:47:54.000Z
nanome/api/structure/complex.py
nanome-ai/nanome
7777a782168fe4e68f58c42f01cff9e66f3675aa
[ "MIT" ]
10
2019-05-30T18:29:10.000Z
2020-02-15T02:16:42.000Z
nanome/api/structure/complex.py
nanome-ai/nanome
7777a782168fe4e68f58c42f01cff9e66f3675aa
[ "MIT" ]
2
2020-02-04T02:56:21.000Z
2020-04-25T20:05:16.000Z
from nanome._internal._structure._complex import _Complex from nanome._internal import _PluginInstance from nanome._internal._network import PluginNetwork from nanome._internal._network._commands._callbacks import _Messages from nanome.util import Matrix, Logs from .io import ComplexIO from . import Base # return...
25.139186
83
0.593782
579790343ca70d2a664becf8ebf185a247791ae7
1,862
py
Python
neighbourhood/models.py
Mutembeijoe/hood_yetu
5759bbf95a8dd0c7a62987773b71a1a7531ae074
[ "MIT" ]
null
null
null
neighbourhood/models.py
Mutembeijoe/hood_yetu
5759bbf95a8dd0c7a62987773b71a1a7531ae074
[ "MIT" ]
9
2020-02-12T03:06:29.000Z
2022-03-12T00:11:25.000Z
neighbourhood/models.py
Mutembeijoe/hood_yetu
5759bbf95a8dd0c7a62987773b71a1a7531ae074
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.postgres.fields import ArrayField from django.urls import reverse # Create your models here.
33.854545
107
0.697637
5797c3e4c498f61ba0845553c24009ac9d25e7f2
1,932
py
Python
WEEKS/CD_Sata-Structures/_MISC/misc-examples/text_buffer.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/text_buffer.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/text_buffer.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
from doubly_linked_list import DoublyLinkedList t = TextBuffer() t.append("ook") t.prepend("B") t.append("'s are readable") print(t) t.delete_back(2) print(t) t.delete_front(6) t.delete_front() print(t) t.append("le") t.delete_front(4) t2 = TextBuffer() t2.append(" Hello") print(t) t.join(t2) print(t)
28.411765
81
0.664079
579b07f7e2fa1f7d53a1230b84e41be5a5006de9
14,911
py
Python
TWLight/users/models.py
Chinmay-Gurjar/TWLight
94ff6e1bf0a8dd851e569c592608871de2ad3089
[ "MIT" ]
null
null
null
TWLight/users/models.py
Chinmay-Gurjar/TWLight
94ff6e1bf0a8dd851e569c592608871de2ad3089
[ "MIT" ]
null
null
null
TWLight/users/models.py
Chinmay-Gurjar/TWLight
94ff6e1bf0a8dd851e569c592608871de2ad3089
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This file holds user profile information. (The base User model is part of Django; profiles extend that with locally useful information.) TWLight has three user types: * editors * coordinators * site administrators. _Editors_ are Wikipedia editors who are applying for TWL resource acce...
40.409214
228
0.652002
579b5a9f70fd946f42041ba6173bffac11a64dcb
14,694
py
Python
src/reddit_baselines.py
mengelhard/cft
aaf24d4f59b581ef5ef1af17e3e23c5a7ee8245a
[ "MIT" ]
2
2021-03-14T11:46:51.000Z
2022-03-30T05:39:55.000Z
src/reddit_baselines.py
mengelhard/cft
aaf24d4f59b581ef5ef1af17e3e23c5a7ee8245a
[ "MIT" ]
9
2020-03-24T18:16:46.000Z
2022-02-10T00:39:49.000Z
src/reddit_baselines.py
mengelhard/cft
aaf24d4f59b581ef5ef1af17e3e23c5a7ee8245a
[ "MIT" ]
1
2021-04-23T04:55:16.000Z
2021-04-23T04:55:16.000Z
import numpy as np import pandas as pd import tensorflow as tf import itertools import datetime import os from sklearn.metrics import roc_auc_score from model import mlp, lognormal_nlogpdf, lognormal_nlogsurvival from model_reddit import load_batch from train_reddit import get_files from train_mimic import rae_over_s...
24.49
99
0.689261
579bb2d5e8a709b1e23fdd92467609fdeb1606bf
1,272
py
Python
os_client_config/constructors.py
dtroyer/os-client-config
f0ce20703d2cb8dbf899b9768c3cbbd14ee60594
[ "Apache-2.0" ]
36
2015-04-17T12:05:54.000Z
2019-10-15T20:44:34.000Z
os_client_config/constructors.py
dtroyer/os-client-config
f0ce20703d2cb8dbf899b9768c3cbbd14ee60594
[ "Apache-2.0" ]
null
null
null
os_client_config/constructors.py
dtroyer/os-client-config
f0ce20703d2cb8dbf899b9768c3cbbd14ee60594
[ "Apache-2.0" ]
16
2015-05-11T22:59:51.000Z
2020-12-07T16:42:37.000Z
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # # 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...
34.378378
75
0.731132
579c287002d5865b908cece88e2dc77b99abf245
4,392
py
Python
src/the_tale/the_tale/linguistics/migrations/0009_remove_quotes_from_diary.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/the_tale/the_tale/linguistics/migrations/0009_remove_quotes_from_diary.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/the_tale/the_tale/linguistics/migrations/0009_remove_quotes_from_diary.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
# -*- coding: utf-8 -*- import json from django.db import models, migrations DIARY_KEYS = (0, 3, 4, 17, 20001, 20002, 20003, 40000, 40001, 40002, 40003, 40004, ...
21.742574
78
0.344035
579d327dd8fa1b155ce5d0aa4edd1cd1932f3add
1,764
py
Python
scripts/supp_fig_C_calc.py
dhbrookes/FitnessSparsity
ccaf35a4dbdbf175e5a6f6dcfd7c368b640f84f2
[ "MIT" ]
3
2021-09-20T04:51:55.000Z
2022-02-02T13:37:31.000Z
scripts/supp_fig_C_calc.py
dhbrookes/FitnessSparsity
ccaf35a4dbdbf175e5a6f6dcfd7c368b640f84f2
[ "MIT" ]
null
null
null
scripts/supp_fig_C_calc.py
dhbrookes/FitnessSparsity
ccaf35a4dbdbf175e5a6f6dcfd7c368b640f84f2
[ "MIT" ]
null
null
null
import sys sys.path.append("../src") import numpy as np import matplotlib.pyplot as plt import seaborn as sns import C_calculation plt.style.use(['seaborn-deep', '../paper.mplstyle']) """ This script produces Figure S3, which displays a detailed summary of the calculations used to determine a suitable value for C. ...
29.898305
104
0.584467
579e371e955563dc8f4d6412367c0fd0a22213bb
167
py
Python
Exercicios Python/exlista01.py
oswaldo-spadari/Python-Exec
3c3a237ed7c30af43f23a3619f6c6b92f6fcb12e
[ "MIT" ]
null
null
null
Exercicios Python/exlista01.py
oswaldo-spadari/Python-Exec
3c3a237ed7c30af43f23a3619f6c6b92f6fcb12e
[ "MIT" ]
null
null
null
Exercicios Python/exlista01.py
oswaldo-spadari/Python-Exec
3c3a237ed7c30af43f23a3619f6c6b92f6fcb12e
[ "MIT" ]
null
null
null
#Faa um Programa que leia um vetor de 5 nmeros inteiros e mostre-os. lista=[] for i in range(1, 6): lista.append(int(input('Digite um nmero: '))) print(lista)
23.857143
70
0.694611
579ed39e3894484e564f4d2f67bafed408849d23
169
py
Python
seno/wallet/trading/trade_status.py
emilson0407/seno-blockchain
fa73fc06639faaacbb82504a6c8698c3bcab57c0
[ "Apache-2.0" ]
11,902
2019-12-05T00:14:29.000Z
2022-03-31T23:25:37.000Z
seno/wallet/trading/trade_status.py
emilson0407/seno-blockchain
fa73fc06639faaacbb82504a6c8698c3bcab57c0
[ "Apache-2.0" ]
5,246
2019-12-05T04:00:03.000Z
2022-03-31T21:33:30.000Z
seno/wallet/trading/trade_status.py
emilson0407/seno-blockchain
fa73fc06639faaacbb82504a6c8698c3bcab57c0
[ "Apache-2.0" ]
2,149
2019-12-05T11:12:53.000Z
2022-03-31T06:08:34.000Z
from enum import Enum
15.363636
24
0.650888
579ee3e03e2bc4abaee046e7d30389e76953898b
522
py
Python
sbpy/spectroscopy/vega/sources.py
mkelley/sbpy
40ff9a99f9b606fbf819e3b134f2b2d3b972c681
[ "BSD-3-Clause" ]
3
2018-10-25T01:55:31.000Z
2020-03-31T16:11:08.000Z
sbpy/spectroscopy/vega/sources.py
mkelley/sbpy
40ff9a99f9b606fbf819e3b134f2b2d3b972c681
[ "BSD-3-Clause" ]
null
null
null
sbpy/spectroscopy/vega/sources.py
mkelley/sbpy
40ff9a99f9b606fbf819e3b134f2b2d3b972c681
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ ======================== SBPy Vega Sources Module ======================== Descriptions of source Vega spectra. """ # Parameters passed to Vega.from_file. 'filename' is a URL. After # adding spectra here update __init__.py docstring and # docs/sbpy...
21.75
66
0.637931
579ef7f1b1338f3ddf37ec13a2ddb9beab318d6c
3,455
py
Python
api_server.py
ChristianKreuzberger/computer.vision.101
627db9414fd274905b79548cbe6462d96d9cea86
[ "MIT" ]
null
null
null
api_server.py
ChristianKreuzberger/computer.vision.101
627db9414fd274905b79548cbe6462d96d9cea86
[ "MIT" ]
null
null
null
api_server.py
ChristianKreuzberger/computer.vision.101
627db9414fd274905b79548cbe6462d96d9cea86
[ "MIT" ]
1
2018-09-17T09:06:52.000Z
2018-09-17T09:06:52.000Z
import os os.environ["KERAS_BACKEND"] = "tensorflow" import numpy as np import keras from keras.applications import imagenet_utils from keras.models import Sequential from keras.layers import Dense, Dropout, Activation, Flatten from keras.layers import Conv2D, MaxPooling2D from keras.preprocessing import image from k...
25.592593
103
0.661071
57a027d5dd9201731891da0c2235f4c706336af9
506
py
Python
Lesson2_Functions/8-return.py
StyvenSoft/degree-python
644953608948f341f5a20ceb9a02976a128b472b
[ "MIT" ]
null
null
null
Lesson2_Functions/8-return.py
StyvenSoft/degree-python
644953608948f341f5a20ceb9a02976a128b472b
[ "MIT" ]
null
null
null
Lesson2_Functions/8-return.py
StyvenSoft/degree-python
644953608948f341f5a20ceb9a02976a128b472b
[ "MIT" ]
null
null
null
result = divide_by_four(16) # result now holds 4 print("16 divided by 4 is " + str(result) + "!") result2 = divide_by_four(result) print(str(result) + " divided by 4 is " + str(result2) + "!") my_age = calculate_age(2049, 1993) dads_age = calculate_age(2049, 1953) print("I am "+str(my_age)+" years old and my d...
26.631579
81
0.70751
57a3a8a709c11a11c55c20bbf889cce49b9d06df
223
py
Python
adjutant-plugin/mfa_views/models.py
catalyst-cloud/adjutant-mfa
d9e99dd006a895ca33b840e7d92bc5107ec4ba8d
[ "Apache-2.0" ]
2
2018-02-15T12:56:05.000Z
2018-03-10T09:45:08.000Z
adjutant-plugin/mfa_views/models.py
catalyst-cloud/adjutant-mfa
d9e99dd006a895ca33b840e7d92bc5107ec4ba8d
[ "Apache-2.0" ]
1
2018-05-24T23:08:17.000Z
2018-05-24T23:08:17.000Z
adjutant-plugin/mfa_views/models.py
catalyst-cloud/adjutant-mfa
d9e99dd006a895ca33b840e7d92bc5107ec4ba8d
[ "Apache-2.0" ]
3
2018-02-09T03:27:43.000Z
2018-07-02T10:45:35.000Z
from adjutant.api.v1.models import register_taskview_class from mfa_views import views register_taskview_class(r'^openstack/edit-mfa/?$', views.EditMFA) register_taskview_class(r'^openstack/users/?$', views.UserListMFA)
27.875
66
0.816143
57a3afc4218ffc2e5632ac9b4b9ef00acfd02961
3,194
py
Python
src/toast/tod/applygain.py
ziotom78/toast
66aef04c833a28f0928a0bbc221da45882aae475
[ "BSD-2-Clause" ]
null
null
null
src/toast/tod/applygain.py
ziotom78/toast
66aef04c833a28f0928a0bbc221da45882aae475
[ "BSD-2-Clause" ]
null
null
null
src/toast/tod/applygain.py
ziotom78/toast
66aef04c833a28f0928a0bbc221da45882aae475
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2015-2019 by the parties listed in the AUTHORS file. # All rights reserved. Use of this source code is governed by # a BSD-style license that can be found in the LICENSE file. import numpy as np from astropy.io import fits from ..op import Operator from ..timing import function_timer from .tod_mat...
27.067797
85
0.567001
57a48b0dacbc22f4bad998cd06e891c64fb838c5
7,652
py
Python
jans-linux-setup/jans_setup/static/extension/person_authentication/GoogleExternalAuthenticator.py
nikdavnik/jans
5e9abc74cca766a066512eab2aca6563ce480bff
[ "Apache-2.0" ]
18
2022-01-13T13:45:13.000Z
2022-03-30T04:41:18.000Z
jans-linux-setup/jans_setup/static/extension/person_authentication/GoogleExternalAuthenticator.py
nikdavnik/jans
5e9abc74cca766a066512eab2aca6563ce480bff
[ "Apache-2.0" ]
604
2022-01-13T12:32:50.000Z
2022-03-31T20:27:36.000Z
jans-linux-setup/jans_setup/static/extension/person_authentication/GoogleExternalAuthenticator.py
nikdavnik/jans
5e9abc74cca766a066512eab2aca6563ce480bff
[ "Apache-2.0" ]
8
2022-01-28T00:23:25.000Z
2022-03-16T05:12:12.000Z
# Janssen Project software is available under the Apache 2.0 License (2004). See http://www.apache.org/licenses/ for full text. # Copyright (c) 2020, Janssen Project # # Author: Madhumita Subramaniam # from io.jans.service.cdi.util import CdiUtil from io.jans.as.server.security import Identity from io.jans.model.custo...
39.854167
167
0.673811
57a668358180b4bf197bc0f22a79ebe450b7df08
384
py
Python
app/abbr/models.py
Tjorriemorrie/abbr
a4a3017a6694eacf6c11e95e76cec6d260750438
[ "Apache-2.0" ]
null
null
null
app/abbr/models.py
Tjorriemorrie/abbr
a4a3017a6694eacf6c11e95e76cec6d260750438
[ "Apache-2.0" ]
null
null
null
app/abbr/models.py
Tjorriemorrie/abbr
a4a3017a6694eacf6c11e95e76cec6d260750438
[ "Apache-2.0" ]
null
null
null
from django.db import models # classification value objects CHOICES_CLASSIFICATION = [ (0, 'unrelated'), (1, 'simple'), (2, 'complex'), (3, 'substring'), ]
22.588235
80
0.75
57a71c30a72ab6617b2351c0866f4abcd021aacb
1,709
py
Python
example/sign up.py
Roblox-Thot/captchaCodeMakerV2
0d9e1a85b75e0c71f9c8b35d8330f704b1464685
[ "Apache-2.0" ]
7
2021-12-10T16:37:15.000Z
2022-03-07T09:29:36.000Z
example/sign up.py
Roblox-Thot/captchaCodeMakerV2
0d9e1a85b75e0c71f9c8b35d8330f704b1464685
[ "Apache-2.0" ]
null
null
null
example/sign up.py
Roblox-Thot/captchaCodeMakerV2
0d9e1a85b75e0c71f9c8b35d8330f704b1464685
[ "Apache-2.0" ]
9
2022-01-15T15:32:58.000Z
2022-03-08T21:28:38.000Z
# This code could be improved but its just a example on how to use the code from the site import requests, base64, random, string token = input("Put code here:\n") headers = { 'authority': 'auth.roblox.com', 'dnt': '1', 'x-csrf-token': requests.post("https://auth.roblox.com/v2/login").headers["x-csrf-tok...
30.517857
135
0.664716
57a76c0acd0cd0c7f74ee94b222ad2aad279c1a0
160
py
Python
users/roles.py
Zimodra/yamdb_final
b6bb7e5b92a09604b441e9111bd52ecb459ffaba
[ "MIT" ]
null
null
null
users/roles.py
Zimodra/yamdb_final
b6bb7e5b92a09604b441e9111bd52ecb459ffaba
[ "MIT" ]
null
null
null
users/roles.py
Zimodra/yamdb_final
b6bb7e5b92a09604b441e9111bd52ecb459ffaba
[ "MIT" ]
null
null
null
from django.db import models
20
40
0.65625
57a8299c7547a4ed17891ac37b6772a5f338d29e
6,161
py
Python
blyaml/validators.py
Brainlabs-Digital/Brainlabs-YAML-Generator
6b22540cdbc29611dbe97facc71c51b0060528a9
[ "MIT" ]
null
null
null
blyaml/validators.py
Brainlabs-Digital/Brainlabs-YAML-Generator
6b22540cdbc29611dbe97facc71c51b0060528a9
[ "MIT" ]
8
2019-10-24T10:08:21.000Z
2021-11-29T11:39:51.000Z
blyaml/validators.py
Brainlabs-Digital/Brainlabs-YAML-Generator
6b22540cdbc29611dbe97facc71c51b0060528a9
[ "MIT" ]
3
2019-10-17T15:17:02.000Z
2020-09-24T18:10:24.000Z
import re from datetime import datetime from PyInquirer import Validator, ValidationError from prompt_toolkit.document import Document # This file contains functions used for validation and Validator classes that use them. # Validators are used by questions. email_regex = r"^(\w|\d|\.|\_|\-)+$" url_regex = ( ...
34.038674
356
0.637072
57a89bca360c730024572cf8e5039971a5a20578
7,113
py
Python
src/git_profile_command/__init__.py
NiklasRosenstein/git-profile
89696f2b6aee457a33674fdf930ba34e89f6239c
[ "MIT" ]
null
null
null
src/git_profile_command/__init__.py
NiklasRosenstein/git-profile
89696f2b6aee457a33674fdf930ba34e89f6239c
[ "MIT" ]
2
2019-07-15T11:29:47.000Z
2021-11-26T04:01:14.000Z
src/git_profile_command/__init__.py
NiklasRosenstein/git-profile
89696f2b6aee457a33674fdf930ba34e89f6239c
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2019 Niklas Rosenstein # # 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,...
34.197115
98
0.696752
57a8e223905afe0cac15558594f1c75596817567
15,208
py
Python
src/test/rebaseline-p.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/rebaseline-p.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/rebaseline-p.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import filecmp import os import sys import shutil import subprocess import time import unittest if (sys.version_info > (3, 0)): import urllib.request, urllib.parse, urllib.error else: import urllib from optparse import OptionParser from PyQt4 import QtCore,QtGui parser = OptionParser() parser.add_option("-r",...
35.783529
81
0.647554
57a8e82c5a3eff8f6921f918c1e1cb15a9856eea
2,174
py
Python
src/pigs/bot.py
rcobanov/Examination2
15540554e1c9020320607a79cdf33c17045bd947
[ "MIT" ]
null
null
null
src/pigs/bot.py
rcobanov/Examination2
15540554e1c9020320607a79cdf33c17045bd947
[ "MIT" ]
null
null
null
src/pigs/bot.py
rcobanov/Examination2
15540554e1c9020320607a79cdf33c17045bd947
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Here is the class that controls the bot. It also contains various value manipulation, and one function that lets the bot play one round, from first roll until hold. The intelligence is basically how many rolls the bot is going to do on one round. The easier level on t...
32.939394
78
0.614995
57a918303b705c991a3420d0d04d3d2d8b68608b
2,068
py
Python
enochecker3/logging.py
Sinitax/enochecker3
2c43177aa66e04ff6e9cde96354bd373fb81d743
[ "MIT" ]
null
null
null
enochecker3/logging.py
Sinitax/enochecker3
2c43177aa66e04ff6e9cde96354bd373fb81d743
[ "MIT" ]
6
2021-07-02T09:57:38.000Z
2021-07-23T12:42:07.000Z
enochecker3/logging.py
Sinitax/enochecker3
2c43177aa66e04ff6e9cde96354bd373fb81d743
[ "MIT" ]
1
2021-07-01T16:16:29.000Z
2021-07-01T16:16:29.000Z
import datetime import logging from typing import Optional from .types import CheckerTaskMessage, EnoLogMessage LOGGING_PREFIX = "##ENOLOGMESSAGE "
37.6
83
0.619439
57a95284d7934e75842077f077664e4ddceff207
3,191
py
Python
examples/experimental/scala-parallel-recommendation-entitymap/data/import_eventserver.py
pferrel/incubator-predictionio
4b2fb7c1b6a1cd1027a4c03e6ae1af223c8e634c
[ "Apache-2.0" ]
2
2017-03-10T03:03:14.000Z
2017-07-03T02:38:42.000Z
examples/experimental/scala-parallel-recommendation-entitymap/data/import_eventserver.py
michaelzzh/LF_PredictionIO
98bfd4d75efaab7633697f12e31e791660dbd61a
[ "Apache-2.0" ]
null
null
null
examples/experimental/scala-parallel-recommendation-entitymap/data/import_eventserver.py
michaelzzh/LF_PredictionIO
98bfd4d75efaab7633697f12e31e791660dbd61a
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
29.546296
74
0.651833
57a9b2141377677285fd56333b0647b258ef25b3
1,240
py
Python
lib/ReadCsv.py
cxd/wave_weather_data_python
3b50137f6f8b185dd5f5672feb9645e179bc1490
[ "MIT" ]
null
null
null
lib/ReadCsv.py
cxd/wave_weather_data_python
3b50137f6f8b185dd5f5672feb9645e179bc1490
[ "MIT" ]
null
null
null
lib/ReadCsv.py
cxd/wave_weather_data_python
3b50137f6f8b185dd5f5672feb9645e179bc1490
[ "MIT" ]
null
null
null
import os as os from pandas import pandas as p from pandas.compat import StringIO, BytesIO
31
90
0.596774
57aa9b57ce3b4678b56fb8cf872403039e20b2b9
1,364
py
Python
01.py
dataquanty/ArtWorkWaves
0cc5c47bf4a0c9669a0721c313d96beb046c3134
[ "MIT" ]
null
null
null
01.py
dataquanty/ArtWorkWaves
0cc5c47bf4a0c9669a0721c313d96beb046c3134
[ "MIT" ]
null
null
null
01.py
dataquanty/ArtWorkWaves
0cc5c47bf4a0c9669a0721c313d96beb046c3134
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Apr 30 15:28:09 2018 @author: dataquanty """ import numpy as np from math import sqrt, pi, acos,cos from matplotlib import pyplot as plt from scipy.misc import imsave from bisect import bisect_left h , w = 1000, 1000 img = np.ones((h,w)) center = (...
21.650794
58
0.519062
57adf597c9133c7c09f33507918c2763c2027900
1,083
py
Python
docs/conf.py
jrosser/mitogen
898c06f1b9f1417b9f7c18465bee78eda7df2ec0
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
jrosser/mitogen
898c06f1b9f1417b9f7c18465bee78eda7df2ec0
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
jrosser/mitogen
898c06f1b9f1417b9f7c18465bee78eda7df2ec0
[ "BSD-3-Clause" ]
null
null
null
import os import sys sys.path.append('..') import mitogen VERSION = '%s.%s.%s' % mitogen.__version__ author = u'David Wilson' copyright = u'2018, David Wilson' exclude_patterns = ['_build'] extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinxcontrib.programoutput'] html_show_sourcelink = False html_s...
27.075
143
0.720222
57af48c7c6ce730f18de8225a93c02bfa45f922d
1,741
py
Python
src/pkg/caendr/caendr/models/sql/wormbase_gene_summary.py
AndersenLab/CAENDR
ce4cdb74db736db8226ffc90988959b71b0d5ff5
[ "MIT" ]
3
2022-02-09T07:04:37.000Z
2022-03-11T02:46:35.000Z
src/pkg/caendr/caendr/models/sql/wormbase_gene_summary.py
AndersenLab/CAENDR
ce4cdb74db736db8226ffc90988959b71b0d5ff5
[ "MIT" ]
4
2022-01-28T22:28:08.000Z
2022-02-11T21:47:15.000Z
src/pkg/caendr/caendr/models/sql/wormbase_gene_summary.py
AndersenLab/CAENDR
ce4cdb74db736db8226ffc90988959b71b0d5ff5
[ "MIT" ]
1
2022-01-11T03:39:02.000Z
2022-01-11T03:39:02.000Z
from caendr.services.cloud.postgresql import db from caendr.models.sql.dict_serializable import DictSerializable from sqlalchemy import func, or_ from sqlalchemy.ext.hybrid import hybrid_property
37.847826
90
0.711086
57b0f06734d5293b4bc104ab02dc176064141a7e
4,137
py
Python
gunmel/models.py
zhenkai/xgunicorn
33fc122fdc9435ba0b6562186d3c86d983eb992a
[ "Apache-2.0" ]
null
null
null
gunmel/models.py
zhenkai/xgunicorn
33fc122fdc9435ba0b6562186d3c86d983eb992a
[ "Apache-2.0" ]
null
null
null
gunmel/models.py
zhenkai/xgunicorn
33fc122fdc9435ba0b6562186d3c86d983eb992a
[ "Apache-2.0" ]
1
2020-03-03T04:04:56.000Z
2020-03-03T04:04:56.000Z
from django.core.exceptions import ValidationError from django.db import models from django.forms.models import model_to_dict from decimal import Decimal # Create your models here.
36.9375
126
0.664491
57b46ec2e0dade46c77d1fce41a387fa6b810a5f
1,890
py
Python
xos/api/utility/toscaapi.py
iecedge/xos
566617f676fedcb2602266191c755d191b37018a
[ "Apache-2.0" ]
null
null
null
xos/api/utility/toscaapi.py
iecedge/xos
566617f676fedcb2602266191c755d191b37018a
[ "Apache-2.0" ]
null
null
null
xos/api/utility/toscaapi.py
iecedge/xos
566617f676fedcb2602266191c755d191b37018a
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-present Open Networking 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 agr...
30.983607
86
0.679894
57b55370970495146667677f66fe08fa5907770e
952
py
Python
tests/test_plugins/test_wiki.py
follower46/ashaw-notes
036f213f032ff7a58cbcfe8c303e9553ec6b3106
[ "MIT" ]
4
2017-08-15T13:29:06.000Z
2019-04-24T01:31:25.000Z
tests/test_plugins/test_wiki.py
follower46/ashaw-notes
036f213f032ff7a58cbcfe8c303e9553ec6b3106
[ "MIT" ]
51
2017-08-13T03:58:41.000Z
2018-01-29T21:21:57.000Z
tests/test_plugins/test_wiki.py
follower46/ashaw-notes
036f213f032ff7a58cbcfe8c303e9553ec6b3106
[ "MIT" ]
5
2017-08-15T01:46:33.000Z
2019-01-07T21:43:24.000Z
""" Testing Wiki Module """ import unittest from ddt import ddt, data, unpack from ashaw_notes.plugins.wiki import Plugin
28.848485
98
0.609244
57b6388ade74fa7db2072594bfcd80032ccdd8ef
5,956
py
Python
cppcheck_junit.py
PfannenHans/cppcheck-junit
8f29ac91ea50c11d90a4a3c012aedb7687d835fb
[ "MIT" ]
8
2016-03-19T12:32:11.000Z
2021-12-06T18:36:10.000Z
cppcheck_junit.py
PfannenHans/cppcheck-junit
8f29ac91ea50c11d90a4a3c012aedb7687d835fb
[ "MIT" ]
16
2016-04-11T13:36:22.000Z
2022-03-30T11:41:35.000Z
cppcheck_junit.py
PfannenHans/cppcheck-junit
8f29ac91ea50c11d90a4a3c012aedb7687d835fb
[ "MIT" ]
8
2015-11-20T16:27:07.000Z
2022-03-28T12:46:17.000Z
#!/usr/bin/env python3 """Converts Cppcheck XML version 2 output to JUnit XML format.""" import argparse import collections from datetime import datetime import os from socket import gethostname import sys from typing import Dict, List from xml.etree import ElementTree from exitstatus import ExitStatus def parse...
32.021505
98
0.633647
57b7e56d2bb65164490572ca122f372afa976572
2,440
py
Python
apps/core/tests/conftest.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
1
2019-12-12T15:38:42.000Z
2019-12-12T15:38:42.000Z
apps/core/tests/conftest.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
null
null
null
apps/core/tests/conftest.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
null
null
null
import pytest from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.sites.models import Site from core.models import Identity from organizations.models import Organization __all__ = [ 'admin_identity', 'master_client', 'master_identity', 'authent...
25.154639
88
0.702459
57b8a501dc93a41633bfea6eb1b0e55e7388ace2
4,041
py
Python
tests/test_descriptor.py
OlivierBeq/ProDEC
b3723bc54a5a7ab4eedf2ab9a23a210e935b05fe
[ "MIT" ]
null
null
null
tests/test_descriptor.py
OlivierBeq/ProDEC
b3723bc54a5a7ab4eedf2ab9a23a210e935b05fe
[ "MIT" ]
null
null
null
tests/test_descriptor.py
OlivierBeq/ProDEC
b3723bc54a5a7ab4eedf2ab9a23a210e935b05fe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for Descriptor.""" import unittest import numpy as np import orjson from prodec import Descriptor from prodec.utils import std_amino_acids from tests.constants import *
42.536842
105
0.59218
57ba16515c786535378110b8430cbadfa8476104
310
py
Python
mmdet/apis/__init__.py
ar90n/ttfnet
99dbfa888f90c8161c2c1666b2d17cdb144dbc30
[ "Apache-2.0" ]
36
2019-06-17T02:00:36.000Z
2022-03-10T07:54:07.000Z
mmdet/apis/__init__.py
ar90n/ttfnet
99dbfa888f90c8161c2c1666b2d17cdb144dbc30
[ "Apache-2.0" ]
6
2020-03-17T03:53:53.000Z
2022-03-30T07:57:40.000Z
mmdet/apis/__init__.py
ar90n/ttfnet
99dbfa888f90c8161c2c1666b2d17cdb144dbc30
[ "Apache-2.0" ]
4
2019-06-17T02:00:35.000Z
2021-09-22T14:44:29.000Z
from .env import get_root_logger, init_dist, set_random_seed from .inference import inference_detector, init_detector, show_result from .train import train_detector __all__ = [ 'init_dist', 'get_root_logger', 'set_random_seed', 'train_detector', 'init_detector', 'inference_detector', 'show_result' ]
34.444444
72
0.787097
57ba713a68ba9ecdd9ab3196a36b1f0bcef50142
1,544
py
Python
tree.py
joshedler/ct2ad
39dfce6191c8993a43a0ebb12e5d0847c3e63e4c
[ "MIT" ]
null
null
null
tree.py
joshedler/ct2ad
39dfce6191c8993a43a0ebb12e5d0847c3e63e4c
[ "MIT" ]
null
null
null
tree.py
joshedler/ct2ad
39dfce6191c8993a43a0ebb12e5d0847c3e63e4c
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 ''' Examine a CherryTree SQLite database and print out the tree in proper heirarchical form and sequence. ''' import argparse import colorama from colorama import Fore, Back, Style import sqlite3 from ct2ad import * def print_xc_node(xc_node, level): ''' Print the node information to...
24.507937
159
0.723446
57bb5336b2ed0566151bd0a0cc733ef2af64f5fa
2,559
py
Python
sparse_entertainment.py
synergetics/nest_expermiments
39c50fe7d4713b9d0a8e4618a829d94b4fe7456c
[ "MIT" ]
null
null
null
sparse_entertainment.py
synergetics/nest_expermiments
39c50fe7d4713b9d0a8e4618a829d94b4fe7456c
[ "MIT" ]
null
null
null
sparse_entertainment.py
synergetics/nest_expermiments
39c50fe7d4713b9d0a8e4618a829d94b4fe7456c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys sys.path.append('/opt/lib/python2.7/site-packages/') import math import numpy as np import pylab import nest import nest.raster_plot import nest.voltage_trace import nest.topology as tp import ggplot t_sim = 500 populations = [1, 100] no_recurrent = True neuron_model = 'iaf_psc_e...
20.804878
82
0.657288
57bd452b6b5ced5e7d55432fe628cd4930c57a5d
21,008
py
Python
management/views.py
EsraelDawit-a/Drims-Fse-Project
a68d842e947450bc27711a6acab89ec8e3ba3b03
[ "MIT" ]
null
null
null
management/views.py
EsraelDawit-a/Drims-Fse-Project
a68d842e947450bc27711a6acab89ec8e3ba3b03
[ "MIT" ]
null
null
null
management/views.py
EsraelDawit-a/Drims-Fse-Project
a68d842e947450bc27711a6acab89ec8e3ba3b03
[ "MIT" ]
null
null
null
from django.shortcuts import render,redirect,get_object_or_404 from .forms import * from django.contrib import messages from django.contrib.auth.decorators import login_required from .models import * from django.views.generic import DetailView,DeleteView from django.urls import reverse_lazy from test2.notification impo...
34.839138
169
0.623048
57bd96ec29c38dc1f3e044540afbb8ecbffccd50
106
py
Python
dogpile/__init__.py
dhellmann/dogpile.cache
03cbee8b9a812a78a37fe1d54edafe848f696737
[ "MIT" ]
null
null
null
dogpile/__init__.py
dhellmann/dogpile.cache
03cbee8b9a812a78a37fe1d54edafe848f696737
[ "MIT" ]
null
null
null
dogpile/__init__.py
dhellmann/dogpile.cache
03cbee8b9a812a78a37fe1d54edafe848f696737
[ "MIT" ]
null
null
null
__version__ = '0.9.3' from .lock import Lock # noqa from .lock import NeedRegenerationException # noqa
21.2
51
0.745283
57bde5b7260543357976e429b49a59520729133b
1,550
py
Python
pyssian/tests/test_chemistryutils.py
maserasgroup-repo/pyssian
b80b216e24391db807a09518a237f94fa894a648
[ "MIT" ]
15
2021-07-07T16:25:26.000Z
2022-03-19T11:58:23.000Z
pyssian/tests/test_chemistryutils.py
maserasgroup-repo/pyssian
b80b216e24391db807a09518a237f94fa894a648
[ "MIT" ]
9
2021-07-28T22:09:07.000Z
2022-01-17T08:03:15.000Z
pyssian/tests/test_chemistryutils.py
maserasgroup-repo/pyssian
b80b216e24391db807a09518a237f94fa894a648
[ "MIT" ]
null
null
null
from pyssian.chemistryutils import is_basis,is_method import unittest
46.969697
102
0.674839
57bf94c1f54bb6b9683e423a8cf8f0e42b9b2cad
4,415
py
Python
custom_components/life360/life360.py
nicholas-sly/life360
5e537b0764ba06a9cfdde7e83fc0a742909df1d9
[ "MIT" ]
null
null
null
custom_components/life360/life360.py
nicholas-sly/life360
5e537b0764ba06a9cfdde7e83fc0a742909df1d9
[ "MIT" ]
null
null
null
custom_components/life360/life360.py
nicholas-sly/life360
5e537b0764ba06a9cfdde7e83fc0a742909df1d9
[ "MIT" ]
null
null
null
# This is what requests does. try: import simplejson as json except ImportError: import json import logging import requests from .exceptions import * _PROTOCOL = 'https://' _BASE_URL = '{}api.life360.com/v3/'.format(_PROTOCOL) _TOKEN_URL = _BASE_URL + 'oauth2/token.json' _CIRCLES_URL = _BASE_URL + 'circles.j...
37.735043
77
0.604757
57c14c8998061fad84c8b010eef9803262de092d
328
py
Python
pandas_selectable/tests/conftest.py
jseabold/pandas-select
0dc5fac465db8348bf3d1cc69d9f7c4fe28896e1
[ "BSD-3-Clause" ]
28
2020-09-08T04:38:01.000Z
2022-02-05T21:47:52.000Z
pandas_selectable/tests/conftest.py
jseabold/pandas-select
0dc5fac465db8348bf3d1cc69d9f7c4fe28896e1
[ "BSD-3-Clause" ]
8
2020-09-04T21:29:57.000Z
2021-11-17T16:44:42.000Z
pandas_selectable/tests/conftest.py
jseabold/pandas-select
0dc5fac465db8348bf3d1cc69d9f7c4fe28896e1
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pandas as pd import pytest
20.5
57
0.466463
57c2c77af5f13ed7cf14e66f21d8a57ff936dd88
2,976
py
Python
xsoccer/analysis/management/commands/analysis4.py
awyrough/xsoccer
5f3d5f73ede21f6ba3baa0089a821b0a8d151b8d
[ "MIT" ]
null
null
null
xsoccer/analysis/management/commands/analysis4.py
awyrough/xsoccer
5f3d5f73ede21f6ba3baa0089a821b0a8d151b8d
[ "MIT" ]
null
null
null
xsoccer/analysis/management/commands/analysis4.py
awyrough/xsoccer
5f3d5f73ede21f6ba3baa0089a821b0a8d151b8d
[ "MIT" ]
null
null
null
""" Objectives: - Which players pass together the most? - What types of position combintations are most frequent in pass-sequences? """ """ Sample Run Script: python manage.py analysis3 --team_uuid="t1326" --print_to_csv python manage.py analysis4 --team_uuid="t1326" --start_date="2016-07-01" python ...
30.367347
102
0.685148
57c4c8bc27d5ede3ee5ab749d40ffd70c1be34a7
1,474
py
Python
api/classes/portfolio.py
alexander-schilling/fintual_test
3a8a3cd17dea4a7a1203eb1cd58a2af411700207
[ "MIT" ]
null
null
null
api/classes/portfolio.py
alexander-schilling/fintual_test
3a8a3cd17dea4a7a1203eb1cd58a2af411700207
[ "MIT" ]
null
null
null
api/classes/portfolio.py
alexander-schilling/fintual_test
3a8a3cd17dea4a7a1203eb1cd58a2af411700207
[ "MIT" ]
null
null
null
from .stock import Stock
28.901961
77
0.627544
57c64dbce81aa32c7cfedf4dddca84cc3b07269f
4,694
py
Python
examples/ConsumptionSaving/example_ConsMedModel.py
HsinYiHung/HARK_HY
086c46af5bd037fe1ced6906c6ea917ed58b134f
[ "Apache-2.0" ]
null
null
null
examples/ConsumptionSaving/example_ConsMedModel.py
HsinYiHung/HARK_HY
086c46af5bd037fe1ced6906c6ea917ed58b134f
[ "Apache-2.0" ]
null
null
null
examples/ConsumptionSaving/example_ConsMedModel.py
HsinYiHung/HARK_HY
086c46af5bd037fe1ced6906c6ea917ed58b134f
[ "Apache-2.0" ]
null
null
null
# %% from HARK.utilities import CRRAutility_inv from time import time import matplotlib.pyplot as plt import numpy as np from HARK.ConsumptionSaving.ConsMedModel import MedShockConsumerType # %% mystr = lambda number: "{:.4f}".format(number) # %% do_simulation = True # %% [markdown] # This module defines consumption...
36.671875
333
0.679165
57c8b90994148c8460b99ab3bc8d5a19736e8281
25,325
py
Python
cogs/general.py
xthecoolboy/MizaBOT
fb8a449bde29fdf1d32b5a597e48e6b3463dd867
[ "MIT" ]
null
null
null
cogs/general.py
xthecoolboy/MizaBOT
fb8a449bde29fdf1d32b5a597e48e6b3463dd867
[ "MIT" ]
null
null
null
cogs/general.py
xthecoolboy/MizaBOT
fb8a449bde29fdf1d32b5a597e48e6b3463dd867
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import asyncio import aiohttp import random from datetime import datetime, timedelta import math import json # ##################################################################################### # math parser used by $calc # ###############################...
48.701923
226
0.536387
57ca6b765a520ecf380512aee08b9a30756ae5fb
1,481
py
Python
2019-2020/MATH_1301_Python/Zork/barriers.py
TSoGiants/Foundations
4546c9ee7be802e4c48ab8b1bab60869ea89e6a6
[ "Unlicense" ]
null
null
null
2019-2020/MATH_1301_Python/Zork/barriers.py
TSoGiants/Foundations
4546c9ee7be802e4c48ab8b1bab60869ea89e6a6
[ "Unlicense" ]
null
null
null
2019-2020/MATH_1301_Python/Zork/barriers.py
TSoGiants/Foundations
4546c9ee7be802e4c48ab8b1bab60869ea89e6a6
[ "Unlicense" ]
null
null
null
##################### ### Base classes. ### ##################### ###################### ### Child classes. ### ######################
25.101695
56
0.519919
57cc2589e042bfe3b9f204e55c44c76092d692cc
1,171
py
Python
etc/n_CR/Vmc_lo/load_Vsw.py
jimsrc/seatos
e775dba1a2a96ff44b837cf8d85101ccfef302b1
[ "MIT" ]
null
null
null
etc/n_CR/Vmc_lo/load_Vsw.py
jimsrc/seatos
e775dba1a2a96ff44b837cf8d85101ccfef302b1
[ "MIT" ]
null
null
null
etc/n_CR/Vmc_lo/load_Vsw.py
jimsrc/seatos
e775dba1a2a96ff44b837cf8d85101ccfef302b1
[ "MIT" ]
1
2018-10-02T17:51:57.000Z
2018-10-02T17:51:57.000Z
#!/usr/bin/env ipython import numpy as np #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sh, mc = gral(), gral() cr = gral() cr.sh, cr.mc = gral(), gral() vlo, vhi = 550.0, 3000.0 #550., 3000. #100.0, 450.0 #550.0, 3000.0 dir_inp_sh = '../../../sheaths/ascii/MCflag...
32.527778
92
0.562767
57cc2ecd156c278de2ca18c760107a89d6f9b534
3,090
py
Python
tools/radar_img_per_sim.py
mgaggero/tdm-tools
525dc643c2fe90e29c6cdde6568174ab396893b6
[ "Apache-2.0" ]
null
null
null
tools/radar_img_per_sim.py
mgaggero/tdm-tools
525dc643c2fe90e29c6cdde6568174ab396893b6
[ "Apache-2.0" ]
5
2018-11-28T11:02:58.000Z
2019-02-07T09:55:26.000Z
tools/radar_img_per_sim.py
mgaggero/tdm-tools
525dc643c2fe90e29c6cdde6568174ab396893b6
[ "Apache-2.0" ]
5
2018-10-23T08:07:53.000Z
2019-08-07T07:08:20.000Z
# Copyright 2018-2019 CRS4 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
31.85567
78
0.630097
57ccea073806c8789604eca66fcde66c4dcb3d14
2,598
py
Python
server/base/views.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
634
2015-10-30T00:55:40.000Z
2022-03-31T02:59:00.000Z
server/base/views.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
145
2015-11-06T00:17:33.000Z
2022-03-16T13:30:31.000Z
server/base/views.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
103
2015-11-07T07:08:49.000Z
2022-03-18T17:34:36.000Z
import logging from django.apps import apps from django.contrib.auth.mixins import LoginRequiredMixin from django.http import Http404, HttpResponse, JsonResponse from django.views.generic import TemplateView, View from zentral.core.stores import frontend_store logger = logging.getLogger("server.base.views")
36.083333
115
0.560046
57ccef5f4b39231aa2dfe0a1c954a8f2a2181361
176,775
py
Python
map.py
zihoffman7/online-world-explorer-game
9bf1d47491bf6175ec330e4e88eeb5e349c84a4a
[ "Apache-2.0" ]
null
null
null
map.py
zihoffman7/online-world-explorer-game
9bf1d47491bf6175ec330e4e88eeb5e349c84a4a
[ "Apache-2.0" ]
null
null
null
map.py
zihoffman7/online-world-explorer-game
9bf1d47491bf6175ec330e4e88eeb5e349c84a4a
[ "Apache-2.0" ]
null
null
null
g1 = "#5d9e6d" g2 = "#549464" g3 = "#498758" g4 = "#3d784b" b1 = "#5f7ab8" b2 = "#5a70a3" b3 = "#4d67a3" r4 = "#262626" w1 = "#f0f0f0" w2 = "#d9d9d9" w3 = "#e6e6e6" r1 = "#707070" r2 = "#595959" r3 = "#404040" r4 = "#262626" l1 = "#d95757" l2 = "#d99457" l3 = "#d97857" v1 = "#664f47" v2 = "#4a3d39" v3 = "#382f2c" v4 = ...
169.649712
364
0.316719
57cd044d651756a4e1a9d230a6483c3f90d186bf
172,689
py
Python
facts.py
Dev-solutions100/google-search-webhook
b50132f4effc82148ebfe543e15a5a2b42b92b3b
[ "Apache-2.0" ]
null
null
null
facts.py
Dev-solutions100/google-search-webhook
b50132f4effc82148ebfe543e15a5a2b42b92b3b
[ "Apache-2.0" ]
null
null
null
facts.py
Dev-solutions100/google-search-webhook
b50132f4effc82148ebfe543e15a5a2b42b92b3b
[ "Apache-2.0" ]
null
null
null
useless_facts = ["Most American car horns honk in the key of F.", "The name Wendy was made up for the book 'Peter Pan.'", "Barbie's full name is Barbara Millicent Roberts.", "Every time you lick a stamp, you consume 1/10 of a calorie.", "The average person falls asleep in seven minutes.", "Studies s...
307.823529
104,781
0.736665
57cd64fc8fb4418f591748f78bcb5ab458e9e1df
1,502
py
Python
libqtile/widget/she.py
CharString/qtile
7dc1448fa866d4c3a2a5c2738c5cf3fcd10b0631
[ "MIT" ]
1
2015-03-02T21:18:17.000Z
2015-03-02T21:18:17.000Z
libqtile/widget/she.py
WnP/qtile
7b3b21d602320df3a43155814e112c850f660fa9
[ "MIT" ]
null
null
null
libqtile/widget/she.py
WnP/qtile
7b3b21d602320df3a43155814e112c850f660fa9
[ "MIT" ]
null
null
null
from libqtile.widget import base from libqtile import bar, hook __all__ = ['She']
31.291667
77
0.561252
57cf0026e0267dca377d75719db241beafb88f18
1,490
py
Python
bench/bench_queue.py
coleifer/ukt
9440b17046f8e301f85d5c385a84fa4e7cc8ebcf
[ "MIT" ]
10
2019-07-16T15:04:33.000Z
2021-02-11T03:49:09.000Z
bench/bench_queue.py
coleifer/ukt
9440b17046f8e301f85d5c385a84fa4e7cc8ebcf
[ "MIT" ]
null
null
null
bench/bench_queue.py
coleifer/ukt
9440b17046f8e301f85d5c385a84fa4e7cc8ebcf
[ "MIT" ]
1
2021-02-07T15:22:09.000Z
2021-02-07T15:22:09.000Z
#!/usr/bin/env python from contextlib import contextmanager import os import sys import time srcdir = os.path.dirname(os.path.dirname(__file__)) sys.path.insert(0, srcdir) from ukt import * script = os.path.join(srcdir, 'scripts/kt.lua') server = EmbeddedServer(database='%', server_args=['-scr', script], ...
19.605263
69
0.613423
57cf71e94609fd85e48613dd288c7fef9e5aa2fe
2,260
py
Python
nicos_ess/labs/chop_embla/setups/skf_chopper.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_ess/labs/chop_embla/setups/skf_chopper.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_ess/labs/chop_embla/setups/skf_chopper.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'Some kind of SKF chopper' pv_root = 'LabS-Embla:Chop-Drv-0601:' devices = dict( skf_drive_temp=device('nicos.devices.epics.pva.EpicsReadable', description='Drive temperature', readpv='{}DrvTmp_Stat'.format(pv_root), monitor=True, ), skf_motor_temp=device('nicos.devic...
33.731343
69
0.611504
57cfdc5a603f9e7b2137dd0276b55ce9493be7c5
16
py
Python
external/netdef_models/netdef_slim/evolutions/__init__.py
zhuhu00/MOTSFusion_modify
190224a7c3fbded69fedf9645a0ebbf08227fb6d
[ "MIT" ]
null
null
null
external/netdef_models/netdef_slim/evolutions/__init__.py
zhuhu00/MOTSFusion_modify
190224a7c3fbded69fedf9645a0ebbf08227fb6d
[ "MIT" ]
null
null
null
external/netdef_models/netdef_slim/evolutions/__init__.py
zhuhu00/MOTSFusion_modify
190224a7c3fbded69fedf9645a0ebbf08227fb6d
[ "MIT" ]
null
null
null
nothing = None
5.333333
14
0.6875
57cfe9cbd14de3c1d66f6b0d1a90693c4bb4239e
1,623
py
Python
chapter_08/05_alphabetic_tel_number.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
2
2021-04-07T03:26:37.000Z
2021-07-26T07:38:49.000Z
chapter_08/05_alphabetic_tel_number.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
null
null
null
chapter_08/05_alphabetic_tel_number.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
null
null
null
# # 5. . # # 555-GET-FOOD, . # # # # : , =2 ; D, F=. phone_num = input('nnn-XXX-XXXX. n- # , X - : ') main()
33.122449
85
0.479359