hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
44d81f4a562fc325b6fdaf33b5effc0dd60d28d3
26,298
py
Python
hgapp/powers/createPowerFormUtilities.py
shadytradesman/The-Contract-Website
d8b353064f91c53ebab951dec784a0a36caba260
[ "Apache-2.0" ]
6
2020-10-03T12:15:05.000Z
2021-10-15T04:43:36.000Z
hgapp/powers/createPowerFormUtilities.py
shadytradesman/The-Contract-Website
d8b353064f91c53ebab951dec784a0a36caba260
[ "Apache-2.0" ]
99
2020-06-04T17:43:56.000Z
2022-03-12T01:07:20.000Z
hgapp/powers/createPowerFormUtilities.py
shadytradesman/The-Contract-Website
d8b353064f91c53ebab951dec784a0a36caba260
[ "Apache-2.0" ]
9
2020-06-06T16:39:09.000Z
2020-10-02T16:24:17.000Z
from django.forms import formset_factory from django.utils import timezone from django.shortcuts import get_object_or_404 import bleach import json from .forms import CreatePowerForm, make_enhancement_form, make_drawback_form, make_parameter_form, \ SystemFieldRollForm, SystemFieldTextForm, MIND_, BODY_, PARRY_ fr...
46.299296
154
0.664994
0
0
0
0
0
0
0
0
1,815
0.069017
44d8afe91e73eaf3251897e6e3f5a49e57dc20e9
1,877
py
Python
cargan/loss/pitch.py
mdc202002/cargan
5bfb44a1d8c2de8126e8053bed6078ad2e20819c
[ "MIT" ]
72
2021-10-20T01:17:54.000Z
2022-02-22T07:40:35.000Z
cargan/loss/pitch.py
mdc202002/cargan
5bfb44a1d8c2de8126e8053bed6078ad2e20819c
[ "MIT" ]
7
2021-10-21T21:44:00.000Z
2022-03-17T18:24:42.000Z
cargan/loss/pitch.py
mdc202002/cargan
5bfb44a1d8c2de8126e8053bed6078ad2e20819c
[ "MIT" ]
16
2021-10-20T02:07:46.000Z
2022-03-16T08:18:37.000Z
import torch import torchcrepe ############################################################################### # CREPE perceptual loss ############################################################################### class CREPEPerceptualLoss(torch.nn.Module): def __init__(self): super().__init__() ...
30.770492
88
0.550879
1,657
0.882792
0
0
0
0
0
0
424
0.225892
44d97cec1d9b32b7e2914ecab12420157a4f75cc
223
py
Python
rec_to_nwb/processing/nwb/components/analog/old_fl_analog_builder.py
EMK-Lab/rec_to_nwb
d3550b4c1df9629a3687fa5a9208d142c9c7c7fb
[ "Apache-2.0" ]
8
2020-05-29T13:48:35.000Z
2021-11-19T04:24:48.000Z
rec_to_nwb/processing/nwb/components/analog/old_fl_analog_builder.py
EMK-Lab/rec_to_nwb
d3550b4c1df9629a3687fa5a9208d142c9c7c7fb
[ "Apache-2.0" ]
8
2020-07-13T00:42:35.000Z
2020-11-16T16:17:12.000Z
rec_to_nwb/processing/nwb/components/analog/old_fl_analog_builder.py
EMK-Lab/rec_to_nwb
d3550b4c1df9629a3687fa5a9208d142c9c7c7fb
[ "Apache-2.0" ]
1
2020-08-28T01:34:35.000Z
2020-08-28T01:34:35.000Z
from rec_to_nwb.processing.nwb.components.analog.fl_analog import FlAnalog class OldFlAnalogBuilder: @staticmethod def build(data, timestamps, description): return FlAnalog(data, timestamps, description)
24.777778
74
0.775785
145
0.650224
0
0
114
0.511211
0
0
0
0
44da8f08437fa311200de5d8536d8b820064e77f
438
py
Python
_todo/programme/td9_simple_server.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
73
2015-05-12T13:12:11.000Z
2021-12-21T11:44:29.000Z
_todo/programme/td9_simple_server.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
90
2015-06-23T11:11:35.000Z
2021-03-31T22:09:15.000Z
_todo/programme/td9_simple_server.py
Jerome-maker/ensae_teaching_cs
43ea044361ee60c00c85aea354a7b25c21c0fd07
[ "MIT" ]
65
2015-01-13T08:23:55.000Z
2022-02-11T22:42:07.000Z
import sys sys.path.append(r"D:\Dupre\_data\program\pyhome") import pyhome3 from pyhome3 import HalLOG from pyhome3.srcpyhome.internet.simple_server.simple_server_custom import run_server HalLOG(OutputPrint=True) HalLOG("running server") run_server(None) HalLOG("end running server") # http://localhost:8080/localfile/...
29.2
112
0.821918
0
0
0
0
0
0
0
0
217
0.495434
44dbb055e9de0b9ac2e1f37ae940e8d05cde499b
6,230
py
Python
XML_to_Semark/xml_semark.py
prashankkadam/Maer_1
e201866429a1231df7f439797ef100f9e4e6da37
[ "MIT" ]
null
null
null
XML_to_Semark/xml_semark.py
prashankkadam/Maer_1
e201866429a1231df7f439797ef100f9e4e6da37
[ "MIT" ]
null
null
null
XML_to_Semark/xml_semark.py
prashankkadam/Maer_1
e201866429a1231df7f439797ef100f9e4e6da37
[ "MIT" ]
null
null
null
# -*- coding:/ utf-8 -*- """ Created on Tue Jul 23 12:07:20 2019 This piece of software is bound by The MIT License (MIT) Copyright (c) 2019 Prashank Kadam Code written by : Prashank Kadam User name - ADM-PKA187 Email ID : prashank.kadam@maersktankers.com Created on - Tue Jul 30 10:00:14 2019 version : 1.0 ""...
46.148148
117
0.632103
0
0
0
0
0
0
0
0
4,125
0.662119
44dc0bec2aec12c7dc578a3fe8630954d0075baf
3,506
py
Python
bot.py
justletterh/cutiecafe
148f4708ab0b852552f6b91a25e084ac0011b2f0
[ "WTFPL" ]
null
null
null
bot.py
justletterh/cutiecafe
148f4708ab0b852552f6b91a25e084ac0011b2f0
[ "WTFPL" ]
null
null
null
bot.py
justletterh/cutiecafe
148f4708ab0b852552f6b91a25e084ac0011b2f0
[ "WTFPL" ]
null
null
null
import discord, jishaku from discord.ext import commands from time import sleep hid=666317117154525185 did=676454199742955530 lid=701254727534510129 owners=[hid,did,lid] status="— ୨୧ 𝐬𝐧𝐮𝐠𝐠𝐥𝐢𝐧’ 𝐭𝐡𝐞 𝐜𝐮𝐭𝐢𝐞 𝐩𝐢𝐞𝐬! ₓ˚. ୭ ˚○◦" join="""\U00002601 . . . ⇢ ˗ˏˋ <@&689140834200846374> ࿐ྂ **welcome sweetheart...
40.767442
204
0.733885
0
0
0
0
1,905
0.529608
1,633
0.453989
1,557
0.432861
44dd2af0e04f2bcde0f9679219132a6850d1e347
1,611
py
Python
src/05_concurrent/concurrent_queue.py
edgardeng/python-advance-interview
59fd7bee8e871acdc7fdfecf2a110db840c47ebb
[ "Apache-2.0" ]
1
2022-03-06T13:03:56.000Z
2022-03-06T13:03:56.000Z
src/05_concurrent/concurrent_queue.py
edgardeng/python-advance-interview
59fd7bee8e871acdc7fdfecf2a110db840c47ebb
[ "Apache-2.0" ]
null
null
null
src/05_concurrent/concurrent_queue.py
edgardeng/python-advance-interview
59fd7bee8e871acdc7fdfecf2a110db840c47ebb
[ "Apache-2.0" ]
null
null
null
from multiprocessing import Queue, Process, Pool, Manager, Pipe from time import sleep def basic_usage(): q = Queue(3) # 指定队列大小,如果不写默认无限 q.put('消息1') q.put('消息2') q.put('消息3') # q.put('消息4') # 一直等待直到进入 if not q.full(): q.put('消息5', block=True, timeout=1) # 等待1s,如果还没有put成功,直接抛异常 print('判断队列是否已满: %s' ...
19.888889
63
0.605835
0
0
0
0
0
0
0
0
783
0.410593
44e04665233d45cb831ee9757a5d9394bae0f183
1,504
py
Python
app/blueprints/auth/mail.py
hbradleyiii/spa-base
ac79535d63778dc0793b1e2d7ecac5547927798d
[ "MIT" ]
null
null
null
app/blueprints/auth/mail.py
hbradleyiii/spa-base
ac79535d63778dc0793b1e2d7ecac5547927798d
[ "MIT" ]
null
null
null
app/blueprints/auth/mail.py
hbradleyiii/spa-base
ac79535d63778dc0793b1e2d7ecac5547927798d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ app.blueprints.auth.email ~~~~~~~~~~~~~~~~~~~~~~~~~ The auth routes for spa-base. """ from flask import current_app, render_template from app.mail import send_mail def send_email_verification_mail(user, email): token = email.verification_token send_mail('[SPA-Base] Please Verify...
40.648649
86
0.619681
0
0
0
0
0
0
0
0
456
0.303191
44e1e41758ba5e233b4268bbcdad68104bb8d0a0
2,008
py
Python
logger/publish_http.py
scsibug/Raspberry-Pi-Sensor-Node
606cf2a15a72ac1503c7318a39c9f3cc523a9c4a
[ "Unlicense" ]
1
2015-12-23T04:27:16.000Z
2015-12-23T04:27:16.000Z
logger/publish_http.py
scsibug/Raspberry-Pi-Sensor-Node
606cf2a15a72ac1503c7318a39c9f3cc523a9c4a
[ "Unlicense" ]
null
null
null
logger/publish_http.py
scsibug/Raspberry-Pi-Sensor-Node
606cf2a15a72ac1503c7318a39c9f3cc523a9c4a
[ "Unlicense" ]
null
null
null
#!/usr/bin/python import redis import sys import hmac import hashlib import json import decimal import urllib2 import time import argparse import os from settings import * r = redis.StrictRedis(host='localhost', port=6379, db=0) print "using "+os.environ['EVENT_SECRET_KEY'] parser = argparse.ArgumentParser(descriptio...
32.918033
110
0.729084
0
0
0
0
0
0
0
0
927
0.461653
44e34cab338c76b526dd9c77da1242eee658adad
458
py
Python
cfgov/paying_for_college/migrations/0010_program_median_monthly_debt.py
flacoman91/consumerfinance.gov
64e3d68d1c023ae944baf66a99e54236e5976097
[ "CC0-1.0" ]
37
2020-08-18T19:52:39.000Z
2022-03-23T08:08:41.000Z
cfgov/paying_for_college/migrations/0010_program_median_monthly_debt.py
flacoman91/consumerfinance.gov
64e3d68d1c023ae944baf66a99e54236e5976097
[ "CC0-1.0" ]
338
2020-08-14T20:46:36.000Z
2022-03-31T20:49:32.000Z
cfgov/paying_for_college/migrations/0010_program_median_monthly_debt.py
raft-tech/cfgov-refresh
7c63c31fd6bb95ed4f7d368f1e1252175f0c71ca
[ "CC0-1.0" ]
14
2020-10-21T15:27:03.000Z
2022-03-17T03:16:36.000Z
# -*- coding: utf-8 -*- from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('paying_for_college', '0009_expandable_group_help_text'), ] operations = [ migrations.AddField( model_name='program', name='median_monthly_deb...
25.444444
116
0.631004
390
0.851528
0
0
0
0
0
0
149
0.325328
44e4083a3f1aa8e2c31b0a862cea63e31e705b35
502
py
Python
grifo/snippets/api.py
pavelsimo/Grifo
aff3c6e2c2d5ad7598e5c6d022b444d3ed78e0d2
[ "MIT" ]
null
null
null
grifo/snippets/api.py
pavelsimo/Grifo
aff3c6e2c2d5ad7598e5c6d022b444d3ed78e0d2
[ "MIT" ]
null
null
null
grifo/snippets/api.py
pavelsimo/Grifo
aff3c6e2c2d5ad7598e5c6d022b444d3ed78e0d2
[ "MIT" ]
null
null
null
from grifo.snippets.models import Snippet, SnippetCategory from rest_framework import viewsets from grifo.snippets.serializers import SnippetSerializer, SnippetCategorySerializer class SnippetViewSet(viewsets.ModelViewSet): serializer_class = SnippetSerializer queryset = Snippet.objects.all() lookup_fiel...
29.529412
83
0.806773
316
0.629482
0
0
0
0
0
0
8
0.015936
44e680a8fac14428a219624044650be58b2e4334
374
py
Python
Tools/AtlasMaker/Assets/listdir.py
fakhirsh/cyclicshift
d255a3cc82703decdbbd477df3fa14791cd528d5
[ "MIT" ]
1
2019-11-12T17:47:23.000Z
2019-11-12T17:47:23.000Z
Tools/AtlasMaker/Assets/listdir.py
fakhirsh/cyclicshift
d255a3cc82703decdbbd477df3fa14791cd528d5
[ "MIT" ]
31
2019-10-25T11:28:21.000Z
2019-12-10T16:57:30.000Z
Tools/AtlasMaker/Assets/listdir.py
fakhirsh/cyclicshift
d255a3cc82703decdbbd477df3fa14791cd528d5
[ "MIT" ]
null
null
null
import os import sys if(len(sys.argv) != 2): print("Error: usage --> python3 lstdir.py [DIRNAME]") exit(0) path = sys.argv[1] files = [] # r=root, d=directories, f = files for r, d, f in os.walk(path): for file in f: if '.png' in file: files.append(os.path.join(r, file)) ...
17.809524
57
0.558824
0
0
0
0
0
0
0
0
105
0.280749
44e6bc135f28e05f2002c2b95899b3825d3fcdcd
1,022
py
Python
preprocess-scripts/build_movies.py
rohanrb302/End-to-End-Movie-Recommendation--Service
eabbf843e599cbfa4ae17f9e7c7eb0e73fd852d4
[ "Apache-2.0" ]
null
null
null
preprocess-scripts/build_movies.py
rohanrb302/End-to-End-Movie-Recommendation--Service
eabbf843e599cbfa4ae17f9e7c7eb0e73fd852d4
[ "Apache-2.0" ]
null
null
null
preprocess-scripts/build_movies.py
rohanrb302/End-to-End-Movie-Recommendation--Service
eabbf843e599cbfa4ae17f9e7c7eb0e73fd852d4
[ "Apache-2.0" ]
null
null
null
import pandas as pd import requests ratings = pd.read_csv("processed_ratings.csv") # fetch movie details of all the unique movieids from the movie API movie_api_url = "http://128.2.204.215:8080/movie/" movies = [requests.get(movie_api_url + movie).json() for movie in ratings['movieid'].unique()] # filter out records...
48.666667
164
0.746575
0
0
0
0
0
0
0
0
489
0.478474
44e7490f9c6966672bb9ea8fc88ef245604797cd
182
py
Python
sdk/decorators.py
morais90/sdk.py
97fcb6f7079ae9ae7606265a13c4d7d9670e176c
[ "MIT" ]
null
null
null
sdk/decorators.py
morais90/sdk.py
97fcb6f7079ae9ae7606265a13c4d7d9670e176c
[ "MIT" ]
8
2021-11-17T20:30:21.000Z
2022-03-29T02:23:32.000Z
sdk/decorators.py
morais90/sdk.py
97fcb6f7079ae9ae7606265a13c4d7d9670e176c
[ "MIT" ]
null
null
null
import functools def chaining(func): @functools.wraps(func) def wrapper(self, *args, **kwargs): func(self, *args, **kwargs) return self return wrapper
16.545455
39
0.620879
0
0
0
0
118
0.648352
0
0
0
0
44e8fc0d72523b5cd8b760e1363b4509f15356c5
450
py
Python
flask_restly/decorator/body.py
gorzechowski/flask-restly
54f28b66f35b0ab12ba4ee37bcd6d39aaf24111a
[ "MIT" ]
16
2018-10-16T20:07:02.000Z
2021-01-07T13:01:05.000Z
flask_restly/decorator/body.py
gorzechowski/flask-restly
54f28b66f35b0ab12ba4ee37bcd6d39aaf24111a
[ "MIT" ]
16
2018-10-16T14:09:55.000Z
2020-01-16T07:52:22.000Z
flask_restly/decorator/body.py
gorzechowski/flask-restly
54f28b66f35b0ab12ba4ee37bcd6d39aaf24111a
[ "MIT" ]
1
2019-04-17T03:20:41.000Z
2019-04-17T03:20:41.000Z
from flask_restly._storage import push_metadata import wrapt def body(outgoing=None, incoming=None): def decorator(func): @wrapt.decorator def wrapper(wrapped, _, args, kwargs): return wrapped(*args, **kwargs) wrapped_func = wrapper(func) push_metadata(wrapped_func, { ...
22.5
47
0.62
0
0
0
0
107
0.237778
0
0
20
0.044444
44ea1e24de27283dea1dea7e3321f3745fc9d01f
400
py
Python
docs/en/conf.py
sdaityari/e-cidadania
2fc7f312145e7cd674033f3d765ff9ff8d4fb23c
[ "Apache-2.0" ]
40
2015-03-26T20:46:16.000Z
2022-02-28T09:15:30.000Z
docs/en/conf.py
zixtor/e-cidadania
2fc7f312145e7cd674033f3d765ff9ff8d4fb23c
[ "Apache-2.0" ]
1
2017-07-29T09:44:12.000Z
2017-08-08T16:27:22.000Z
docs/en/conf.py
zixtor/e-cidadania
2fc7f312145e7cd674033f3d765ff9ff8d4fb23c
[ "Apache-2.0" ]
19
2015-01-13T20:40:49.000Z
2021-11-02T03:53:39.000Z
import sys import os cwd = os.path.dirname(os.path.realpath(__file__)) main_dir = os.path.normpath(cwd + '/../') sys.path.append(main_dir) #print sys.path from config.all import * language = 'en' #html_logo = '../images/logos/logo-en.png' latex_logo = '../images/logos/logo-en.png' latex_documents = [ ('index', 'e...
22.222222
49
0.6875
0
0
0
0
0
0
0
0
172
0.43
44f1e748bd22b2cafab30bc7205e2a0aa86a626c
2,191
py
Python
tests/data_source/test_ec.py
KarrLab/Kinetic-Datanator
8aff047fd117033b98eca8ee3b21a8f07c430dec
[ "CC-BY-3.0", "CC0-1.0", "CC-BY-4.0", "MIT" ]
10
2018-11-20T17:04:09.000Z
2021-08-24T18:29:06.000Z
tests/data_source/test_ec.py
KarrLab/Kinetic-Datanator
8aff047fd117033b98eca8ee3b21a8f07c430dec
[ "CC-BY-3.0", "CC0-1.0", "CC-BY-4.0", "MIT" ]
59
2018-11-23T20:42:11.000Z
2020-11-08T19:51:36.000Z
tests/data_source/test_ec.py
KarrLab/Kinetic-Datanator
8aff047fd117033b98eca8ee3b21a8f07c430dec
[ "CC-BY-3.0", "CC0-1.0", "CC-BY-4.0", "MIT" ]
3
2018-12-15T00:53:54.000Z
2021-08-24T18:29:08.000Z
import unittest from datanator.data_source import ec import datanator.config.core import shutil import tempfile from pathlib import Path class TestEC(unittest.TestCase): @classmethod def setUpClass(cls): cls.cache_dir = tempfile.mkdtemp() db = 'test' username = datanator.config.core.g...
42.960784
167
0.614331
2,052
0.936559
0
0
1,245
0.568234
0
0
656
0.299407
44f47fa7be7161ab737b4f9c294931c50761dff9
1,710
py
Python
python/sorting/quick_sort.py
suddi/coding-challenges
f31b53790084dce1ad0be65ec1d61bf177cddb39
[ "MIT" ]
null
null
null
python/sorting/quick_sort.py
suddi/coding-challenges
f31b53790084dce1ad0be65ec1d61bf177cddb39
[ "MIT" ]
11
2020-01-09T06:53:45.000Z
2022-02-11T01:34:44.000Z
python/sorting/quick_sort.py
suddi/coding-challenges
f31b53790084dce1ad0be65ec1d61bf177cddb39
[ "MIT" ]
1
2017-03-18T17:19:43.000Z
2017-03-18T17:19:43.000Z
def partition(A, left, right): # O(N) pivot = A[right] # O(1) i = left # O(1) for j in range(left, right): # O(N) if A[j] <= ...
42.75
78
0.261988
0
0
0
0
0
0
0
0
397
0.232164
44f538f3949e70e9287024559503410db3c272af
1,691
py
Python
setup.py
syncrypt/trio-inspector
386167e09e056fd27fbed8738891dedc72578ee4
[ "Apache-2.0", "MIT" ]
8
2019-04-17T22:29:14.000Z
2021-05-27T23:34:40.000Z
setup.py
syncrypt/trio-inspector
386167e09e056fd27fbed8738891dedc72578ee4
[ "Apache-2.0", "MIT" ]
3
2019-08-13T13:32:13.000Z
2021-05-08T07:18:38.000Z
setup.py
syncrypt/trio-inspector
386167e09e056fd27fbed8738891dedc72578ee4
[ "Apache-2.0", "MIT" ]
2
2020-01-03T08:11:11.000Z
2021-05-07T07:02:12.000Z
from setuptools import setup, find_packages exec(open("trio_inspector/_version.py", encoding="utf-8").read()) LONG_DESC = open("README.md", encoding="utf-8").read() setup( name="trio-inspector", version=__version__, description="A browser-based monitor for Trio", url="https://github.com/syncrypt/trio...
31.90566
70
0.581904
0
0
0
0
0
0
0
0
997
0.589243
44f73375d6020d1969aa41be0a796b01b2e269b6
143
py
Python
nipy/algorithms/statistics/formula/__init__.py
bpinsard/nipy
d49e8292adad6619e3dac710752131b567efe90e
[ "BSD-3-Clause" ]
236
2015-01-09T21:28:37.000Z
2022-03-27T11:51:58.000Z
nipy/algorithms/statistics/formula/__init__.py
bpinsard/nipy
d49e8292adad6619e3dac710752131b567efe90e
[ "BSD-3-Clause" ]
171
2015-03-23T00:31:43.000Z
2021-11-22T12:43:00.000Z
nipy/algorithms/statistics/formula/__init__.py
bpinsard/nipy
d49e8292adad6619e3dac710752131b567efe90e
[ "BSD-3-Clause" ]
94
2015-02-01T12:39:47.000Z
2022-01-27T06:38:19.000Z
""" Formula and related objects """ from .formulae import (Formula, Term, terms, Factor, make_recarray, natural_spline)
35.75
67
0.636364
0
0
0
0
0
0
0
0
35
0.244755
44f7b040ae5a720fbeb66ef4b27631b354791099
1,119
py
Python
Python/95.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
1
2020-12-10T05:36:15.000Z
2020-12-10T05:36:15.000Z
Python/95.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
null
null
null
Python/95.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
3
2020-04-06T05:55:08.000Z
2021-08-29T14:26:54.000Z
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def generateTrees(self, n: int) -> List[TreeNode]: if n == 0: return [] self.seen = {} return self.df...
26.642857
54
0.422699
938
0.838248
0
0
0
0
0
0
156
0.13941
44f8c313abc197a6cbaf4a7a0e766b03137619a3
3,922
py
Python
faps/make_offspring.py
ellisztamas/faps
fdf5ba990eaf85bfcf05b5eb757285ef40e8f918
[ "MIT" ]
null
null
null
faps/make_offspring.py
ellisztamas/faps
fdf5ba990eaf85bfcf05b5eb757285ef40e8f918
[ "MIT" ]
9
2018-02-15T11:19:04.000Z
2020-05-22T17:54:07.000Z
faps/make_offspring.py
ellisztamas/faps
fdf5ba990eaf85bfcf05b5eb757285ef40e8f918
[ "MIT" ]
null
null
null
import numpy as np from faps.genotypeArray import genotypeArray from faps.calculate_geno_probs import calculate_geno_probs def make_offspring(parents, noffs=None, dam_list=None, sire_list=None, mu=1e-12, family_name='offs'): """ Mate individuals in a base population to create simulated offspring. Lists of ...
46.141176
121
0.694544
0
0
0
0
0
0
0
0
1,947
0.49643
44f8c47600b789d5dd92cdc562549d532583231e
2,362
py
Python
tests/functional/api/test_user_api.py
PhilipWafula/faulu-apis-demo
082735ce8b2bfd010d5b4be9491a5c94a8f745d6
[ "MIT" ]
2
2020-05-29T03:43:28.000Z
2020-06-11T16:03:36.000Z
tests/functional/api/test_user_api.py
PhilipWafula/Flask-Server-Side
082735ce8b2bfd010d5b4be9491a5c94a8f745d6
[ "MIT" ]
15
2020-04-06T10:27:06.000Z
2020-08-16T09:25:20.000Z
tests/functional/api/test_user_api.py
PhilipWafula/faulu-apis-demo
082735ce8b2bfd010d5b4be9491a5c94a8f745d6
[ "MIT" ]
1
2020-06-07T14:09:05.000Z
2020-06-07T14:09:05.000Z
from app.server.models.user import User def test_get_all_users(test_client, activated_admin_user): """ GIVEN a flask application WHEN a GET request sent to '/api/v1/user/' with a valid auth token THEN check all users are returned. """ authentication_token = activated_admin_user.encode_auth_tok...
35.787879
90
0.647756
0
0
0
0
0
0
0
0
965
0.408552
44f956a849a6c4d35aee25d62b6bcf916bf88c50
7,576
py
Python
iprir/tests.py
account-login/iprir
6b268bfff3f5af68f1cbf812f01104d4db238e68
[ "MIT" ]
2
2017-03-01T09:27:18.000Z
2019-10-03T06:36:18.000Z
iprir/tests.py
account-login/iprir
6b268bfff3f5af68f1cbf812f01104d4db238e68
[ "MIT" ]
null
null
null
iprir/tests.py
account-login/iprir
6b268bfff3f5af68f1cbf812f01104d4db238e68
[ "MIT" ]
null
null
null
from ipaddress import IPv4Address, IPv6Address, IPv6Network from contextlib import contextmanager import tempfile import os import random import unittest import requests import iprir from iprir.record import RIRRecord, ip_to_int from iprir.parser import parse_file, parse_string from iprir.database import DB from ipri...
29.59375
93
0.606389
718
0.094773
883
0.116552
915
0.120776
0
0
1,507
0.198918
44fa7ab080f682a67685d77fc4c1632e1036494b
820
py
Python
Aron/Day10/answer.py
coolafabbe/AdventOfCode2021
97a2e4c7d887ef6f1ae477becb25cc1d97114781
[ "MIT" ]
null
null
null
Aron/Day10/answer.py
coolafabbe/AdventOfCode2021
97a2e4c7d887ef6f1ae477becb25cc1d97114781
[ "MIT" ]
null
null
null
Aron/Day10/answer.py
coolafabbe/AdventOfCode2021
97a2e4c7d887ef6f1ae477becb25cc1d97114781
[ "MIT" ]
null
null
null
import sys with open(sys.argv[1], "r") as file: entries = file.read().splitlines() open_chars = ['(', '[', '{', '<'] close_chars = [')', ']', '}', '>'] char_map = {o:c for o, c in zip(open_chars, close_chars)} points = {')': 3, ']':57, '}':1197, '>': 25137} syntax_score = 0 acp_scores = [] for line in entries...
21.578947
57
0.536585
0
0
0
0
0
0
0
0
61
0.07439
44fc2f7950308d857850a4bf2b09c5e329cf743e
1,207
py
Python
bin/compute_stats.py
krayzpipes/ACE-1
138bf2aecad949f0b72b66519c32893df033de39
[ "Apache-2.0" ]
28
2018-08-08T11:57:31.000Z
2022-01-12T23:06:18.000Z
bin/compute_stats.py
krayzpipes/ACE-1
138bf2aecad949f0b72b66519c32893df033de39
[ "Apache-2.0" ]
108
2018-08-08T12:35:06.000Z
2019-07-19T22:57:19.000Z
bin/compute_stats.py
krayzpipes/ACE-1
138bf2aecad949f0b72b66519c32893df033de39
[ "Apache-2.0" ]
16
2018-08-03T18:48:00.000Z
2021-11-09T00:35:35.000Z
#!/usr/bin/env python3 import sys import argparse import os import os.path import re regex = re.compile(r'^(\d+):(\d\d):(\d\d)\.(\d+)$') alt_regex = re.compile(r'^(\d+):(\d\d):(\d\d)$') count = 0 total = 0.0 _max = 0.0 _min = 100000 minimum_considered = 1.0 excluded = 0 for line in sys.stdin: if count == 100000...
24.632653
129
0.574979
0
0
0
0
0
0
0
0
188
0.155758
44fcb92ee46b65e1d813631b2192b3e9c704fc0b
2,622
py
Python
tetris/tetris.py
janmaltel/pytetris
a60475c89ed0fd9666c6e0f1df42c63f62a5b2aa
[ "MIT" ]
2
2019-11-19T12:54:17.000Z
2020-08-19T13:25:35.000Z
tetris/tetris.py
janmaltel/pytetris
a60475c89ed0fd9666c6e0f1df42c63f62a5b2aa
[ "MIT" ]
null
null
null
tetris/tetris.py
janmaltel/pytetris
a60475c89ed0fd9666c6e0f1df42c63f62a5b2aa
[ "MIT" ]
null
null
null
from tetris.board import generate_empty_board from tetris import board, tetromino import numba from numba import jitclass, bool_, int64 from tetris.utils import print_tetromino, print_board_to_string # Needed for numba.@jitclass specTetris = [ ('num_columns', int64), ('num_rows', int64), ('feature_type', ...
35.432432
112
0.690694
2,035
0.776125
0
0
2,057
0.784516
0
0
574
0.218917
44fcd428acfed83c3b1b8317f6fe3c4d1cb8bb2f
1,752
py
Python
endtoend_tests/forseti/notifier/inventory_summary_export_test.py
VGerris/forseti-security
59dc7607b14709e7da4db2751889b4fc757816b6
[ "Apache-2.0" ]
921
2017-03-09T01:01:24.000Z
2019-04-16T11:38:25.000Z
endtoend_tests/forseti/notifier/inventory_summary_export_test.py
VGerris/forseti-security
59dc7607b14709e7da4db2751889b4fc757816b6
[ "Apache-2.0" ]
1,996
2017-03-03T22:07:50.000Z
2019-04-17T00:02:28.000Z
endtoend_tests/forseti/notifier/inventory_summary_export_test.py
VGerris/forseti-security
59dc7607b14709e7da4db2751889b4fc757816b6
[ "Apache-2.0" ]
241
2017-03-09T01:00:04.000Z
2019-04-15T18:53:35.000Z
# Copyright 2020 The Forseti Security Authors. 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 ap...
35.04
77
0.687215
1,046
0.597032
0
0
932
0.531963
0
0
1,054
0.601598
44fcf97e01a85045813ffdd909c930123aef9a7d
2,084
py
Python
telemetry/roles/slurm_telemetry/files/monster/process.py
Lakshmi-Patneedi/omnia
40a5dd9496af16ab6fd18f2d807a4d8dea11bbf3
[ "Apache-2.0" ]
1
2021-10-13T21:48:15.000Z
2021-10-13T21:48:15.000Z
telemetry/roles/slurm_telemetry/files/monster/process.py
Lakshmi-Patneedi/omnia
40a5dd9496af16ab6fd18f2d807a4d8dea11bbf3
[ "Apache-2.0" ]
null
null
null
telemetry/roles/slurm_telemetry/files/monster/process.py
Lakshmi-Patneedi/omnia
40a5dd9496af16ab6fd18f2d807a4d8dea11bbf3
[ "Apache-2.0" ]
null
null
null
""" MIT License Copyright (c) 2022 Texas Tech University Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pu...
33.079365
79
0.702015
0
0
0
0
0
0
0
0
1,460
0.700576
44fd0f9e7f12ff8da71ca85c28bc5c71ce7aba00
2,289
py
Python
ParamSklearn/components/__init__.py
automl/paramsklearn
0466802aad28bfc6df945f874b4b81a3f337009d
[ "BSD-3-Clause" ]
8
2015-10-09T08:23:51.000Z
2020-07-06T01:49:37.000Z
ParamSklearn/components/__init__.py
automl/paramsklearn
0466802aad28bfc6df945f874b4b81a3f337009d
[ "BSD-3-Clause" ]
2
2015-10-31T12:57:23.000Z
2015-11-24T12:54:04.000Z
ParamSklearn/components/__init__.py
automl/paramsklearn
0466802aad28bfc6df945f874b4b81a3f337009d
[ "BSD-3-Clause" ]
8
2015-12-03T17:28:35.000Z
2021-06-26T17:32:29.000Z
"""ParamSklearn can be easily extended with new classification and preprocessing methods. At import time, ParamSklearn checks the directory ``ParamSklearn/components/classification`` for classification algorithms and ``ParamSklearn/components/preprocessing`` for preprocessing algorithms. To be found, the algorithm must...
49.76087
155
0.811271
0
0
0
0
0
0
0
0
2,038
0.890345
44fdd039c46ad6223ab5a5bf2364e61f4d9c428e
658
py
Python
adv/yuya.py
qwewqa/dl
d6a1d035178e1e67ae9045829c6ad5c85c3ec2e0
[ "Apache-2.0" ]
null
null
null
adv/yuya.py
qwewqa/dl
d6a1d035178e1e67ae9045829c6ad5c85c3ec2e0
[ "Apache-2.0" ]
null
null
null
adv/yuya.py
qwewqa/dl
d6a1d035178e1e67ae9045829c6ad5c85c3ec2e0
[ "Apache-2.0" ]
null
null
null
import adv.adv_test from core.advbase import * from slot.d import Dreadking_Rathalos def module(): return Yuya class Yuya(Adv): conf = {} conf['slot.d'] = Dreadking_Rathalos() conf['acl'] = """ `s3, fsc and not self.s3_buff `s1, fsc `fs, seq=2 """ a3 = ('primed_crit...
21.225806
55
0.542553
460
0.699088
0
0
0
0
0
0
178
0.270517
44fed48b903a45718e278b7bbb853329b5ff3a78
669
py
Python
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/analyzers.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
null
null
null
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/analyzers.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
7
2020-06-06T01:06:19.000Z
2022-02-10T11:15:14.000Z
lib/python3.8/site-packages/django_elasticsearch_dsl_drf/analyzers.py
ervinpepic/Kodecta_media_catalog
c1e0692d42ee4935a7e1ae7fec1913ddab3054f2
[ "Apache-2.0" ]
1
2020-11-04T03:21:24.000Z
2020-11-04T03:21:24.000Z
""" Analyzers. """ from elasticsearch_dsl import analyzer from elasticsearch_dsl.analysis import token_filter __title__ = 'django_elasticsearch_dsl_drf.analyzers' __author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>' __copyright__ = '2017-2019 Artur Barseghyan' __license__ = 'GPL 2.0/LGPL 2.1' __all__ = ( '...
23.068966
60
0.762332
0
0
0
0
0
0
0
0
290
0.433483
44fef0a3b086e649cd8bbdf5e4629c04e482ccb9
2,594
py
Python
data/main.py
danielxiangzl/hotstuff
e701f5556102aae99dd1e3a654c15b2cda15579f
[ "Apache-2.0" ]
null
null
null
data/main.py
danielxiangzl/hotstuff
e701f5556102aae99dd1e3a654c15b2cda15579f
[ "Apache-2.0" ]
null
null
null
data/main.py
danielxiangzl/hotstuff
e701f5556102aae99dd1e3a654c15b2cda15579f
[ "Apache-2.0" ]
1
2021-08-08T05:08:49.000Z
2021-08-08T05:08:49.000Z
from glob import glob from os.path import join import os from matplotlib.pyplot import hexbin from parse import LogAggregator from plot import Ploter if __name__ == '__main__': max_latencies = [2_000, 5_000] # For TPS graphs. # Parse the results. for system in ['3-chain', '2-chain', 'ditto-async', 'di...
33.688312
78
0.581727
0
0
0
0
0
0
0
0
730
0.281419
78000ffb092a4de142fe1f75fa2e53b2d742b53a
43,347
py
Python
sdk/python/pulumi_commercetools/outputs.py
unplatform-io/pulumi-commercetools
b81b998f99995c2ab7eb05a45220d414ae414da3
[ "ECL-2.0", "Apache-2.0" ]
1
2021-03-05T10:13:36.000Z
2021-03-05T10:13:36.000Z
sdk/python/pulumi_commercetools/outputs.py
unplatform-io/pulumi-commercetools
b81b998f99995c2ab7eb05a45220d414ae414da3
[ "ECL-2.0", "Apache-2.0" ]
2
2021-09-17T07:23:39.000Z
2021-09-20T12:34:51.000Z
sdk/python/pulumi_commercetools/outputs.py
unplatform-io/pulumi-commercetools
b81b998f99995c2ab7eb05a45220d414ae414da3
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
32.93845
162
0.63054
41,333
0.953538
0
0
41,913
0.966918
0
0
8,522
0.1966
7803a8c8d00022860aa2c1e297b0776b9bac5e6f
4,437
py
Python
LGTV/__init__.py
Maccraft123/LGWebOSRemote
52c481c83e78d06457b58cc68a87fefbfb80c7ef
[ "MIT" ]
null
null
null
LGTV/__init__.py
Maccraft123/LGWebOSRemote
52c481c83e78d06457b58cc68a87fefbfb80c7ef
[ "MIT" ]
null
null
null
LGTV/__init__.py
Maccraft123/LGWebOSRemote
52c481c83e78d06457b58cc68a87fefbfb80c7ef
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function from inspect import getargspec import json import os import sys from time import sleep import logging from .scan import LGTVScan from .remote import LGTVRemote from .auth import LGTVAuth search_config = [ "/etc/lgtv/config.json", "~/.lgtv/config.j...
25.5
106
0.497634
0
0
0
0
0
0
0
0
707
0.159342
7804747b1e4973dfb20f21c2d72f6ee3df3427ee
508
py
Python
tests/test_django_cms_templates.py
judy2k/epcon
0a033f915bd79c1e93e6408069e33655990fbf07
[ "BSD-2-Clause" ]
null
null
null
tests/test_django_cms_templates.py
judy2k/epcon
0a033f915bd79c1e93e6408069e33655990fbf07
[ "BSD-2-Clause" ]
null
null
null
tests/test_django_cms_templates.py
judy2k/epcon
0a033f915bd79c1e93e6408069e33655990fbf07
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals, absolute_import from pytest import mark from tests.common_tools import template_used # , template_paths # needs to be marked because Django CMS will interfere @mark.django_db def test_if_menu_html_template_is_used_on_404_page(client): url = "/asasd/foo/...
29.882353
69
0.777559
0
0
0
0
285
0.561024
0
0
134
0.26378
7804b1932916d494a0caef5d17c396d3ce3feb1f
5,809
py
Python
data/master_cycle_gan_dataset.py
RegentLee/master_research
ee8e45abc890c7103c1c9917954c5958b48782f6
[ "BSD-3-Clause" ]
null
null
null
data/master_cycle_gan_dataset.py
RegentLee/master_research
ee8e45abc890c7103c1c9917954c5958b48782f6
[ "BSD-3-Clause" ]
null
null
null
data/master_cycle_gan_dataset.py
RegentLee/master_research
ee8e45abc890c7103c1c9917954c5958b48782f6
[ "BSD-3-Clause" ]
null
null
null
"""Dataset class template This module provides a template for users to implement custom datasets. You can specify '--dataset_mode template' to use this dataset. The class name should be consistent with both the filename and its dataset_mode option. The filename should be <dataset_mode>_dataset.py The class name should...
41.791367
158
0.632123
4,813
0.828257
0
0
1,046
0.180003
0
0
3,151
0.542247
78053273af9c507537b21f75edef0b6e3855dd00
317
py
Python
colors.py
Gpopcorn/3D-Graphics-Engine
d13f5cf8da8c55796d4eb04a10beb80da3f36c1e
[ "MIT" ]
11
2021-02-25T23:27:14.000Z
2021-08-18T10:04:18.000Z
colors.py
Gpopcorn/3D-Graphics-Engine
d13f5cf8da8c55796d4eb04a10beb80da3f36c1e
[ "MIT" ]
1
2021-07-17T15:49:43.000Z
2021-08-03T06:56:04.000Z
colors.py
Gpopcorn/3D-Graphics-Engine
d13f5cf8da8c55796d4eb04a10beb80da3f36c1e
[ "MIT" ]
null
null
null
# GRAYSCALE WHITE = (255, 255, 255) L_GRAY = (190, 190, 190) GRAY = (127, 127, 127) D_GRAY = (63, 63, 63 ) BLACK = (0, 0, 0 ) # RGB RED = (255, 0, 0 ) YELLOW = (255, 255, 0 ) GREEN = (0, 255, 0 ) INDIGO = (0, 255, 255) BLUE = (0, 0, 255) MAGENTA = (255, 0, 255)
22.642857
26
0.444795
0
0
0
0
0
0
0
0
18
0.056782
7807f36da3c8917bfeb72b16ca3098a963e923cd
134
py
Python
gateway/api_manager/urls.py
BitingCat/superm
f358d325bc8b087df508592d986a2d1e60d03959
[ "Apache-2.0" ]
null
null
null
gateway/api_manager/urls.py
BitingCat/superm
f358d325bc8b087df508592d986a2d1e60d03959
[ "Apache-2.0" ]
null
null
null
gateway/api_manager/urls.py
BitingCat/superm
f358d325bc8b087df508592d986a2d1e60d03959
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url import os from gateway.api_manager import views urlpatterns = [ url(r'^superm$', views.superm) ]
13.4
37
0.746269
0
0
0
0
0
0
0
0
11
0.08209
7809b78f24ddb2cbb5d91e66401e349e1a70f060
332
py
Python
powerline/bindings/awesome/powerline-awesome.py
PH111P/powerline
f8dfe7e7e3d021cd66bc0e19b19ea4a51949cb9a
[ "MIT" ]
23
2016-12-16T09:03:18.000Z
2022-02-25T19:19:23.000Z
powerline/bindings/awesome/powerline-awesome.py
PH111P/powerline
f8dfe7e7e3d021cd66bc0e19b19ea4a51949cb9a
[ "MIT" ]
30
2016-12-20T11:11:42.000Z
2019-11-19T15:23:59.000Z
powerline/bindings/awesome/powerline-awesome.py
PH111P/powerline
f8dfe7e7e3d021cd66bc0e19b19ea4a51949cb9a
[ "MIT" ]
4
2016-12-11T18:29:11.000Z
2018-04-22T07:51:28.000Z
#!/usr/bin/env python import sys from powerline.bindings.wm import DEFAULT_UPDATE_INTERVAL from powerline.bindings.wm.awesome import run def main(): try: interval = float(sys.argv[1]) except IndexError: interval = DEFAULT_UPDATE_INTERVAL run(interval=interval) if __name__ == '__main__':...
18.444444
57
0.704819
0
0
0
0
0
0
0
0
31
0.093373
780aa1d44fdf013fa8158b9597ec531da2bacc1c
882
py
Python
zero_to_one_hundred/processors/refresh_map_processor.py
fossabot/0to100
37faa1340b2ec8b87e5d4c268c8caf521ea164cb
[ "Apache-2.0" ]
null
null
null
zero_to_one_hundred/processors/refresh_map_processor.py
fossabot/0to100
37faa1340b2ec8b87e5d4c268c8caf521ea164cb
[ "Apache-2.0" ]
null
null
null
zero_to_one_hundred/processors/refresh_map_processor.py
fossabot/0to100
37faa1340b2ec8b87e5d4c268c8caf521ea164cb
[ "Apache-2.0" ]
null
null
null
"""RefreshMapProcessor: refresh sections in map """ # pylint: disable=C0116,R0903,E0401,W0703,W1201,redefined-outer-name,missing-function-docstring,E0401,C0114,W0511,W1203,C0200,C0103,W1203 from configs.config import ConfigMap from models.map import Map class RefreshMapProcessor: """RefreshMapProcessor""" d...
32.666667
137
0.689342
624
0.707483
0
0
0
0
0
0
307
0.348073
780b6383b9441cbbb52f13931df26519c2613bf3
14,047
py
Python
sharkdata_core/dataset_utils.py
sharkdata/sharkdata
67793fd1771c9c2e599e62d57fcef432be5a8340
[ "MIT" ]
2
2016-07-20T07:09:51.000Z
2016-08-12T12:20:20.000Z
sharkdata_core/dataset_utils.py
sharkdata/sharkdata
67793fd1771c9c2e599e62d57fcef432be5a8340
[ "MIT" ]
1
2016-01-21T12:18:17.000Z
2016-01-21T12:20:50.000Z
sharkdata_core/dataset_utils.py
sharkdata/sharkdata
67793fd1771c9c2e599e62d57fcef432be5a8340
[ "MIT" ]
2
2016-07-20T07:13:35.000Z
2016-08-12T11:40:15.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- # # Copyright (c) 2013-present SMHI, Swedish Meteorological and Hydrological Institute # License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit). import pathlib from django.conf import settings import app_datasets.models as datasets_models import app_c...
40.134286
152
0.484587
13,636
0.970741
0
0
13,662
0.972592
0
0
2,781
0.197978
780c8d67ab8158a6c2a0fc0dac2bd5c621680885
1,660
py
Python
python_scripts/load_script/helper.py
Tutkovics/Scaling_MSc
66ffda5df7acc6b310c55905a147d812193b4be4
[ "Apache-2.0" ]
null
null
null
python_scripts/load_script/helper.py
Tutkovics/Scaling_MSc
66ffda5df7acc6b310c55905a147d812193b4be4
[ "Apache-2.0" ]
null
null
null
python_scripts/load_script/helper.py
Tutkovics/Scaling_MSc
66ffda5df7acc6b310c55905a147d812193b4be4
[ "Apache-2.0" ]
null
null
null
import time import yaml def read_config_file(file_name): """Setup config parameters Read and store configuration parameters from given config file """ with open(file_name) as config_file: config_values = {} config = yaml.safe_load(config_file) # get values from yaml ...
36.086957
71
0.633133
0
0
0
0
0
0
0
0
680
0.409639
780cec5f5edff01a3292dabe0c19af13755eed4a
8,789
py
Python
tiddlyweb/web/wsgi.py
funkyeah/tiddlyweb
2346e6c05aa03ae9c8f2687d9ef9e46103267a8e
[ "BSD-3-Clause" ]
null
null
null
tiddlyweb/web/wsgi.py
funkyeah/tiddlyweb
2346e6c05aa03ae9c8f2687d9ef9e46103267a8e
[ "BSD-3-Clause" ]
null
null
null
tiddlyweb/web/wsgi.py
funkyeah/tiddlyweb
2346e6c05aa03ae9c8f2687d9ef9e46103267a8e
[ "BSD-3-Clause" ]
null
null
null
""" WSGI Middleware apps that haven't gotten around to being extracted to their own modules. """ import logging import time import urllib from tiddlyweb.model.policy import UserRequiredError, ForbiddenError from tiddlyweb.store import Store from tiddlyweb.web.http import HTTP403, HTTP302 from tiddlyweb.web.util impor...
30.730769
78
0.596882
7,646
0.869951
426
0.04847
0
0
0
0
3,320
0.377745
780d135009c65b71e679ad98d281b418ce5f55fe
1,534
py
Python
tests/test_parent_data_param.py
robhowley/treetl
fef395edb077fc73ca7621f1e5099c04bb781d68
[ "MIT" ]
8
2016-07-16T19:24:31.000Z
2019-05-28T06:34:47.000Z
tests/test_parent_data_param.py
robhowley/treetl
fef395edb077fc73ca7621f1e5099c04bb781d68
[ "MIT" ]
null
null
null
tests/test_parent_data_param.py
robhowley/treetl
fef395edb077fc73ca7621f1e5099c04bb781d68
[ "MIT" ]
2
2017-09-16T20:25:20.000Z
2019-10-27T13:44:33.000Z
import unittest class TestParentDataParams(unittest.TestCase): def setUp(self): from treetl import Job self.expected_results = { jn: i+1 for i, jn in enumerate([ 'JobA', 'JobB', 'JobC', 'JobD' ]) } self.actual_results = { } def update_actual_results(job): self.actua...
28.943396
102
0.591917
1,466
0.955671
0
0
396
0.258149
0
0
76
0.049544
780fadebf915440001592a011c8b065de65bb374
1,243
py
Python
ml_recommend/cos_demo.py
jarvisqi/machine_learning
cba3f2fed87a3de2c6b707903d37f936e5f0cd5b
[ "MIT" ]
2
2018-09-25T07:54:31.000Z
2021-01-12T08:57:23.000Z
ml_recommend/cos_demo.py
jarvisqi/nlp_learn
53c5b4087dbfc30e47451fd3f5261ba44f523f39
[ "MIT" ]
null
null
null
ml_recommend/cos_demo.py
jarvisqi/nlp_learn
53c5b4087dbfc30e47451fd3f5261ba44f523f39
[ "MIT" ]
1
2019-06-25T07:28:27.000Z
2019-06-25T07:28:27.000Z
# -*- coding: utf-8 -*- # 计算修正余弦相似度的Python代码 from math import sqrt users3 = { "David": {"爱乐之城": 4, "荒野猎人": 5,"银河护卫队2": 4, "长城": 1}, "Matt": {"爱乐之城": 3, "荒野猎人": 4,"银河护卫队2": 4, "长城": 1}, "Ben": {"美国队长3": 4, "爱乐之城": 3,"银河护卫队2": 3, "长城": 1}, "Chris": {"美国队长3": 3, "爱乐之城": 4,"荒野猎人"...
36.558824
81
0.5358
0
0
0
0
0
0
0
0
658
0.417778
780fb3b531fe4dbaf617a0a6b5ace4197ef2ce42
355
py
Python
cv2/__init__.py
goodclass/OpenCV_arm64
baafd7203444c7529872d3d35faaadebf00dd123
[ "Apache-2.0" ]
6
2019-08-13T21:56:47.000Z
2021-03-23T19:52:55.000Z
cv2/__init__.py
goodclass/opencv_arm64
baafd7203444c7529872d3d35faaadebf00dd123
[ "Apache-2.0" ]
null
null
null
cv2/__init__.py
goodclass/opencv_arm64
baafd7203444c7529872d3d35faaadebf00dd123
[ "Apache-2.0" ]
null
null
null
import importlib from .cv2 import * from .data import * # wildcard import above does not import "private" variables like __version__ # this makes them available globals().update(importlib.import_module('cv2.cv2').__dict__) def imshow_image(title, image): import matplotlib.pyplot as plt plt.imshow(image) ...
20.882353
76
0.752113
0
0
0
0
0
0
0
0
112
0.315493
7810d779e5150a8da080692129dd8ba323975421
70,466
py
Python
RayTracing/gui/gui.py
TEM-Gemini-Centre/RayTracing
fa4b6057c9a7307f75e52f0bd7a4a13751f832ec
[ "MIT" ]
null
null
null
RayTracing/gui/gui.py
TEM-Gemini-Centre/RayTracing
fa4b6057c9a7307f75e52f0bd7a4a13751f832ec
[ "MIT" ]
null
null
null
RayTracing/gui/gui.py
TEM-Gemini-Centre/RayTracing
fa4b6057c9a7307f75e52f0bd7a4a13751f832ec
[ "MIT" ]
null
null
null
from PyQt5 import QtWidgets, QtGui, QtCore, Qt, uic from PyQt5.QtCore import pyqtSignal, pyqtSlot from RayTracing.gui.mplwidget import * from RayTracing.RayTracing import * from tabulate import tabulate from pathlib import Path from matplotlib.lines import lineStyles from matplotlib.colors import to_hex, to_rgb import ...
38.909994
335
0.652059
66,225
0.939815
261
0.003704
27,645
0.392317
0
0
18,032
0.255896
7810ed6a751d4492d7c42bf9fe88d5e9684d0272
532
py
Python
app.py
lilbillybiscuit/tensorflow_chessbot
7e8c49ea173c8f7ba05faf036c10b1b2ddf67f45
[ "MIT" ]
null
null
null
app.py
lilbillybiscuit/tensorflow_chessbot
7e8c49ea173c8f7ba05faf036c10b1b2ddf67f45
[ "MIT" ]
null
null
null
app.py
lilbillybiscuit/tensorflow_chessbot
7e8c49ea173c8f7ba05faf036c10b1b2ddf67f45
[ "MIT" ]
null
null
null
import json import base64 import os def lambda_handler(event, context): #os.system("./tensorflow_chessbot.py") #return "Hi" text=base64.b64decode(event['body']) image = open("/tmp/image.png", "wb") image.write(text) image.close() os.system("./tensorflow_chessbot.py --filepath /tmp/image.png") fen=open(...
22.166667
65
0.631579
0
0
0
0
0
0
0
0
215
0.404135
7811235be67bd4477bed0dde9c6d06a0d0935165
976
py
Python
plugins/grafana/icon_grafana/actions/do_proxied_datasource_call/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/grafana/icon_grafana/actions/do_proxied_datasource_call/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/grafana/icon_grafana/actions/do_proxied_datasource_call/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
import komand from .schema import DoProxiedDatasourceCallInput, DoProxiedDatasourceCallOutput # Custom imports below class DoProxiedDatasourceCall(komand.Action): def __init__(self): super(self.__class__, self).__init__( name="do_proxied_datasource_call", description="Proxies all ...
34.857143
115
0.646516
855
0.876025
0
0
0
0
0
0
194
0.19877
78115951a587f10b8a500670a6eababb14671283
7,220
py
Python
model.py
zzz8645/mini-StyleGAN
e8e0df68d415fd5b0e8fda0e5d9674649538015a
[ "MIT" ]
null
null
null
model.py
zzz8645/mini-StyleGAN
e8e0df68d415fd5b0e8fda0e5d9674649538015a
[ "MIT" ]
null
null
null
model.py
zzz8645/mini-StyleGAN
e8e0df68d415fd5b0e8fda0e5d9674649538015a
[ "MIT" ]
null
null
null
import random,math import numpy as np import jittor as jt from jittor.nn import Sequential,LeakyReLU class LR: def __init__(self,n): self.n=n def get_w(self,m): w=getattr(m,self.n+'_o') return w*math.sqrt(2/w[0].numel()) def __call__(self,m,_): setattr(m,self.n,self.get_w(...
40.111111
317
0.608033
7,033
0.9741
0
0
148
0.020499
0
0
43
0.005956
7812b8f4ff19f85ceff7a725ced6fd5ca666d547
2,748
py
Python
3/deck_handler.py
diblaze/TDP002
41c9c2155e2ad8cc4047ea912edd463042d95362
[ "MIT" ]
null
null
null
3/deck_handler.py
diblaze/TDP002
41c9c2155e2ad8cc4047ea912edd463042d95362
[ "MIT" ]
null
null
null
3/deck_handler.py
diblaze/TDP002
41c9c2155e2ad8cc4047ea912edd463042d95362
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import random # acc. to assignment we only need two suits (half of deck) #spades = 1..13 #hearts = 1..13 * 2 suits = {"spades": 1, "hearts": 2} values = {"one": 1, "two": 2, "three": 3, "four": 4, "five": 5, "six": 6, "seven": 7, "eight": 8, "nine": 9, "ten": 10, "elseven": 11, "twelv...
28.040816
128
0.664483
0
0
0
0
0
0
0
0
1,103
0.401383
7812d67db7a500259addfa44401133c4cd5059de
403
py
Python
iapcompython/prog_4_2.py
edmilsonlibanio/Ola-Mundo-Python
33fb08da5878f2784983c623df04d2bbdfb30f25
[ "MIT" ]
null
null
null
iapcompython/prog_4_2.py
edmilsonlibanio/Ola-Mundo-Python
33fb08da5878f2784983c623df04d2bbdfb30f25
[ "MIT" ]
null
null
null
iapcompython/prog_4_2.py
edmilsonlibanio/Ola-Mundo-Python
33fb08da5878f2784983c623df04d2bbdfb30f25
[ "MIT" ]
null
null
null
# Programa: Carro Velho ou Carro Novo (usando apenas if 2 vezes)? idade = int(input('Digite a idade do seu carro: ')) if idade <= 3: print('O seu carro é novo!') if idade > 3: print('O seu carro é velho!') #Se observarmos de perto não há um só numero que torne ambas as condições verdadeiras ao mesmo tempo. A...
44.777778
186
0.722084
0
0
0
0
0
0
0
0
338
0.814458
7813c500e651edf48e529ef83919155389e7b77e
3,069
py
Python
nixie_clock/nixie_clock.py
sdenisen/test
709bcdd16d0f83f03b04e0bc7918bb3785993c59
[ "Unlicense" ]
null
null
null
nixie_clock/nixie_clock.py
sdenisen/test
709bcdd16d0f83f03b04e0bc7918bb3785993c59
[ "Unlicense" ]
2
2017-08-24T18:55:37.000Z
2017-08-24T18:59:06.000Z
nixie_clock/nixie_clock.py
sdenisen/test
709bcdd16d0f83f03b04e0bc7918bb3785993c59
[ "Unlicense" ]
null
null
null
import RPi.GPIO as GPIO from socket import AF_INET, SOCK_DGRAM import socket import struct, time GPIO.setmode(GPIO.BOARD) __author__ = 'Sergey' class NixieClock(object): CHANNEL_HOUR_0 = 3 CHANNEL_HOUR_1 = 5 CHANNEL_MINUTE_0 = 7 CHANNEL_MINUTE_1 = 11 CHANNEL_SECOND_0 = 13 CHANNEL_SECOND_1 =...
33
116
0.614532
2,891
0.942001
0
0
0
0
0
0
313
0.101988
78150c3f14d3b4c2aff18129bfca862c94bb1aec
2,106
py
Python
django_db_views/tests/tests.py
Skylude/django-db-views
048a1e3ab7465d3e19481de82b3737f780b175c0
[ "MIT" ]
null
null
null
django_db_views/tests/tests.py
Skylude/django-db-views
048a1e3ab7465d3e19481de82b3737f780b175c0
[ "MIT" ]
null
null
null
django_db_views/tests/tests.py
Skylude/django-db-views
048a1e3ab7465d3e19481de82b3737f780b175c0
[ "MIT" ]
null
null
null
import django import os from unittest.mock import patch from django.apps import apps from django.conf import settings from django.db.migrations.loader import MigrationLoader from django.db.migrations.state import ProjectState from django.db.migrations.recorder import MigrationRecorder from django.db import connections...
35.694915
116
0.716049
1,596
0.757835
0
0
507
0.240741
0
0
269
0.12773
7816f05b04eda6b9f559f45e46216ae5a6fecedf
609
py
Python
code/util/create_dir.py
96jhwei/Genetic-U-Net
25116f01afcf8ed4386cd0fc258da15e1c982cb5
[ "MIT" ]
14
2021-09-09T11:22:17.000Z
2022-03-14T10:06:36.000Z
code/util/create_dir.py
96jhwei/Genetic-U-Net
25116f01afcf8ed4386cd0fc258da15e1c982cb5
[ "MIT" ]
1
2021-11-24T10:30:36.000Z
2021-11-24T10:30:36.000Z
code/util/create_dir.py
96jhwei/Genetic-U-Net
25116f01afcf8ed4386cd0fc258da15e1c982cb5
[ "MIT" ]
5
2021-11-02T09:29:49.000Z
2022-03-25T09:44:25.000Z
""" Helper function for create directories """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import os def create_dirs(dirs): """ Utility function for creating directories Args: dirs (list of string): A list of direct...
22.555556
71
0.678161
0
0
0
0
0
0
0
0
277
0.454844
7819128754038c5b686dca37e3fccc203c4ae962
7,751
py
Python
reman/migrations/0001_initial.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
reman/migrations/0001_initial.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
reman/migrations/0001_initial.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-22 07:34 from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AU...
63.532787
183
0.633338
7,585
0.975688
0
0
0
0
0
0
1,494
0.192179
781955390893d95f18fcf3689df89dc587380e35
4,236
py
Python
iotsim/controls.py
mmamaev/iotsim
d47587dea106f312ff4ee407a3d693a96fc46799
[ "BSD-3-Clause" ]
null
null
null
iotsim/controls.py
mmamaev/iotsim
d47587dea106f312ff4ee407a3d693a96fc46799
[ "BSD-3-Clause" ]
null
null
null
iotsim/controls.py
mmamaev/iotsim
d47587dea106f312ff4ee407a3d693a96fc46799
[ "BSD-3-Clause" ]
null
null
null
from .core import Control, AssemblyContext, Trigger from .utils import to_name import numpy as np from typing import List, Callable class ContextRetriever: def __call__(self, assembly_context: AssemblyContext): return None class CopyFromParameter(ContextRetriever): def __init__(self, src_component, ...
36.205128
84
0.598206
4,082
0.963645
0
0
0
0
0
0
0
0
781c36222d396a1f95b5c079f6b6cc5e00a4eb34
1,172
py
Python
pinax/wiki/conf.py
pinax/pinax-wiki
8d116fbfd40bdcf1ff0f66d6a0cb30f29e8d5e5e
[ "MIT" ]
29
2015-04-07T11:51:22.000Z
2022-02-16T06:41:34.000Z
pinax/wiki/conf.py
pinax/pinax-wiki
8d116fbfd40bdcf1ff0f66d6a0cb30f29e8d5e5e
[ "MIT" ]
20
2015-03-26T00:33:49.000Z
2020-08-30T21:55:05.000Z
pinax/wiki/conf.py
pinax/pinax-wiki
8d116fbfd40bdcf1ff0f66d6a0cb30f29e8d5e5e
[ "MIT" ]
6
2015-04-15T02:48:45.000Z
2019-05-06T21:03:13.000Z
import importlib from django.conf import settings # noqa from django.core.exceptions import ImproperlyConfigured from appconf import AppConf def load_path_attr(path): i = path.rfind(".") module, attr = path[:i], path[i + 1:] try: mod = importlib.import_module(module) except ImportError as e...
25.478261
83
0.662116
606
0.517065
0
0
0
0
0
0
228
0.194539
781e0a0704d2f7732109db9bb6f242cbca4737e9
2,471
py
Python
kathisattic/apps/product/views.py
ninapavlich/kathisattic
0585e63f43da6841f7fc0d69f090d7ab556dcec0
[ "MIT" ]
null
null
null
kathisattic/apps/product/views.py
ninapavlich/kathisattic
0585e63f43da6841f7fc0d69f090d7ab556dcec0
[ "MIT" ]
null
null
null
kathisattic/apps/product/views.py
ninapavlich/kathisattic
0585e63f43da6841f7fc0d69f090d7ab556dcec0
[ "MIT" ]
null
null
null
from django.db.models import Q from django.views.generic.edit import CreateView from django.views.generic.list import ListView from carbon.compounds.page.views import PageDetail as BasePageDetail from carbon.compounds.page.views import PageTagView as BasePageTagView from carbon.compounds.page.views import PageBlockVi...
27.764045
154
0.68879
1,921
0.777418
0
0
0
0
0
0
117
0.047349
781e80e46d0d877cb49f27c6269ade3d9039f890
174
py
Python
examples/python/simple/datastruct_print_tuple.py
airgiser/ucb
d03e62a17f35a9183ed36662352f603f0f673194
[ "MIT" ]
1
2022-01-08T14:59:44.000Z
2022-01-08T14:59:44.000Z
examples/python/simple/datastruct_print_tuple.py
airgiser/just-for-fun
d03e62a17f35a9183ed36662352f603f0f673194
[ "MIT" ]
null
null
null
examples/python/simple/datastruct_print_tuple.py
airgiser/just-for-fun
d03e62a17f35a9183ed36662352f603f0f673194
[ "MIT" ]
null
null
null
#!/usr/bin/python # Filename: datastruct_print_tuple.py age = 25 name = 'Airgis' print '%s is %d years old.' %(name, age) print 'Why is %s playing with the python?' % name
19.333333
49
0.678161
0
0
0
0
0
0
0
0
119
0.683908
781f4fc5078b64546c321f926c3e524d78132cf7
5,124
py
Python
snowCore_dailyMeanProfiles_2017-2019.py
michaeltown-phd/snowisoDataMunging
dea0ebcd41a1b2022af38f0a8fd86a99eecbfd39
[ "MIT" ]
null
null
null
snowCore_dailyMeanProfiles_2017-2019.py
michaeltown-phd/snowisoDataMunging
dea0ebcd41a1b2022af38f0a8fd86a99eecbfd39
[ "MIT" ]
11
2022-03-25T22:46:57.000Z
2022-03-30T22:48:59.000Z
snowCore_dailyMeanProfiles_2017-2019.py
michaeltown-phd/snowisoDataMunging
dea0ebcd41a1b2022af38f0a8fd86a99eecbfd39
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Apr 18 09:08:20 2022 A script to plot mean daily cores for intercomparison of features as a function of time through a season. @author: michaeltown """ #libraries import pandas as pd import numpy as np import matplotlib.pyplot as plt import os import...
46.162162
127
0.680523
0
0
0
0
0
0
0
0
1,503
0.293326
7820dee9a037495f3b5046586b45f8279d2ed452
3,147
py
Python
fpn/test.py
jjjump-tutu/depository
2667e2217c4e0ee1dcdbcf2f94630487d3c14c70
[ "MIT" ]
null
null
null
fpn/test.py
jjjump-tutu/depository
2667e2217c4e0ee1dcdbcf2f94630487d3c14c70
[ "MIT" ]
1
2020-12-01T07:11:08.000Z
2020-12-01T09:28:55.000Z
fpn/test.py
jjjump-tutu/depository
2667e2217c4e0ee1dcdbcf2f94630487d3c14c70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Mar 17 23:2 7:28 2019 @author: Winham 网络测试 """ import os import numpy as np from keras.models import load_model from keras.utils import to_categorical from data_preprocess import * import mit_utils as utils import time import matplotlib.pyplot as plt import...
27.605263
68
0.575151
0
0
0
0
0
0
0
0
1,221
0.387005
78229ade32d0366ad4b3eef09f67c6320b26c881
235
py
Python
tests/test_demo.py
OmkarKirpan/T-ENTacle
cffbce29f50de255d6f17be5acb16e35a4ccacfe
[ "Apache-2.0" ]
null
null
null
tests/test_demo.py
OmkarKirpan/T-ENTacle
cffbce29f50de255d6f17be5acb16e35a4ccacfe
[ "Apache-2.0" ]
null
null
null
tests/test_demo.py
OmkarKirpan/T-ENTacle
cffbce29f50de255d6f17be5acb16e35a4ccacfe
[ "Apache-2.0" ]
1
2021-01-23T23:49:50.000Z
2021-01-23T23:49:50.000Z
# content of ./test_smtpsimple.py import pytest @pytest.fixture def smtp(): import smtplib return smtplib.SMTP("smtp.gmail.com", 587, timeout=5) def test_ehlo(smtp): response, msg = smtp.ehlo() assert response == 250
19.583333
57
0.693617
0
0
0
0
104
0.442553
0
0
49
0.208511
7822ce08c98bbae4ad9b61ae8abb7997cf1d7c6e
902
py
Python
solutions/codeforces/158B.py
forxhunter/ComputingIntro
50fa2ac030748626c694ec5c884c5ac32f0b42a8
[ "Apache-2.0" ]
1
2021-01-02T04:31:34.000Z
2021-01-02T04:31:34.000Z
solutions/codeforces/158B.py
forxhunter/ComputingIntro
50fa2ac030748626c694ec5c884c5ac32f0b42a8
[ "Apache-2.0" ]
null
null
null
solutions/codeforces/158B.py
forxhunter/ComputingIntro
50fa2ac030748626c694ec5c884c5ac32f0b42a8
[ "Apache-2.0" ]
null
null
null
''' check ''' groups = [0, 0, 0, 0] n = int(input()) data = input() carsnum = 0 for i in range(4): groups[i] = data.count(str(i+1)) # deal with 4 people group carsnum += groups[3] groups[3] = 0 # deal with 2 people group carsnum += groups[1] // 2 groups[1] %= 2 # deal with 1 and 3 people group if groups[0] <= gro...
19.608696
39
0.531042
0
0
0
0
0
0
0
0
195
0.216186
78242ab3f8e265a2bb01183be9d47df6398aa178
4,113
py
Python
mppsolar/devices/device.py
BarkinSpider/mpp-solar
071ca0cd9feea458b1e36dc020aa704b2000e431
[ "MIT" ]
1
2021-03-02T22:44:04.000Z
2021-03-02T22:44:04.000Z
mppsolar/devices/device.py
BarkinSpider/mpp-solar
071ca0cd9feea458b1e36dc020aa704b2000e431
[ "MIT" ]
null
null
null
mppsolar/devices/device.py
BarkinSpider/mpp-solar
071ca0cd9feea458b1e36dc020aa704b2000e431
[ "MIT" ]
null
null
null
import abc import importlib import logging log = logging.getLogger("MPP-Solar") SERIAL_TYPE_TEST = 1 SERIAL_TYPE_USB = 2 SERIAL_TYPE_ESP32 = 4 SERIAL_TYPE_SERIAL = 8 class AbstractDevice(metaclass=abc.ABCMeta): """ Abstract device class """ def __init__(self, *args, **kwargs): self._protoco...
31.883721
82
0.624605
3,942
0.958425
0
0
290
0.070508
0
0
830
0.201799
7824f64ce3bb3cc3961afdec7e3c6fa3721e5452
2,539
py
Python
autism/views.py
jenith-hue/Lung_Cancer
69171d26ab1a2eccf4ae7243e8bdd2d9f1ccbfb5
[ "MIT" ]
null
null
null
autism/views.py
jenith-hue/Lung_Cancer
69171d26ab1a2eccf4ae7243e8bdd2d9f1ccbfb5
[ "MIT" ]
null
null
null
autism/views.py
jenith-hue/Lung_Cancer
69171d26ab1a2eccf4ae7243e8bdd2d9f1ccbfb5
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponseRedirect from .forms import Predict from .ML_ALGORITHM import you import numpy def index(request): return render(request, 'autism/home.html') def predict(request): return render(request, 'autism/predict.html'...
29.523256
64
0.554943
0
0
0
0
0
0
0
0
310
0.122095
78251293e5c3da715709caaa79f7051c05a25145
724
py
Python
tests/util/test_immutabledict.py
SelfHacked/django-model-wrappers
2aa0bb773d61c6b5c794126b1dc4f06d622ff079
[ "MIT" ]
null
null
null
tests/util/test_immutabledict.py
SelfHacked/django-model-wrappers
2aa0bb773d61c6b5c794126b1dc4f06d622ff079
[ "MIT" ]
null
null
null
tests/util/test_immutabledict.py
SelfHacked/django-model-wrappers
2aa0bb773d61c6b5c794126b1dc4f06d622ff079
[ "MIT" ]
1
2021-06-03T12:04:22.000Z
2021-06-03T12:04:22.000Z
import pytest from model_wrappers.util.datatypes import ImmutableDict d = { 'a': 0, 'b': 'x', } im = ImmutableDict(d) def test_str(): assert repr(im) == repr(d) assert str(im) == str(d) def test_items(): assert set(im.keys()) == {'a', 'b'} assert set(im.values()) == {0, 'x'} assert set...
17.238095
55
0.537293
0
0
0
0
0
0
0
0
51
0.070442
78267247f1ad73db4ca30cdb83a52c4d8988159a
1,708
py
Python
Program.py
evanxia1018/CSE539_Project_LLE
881ea2278c39c16716e5de83dd8abbd267806a35
[ "MIT" ]
2
2019-11-10T02:04:52.000Z
2020-04-19T03:51:51.000Z
Program.py
SarahLynnePu/CSE539_Project_LLE
881ea2278c39c16716e5de83dd8abbd267806a35
[ "MIT" ]
null
null
null
Program.py
SarahLynnePu/CSE539_Project_LLE
881ea2278c39c16716e5de83dd8abbd267806a35
[ "MIT" ]
3
2017-12-28T14:09:24.000Z
2020-04-19T04:25:03.000Z
import time import Generation_Stage import Evaluate_lle import Evaluate_pca import Evaluation_Stage print("**********************************************************************") print("Hello. This is CSE569 Project Demo, produced by Haisi Yi and Zheng Xia") print("*****************************************************...
32.846154
137
0.566745
0
0
0
0
0
0
0
0
836
0.489461
7828bc8cfbb067ddc1a2bb084a724e2b6671e88f
3,868
py
Python
medical_peek_api/controller/exception_handler_controller.py
WillCallahan/medical_peek
e27e547ea7c8bc1deea8668090ff582020d7d6b2
[ "MIT" ]
null
null
null
medical_peek_api/controller/exception_handler_controller.py
WillCallahan/medical_peek
e27e547ea7c8bc1deea8668090ff582020d7d6b2
[ "MIT" ]
12
2021-04-06T18:25:47.000Z
2022-03-12T00:52:42.000Z
medical_peek_api/controller/exception_handler_controller.py
WillCallahan/medical_peek
e27e547ea7c8bc1deea8668090ff582020d7d6b2
[ "MIT" ]
null
null
null
import logging from django.core.handlers.wsgi import WSGIRequest from django.http import JsonResponse from django.views.defaults import server_error, page_not_found from rest_framework import status from medical_peek_core.model.j_send import JSend, JSendSerializer from medical_peek_core.utility.exception_utility impo...
44.45977
117
0.735264
0
0
0
0
0
0
0
0
2,009
0.51939
78297729387284e49b1f84299398b83a0dc26f20
66,793
py
Python
interface/Python/smg2s/smg2s.py
SMG2S/SMG2S
4e61cf36951289c8deeb74e312131430c1ac12f8
[ "MIT" ]
2
2019-03-22T10:36:01.000Z
2019-11-17T20:24:53.000Z
interface/Python/smg2s/smg2s.py
SMG2S/SMG2S
4e61cf36951289c8deeb74e312131430c1ac12f8
[ "MIT" ]
1
2020-04-07T07:55:29.000Z
2020-04-10T09:07:36.000Z
interface/Python/smg2s/smg2s.py
SMG2S/SMG2S
4e61cf36951289c8deeb74e312131430c1ac12f8
[ "MIT" ]
2
2018-08-22T21:34:21.000Z
2020-03-24T09:41:57.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): def swig_im...
42.926093
153
0.771099
60,347
0.903493
0
0
0
0
0
0
1,283
0.019209
782a6e70bb1c62e99b1c75451a5570b2a5aaefd1
1,545
py
Python
tests/regressiontests/admin_util/tests.py
huicheese/Django-test3
ac11d2dce245b48392e52d1f4acfd5e7433b243e
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/admin_util/tests.py
huicheese/Django-test3
ac11d2dce245b48392e52d1f4acfd5e7433b243e
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/admin_util/tests.py
huicheese/Django-test3
ac11d2dce245b48392e52d1f4acfd5e7433b243e
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from django.contrib.admin.util import NestedObjects from models import Count class NestedObjectsTests(TestCase): """ Tests for ``NestedObject`` utility collection. """ def setUp(self): self.n = NestedObjects() self.objs = [Count.objects.create(num=i)...
26.186441
74
0.603236
1,429
0.924919
0
0
0
0
0
0
129
0.083495
782abecf863cb582e8ab49f243f14f653cba734a
1,188
py
Python
00 UNICEF/03 Data New/aedes-main/best_aedes_model.py
Cirrolytix/aedes_unicef_2022
23a26d57d5316ba44d573b4c1dcefcad4e10b157
[ "MIT" ]
null
null
null
00 UNICEF/03 Data New/aedes-main/best_aedes_model.py
Cirrolytix/aedes_unicef_2022
23a26d57d5316ba44d573b4c1dcefcad4e10b157
[ "MIT" ]
null
null
null
00 UNICEF/03 Data New/aedes-main/best_aedes_model.py
Cirrolytix/aedes_unicef_2022
23a26d57d5316ba44d573b4c1dcefcad4e10b157
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from xgboost import XGBClassifier from sklearn.impute import SimpleImputer # NOTE: Make sure that the outcome column is labeled 'target' in the data file tpot_data = pd.read_csv('PATH/TO/DATA/FILE', sep='COLUMN_SEPARATOR', dtyp...
45.692308
157
0.81229
0
0
0
0
0
0
0
0
268
0.225589
782c3b76e7c1eaa2f8d3ae8a4ab9167a73ffb9ea
3,379
py
Python
espressodb/base/tests/views/urls.py
remram44/espressodb
5aad7222ab81c0f1694b51171e5d197dbcc8a65f
[ "BSD-3-Clause" ]
8
2019-12-10T04:30:01.000Z
2020-10-30T09:40:22.000Z
espressodb/base/tests/views/urls.py
remram44/espressodb
5aad7222ab81c0f1694b51171e5d197dbcc8a65f
[ "BSD-3-Clause" ]
41
2019-10-23T00:26:25.000Z
2021-10-21T07:55:57.000Z
espressodb/base/tests/views/urls.py
remram44/espressodb
5aad7222ab81c0f1694b51171e5d197dbcc8a65f
[ "BSD-3-Clause" ]
3
2020-01-09T21:29:09.000Z
2021-03-14T22:20:52.000Z
"""Unittest for all present urls """ from django.test import TestCase from django.contrib.auth.models import User from espressodb.base.utilities.apps import get_apps_slug_map import espressodb.base.utilities.blackmagicsorcery as re URLS = ["/", "/populate/", "/populate-result/"] LOGGED_IN_URLS = [ "/notificatio...
31.877358
89
0.586268
2,823
0.835454
0
0
284
0.084049
0
0
883
0.26132
782d89dac1dfccbb2a0576e3f87a042fe314d75a
167
py
Python
problem0616.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0616.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
problem0616.py
kmarcini/Project-Euler-Python
d644e8e1ec4fac70a9ab407ad5e1f0a75547c8d3
[ "BSD-3-Clause" ]
null
null
null
########################### # # #616 Creative numbers - Project Euler # https://projecteuler.net/problem=616 # # Code by Kevin Marciniak # ###########################
18.555556
39
0.479042
0
0
0
0
0
0
0
0
159
0.952096
782dc6f49c603eca2fa962e30fbfc31a6e32254b
1,723
py
Python
python/datagraph/graphviz/dmo/digraph_text_cleanser.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/datagraph/graphviz/dmo/digraph_text_cleanser.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/datagraph/graphviz/dmo/digraph_text_cleanser.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: UTF-8 -*- from base import BaseObject class DigraphTextCleanser(BaseObject): """ Purpose: Edge Generation for a graphviz.Digraph object Traceability: https://github.ibm.com/GTS-CDO/unstructured-analytics/issues/1426#issuecomment-16165027 """ def __i...
29.20339
103
0.572838
1,643
0.953569
0
0
0
0
0
0
993
0.57632
782ed811b859ad654cfa2961ac4c649ce8d9f83b
7,550
py
Python
sqlglot/optimizer/qualify_columns.py
RobinL/sqlglot
7ec1022ac4c1fbaeb44e47d5f187a78e5c14735a
[ "MIT" ]
null
null
null
sqlglot/optimizer/qualify_columns.py
RobinL/sqlglot
7ec1022ac4c1fbaeb44e47d5f187a78e5c14735a
[ "MIT" ]
null
null
null
sqlglot/optimizer/qualify_columns.py
RobinL/sqlglot
7ec1022ac4c1fbaeb44e47d5f187a78e5c14735a
[ "MIT" ]
null
null
null
import itertools import sqlglot.expressions as exp from sqlglot.errors import OptimizeError from sqlglot.optimizer.schema import ensure_schema from sqlglot.optimizer.scope import traverse_scope def qualify_columns(expression, schema): """ Rewrite sqlglot AST to have fully qualified columns. Example: ...
33.114035
86
0.649669
0
0
0
0
0
0
0
0
1,928
0.255364
782f027acd854915903862b95967abf5208d8465
5,314
py
Python
model_zoo/cifar10_subclass/cifar10_subclass.py
sorrycc/elasticdl
01439e0bf7bba6ebfffe265916fd41370a59c29d
[ "MIT" ]
2
2021-07-07T16:31:50.000Z
2021-11-08T09:23:01.000Z
model_zoo/cifar10_subclass/cifar10_subclass.py
sorrycc/elasticdl
01439e0bf7bba6ebfffe265916fd41370a59c29d
[ "MIT" ]
null
null
null
model_zoo/cifar10_subclass/cifar10_subclass.py
sorrycc/elasticdl
01439e0bf7bba6ebfffe265916fd41370a59c29d
[ "MIT" ]
1
2021-08-18T18:14:38.000Z
2021-08-18T18:14:38.000Z
import tensorflow as tf from elasticdl.python.common.constants import Mode class CustomModel(tf.keras.Model): def __init__(self, channel_last=True): super(CustomModel, self).__init__(name="cifar10_model") use_bias = True self._conv_1 = tf.keras.layers.Conv2D( 32, ...
30.022599
75
0.547234
3,710
0.698156
0
0
0
0
0
0
118
0.022205
78323ad51e27c4fa0767acc4613f077ad4236011
2,686
py
Python
XNATSlicer/XnatSlicerLib/ui/custom-qt-widgets/HoverButton.py
QwaddleMan/XNATSlicer
5aa06e4f2a578898d34cf0ea703963b9556f2da3
[ "BSD-3-Clause" ]
4
2016-03-03T08:56:52.000Z
2021-12-10T21:14:58.000Z
XNATSlicer/XnatSlicerLib/ui/custom-qt-widgets/HoverButton.py
keithcallenberg/XNATSlicer
4a8462b2e81984cc114d25fb2b1c981457a11878
[ "BSD-3-Clause" ]
null
null
null
XNATSlicer/XnatSlicerLib/ui/custom-qt-widgets/HoverButton.py
keithcallenberg/XNATSlicer
4a8462b2e81984cc114d25fb2b1c981457a11878
[ "BSD-3-Clause" ]
5
2015-04-22T01:53:40.000Z
2021-03-29T12:14:32.000Z
__author__ = "Sunil Kumar (kumar.sunil.p@gmail.com)" __copyright__ = "Copyright 2014, Washington University in St. Louis" __credits__ = ["Sunil Kumar", "Steve Pieper", "Dan Marcus"] __license__ = "XNAT Software License Agreement " + \ "(see: http://xnat.org/about/license.php)" __version__ = "2.1.1" __main...
22.762712
68
0.546165
2,097
0.780715
0
0
0
0
0
0
1,293
0.481385
783363529819816ac2b465db1a4d67cdbd93edcd
481
py
Python
keephistory/keephistory/signals.py
ivangeorgiev/django-bootcamp
53d5d06cb3414419bbd99ff6f0e1b751cbe02a06
[ "CC0-1.0" ]
null
null
null
keephistory/keephistory/signals.py
ivangeorgiev/django-bootcamp
53d5d06cb3414419bbd99ff6f0e1b751cbe02a06
[ "CC0-1.0" ]
null
null
null
keephistory/keephistory/signals.py
ivangeorgiev/django-bootcamp
53d5d06cb3414419bbd99ff6f0e1b751cbe02a06
[ "CC0-1.0" ]
null
null
null
from django.db.models.signals import pre_delete from django.dispatch import receiver from django.utils.timezone import now from .models import Task, TaskUpdate @receiver(pre_delete, sender=Task) def close_task_updates(sender, instance:Task, **kwargs): now_ts = now() for update in TaskUpdate.objects.fil...
34.357143
84
0.75052
0
0
0
0
257
0.534304
0
0
53
0.110187
7833a508141379ddb62d6f7c97d3b1f4b1653b14
2,904
py
Python
tests/musictree/test_percussion_notation.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
2
2020-06-22T13:33:28.000Z
2020-12-30T15:09:00.000Z
tests/musictree/test_percussion_notation.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
37
2020-02-18T12:15:00.000Z
2021-12-13T20:01:14.000Z
tests/musictree/test_percussion_notation.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
null
null
null
from unittest import TestCase import os from musicscore.musicstream.streamvoice import SimpleFormat from musicscore.musictree.treebeat import TreeBeat from musicscore.musictree.treechordflags1 import PizzFlag1, PercussionFlag1 from musicscore.musictree.treemeasure import TreeMeasure from musicscore.musictree.treepart ...
42.086957
79
0.513774
2,338
0.805096
0
0
0
0
0
0
1,566
0.539256
7833d1ecd63dcbafc3405efa977d29556dcffc33
363
py
Python
abrirMochila.py
KozlowskiJ2/avengers
304e677ac45becbd182db71b0fd148be90fa7050
[ "MIT" ]
null
null
null
abrirMochila.py
KozlowskiJ2/avengers
304e677ac45becbd182db71b0fd148be90fa7050
[ "MIT" ]
null
null
null
abrirMochila.py
KozlowskiJ2/avengers
304e677ac45becbd182db71b0fd148be90fa7050
[ "MIT" ]
null
null
null
def abreMochila(mochila) : if len(mochila) == 0: print('Bolso Vazio!') return False if len(mochila)!= 0: print("Itens no bolso:\nFale o numero correspondente dele para escolher") for item in mochila: print(mochila.index(item)+1,"-",item) i=escutar() es...
33
81
0.589532
0
0
0
0
0
0
0
0
83
0.22865
7834c30ab8619ffee86e60107eaa29650d251c74
3,239
py
Python
lib/jsonprocesser(old).py
wmizzi/tn2capstone
e9855ba6b49e2d05293df74846c64fa0c220a25d
[ "BSD-2-Clause" ]
null
null
null
lib/jsonprocesser(old).py
wmizzi/tn2capstone
e9855ba6b49e2d05293df74846c64fa0c220a25d
[ "BSD-2-Clause" ]
null
null
null
lib/jsonprocesser(old).py
wmizzi/tn2capstone
e9855ba6b49e2d05293df74846c64fa0c220a25d
[ "BSD-2-Clause" ]
null
null
null
import json import uuid import datetime import os import socket class jsonprocesser: def __init__(self): self.client_mac = str(hex(uuid.getnode())) self.timestamp = datetime.datetime.now().strftime("%H-%M_%d-%m-%y") #filename = client_mac + timestamp + '.json' ...
32.39
137
0.521766
3,155
0.974066
0
0
0
0
0
0
726
0.224143
7835dd4b0a54930acba1f3445b9513092882a896
24,101
py
Python
fst2/processers.py
superjcd/fst2
da4bd97bc9e028af55e1099940bd0b1e5bb34ded
[ "MIT" ]
2
2020-03-15T07:44:46.000Z
2021-05-17T04:32:46.000Z
fst2/processers.py
superjcd/fst2
da4bd97bc9e028af55e1099940bd0b1e5bb34ded
[ "MIT" ]
null
null
null
fst2/processers.py
superjcd/fst2
da4bd97bc9e028af55e1099940bd0b1e5bb34ded
[ "MIT" ]
1
2020-05-13T08:56:25.000Z
2020-05-13T08:56:25.000Z
import copy import os import csv import json import torch import logging from transformers.file_utils import is_tf_available, is_torch_available from functools import wraps from .utils import CACHE_PARAMS logger = logging.getLogger(__name__) class InputExample(object): """ A single training/test example for...
42.506173
249
0.604788
21,707
0.898878
12,513
0.518158
2,170
0.089859
0
0
6,867
0.28436
783c54535432ca817e5091aa60095976f7a9378c
180
py
Python
bitcoinscript/debugger/__init__.py
fungibit/bitcoinscript
ced6fb37dfa40eac7341826c758842e0ed7e7475
[ "MIT" ]
1
2017-10-25T17:11:44.000Z
2017-10-25T17:11:44.000Z
bitcoinscript/debugger/__init__.py
fungibit/bitcoinscript
ced6fb37dfa40eac7341826c758842e0ed7e7475
[ "MIT" ]
3
2017-03-10T05:27:29.000Z
2017-04-07T16:06:28.000Z
bitcoinscript/debugger/__init__.py
fungibit/bitcoinscript
ced6fb37dfa40eac7341826c758842e0ed7e7475
[ "MIT" ]
null
null
null
from .dbg import run_in_debugger, start_debugger from .utils import debug_sample # suppress pyflakes "imported but unused" warnings: run_in_debugger, start_debugger debug_sample
22.5
51
0.838889
0
0
0
0
0
0
0
0
51
0.283333
783cc0ae7ce9094203cd5255e4827fee654d5210
530
py
Python
jupyter_cache/cli/utils.py
ExecutableBookProject/sandbox
e72c2121b460c8558f9e6257b3b53353b9e7f35c
[ "MIT" ]
2
2020-03-11T23:14:00.000Z
2020-04-07T14:58:51.000Z
jupyter_cache/cli/utils.py
ExecutableBookProject/sandbox
e72c2121b460c8558f9e6257b3b53353b9e7f35c
[ "MIT" ]
41
2020-02-19T20:18:56.000Z
2020-04-20T01:25:55.000Z
jupyter_cache/cli/utils.py
ExecutableBookProject/sandbox
e72c2121b460c8558f9e6257b3b53353b9e7f35c
[ "MIT" ]
1
2020-03-15T05:45:15.000Z
2020-03-15T05:45:15.000Z
import logging import click class ClickLogHandler(logging.Handler): _use_stderr = True def emit(self, record): try: msg = self.format(record) click.echo(msg, err=self._use_stderr) except Exception: self.handleError(record) def setup_logger(logger: loggin...
21.2
49
0.632075
255
0.481132
0
0
0
0
0
0
34
0.064151
783e84924972e61c147a0b1b3dc18448354ffac3
4,401
py
Python
Samples/codes/matopt_review/add_optimizer.py
wilsongis/3DP_Experiments
da9bd3b4ba1d82bac7dcfa27d86634add59db087
[ "MIT", "Unlicense" ]
null
null
null
Samples/codes/matopt_review/add_optimizer.py
wilsongis/3DP_Experiments
da9bd3b4ba1d82bac7dcfa27d86634add59db087
[ "MIT", "Unlicense" ]
null
null
null
Samples/codes/matopt_review/add_optimizer.py
wilsongis/3DP_Experiments
da9bd3b4ba1d82bac7dcfa27d86634add59db087
[ "MIT", "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright (c) 2021 Showa Denko Materials co., Ltd. All rights reserved. This software is for non-profit use only. THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTIC...
46.326316
205
0.709839
3,359
0.763236
0
0
0
0
0
0
1,924
0.437173
783f73ab72792697849c2074b2a97ea34ea37f7c
1,354
py
Python
eos_db/test/test_credits.py
cedadev/eos-db
b97b1b7c469779e370aab8ad68cf7e8d2e6ff8e6
[ "BSD-3-Clause" ]
null
null
null
eos_db/test/test_credits.py
cedadev/eos-db
b97b1b7c469779e370aab8ad68cf7e8d2e6ff8e6
[ "BSD-3-Clause" ]
null
null
null
eos_db/test/test_credits.py
cedadev/eos-db
b97b1b7c469779e370aab8ad68cf7e8d2e6ff8e6
[ "BSD-3-Clause" ]
null
null
null
"""Tests for credit addition, subtraction and querying. See also tests in test_user_api """ import unittest import requests from eos_db.server import choose_engine, create_user, touch_to_add_credit from eos_db.server import check_credit, check_actor_id class TestCreditFunctions(unittest.TestCase): """Tests cr...
28.808511
84
0.654357
1,045
0.771787
0
0
0
0
0
0
558
0.412112
783f8c5198e30e4f05f207b05946f413e6a68383
5,727
py
Python
Euler 13.py
Babnik21/Euler
e73f27ca477c58940a8212b17cd86fce9684e15b
[ "MIT" ]
null
null
null
Euler 13.py
Babnik21/Euler
e73f27ca477c58940a8212b17cd86fce9684e15b
[ "MIT" ]
null
null
null
Euler 13.py
Babnik21/Euler
e73f27ca477c58940a8212b17cd86fce9684e15b
[ "MIT" ]
null
null
null
#ce stevilko zapisemo kot string je problem super enostaven stevilka = "37107287533902102798797998220837590246510135740250 \n\ 46376937677490009712648124896970078050417018260538 \n\ 74324986199524741059474233309513058123726617309629 \n\ 91942213363574161572522430563301811072406154908250 \n\ 230675882075393461711719803...
49.37069
66
0.91706
0
0
0
0
0
0
0
0
5,561
0.971014
783fc3228d1bb98e46b23e9c61a33784429ce728
2,733
py
Python
visualization/data_plot.py
Jingyu6/forl_2021
8679b41ece66551d14cfb31fa42a467eb4c1fb0b
[ "MIT" ]
null
null
null
visualization/data_plot.py
Jingyu6/forl_2021
8679b41ece66551d14cfb31fa42a467eb4c1fb0b
[ "MIT" ]
null
null
null
visualization/data_plot.py
Jingyu6/forl_2021
8679b41ece66551d14cfb31fa42a467eb4c1fb0b
[ "MIT" ]
null
null
null
import gym # type: ignore import matplotlib # type: ignore import matplotlib.pyplot as plt # type: ignore import numpy as np from pathlib import Path # type: ignore from typing import List, Union, Literal, Dict, Any from visualization.data_parser import Records, D3rlpyCSVDataParser def plot_records_list( axes: matp...
35.038462
105
0.750823
0
0
0
0
0
0
0
0
578
0.211489
7840eb695f4d59312dcc4726ecededb6274d25a1
2,947
py
Python
game_matrix.py
GeorgiaLu/game-2048
f256974ad65d869943630564d9eac697c4e8dc04
[ "MIT" ]
1
2019-01-08T04:10:22.000Z
2019-01-08T04:10:22.000Z
game_matrix.py
GeorgiaLu/game-2048
f256974ad65d869943630564d9eac697c4e8dc04
[ "MIT" ]
null
null
null
game_matrix.py
GeorgiaLu/game-2048
f256974ad65d869943630564d9eac697c4e8dc04
[ "MIT" ]
null
null
null
import numpy import random from enum import Enum class Direction(Enum): kUp, kRight, kDown, kLeft = range(4) class GameMatrix(object): def __init__(self, dim): self.dim = dim self.matrix = numpy.zeros((dim, dim)) self.init_matrix() self.tube = [] def init_matrix(self): ...
33.488636
89
0.490329
2,894
0.982016
0
0
0
0
0
0
0
0
7842f6c64be0b6e9300407e9d61cb1d099892c8f
372
py
Python
ansible-devel/test/integration/targets/ansible-runner/filter_plugins/parse.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/integration/targets/ansible-runner/filter_plugins/parse.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/integration/targets/ansible-runner/filter_plugins/parse.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import re import json def parse_json(value): return json.dumps(json.loads(re.sub('^.*\n#STARTJSON\n', '', value, flags=re.DOTALL)), indent=4, sort_keys=True) class FilterModule(object): def filters(self): retur...
20.666667
116
0.674731
115
0.30914
0
0
0
0
0
0
33
0.08871
7843611d198318d6de99e455666135c54010d9a9
2,509
py
Python
packages/w3af/w3af/core/controllers/profiling/pytracemalloc.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/core/controllers/profiling/pytracemalloc.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/core/controllers/profiling/pytracemalloc.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
""" pytracemalloc.py Copyright 2015 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License. w3af is distributed in the hope th...
25.09
81
0.723794
0
0
0
0
580
0.231168
0
0
1,285
0.512156
78442b33bc9640a1fb48adf69170375475735e0f
5,581
py
Python
cognite/model_hosting/schedules/schedules.py
cognitedata/cognite-model-hosting
89f58e25f0e3c3a37006e60f52246da0b00a0066
[ "Apache-2.0" ]
4
2019-05-27T12:51:45.000Z
2020-02-26T08:16:30.000Z
cognite/model_hosting/schedules/schedules.py
cognitedata/cognite-model-hosting
89f58e25f0e3c3a37006e60f52246da0b00a0066
[ "Apache-2.0" ]
26
2019-03-18T15:10:20.000Z
2021-06-21T05:47:24.000Z
cognite/model_hosting/schedules/schedules.py
cognitedata/cognite-model-hosting
89f58e25f0e3c3a37006e60f52246da0b00a0066
[ "Apache-2.0" ]
null
null
null
import json from collections import defaultdict from typing import Dict, List, Union import numpy as np import pandas as pd from marshmallow import EXCLUDE, Schema, ValidationError, fields, validate from cognite.model_hosting._cognite_model_hosting_common.utils import timestamp_to_ms from cognite.model_hosting.schedu...
39.302817
118
0.656334
3,655
0.654901
0
0
207
0.03709
0
0
1,924
0.344741
78458e44258fabd7ac71356828e9e387c8902634
3,262
py
Python
utils/watcher.py
OliRafa/SRFR-GAN
b7995421f5a965d35dd83f3107e095d83446868b
[ "Unlicense" ]
null
null
null
utils/watcher.py
OliRafa/SRFR-GAN
b7995421f5a965d35dd83f3107e095d83446868b
[ "Unlicense" ]
3
2021-04-30T21:14:05.000Z
2022-02-10T01:29:47.000Z
utils/watcher.py
OliRafa/SRFR-GAN
b7995421f5a965d35dd83f3107e095d83446868b
[ "Unlicense" ]
1
2020-07-11T18:43:48.000Z
2020-07-11T18:43:48.000Z
import os import psutil import multiprocessing as mp from mtcnn import MTCNN class Watcher(): def __init__(self): self._manager = mp.Manager() self._generate_queues() self._face_detector = MtcnnDetectFaces( self._images_queue, self._detected_faces_queue, ...
30.203704
81
0.64347
3,119
0.956162
0
0
269
0.082465
0
0
178
0.054568
78480e99cab78715400c1a2ba08f71032a31b6fe
578
py
Python
src/matplot.py
AutuanLiu/PyCon
ba0e2005d1e0301d77bb8111ff67b663dc234784
[ "MIT" ]
1
2018-03-18T11:07:15.000Z
2018-03-18T11:07:15.000Z
src/matplot.py
AutuanLiu/PyCon
ba0e2005d1e0301d77bb8111ff67b663dc234784
[ "MIT" ]
null
null
null
src/matplot.py
AutuanLiu/PyCon
ba0e2005d1e0301d77bb8111ff67b663dc234784
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jun 4 14:56:00 2017 @author: AutuanLiu """ import numpy as np import matplotlib.pyplot as plt # test so so plt.plot([3, 1, 4, -5, 6]) plt.ylabel("grade") plt.savefig("test", dpi = 600) plt.show() def f(x): return np.exp(-x) * np.cos(2 * np.pi * x) a = np.arange(0, 5,...
17
62
0.586505
0
0
0
0
0
0
0
0
150
0.259516
7848a09465a19c587425eb6807accc3751bd0e0a
1,439
py
Python
lib.py
Zenahr/ALUB
cc9161d6e30a7f5278761954333fcdcee9598259
[ "MIT" ]
null
null
null
lib.py
Zenahr/ALUB
cc9161d6e30a7f5278761954333fcdcee9598259
[ "MIT" ]
null
null
null
lib.py
Zenahr/ALUB
cc9161d6e30a7f5278761954333fcdcee9598259
[ "MIT" ]
null
null
null
import random import autopy import pyautogui import time import json from threading import Timer import cv2 import pytesseract def click_readyup_button(): print('CHECKING...') if should_click(): try: autopy.mouse.move(*(230, 928)) time.sleep(.2) autopy.mouse.click() ...
27.150943
81
0.62057
0
0
0
0
0
0
0
0
293
0.203614
784be104b596367c04897f8c45fd427758c904d4
10,993
py
Python
games/bocce/frame.py
OddballSports-tv/obies-eyes
2dd4fc9686f852b9adf89edd3246ad642063ac8b
[ "Apache-2.0" ]
null
null
null
games/bocce/frame.py
OddballSports-tv/obies-eyes
2dd4fc9686f852b9adf89edd3246ad642063ac8b
[ "Apache-2.0" ]
1
2022-02-19T20:40:44.000Z
2022-02-19T20:40:44.000Z
games/bocce/frame.py
OddballSports-tv/obies-eyes
2dd4fc9686f852b9adf89edd3246ad642063ac8b
[ "Apache-2.0" ]
null
null
null
# imports from .ball import Pallino from .throw import Throw from .cv.ballfinder import BallFinder from scipy.spatial import distance as dist # for now, these are "pixels" (not "inches" or "cm") TOO_CLOSE_MARGIN = 5 class Frame: def __init__(self, frameNumber, throwingEnd, pallinoThrowingTeam, teamHome, ...
35.009554
105
0.615665
10,774
0.980078
0
0
0
0
0
0
2,097
0.190758
784d108b6268f8877b4e86d9af933400fa7c6a6e
341
py
Python
dataent/patches/v4_2/print_with_letterhead.py
dataent/dataent
c41bd5942ffe5513f4d921c4c0595c84bbc422b4
[ "MIT" ]
null
null
null
dataent/patches/v4_2/print_with_letterhead.py
dataent/dataent
c41bd5942ffe5513f4d921c4c0595c84bbc422b4
[ "MIT" ]
6
2020-03-24T17:15:56.000Z
2022-02-10T18:41:31.000Z
dataent/patches/v4_2/print_with_letterhead.py
dataent/dataent
c41bd5942ffe5513f4d921c4c0595c84bbc422b4
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Dataent Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import dataent def execute(): dataent.reload_doc("core", "doctype", "print_settings") print_settings = dataent.get_doc("Print Settings") print_settings.with_letterhead = 1 p...
28.416667
69
0.782991
0
0
0
0
0
0
0
0
146
0.428152
784d88dfa8270065fc4ec2b2539f03dba716b534
2,738
py
Python
timer.py
mrozowski/TaskTimer
66b069c14a7117502bb657738869f3ae33870c04
[ "MIT" ]
1
2021-07-10T17:51:01.000Z
2021-07-10T17:51:01.000Z
timer.py
mrozowski/TaskTimer
66b069c14a7117502bb657738869f3ae33870c04
[ "MIT" ]
null
null
null
timer.py
mrozowski/TaskTimer
66b069c14a7117502bb657738869f3ae33870c04
[ "MIT" ]
null
null
null
import threading, time, signal from datetime import timedelta from PyQt5 import QtWidgets from playsound import playsound import win10toast from view import Dial isActive = False # global variable that says if timer is set class MyTimer(threading.Thread): """This class count down timer and mov...
31.471264
139
0.565741
2,488
0.908692
0
0
0
0
0
0
335
0.122352