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
ed0b14431574b5a7ba0b7e48c2aa2880eb28eaa7
2,125
py
Python
xdeep/xlocal/gradient/backprop/base.py
Sm0ckingBird/xdeep
01a877122a17121c41ebc9bf81faa7c7d61e61bb
[ "MIT" ]
38
2019-09-05T21:29:02.000Z
2022-03-12T14:03:52.000Z
xdeep/xlocal/gradient/backprop/base.py
DATA-Hu-Lab/xpytorch
c2f0323b0ec55d684ee24dbe35a6046fe0074663
[ "MIT" ]
4
2019-11-19T02:51:30.000Z
2020-06-30T13:29:25.000Z
xdeep/xlocal/gradient/backprop/base.py
DATA-Hu-Lab/xpytorch
c2f0323b0ec55d684ee24dbe35a6046fe0074663
[ "MIT" ]
8
2019-10-15T02:05:13.000Z
2021-06-16T05:43:15.000Z
import torch import torch.nn as nn class BaseProp(object): """ Base class for backpropagation. """ def __init__(self, model): """Init # Arguments: model: torchvision.models. A pretrained model. handle: list. Handle list that register a hook function. ...
32.19697
86
0.616941
294723ed68f040e1c1271821296fe459d288e097
1,282
py
Python
main2.py
jonesnil/E01b-Smiles
c06b220e4cc45d02206cbf9b5386864713497f18
[ "MIT" ]
null
null
null
main2.py
jonesnil/E01b-Smiles
c06b220e4cc45d02206cbf9b5386864713497f18
[ "MIT" ]
null
null
null
main2.py
jonesnil/E01b-Smiles
c06b220e4cc45d02206cbf9b5386864713497f18
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import utils, open_color, arcade utils.check_version((3,7)) # Open the window. Set the window title and dimensions (width and height) arcade.open_window(800, 600, "Smiley Face Example") arcade.set_background_color(open_color.white) # Start the render process. This must be done before any drawi...
33.736842
86
0.763651
8067fb9214a72acab777648d3813d29085aea8cb
368
py
Python
python/using_sqlalchemy01/main.py
garyelephant/snippets
df2fd6b71603a16e1cc5338f10ad55451378cfae
[ "MIT" ]
1
2017-12-19T05:36:49.000Z
2017-12-19T05:36:49.000Z
python/using_sqlalchemy01/main.py
garyelephant/snippets
df2fd6b71603a16e1cc5338f10ad55451378cfae
[ "MIT" ]
null
null
null
python/using_sqlalchemy01/main.py
garyelephant/snippets
df2fd6b71603a16e1cc5338f10ad55451378cfae
[ "MIT" ]
null
null
null
from .models import User from .database import session_scope if __name__ == '__main__': with session_scope() as session: users = session.query( User ).order_by( User.id ) # Remove all object instances from this Session to make them available to accessed by outside users.expunge_all...
28.307692
101
0.652174
27a703d0eda1e91c7ccf839f6ed363b573dbd20d
55,112
py
Python
rollbar/__init__.py
mikhail-iurkov/pyrollbar
968bb51fb320302b0e309a3babc71de29a51933e
[ "MIT" ]
177
2015-02-02T19:22:15.000Z
2022-01-24T07:20:04.000Z
rollbar/__init__.py
mikhail-iurkov/pyrollbar
968bb51fb320302b0e309a3babc71de29a51933e
[ "MIT" ]
293
2015-01-04T23:24:56.000Z
2022-02-14T18:23:02.000Z
rollbar/__init__.py
mikhail-iurkov/pyrollbar
968bb51fb320302b0e309a3babc71de29a51933e
[ "MIT" ]
121
2015-02-06T21:43:51.000Z
2022-02-14T11:13:33.000Z
from __future__ import absolute_import from __future__ import unicode_literals import copy import functools import inspect import json import logging import os import socket import sys import threading import time import traceback import types import uuid import wsgiref.util import warnings import requests import six...
31.154324
126
0.634544
a724b73e257ab7854ee3917187e5b5b3c4891657
4,427
py
Python
caserec/recommenders/rating_prediction/random_rec.py
caserec2018/CaseRecommender
1b63fe79aa26786c99f35e6b8f0a0dd9e591811b
[ "MIT" ]
16
2018-09-19T07:29:24.000Z
2022-03-30T07:32:36.000Z
caserec/recommenders/rating_prediction/random_rec.py
caserec2018/CaseRecommender
1b63fe79aa26786c99f35e6b8f0a0dd9e591811b
[ "MIT" ]
1
2018-09-10T17:43:56.000Z
2018-09-10T17:43:56.000Z
caserec/recommenders/rating_prediction/random_rec.py
caserec2018/CaseRecommender
1b63fe79aa26786c99f35e6b8f0a0dd9e591811b
[ "MIT" ]
2
2019-07-11T10:13:24.000Z
2020-03-12T10:09:39.000Z
# coding=utf-8 """" Random Collaborative Filtering Recommender [Rating Prediction (Rating)] Random predicts a user’s ratings based on random distributions of rates. """ # © 2018. Case Recommender (MIT License) import numpy as np from caserec.recommenders.rating_prediction.base_rating_predict...
35.701613
124
0.626835
68c54692a4fd74feda292830452318117449c8c5
2,110
py
Python
src/android/toga_android/widgets/label.py
simonw/toga
8b52479c5d9960c5f3af960b5837ecc467c0bc95
[ "BSD-3-Clause" ]
3
2020-12-09T02:13:55.000Z
2021-02-18T00:41:36.000Z
src/android/toga_android/widgets/label.py
simonw/toga
8b52479c5d9960c5f3af960b5837ecc467c0bc95
[ "BSD-3-Clause" ]
1
2021-05-23T04:04:58.000Z
2021-05-25T22:08:14.000Z
src/android/toga_android/widgets/label.py
simonw/toga
8b52479c5d9960c5f3af960b5837ecc467c0bc95
[ "BSD-3-Clause" ]
null
null
null
from travertino.size import at_least from ..libs.android_widgets import Gravity, TextView, TypedValue, View__MeasureSpec from .base import Widget, align class Label(Widget): def create(self): self.native = TextView(self._native_activity) self.native.setSingleLine() def set_text(self, value):...
40.576923
96
0.670616
123405d96fd9b955610f3c27e0bb1fd85ccd05a3
796
py
Python
examples/job.py
aerospaceresearch/the-ground-segment-api
4dac2d7a744b64f9061868cab02e3a594ded1b5b
[ "MIT" ]
1
2021-06-08T03:44:28.000Z
2021-06-08T03:44:28.000Z
examples/job.py
aerospaceresearch/the-ground-segment-api
4dac2d7a744b64f9061868cab02e3a594ded1b5b
[ "MIT" ]
null
null
null
examples/job.py
aerospaceresearch/the-ground-segment-api
4dac2d7a744b64f9061868cab02e3a594ded1b5b
[ "MIT" ]
1
2021-05-15T02:27:54.000Z
2021-05-15T02:27:54.000Z
import requests ## requirements: python (tested windows, linux) ## modify: NODE_UUID = "f5dba253-c0ea-475e-9f8b-3733168dc42e" NODE_TOKEN = "1e4478a5b0f7d622a5d4e60ee694fc7188c649d5" url = 'http://localhost:8023/api/v1/nodes/' + NODE_UUID + '/job/' headers = {'Authorization': 'Token ' + NODE_TOKEN} payload = {'start'...
30.615385
65
0.55402
ac4e7f60eec2190e6b08cf941cbd432caae10545
2,701
py
Python
colearning/tournament.py
A-Malone/genetic-neural-nets
e8284cc820e6f67a52b4064d7e7320eb29629791
[ "MIT" ]
null
null
null
colearning/tournament.py
A-Malone/genetic-neural-nets
e8284cc820e6f67a52b4064d7e7320eb29629791
[ "MIT" ]
null
null
null
colearning/tournament.py
A-Malone/genetic-neural-nets
e8284cc820e6f67a52b4064d7e7320eb29629791
[ "MIT" ]
null
null
null
import itertools import numpy as np from colearning.game import CoopGame class TeamTournament(object): """ Takes a set of populations of neural nets and has them compete in a tournament to determine fitness """ results = None def __init__(self, game_format): self.format = game_format...
32.154762
107
0.548686
6ebb6f79526585cde2ac3c8a1ac33ed0d6bebeb9
1,144
py
Python
Wikipediapagescrapper/section.py
VisheshBansal/Wikipedia-scraper
3146c6f79fa82d5596bc9d6c300fb3caeb3403d9
[ "MIT" ]
null
null
null
Wikipediapagescrapper/section.py
VisheshBansal/Wikipedia-scraper
3146c6f79fa82d5596bc9d6c300fb3caeb3403d9
[ "MIT" ]
null
null
null
Wikipediapagescrapper/section.py
VisheshBansal/Wikipedia-scraper
3146c6f79fa82d5596bc9d6c300fb3caeb3403d9
[ "MIT" ]
null
null
null
class Section (): ''' Defines how texts should be started ''' def __init__(self,name,parent,headinglevel): self.name = name self.parent= parent self.headinglevel = headinglevel self.text = "" self.section_names= [] self.sections = dict() return None ...
33.647059
108
0.601399
fc45ca845742ad126d7631c5b845b06133f0da98
235
py
Python
cpdb/activity_log/constants.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
25
2018-07-20T22:31:40.000Z
2021-07-15T16:58:41.000Z
cpdb/activity_log/constants.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
13
2018-06-18T23:08:47.000Z
2022-02-10T07:38:25.000Z
cpdb/activity_log/constants.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
6
2018-05-17T21:59:43.000Z
2020-11-17T00:30:26.000Z
ADD_TAG_TO_DOCUMENT = 'ADD_TAG_TO_DOCUMENT' REMOVE_TAG_FROM_DOCUMENT = 'REMOVE_TAG_FROM_DOCUMENT' ACTION_TYPE_CHOICES = ( (ADD_TAG_TO_DOCUMENT, 'Add tag to document'), (REMOVE_TAG_FROM_DOCUMENT, 'Remove tag from document'), )
29.375
59
0.787234
421897fec254625a332f4f4c98d9da6db2c517dd
2,493
py
Python
diagram_autobuild/tool.py
momijiame/diagram-autobuild
740ec9521dcb012484dc7155784a34f088fa667e
[ "Apache-2.0" ]
7
2015-12-12T02:38:55.000Z
2021-05-08T20:15:28.000Z
diagram_autobuild/tool.py
momijiame/diagram-autobuild
740ec9521dcb012484dc7155784a34f088fa667e
[ "Apache-2.0" ]
null
null
null
diagram_autobuild/tool.py
momijiame/diagram-autobuild
740ec9521dcb012484dc7155784a34f088fa667e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import abc import os from future.utils import with_metaclass class BuildCommand(with_metaclass(abc.ABCMeta)): def __init__(self, src_file, dst_dir, opts=None): self.src_file = src_file self.dst_dir = dst_dir self.opts = opts or '' @abc....
20.434426
75
0.63217
9f31c5ce4982303bdadbb41c4c30c411d5b3376c
3,933
py
Python
experiments/exp_adult_2and4_PGRR_gr.py
Leaflowave/PrivCQ
8acc6ad0888793fb7fa190a1bd5b4f9eb1140514
[ "MIT" ]
null
null
null
experiments/exp_adult_2and4_PGRR_gr.py
Leaflowave/PrivCQ
8acc6ad0888793fb7fa190a1bd5b4f9eb1140514
[ "MIT" ]
null
null
null
experiments/exp_adult_2and4_PGRR_gr.py
Leaflowave/PrivCQ
8acc6ad0888793fb7fa190a1bd5b4f9eb1140514
[ "MIT" ]
null
null
null
import group_table4PGRR as freq import linecache import random def query_on_adult_dim1(tablePath,tableInterval,queryPath,trueOraclePath,aggregation="count"): #adult_1 range query 2th & 4th queriesStr=linecache.getline(queryPath,1) queries=eval(queriesStr) answer=[0]*500 trueOracleStr=...
41.840426
133
0.570557
2d4f7cbe53be4b73db3793b4dbee8b2d37a110ce
8,435
py
Python
https_everywhere/_fixme.py
KOLANICH-tools/https-everywhere-py
b25084a2edd875689e4da8876cde611dc7f61a7c
[ "Apache-2.0" ]
7
2020-02-26T00:40:44.000Z
2022-02-11T01:24:55.000Z
https_everywhere/_fixme.py
KOLANICH-tools/https-everywhere-py
b25084a2edd875689e4da8876cde611dc7f61a7c
[ "Apache-2.0" ]
39
2020-02-25T18:04:22.000Z
2021-04-06T09:57:57.000Z
https_everywhere/_fixme.py
KOLANICH-tools/https-everywhere-py
b25084a2edd875689e4da8876cde611dc7f61a7c
[ "Apache-2.0" ]
3
2021-04-06T09:50:42.000Z
2021-12-11T22:51:27.000Z
# These cause basic assumptions needed very early in analysis to fail, # or bad data not yet detected and rejected. # Entries here may also need an entry in _FIXME_INCORRECT_TEST_URLS below # to account for the rejection. _FIXME_REJECT_PATTERNS = [ r"^http://demo\.neobookings\.com/", r"^http://www\.svenskaspel\...
31.356877
88
0.51476
2d66caec973809697408016455d552929baaa9bd
485
py
Python
tests/commands/ddtrace_run_sitecustomize.py
tophatmonocle/dd-trace-py
7db12f1c398c07cd5baf91c571aed672dbb6496d
[ "BSD-3-Clause" ]
null
null
null
tests/commands/ddtrace_run_sitecustomize.py
tophatmonocle/dd-trace-py
7db12f1c398c07cd5baf91c571aed672dbb6496d
[ "BSD-3-Clause" ]
null
null
null
tests/commands/ddtrace_run_sitecustomize.py
tophatmonocle/dd-trace-py
7db12f1c398c07cd5baf91c571aed672dbb6496d
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import sys from ddtrace import tracer from nose.tools import ok_ if __name__ == '__main__': # detect if `-S` is used suppress = len(sys.argv) == 2 and sys.argv[1] is '-S' if suppress: ok_('sitecustomize' not in sys.modules) else: ok_('sitecustomiz...
24.25
57
0.686598
503bc236889177b4febbc9dc5c8cb8c0eaf2392e
872
py
Python
tests/unit/modules/test_uwsgi.py
velom/salt
f5d4334178c50d0dfcd205d5a7fb9cfb27fd369e
[ "Apache-2.0" ]
1
2021-04-05T19:46:35.000Z
2021-04-05T19:46:35.000Z
tests/unit/modules/test_uwsgi.py
dv-trading/salt
f5d4334178c50d0dfcd205d5a7fb9cfb27fd369e
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/test_uwsgi.py
dv-trading/salt
f5d4334178c50d0dfcd205d5a7fb9cfb27fd369e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Import Python libs from __future__ import absolute_import # Import Salt Testing libs from tests.support.unit import skipIf, TestCase from tests.support.mock import NO_MOCK, NO_MOCK_REASON, MagicMock, Mock, patch # Import salt libs from salt.modules import uwsgi uwsgi.__salt__ = {} @skipI...
30.068966
78
0.649083
61903541e53b6307eec4862cb9a17350f221877f
2,244
py
Python
py 1/Assignment1/src/Solver.py
JamesSatherley/Semester1-2021
55e2815530b8ca941670a07b0668d06c3cabd5d9
[ "MIT" ]
null
null
null
py 1/Assignment1/src/Solver.py
JamesSatherley/Semester1-2021
55e2815530b8ca941670a07b0668d06c3cabd5d9
[ "MIT" ]
null
null
null
py 1/Assignment1/src/Solver.py
JamesSatherley/Semester1-2021
55e2815530b8ca941670a07b0668d06c3cabd5d9
[ "MIT" ]
null
null
null
import pygame, Sudoku_IO def solve(snapshot, screen): pygame.time.delay(20) Sudoku_IO.displayPuzzle(snapshot, screen) pygame.display.flip() if isComplete(snapshot): # tests if tree is complete (base case) return True else: clone = snapshot.clone() unsolved = clone.unsolvedC...
46.75
258
0.672014
0f9b044e30bde9609fe7009231ae22952067b23f
440
py
Python
cooar/utilities/dl_utils.py
chrisWhyTea/cooar-cli
32c28acf94150c2788ec928150e7967d7d190553
[ "BSD-3-Clause" ]
null
null
null
cooar/utilities/dl_utils.py
chrisWhyTea/cooar-cli
32c28acf94150c2788ec928150e7967d7d190553
[ "BSD-3-Clause" ]
23
2020-02-02T21:36:12.000Z
2020-06-17T09:16:41.000Z
cooar/utilities/dl_utils.py
chrisWhyTea/cooar
32c28acf94150c2788ec928150e7967d7d190553
[ "BSD-3-Clause" ]
null
null
null
from cooar.file import File def download(session, file: File, **kwargs): with session.get(url=file.url, stream=True) as r: r.raise_for_status() with open(file.absolute_file_download_path, "wb") as f: for chunk in r.iter_content(chunk_size=8192): if chunk: ...
33.846154
68
0.620455
f2a501578e32609f0fd9d62c52e71a5567c5511f
8,633
py
Python
docs/source/conf.py
cropsinsilico/yggdrasil
466a4f77605a6f461d57ef7b165a6db7eec4d1fd
[ "BSD-3-Clause" ]
22
2019-02-05T15:20:07.000Z
2022-02-25T09:00:40.000Z
docs/source/conf.py
cropsinsilico/yggdrasil
466a4f77605a6f461d57ef7b165a6db7eec4d1fd
[ "BSD-3-Clause" ]
48
2019-02-15T20:41:24.000Z
2022-03-16T20:52:02.000Z
docs/source/conf.py
cropsinsilico/yggdrasil
466a4f77605a6f461d57ef7b165a6db7eec4d1fd
[ "BSD-3-Clause" ]
16
2019-04-27T03:36:40.000Z
2021-12-02T09:47:06.000Z
# -*- coding: utf-8 -*- # # yggdrasil documentation build configuration file, created by # sphinx-quickstart on Wed Sep 6 12:03:29 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # #...
32.454887
80
0.675431
4518151d70491d1bbce48444de8831ad575686cc
21,751
py
Python
world/fashion/models.py
nirvana-game/arxcode
4d22c1be79727df9fde3ea5b73e9a91083dea66f
[ "MIT" ]
null
null
null
world/fashion/models.py
nirvana-game/arxcode
4d22c1be79727df9fde3ea5b73e9a91083dea66f
[ "MIT" ]
null
null
null
world/fashion/models.py
nirvana-game/arxcode
4d22c1be79727df9fde3ea5b73e9a91083dea66f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The Fashion app is for letting players have a mechanical benefit for fashion. Without a strong mechanical benefit for fashion, players who don't care about it will tend to protest spending money on it. Fashion is the primary mechanic for organizations gaining prestige, which influences their...
36.991497
117
0.612432
1152fce01096ebeb99bf4b104b381123bbbc7a06
305
py
Python
server.py
huangsongyan/pythondemo
6279a2a39a34c4d708140c2e7653a127c444ec1b
[ "Apache-2.0" ]
null
null
null
server.py
huangsongyan/pythondemo
6279a2a39a34c4d708140c2e7653a127c444ec1b
[ "Apache-2.0" ]
null
null
null
server.py
huangsongyan/pythondemo
6279a2a39a34c4d708140c2e7653a127c444ec1b
[ "Apache-2.0" ]
null
null
null
#encoding:utf-8 # server.py # 从wsgiref模块导入: from wsgiref.simple_server import make_server # 导入我们自己编写的application函数: from hello import application # 创建一个服务器,IP地址为空,端口是8000,处理函数是application: httpd = make_server('',8001, application) print "Serving HTTP on port 8000..." # 开始监听HTTP请求: httpd.serve_forever()
23.461538
45
0.793443
ea894194e784c445c6225f23840cff6297a3f18d
70
py
Python
python/pybool/examples/__init__.py
JohnReid/pybool
7ee0ec1b669ec0259405d3c120ec3fc2827ba397
[ "MIT" ]
5
2016-01-17T15:50:08.000Z
2021-05-13T09:10:41.000Z
python/pybool/examples/__init__.py
JohnReid/pybool
7ee0ec1b669ec0259405d3c120ec3fc2827ba397
[ "MIT" ]
1
2016-12-16T03:37:01.000Z
2016-12-16T08:02:52.000Z
python/pybool/examples/__init__.py
JohnReid/pybool
7ee0ec1b669ec0259405d3c120ec3fc2827ba397
[ "MIT" ]
2
2016-05-30T17:55:41.000Z
2017-12-17T21:02:59.000Z
# # Copyright John Reid 2010 # """ Examples for pybool package. """
7.777778
28
0.642857
b44b9ad53e3712b2d639408cf5807bfb5afeec4c
6,695
py
Python
UMLRT2Kiltera_MM/Properties/Multiplicity/Himesis/HListen1orMoreListenBranchPart1_CompleteLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
UMLRT2Kiltera_MM/Properties/Multiplicity/Himesis/HListen1orMoreListenBranchPart1_CompleteLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
UMLRT2Kiltera_MM/Properties/Multiplicity/Himesis/HListen1orMoreListenBranchPart1_CompleteLHS.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
from core.himesis import Himesis, HimesisPreConditionPatternLHS import cPickle as pickle from uuid import UUID class HListen1orMoreListenBranchPart1_CompleteLHS(HimesisPreConditionPatternLHS): def __init__(self): """ Creates the himesis graph representing the AToM3 model HListen1orMoreListenBranc...
46.172414
148
0.534279
818153c3d76d0f3efebe621388056edb728f4d78
5,275
py
Python
test.py
motion-workshop/shadow-fileio-python
48edb8764a109a425281b62c49385321de06bc32
[ "BSD-2-Clause" ]
null
null
null
test.py
motion-workshop/shadow-fileio-python
48edb8764a109a425281b62c49385321de06bc32
[ "BSD-2-Clause" ]
null
null
null
test.py
motion-workshop/shadow-fileio-python
48edb8764a109a425281b62c49385321de06bc32
[ "BSD-2-Clause" ]
null
null
null
# # Copyright (c) 2021, Motion Workshop # 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 a...
37.678571
78
0.649479
5352b02e408fadab99c81c5baff25958cc0319ac
3,319
py
Python
utils/print_graph.py
mjasperse/symbiflow-arch-defs
ff3aedec45c0f886260b34ff5288482a89411d13
[ "ISC" ]
null
null
null
utils/print_graph.py
mjasperse/symbiflow-arch-defs
ff3aedec45c0f886260b34ff5288482a89411d13
[ "ISC" ]
null
null
null
utils/print_graph.py
mjasperse/symbiflow-arch-defs
ff3aedec45c0f886260b34ff5288482a89411d13
[ "ISC" ]
null
null
null
#!/usr/bin/env python3 import lib.rr_graph.graph as graph def print_block_types(g): '''Sequentially list block types''' bg = g.block_grid for type_id, bt in bg.block_types._ids.items(): print( "{:4} ".format(type_id), "{:40s}".format(bt.to_string()), bt.to_string(extra=T...
26.133858
78
0.542332
66b0b419f54a60d8d8e69ac453f5783c62f7238e
16,871
py
Python
ryu/controller/network.py
samrussell/ryu
a62aa7ecc6c0372cc2b633140005dc5e85ea6129
[ "Apache-2.0" ]
2
2015-12-07T06:55:31.000Z
2017-05-08T06:18:56.000Z
ryu/controller/network.py
samrussell/ryu
a62aa7ecc6c0372cc2b633140005dc5e85ea6129
[ "Apache-2.0" ]
null
null
null
ryu/controller/network.py
samrussell/ryu
a62aa7ecc6c0372cc2b633140005dc5e85ea6129
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2011 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2011 Isaku Yamahata <yamahata at valinux co jp> # # 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://...
35.517895
79
0.638907
4187a80380274dcb5f1e5109173e959868ce31f5
12,672
py
Python
ampligraph/utils/model_utils.py
ojasviyadav/AmpliGraph
07ce70ff9e30812ac8f4a34d245d1d5decec27f7
[ "Apache-2.0" ]
null
null
null
ampligraph/utils/model_utils.py
ojasviyadav/AmpliGraph
07ce70ff9e30812ac8f4a34d245d1d5decec27f7
[ "Apache-2.0" ]
null
null
null
ampligraph/utils/model_utils.py
ojasviyadav/AmpliGraph
07ce70ff9e30812ac8f4a34d245d1d5decec27f7
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The AmpliGraph Authors. All Rights Reserved. # # This file is Licensed under the Apache License, Version 2.0. # A copy of the Licence is available in LICENCE, or at: # # http://www.apache.org/licenses/LICENSE-2.0 # import os import pickle import importlib from time import gmtime, strftime import gl...
36.518732
116
0.618134
176348a04e7d475cf52d60eeb73d5f0a6fb85890
165,623
py
Python
catkin_ws/src/joystick_drivers/wiimote/src/wiimote/stats.py
RMI-NITT/PEPPER-SLAM_Navigation_Bot
4a00786cdac1ae25328daf2a896699f303f2afef
[ "MIT" ]
1
2021-11-22T21:30:45.000Z
2021-11-22T21:30:45.000Z
catkin_ws/src/joystick_drivers/wiimote/src/wiimote/stats.py
svdeepak99/PEPPER-SLAM_Navigation_Bot
49bfcc08566789a82168800199c8a0835eab7b71
[ "MIT" ]
null
null
null
catkin_ws/src/joystick_drivers/wiimote/src/wiimote/stats.py
svdeepak99/PEPPER-SLAM_Navigation_Bot
49bfcc08566789a82168800199c8a0835eab7b71
[ "MIT" ]
3
2021-04-08T17:13:22.000Z
2021-12-12T15:55:54.000Z
# Copyright (c) 1999-2007 Gary Strangman; All Rights Reserved. # # 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, m...
36.609859
178
0.568128
3238feed775dcc6acf445b5be51e111c56d291ed
20,104
py
Python
model.py
xiaoleiy/otaku-yy
0660ab003f6ea86944d22be2a2ce73b146cd7dfa
[ "MIT" ]
1
2019-01-09T19:19:17.000Z
2019-01-09T19:19:17.000Z
model.py
xiaoleiy/otaku-yy
0660ab003f6ea86944d22be2a2ce73b146cd7dfa
[ "MIT" ]
null
null
null
model.py
xiaoleiy/otaku-yy
0660ab003f6ea86944d22be2a2ce73b146cd7dfa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os,logging from google.appengine.api import users from google.appengine.ext import db from google.appengine.ext.db import Model as DBModel from google.appengine.api import memcache from google.appengine.api import mail from google.appengine.api import urlfetch from datetime impo...
31.56044
144
0.593514
7bd8f7e6d4605c484a52fc49f4618e8a3cf5a9d7
7,692
py
Python
use_python_connect_mySql_Query.py
escha2019/SQL_Related
b1feea99681fe176695e244c68b889fc0bf1dece
[ "BSD-3-Clause" ]
null
null
null
use_python_connect_mySql_Query.py
escha2019/SQL_Related
b1feea99681fe176695e244c68b889fc0bf1dece
[ "BSD-3-Clause" ]
null
null
null
use_python_connect_mySql_Query.py
escha2019/SQL_Related
b1feea99681fe176695e244c68b889fc0bf1dece
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import mysql.connector import pandas as pd # create connection cnx = mysql.connector.connect(user='user_name', password='password_here', host='ip_here', database='db_name') conn = cnx.cursor() # In[2]: # See all 13 ...
39.649485
125
0.658216
cb1cbf4f74007fb6e2ece5c2a27227271d099b28
2,636
py
Python
sdk/python/pulumi_azure_native/network/v20191201/get_active_sessions.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20191201/get_active_sessions.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20191201/get_active_sessions.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
32.95
143
0.675645
fcc3d48f12a0b3b4d1abc1abfae55dd4233e5a73
20,960
py
Python
relativity/relativity.py
thorwhalen/relativity
28e80d6d76f767a01699f2711f9677b960e2b86c
[ "MIT" ]
1
2022-01-19T13:14:39.000Z
2022-01-19T13:14:39.000Z
relativity/relativity.py
thorwhalen/relativity
28e80d6d76f767a01699f2711f9677b960e2b86c
[ "MIT" ]
null
null
null
relativity/relativity.py
thorwhalen/relativity
28e80d6d76f767a01699f2711f9677b960e2b86c
[ "MIT" ]
null
null
null
class _Tmp(object): __slots__ = ('inv', 'data', 'listeners') # just a little trick to avoid __init__ # TODO: fill out the rest of dict API and inherit from dict class M2M(object): """ a dict-like entity that represents a many-to-many relationship between two groups of objects behaves like a d...
33.536
102
0.548044
2cb46a481a02f8bc826cfff26118c7611345dd83
3,755
py
Python
gui_client/socket_client.py
zypangpang/mmdict_client
aac7fcba21cfbf40a949ad5c121a9b5bd43b0095
[ "Apache-2.0" ]
2
2020-08-30T07:12:38.000Z
2020-09-08T02:01:31.000Z
gui_client/socket_client.py
zypangpang/mmdict_client
aac7fcba21cfbf40a949ad5c121a9b5bd43b0095
[ "Apache-2.0" ]
4
2020-09-13T15:00:16.000Z
2020-09-17T13:07:18.000Z
gui_client/socket_client.py
zypangpang/mmdict_client
aac7fcba21cfbf40a949ad5c121a9b5bd43b0095
[ "Apache-2.0" ]
2
2020-08-30T07:40:43.000Z
2020-09-12T18:22:47.000Z
import socket,json,constants from bs4 import BeautifulSoup from constants import FRONT_END from constants import configs class SocketClient(): front_end=FRONT_END.QTWEBENGINE @classmethod def __request(cls,data): host,_=configs.get_dict_server() if host=='unix': return cls.__r...
30.778689
116
0.587483
b1e58c77f1a86693aedd2c17e24060bc1409b7e2
7,281
py
Python
graphs.py
andrewlavaia/Traffic-Simulator
39c21e94ff3026954f1577a8f9e70c6d605cb286
[ "MIT" ]
null
null
null
graphs.py
andrewlavaia/Traffic-Simulator
39c21e94ff3026954f1577a8f9e70c6d605cb286
[ "MIT" ]
null
null
null
graphs.py
andrewlavaia/Traffic-Simulator
39c21e94ff3026954f1577a8f9e70c6d605cb286
[ "MIT" ]
null
null
null
import math import heapq import random import copy import overpy import file_utils import math_utils class Graph: def __init__(self): self.vertices = {} # vertex_id: Vertex self.vertex_cnt = 0 self.edge_cnt = 0 def __repr__(self): ret = "Number of vertices: " + str(self.vert...
35.004808
96
0.591402
6e632829e815f5f7c4f661d6e66118ae74802571
8,547
py
Python
authors/apps/articles/tests/test_share_articles.py
andela/ah-alpha
dbc038c9a11362a314c258a80c4a133d11ff1012
[ "BSD-3-Clause" ]
1
2019-03-18T08:24:37.000Z
2019-03-18T08:24:37.000Z
authors/apps/articles/tests/test_share_articles.py
andela/ah-alpha
dbc038c9a11362a314c258a80c4a133d11ff1012
[ "BSD-3-Clause" ]
39
2019-01-08T12:12:57.000Z
2022-03-11T23:39:18.000Z
authors/apps/articles/tests/test_share_articles.py
jamesbeamie/bolt-J
1824afd73bfba708f0e56fbd7cbb8d7521f06a1a
[ "BSD-3-Clause" ]
2
2019-02-04T08:36:44.000Z
2019-03-05T19:59:44.000Z
from django.urls import reverse from rest_framework import status from django.test import TestCase, Client import json from rest_framework.authtoken.models import Token from ..messages import error_msgs, success_msg from authors.apps.articles.models import Article from authors.apps.authentication.models import User fro...
37.486842
76
0.608401
2ef66b3cd65ae485e57a76a66d608a53a26fcc81
10,808
py
Python
fastfold/model/fastnn/triangle.py
hpcaitech/FastFold
a65d5009279ef84c1518081344db5c02213c387a
[ "Apache-2.0" ]
303
2022-03-03T01:59:47.000Z
2022-03-31T07:46:42.000Z
fastfold/model/fastnn/triangle.py
hpcaitech/FastFold
a65d5009279ef84c1518081344db5c02213c387a
[ "Apache-2.0" ]
6
2022-03-03T22:17:03.000Z
2022-03-17T06:09:11.000Z
fastfold/model/fastnn/triangle.py
hpcaitech/FastFold
a65d5009279ef84c1518081344db5c02213c387a
[ "Apache-2.0" ]
35
2022-03-03T01:58:56.000Z
2022-03-29T21:21:06.000Z
from fastfold.distributed.comm_async import gather_async import torch import torch.nn as nn from fastfold.model.fastnn.kernel import LayerNorm from fastfold.distributed.comm import col_to_row, row_to_col, scatter from fastfold.model.fastnn.kernel import bias_dropout_add, bias_ele_dropout_residual from fastfold.model.f...
43.232
98
0.551443
c376b81ff4922b244b15b1ab5686c5c8a9cef01b
15,221
py
Python
isi_sdk_8_2_2/isi_sdk_8_2_2/models/result_directories_dir_usage_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_2/isi_sdk_8_2_2/models/result_directories_dir_usage_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_2/isi_sdk_8_2_2/models/result_directories_dir_usage_extended.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 9 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class ResultDirectoriesDirUsageE...
37.398034
197
0.635241
ed5de0a265b65fb7a49046cb33e8a7920012f2b8
10,224
py
Python
deep_lynx/models/create_manual_import.py
idaholab/Deep-Lynx-Python-Package
99927cc877eba8e2ee396feec807da1c48c64893
[ "MIT" ]
3
2021-06-16T20:34:41.000Z
2021-06-16T23:54:36.000Z
deep_lynx/models/create_manual_import.py
idaholab/Deep-Lynx-Python-Package
99927cc877eba8e2ee396feec807da1c48c64893
[ "MIT" ]
null
null
null
deep_lynx/models/create_manual_import.py
idaholab/Deep-Lynx-Python-Package
99927cc877eba8e2ee396feec807da1c48c64893
[ "MIT" ]
null
null
null
# coding: utf-8 """ Deep Lynx The construction of megaprojects has consistently demonstrated challenges for project managers in regard to meeting cost, schedule, and performance requirements. Megaproject construction challenges are common place within megaprojects with many active projects in the United State...
32.050157
1,455
0.625685
3f6f5b4658b1c7f19a97e0795985c119e7517da7
19,092
py
Python
codes/datasets/MVM3D_loader.py
ZichengDuan/MVM3D
5242fa05afb6bff097908c88a8ef0fd9bc4a1fc5
[ "MIT" ]
21
2021-09-14T19:11:29.000Z
2022-02-05T05:58:32.000Z
codes/datasets/MVM3D_loader.py
Robert-Mar/MVM3D
b62c96de5894ae5fef615e2ee54fe975248a3df7
[ "MIT" ]
1
2021-11-25T08:56:32.000Z
2021-12-04T07:40:23.000Z
codes/datasets/MVM3D_loader.py
Robert-Mar/MVM3D
b62c96de5894ae5fef615e2ee54fe975248a3df7
[ "MIT" ]
2
2021-09-13T04:07:10.000Z
2021-09-14T09:15:52.000Z
import json from PIL import Image import torch from torchvision.transforms import ToTensor from codes.datasets.MVM3D import * import warnings from codes.EX_CONST import Const warnings.filterwarnings("ignore") class MVM3D_loader(VisionDataset): def __init__(self, base, train=True, transform=ToTensor(), target_tra...
41.235421
149
0.532317
841be38c5433212520c8969e101fb4e3711b76fa
8,331
py
Python
examples/CASAS_Single_Test/b1_lstm_raw.py
TinghuiWang/pyActLearn
d858136e86324fac51b0943765ef60bd405e31d1
[ "BSD-3-Clause" ]
3
2017-03-15T03:42:57.000Z
2020-01-19T15:47:12.000Z
examples/CASAS_Single_Test/b1_lstm_raw.py
TinghuiWang/pyActLearn
d858136e86324fac51b0943765ef60bd405e31d1
[ "BSD-3-Clause" ]
2
2019-02-04T15:31:49.000Z
2020-01-26T17:49:22.000Z
examples/CASAS_Single_Test/b1_lstm_raw.py
TinghuiWang/pyActLearn
d858136e86324fac51b0943765ef60bd405e31d1
[ "BSD-3-Clause" ]
3
2019-02-02T19:36:17.000Z
2021-01-02T15:42:43.000Z
import os import pickle import logging import argparse import numpy as np import tensorflow as tf from datetime import datetime from pyActLearn.CASAS.data import CASASData from pyActLearn.CASAS.fuel import CASASFuel from pyActLearn.learning.nn.lstm import LSTM from pyActLearn.performance.record import LearningResult fr...
47.067797
115
0.676269
014d547a123abf9b6488a703e8ea8c6a4ea903a1
8,995
py
Python
pythonlib/amlrealtimeai/external/tensorflow_serving/apis/classification_pb2.py
mialiu149/aml-real-time-ai
52bded7018df732932d0b9f20f0bf96470166d54
[ "MIT" ]
148
2018-05-07T16:14:37.000Z
2022-02-19T17:13:06.000Z
pythonlib/amlrealtimeai/external/tensorflow_serving/apis/classification_pb2.py
rawnc/aml-real-time-ai
52bded7018df732932d0b9f20f0bf96470166d54
[ "MIT" ]
6
2018-06-24T23:14:27.000Z
2019-05-29T12:09:09.000Z
pythonlib/amlrealtimeai/external/tensorflow_serving/apis/classification_pb2.py
rawnc/aml-real-time-ai
52bded7018df732932d0b9f20f0bf96470166d54
[ "MIT" ]
44
2018-05-08T23:32:22.000Z
2022-03-29T21:30:50.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow_serving/apis/classification.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.proto...
35.98
803
0.773874
8387c8977ad60002f7e8a1736055cd3bfa576bd0
15,063
py
Python
examples/seq2seq/seq2seq_chainerio.py
msakai/pfio
29e5c6d6b15d33c7e7e468b42c58d24dae3d8cad
[ "MIT" ]
null
null
null
examples/seq2seq/seq2seq_chainerio.py
msakai/pfio
29e5c6d6b15d33c7e7e468b42c58d24dae3d8cad
[ "MIT" ]
null
null
null
examples/seq2seq/seq2seq_chainerio.py
msakai/pfio
29e5c6d6b15d33c7e7e468b42c58d24dae3d8cad
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import datetime from nltk.translate import bleu_score import numpy import progressbar import six import chainer from chainer.backends import cuda import chainer.functions as F import chainer.links as L from chainer import training from chainer.training import extensions # PFIO ...
37.563591
79
0.599681
feadf7b861a22f26502d6baa25411397d1963c2b
7,580
py
Python
ProjectCode/Classifier.py
MOWaqar/MSc-Project
14464da68cc112038714eb5c71a29e2a386bce22
[ "MIT" ]
null
null
null
ProjectCode/Classifier.py
MOWaqar/MSc-Project
14464da68cc112038714eb5c71a29e2a386bce22
[ "MIT" ]
null
null
null
ProjectCode/Classifier.py
MOWaqar/MSc-Project
14464da68cc112038714eb5c71a29e2a386bce22
[ "MIT" ]
null
null
null
""" AUTHOR: M O WAQAR 20/08/2018 This script runs three classifiers 1. Logistic Regression 2. SGD(LinearSVC) 3. LightGBM They are run on the 17 datasats prepared with DataPreperation.py script. ****NOTE: If you have not executed 'DataPreperation.py' run that first and wait for it to finish before running this scrip...
35.754717
124
0.675989
f881d098afd10256c3bd2b4021eb375ca8bd1415
97
py
Python
week3/week3 2.py
Kevinskwk/ILP
7a3925a22232d486a5a8f5df8255f9297fd73fec
[ "MIT" ]
1
2020-07-09T23:10:56.000Z
2020-07-09T23:10:56.000Z
week3/week3 2.py
Kevinskwk/ILP
7a3925a22232d486a5a8f5df8255f9297fd73fec
[ "MIT" ]
null
null
null
week3/week3 2.py
Kevinskwk/ILP
7a3925a22232d486a5a8f5df8255f9297fd73fec
[ "MIT" ]
null
null
null
listone = input(":") listtwo = [] for i in listone: listtwo=[i]+listtwo print listtwo
13.857143
24
0.608247
ed6e1480b9283037806756275a6782837e5ed3bb
4,430
py
Python
rl/utils.py
asokraju/kristools
d46aa8705b16bcabbbcfc85cc05e2e34f45823d2
[ "MIT" ]
3
2020-08-10T03:58:11.000Z
2020-11-06T04:47:21.000Z
rl/utils.py
asokraju/kristools
d46aa8705b16bcabbbcfc85cc05e2e34f45823d2
[ "MIT" ]
2
2020-08-20T05:46:39.000Z
2021-01-16T17:54:26.000Z
rl/utils.py
asokraju/kristools
d46aa8705b16bcabbbcfc85cc05e2e34f45823d2
[ "MIT" ]
1
2021-01-15T20:31:26.000Z
2021-01-15T20:31:26.000Z
import numpy as np from collections import deque #import yaml import pickle import os from datetime import datetime from shutil import copyfile import random import numbers import functools import operator #OU Noise # Taken from https://github.com/openai/baselines/blob/master/baselines/ddpg/noise.py, ...
30.979021
101
0.566366
dabdef00e6f04522990c3b9c2dc708934f720d04
778
py
Python
tests/test_blob.py
kwohlfahrt/blob
d837e988bec76a58e0752fb721cdc00aac9af49e
[ "MIT" ]
9
2018-02-22T09:05:03.000Z
2020-06-25T04:21:52.000Z
tests/test_blob.py
kwohlfahrt/blob
d837e988bec76a58e0752fb721cdc00aac9af49e
[ "MIT" ]
3
2017-10-01T16:07:32.000Z
2018-10-22T10:50:26.000Z
tests/test_blob.py
kwohlfahrt/blob
d837e988bec76a58e0752fb721cdc00aac9af49e
[ "MIT" ]
7
2016-08-05T12:46:29.000Z
2021-03-20T12:02:29.000Z
from unittest import TestCase, skip import numpy as np import blob from itertools import repeat class TestLocalMinima(TestCase): def test_minima(self): data = np.ones((7, 7)) * 2 data[2:5, 3:6] = 1 data[3, 4] = 0 # Diagonal values considered peaks expected = [[3, 4]] ...
27.785714
74
0.602828
e14a09338591877cb7e8cee2723008e0d7933db1
360
py
Python
quiz/forms.py
white-panda-afk/Quizzy-official
1be4a1a50c49efaae437f089d0d5c7ef9bb3ddff
[ "MIT" ]
8
2020-11-02T10:50:02.000Z
2021-11-03T16:56:19.000Z
quiz/forms.py
white-panda-afk/Quizzy-official
1be4a1a50c49efaae437f089d0d5c7ef9bb3ddff
[ "MIT" ]
11
2020-12-09T17:31:31.000Z
2021-02-17T06:03:20.000Z
quiz/forms.py
white-panda-afk/Quizzy-official
1be4a1a50c49efaae437f089d0d5c7ef9bb3ddff
[ "MIT" ]
7
2021-01-16T19:39:41.000Z
2021-01-29T10:17:06.000Z
from django import forms from django.contrib.auth import login,authenticate from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User #form for registration class RegisterForm(UserCreationForm): email=forms.EmailField() class Meta: model=User fields=["us...
32.727273
59
0.769444
c405776225680a07e73f13be49cfa288c73ebba9
5,722
py
Python
src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_operations.py
Caoxuyang/azure-cli-extensions
d2011261f29033cb31a1064256727d87049ab423
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_operations.py
Caoxuyang/azure-cli-extensions
d2011261f29033cb31a1064256727d87049ab423
[ "MIT" ]
9
2022-03-25T19:35:49.000Z
2022-03-31T06:09:47.000Z
src/spring/azext_spring/vendored_sdks/appplatform/v2022_05_01_preview/operations/_operations.py
Caoxuyang/azure-cli-extensions
d2011261f29033cb31a1064256727d87049ab423
[ "MIT" ]
1
2022-02-14T21:43:29.000Z
2022-02-14T21:43:29.000Z
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
39.462069
133
0.653443
914a7b203bd63db8b6f0d65e8e1811b3d943a15e
5,513
py
Python
src/utoolbox/io/encdec/amira/base.py
thhsieh00/utoolbox-core
e46704348d60985c205a16f41788d2c185e11fb6
[ "Apache-2.0" ]
3
2020-08-21T02:34:32.000Z
2021-04-06T06:56:46.000Z
src/utoolbox/io/encdec/amira/base.py
liuyenting/utoolbox-core
d1430967458204b99780c547eaca60d066490946
[ "Apache-2.0" ]
null
null
null
src/utoolbox/io/encdec/amira/base.py
liuyenting/utoolbox-core
d1430967458204b99780c547eaca60d066490946
[ "Apache-2.0" ]
null
null
null
import logging import numpy as np from pyparsing import ( CaselessKeyword, Combine, Dict, Group, Literal, MatchFirst, OneOrMore, Optional, QuotedString, Word, alphanums, nestedExpr, restOfLine, ) from pyparsing import pyparsing_common as pc __all...
27.984772
89
0.606566
87c1fbe27446cb4924151e07442d806eb831eef9
1,873
py
Python
stacking/2.regression/stacking_submit.py
huseinzol05/Machine-Learning-Data-Science-Reuse
83f967a94254eb71ae021dccbc13f861d50c64f0
[ "MIT" ]
26
2018-02-09T04:57:19.000Z
2021-10-03T13:06:18.000Z
stacking/2.regression/stacking_submit.py
huseinzol05/Machine-Learning-Data-Science-Reuse
83f967a94254eb71ae021dccbc13f861d50c64f0
[ "MIT" ]
null
null
null
stacking/2.regression/stacking_submit.py
huseinzol05/Machine-Learning-Data-Science-Reuse
83f967a94254eb71ae021dccbc13f861d50c64f0
[ "MIT" ]
26
2018-03-04T08:10:03.000Z
2021-08-04T08:05:49.000Z
import pandas as pd import numpy as np import lightgbm as lgb import xgboost as xgb from sklearn.metrics import r2_score pd.options.mode.chained_assignment = None # read datasets train = pd.read_csv('../../input/train.csv') test = pd.read_csv('../../input/test.csv') test_id = test.ID y_train = train.y ...
34.054545
118
0.568073
6b2ea8c4fab25c0629cfd3171b64b4bb4e0fed77
15,174
py
Python
iPERCore/models/networks/generators/lwb_avg_resunet.py
ak9250/iPERCore
c7bac39d65964350074a647e89975655cd443790
[ "Apache-2.0" ]
1
2021-03-24T08:44:45.000Z
2021-03-24T08:44:45.000Z
iPERCore/models/networks/generators/lwb_avg_resunet.py
ak9250/iPERCore
c7bac39d65964350074a647e89975655cd443790
[ "Apache-2.0" ]
null
null
null
iPERCore/models/networks/generators/lwb_avg_resunet.py
ak9250/iPERCore
c7bac39d65964350074a647e89975655cd443790
[ "Apache-2.0" ]
1
2022-01-05T20:20:28.000Z
2022-01-05T20:20:28.000Z
# Copyright (c) 2020-2021 impersonator.org authors (Wen Liu and Zhixin Piao). All rights reserved. import torch import torch.nn as nn import torch.nn.functional as F from .bg_inpaintor import ResNetInpaintor class ResidualBlock(nn.Module): """Residual Block.""" def __init__(self, in_channel, out_channel): ...
32.844156
120
0.554238
949620dd7548061eb94904c159b794186e693070
548
py
Python
week3/exercises/globalvars.py
Nburkhal/mit-cs250
a3d32a217deb2cfa1b94d8188bef73c0742b1245
[ "MIT" ]
null
null
null
week3/exercises/globalvars.py
Nburkhal/mit-cs250
a3d32a217deb2cfa1b94d8188bef73c0742b1245
[ "MIT" ]
null
null
null
week3/exercises/globalvars.py
Nburkhal/mit-cs250
a3d32a217deb2cfa1b94d8188bef73c0742b1245
[ "MIT" ]
null
null
null
def fib(n): global numFibCalls numFibCalls += 1 if n == 1: return 1 elif n == 2: return 2 else: return fib(n-1) + fib(n-2) def fibef(n, d): global numFibCalls numFibCalls += 1 if n in d: return d[n] else: ans = fibef(n-1, d) + fibef(n-2, d) ...
16.117647
43
0.554745
86b53e6956f3702da6fa581427a086d743b2589f
14,401
py
Python
packit_service/worker/jobs.py
thrix/packit-service
235fa464e3082ff798ced1c2f71b7661de19fab3
[ "MIT" ]
null
null
null
packit_service/worker/jobs.py
thrix/packit-service
235fa464e3082ff798ced1c2f71b7661de19fab3
[ "MIT" ]
null
null
null
packit_service/worker/jobs.py
thrix/packit-service
235fa464e3082ff798ced1c2f71b7661de19fab3
[ "MIT" ]
null
null
null
# Copyright Contributors to the Packit project. # SPDX-License-Identifier: MIT """ We love you, Steve Jobs. """ import logging from typing import Any from typing import List, Set, Type, Union from celery import group from ogr.abstract import CommitStatus from packit.config import JobConfig, PackageConfig from packit...
35.296569
100
0.610791
55dd1bef87480b57557bd6589a5aa93ed214135a
1,913
py
Python
envs/ImageObsVecEnvWrapper.py
harry-uglow/Curriculum-Reinforcement-Learning
cb050556e1fdc7b7de8d63ad932fc712a35ac144
[ "MIT" ]
15
2020-02-02T22:22:41.000Z
2022-03-03T07:50:45.000Z
envs/ImageObsVecEnvWrapper.py
harry-uglow/Deep-RL-Sim2Real
cb050556e1fdc7b7de8d63ad932fc712a35ac144
[ "MIT" ]
8
2020-01-28T20:45:54.000Z
2022-03-14T07:58:27.000Z
envs/ImageObsVecEnvWrapper.py
harry-uglow/Curriculum-Reinforcement-Learning
cb050556e1fdc7b7de8d63ad932fc712a35ac144
[ "MIT" ]
5
2020-03-26T15:46:51.000Z
2022-01-17T09:48:02.000Z
import numpy as np from baselines.common.vec_env import VecEnvWrapper from gym import spaces import cv2 # Swap out state observation for image class ImageObsVecEnvWrapper(VecEnvWrapper): def __init__(self, venv, res): observation_space = spaces.Box(0, 255, [3, *res], dtype=venv.observation_space.dtype) ...
31.360656
93
0.672243
2db7aa4470d863d330e0d53b97e8da446d16c7d0
1,221
py
Python
python_arrays.py
galgodon/astr-119-session-3
50f444fe6de564c8c3a4b937917929f267f108c3
[ "MIT" ]
null
null
null
python_arrays.py
galgodon/astr-119-session-3
50f444fe6de564c8c3a4b937917929f267f108c3
[ "MIT" ]
1
2018-10-04T20:10:52.000Z
2018-10-18T01:38:43.000Z
python_arrays.py
galgodon/astr-119-session-3
50f444fe6de564c8c3a4b937917929f267f108c3
[ "MIT" ]
1
2018-10-18T01:36:30.000Z
2018-10-18T01:36:30.000Z
#!/usr/bin/env python3 x = [0.0, 3.0, 5.0, 2.5, 3.7] # create an array called x. (an array is a list where every element is the same type) print(type(x)) # print data type of x (list) x.pop(2) # delete the 3rd element of x (position 2 since we start at position 0) print...
42.103448
118
0.46683
962cf04b5951e8242d273a0681e355a8cc06d6e5
8,887
py
Python
pcdswidgets/icons/valves.py
klauer/pcdswidgets
a6f50fdb41b4d7a991c86fec9bce06a4f09a80af
[ "BSD-3-Clause-LBNL" ]
null
null
null
pcdswidgets/icons/valves.py
klauer/pcdswidgets
a6f50fdb41b4d7a991c86fec9bce06a4f09a80af
[ "BSD-3-Clause-LBNL" ]
null
null
null
pcdswidgets/icons/valves.py
klauer/pcdswidgets
a6f50fdb41b4d7a991c86fec9bce06a4f09a80af
[ "BSD-3-Clause-LBNL" ]
null
null
null
import math from qtpy.QtCore import (QPointF, QRectF, Qt, Property, QLineF) from qtpy.QtGui import (QPainterPath, QBrush, QColor, QPolygonF, QTransform) from .base import BaseSymbolIcon class PneumaticValveSymbolIcon(BaseSymbolIcon): """ A widget with a pneumatic valve symbol drawn in it. Parameters ...
31.182456
76
0.579498
6ad80e10bcb7f1a7fd73675294223d070e484686
13,903
py
Python
extract_features.py
trangvu/bert
001fce0550cae29e43c175d146d1a33980870ac8
[ "Apache-2.0" ]
null
null
null
extract_features.py
trangvu/bert
001fce0550cae29e43c175d146d1a33980870ac8
[ "Apache-2.0" ]
null
null
null
extract_features.py
trangvu/bert
001fce0550cae29e43c175d146d1a33980870ac8
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
33.181384
82
0.674387
871ca1ef887cc3d80176cbe01cdace4c79918524
7,286
py
Python
lapps-grid/tools/data_source/microbial_import_code.py
CDCgov/DCPC
c3fadef1bd6345e01a58afef051491d8ef6a7f93
[ "Apache-2.0" ]
6
2018-11-03T22:43:35.000Z
2022-02-15T17:51:33.000Z
lapps-grid/tools/data_source/microbial_import_code.py
CDCgov/DCPC
c3fadef1bd6345e01a58afef051491d8ef6a7f93
[ "Apache-2.0" ]
3
2015-06-06T22:16:03.000Z
2015-11-12T00:22:45.000Z
lapps-grid/tools/data_source/microbial_import_code.py
CDCgov/DCPC
c3fadef1bd6345e01a58afef051491d8ef6a7f93
[ "Apache-2.0" ]
10
2017-04-10T21:40:22.000Z
2022-02-21T16:50:10.000Z
from __future__ import print_function from shutil import copyfile from galaxy import tools def load_microbial_data( GALAXY_DATA_INDEX_DIR, sep='\t' ): # FIXME: this function is duplicated in the DynamicOptions class. It is used here only to # set data.name in exec_after_process(). microbe_info = {} ...
45.823899
243
0.516607
f254352957878f54717e5bb9075bed0a2806100b
660
py
Python
Aulas/app001/ex09-texvariable_stringvar.py
JonasJF360/Curso_Tkinter
7a72187a03ef9f7f9d7f760d2cd1434e0287a266
[ "MIT" ]
null
null
null
Aulas/app001/ex09-texvariable_stringvar.py
JonasJF360/Curso_Tkinter
7a72187a03ef9f7f9d7f760d2cd1434e0287a266
[ "MIT" ]
null
null
null
Aulas/app001/ex09-texvariable_stringvar.py
JonasJF360/Curso_Tkinter
7a72187a03ef9f7f9d7f760d2cd1434e0287a266
[ "MIT" ]
null
null
null
from tkinter import * janela = Tk() janela.title('Textvariable e Stringvar') janela.geometry('500x500') texto = StringVar() texto.set('Olá, mundo!') label1 = Label( janela, text=texto, # Isso terá um problema font='Arial 20', bg='red', fg='white' ).pack() label2 = Label( janela, textvar...
15.714286
40
0.601515
53d91c5680fceeec4492e81988c68a0bbe2fe74f
111
py
Python
problem/01000~09999/02605/2605.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-19T16:37:44.000Z
2019-04-19T16:37:44.000Z
problem/01000~09999/02605/2605.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-20T11:42:44.000Z
2019-04-20T11:42:44.000Z
problem/01000~09999/02605/2605.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
3
2019-04-19T16:37:47.000Z
2021-10-25T00:45:00.000Z
arr=[];input() for n,i in enumerate(map(int,input().split())):arr.insert(n-i,n+1) print(' '.join(map(str,arr)))
37
66
0.63964
85fdb3cd01376fe4f677a8865e8b037b416b3276
9,376
py
Python
swig/python/osgeo/gnm.py
FeU-aKlos/gdal
bba6781133815248c9329842d365f8812b74c33f
[ "Apache-2.0" ]
3,100
2015-01-02T10:33:40.000Z
2022-03-31T02:06:51.000Z
swig/python/osgeo/gnm.py
FeU-aKlos/gdal
bba6781133815248c9329842d365f8812b74c33f
[ "Apache-2.0" ]
3,496
2015-01-06T16:53:30.000Z
2022-03-31T20:18:51.000Z
swig/python/osgeo/gnm.py
FeU-aKlos/gdal
bba6781133815248c9329842d365f8812b74c33f
[ "Apache-2.0" ]
2,036
2015-01-08T20:22:12.000Z
2022-03-31T10:24:08.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 4.0.2 # # 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): raise Runtime...
38.113821
166
0.696246
3e8606d5b7fc3c75f054f7e4500fb438d3d013ca
5,363
py
Python
covid-19-tests-owid.py
flexiodata/functions-covid-19-feed
1922ac245016488e89614019be9e490281628ec8
[ "MIT" ]
1
2021-06-18T17:55:47.000Z
2021-06-18T17:55:47.000Z
covid-19-tests-owid.py
flexiodata/functions-covid-19-feed
1922ac245016488e89614019be9e490281628ec8
[ "MIT" ]
null
null
null
covid-19-tests-owid.py
flexiodata/functions-covid-19-feed
1922ac245016488e89614019be9e490281628ec8
[ "MIT" ]
1
2021-06-18T17:56:26.000Z
2021-06-18T17:56:26.000Z
# --- # name: covid-19-tests-owid # deployed: true # config: index # title: Covid-19 Tests (Our World In Data) # description: Returns data about Covid-19 tests from the Our World In Data Covid-19 GitHub Repository # params: # - name: properties # type: array # description: The properties to return, given as ...
36.732877
139
0.688421
b86eb5cd26e2228a20ba422fba27298974bc3f24
5,642
py
Python
mode1.py
Charlie0921/CS131_FinalProject_Library
9000ab14c17e59aecdc98c6acb6d4e70a421f5eb
[ "MIT" ]
null
null
null
mode1.py
Charlie0921/CS131_FinalProject_Library
9000ab14c17e59aecdc98c6acb6d4e70a421f5eb
[ "MIT" ]
null
null
null
mode1.py
Charlie0921/CS131_FinalProject_Library
9000ab14c17e59aecdc98c6acb6d4e70a421f5eb
[ "MIT" ]
null
null
null
import init as init import mode5 as m5 # Retrieve Book dataframe from 'booklist.txt' Book = init.read() # Update Book dataframe & Create Student dataframe through 'librarylog.txt' Student = [] init.update(Book, Student) #######################################check fine#################################################...
28.351759
109
0.56044
75fb1aa1b55f0df4e03617e086ead4d3bd91c136
2,003
py
Python
api/routers/bandwidth.py
ShayBox/API
d141b3d148d93809afcfbcd311607e0835fd671f
[ "MIT" ]
2
2019-08-05T18:13:13.000Z
2021-04-01T12:39:29.000Z
api/routers/bandwidth.py
ShayBox/API
d141b3d148d93809afcfbcd311607e0835fd671f
[ "MIT" ]
1
2019-10-30T01:29:24.000Z
2019-10-30T01:29:24.000Z
api/routers/bandwidth.py
ShayBox/API
d141b3d148d93809afcfbcd311607e0835fd671f
[ "MIT" ]
null
null
null
from ..configuration import settings from datetime import datetime from fastapi import APIRouter from fastapi_cache.decorator import cache from fastapi.params import Query from requests import Session from starlette.responses import Response # https://stackoverflow.com/a/60451840/17289156 class NoRebuildAuthSession(Se...
30.815385
97
0.696955
152a1a76f4e0b182f88efa6bc150ef5e3b2de65c
6,442
py
Python
examples/pwr_run/checkpointing/debug/k80_only/job20.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/debug/k80_only/job20.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/debug/k80_only/job20.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
""" #Trains a ResNet on the CIFAR10 dataset. """ from __future__ import print_function import keras from keras.layers import Dense, Conv2D, BatchNormalization, Activation from keras.layers import AveragePooling2D, Input, Flatten from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, LearningRa...
30.67619
118
0.704284
e8123d1b362a6a7291591d4fb43e4ad7b7bfb635
607
py
Python
django_eveonline_timerboard/bindings.py
KryptedGaming/django-eveonline-timerboard
da413aa9d84b8ab4e97021a91ce53c16b0f88d81
[ "MIT" ]
null
null
null
django_eveonline_timerboard/bindings.py
KryptedGaming/django-eveonline-timerboard
da413aa9d84b8ab4e97021a91ce53c16b0f88d81
[ "MIT" ]
2
2020-10-14T15:49:35.000Z
2020-10-14T15:51:36.000Z
django_eveonline_timerboard/bindings.py
KryptedGaming/django-eveonline-timerboard
da413aa9d84b8ab4e97021a91ce53c16b0f88d81
[ "MIT" ]
null
null
null
from django.apps import apps from django.urls import reverse from django.conf import settings from packagebinder.bind import PackageBinding, SettingsBinding, TaskBinding, SidebarBinding import logging logger = logging.getLogger(__name__) app_config = apps.get_app_config('django_eveonline_timerboard') def create_bin...
35.705882
91
0.769357
ac51fab03883cd85083cb14cd0fc671ea12d5c2c
1,109
py
Python
l5kit/l5kit/evaluation/error_functions.py
cdicle-motional/l5kit
4dc4ee5391479bb71f0b373f39c316f9eef5a961
[ "Apache-2.0" ]
null
null
null
l5kit/l5kit/evaluation/error_functions.py
cdicle-motional/l5kit
4dc4ee5391479bb71f0b373f39c316f9eef5a961
[ "Apache-2.0" ]
null
null
null
l5kit/l5kit/evaluation/error_functions.py
cdicle-motional/l5kit
4dc4ee5391479bb71f0b373f39c316f9eef5a961
[ "Apache-2.0" ]
1
2021-11-19T08:13:46.000Z
2021-11-19T08:13:46.000Z
import math from typing import Callable import torch # Error function type ErrorFunction = Callable[[torch.Tensor, torch.Tensor], torch.Tensor] def l2_error(pred: torch.Tensor, gt: torch.Tensor) -> torch.Tensor: """A function that takes pred, gt tensor and computes their L2 distance. :param pred: predicte...
33.606061
86
0.706041
29daaeb787d652d68e370e4225ca681fd7af6826
6,431
py
Python
webpersonal/portafolio/views.py
RoniHernandez99/miWebPersonal
b6207c3c3e716bf6cc48dcc1198a1a0427961ed9
[ "Apache-2.0" ]
null
null
null
webpersonal/portafolio/views.py
RoniHernandez99/miWebPersonal
b6207c3c3e716bf6cc48dcc1198a1a0427961ed9
[ "Apache-2.0" ]
null
null
null
webpersonal/portafolio/views.py
RoniHernandez99/miWebPersonal
b6207c3c3e716bf6cc48dcc1198a1a0427961ed9
[ "Apache-2.0" ]
null
null
null
from ast import keyword from django.shortcuts import render from django.views.generic import TemplateView,ListView,DetailView from .models import Apartado_Portafolio,Habilidad,Especializacion,Proyecto,CursoImpartido,CursoTomado,ExperienciaLaboral class ProyectoDetailView(DetailView): model = Proyecto templat...
31.995025
120
0.672057
9a0c7330f8fc745975bc7fb86c3620b7a00ef62a
21,608
py
Python
align/detect_face.py
cooolallen/CVFinal
fed590a44703d5a9950a144f7a57b5c209687be6
[ "MIT" ]
6
2017-09-09T05:34:01.000Z
2021-07-17T15:10:43.000Z
align/detect_face.py
cooolallen/Face-recognition-with-User-interface
fed590a44703d5a9950a144f7a57b5c209687be6
[ "MIT" ]
5
2017-09-09T05:34:38.000Z
2019-08-16T02:30:21.000Z
align/detect_face.py
cooolallen/Face-recognition-with-User-interface
fed590a44703d5a9950a144f7a57b5c209687be6
[ "MIT" ]
3
2020-04-13T08:02:49.000Z
2022-03-02T12:21:10.000Z
""" Tensorflow implementation of the face detection / alignment algorithm found at https://github.com/kpzhang93/MTCNN_face_detection_alignment """ # MIT License # # Copyright (c) 2016 David Sandberg # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated docu...
38.933333
138
0.571316
bff25e8e55d16bd91cda0d4d959ef4a5e5d4e030
2,530
py
Python
openerp/addons/hr_timesheet/__openerp__.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
3
2016-01-29T14:39:49.000Z
2018-12-29T22:42:00.000Z
openerp/addons/hr_timesheet/__openerp__.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
2
2016-03-23T14:29:41.000Z
2017-02-20T17:11:30.000Z
openerp/addons/hr_timesheet/__openerp__.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
37.205882
83
0.63004
09e0f3d5a6fa089ebaa00c4d7ae1f6ac4eaaa202
9,667
py
Python
aeppl_hmm/dists.py
AmpersandTV/aeppl-hmm
3d8807cddf7930468f60e8b8ef9da08618138e7b
[ "MIT" ]
4
2021-12-08T20:39:59.000Z
2022-02-10T19:45:11.000Z
aeppl_hmm/dists.py
brandonwillard/aeppl-hmm
3d8807cddf7930468f60e8b8ef9da08618138e7b
[ "MIT" ]
2
2021-12-08T21:45:13.000Z
2022-02-10T19:48:46.000Z
aeppl_hmm/dists.py
brandonwillard/aeppl-hmm
3d8807cddf7930468f60e8b8ef9da08618138e7b
[ "MIT" ]
1
2021-12-08T20:39:04.000Z
2021-12-08T20:39:04.000Z
from copy import copy from typing import Sequence import aesara import aesara.tensor as at import numpy as np from aeppl.abstract import MeasurableVariable from aeppl.dists import dirac_delta from aeppl.logprob import _logprob from aesara.compile.builders import OpFromGraph from aesara.graph.basic import Constant from...
32.439597
100
0.655633
f114756b3b937963aa5f1a3c22d664a0a44dc3c4
54
py
Python
build/lib/ciberatac/__init__.py
goodarzilab/ciberatac
58c150813cfdf1cea160b9b2c464c382cb0f7395
[ "BSD-3-Clause" ]
3
2022-02-25T19:24:52.000Z
2022-03-22T16:48:07.000Z
src/ciberatac/__init__.py
goodarzilab/ciberatac
58c150813cfdf1cea160b9b2c464c382cb0f7395
[ "BSD-3-Clause" ]
null
null
null
src/ciberatac/__init__.py
goodarzilab/ciberatac
58c150813cfdf1cea160b9b2c464c382cb0f7395
[ "BSD-3-Clause" ]
null
null
null
import model import predict import train import utils
10.8
14
0.851852
66a58750a2687602ec8a6cbe7682ab85be92e2a9
2,852
py
Python
mio/cli/completion.py
Datum-Technology-Corporation/mio_platform_client_cli
74e09ae279ae44b3afd67493d90aec5d45ee7909
[ "Apache-2.0" ]
null
null
null
mio/cli/completion.py
Datum-Technology-Corporation/mio_platform_client_cli
74e09ae279ae44b3afd67493d90aec5d45ee7909
[ "Apache-2.0" ]
null
null
null
mio/cli/completion.py
Datum-Technology-Corporation/mio_platform_client_cli
74e09ae279ae44b3afd67493d90aec5d45ee7909
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Datum Technology Corporation # SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1 ######################################################################################################################## # Licensed under the Solderpad Hardware License v 2.1 (the "License"); you may not use this file excep...
49.172414
120
0.45582
5030875ec3b463c9cfa8f94efff349e505b885bb
31,078
py
Python
RegRCNN/datasets/toy/data_loader.py
HannahElisa/RegRCNN
1aa69d00c61bd36685213248bb30d4ba30ac5a06
[ "Apache-2.0" ]
null
null
null
RegRCNN/datasets/toy/data_loader.py
HannahElisa/RegRCNN
1aa69d00c61bd36685213248bb30d4ba30ac5a06
[ "Apache-2.0" ]
null
null
null
RegRCNN/datasets/toy/data_loader.py
HannahElisa/RegRCNN
1aa69d00c61bd36685213248bb30d4ba30ac5a06
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2019 Division of Medical Image Computing, German Cancer Research Center (DKFZ). # # 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...
52.231933
141
0.612652
d8dafadd7494f9c07163ed0511b5ae677d9b2014
1,568
py
Python
Courses/100 Days of Code The Complete Python Pro Bootcamp/Day 12/The Number Guessing Game.py
edaaydinea/365-days-of-coding-challenge
baf06a9bef75ff45194e57357e20085b9cde2498
[ "MIT" ]
4
2022-01-05T12:14:13.000Z
2022-01-08T16:03:32.000Z
Courses/100 Days of Code The Complete Python Pro Bootcamp/Day 12/The Number Guessing Game.py
edaaydinea/365-days-of-code
baf06a9bef75ff45194e57357e20085b9cde2498
[ "MIT" ]
null
null
null
Courses/100 Days of Code The Complete Python Pro Bootcamp/Day 12/The Number Guessing Game.py
edaaydinea/365-days-of-code
baf06a9bef75ff45194e57357e20085b9cde2498
[ "MIT" ]
null
null
null
from random import randint from art import logo EASY_LEVEL_TURNS = 10 HARD_LEVEL_TURNS = 5 # Function to check user's guess against actual answer. def check_answer(guess, answer, turns): """checks answer against guess. Returns the number of turns remaining.""" if guess > answer: print("Too high.") ...
27.034483
77
0.626276
ed78ceae5fb029bcc137171602565b0fc4932199
12,348
py
Python
microsoftgraph/client.py
Disruption/microsoftgraph-python
7877933e492859a6daaf32196cfcbe82e0e4b714
[ "MIT" ]
null
null
null
microsoftgraph/client.py
Disruption/microsoftgraph-python
7877933e492859a6daaf32196cfcbe82e0e4b714
[ "MIT" ]
null
null
null
microsoftgraph/client.py
Disruption/microsoftgraph-python
7877933e492859a6daaf32196cfcbe82e0e4b714
[ "MIT" ]
null
null
null
from urllib.parse import urlencode import requests from microsoftgraph import exceptions from microsoftgraph.calendar import Calendar from microsoftgraph.contacts import Contacts from microsoftgraph.files import Files from microsoftgraph.mail import Mail from microsoftgraph.notes import Notes from microsoftgraph.resp...
42
142
0.641561
0b00a143e366e40fc1e8e55364c5c3c8e10c93d4
1,206
py
Python
python/cuml/__init__.py
kkraus14/cuml
3ac4c678f5a2738ce54ce5b8575820d556595393
[ "Apache-2.0" ]
null
null
null
python/cuml/__init__.py
kkraus14/cuml
3ac4c678f5a2738ce54ce5b8575820d556595393
[ "Apache-2.0" ]
null
null
null
python/cuml/__init__.py
kkraus14/cuml
3ac4c678f5a2738ce54ce5b8575820d556595393
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2019, NVIDIA CORPORATION. # # 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 ...
30.923077
74
0.803483
61152afccd3c3b9e60b73e584051d4234813edf1
819
py
Python
invenio_oarepo_oai_pmh_harvester/rules/uk/degree_grantor.py
Semtexcz/invenio-oarepo-oai-pmh-harvester
2866c7d7355f6885b4f443ee1e82baa24502b36e
[ "MIT" ]
null
null
null
invenio_oarepo_oai_pmh_harvester/rules/uk/degree_grantor.py
Semtexcz/invenio-oarepo-oai-pmh-harvester
2866c7d7355f6885b4f443ee1e82baa24502b36e
[ "MIT" ]
null
null
null
invenio_oarepo_oai_pmh_harvester/rules/uk/degree_grantor.py
Semtexcz/invenio-oarepo-oai-pmh-harvester
2866c7d7355f6885b4f443ee1e82baa24502b36e
[ "MIT" ]
null
null
null
from invenio_initial_theses_conversion.rules.marc21.bd7102 import get_degree_grantor from invenio_oarepo_oai_pmh_harvester.register import Decorators from invenio_oarepo_oai_pmh_harvester.transformer import OAITransformer @Decorators.rule('xoai') @Decorators.pre_rule("/uk/grantor") def transform_uk_grantor(paths, el...
45.5
87
0.68254
790dc82fad44913c8a30acf36c53c51c6aad0661
7,486
py
Python
mayan/apps/web_links/views.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
343
2015-01-05T14:19:35.000Z
2018-12-10T19:07:48.000Z
mayan/apps/web_links/views.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
191
2015-01-03T00:48:19.000Z
2018-11-30T09:10:25.000Z
mayan/apps/web_links/views.py
atitaya1412/Mayan-EDMS
bda9302ba4b743e7d829ad118b8b836221888172
[ "Apache-2.0" ]
257
2019-05-14T10:26:37.000Z
2022-03-30T03:37:36.000Z
import logging from django.shortcuts import get_object_or_404 from django.template import RequestContext from django.urls import reverse_lazy from django.utils.translation import ugettext_lazy as _ from django.views.generic import RedirectView from mayan.apps.acls.models import AccessControlList from mayan.apps.docum...
34.027273
78
0.687016
d5dfa73f7ad884f865ce08b97be7e3fcfdd368e2
6,037
py
Python
FBSSNN/pkl_spk_tms/gn_icub_stimulus_rtnaW.py
mahmoud-a-ali/FBSSNN
e89659bcaca7be04937efceb3a0831b78ad40bfc
[ "Apache-2.0" ]
null
null
null
FBSSNN/pkl_spk_tms/gn_icub_stimulus_rtnaW.py
mahmoud-a-ali/FBSSNN
e89659bcaca7be04937efceb3a0831b78ad40bfc
[ "Apache-2.0" ]
null
null
null
FBSSNN/pkl_spk_tms/gn_icub_stimulus_rtnaW.py
mahmoud-a-ali/FBSSNN
e89659bcaca7be04937efceb3a0831b78ad40bfc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Mon Jun 18 12:40:30 2018 @author: mali to generate icub in such away that wach letter with different disp """ import comn_conversion as cnvrt import numpy as np import random # check desired requirements =================================================...
25.154167
94
0.5405
68ab41cb28215c75c491ee16a09dd3112edcaae4
681
py
Python
vivisect/tests/testsrec.py
bat-serjo/vivisect
f60934a2c8c51c7acdba52a65756e717a108a440
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
vivisect/tests/testsrec.py
bat-serjo/vivisect
f60934a2c8c51c7acdba52a65756e717a108a440
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
vivisect/tests/testsrec.py
bat-serjo/vivisect
f60934a2c8c51c7acdba52a65756e717a108a440
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import logging import unittest import Elf import envi import vivisect.cli as viv_cli import vivisect.tests.helpers as helpers logger = logging.getLogger(__name__) path = ('raw', 'msp430', 'blink.srec') class IHexTests(unittest.TestCase): def test_ihex(self): fn = helpers.getTestPath(*path) vw ...
23.482759
56
0.693098
1b1e215bdf0098ab1db96f784344c6fb0034dc58
805
py
Python
api/utils.py
jdeepe/Dynamodb-ORM-Demo
a4fb2bc782cc3e9583d4a269ecec9d86cb27dd6b
[ "Apache-2.0" ]
null
null
null
api/utils.py
jdeepe/Dynamodb-ORM-Demo
a4fb2bc782cc3e9583d4a269ecec9d86cb27dd6b
[ "Apache-2.0" ]
null
null
null
api/utils.py
jdeepe/Dynamodb-ORM-Demo
a4fb2bc782cc3e9583d4a269ecec9d86cb27dd6b
[ "Apache-2.0" ]
null
null
null
from pynamodb.attributes import ListAttribute, MapAttribute, NumberAttribute class ModelIterator: def __iter__(self): for name, attr in self.get_attributes().items(): if isinstance(attr, MapAttribute): yield name, getattr(self, name).as_dict() if isinstance(attr, Li...
38.333333
76
0.540373
813dfffcb86722511ff02176007fd492bf4ab168
3,682
py
Python
low_spatial_res/smagorinski.py
pdnooteboom/PO_res_error
2c0e1f12203585e2ca3f9a5e686b4e8004052884
[ "MIT" ]
1
2021-04-12T16:07:42.000Z
2021-04-12T16:07:42.000Z
low_spatial_res/smagorinski.py
pdnooteboom/PO_res_error
2c0e1f12203585e2ca3f9a5e686b4e8004052884
[ "MIT" ]
null
null
null
low_spatial_res/smagorinski.py
pdnooteboom/PO_res_error
2c0e1f12203585e2ca3f9a5e686b4e8004052884
[ "MIT" ]
1
2021-04-12T16:07:45.000Z
2021-04-12T16:07:45.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Tue Jun 4 15:38:49 2019 @author: nooteboom """ from parcels import Field import math from random import random def prepare(fieldset, Cs=0.1): """ Add cell_areas field and gradients of U and V that are both necessary for Smagorinsky parametrizatio...
45.45679
153
0.624661
6a4a1aa0fa513d35332ca4a645b5bda917decd18
1,110
bzl
Python
tools/test/runtime_resources.bzl
pswaminathan/grab-bazel-common
5f441bccbeca5d3e8530647035e5db2b1708897c
[ "Apache-2.0" ]
15
2021-06-25T11:03:20.000Z
2022-03-09T07:20:04.000Z
tools/test/runtime_resources.bzl
pswaminathan/grab-bazel-common
5f441bccbeca5d3e8530647035e5db2b1708897c
[ "Apache-2.0" ]
12
2021-07-28T08:27:01.000Z
2022-03-15T08:35:43.000Z
tools/test/runtime_resources.bzl
pswaminathan/grab-bazel-common
5f441bccbeca5d3e8530647035e5db2b1708897c
[ "Apache-2.0" ]
5
2021-07-28T12:43:33.000Z
2021-12-14T17:37:39.000Z
""" A rule to collect all dependencies' Android resource jars that is made available only on compile time and get them loaded during runtime It works by iterating through the transitive compile time jars of all given target and retrieving jar files that ends with `_resources.jar` into a JavaInfo which can then be loa...
30.833333
80
0.658559
da40bc27b56414e79b1c208f3d26bc7da28cd3f2
1,596
py
Python
util/preprocessing/aspectawarepreprocessor.py
baishalidutta/Super_Resolution
d8fd94d1fcb6d6d2e2410dc93d26a9e46869bc7a
[ "Apache-2.0" ]
null
null
null
util/preprocessing/aspectawarepreprocessor.py
baishalidutta/Super_Resolution
d8fd94d1fcb6d6d2e2410dc93d26a9e46869bc7a
[ "Apache-2.0" ]
null
null
null
util/preprocessing/aspectawarepreprocessor.py
baishalidutta/Super_Resolution
d8fd94d1fcb6d6d2e2410dc93d26a9e46869bc7a
[ "Apache-2.0" ]
null
null
null
__author__ = "Baishali Dutta" __copyright__ = "Copyright (C) 2021 Baishali Dutta" __license__ = "Apache License 2.0" __version__ = "0.1" # import the necessary packages import imutils import cv2 class AspectAwarePreprocessor: def __init__(self, width, height, inter=cv2.INTER_AREA): # store the target image width, ...
30.692308
59
0.701754
04370674f289796b1d53e7ac6855f32fc09b6b63
814
py
Python
example/plugins/documents.py
ekonda/kutana
902f9d521c10c6c7ccabb1387ee3d87db5e2eba6
[ "MIT" ]
69
2018-10-05T21:42:51.000Z
2022-03-16T17:22:21.000Z
example/plugins/documents.py
ekonda/kutana
902f9d521c10c6c7ccabb1387ee3d87db5e2eba6
[ "MIT" ]
41
2018-10-20T09:18:43.000Z
2021-11-22T12:19:44.000Z
example/plugins/documents.py
ekonda/kutana
902f9d521c10c6c7ccabb1387ee3d87db5e2eba6
[ "MIT" ]
26
2018-10-20T09:13:42.000Z
2021-12-24T17:01:02.000Z
from kutana import Plugin, Attachment, get_path, t plugin = Plugin(name=t("Attachments"), description=t("Sends some attachments (.attachments)")) @plugin.on_commands(["attachments"]) async def __(msg, ctx): # Image with open(get_path(__file__, "assets/pizza.png"), "rb") as fh: image = Attachment.new...
31.307692
94
0.664619
75326f157cfb75842c04f445e8941085934c9fee
442
py
Python
zbior/65/reader.py
bartekpacia/informatyka-frycz
6fdbbdea0c6b6a710378f22e90d467c9f91e64aa
[ "MIT" ]
2
2021-03-06T22:09:44.000Z
2021-03-14T14:41:03.000Z
zbior/65/reader.py
bartekpacia/informatyka-frycz
6fdbbdea0c6b6a710378f22e90d467c9f91e64aa
[ "MIT" ]
1
2020-03-25T15:42:47.000Z
2020-10-06T21:41:14.000Z
zbior/65/reader.py
bartekpacia/informatyka-frycz
6fdbbdea0c6b6a710378f22e90d467c9f91e64aa
[ "MIT" ]
null
null
null
from typing import List, Tuple def read_data() -> List[Tuple[str, str, float]]: ulamki: List[Tuple[str, str, float]] = [] with open("dane_ulamki.txt") as f: for line in f: sline = line.strip() licznik, mianownik = sline.split() ulamek_wartosc = int(licznik) / int(m...
26
58
0.588235
5da9cf9a2d3eedce68adcbaead80db1959df699a
4,306
py
Python
archive/scripts/Human_experiment_lvl_sim/nbconverted/4_sim_experiment_corrected.py
ajlee21/Batch_effects_simulation
d707321346de48de5e63cf251280bdf9372be59c
[ "BSD-3-Clause" ]
6
2020-05-04T15:16:32.000Z
2021-02-28T04:49:21.000Z
archive/scripts/Human_experiment_lvl_sim/nbconverted/4_sim_experiment_corrected.py
ajlee21/Batch_effects_simulation
d707321346de48de5e63cf251280bdf9372be59c
[ "BSD-3-Clause" ]
12
2020-02-27T20:12:36.000Z
2021-04-07T20:28:35.000Z
archive/scripts/Human_experiment_lvl_sim/nbconverted/4_sim_experiment_corrected.py
ajlee21/Batch_effects_simulation
d707321346de48de5e63cf251280bdf9372be59c
[ "BSD-3-Clause" ]
2
2019-06-02T18:29:17.000Z
2020-02-13T09:33:37.000Z
# coding: utf-8 # # Simulation experiment using noise-corrected data # # Run entire simulation experiment multiple times to generate confidence interval. The simulation experiment can be found in ```functions/pipeline.py``` # In[1]: get_ipython().run_line_magic('load_ext', 'autoreload') get_ipython().run_line_ma...
22.663158
153
0.610543
5ee7c6ec5fb133ec91b73fd6644ab131bc85d353
3,495
py
Python
src/number_detection.py
SmBe19/Nonograms
aa4d707f7f5197220552d8b2952fa15e3e3834cd
[ "MIT" ]
null
null
null
src/number_detection.py
SmBe19/Nonograms
aa4d707f7f5197220552d8b2952fa15e3e3834cd
[ "MIT" ]
null
null
null
src/number_detection.py
SmBe19/Nonograms
aa4d707f7f5197220552d8b2952fa15e3e3834cd
[ "MIT" ]
null
null
null
import os import time import pytesseract from PIL import Image ROOT_PATH = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) OCR_PATH = os.path.join(ROOT_PATH, 'ocr') DATA_PATH = os.path.join(ROOT_PATH, 'data') WHITE = (255, 255, 255) EMPTY_CUTOFF = 0.99 def white_ratio(region: Image) -> float: white_...
28.414634
118
0.601144
02a2c7d1bd26384c403a353518bfef0ae15d24ec
3,497
py
Python
bayesian/__init__.py
Preeticp/fabric8-analytics-server
aa03f3f0032bd741821d3a789e95a15aea834a48
[ "Apache-2.0" ]
null
null
null
bayesian/__init__.py
Preeticp/fabric8-analytics-server
aa03f3f0032bd741821d3a789e95a15aea834a48
[ "Apache-2.0" ]
null
null
null
bayesian/__init__.py
Preeticp/fabric8-analytics-server
aa03f3f0032bd741821d3a789e95a15aea834a48
[ "Apache-2.0" ]
null
null
null
"""Module with the declaration of web application and its basic endpoints.""" import logging import os from flask import Flask from flask import Response from flask import g from flask import redirect from flask import request from flask import url_for from flask_appconfig import AppConfig from flask_security import ...
32.990566
96
0.682585
660033613450eebb6375547d3a0ef4e2a0603420
17,000
py
Python
nilearn/regions/tests/test_region_extractor.py
Qin-Ming/nilearn
82f4075d8a8ea9aec25e66bd87ebb79a6be6d32f
[ "BSD-2-Clause" ]
827
2015-01-30T23:11:42.000Z
2022-03-29T21:21:05.000Z
nilearn/regions/tests/test_region_extractor.py
Qin-Ming/nilearn
82f4075d8a8ea9aec25e66bd87ebb79a6be6d32f
[ "BSD-2-Clause" ]
2,845
2015-01-04T22:14:41.000Z
2022-03-31T20:28:09.000Z
nilearn/regions/tests/test_region_extractor.py
Qin-Ming/nilearn
82f4075d8a8ea9aec25e66bd87ebb79a6be6d32f
[ "BSD-2-Clause" ]
484
2015-02-03T10:58:19.000Z
2022-03-29T21:57:16.000Z
""" Test Region Extractor and its functions """ import numpy as np import nibabel import pytest from scipy import ndimage from nilearn.regions import (connected_regions, RegionExtractor, connected_label_regions) from nilearn.regions.region_extractor import (_threshold_maps_ratio, ...
42.079208
93
0.640529
a9f9d7bb9865d8ca8d30f93c83f323850e73c770
2,863
py
Python
main.py
picass02005/PyMacro-async
5945de7be39793c42d2e1d53a6050809d962338d
[ "MIT" ]
1
2021-08-10T19:50:57.000Z
2021-08-10T19:50:57.000Z
main.py
picass02005/PyMacro-async
5945de7be39793c42d2e1d53a6050809d962338d
[ "MIT" ]
null
null
null
main.py
picass02005/PyMacro-async
5945de7be39793c42d2e1d53a6050809d962338d
[ "MIT" ]
null
null
null
import asyncio import gc import os import psutil import sys from core_modules.keyboard_handler import KeyboardHandler from core_modules.macro_handler import MacroHandler from core_modules.tray import Tray from global_modules import logs from global_modules.get_config import get_config from global_modules.macro_manage...
25.792793
120
0.657352
35bb5ac1200646e41f3275a250552b234b800421
2,653
py
Python
sunpos.py
marcocipriani01/AllSky-new
8e3951bccdb4709ef3abfeb7c5bf8961e9c8d3f1
[ "MIT" ]
null
null
null
sunpos.py
marcocipriani01/AllSky-new
8e3951bccdb4709ef3abfeb7c5bf8961e9c8d3f1
[ "MIT" ]
null
null
null
sunpos.py
marcocipriani01/AllSky-new
8e3951bccdb4709ef3abfeb7c5bf8961e9c8d3f1
[ "MIT" ]
null
null
null
# Credits: # https://levelup.gitconnected.com/python-sun-position-for-solar-energy-and-research-7a4ead801777 import datetime from dateutil.tz import tzutc from math import sin, cos, tan, asin, atan2, radians as rad, degrees as deg def sun_position(location, utc=None, refraction=True): if utc is None: utc...
34.907895
97
0.637392
eb9c6f42fc5818ffc473f6d5a02e2c54848f3107
397
py
Python
QuickTutor/asgi.py
caleb-bodishbaugh/cs3240-s20-QuickTutor
9d575fd85496a7c2dab215610de2ba9ef58559a0
[ "Unlicense", "MIT" ]
1
2021-08-20T15:23:03.000Z
2021-08-20T15:23:03.000Z
QuickTutor/asgi.py
caleb-bodishbaugh/cs3240-s20-QuickTutor
9d575fd85496a7c2dab215610de2ba9ef58559a0
[ "Unlicense", "MIT" ]
6
2021-03-19T04:35:36.000Z
2022-01-13T02:48:36.000Z
QuickTutor/asgi.py
caleb-bodishbaugh/cs3240-s20-QuickTutor
9d575fd85496a7c2dab215610de2ba9ef58559a0
[ "Unlicense", "MIT" ]
1
2021-08-20T15:22:48.000Z
2021-08-20T15:22:48.000Z
""" ASGI config for QuickTutor project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
79a0c5045ab3bfbd869207b3158d41a654033599
8,628
py
Python
trinity/components/builtin/network_db/component.py
teotoplak/trinity
6c67b5debfb94f74d0162c70f92ae3d13918b174
[ "MIT" ]
null
null
null
trinity/components/builtin/network_db/component.py
teotoplak/trinity
6c67b5debfb94f74d0162c70f92ae3d13918b174
[ "MIT" ]
null
null
null
trinity/components/builtin/network_db/component.py
teotoplak/trinity
6c67b5debfb94f74d0162c70f92ae3d13918b174
[ "MIT" ]
null
null
null
import asyncio from argparse import ( Namespace, ArgumentParser, _SubParsersAction, ) from typing import Iterable from lahja import EndpointAPI from sqlalchemy.orm import Session from eth_utils import to_tuple from p2p.service import BaseService from p2p.tracking.connection import ( BaseConnectionTr...
34.650602
100
0.631548
1291759f4b69437dcb17dc586cd551e0a3d69dd9
2,786
py
Python
examples/pipeline/hetero_feature_selection/pipeline-hetero-feature-selection-fast-sbt.py
qixiuai/FATE
6d50af65b96b5b226afda30dfa8e4a1e5746952d
[ "Apache-2.0" ]
null
null
null
examples/pipeline/hetero_feature_selection/pipeline-hetero-feature-selection-fast-sbt.py
qixiuai/FATE
6d50af65b96b5b226afda30dfa8e4a1e5746952d
[ "Apache-2.0" ]
null
null
null
examples/pipeline/hetero_feature_selection/pipeline-hetero-feature-selection-fast-sbt.py
qixiuai/FATE
6d50af65b96b5b226afda30dfa8e4a1e5746952d
[ "Apache-2.0" ]
null
null
null
# # Copyright 2019 The FATE 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 appli...
30.615385
93
0.622757
a316bc543164db3ea1f947a610e805ad4ea09cd6
3,402
py
Python
dataset/cifar10.py
zpc-666/Paddle-Stochastic-Depth-ResNet110
bb8b5b90052feef39fafd2a790f08b80b45fbe41
[ "Apache-2.0" ]
null
null
null
dataset/cifar10.py
zpc-666/Paddle-Stochastic-Depth-ResNet110
bb8b5b90052feef39fafd2a790f08b80b45fbe41
[ "Apache-2.0" ]
null
null
null
dataset/cifar10.py
zpc-666/Paddle-Stochastic-Depth-ResNet110
bb8b5b90052feef39fafd2a790f08b80b45fbe41
[ "Apache-2.0" ]
1
2021-08-07T14:56:44.000Z
2021-08-07T14:56:44.000Z
# coding: utf-8 # Copyright (c) 2021 PaddlePaddle 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 # Un...
45.36
142
0.6796
926c0aba71f08b30bf3021e277e2afaa526b64c6
1,753
py
Python
thermal-story.py
papayapeter/thermal-story
9980a4efa250ed79a1dcb50c490eecc596b50041
[ "MIT" ]
null
null
null
thermal-story.py
papayapeter/thermal-story
9980a4efa250ed79a1dcb50c490eecc596b50041
[ "MIT" ]
null
null
null
thermal-story.py
papayapeter/thermal-story
9980a4efa250ed79a1dcb50c490eecc596b50041
[ "MIT" ]
null
null
null
# zeno gries # thermal story # 2019 # using froked adafruit library version (with german and french letter support) import os import serial import adafruit_thermal_printer import readline # establish objects uart = serial.Serial('/dev/serial0', baudrate=9600, timeout=3000) ThermalPrinter = adafruit_thermal_printer.ge...
25.779412
79
0.575014
9e3a5fcced1827da22b849360de052d12a235ccc
162
py
Python
CalibTracker/SiStripCommon/python/shallowTree_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
CalibTracker/SiStripCommon/python/shallowTree_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
CalibTracker/SiStripCommon/python/shallowTree_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms shallowTree = cms.EDAnalyzer( "ShallowTree", outputCommands = cms.untracked.vstring( 'drop *', ) )
18
42
0.660494
079d8f7806bfa7bbf91184736e437762027c0e1d
12,369
py
Python
site.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
1
2020-03-12T16:44:10.000Z
2020-03-12T16:44:10.000Z
site.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
null
null
null
site.py
theclashingfritz/Cog-Invasion-Online-Dump
2561abbacb3e2e288e06f3f04b935b5ed589c8f8
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.2.4 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: site import sys, os, __builtin__, traceback PREFIXES = [ sys.prefix, sys.exec_prefix] ENABLE_USER_SITE = None USER_SITE = None USER_BAS...
28.304348
459
0.567871
07dcc830cd8a4c2e6ca7219061211006d558120b
24,420
py
Python
gtag/gtag.py
manatlan/gtag
1e31cf9483a121cc769831ff6b94e7663a1eb0bf
[ "Apache-2.0" ]
10
2020-05-19T07:17:37.000Z
2021-11-15T09:40:30.000Z
gtag/gtag.py
manatlan/gtag
1e31cf9483a121cc769831ff6b94e7663a1eb0bf
[ "Apache-2.0" ]
1
2020-06-19T11:48:22.000Z
2020-06-19T15:13:11.000Z
gtag/gtag.py
manatlan/gtag
1e31cf9483a121cc769831ff6b94e7663a1eb0bf
[ "Apache-2.0" ]
1
2020-10-02T00:52:58.000Z
2020-10-02T00:52:58.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # ############################################################################# # Apache2 2020 - manatlan manatlan[at]gmail(dot)com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
32.301587
160
0.522768