hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
4ccb34c0cea6589f24735d2351aa1b7f5a9d5641
213
py
Python
api/handlers/youtube.py
LostLuma/repo-import-test
45273fc3543d21366ed3cc5007dc5680b1e3e546
[ "MIT" ]
1
2020-01-27T17:42:30.000Z
2020-01-27T17:42:30.000Z
api/handlers/youtube.py
LostLuma/repo-import-test
45273fc3543d21366ed3cc5007dc5680b1e3e546
[ "MIT" ]
59
2021-11-17T08:21:59.000Z
2022-03-29T08:29:55.000Z
api/handlers/youtube.py
SpoopySite/SpoopySite
da68e454eee2a242e3df2ae8ef31bf1e50da571b
[ "MIT" ]
3
2020-01-26T23:19:24.000Z
2021-09-25T07:07:59.000Z
import urllib.parse from urllib.parse import ParseResult def youtube(parsed: ParseResult): if "q" in urllib.parse.parse_qs(parsed.query): return urllib.parse.parse_qs(parsed.query).get("q")[0], True
26.625
68
0.732394
42643d698e9bee3626241082712d38f08f52d52f
804
py
Python
study_python/django/helloworld/helloworld/urls.py
AlphaSunny/study
4e65127fefa9078b7ae6b9db92369c93e61e4327
[ "MIT" ]
null
null
null
study_python/django/helloworld/helloworld/urls.py
AlphaSunny/study
4e65127fefa9078b7ae6b9db92369c93e61e4327
[ "MIT" ]
null
null
null
study_python/django/helloworld/helloworld/urls.py
AlphaSunny/study
4e65127fefa9078b7ae6b9db92369c93e61e4327
[ "MIT" ]
null
null
null
"""helloworld URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
34.956522
77
0.70398
620afd9236f1a042ef1aed36067a075755bbc4f2
1,147
py
Python
messaging_service/server.py
Kusla75/py-sockets
cfce1978c37e1ff48a1634cde15c06a1a3b377ab
[ "MIT" ]
null
null
null
messaging_service/server.py
Kusla75/py-sockets
cfce1978c37e1ff48a1634cde15c06a1a3b377ab
[ "MIT" ]
null
null
null
messaging_service/server.py
Kusla75/py-sockets
cfce1978c37e1ff48a1634cde15c06a1a3b377ab
[ "MIT" ]
null
null
null
import socket server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) host = socket.gethostname() port = 420 server_socket.bind((host, port)) server_socket.listen(3) socket_list = [] names_list = [] messages_history = [] client_socket, address = server_socket.accept() name = client_socket.recv(1024).decod...
31.861111
73
0.725371
328ec1eebe6e63377251a83f8a3d9fca25aaa36d
334
py
Python
byceps/permissions/webhook.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
null
null
null
byceps/permissions/webhook.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
null
null
null
byceps/permissions/webhook.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
null
null
null
""" byceps.permissions.webhook ~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from ..util.authorization import create_permission_enum WebhookPermission = create_permission_enum( 'webhook', [ 'administrate', 'vi...
17.578947
55
0.634731
35dd9d80b06ede53e12cfb77e32784e1bbfbca74
1,673
py
Python
rdr_service/alembic/versions/434fb0f05794_add_ignore_and_dev_note_to_genomics_.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
rdr_service/alembic/versions/434fb0f05794_add_ignore_and_dev_note_to_genomics_.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/alembic/versions/434fb0f05794_add_ignore_and_dev_note_to_genomics_.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
"""add ignore and dev note to genomics models. Revision ID: 434fb0f05794 Revises: 994dfe6e53ee Create Date: 2020-09-30 14:39:16.244636 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '434fb0f05794' down_revision = '994dfe6e53ee' branch_labels = None depends_on =...
29.350877
111
0.710102
c40550532466d39647c15b5c1544605769b4e808
7,839
py
Python
src/five/formlib/metaconfigure.py
abstract-open-solutions/five.formlib
36fe931f8b0b44b6ff835265999fb509119f0ddf
[ "ZPL-2.1" ]
null
null
null
src/five/formlib/metaconfigure.py
abstract-open-solutions/five.formlib
36fe931f8b0b44b6ff835265999fb509119f0ddf
[ "ZPL-2.1" ]
null
null
null
src/five/formlib/metaconfigure.py
abstract-open-solutions/five.formlib
36fe931f8b0b44b6ff835265999fb509119f0ddf
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2004, 2005 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # T...
35.470588
79
0.626738
1e7a60cf29eda25ef782ad4e5b20fb4ddf5a5f48
69,753
py
Python
500SIGSandGS/Code to Run/Sim500_5_05_25.py
alistairjwilson/nrmpInterviews_SimData
8c99ff0d9a4e9db70dec5f7ef92b98054bf42a83
[ "MIT" ]
null
null
null
500SIGSandGS/Code to Run/Sim500_5_05_25.py
alistairjwilson/nrmpInterviews_SimData
8c99ff0d9a4e9db70dec5f7ef92b98054bf42a83
[ "MIT" ]
null
null
null
500SIGSandGS/Code to Run/Sim500_5_05_25.py
alistairjwilson/nrmpInterviews_SimData
8c99ff0d9a4e9db70dec5f7ef92b98054bf42a83
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """faster_simulations_sigs_revised.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1_-oQDQXJCYRE3JnPBMlYaLIdoBOpX25f """ import numpy as np import pandas as pd class Worker(object): name = "" p = [] #original pref...
38.580199
533
0.638023
663963e2045db29d8249b91fd0652fcc511abcef
2,144
py
Python
Code/Final/BestModel/AdaBoostBest.py
shivachawala/PumpItUp
41c8f3be0808009dbd13fda7a6f6f1ebfd916646
[ "MIT" ]
null
null
null
Code/Final/BestModel/AdaBoostBest.py
shivachawala/PumpItUp
41c8f3be0808009dbd13fda7a6f6f1ebfd916646
[ "MIT" ]
null
null
null
Code/Final/BestModel/AdaBoostBest.py
shivachawala/PumpItUp
41c8f3be0808009dbd13fda7a6f6f1ebfd916646
[ "MIT" ]
2
2018-05-06T04:26:49.000Z
2019-01-03T00:09:34.000Z
# coding: utf-8 # In[1]: # AdaBoost Classification import pandas as pd import numpy as np from sklearn import model_selection from sklearn.ensemble import AdaBoostClassifier from sklearn.metrics import classification_report from sklearn.model_selection import train_test_split # Read data set data_values = pd.read_...
28.586667
122
0.725746
2ab1a7b80d098a38db0597a8860b9fffd789290c
12,484
py
Python
saas/pagination.py
kaiserho/djaodjin-saas
2e65d8d4daf51fe88e3434cc82e771dc50e5dc83
[ "BSD-2-Clause" ]
383
2015-03-07T06:19:39.000Z
2022-03-12T20:53:37.000Z
saas/pagination.py
kaiserho/djaodjin-saas
2e65d8d4daf51fe88e3434cc82e771dc50e5dc83
[ "BSD-2-Clause" ]
146
2015-03-25T22:45:44.000Z
2022-02-22T08:49:35.000Z
saas/pagination.py
kaiserho/djaodjin-saas
2e65d8d4daf51fe88e3434cc82e771dc50e5dc83
[ "BSD-2-Clause" ]
111
2015-02-12T22:13:07.000Z
2022-03-11T05:45:53.000Z
# Copyright (c) 2021, DjaoDjin inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and t...
37.716012
77
0.505607
87a947edfc022c5669b177f678ae75088a7c112e
627
py
Python
proto-build/gui/UcsSdk-0.5/samples/getFaults.py
Havate/havate-openstack
a0ca519af0da5df7981ccfb86cd9994f8c181644
[ "Apache-2.0" ]
1
2015-06-26T23:31:42.000Z
2015-06-26T23:31:42.000Z
proto-build/gui/UcsSdk-0.5/samples/getFaults.py
Havate/havate-openstack
a0ca519af0da5df7981ccfb86cd9994f8c181644
[ "Apache-2.0" ]
1
2015-03-12T01:03:44.000Z
2015-03-12T01:03:44.000Z
proto-build/gui/UcsSdk-0.5/samples/getFaults.py
Havate/havate-openstack
a0ca519af0da5df7981ccfb86cd9994f8c181644
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys import os from UcsSdk import * # This script retrieve all the UCS Manager Faults. # <Update the Credential Parameters below before executing the script> ucsm_ip = '0.0.0.0' user = 'username' password = 'password' try: handle = UcsHandle() handle.Login(ucsm_ip,user, pass...
19.59375
71
0.688995
b58f3a85b11f93177778fa1fd82ea576269208ed
5,646
py
Python
sync.py
androidtrackers/android-enterprise-devices
98f749219acc445218544c76d72b0ff0efb1f828
[ "MIT" ]
6
2020-09-23T08:43:36.000Z
2022-03-09T08:15:15.000Z
sync.py
androidtrackers/android-enterprise-devices
98f749219acc445218544c76d72b0ff0efb1f828
[ "MIT" ]
null
null
null
sync.py
androidtrackers/android-enterprise-devices
98f749219acc445218544c76d72b0ff0efb1f828
[ "MIT" ]
3
2019-07-25T13:10:52.000Z
2021-11-15T12:09:28.000Z
#!/usr/bin/env python3.7 """Google certified android devices tracker""" import difflib from datetime import date from time import sleep from itertools import tee from os import rename, path, system, environ from requests import get, post GIT_OAUTH_TOKEN = environ['GIT_OAUTH_TOKEN_XFU'] BOT_TOKEN = environ['BOTTOKEN']...
38.148649
102
0.535069
e82a2e52d1d8b36f3ee5086a546d9217955d7b5b
2,796
py
Python
lawrencemain.py
kinxer/lawrence
391d69fcae1c21d1da00b8c628cf383e25579d77
[ "Apache-2.0" ]
2
2016-05-27T18:14:53.000Z
2017-12-10T01:15:57.000Z
lawrencemain.py
kinxer/lawrence
391d69fcae1c21d1da00b8c628cf383e25579d77
[ "Apache-2.0" ]
null
null
null
lawrencemain.py
kinxer/lawrence
391d69fcae1c21d1da00b8c628cf383e25579d77
[ "Apache-2.0" ]
null
null
null
#LING380 Final Project #Chatbot import random import pickle from nltk.corpus import wordnet as wn from parsing import parser botDict = {} #''' with open('responses.p','rb') as f: # opens (and closes) file to read (r) as bytes (b) botDict = pickle.load(f) #''' def train(key, sent): parsedSe...
35.392405
108
0.605866
957cdbd7136447c5f54da811fb8ea6908f467fb8
1,372
py
Python
Ejercicio 8.py
crltsnch/Ejercicios-grupales
72e01d6489816ea1b9308af1abd62792e5464c93
[ "Apache-2.0" ]
null
null
null
Ejercicio 8.py
crltsnch/Ejercicios-grupales
72e01d6489816ea1b9308af1abd62792e5464c93
[ "Apache-2.0" ]
null
null
null
Ejercicio 8.py
crltsnch/Ejercicios-grupales
72e01d6489816ea1b9308af1abd62792e5464c93
[ "Apache-2.0" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # # Complete the 'countApplesAndOranges' function below. # # The function accepts following parameters: # 1. INTEGER s # 2. INTEGER t # 3. INTEGER a # 4. INTEGER b # 5. INTEGER_ARRAY apples # 6. INTEGER_ARRAY oranges # def countApplesAndOranges(s, ...
31.181818
66
0.646501
427d876689ad5e10c18264ab330489985a8e2b41
3,336
py
Python
tests/tests.py
techtonik/portalocker
519236ac0c5bdfc43e07fcbf6ade354f959a3923
[ "PSF-2.0" ]
null
null
null
tests/tests.py
techtonik/portalocker
519236ac0c5bdfc43e07fcbf6ade354f959a3923
[ "PSF-2.0" ]
null
null
null
tests/tests.py
techtonik/portalocker
519236ac0c5bdfc43e07fcbf6ade354f959a3923
[ "PSF-2.0" ]
null
null
null
from __future__ import print_function from __future__ import with_statement import pytest import portalocker def test_exceptions(tmpfile): # Open the file 2 times a = open(tmpfile, 'a') b = open(tmpfile, 'a') # Lock exclusive non-blocking lock_flags = portalocker.LOCK_EX | portalocker.LOCK_NB ...
27.8
75
0.638189
c26b9bc6057afd10a0de72197114e3c2a9353ec1
1,130
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/vplsEthernet_template.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/vplsEthernet_template.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/vplsEthernet_template.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files class VPLS_Ethernet_Frame(Base): __slots__ = () _SDM_NAME = 'vplsEthernet' _SDM_ATT_MAP = { 'CW Zero': 'vplsEthernet.pweControlWord.zero', 'CW Rsvd': 'vplsEthernet.pweControlWord.reserved', 'CW Sequence...
33.235294
93
0.711504
a059ccf0e81f8796a1d82b8c78800c914a178211
7,183
py
Python
indico/modules/events/static/util.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
1
2018-11-12T21:29:26.000Z
2018-11-12T21:29:26.000Z
indico/modules/events/static/util.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
9
2020-09-08T09:25:57.000Z
2022-01-13T02:59:05.000Z
indico/modules/events/static/util.py
jgrigera/indico
b5538f2755bc38a02313d079bac831ee3dfb44ab
[ "MIT" ]
3
2020-07-20T09:09:44.000Z
2020-10-19T00:29:49.000Z
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals import base64 import mimetypes import re import urlparse from con...
38.207447
113
0.669219
7b58b5599904756e6d1db6907d37d6c351b66a40
5,711
py
Python
tools/flash_algo_gen.py
f-okuhara/CMSIS-DAP
871add645a0681ff62138b181e8ceae374520895
[ "Apache-2.0" ]
null
null
null
tools/flash_algo_gen.py
f-okuhara/CMSIS-DAP
871add645a0681ff62138b181e8ceae374520895
[ "Apache-2.0" ]
null
null
null
tools/flash_algo_gen.py
f-okuhara/CMSIS-DAP
871add645a0681ff62138b181e8ceae374520895
[ "Apache-2.0" ]
null
null
null
""" CMSIS-DAP Interface Firmware Copyright (c) 2009-2013 ARM Limited 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 la...
35.253086
99
0.589389
74499b6ba2de97e413f132330e7d428a44a84608
417
py
Python
django_errors/tests/test_settings.py
DLRSP/django-errors
1721169b7a094781422a57b1b4e5878dc3a88d77
[ "MIT" ]
3
2021-12-06T20:37:40.000Z
2021-12-13T23:38:47.000Z
django_errors/tests/test_settings.py
DLRSP/django-errors
1721169b7a094781422a57b1b4e5878dc3a88d77
[ "MIT" ]
51
2020-04-19T14:32:56.000Z
2022-03-30T10:46:18.000Z
django_errors/tests/test_settings.py
DLRSP/django-errors
1721169b7a094781422a57b1b4e5878dc3a88d77
[ "MIT" ]
null
null
null
SECRET_KEY = 'fake-key' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': 'tests.db', 'SUPPORTS_TRANSACTIONS': 'false', } } ROOT_URLCONF = 'example.urls' INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', ...
23.166667
47
0.628297
fcc810185cd9144c3eb4b1e25dd268d473af7da0
626
py
Python
manage.py
OSMChina/openstreetmap-calendar
7514d7173ea5237e7637f2b54d873e6f45280e04
[ "Apache-2.0" ]
26
2019-10-15T08:59:58.000Z
2021-04-06T03:47:43.000Z
manage.py
OSMChina/openstreetmap-calendar
7514d7173ea5237e7637f2b54d873e6f45280e04
[ "Apache-2.0" ]
84
2019-10-15T09:31:34.000Z
2022-03-10T21:07:46.000Z
manage.py
OSMChina/openstreetmap-calendar
7514d7173ea5237e7637f2b54d873e6f45280e04
[ "Apache-2.0" ]
10
2019-10-15T09:19:51.000Z
2022-03-10T04:23:09.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'osmcal.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportE...
28.454545
73
0.682109
9a97781bffba0af229d5ec75019b5598f9b6f4ca
783
py
Python
Techfest 2021/Hash Function.py
AkashSCIENTIST/CompetitiveSolutions
236db303a21c7195ebf721394a54ce9df70782f5
[ "Apache-2.0" ]
null
null
null
Techfest 2021/Hash Function.py
AkashSCIENTIST/CompetitiveSolutions
236db303a21c7195ebf721394a54ce9df70782f5
[ "Apache-2.0" ]
null
null
null
Techfest 2021/Hash Function.py
AkashSCIENTIST/CompetitiveSolutions
236db303a21c7195ebf721394a54ce9df70782f5
[ "Apache-2.0" ]
null
null
null
import sys sys.setrecursionlimit(2**20) def cross(n): s = list("abcdefghijklmnopqrstuvwxyz") if n == 1: return s res = [sub1 + sub2 for sub1 in s for sub2 in s] if n == 2: return res else: for i in range(n-2): temp = [sub1 + sub2 for sub1 in s for sub2 in res] ...
20.076923
70
0.464879
12d95ec3643d69d69f36deff2d1aa9bba36d8760
3,085
py
Python
utils/eval/geometry.py
wx-b/patch2pix
ad26ef065568eabf9a0bb6dc09f53462e9aeef36
[ "MIT" ]
157
2021-03-18T03:43:27.000Z
2022-03-30T03:48:26.000Z
utils/eval/geometry.py
wx-b/patch2pix
ad26ef065568eabf9a0bb6dc09f53462e9aeef36
[ "MIT" ]
8
2021-04-08T07:54:12.000Z
2022-03-29T18:40:38.000Z
utils/eval/geometry.py
wx-b/patch2pix
ad26ef065568eabf9a0bb6dc09f53462e9aeef36
[ "MIT" ]
15
2021-04-08T04:18:35.000Z
2022-03-28T05:54:57.000Z
import numpy as np from transforms3d.quaternions import quat2mat, mat2quat # The skew-symmetric matrix of vector skew = lambda v: np.array([[0, -v[2], v[1]], [v[2], 0, -v[0]], [-v[1], v[0], 0]]) # Essential matrix & fundamental matrix ess2fund = lambda K1, K2, E: np.linalg.inv(K2).T @ E @ np.linalg.inv(K1) ess2fund...
34.277778
110
0.581199
cff1de67279d789ce247d84cd8d0aea91ea9fc51
147
py
Python
tests/model_control/detailed/transf_Logit/model_control_one_enabled_Logit_PolyTrend_NoCycle_NoAR.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/model_control/detailed/transf_Logit/model_control_one_enabled_Logit_PolyTrend_NoCycle_NoAR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/model_control/detailed/transf_Logit/model_control_one_enabled_Logit_PolyTrend_NoCycle_NoAR.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Logit'] , ['PolyTrend'] , ['NoCycle'] , ['NoAR'] );
36.75
74
0.734694
0c6ac518fc511588e588e6f18f5c069533601f79
2,908
py
Python
software/python/potentiostat/examples/run_mux_cyclic_w_plot.py
GVRX/potentiostat
1bb44639180ad6d81697631d4d5f699e6fb4eef1
[ "MIT" ]
14
2020-07-01T13:08:36.000Z
2021-09-10T15:02:33.000Z
software/python/potentiostat/examples/run_mux_cyclic_w_plot.py
GVRX/potentiostat
1bb44639180ad6d81697631d4d5f699e6fb4eef1
[ "MIT" ]
3
2020-07-21T05:21:52.000Z
2021-10-01T05:04:06.000Z
software/python/potentiostat/examples/run_mux_cyclic_w_plot.py
GVRX/potentiostat
1bb44639180ad6d81697631d4d5f699e6fb4eef1
[ "MIT" ]
10
2020-08-07T03:25:11.000Z
2022-01-27T10:56:07.000Z
from potentiostat import Potentiostat import matplotlib.pyplot as plt port = '/dev/ttyACM0' # Serial port for potentiostat device datafile = 'data.txt' # Output file for time, curr, volt data channel_list = [1,7] test_name = 'cyclic' # The name of the test to run curr_range = '100uA' # The ...
37.282051
102
0.643398
775e44c13788c54daa125f2cf48c901c812eb1de
6,341
py
Python
redsmall_plots.py
mfatihaktas/deep-scheduler
ad567465399620ec379cfdaa67fbcd94ded03c75
[ "MIT" ]
11
2018-03-28T02:55:12.000Z
2021-07-12T15:21:38.000Z
redsmall_plots.py
mfatihaktas/deep-scheduler
ad567465399620ec379cfdaa67fbcd94ded03c75
[ "MIT" ]
null
null
null
redsmall_plots.py
mfatihaktas/deep-scheduler
ad567465399620ec379cfdaa67fbcd94ded03c75
[ "MIT" ]
5
2018-03-16T01:36:46.000Z
2019-10-17T03:23:20.000Z
from modeling import * from redsmall_data import * N, Cap = 20, 10 k = BZipf(1, 10) # BZipf(1, 5) R = Uniform(1, 1) b, beta_ = 10, 3 # 2.1 L = Pareto(b, beta_) a, alpha_ = 1, 3 Sl = Pareto(a, alpha_) def alpha_gen(ro): return alpha_ ro0_l = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9] # [0.1] d_l, ro0_scherid_X_l_...
39.880503
182
0.638543
e9716ba093a61cdd0cb28cae7e0361aab05a7121
1,352
py
Python
teste_mock/mock.py
gabriel-correia0408/Sala_Green_GabrielCorreia
1d22f466d372786c5f8c8eaba7202844b5f03445
[ "Apache-2.0" ]
null
null
null
teste_mock/mock.py
gabriel-correia0408/Sala_Green_GabrielCorreia
1d22f466d372786c5f8c8eaba7202844b5f03445
[ "Apache-2.0" ]
null
null
null
teste_mock/mock.py
gabriel-correia0408/Sala_Green_GabrielCorreia
1d22f466d372786c5f8c8eaba7202844b5f03445
[ "Apache-2.0" ]
null
null
null
#unittest.mock é uma biblioteca para teste em Python. Que permite substituir partes # do seu sistema em teste por # objetos simulados e fazer afirmações sobre como elas foram usadas. #unittest.mock fornece uma classe core Mock removendo a necessidade de criar uma série de stubs # em tod o seu conjunto de testes. # Dep...
56.333333
102
0.787722
ddfb35cdd3e0cdb3e4a0860be3835cfceccc3063
66
py
Python
wsgi.py
ercancavusoglu/flask-skeleton
9c9c0b8f9b7b339837f532ea4ca9698e6a55900c
[ "Apache-2.0" ]
null
null
null
wsgi.py
ercancavusoglu/flask-skeleton
9c9c0b8f9b7b339837f532ea4ca9698e6a55900c
[ "Apache-2.0" ]
null
null
null
wsgi.py
ercancavusoglu/flask-skeleton
9c9c0b8f9b7b339837f532ea4ca9698e6a55900c
[ "Apache-2.0" ]
null
null
null
from bootstrap import * if __name__ == '__main__': app.run()
13.2
26
0.651515
1388f57721c3024f212a6fab147ff8e8dfaf95da
39,500
py
Python
qap/cli.py
manwithadodla/quality-assessment-protocol
9f4d660bd67eb20d4b4a28ae7e837e6d396f0318
[ "BSD-3-Clause" ]
38
2015-01-23T20:07:22.000Z
2021-11-08T07:08:27.000Z
qap/cli.py
manwithadodla/quality-assessment-protocol
9f4d660bd67eb20d4b4a28ae7e837e6d396f0318
[ "BSD-3-Clause" ]
107
2015-01-09T00:34:34.000Z
2022-02-28T07:44:10.000Z
qap/cli.py
manwithadodla/quality-assessment-protocol
9f4d660bd67eb20d4b4a28ae7e837e6d396f0318
[ "BSD-3-Clause" ]
24
2015-09-14T16:11:12.000Z
2021-10-04T08:09:16.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import os import os.path as op import argparse from nipype import config log_dir=os.path.join("tmp","nipype","logs") config.update_config({'logging': {'log_di...
39.147671
101
0.550051
7e36a2ea4e2c2fe4fde376f0ba1d24ba3ec3a922
10,510
py
Python
installer/bkt_install/reg.py
pyro-team/bkt-toolbox
bbccba142a81ca0a46056f2bcda75899979158a5
[ "MIT" ]
12
2019-05-31T02:57:26.000Z
2022-03-26T09:40:50.000Z
installer/bkt_install/reg.py
mrflory/bkt-toolbox
bbccba142a81ca0a46056f2bcda75899979158a5
[ "MIT" ]
27
2021-11-27T16:33:19.000Z
2022-03-27T17:47:26.000Z
installer/bkt_install/reg.py
pyro-team/bkt-toolbox
bbccba142a81ca0a46056f2bcda75899979158a5
[ "MIT" ]
3
2019-06-12T10:59:20.000Z
2020-04-21T15:13:50.000Z
# -*- coding: utf-8 -*- ''' Created on 19.02.2017 @author: chschmitt ''' from __future__ import absolute_import, division, print_function import os.path from contextlib import contextmanager import System import Microsoft.Win32 as Win32 from System.Reflection import Assembly, AssemblyName RegistryHive = Win32.Re...
38.357664
196
0.629401
7be85c7bd097b93b6d435104af04c1b44616007d
3,334
py
Python
scrapydemo/scrapydemo/spiders/cna_sections.py
jasperaiwizard/scrapper
64e8bbec1654df00e57ef8d083ffa5542fe39612
[ "MIT" ]
1
2021-12-31T12:50:33.000Z
2021-12-31T12:50:33.000Z
scrapydemo/scrapydemo/spiders/cna_sections.py
coderdoufu/article_scraper
79abd2a4dae919de9f8cd30bc7aa7b29eb7f67c1
[ "MIT" ]
null
null
null
scrapydemo/scrapydemo/spiders/cna_sections.py
coderdoufu/article_scraper
79abd2a4dae919de9f8cd30bc7aa7b29eb7f67c1
[ "MIT" ]
null
null
null
import scrapy from scrapy.crawler import CrawlerRunner from scrapy.utils.project import get_project_settings from scrapydemo.scrapydemo.items import ArticleItem from twisted.internet import reactor import sys, os from urllib.parse import quote_plus import json from datetime import datetime as dt def get_request_paylo...
37.044444
300
0.563587
b88285738a4873c7ad1133b628a7ffe8e00c9cb8
2,398
py
Python
tests/test_pseudopos.py
slacAdpai/pcdsdevices
7d79821f8b5652a7fd457b9a73d22ef37b2043d3
[ "BSD-3-Clause-LBNL" ]
null
null
null
tests/test_pseudopos.py
slacAdpai/pcdsdevices
7d79821f8b5652a7fd457b9a73d22ef37b2043d3
[ "BSD-3-Clause-LBNL" ]
null
null
null
tests/test_pseudopos.py
slacAdpai/pcdsdevices
7d79821f8b5652a7fd457b9a73d22ef37b2043d3
[ "BSD-3-Clause-LBNL" ]
null
null
null
import logging import pytest from ophyd.device import Component as Cpt from ophyd.positioner import SoftPositioner from pcdsdevices.pseudopos import DelayBase, SimDelayStage, SyncAxesBase logger = logging.getLogger(__name__) class FiveSyncSoftPositioner(SyncAxesBase): one = Cpt(SoftPositioner, init_pos=0) ...
27.883721
74
0.712677
96b37f021e629fec372ab739422ac7a6e837228d
8,531
py
Python
lucid_bot/utils.py
viargentum/lucid-bot
3c7279221193e09455b93a642507c08c140d3600
[ "MIT" ]
3
2021-05-12T02:18:55.000Z
2021-07-27T23:44:03.000Z
lucid_bot/utils.py
viargentum/lucid-bot
3c7279221193e09455b93a642507c08c140d3600
[ "MIT" ]
2
2021-03-23T18:01:52.000Z
2021-03-23T23:58:51.000Z
lucid_bot/utils.py
viargentum/lucid-bot
3c7279221193e09455b93a642507c08c140d3600
[ "MIT" ]
2
2021-03-23T14:40:30.000Z
2021-03-23T18:04:34.000Z
import asyncio from datetime import datetime import discord from discord.ext import commands from enum import Enum, auto from lucid_bot import config from lucid_bot.lucid_embed import lucid_embed class LucidCommandResult(Enum): SUCCESS = auto() FAIL = auto() class Utils: def __init__(self, bot): ...
29.316151
95
0.525612
73d1f88ca9cd73999aa67a657a470aada64e3a41
4,868
pyde
Python
mode/examples/Topics/Cellular Automata/GameOfLife/GameOfLife.pyde
timgates42/processing.py
78a237922c2a928b83f4ad579dbf8d32c0099890
[ "Apache-2.0" ]
1,224
2015-01-01T22:09:23.000Z
2022-03-29T19:43:56.000Z
mode/examples/Topics/Cellular Automata/GameOfLife/GameOfLife.pyde
timgates42/processing.py
78a237922c2a928b83f4ad579dbf8d32c0099890
[ "Apache-2.0" ]
253
2015-01-14T03:45:51.000Z
2022-02-08T01:18:19.000Z
mode/examples/Topics/Cellular Automata/GameOfLife/GameOfLife.pyde
timgates42/processing.py
78a237922c2a928b83f4ad579dbf8d32c0099890
[ "Apache-2.0" ]
225
2015-01-13T18:38:33.000Z
2022-03-30T20:27:39.000Z
""" A Processing implementation of Game of Life By Joan Soler-Adillon Press SPACE BAR to pause and change the cell's values with the mouse On pause, click to activate/deactivate cells Press R to randomly reset the cells' grid Press C to clear the cells' grid The original Game of Life was created by John Conway in 197...
36.878788
77
0.560805
0605d306223721e4b8a92917777ae6bdcba3d09f
625
py
Python
Scripts/bisectionsqrt.py
timseymore/py-scripts
89cce81a1a62f9aa9aad477919b12fff5b42a694
[ "MIT" ]
null
null
null
Scripts/bisectionsqrt.py
timseymore/py-scripts
89cce81a1a62f9aa9aad477919b12fff5b42a694
[ "MIT" ]
null
null
null
Scripts/bisectionsqrt.py
timseymore/py-scripts
89cce81a1a62f9aa9aad477919b12fff5b42a694
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Bisectionsqrt Use bisection search to approximate square root Created on Thu Feb 1 21:29:30 2018 @author: tim_s """ def sqrt(x): x = -25 x = abs(x) epsilon = .01 numGuesses = 0 low = 0.0 high = max(1.0, x) ans = (high + low)/2.0 while abs(ans**2 - x)...
20.16129
59
0.5072
175e4f66e7f8be8658a2dda12c1a047adf3ca4b3
312
py
Python
newspaper_project/urls.py
vaibhavgope/django_newspaper
d6f62e153286909ef401dd4aca0e7a9b6e1937f8
[ "Apache-2.0" ]
null
null
null
newspaper_project/urls.py
vaibhavgope/django_newspaper
d6f62e153286909ef401dd4aca0e7a9b6e1937f8
[ "Apache-2.0" ]
null
null
null
newspaper_project/urls.py
vaibhavgope/django_newspaper
d6f62e153286909ef401dd4aca0e7a9b6e1937f8
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('users/', include('users.urls')), path('users/', include('django.contrib.auth.urls')), path('', include('pages.urls')), path('articles/', include('articles.urls')), ]
31.2
56
0.657051
306eeb10d67f4fafc6bafb36c14702e999cbc0bf
3,286
py
Python
tests/test_ml/test_rl.py
granularai/polyaxon-schemas
017ae74701f21f12f0b25e75379681ea5d8baa9e
[ "MIT" ]
null
null
null
tests/test_ml/test_rl.py
granularai/polyaxon-schemas
017ae74701f21f12f0b25e75379681ea5d8baa9e
[ "MIT" ]
null
null
null
tests/test_ml/test_rl.py
granularai/polyaxon-schemas
017ae74701f21f12f0b25e75379681ea5d8baa9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from unittest import TestCase from tests.utils import assert_equal_dict from polyaxon_schemas.ml.rl.environments import GymEnvironmentConfig from polyaxon_schemas.ml.rl.explorations import ( ConstantExplorationConfig, De...
32.215686
74
0.643944
f3fff7d3e81a040de8cd6591374789c8ea9c6a7a
10,554
py
Python
deepctr_torch/inputs.py
ParticleMedia/DeepCTR-Torch
862a0b4ab59b24797b7852d9d4a3fcb79c7f378c
[ "Apache-2.0" ]
null
null
null
deepctr_torch/inputs.py
ParticleMedia/DeepCTR-Torch
862a0b4ab59b24797b7852d9d4a3fcb79c7f378c
[ "Apache-2.0" ]
null
null
null
deepctr_torch/inputs.py
ParticleMedia/DeepCTR-Torch
862a0b4ab59b24797b7852d9d4a3fcb79c7f378c
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- """ Author: Weichen Shen,weichenswc@163.com """ from collections import OrderedDict, namedtuple, defaultdict from itertools import chain import torch import torch.nn as nn import numpy as np from .layers.sequence import SequencePoolingLayer from .layers.utils import concat_fun from .layers...
39.52809
129
0.676426
381d5e745de0ce4308deb4f83fb8bd6efe551f47
530
py
Python
flask_app/authorization.py
Cs586/Team-Project-Final-Web-Application
37a7f704430f87228f4fac90b6242ff41b2ed312
[ "Unlicense" ]
null
null
null
flask_app/authorization.py
Cs586/Team-Project-Final-Web-Application
37a7f704430f87228f4fac90b6242ff41b2ed312
[ "Unlicense" ]
null
null
null
flask_app/authorization.py
Cs586/Team-Project-Final-Web-Application
37a7f704430f87228f4fac90b6242ff41b2ed312
[ "Unlicense" ]
2
2020-08-05T17:11:52.000Z
2021-02-14T03:09:43.000Z
from typing import Dict, Optional from flask_app.calendar_data import CalendarData class Authorization: def __init__(self, calendar_data: CalendarData) -> None: self.calendar_data = calendar_data def can_access(self, username: str, data: Optional[Dict] = None, calendar_id: Optional[str] = None,) -> ...
35.333333
113
0.718868
2d568e8641c5ac50f5cef9f1fa10bc6ea3ef9a60
1,380
py
Python
fairseq/data/audio/feature_transforms/samp_fbank.py
StatNLP/ada4asr
3f40fac990afa471153ff6a8a450dfce9712b962
[ "MIT" ]
4
2021-09-06T06:40:41.000Z
2022-02-14T09:59:37.000Z
fairseq/data/audio/feature_transforms/samp_fbank.py
StatNLP/ada4asr
3f40fac990afa471153ff6a8a450dfce9712b962
[ "MIT" ]
null
null
null
fairseq/data/audio/feature_transforms/samp_fbank.py
StatNLP/ada4asr
3f40fac990afa471153ff6a8a450dfce9712b962
[ "MIT" ]
1
2021-07-12T12:34:47.000Z
2021-07-12T12:34:47.000Z
import math import numbers from typing import Optional import numpy as np from fairseq.data.audio.feature_transforms import ( AudioFeatureTransform, register_audio_feature_transform, ) @register_audio_feature_transform("samp_fbank") class SampFbankTransform(AudioFeatureTransform): @classmethod def f...
27.6
73
0.606522
5b0378afb3e350a0b970e91d7577efb6624936f0
816
py
Python
bazar/markup.py
emencia/emencia-django-bazar
a0cf56c00988c84c2288c21fa2a08364fc5033aa
[ "MIT" ]
null
null
null
bazar/markup.py
emencia/emencia-django-bazar
a0cf56c00988c84c2288c21fa2a08364fc5033aa
[ "MIT" ]
11
2015-05-06T14:50:14.000Z
2017-12-16T23:46:17.000Z
bazar/markup.py
emencia/emencia-django-bazar
a0cf56c00988c84c2288c21fa2a08364fc5033aa
[ "MIT" ]
null
null
null
""" Some markup utilities for RST and DjangoCodeMirror usage TODO: rst/djangocodemirror formatting should not be the default formatting, because they are not package requirements. """ from django.forms import ValidationError from rstview.parser import SourceReporter, map_parsing_errors from djangocodemirror.fi...
25.5
75
0.724265
bb880da1a974996faa59cd0fcfeeabf5cd915796
1,544
py
Python
jobs/views.py
SethWen/JobSpiderDjango
5d7160c717c328c4927ff0b5f0af1a43cbcbcb29
[ "Apache-2.0" ]
5
2017-07-10T14:57:22.000Z
2018-03-12T08:17:45.000Z
jobs/views.py
SethWen/JobSpiderDjango
5d7160c717c328c4927ff0b5f0af1a43cbcbcb29
[ "Apache-2.0" ]
null
null
null
jobs/views.py
SethWen/JobSpiderDjango
5d7160c717c328c4927ff0b5f0af1a43cbcbcb29
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 from django.http import HttpResponse, JsonResponse from django.shortcuts import render from models import LagouJobs, ZhilianJobs from dss import Serializer # Create your views here. def get_lagou(request): """ 获取拉勾网职位信息 :param request: :return: """ response_dict = get_jobs(req...
24.125
75
0.624352
e159ff03c7af51a5dec91c00018999da8ddb9ceb
5,224
py
Python
taglets/data/custom_dataset.py
BatsResearch/taglets
0fa9ebeccc9177069aa09b2da84746b7532e3495
[ "Apache-2.0" ]
13
2021-11-10T13:17:10.000Z
2022-03-30T22:56:52.000Z
taglets/data/custom_dataset.py
BatsResearch/taglets
0fa9ebeccc9177069aa09b2da84746b7532e3495
[ "Apache-2.0" ]
1
2021-11-10T16:01:47.000Z
2021-11-10T16:01:47.000Z
taglets/data/custom_dataset.py
BatsResearch/taglets
0fa9ebeccc9177069aa09b2da84746b7532e3495
[ "Apache-2.0" ]
2
2022-02-14T22:40:29.000Z
2022-02-27T04:27:48.000Z
import os import numpy as np from torch.utils.data import Dataset from PIL import Image import torch class CustomImageDataset(Dataset): """ A custom dataset used to create dataloaders. """ def __init__(self, filepaths, labels=None, label_map=None, transform=None): """ Create a new Cus...
33.273885
112
0.602221
262093e4dd7e520667e4fbbc7b5aff7a9c64fbd6
101,685
py
Python
test_autoarray/unit/dataset/test_imaging.py
Sketos/PyAutoArray
72dc7e8d1c38786915f82a7e7284239e5ce87624
[ "MIT" ]
null
null
null
test_autoarray/unit/dataset/test_imaging.py
Sketos/PyAutoArray
72dc7e8d1c38786915f82a7e7284239e5ce87624
[ "MIT" ]
null
null
null
test_autoarray/unit/dataset/test_imaging.py
Sketos/PyAutoArray
72dc7e8d1c38786915f82a7e7284239e5ce87624
[ "MIT" ]
null
null
null
import os import numpy as np import pytest import shutil import autoarray as aa from autoarray import exc from autoarray.dataset import imaging test_data_dir = "{}/../test_files/array/".format( os.path.dirname(os.path.realpath(__file__)) ) class TestConstructor: def test__setup_image__correct_attributes(se...
40.592814
116
0.584403
3f48abd1a43216e3c56372d0d5ef8e6f21e11962
3,605
py
Python
torchmetrics/functional/regression/pearson.py
CSautier/metrics
32389fbc03b1bbbf0b15b05c56dc1db7a90bff97
[ "Apache-2.0" ]
null
null
null
torchmetrics/functional/regression/pearson.py
CSautier/metrics
32389fbc03b1bbbf0b15b05c56dc1db7a90bff97
[ "Apache-2.0" ]
null
null
null
torchmetrics/functional/regression/pearson.py
CSautier/metrics
32389fbc03b1bbbf0b15b05c56dc1db7a90bff97
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
33.37963
120
0.669348
b2a7b862f2683223f18b9a96052c68935b34c9a0
499
py
Python
rrs/migrations/0009_rmh_layerbranch.py
ebrent8/clear-linux-dissector-web
45f1f9b5a5753ab8b14ed3c99f1c9e68bb97a47c
[ "MIT" ]
3
2019-05-12T21:11:53.000Z
2019-09-15T18:11:21.000Z
rrs/migrations/0009_rmh_layerbranch.py
ebrent8/clear-linux-dissector-web
45f1f9b5a5753ab8b14ed3c99f1c9e68bb97a47c
[ "MIT" ]
21
2019-06-26T05:01:01.000Z
2022-03-11T23:47:21.000Z
rrs/migrations/0009_rmh_layerbranch.py
ebrent8/clear-linux-dissector-web
45f1f9b5a5753ab8b14ed3c99f1c9e68bb97a47c
[ "MIT" ]
8
2019-06-13T08:51:12.000Z
2021-02-17T11:14:46.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('layerindex', '0010_add_dependencies'), ('rrs', '0008_upgrade_info'), ] operations = [ migrations.AddField( ...
23.761905
88
0.627255
da9cf95fc3988cdd4c3e83c7d1a246ced08097ec
1,128
py
Python
server/djangoapp/urls.py
snicer1/agfzb-CloudAppDevelopment_Capstone
d6c346fac5851dbf5f136ca9a7ea8606adf553b8
[ "Apache-2.0" ]
null
null
null
server/djangoapp/urls.py
snicer1/agfzb-CloudAppDevelopment_Capstone
d6c346fac5851dbf5f136ca9a7ea8606adf553b8
[ "Apache-2.0" ]
null
null
null
server/djangoapp/urls.py
snicer1/agfzb-CloudAppDevelopment_Capstone
d6c346fac5851dbf5f136ca9a7ea8606adf553b8
[ "Apache-2.0" ]
null
null
null
from django.urls import path from django.conf.urls.static import static from django.conf import settings from . import views app_name = 'djangoapp' urlpatterns = [ # route is a string contains a URL pattern # view refers to the view function # name the URL # path for about view # path for contact...
32.228571
95
0.70922
ce41aba32720f6ea9d94528de27dd679c70e0924
167
py
Python
tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_MovingMedian_Seasonal_WeekOfYear_SVR.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_MovingMedian_Seasonal_WeekOfYear_SVR.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_MovingMedian_Seasonal_WeekOfYear_SVR.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Fisher'] , ['MovingMedian'] , ['Seasonal_WeekOfYear'] , ['SVR'] );
41.75
89
0.760479
0dd31086241c061970a46210a61a851121f4a1c4
8,931
py
Python
rollo/executor.py
khurrumsaleem/rollo
ad7bc0589c5195fefcde8e9e833340fa6d73e59b
[ "BSD-3-Clause" ]
null
null
null
rollo/executor.py
khurrumsaleem/rollo
ad7bc0589c5195fefcde8e9e833340fa6d73e59b
[ "BSD-3-Clause" ]
null
null
null
rollo/executor.py
khurrumsaleem/rollo
ad7bc0589c5195fefcde8e9e833340fa6d73e59b
[ "BSD-3-Clause" ]
null
null
null
import rollo from rollo.input_validation import InputValidation from rollo.algorithm import Algorithm from rollo.constraints import Constraints from rollo.toolbox_generator import ToolboxGenerator import json import time from collections import OrderedDict import logging import sys class Executor(object): """Exec...
34.35
81
0.63218
c52a0f3a178beaf3c4b6eadbb328c425cbd4fb54
2,794
py
Python
src/main/scheduler/model/Caregiver.py
hu-bingwen/vaccine-scheduler-python
364939c1dfb1a9009a4147148e680a7bf07688a4
[ "MIT" ]
null
null
null
src/main/scheduler/model/Caregiver.py
hu-bingwen/vaccine-scheduler-python
364939c1dfb1a9009a4147148e680a7bf07688a4
[ "MIT" ]
null
null
null
src/main/scheduler/model/Caregiver.py
hu-bingwen/vaccine-scheduler-python
364939c1dfb1a9009a4147148e680a7bf07688a4
[ "MIT" ]
null
null
null
import sys sys.path.append("../util/*") sys.path.append("../db/*") from util.Util import Util from db.ConnectionManager import ConnectionManager import pymssql class Caregiver: def __init__(self, username, password=None, salt=None, hash=None): self.username = username self.password = password ...
32.114943
93
0.589835
052a58b83d7d2afcd09e87d9890680f4990de7c4
545
py
Python
nanoql/__main__.py
viehwegerlib/nanoql
152c511afcff96c869d8eff261eebd7e82bc4337
[ "BSD-3-Clause" ]
1
2019-04-24T21:38:26.000Z
2019-04-24T21:38:26.000Z
nanoql/__main__.py
phiweger/nanoql
152c511afcff96c869d8eff261eebd7e82bc4337
[ "BSD-3-Clause" ]
null
null
null
nanoql/__main__.py
phiweger/nanoql
152c511afcff96c869d8eff261eebd7e82bc4337
[ "BSD-3-Clause" ]
null
null
null
''' nanohq command line. ''' # import click # from nanohq.utils import emit # ,spike, simulate # from nanohq.message import message # from nanohq.publish import publish # from nanohq.subscribe import subscribe # from nanohq.monitor import accrue, watch, gather # from nanohq.sift import sift # # @click.group() def cli...
19.464286
51
0.741284
afdcc36667026924b44807f7b39ef757dc16941f
2,309
py
Python
pymatgen/io/cp2k/tests/test_sets.py
mjwen/pymatgen
051a13897dbac7b76438f5705d0c21befd58942c
[ "MIT" ]
null
null
null
pymatgen/io/cp2k/tests/test_sets.py
mjwen/pymatgen
051a13897dbac7b76438f5705d0c21befd58942c
[ "MIT" ]
null
null
null
pymatgen/io/cp2k/tests/test_sets.py
mjwen/pymatgen
051a13897dbac7b76438f5705d0c21befd58942c
[ "MIT" ]
null
null
null
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest from pymatgen.core.structure import Molecule, Species, Structure from pymatgen.io.cp2k.sets import ( CellOptSet, Cp2kInputSet, DftSet, HybridCellOptSet, HybridRelaxSet, HybridStaticSet,...
29.227848
100
0.607189
7e81e03871017309281db662b0f7d987d465e31e
1,128
py
Python
events/migrations/0024_auto_20200114_1950.py
McCarthyCode/Market-to-Market-Chicago
15d491f6f45c0899864ae9256f2808e46e0e140b
[ "MIT" ]
null
null
null
events/migrations/0024_auto_20200114_1950.py
McCarthyCode/Market-to-Market-Chicago
15d491f6f45c0899864ae9256f2808e46e0e140b
[ "MIT" ]
1
2020-06-09T11:15:17.000Z
2020-06-09T11:15:17.000Z
events/migrations/0024_auto_20200114_1950.py
mattmc318/Market-to-Market-Chicago
15d491f6f45c0899864ae9256f2808e46e0e140b
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2020-01-15 01:50 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('events', '0023_auto_20200114_1843'), ] operations = [ migrations.CreateModel( name='Weekday', ...
36.387097
185
0.582447
69207207afc89b26714b0d98938c06501ddb4f81
1,778
py
Python
tests/test_time_indicators.py
TimEconometrics/pyjuque
619f506bdcc163e689212337ec74c40e220e0eb6
[ "MIT" ]
null
null
null
tests/test_time_indicators.py
TimEconometrics/pyjuque
619f506bdcc163e689212337ec74c40e220e0eb6
[ "MIT" ]
null
null
null
tests/test_time_indicators.py
TimEconometrics/pyjuque
619f506bdcc163e689212337ec74c40e220e0eb6
[ "MIT" ]
null
null
null
# app/tests/test_basic.py import os import unittest import sys curr_path = os.path.abspath(__file__) root_path = os.path.abspath( os.path.join(curr_path, os.path.pardir, os.path.pardir)) sys.path.append(root_path) # Import all Created exchanges here from bot.Exchanges.Binance import Binance from bot.Indicators impor...
31.75
78
0.667042
b2ce903693086bbc0a5bc6d729f17f9aeb1686ee
2,872
py
Python
WebKit/Examples/Colors.py
PeaceWorksTechnologySolutions/w4py
74f5a03a63f1a93563502b908474aefaae2abda2
[ "MIT" ]
18
2016-08-01T20:15:59.000Z
2019-12-24T16:00:03.000Z
WebKit/Examples/Colors.py
WebwareForPython/w4py
bba08f5974d49f5da7e88abe3eeda1037d0824a3
[ "MIT" ]
6
2016-09-13T05:48:45.000Z
2020-01-09T18:29:12.000Z
WebKit/Examples/Colors.py
WebwareForPython/w4py
bba08f5974d49f5da7e88abe3eeda1037d0824a3
[ "MIT" ]
6
2016-09-16T14:32:29.000Z
2020-01-03T18:52:16.000Z
import os from ExamplePage import ExamplePage # Helper functions gamma = 2.2 # an approximation for today's CRTs def brightness(r, g, b): """Calculate brightness of RGB color.""" r, g, b = map(lambda x: x/255.0, (r, g, b)) return (0.3*r**gamma + 0.6*g**gamma + 0.1*b**gamma)**(1/gamma) def textcolor(r,...
33.011494
79
0.583217
b5830d63e8d2d399a5132201e3a90c8ca1847820
1,498
py
Python
compiler/tests/14_replica_bitline_test.py
xinjie0831/OpenRAM
76e2ab88fe4097ffa51e0387ba72165bcda49e68
[ "BSD-3-Clause" ]
null
null
null
compiler/tests/14_replica_bitline_test.py
xinjie0831/OpenRAM
76e2ab88fe4097ffa51e0387ba72165bcda49e68
[ "BSD-3-Clause" ]
null
null
null
compiler/tests/14_replica_bitline_test.py
xinjie0831/OpenRAM
76e2ab88fe4097ffa51e0387ba72165bcda49e68
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # See LICENSE for licensing information. # #Copyright (c) 2016-2019 Regents of the University of California and The Board #of Regents for the Oklahoma Agricultural and Mechanical College #(acting for and on behalf of Oklahoma State University) #All rights reserved. # """ Run a test on a replica b...
30.571429
112
0.691589
aa311834660765b1aefa55ccba5bd3a0178813b2
9,074
py
Python
main_2.py
tuanad121/postfilt_gan
7efefc45d6b6cc6e099afb94bf0c40e4e7924ef2
[ "MIT" ]
null
null
null
main_2.py
tuanad121/postfilt_gan
7efefc45d6b6cc6e099afb94bf0c40e4e7924ef2
[ "MIT" ]
null
null
null
main_2.py
tuanad121/postfilt_gan
7efefc45d6b6cc6e099afb94bf0c40e4e7924ef2
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import os import random #import numpy as np import torch import torch.nn as nn import torch.backends.cudnn as cudnn import torch.optim as optim import torch.utils.data from torch.autograd import Variable from data_loader import get_loader, prepare_normalizer from ...
38.777778
100
0.58618
f946750ed95ffe7beab1651721ddeb11c0417d36
290
py
Python
codeforces/1331d.py
btjanaka/competitive-programming-solutions
e3df47c18451802b8521ebe61ca71ee348e5ced7
[ "MIT" ]
3
2020-06-25T21:04:02.000Z
2021-05-12T03:33:19.000Z
codeforces/1331d.py
btjanaka/competitive-programming-solutions
e3df47c18451802b8521ebe61ca71ee348e5ced7
[ "MIT" ]
null
null
null
codeforces/1331d.py
btjanaka/competitive-programming-solutions
e3df47c18451802b8521ebe61ca71ee348e5ced7
[ "MIT" ]
1
2020-06-25T21:04:06.000Z
2020-06-25T21:04:06.000Z
# Author: btjanaka (Bryon Tjanaka) # Problem: (CodeForces) 1331d # Title: Again? # Link: https://codeforces.com/contest/1331/problem/D # Idea: Check if the number is odd or even :p # Difficulty: easy # Tags: april-fools import sys for line in sys.stdin: print(int(line, base=16) % 2)
22.307692
53
0.703448
59ed6583308ab34b301f9a5c8b63d99cf5e59ed8
8,882
py
Python
elections/migrations/0049_auto_20190510_0736.py
zinaukarenku/zkr-platform
8daf7d1206c482f1f8e0bcd54d4fde783e568774
[ "Apache-2.0" ]
2
2018-11-16T21:45:17.000Z
2019-02-03T19:55:46.000Z
elections/migrations/0049_auto_20190510_0736.py
zinaukarenku/zkr-platform
8daf7d1206c482f1f8e0bcd54d4fde783e568774
[ "Apache-2.0" ]
13
2018-08-17T19:12:11.000Z
2022-03-11T23:27:41.000Z
elections/migrations/0049_auto_20190510_0736.py
zinaukarenku/zkr-platform
8daf7d1206c482f1f8e0bcd54d4fde783e568774
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.7 on 2019-05-10 07:36 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('elections', '0048_presidentcandidatebiography'), ] operations = [ migrations.CreateModel( name=...
51.34104
162
0.612362
3d8e146724c283fbcc618cd8d95dba7d8fb9c334
3,491
py
Python
bindings/python/ensmallen/datasets/string/legionellaworsleiensis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/legionellaworsleiensis.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/legionellaworsleiensis.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Legionella worsleiensis. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protei...
33.247619
223
0.679461
0b908d3be355909f4a1cc907c58124ca0156f389
926
py
Python
app/user/views.py
CTKogstrom/drf_app_test
78afab79bcbc6b1c80821ea1997241907ed79267
[ "MIT" ]
null
null
null
app/user/views.py
CTKogstrom/drf_app_test
78afab79bcbc6b1c80821ea1997241907ed79267
[ "MIT" ]
null
null
null
app/user/views.py
CTKogstrom/drf_app_test
78afab79bcbc6b1c80821ea1997241907ed79267
[ "MIT" ]
null
null
null
from rest_framework import generics, authentication, permissions from rest_framework.authtoken.views import ObtainAuthToken from user.serializers import UserSerializer, AuthTokenSerializer from rest_framework.settings import api_settings class CreateUserView(generics.CreateAPIView): """Create a new user in the sys...
34.296296
66
0.789417
1d9da75133fe227f683b04f8a381f4a0dc849691
1,399
py
Python
vsts/vsts/notification/v4_0/models/notification_event_publisher.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/notification/v4_0/models/notification_event_publisher.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
vsts/vsts/notification/v4_0/models/notification_event_publisher.py
kenkuo/azure-devops-python-api
9e920bd25e938fa89ff7f60153e5b9e113ca839d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
41.147059
121
0.56183
c6944cc60fa7aeec91bebea7bbfd55e66c34421f
1,641
py
Python
corded/http/route.py
an-dyy/Corded
ff34faca51ac2ca039adfc2fadd7b3f274ee7353
[ "MIT" ]
null
null
null
corded/http/route.py
an-dyy/Corded
ff34faca51ac2ca039adfc2fadd7b3f274ee7353
[ "MIT" ]
null
null
null
corded/http/route.py
an-dyy/Corded
ff34faca51ac2ca039adfc2fadd7b3f274ee7353
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021 vcokltfre Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
38.162791
78
0.728215
dbc015332a74e7e710965ff6b3cfcae5a8206cb2
6,025
py
Python
countries/views.py
baikov/dj-cc-dep
5ae66b1a638c040e6497d56c2a9299fac335d608
[ "MIT" ]
null
null
null
countries/views.py
baikov/dj-cc-dep
5ae66b1a638c040e6497d56c2a9299fac335d608
[ "MIT" ]
3
2021-11-02T21:08:31.000Z
2022-02-04T21:07:13.000Z
countries/views.py
baikov/dj-cc-dep
5ae66b1a638c040e6497d56c2a9299fac335d608
[ "MIT" ]
null
null
null
# from django.http import HttpResponseRedirect # from django.shortcuts import get_object_or_404 # from re import template from django.shortcuts import render from django.http import Http404 # from django.urls import reverse from django.views.generic import ListView, DetailView # from django.views.generic.edit import Up...
37.893082
113
0.646805
fa57ded8f784fbfdbc9caea938ff4a7fdb3b9e93
7,555
py
Python
cogs/stats.py
fennr/Samuro-HotsBot
81e7a65a08d50602442094e52d6d2e405c98ac1a
[ "Apache-2.0" ]
1
2022-03-26T11:28:00.000Z
2022-03-26T11:28:00.000Z
cogs/stats.py
fennr/Samuro-HotsBot
81e7a65a08d50602442094e52d6d2e405c98ac1a
[ "Apache-2.0" ]
null
null
null
cogs/stats.py
fennr/Samuro-HotsBot
81e7a65a08d50602442094e52d6d2e405c98ac1a
[ "Apache-2.0" ]
null
null
null
"""" Samuro Bot Автор: *fennr* github: https://github.com/fennr/Samuro-HotsBot Бот для сообществ по игре Heroes of the Storm """ import os from discord import Embed, Member, File from discord.ext import commands from utils import check from enum import Enum import openpyxl from openpyxl.styles import Font from open...
35.469484
113
0.594705
f74f5aefcc5817037ddcd5c4e1f68206420349a7
292
py
Python
paper_spider/paper_spider/pipelines.py
peterwilliams97/ToneRanger
61ab8b5a96bbf3f82b8e6a07e470831189afff8c
[ "MIT" ]
null
null
null
paper_spider/paper_spider/pipelines.py
peterwilliams97/ToneRanger
61ab8b5a96bbf3f82b8e6a07e470831189afff8c
[ "MIT" ]
null
null
null
paper_spider/paper_spider/pipelines.py
peterwilliams97/ToneRanger
61ab8b5a96bbf3f82b8e6a07e470831189afff8c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html class PaperSpiderPipeline(object): def process_item(self, item, spider): return item
24.333333
65
0.715753
394de8f0de6b99f8f25966bc8c4f0e6f7c15ddd9
927
py
Python
setup.py
ronikobrosly/surgo_bayesian_network
66bd48a09d4b771264f75cfc443f6527a99eb446
[ "MIT" ]
null
null
null
setup.py
ronikobrosly/surgo_bayesian_network
66bd48a09d4b771264f75cfc443f6527a99eb446
[ "MIT" ]
null
null
null
setup.py
ronikobrosly/surgo_bayesian_network
66bd48a09d4b771264f75cfc443f6527a99eb446
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="surgo-bayesian-network", version="0.0.1", author="Roni Kobrosly", author_email="roni.kobrosly@gmail.com", description="Case study package for Surgo Foundation", long_description=long_d...
27.264706
74
0.625674
04de03d2cc7be80e4ca37506ee1e6182fe825551
6,865
py
Python
src/lappy/services/hor_well_maker.py
erythrocyte/qtlappy
f8ceda45cb5c26e2be8107ddfbafe2d5e3b76627
[ "MIT" ]
null
null
null
src/lappy/services/hor_well_maker.py
erythrocyte/qtlappy
f8ceda45cb5c26e2be8107ddfbafe2d5e3b76627
[ "MIT" ]
13
2020-12-15T19:38:19.000Z
2021-02-20T13:52:05.000Z
src/lappy/services/hor_well_maker.py
erythrocyte/qtlappy
f8ceda45cb5c26e2be8107ddfbafe2d5e3b76627
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 from src.lappy.models.well import Well from src.lappy.models.point import Point from src.lappy.models.pointPair import PointPair from src.lappy.models.vector import Vector from src.lappy.services import geom_oper, vect_oper, geom_numpy from src.lappy.services import well_track_se...
29.212766
79
0.475747
6f959fc33bf493c84e3503f265b2ae417f648da8
1,275
py
Python
sage/cli/grpc_server.py
JulienDavat/sage-engine
87fb7075a07395a527da660d5efc056b0f49758c
[ "MIT" ]
25
2018-09-07T14:43:51.000Z
2021-10-31T22:41:48.000Z
sage/cli/grpc_server.py
JulienDavat/sage-engine
87fb7075a07395a527da660d5efc056b0f49758c
[ "MIT" ]
4
2018-10-28T15:32:08.000Z
2022-01-26T12:47:36.000Z
sage/cli/grpc_server.py
JulienDavat/sage-engine
87fb7075a07395a527da660d5efc056b0f49758c
[ "MIT" ]
16
2018-12-04T17:50:12.000Z
2022-03-26T22:55:47.000Z
# grpc_server.py # Author: Thomas MINIER - MIT License 2017-2020 import signal from asyncio import set_event_loop_policy from os.path import isfile from time import time import click import uvloop from sage.grpc.grpc_server import get_server def stop_server(server, grace=None): """Stop server on a CTRL-C event"""...
34.459459
160
0.738824
90764419b1d6b332906b928b15a6d6cb822ad017
3,356
py
Python
python/days/d05/__init__.py
tamaroth/advent-of-code-2018
83af50c7c128d268a8518ba88432dec6e15d149a
[ "MIT" ]
1
2018-12-02T10:08:05.000Z
2018-12-02T10:08:05.000Z
python/days/d05/__init__.py
tamaroth/advent-of-code-2018
83af50c7c128d268a8518ba88432dec6e15d149a
[ "MIT" ]
null
null
null
python/days/d05/__init__.py
tamaroth/advent-of-code-2018
83af50c7c128d268a8518ba88432dec6e15d149a
[ "MIT" ]
null
null
null
""" Day 5: Alchemical Reduction """ from days import Day from utils.file import read_lines_of_datafile def get_day_05(): return Day05( read_lines_of_datafile('day_05_data.txt')[0] ) class Day05(Day): """A solution to Day 5: Alchemical Reduction.""" def __init__(self, data): sup...
33.89899
106
0.597735
30a1dd7c9dfa567a6854564000ee0392f344f7f7
1,247
py
Python
problems/orf.py
viadanna/rosalind-python
6709c683b04c2e069d73613a2844533e752030bb
[ "MIT" ]
null
null
null
problems/orf.py
viadanna/rosalind-python
6709c683b04c2e069d73613a2844533e752030bb
[ "MIT" ]
null
null
null
problems/orf.py
viadanna/rosalind-python
6709c683b04c2e069d73613a2844533e752030bb
[ "MIT" ]
null
null
null
''' Open Reading Frames http://rosalind.info/problems/orf/ Problem Either strand of a DNA double helix can serve as the coding strand for RNA transcription. Hence, a given DNA string implies six total reading frames, or ways in which the same region of DNA can be translated into amino acids: three reading frames resu...
30.414634
96
0.790698
f069f9d1cee849ed9c3393e4a9a99971567e2900
7,989
py
Python
behavioral.py
gaosanyong/algorithms
09987f7b58648bfeeff3315f35b51e6e6fa5d072
[ "MIT" ]
3
2021-03-27T07:54:16.000Z
2021-11-13T13:21:44.000Z
behavioral.py
gaosanyong/algorithms
09987f7b58648bfeeff3315f35b51e6e6fa5d072
[ "MIT" ]
null
null
null
behavioral.py
gaosanyong/algorithms
09987f7b58648bfeeff3315f35b51e6e6fa5d072
[ "MIT" ]
2
2021-05-31T18:20:36.000Z
2021-10-31T04:22:49.000Z
"""BEHAVIORAL DESIGN PATTERN - observer - visotor - itrator - strategy - chain of responsibility """ """OBSERVER DESIGN PATTERN PROBLEM * subjedts to be monitored * observers to be notified SCENARIO * core temperatures of reactors at a power plant * registered observers to be notified SOLUTION * subjet -- abstrat ...
28.031579
132
0.740643
dc47b742f36af6df4d5159eaf9f460877ea10d69
6,321
py
Python
RobotFramework_Testsuites/Keywords/CSetup.py
test-fullautomation/robotframework-testsuitesmanagement
4a39bcc7fa81d3761ee570c1bed560faf4b673ff
[ "Apache-2.0" ]
3
2021-12-20T02:53:20.000Z
2022-02-16T03:04:42.000Z
RobotFramework_Testsuites/Keywords/CSetup.py
test-fullautomation/robotframework-testsuitesmanagement
4a39bcc7fa81d3761ee570c1bed560faf4b673ff
[ "Apache-2.0" ]
5
2022-02-18T12:37:02.000Z
2022-03-23T10:14:07.000Z
RobotFramework_Testsuites/Keywords/CSetup.py
test-fullautomation/robotframework-testsuitesmanagement
4a39bcc7fa81d3761ee570c1bed560faf4b673ff
[ "Apache-2.0" ]
4
2022-01-06T08:25:31.000Z
2022-03-08T02:23:03.000Z
# Copyright 2020-2022 Robert Bosch Car Multimedia GmbH # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
46.138686
140
0.674577
e8cd4be42e26d99e825c8498b3ee0fa6d3ea2d2e
2,248
py
Python
QCPU_Setup/solver/solveBQM.py
cogrpar/qcpuWARE
9b8233e830f8cfacbef787781b2279e42f26fec5
[ "Apache-2.0" ]
1
2022-02-01T14:40:05.000Z
2022-02-01T14:40:05.000Z
QCPU_Setup/solver/solveBQM.py
cogrpar/qcpuWARE
9b8233e830f8cfacbef787781b2279e42f26fec5
[ "Apache-2.0" ]
null
null
null
QCPU_Setup/solver/solveBQM.py
cogrpar/qcpuWARE
9b8233e830f8cfacbef787781b2279e42f26fec5
[ "Apache-2.0" ]
1
2022-02-01T14:40:31.000Z
2022-02-01T14:40:31.000Z
import dimod import hybrid import dwavebinarycsp #function to solve for the minimum energy posibility: def SolveExtreme(bqm): # Define the workflow iteration = hybrid.RacingBranches( hybrid.InterruptableTabuSampler(), hybrid.EnergyImpactDecomposer(size=2) | hybrid.QPUSubproblemAutoEmbeddingSampl...
31.661972
88
0.691726
e9e47f159f628e23f49547e3008480578937d6a8
30
py
Python
adv/srVAE/src/modules/priors/realnvp/model/__init__.py
eliphatfs/adversarial
62c51e22734fd6bc2f674d0a96fddd177e06c507
[ "Apache-2.0" ]
60
2020-06-11T11:06:15.000Z
2022-03-31T14:35:19.000Z
src/modules/priors/realnvp/model/__init__.py
ioangatop/srVAE
dfee765c53f11f4653e7c6e7118a339832656867
[ "MIT" ]
9
2020-06-28T09:45:28.000Z
2020-12-30T15:20:19.000Z
src/modules/priors/realnvp/model/__init__.py
ioangatop/srVAE
dfee765c53f11f4653e7c6e7118a339832656867
[ "MIT" ]
9
2020-07-28T12:03:32.000Z
2022-03-31T14:34:08.000Z
from .real_nvp import RealNVP
15
29
0.833333
c790d50523ba39dbdf858f1888b21249657777a9
8,433
py
Python
tools/docs/generate_version_histories.py
sergiitk/envoy
fa99ae02afda16ecdfe993d57d57e733e6d63d06
[ "Apache-2.0" ]
null
null
null
tools/docs/generate_version_histories.py
sergiitk/envoy
fa99ae02afda16ecdfe993d57d57e733e6d63d06
[ "Apache-2.0" ]
10
2021-12-06T21:37:15.000Z
2021-12-23T09:46:20.000Z
tools/docs/generate_version_histories.py
sergiitk/envoy
fa99ae02afda16ecdfe993d57d57e733e6d63d06
[ "Apache-2.0" ]
1
2019-07-09T21:09:57.000Z
2019-07-09T21:09:57.000Z
import pathlib import re import sys import tarfile from functools import cached_property from frozendict import frozendict import jinja2 from packaging import version from aio.run import runner from envoy.base import utils from envoy.base.utils import IProject, Project # TODO(phlax): Move all of this to pytooling ...
33.070588
201
0.688367
bcd1f908f41d5b748d8ffb098b56233d577df8c6
25
py
Python
mdx_wavedrom/__init__.py
chiggs/mdx_wavedrom
c8f27da68f873fe15bc6d6616e3e454507a6b2a0
[ "MIT" ]
3
2015-07-29T04:23:39.000Z
2021-02-06T19:33:39.000Z
mdx_qrcode/__init__.py
airtonix/python-markdown-qrcode
c61efee77c9d5b5dc8179a89cbe4d870388fe02b
[ "MIT" ]
null
null
null
mdx_qrcode/__init__.py
airtonix/python-markdown-qrcode
c61efee77c9d5b5dc8179a89cbe4d870388fe02b
[ "MIT" ]
2
2018-05-26T14:46:40.000Z
2020-09-25T16:06:59.000Z
from extension import *
8.333333
23
0.76
74c8b67ccfa9d961c5afd5546a2308350c421704
2,163
py
Python
votebot/models.py
takwas/pyung-slack-votebot
a8bb4048b52e5b303dd31af302b95b98d2ef2317
[ "MIT" ]
null
null
null
votebot/models.py
takwas/pyung-slack-votebot
a8bb4048b52e5b303dd31af302b95b98d2ef2317
[ "MIT" ]
null
null
null
votebot/models.py
takwas/pyung-slack-votebot
a8bb4048b52e5b303dd31af302b95b98d2ef2317
[ "MIT" ]
null
null
null
from sqlalchemy import Column, ForeignKey, Integer, String, Boolean, create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, sessionmaker Base = declarative_base() session = None class Profile(Base): __tablename__ = 'profiles' id = Column(Integer, prim...
35.459016
82
0.71706
61f36c1ea83c34f2f09ce36cd4c560da29ec82c7
3,431
py
Python
auto_pose/eval/latex_report.py
HsiaoTsan/AugmentedAutoencoder
c60a96c4c29cf867a797d98bce34ee4dea5f2149
[ "MIT" ]
1
2020-12-06T03:43:53.000Z
2020-12-06T03:43:53.000Z
auto_pose/eval/latex_report.py
HsiaoTsan/AugmentedAutoencoder
c60a96c4c29cf867a797d98bce34ee4dea5f2149
[ "MIT" ]
null
null
null
auto_pose/eval/latex_report.py
HsiaoTsan/AugmentedAutoencoder
c60a96c4c29cf867a797d98bce34ee4dea5f2149
[ "MIT" ]
null
null
null
import os import glob import time prolog =\ r''' \documentclass[a4paper,table]{article} \usepackage{graphicx} \usepackage{float} \usepackage{tikz} \usepackage{caption} \usepackage{subcaption} \usepackage{fancyhdr} \usepackage[a4paper]{geometry} \usepackage{hyperref} \usepackage{pdflscape} \usepackage{nameref} \usepack...
26.392308
102
0.611192
1638ce1a77801eeef8f7931e7b266157a3dcbc70
911
py
Python
examples/npred_demo.py
joleroi/gammapy
c4e0c4bd74c79d30e0837559d18b7a1a269f70d9
[ "BSD-3-Clause" ]
null
null
null
examples/npred_demo.py
joleroi/gammapy
c4e0c4bd74c79d30e0837559d18b7a1a269f70d9
[ "BSD-3-Clause" ]
null
null
null
examples/npred_demo.py
joleroi/gammapy
c4e0c4bd74c79d30e0837559d18b7a1a269f70d9
[ "BSD-3-Clause" ]
null
null
null
"""Test npred model image computation. """ from astropy.units import Quantity from astropy.coordinates import Angle from gammapy.datasets import FermiGalacticCenter from gammapy.irf import EnergyDependentTablePSF from gammapy.data import (SpectralCube, compute_npred_cube, ...
36.44
65
0.715697
3cb98b826371f4dfda09a39ed9c09c8f6ab7451b
847
py
Python
LaureatsBackEnd-master/laureats/migrations/0011_auto_20200111_1525.py
SanaaCHAOU/laureat_management_ENSAT
d769714f9f8cb9ebf90e02577547ec348c011461
[ "MIT" ]
null
null
null
LaureatsBackEnd-master/laureats/migrations/0011_auto_20200111_1525.py
SanaaCHAOU/laureat_management_ENSAT
d769714f9f8cb9ebf90e02577547ec348c011461
[ "MIT" ]
null
null
null
LaureatsBackEnd-master/laureats/migrations/0011_auto_20200111_1525.py
SanaaCHAOU/laureat_management_ENSAT
d769714f9f8cb9ebf90e02577547ec348c011461
[ "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-01-11 14:25 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('laureats', '0010_auto_20200111_1458'), ] operations = [ migrations.CreateModel( name='Professio...
28.233333
132
0.570248
8bbf62fc2d1cdafa15fb2ddfbf38a9b559d67667
1,137
py
Python
study_management/migrations/0008_participantauthtoken.py
jdkizer9/ls2_app
8b4c37b44a673d1919a0e52b72f529b7e1abd2e3
[ "Apache-2.0" ]
null
null
null
study_management/migrations/0008_participantauthtoken.py
jdkizer9/ls2_app
8b4c37b44a673d1919a0e52b72f529b7e1abd2e3
[ "Apache-2.0" ]
7
2020-02-05T04:57:01.000Z
2022-02-10T06:51:23.000Z
study_management/migrations/0008_participantauthtoken.py
jdkizer9/ls2_app
8b4c37b44a673d1919a0e52b72f529b7e1abd2e3
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1 on 2018-10-01 01:35 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('study_management', '0007_a...
37.9
178
0.64292
f6d41fb4ecb590149cc41c82fcc6f586d7057055
4,721
py
Python
lib/python2.7/site-packages/pyami/msc.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/pyami/msc.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/pyami/msc.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
1
2019-09-05T20:58:37.000Z
2019-09-05T20:58:37.000Z
#!/usr/bin/env python import numpy import quietscipy from scipy import fftpack import scipy.ndimage import correlator import numextension import mrc import imagefun import peakfinder debug = True def pad(im, shape): im2 = numpy.zeros(shape, im.dtype) r0 = shape[0]/2 - im.shape[0]/2 c0 = shape[1]/2 - im.shape[1]/2...
31.898649
117
0.73692
f0b49ff9b29f0c1c3691e69038d26096e236261c
3,568
py
Python
mongoadmin/contenttypes/views.py
carlware/django-mongoadmin
3ef5d86ff2658ee1833cb431ecb43dfb98afb8b2
[ "BSD-3-Clause" ]
50
2015-01-12T15:46:53.000Z
2021-11-19T15:24:24.000Z
mongoadmin/contenttypes/views.py
carlware/django-mongoadmin
3ef5d86ff2658ee1833cb431ecb43dfb98afb8b2
[ "BSD-3-Clause" ]
8
2015-01-13T23:35:09.000Z
2021-01-05T03:01:19.000Z
mongoadmin/contenttypes/views.py
carlware/django-mongoadmin
3ef5d86ff2658ee1833cb431ecb43dfb98afb8b2
[ "BSD-3-Clause" ]
26
2015-03-31T07:03:02.000Z
2019-06-18T03:21:31.000Z
from __future__ import unicode_literals from django import http from django.contrib.sites.models import Site, get_current_site from django.utils.translation import ugettext as _ from mongoadmin.contenttypes.models import ContentType def shortcut(request, content_type_id, object_id): """ Redirect to an object...
41.011494
92
0.610426
273c93fcf9f421296aab5ca3269eedf24dd190dd
31,273
py
Python
examples/ezusb.py
karpierz/libusb
d9cbd2dd7b21f88b5533b7a750f85008402f305a
[ "Zlib" ]
25
2017-09-04T04:02:31.000Z
2022-03-04T20:28:56.000Z
examples/ezusb.py
karpierz/libusb
d9cbd2dd7b21f88b5533b7a750f85008402f305a
[ "Zlib" ]
7
2019-05-21T14:23:02.000Z
2022-03-21T20:50:17.000Z
examples/ezusb.py
karpierz/libusb
d9cbd2dd7b21f88b5533b7a750f85008402f305a
[ "Zlib" ]
13
2019-06-26T01:05:59.000Z
2022-03-21T07:27:11.000Z
# Copyright (c) 2016-2021 Adam Karpierz # Licensed under the zlib/libpng License # https://opensource.org/licenses/Zlib # Copyright © 2001 Stephen Williams (steve@icarus.com) # Copyright © 2001-2002 David Brownell (dbrownell@users.sourceforge.net) # Copyright © 2008 Roger Williams (rawqux@users.sourceforge.net) # Copy...
35.416761
119
0.593004
7d36bd67e156faa216406eb5de2f71c6ae519ce4
3,485
py
Python
gelato/gelato/settings.py
forfrt/Gelato
fde9cde624658d7168ce56e3606ee9749ad84ac2
[ "Apache-2.0" ]
null
null
null
gelato/gelato/settings.py
forfrt/Gelato
fde9cde624658d7168ce56e3606ee9749ad84ac2
[ "Apache-2.0" ]
null
null
null
gelato/gelato/settings.py
forfrt/Gelato
fde9cde624658d7168ce56e3606ee9749ad84ac2
[ "Apache-2.0" ]
null
null
null
""" Django settings for gelato project. Generated by 'django-admin startproject' using Django 2.1.7. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # ...
25.625
91
0.688953
37b20b404f5014f19f19e898b6f77ef45e157b01
4,452
py
Python
LeetCode-All-Solution/Python3/LC-0094-Binary-Tree-Inorder-Traversal.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
LeetCode-All-Solution/Python3/LC-0094-Binary-Tree-Inorder-Traversal.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
LeetCode-All-Solution/Python3/LC-0094-Binary-Tree-Inorder-Traversal.py
YuweiYin/Algorithm_YuweiYin
28648fac59c5a4e3c907978cbd1b3e662ba18fd5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """================================================================= @Project : Algorithm_YuweiYin/LeetCode-All-Solution/Python3 @File : LC-0094-Binary-Tree-Inorder-Traversal.py @Author : [YuweiYin](https://github.com/YuweiYin) @Date : 2022-03-06 =====================...
27.652174
75
0.580189
deb8f1bb3a017d018cf4531c2595a9adab7967ca
17,506
py
Python
pba/model.py
chopardda/LDAS-NLP
c3737a71378267d847be9759e9bd468aa3da23d1
[ "Apache-2.0" ]
null
null
null
pba/model.py
chopardda/LDAS-NLP
c3737a71378267d847be9759e9bd468aa3da23d1
[ "Apache-2.0" ]
null
null
null
pba/model.py
chopardda/LDAS-NLP
c3737a71378267d847be9759e9bd468aa3da23d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow 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 applicab...
40.617169
197
0.673026
f0e18cf2b502ee8a6a8d1a0ee15d92085fc5d647
109
py
Python
pysts/notebook/report/__init__.py
sdswart/pysts
f140072e064b59a7d8732e73d71fd812b6d292c5
[ "MIT" ]
null
null
null
pysts/notebook/report/__init__.py
sdswart/pysts
f140072e064b59a7d8732e73d71fd812b6d292c5
[ "MIT" ]
null
null
null
pysts/notebook/report/__init__.py
sdswart/pysts
f140072e064b59a7d8732e73d71fd812b6d292c5
[ "MIT" ]
null
null
null
from .app import create_app, debug_view from .widget_utils import get_output_html, get_output_figure_widgets
36.333333
68
0.87156
5bb047c18236acf17d00a10e158287408cdfcf36
9,388
py
Python
pandora/model.py
mikekestemont/pandora
ecae769c8dac5cce563da114be923d22eec6656d
[ "MIT" ]
2
2016-02-19T10:23:17.000Z
2016-09-28T16:14:41.000Z
pandora/model.py
mikekestemont/pandora
ecae769c8dac5cce563da114be923d22eec6656d
[ "MIT" ]
6
2016-06-22T12:40:57.000Z
2018-04-16T08:39:52.000Z
pandora/model.py
mikekestemont/pandora
ecae769c8dac5cce563da114be923d22eec6656d
[ "MIT" ]
3
2016-01-10T10:24:53.000Z
2017-02-06T13:47:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from keras.models import Model from keras.layers.recurrent import LSTM from keras.layers.convolutional import Convolution1D from keras.layers import * from keras.layers.embeddings import Embedding from keras.optimizers import Adam from keras.objectives import categorical_c...
45.352657
105
0.524073
3e9699a94995597885e45f9f0c49ae30a206bd13
8,216
py
Python
keras_retinanet/utils/anchors.py
TimeLCJ/smaller-keras-retinanet
87e869c1e7e72e5f323c6392a914a552f6f7b529
[ "Apache-2.0" ]
null
null
null
keras_retinanet/utils/anchors.py
TimeLCJ/smaller-keras-retinanet
87e869c1e7e72e5f323c6392a914a552f6f7b529
[ "Apache-2.0" ]
null
null
null
keras_retinanet/utils/anchors.py
TimeLCJ/smaller-keras-retinanet
87e869c1e7e72e5f323c6392a914a552f6f7b529
[ "Apache-2.0" ]
null
null
null
""" Copyright 2017-2018 Fizyr (https://fizyr.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
31.968872
118
0.622201
5c199c25fbb82bbc8f8802880ab1d13782854282
2,383
py
Python
app/auth/views.py
Denniskamau/Cysect
88065a3086216efbf2f9e17678834afb28dcf7ff
[ "Apache-2.0" ]
1
2017-04-27T09:42:47.000Z
2017-04-27T09:42:47.000Z
app/auth/views.py
Denniskamau/Cysect
88065a3086216efbf2f9e17678834afb28dcf7ff
[ "Apache-2.0" ]
null
null
null
app/auth/views.py
Denniskamau/Cysect
88065a3086216efbf2f9e17678834afb28dcf7ff
[ "Apache-2.0" ]
null
null
null
from flask import flash, redirect, render_template, url_for from flask_login import login_required, login_user, logout_user from . import auth from forms import LoginForm, RegistrationForm from .. import db from ..models import Employee @auth.route('/register', methods=['GET', 'POST']) def register(): """ Han...
33.56338
77
0.63953
160feb1d8a11b4b30d42b028908e6d8f1fa5b5b7
95,193
py
Python
wandb/sdk/wandb_run.py
KristianSpurling/client
c1f6e4b1eb73c496707c756d6f9235b3009b9e25
[ "MIT" ]
1
2021-05-29T10:45:46.000Z
2021-05-29T10:45:46.000Z
wandb/sdk/wandb_run.py
KristianSpurling/client
c1f6e4b1eb73c496707c756d6f9235b3009b9e25
[ "MIT" ]
null
null
null
wandb/sdk/wandb_run.py
KristianSpurling/client
c1f6e4b1eb73c496707c756d6f9235b3009b9e25
[ "MIT" ]
null
null
null
# # -*- coding: utf-8 -*- from __future__ import print_function import atexit from datetime import timedelta import glob import json import logging import numbers import os import platform import sys import threading import time import traceback import click from six import iteritems, string_types from six.moves imp...
36.839396
171
0.576292
787b7bf7b2df3425e5a4ed89f51185f9b1cf2f55
1,819
py
Python
Server/app/models/account.py
DSM-Grape/Grape-Backend
3a7e3f2f15e3872ccbf6ef59775b50001c198a9d
[ "Apache-2.0" ]
3
2018-04-11T13:24:35.000Z
2018-09-18T13:32:02.000Z
Server/app/models/account.py
DSM-Grape/Grape-Backend
3a7e3f2f15e3872ccbf6ef59775b50001c198a9d
[ "Apache-2.0" ]
null
null
null
Server/app/models/account.py
DSM-Grape/Grape-Backend
3a7e3f2f15e3872ccbf6ef59775b50001c198a9d
[ "Apache-2.0" ]
null
null
null
from uuid import uuid4 from flask_jwt_extended import create_access_token, create_refresh_token from mongoengine import * class AccountModel(Document): meta = { 'collection': 'account' } id = StringField( primary_key=True ) # 서비스 자체 계정인 경우 이메일 # 연동 계정인 경우 해당 서비스에서 주는 ID ...
19.351064
72
0.60033
2a723eb84da3769f728ff6563402b326ca4b1ec7
10,709
py
Python
qd_ssd.py
amsword/ssd.pytorch
3740d7e51c519f95bb3b14da2544c4d7317cfea7
[ "MIT" ]
null
null
null
qd_ssd.py
amsword/ssd.pytorch
3740d7e51c519f95bb3b14da2544c4d7317cfea7
[ "MIT" ]
null
null
null
qd_ssd.py
amsword/ssd.pytorch
3740d7e51c519f95bb3b14da2544c4d7317cfea7
[ "MIT" ]
null
null
null
#from data import * from data_util.voc0712 import TSVDetection from utils.augmentations import SSDAugmentation from layers.modules import MultiBoxLoss from ssd import build_ssd import os import sys import time import torch from torch.autograd import Variable import torch.nn as nn import torch.optim as optim import torc...
34.323718
94
0.56093
badaa4f46a66deb3b7be0cceaa6268feb7118b9b
3,860
py
Python
electrum_spectrumcash/tests/test_x509.py
Spectrumcash/Spectrum-ElectromX-Client
1008c9844eb99e70372850f9bb81d6ded3e59396
[ "MIT" ]
null
null
null
electrum_spectrumcash/tests/test_x509.py
Spectrumcash/Spectrum-ElectromX-Client
1008c9844eb99e70372850f9bb81d6ded3e59396
[ "MIT" ]
2
2021-06-01T22:49:23.000Z
2021-11-15T17:47:55.000Z
electrum_spectrumcash/tests/test_x509.py
Spectrumcash/Spectrum-ElectrumX-Client
1008c9844eb99e70372850f9bb81d6ded3e59396
[ "MIT" ]
null
null
null
import unittest from electrum_spectrumcash.x509 import X509 class TestX509(unittest.TestCase): def test_generalizedtime(self): full = X509(b'0\x82\x05F0\x82\x03.\x02\t\x00\xfeV\xd6\xb5?\xb1j\xe40\r\x06\t*\x86H\x86\xf7\r\x01\x01\x0b\x05\x000d1\x0b0\t\x06\x03U\x04\x06\x13\x02US1\x130\x11\x06\x03U\x04\x08\x0c\...
551.428571
3,702
0.743782
1265f83803dbcd797b3ff5a1da3ac60236a913b1
173
py
Python
cla_frontend/apps/core/session_security/urls.py
farrepa/cla_frontend
a789ad96cf91daf755784e3a5ed11350a85bddf6
[ "MIT" ]
3
2018-02-19T09:50:06.000Z
2022-01-13T10:17:05.000Z
cla_frontend/apps/core/session_security/urls.py
farrepa/cla_frontend
a789ad96cf91daf755784e3a5ed11350a85bddf6
[ "MIT" ]
171
2015-01-02T09:27:37.000Z
2022-03-24T08:56:57.000Z
cla_frontend/apps/core/session_security/urls.py
farrepa/cla_frontend
a789ad96cf91daf755784e3a5ed11350a85bddf6
[ "MIT" ]
3
2019-03-14T08:31:47.000Z
2021-05-04T16:01:42.000Z
from django.conf.urls import patterns, url from .views import JsonPingView urlpatterns = patterns("", url("ping/$", JsonPingView.as_view(), name="session_security_ping"))
28.833333
95
0.763006
47b3756e39741b65cb1f2f776f3bda3d73f3e645
629
py
Python
setup.py
JackKuo-tw/TGmeetup
5422564ab9feb52ac4b46b13425dfc1e16f68ee6
[ "MIT" ]
146
2018-01-28T05:34:42.000Z
2022-03-28T08:38:42.000Z
setup.py
JackKuo-tw/TGmeetup
5422564ab9feb52ac4b46b13425dfc1e16f68ee6
[ "MIT" ]
76
2018-01-28T05:02:40.000Z
2020-02-02T05:02:55.000Z
setup.py
JackKuo-tw/TGmeetup
5422564ab9feb52ac4b46b13425dfc1e16f68ee6
[ "MIT" ]
42
2018-01-28T05:25:15.000Z
2021-08-11T07:14:23.000Z
import setuptools from distutils.core import setup entry_points = { 'console_scripts': [ 'tgmeetup = TGmeetup.tgmeetup:main' ] } setup( name='tgmeetup', packages=['TGmeetup', 'TGmeetup.libs', 'TGmeetup.libs.RegistrationAPI'], version='1.0.0', description='A collection set of technical groups i...
28.590909
102
0.704293
ce5a7bddee547fb3c1fa261fa905fa389557e425
8,578
py
Python
cnn/train_search_perNodePruning.py
SivanDoveh/darts
56604a823f5358f5ebb3573b59bc63cf329ea99b
[ "Apache-2.0" ]
null
null
null
cnn/train_search_perNodePruning.py
SivanDoveh/darts
56604a823f5358f5ebb3573b59bc63cf329ea99b
[ "Apache-2.0" ]
null
null
null
cnn/train_search_perNodePruning.py
SivanDoveh/darts
56604a823f5358f5ebb3573b59bc63cf329ea99b
[ "Apache-2.0" ]
null
null
null
import os import sys import time import glob import numpy as np import torch import utils import logging import argparse import torch.nn as nn import torch.utils import torch.nn.functional as F import torchvision.datasets as dset import torch.backends.cudnn as cudnn from torch.autograd import Variable from model_searc...
40.847619
116
0.688622
6e1a8f516b22615e2f8a84522f423e650648a2bb
6,187
py
Python
tianshou/policy/modelfree/sac.py
MA-JIE/tianshou
6237cc0d52ecc892baa98d49dfe923e2c484721f
[ "MIT" ]
2
2020-05-26T17:04:57.000Z
2020-05-31T15:33:24.000Z
tianshou/policy/modelfree/sac.py
MA-JIE/tianshou
6237cc0d52ecc892baa98d49dfe923e2c484721f
[ "MIT" ]
null
null
null
tianshou/policy/modelfree/sac.py
MA-JIE/tianshou
6237cc0d52ecc892baa98d49dfe923e2c484721f
[ "MIT" ]
null
null
null
import torch import numpy as np from copy import deepcopy import torch.nn.functional as F from typing import Dict, Tuple, Union, Optional from tianshou.data import Batch from tianshou.policy import DDPGPolicy from tianshou.policy.utils import DiagGaussian class SACPolicy(DDPGPolicy): """Implementation of Soft Ac...
40.97351
78
0.599483
723aa239017011a9d4fbc1811262d71464674a18
602
py
Python
web_chat/migrations/0007_auto_20211125_1732.py
renmarin/Web-Chat
343424eaa20e16bd41077b525dbeb1d60cf86d7b
[ "MIT" ]
null
null
null
web_chat/migrations/0007_auto_20211125_1732.py
renmarin/Web-Chat
343424eaa20e16bd41077b525dbeb1d60cf86d7b
[ "MIT" ]
null
null
null
web_chat/migrations/0007_auto_20211125_1732.py
renmarin/Web-Chat
343424eaa20e16bd41077b525dbeb1d60cf86d7b
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-25 15:32 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('web_chat', '0006_auto_20211125_1454'), ] operations = [ migrations.AlterField( model_name='chat', na...
24.08
99
0.589701
a95cd3c1a209ba959d857a4ac51f6fc516338897
1,609
py
Python
ucb_cs61A/lab/lab09/tests/composed.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
null
null
null
ucb_cs61A/lab/lab09/tests/composed.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2017-07-31T08:15:26.000Z
2017-07-31T08:15:26.000Z
ucb_cs61A/lab/lab09/tests/composed.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2019-10-06T16:52:31.000Z
2019-10-06T16:52:31.000Z
test = { 'name': 'composed', 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" scm> ((composed add-one add-one) 2) 4 """, 'hidden': False, 'locked': False }, { 'code': r""" scm> ((composed multiply...
21.743243
72
0.3555