hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
51efc92fda90ed28e830f0577db776641952356a
7,012
py
Python
torch_glow/tests/utils.py
chenccfb/glow
1ffb9d61d45912b2e0255beda61d60679f23c49c
[ "Apache-2.0" ]
null
null
null
torch_glow/tests/utils.py
chenccfb/glow
1ffb9d61d45912b2e0255beda61d60679f23c49c
[ "Apache-2.0" ]
null
null
null
torch_glow/tests/utils.py
chenccfb/glow
1ffb9d61d45912b2e0255beda61d60679f23c49c
[ "Apache-2.0" ]
null
null
null
# isort:skip_file from __future__ import absolute_import, division, print_function, unicode_literals import itertools import os from contextlib import contextmanager from copy import deepcopy import torch import torch_glow GLOW_FUSION_GROUP = "glow::FusionGroup" SUBGRAPH_ATTR = "Subgraph" BACKEND_NAME_KEY = "BACKEND...
37.698925
118
0.662436
836aa1b0950f8d81316860ab10020c14a2970c6f
16,792
py
Python
sherlockpipe/ml/ml_model_builder.py
anthuil/SHERLOCK
e768a6375ded6c3ba1d07784afc2682e95228d3a
[ "MIT" ]
1
2022-01-29T17:55:18.000Z
2022-01-29T17:55:18.000Z
sherlockpipe/ml/ml_model_builder.py
anthuil/SHERLOCK
e768a6375ded6c3ba1d07784afc2682e95228d3a
[ "MIT" ]
null
null
null
sherlockpipe/ml/ml_model_builder.py
anthuil/SHERLOCK
e768a6375ded6c3ba1d07784afc2682e95228d3a
[ "MIT" ]
null
null
null
import keras class MLModelBuilder: def __init__(self) -> None: super().__init__() def get_flux_branch(self, name): flux_input = keras.Input(shape=(2500, 7), name=name) # (flux, detrended_flux1... detrended_flux5, flux_model) flux model by transit params and s...
73.008696
155
0.725286
633688d3bc2aa189b43650d22491f55bf2114c84
17,053
py
Python
Rectangle2DFlowControlWithRL/probes.py
gonanc13/Cylinder2DFlowControlDRL
0a2ec37f15971d90bdbf4d64274799ac47803be3
[ "MIT" ]
null
null
null
Rectangle2DFlowControlWithRL/probes.py
gonanc13/Cylinder2DFlowControlDRL
0a2ec37f15971d90bdbf4d64274799ac47803be3
[ "MIT" ]
null
null
null
Rectangle2DFlowControlWithRL/probes.py
gonanc13/Cylinder2DFlowControlDRL
0a2ec37f15971d90bdbf4d64274799ac47803be3
[ "MIT" ]
null
null
null
import numpy as np from mpi4py import MPI as py_mpi from dolfin import * try: from iufl import icompile from ufl.corealg.traversal import traverse_unique_terminals from iufl.operators import eigw except ImportError: print('iUFL can be obtained from https://github.com/MiroK/ufl-interpreter') class Dr...
37.233624
133
0.567877
de78376394a71d4af2a50535c0e7e7bb4519dea3
73,472
py
Python
plotly/graph_objs/_histogram2dcontour.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
1
2018-07-16T01:51:47.000Z
2018-07-16T01:51:47.000Z
plotly/graph_objs/_histogram2dcontour.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/graph_objs/_histogram2dcontour.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceType import copy class Histogram2dContour(BaseTraceType): # autobinx # -------- @property def autobinx(self): """ Determines whether or not the x axis bin attributes are picked by an algorithm. Note that this should be set to false if ...
35.787628
89
0.554075
65f72d0e662c495e89bf3931180cde5e0cf9ce98
2,211
py
Python
tests/core/test_encryption.py
squeaknode/squeak
e2c7159685728bc0d90b4b24fdfb4cc6084909fd
[ "MIT" ]
2
2018-09-19T08:38:40.000Z
2021-09-29T02:17:19.000Z
tests/core/test_encryption.py
squeaknode/squeak
e2c7159685728bc0d90b4b24fdfb4cc6084909fd
[ "MIT" ]
11
2021-12-17T12:32:19.000Z
2022-03-29T07:48:45.000Z
tests/core/test_encryption.py
yzernik/squeak
669ffa969594d59bc67f7cb4d225073d1a9ff2cf
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2020 Jonathan Zernik # # 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, mer...
40.944444
87
0.782451
33992d06c8a20b77a1e0c473732817e03b962a8c
4,324
py
Python
2018/get_elo_2018.py
crsmi/audl-elo
3787baaf2359fb2645bc265555bc92e16ed44625
[ "MIT" ]
2
2019-04-18T21:41:38.000Z
2019-07-02T01:15:26.000Z
2018/get_elo_2018.py
crsmi/audl-elo
3787baaf2359fb2645bc265555bc92e16ed44625
[ "MIT" ]
null
null
null
2018/get_elo_2018.py
crsmi/audl-elo
3787baaf2359fb2645bc265555bc92e16ed44625
[ "MIT" ]
null
null
null
import pandas as pd import datetime import math def four_pad(s): if len(s) < 4: return four_pad("0" + s) return s def fill(teams,games): num_games = len(games) games["gameorder"] = pd.Series(range(1,num_games+1)) game_ids = [] game_result = [] for i,row in games.iterrows(): ...
33.007634
212
0.606152
b14c7ac4884da3d491b09ee767d0b36904ae8f0e
78
py
Python
API/Flask_API/run.py
akhil-eppa/Auto-FAQ-Generation
3131001e0a2a86a1cd53c128cf081d015ba08b9d
[ "Apache-2.0" ]
null
null
null
API/Flask_API/run.py
akhil-eppa/Auto-FAQ-Generation
3131001e0a2a86a1cd53c128cf081d015ba08b9d
[ "Apache-2.0" ]
null
null
null
API/Flask_API/run.py
akhil-eppa/Auto-FAQ-Generation
3131001e0a2a86a1cd53c128cf081d015ba08b9d
[ "Apache-2.0" ]
1
2022-02-06T13:25:14.000Z
2022-02-06T13:25:14.000Z
from FAQs import app if __name__ == '__main__': app.run(host='0.0.0.0')
15.6
27
0.628205
bb2b7b79f1c5dbeb029b6edbab8060192c10ef0a
1,746
py
Python
lintcode/easy/two_sum/py/two_sum2.py
lilsweetcaligula/Online-Judges
48454a8e6b5b86f80e89eca1b396480df8960cfd
[ "MIT" ]
null
null
null
lintcode/easy/two_sum/py/two_sum2.py
lilsweetcaligula/Online-Judges
48454a8e6b5b86f80e89eca1b396480df8960cfd
[ "MIT" ]
null
null
null
lintcode/easy/two_sum/py/two_sum2.py
lilsweetcaligula/Online-Judges
48454a8e6b5b86f80e89eca1b396480df8960cfd
[ "MIT" ]
null
null
null
class Solution: """ @param seq : A sorted (x1 <= x2 ... <= xN) linearly sequential iterable (i.e. array) @param target : Item to be on a lookout for. @param lo : Lower bound to start the search at. @param hi : Upper exclusive bound to terminate the search at. @param key : The key a...
31.745455
91
0.439863
8c73f5ebd6d2753650e77c457f6c6de29867a79d
760
py
Python
emailtemplates/settings.py
RG1BB5/django-html-emailtemplates
f2df89ab43df76ed15d53d6de62b34c44dccf9c1
[ "BSD-3-Clause" ]
null
null
null
emailtemplates/settings.py
RG1BB5/django-html-emailtemplates
f2df89ab43df76ed15d53d6de62b34c44dccf9c1
[ "BSD-3-Clause" ]
null
null
null
emailtemplates/settings.py
RG1BB5/django-html-emailtemplates
f2df89ab43df76ed15d53d6de62b34c44dccf9c1
[ "BSD-3-Clause" ]
null
null
null
from django.apps import apps as django_apps from django.conf import settings as django_settings ALLOWS_LOOPS = getattr(django_settings, 'EMAIL_TEMPLATE_ALLOW_LOOPS', False) def get_email_template_model(): from emailtemplates.models import EmailTemplate if getattr(django_settings, 'EMAIL_TEMPLATE_MODEL', Fal...
38
104
0.821053
a0e51acead5c4cce0251e14189c766115dda8883
920
py
Python
setup.py
Lonsofore/FAQTelegramBot
5044aa9e77faef73b7d86c3cc8b74afd1fa88ecb
[ "Apache-2.0" ]
1
2019-11-20T04:17:04.000Z
2019-11-20T04:17:04.000Z
setup.py
Lonsofore/FAQTelegramBot
5044aa9e77faef73b7d86c3cc8b74afd1fa88ecb
[ "Apache-2.0" ]
null
null
null
setup.py
Lonsofore/FAQTelegramBot
5044aa9e77faef73b7d86c3cc8b74afd1fa88ecb
[ "Apache-2.0" ]
null
null
null
from io import open from setuptools import setup, find_packages from os.path import join, dirname from faqtelegrambot import __version__ with open('README.rst', 'rt', encoding='utf8') as f: readme = f.read() with open('requirements.txt', encoding='utf-8') as f: requirements = f.read() se...
24.864865
60
0.651087
82673f4965845ea876fb755901ccad0282b17f07
11,377
py
Python
train_rgb.py
masataka46/MultimodalDL
cc11b5bb9b5e7f7390380023067ad6a7e206de4b
[ "MIT" ]
33
2016-11-14T11:41:03.000Z
2021-11-30T10:46:01.000Z
train_rgb.py
reborm/MultimodalDL
cc11b5bb9b5e7f7390380023067ad6a7e206de4b
[ "MIT" ]
1
2018-04-02T09:32:25.000Z
2019-06-17T00:27:10.000Z
train_rgb.py
reborm/MultimodalDL
cc11b5bb9b5e7f7390380023067ad6a7e206de4b
[ "MIT" ]
14
2017-04-04T18:56:01.000Z
2021-04-12T06:20:18.000Z
#!/usr/bin/env python """Example code of learning a RGB dataset by the stage1 of Multimodal Deep Learning model. Prerequisite: To run this example, crop the center of ILSVRC2012 training and validation images and scale them to 256x256, and make two lists of space- separated CSV whose first column is full path to image...
33.560472
122
0.594797
2e7f5b8816e6bb480cf96ee3c12ef1a2ef490c7d
1,697
py
Python
pyinsteon/handlers/from_device/x10_received.py
pyinsteon/pyinsteon
1ecc2ed3c2fc4bc333d76d9238ffdcf44e7efdd5
[ "MIT" ]
15
2020-07-08T05:29:14.000Z
2022-03-24T18:56:26.000Z
pyinsteon/handlers/from_device/x10_received.py
bshep/pyinsteon
7025cb6f3beb42f43c6a13799eff0a6b77e38e69
[ "MIT" ]
107
2019-06-03T09:23:02.000Z
2022-03-31T23:12:38.000Z
pyinsteon/handlers/from_device/x10_received.py
teharris1/pyinsteon
9476473676d714a62f0cfcc5124f7cd7e96de98b
[ "MIT" ]
16
2019-01-24T01:09:49.000Z
2022-02-24T03:48:42.000Z
"""Receive an X10 message.""" from ... import pub from ...constants import X10Commands, X10CommandType from ...topics import X10_RECEIVED from ...utils import byte_to_command, byte_to_unitcode, parse_x10 from ...x10_address import create from .. import inbound_handler from ..inbound_base import InboundHandlerBase cl...
35.354167
81
0.65056
1e2d5ada5c8391e17b80bdc37264776629baf012
682
py
Python
FEIT_UTS_hackathon/users/migrations/0001_initial.py
HHry0918/FEIT_Hackathon
222bcf6390dddb236da47b20689c66aa69f912fa
[ "MIT" ]
null
null
null
FEIT_UTS_hackathon/users/migrations/0001_initial.py
HHry0918/FEIT_Hackathon
222bcf6390dddb236da47b20689c66aa69f912fa
[ "MIT" ]
null
null
null
FEIT_UTS_hackathon/users/migrations/0001_initial.py
HHry0918/FEIT_Hackathon
222bcf6390dddb236da47b20689c66aa69f912fa
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-08-14 03:29 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.BigAutoField(...
27.28
117
0.573314
59d612156c54ebe7b3deb2f10e42b033188910b2
30,448
py
Python
deepLPI.py
dls03/DeepLPI
619892db11e61c469ac36e58139bbe0c426161ef
[ "MIT" ]
1
2021-06-05T17:39:30.000Z
2021-06-05T17:39:30.000Z
deepLPI.py
dls03/DeepLPI
619892db11e61c469ac36e58139bbe0c426161ef
[ "MIT" ]
null
null
null
deepLPI.py
dls03/DeepLPI
619892db11e61c469ac36e58139bbe0c426161ef
[ "MIT" ]
2
2020-04-11T20:02:44.000Z
2021-11-23T04:51:37.000Z
import keras from keras.layers import Input, LSTM, Dense, Dropout, Activation, Flatten from keras.models import Model import numpy as np from keras.utils import to_categorical from numpy import array from keras import regularizers import numpy as np import pandas as pd import csv import scipy.io as sio from keras.layer...
42.406685
223
0.709373
8dc6532d27cca36b380fb98aaaff92d76512302b
1,332
py
Python
atcodertools/release_management/version_check.py
koba-e964/atcoder-tools
9a7221af631a141afccfcb6e26a017cd797ceb47
[ "MIT" ]
null
null
null
atcodertools/release_management/version_check.py
koba-e964/atcoder-tools
9a7221af631a141afccfcb6e26a017cd797ceb47
[ "MIT" ]
null
null
null
atcodertools/release_management/version_check.py
koba-e964/atcoder-tools
9a7221af631a141afccfcb6e26a017cd797ceb47
[ "MIT" ]
null
null
null
import json import os import time import requests from atcodertools.fileutils.artifacts_cache import get_cache_file_path class VersionCheckError(Exception): pass cache_file_path = get_cache_file_path('version_cache.txt') HOUR_IN_SEC = 60 * 60 def _fetch_latest_version(): dic = json.loads(requests.get( ...
22.576271
70
0.672673
1d2180874fd53a8cd096bf6f2236357581cb36c0
732
py
Python
imix/models/vqa_models/uniter/misc.py
linxi1158/iMIX
af87a17275f02c94932bb2e29f132a84db812002
[ "Apache-2.0" ]
23
2021-06-26T08:45:19.000Z
2022-03-02T02:13:33.000Z
imix/models/vqa_models/uniter/misc.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
null
null
null
imix/models/vqa_models/uniter/misc.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
9
2021-06-10T02:36:20.000Z
2021-11-09T02:18:16.000Z
"""Copyright (c) Microsoft Corporation. Licensed under the MIT license. Misc utilities """ import torch import logging logger = logging.getLogger(__name__) def set_dropout(model, drop_p): for name, module in model.named_modules(): # we might want to tune dropout for smaller dataset if isinstance...
28.153846
71
0.661202
87a1c9294b3549cb1a48984b06eb0403d1f29c4f
2,029
py
Python
timeseries-streaming/timeseries-python-applications/MLPipelineExamples/test_pipelines/timeseries_local_simple_data.py
rjbordon/dataflow-sample-applications
e7a58ac3fc7af9022d0ae61702a5f6043bc4b2db
[ "Apache-2.0" ]
5
2020-09-22T12:25:03.000Z
2021-07-28T22:47:07.000Z
timeseries-streaming/timeseries-python-applications/MLPipelineExamples/test_pipelines/timeseries_local_simple_data.py
rjbordon/dataflow-sample-applications
e7a58ac3fc7af9022d0ae61702a5f6043bc4b2db
[ "Apache-2.0" ]
null
null
null
timeseries-streaming/timeseries-python-applications/MLPipelineExamples/test_pipelines/timeseries_local_simple_data.py
rjbordon/dataflow-sample-applications
e7a58ac3fc7af9022d0ae61702a5f6043bc4b2db
[ "Apache-2.0" ]
2
2021-04-29T04:49:17.000Z
2022-01-27T19:59:14.000Z
# Lint as: python2, python3 # Copyright 2020 Google LLC. 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 req...
39.784314
86
0.722031
6f74b507390a727113086e69508f167761704128
14,518
py
Python
samples/nevera/nevera.py
groloboy/Mask_RCNN_fridge
0db9ccef6b01ab374b85269d7777eff97b64c3da
[ "MIT" ]
null
null
null
samples/nevera/nevera.py
groloboy/Mask_RCNN_fridge
0db9ccef6b01ab374b85269d7777eff97b64c3da
[ "MIT" ]
null
null
null
samples/nevera/nevera.py
groloboy/Mask_RCNN_fridge
0db9ccef6b01ab374b85269d7777eff97b64c3da
[ "MIT" ]
null
null
null
""" Mask R-CNN Train on the toy Nevera dataset and implement color splash effect. Copyright (c) 2018 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla ------------------------------------------------------------ Usage: import the module (see Jupyter notebooks for exa...
38.407407
94
0.586376
826651bbc7177c0922ceedab346dec79745a877e
1,295
py
Python
pythonLibs/sArray.py
Justist/justLibraries
fdf9dea2291b600c6e46ab2356321e01fb8ca547
[ "Apache-2.0" ]
null
null
null
pythonLibs/sArray.py
Justist/justLibraries
fdf9dea2291b600c6e46ab2356321e01fb8ca547
[ "Apache-2.0" ]
null
null
null
pythonLibs/sArray.py
Justist/justLibraries
fdf9dea2291b600c6e46ab2356321e01fb8ca547
[ "Apache-2.0" ]
null
null
null
import sys from copy import deepcopy # Defines a list of lists of specified dimensions # Acts the same as a C++ array definition: # To create an array[w][x][y][z][etc], the correct call is # sArray(w, x, y, z, etc) # The amount of dimensions is, in theory, only limited by # available memory. def sArray(*dimensions): ...
30.116279
58
0.713514
34c86072b0da82e29660ec5ca974ab0e2c21b9c5
3,046
py
Python
Tests/casino/number.py
MarcPartensky/Python-2020
1a4ef2edfea6efb353249d5e32c06b230b293c62
[ "MIT" ]
1
2020-09-02T10:41:49.000Z
2020-09-02T10:41:49.000Z
Tests/casino/number.py
MarcPartensky/Python-2020
1a4ef2edfea6efb353249d5e32c06b230b293c62
[ "MIT" ]
null
null
null
Tests/casino/number.py
MarcPartensky/Python-2020
1a4ef2edfea6efb353249d5e32c06b230b293c62
[ "MIT" ]
null
null
null
a = [1.25, 3.4, 1.0, 1.59, 1.08, 1.56, 1.82, 1.02, 1.61, 7.78, 1.69, 7.69, 3.74, 1.19, 1.09, 2.65, 1.07, 1.02, 2.03, 7.71, 2.49, 2.18, 20.52, 1.9, 1.75, 2.03, 2.23, 2.82, 1.24, 1.96, 1.16, 1.59, 9.72, 2.35, 1.0, 1.22, 8.52, 1.85, 1.89, 1.86, 7.74, 1.11, 1.42, 1.0, 1.87, 1.0, 1.0, 2.98, 4.69, 3.97, 1.64, 1.0, 45.98, 2.0...
78.102564
85
0.495404
e92193effa7f0bc8d5ed99ef5ebc36b11a29d622
754
py
Python
main.py
glovguy/ouroboros
6cdd0eb2e57f2a75c03086c7bc70570467cb9468
[ "MIT" ]
null
null
null
main.py
glovguy/ouroboros
6cdd0eb2e57f2a75c03086c7bc70570467cb9468
[ "MIT" ]
null
null
null
main.py
glovguy/ouroboros
6cdd0eb2e57f2a75c03086c7bc70570467cb9468
[ "MIT" ]
null
null
null
from load.project_imports import all_project_python_files from load.nodeFactory import * from circularity.search import find_loops_with_stack from display.graph import display_loops from display.table import display_problem_modules pythonFiles = all_project_python_files() nodeHash = node_hash_from_file_names(pythonFi...
26
57
0.758621
16e546d1c1c3e2a1182a5e40e0d10e0c9d64a81c
2,936
py
Python
test/functional/feature_anchors.py
qogecoin/qogecoin
fce42076f1a2746525374f50f35939392f37ca84
[ "MIT" ]
9
2021-10-30T01:01:50.000Z
2022-02-10T02:20:44.000Z
test/functional/feature_anchors.py
qogecoin/qogecoin
fce42076f1a2746525374f50f35939392f37ca84
[ "MIT" ]
4
2021-10-17T19:59:16.000Z
2021-11-04T19:11:25.000Z
test/functional/feature_anchors.py
qogecoin/qogecoin
fce42076f1a2746525374f50f35939392f37ca84
[ "MIT" ]
7
2021-11-01T09:09:41.000Z
2022-03-23T02:47:30.000Z
#!/usr/bin/env python3 # Copyright (c) 2020-2021 The Bitcoin and Qogecoin Core Authors # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test block-relay-only anchors functionality""" import os from test_framework.p2p import P2P...
34.952381
92
0.650545
8c3c86ebba768d0b55161b251ef3bebb5ab12bea
19,025
py
Python
plugins/keepkey/keepkey.py
deeponion/electrum-deeponion
0cb769ff7cd5eece2db29cc0f78ef5fa376eb9e2
[ "MIT" ]
3
2018-09-29T13:50:29.000Z
2019-05-18T23:09:44.000Z
plugins/keepkey/keepkey.py
truongdoithuong/electrum-deeponion
0cb769ff7cd5eece2db29cc0f78ef5fa376eb9e2
[ "MIT" ]
null
null
null
plugins/keepkey/keepkey.py
truongdoithuong/electrum-deeponion
0cb769ff7cd5eece2db29cc0f78ef5fa376eb9e2
[ "MIT" ]
5
2018-09-29T13:50:34.000Z
2020-11-21T12:46:41.000Z
from binascii import hexlify, unhexlify import traceback import sys from electrum_deeponion.util import bfh, bh2u, UserCancelled from electrum_deeponion.bitcoin import (b58_address_to_hash160, xpub_from_pubkey, TYPE_ADDRESS, TYPE_SCRIPT, is_segwit_address) fr...
43.33713
133
0.592431
3bc8239c0e4b3b1f382d7ffe2c46b09d1535d90b
40,320
py
Python
lib/transaction.py
ZclassicDev/electrum-zcl
81476b270a45575349afcfb973e8347edccbdb14
[ "MIT" ]
null
null
null
lib/transaction.py
ZclassicDev/electrum-zcl
81476b270a45575349afcfb973e8347edccbdb14
[ "MIT" ]
2
2019-01-05T17:00:00.000Z
2019-02-28T15:33:56.000Z
lib/transaction.py
ZclassicDev/electrum-zcl
81476b270a45575349afcfb973e8347edccbdb14
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2011 Thomas Voegtlin # # 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...
37.16129
159
0.594618
50b81bc773919a6c893c01d9ce650f89e5e8e3ae
667
py
Python
models/AttnLayers.py
wenting-zhao/cs6741_replication
fbd8275793c5d2b097458c68bc3bba00144665aa
[ "MIT" ]
null
null
null
models/AttnLayers.py
wenting-zhao/cs6741_replication
fbd8275793c5d2b097458c68bc3bba00144665aa
[ "MIT" ]
null
null
null
models/AttnLayers.py
wenting-zhao/cs6741_replication
fbd8275793c5d2b097458c68bc3bba00144665aa
[ "MIT" ]
null
null
null
from torch import nn class Attention(nn.Module) : def __init__(self, hidden_size) : super(Attention, self).__init__() self.attn1 = nn.Linear(hidden_size*2, hidden_size) self.attn2 = nn.Linear(hidden_size, 1, bias=False) self.tanh = nn.Tanh() def masked_softmax(self, attn_odds...
29
58
0.614693
c8f81ccaa10738a216c19613659f0928672af369
2,845
py
Python
python/streamapp/modules/misc.py
markub3327/AIGarden
d02f86aba55865a3814e9d0731459053f6c7eabb
[ "MIT" ]
null
null
null
python/streamapp/modules/misc.py
markub3327/AIGarden
d02f86aba55865a3814e9d0731459053f6c7eabb
[ "MIT" ]
null
null
null
python/streamapp/modules/misc.py
markub3327/AIGarden
d02f86aba55865a3814e9d0731459053f6c7eabb
[ "MIT" ]
null
null
null
from functools import partial import torch from six.moves import map, zip def matrix_nms( seg_masks, cate_labels, cate_scores, kernel="gaussian", sigma=2.0, sum_masks=None ): """Matrix NMS for multi-class masks. Args: seg_masks (Tensor): shape (n, h, w) cate_labels (Tensor): shape (n), m...
33.081395
85
0.650967
44717d033a28051198198b55a53a1c8bdc3fca59
8,849
py
Python
accounts/views.py
AlexTrapp/SteemLogs
da170b6a61c1b2cf74819db92238f9ae92dae7de
[ "MIT" ]
2
2017-11-18T23:20:30.000Z
2017-11-29T20:10:23.000Z
accounts/views.py
AlexTrapp/SteemLogs
da170b6a61c1b2cf74819db92238f9ae92dae7de
[ "MIT" ]
1
2017-12-31T05:55:19.000Z
2017-12-31T05:55:19.000Z
accounts/views.py
coffeesource-net/coffeesource_app
da170b6a61c1b2cf74819db92238f9ae92dae7de
[ "MIT" ]
3
2017-12-30T15:26:59.000Z
2018-12-08T20:02:04.000Z
import json from steem import Steem from dateutil import parser from django.http import JsonResponse from django.http import Http404 from django.shortcuts import redirect from django.views.generic import TemplateView from django.views.generic import View from django.template.loader import render_to_string from .data ...
31.158451
76
0.567296
898a8722dd499d9cb46bd2625705b90de3f55c65
6,488
py
Python
rubyenv/app.py
schinckel/rubyenv
d4dc1f8764f4d25609ba39605d499f23c2d1975b
[ "MIT" ]
1
2018-09-21T08:35:45.000Z
2018-09-21T08:35:45.000Z
rubyenv/app.py
search5/rubyenv
d4dc1f8764f4d25609ba39605d499f23c2d1975b
[ "MIT" ]
null
null
null
rubyenv/app.py
search5/rubyenv
d4dc1f8764f4d25609ba39605d499f23c2d1975b
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import git import logging import logging.config import os import shutil import sys import tarfile import six from past.builtins import basestring from six.moves.urllib.parse import urlparse, urlencode from six.moves.urllib.request import urlopen from six.moves.url...
31.64878
109
0.584155
23a963c5a176c58cc2b5a1e5705a550d74811666
22,306
py
Python
seqgra/simulator/simulator.py
gifford-lab/seqgra
3c7547878ecda4c00572746b8a07e0d614c9dbef
[ "MIT" ]
null
null
null
seqgra/simulator/simulator.py
gifford-lab/seqgra
3c7547878ecda4c00572746b8a07e0d614c9dbef
[ "MIT" ]
null
null
null
seqgra/simulator/simulator.py
gifford-lab/seqgra
3c7547878ecda4c00572746b8a07e0d614c9dbef
[ "MIT" ]
2
2021-06-14T20:27:40.000Z
2021-06-14T20:29:29.000Z
""" MIT - CSAIL - Gifford Lab - seqgra Generates synthetic sequences based on grammar @author: Konstantin Krismer """ from __future__ import annotations import logging import os import sys import random from typing import Dict, List, Set import numpy as np import pkg_resources import ushuffle import seqgra.constan...
49.349558
213
0.541558
2d939f85569419c17930cc4fe6d66fcd0405721a
284
py
Python
aiocodeforces/member.py
jpark9013/aiocodeforces
710b95449051903f3530970152f3b5371da39609
[ "MIT" ]
5
2020-09-02T18:44:35.000Z
2022-03-06T04:21:03.000Z
aiocodeforces/member.py
jpark9013/aiocodeforces
710b95449051903f3530970152f3b5371da39609
[ "MIT" ]
null
null
null
aiocodeforces/member.py
jpark9013/aiocodeforces
710b95449051903f3530970152f3b5371da39609
[ "MIT" ]
null
null
null
class Member: __slots__ = ["handle"] def __init__(self, dic): self.handle: str = dic["handle"] def __eq__(self, other): return isinstance(other, Member) and self.handle == other.handle def __ne__(self, other): return not self.__eq__(other)
21.846154
72
0.623239
63f64e292049a306c039543fa36e1255c22bd156
2,666
py
Python
tartiflette/language/ast/fragment_definition.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
530
2019-06-04T11:45:36.000Z
2022-03-31T09:29:56.000Z
tartiflette/language/ast/fragment_definition.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
242
2019-06-04T11:53:08.000Z
2022-03-28T07:06:27.000Z
tartiflette/language/ast/fragment_definition.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
36
2019-06-21T06:40:27.000Z
2021-11-04T13:11:16.000Z
from typing import Any, List, Optional from tartiflette.language.ast.base import ExecutableDefinitionNode __all__ = ("FragmentDefinitionNode",) class FragmentDefinitionNode(ExecutableDefinitionNode): """ AST node representing a GraphQL fragment definition. """ __slots__ = ( "name", ...
32.91358
77
0.605401
592481c087fabf4104c688476fec3ea299ff0b98
13,590
py
Python
discord/shard.py
MinerChAI/discord.py
eeabb8ebb6eb5b6af2dea02c8d66c19c0e0e5dff
[ "MIT" ]
null
null
null
discord/shard.py
MinerChAI/discord.py
eeabb8ebb6eb5b6af2dea02c8d66c19c0e0e5dff
[ "MIT" ]
null
null
null
discord/shard.py
MinerChAI/discord.py
eeabb8ebb6eb5b6af2dea02c8d66c19c0e0e5dff
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-2019 Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
35.116279
125
0.622517
3093ebfd380253ff7bd2dad382eccaf5ac298794
13,066
py
Python
master_duel_auto_scan_version.py
sensssz/MasterDuelSimpleTranslateTool
2cdffb2a254e7552d2c315769e865aa47861d1d6
[ "MIT" ]
70
2022-01-23T22:22:56.000Z
2022-03-24T07:38:31.000Z
master_duel_auto_scan_version.py
ykk2061/MasterDuelSimpleTranslateTool
455581a84c046e5544c997cca94a98f7d4b4b94d
[ "MIT" ]
4
2022-01-24T17:40:32.000Z
2022-01-26T09:07:21.000Z
master_duel_auto_scan_version.py
ykk2061/MasterDuelSimpleTranslateTool
455581a84c046e5544c997cca94a98f7d4b4b94d
[ "MIT" ]
27
2022-01-23T22:03:20.000Z
2022-03-06T07:28:43.000Z
import os from re import M import sys from threading import Thread import time from PIL import Image, ImageFile import dhash import sqlite3 import win32api import win32process import win32gui import win32ui import win32con import win32print from ctypes import windll import keyboard ImageFile.LOAD_TRUN...
28.342733
206
0.602862
50931bed9cd1392a7f863a98489fd5085b08b152
6,603
py
Python
microbit/microbit.py
whaleygeek/mb_acc
7a914dd92aa98007320e741e1387c07a2609eba0
[ "MIT" ]
2
2016-11-22T15:46:01.000Z
2020-07-14T21:49:18.000Z
microbit/microbit.py
whaleygeek/mb_acc
7a914dd92aa98007320e741e1387c07a2609eba0
[ "MIT" ]
null
null
null
microbit/microbit.py
whaleygeek/mb_acc
7a914dd92aa98007320e741e1387c07a2609eba0
[ "MIT" ]
null
null
null
# microbit.py 15/09/2015 D.J.Whale """A serial port connection to a micro:bit""" # No specific protocol is implied by this interface. # This just provides a generic transport adaptor to a micro:bit via pyserial # This was cloned (as a starting point) from the mb_remote project. # That project came originally f...
31.146226
109
0.647887
650a8fb13783394e18330e64e9ac1b4a83d6c0e7
8,851
py
Python
cifar/network-slimming/resprune.py
mmendiet/rethinking-network-pruning
b9509ed5e507e60b8c2ecc9884abb5f437a13902
[ "MIT" ]
2
2020-09-03T20:32:57.000Z
2020-09-04T00:47:33.000Z
cifar/network-slimming/resprune.py
mmendiet/rethinking-network-pruning
b9509ed5e507e60b8c2ecc9884abb5f437a13902
[ "MIT" ]
null
null
null
cifar/network-slimming/resprune.py
mmendiet/rethinking-network-pruning
b9509ed5e507e60b8c2ecc9884abb5f437a13902
[ "MIT" ]
null
null
null
import argparse import numpy as np import os import torch import torch.nn as nn from torch.autograd import Variable from torchvision import datasets, transforms from models import * # Prune settings parser = argparse.ArgumentParser(description='PyTorch Slimming CIFAR prune') parser.add_argument('--dataset', type=st...
40.231818
128
0.621851
6ad73f54932a2ad9ac791cb1b9746dd7ed18a96e
1,022
py
Python
mmselfsup/datasets/__init__.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
null
null
null
mmselfsup/datasets/__init__.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
null
null
null
mmselfsup/datasets/__init__.py
dungdinhanh/mmselfsup
67fc764f4f5512701f93e8e1fa39e09ee008a54a
[ "Apache-2.0" ]
1
2022-03-15T11:31:48.000Z
2022-03-15T11:31:48.000Z
# Copyright (c) OpenMMLab. All rights reserved. from .base import BaseDataset from .builder import (DATASETS, DATASOURCES, PIPELINES, build_dataloader, build_dataset, build_datasource) from .data_sources import * # noqa: F401,F403 from .dataset_wrappers import ConcatDataset, RepeatDataset from .d...
46.454545
78
0.783757
1d770472a5a1056906acbe64d6cc3d5b343ffda2
1,388
py
Python
reviews/urls.py
rodrigobmedeiros/bookr
19984d6ee9b325e8d63fdee4185ab9a4fa0818b7
[ "MIT" ]
null
null
null
reviews/urls.py
rodrigobmedeiros/bookr
19984d6ee9b325e8d63fdee4185ab9a4fa0818b7
[ "MIT" ]
null
null
null
reviews/urls.py
rodrigobmedeiros/bookr
19984d6ee9b325e8d63fdee4185ab9a4fa0818b7
[ "MIT" ]
null
null
null
"""bookr URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.0/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-based v...
44.774194
95
0.706772
035d1094961935088baed15f7a429f9912cf50d3
499
py
Python
vxsandbox/__init__.py
praekeltfoundation/vumi-sandbox
1e2dfca8325ce98e52fe32a072749fe4cf7f448d
[ "BSD-3-Clause" ]
1
2021-05-26T08:38:28.000Z
2021-05-26T08:38:28.000Z
vxsandbox/__init__.py
praekelt/vumi-sandbox
1e2dfca8325ce98e52fe32a072749fe4cf7f448d
[ "BSD-3-Clause" ]
24
2015-03-04T08:33:12.000Z
2016-08-18T07:57:12.000Z
vxsandbox/__init__.py
praekeltfoundation/vumi-sandbox
1e2dfca8325ce98e52fe32a072749fe4cf7f448d
[ "BSD-3-Clause" ]
null
null
null
""" Sandbox application worker for Vumi. """ from .worker import Sandbox, JsSandbox, JsFileSandbox from .utils import SandboxError from .resources import ( SandboxResource, LoggingResource, HttpClientResource, MetricsResource, OutboundResource, RedisResource) __version__ = "0.6.2-alpha2" __all__ = [ "San...
31.1875
79
0.749499
86eaa9d8d1a9bc12bf16e2cc33bf49f4bec635f5
7,436
py
Python
mms_tests/test_server.py
srault95/mongo-mail-server
aac2482fd7f211ff77f1097e1a2f20ebd8648abd
[ "BSD-3-Clause" ]
11
2015-04-09T09:38:45.000Z
2021-08-11T04:53:43.000Z
mms_tests/test_server.py
radical-software/mongo-mail-server
aac2482fd7f211ff77f1097e1a2f20ebd8648abd
[ "BSD-3-Clause" ]
1
2018-03-11T09:18:19.000Z
2018-03-11T09:18:19.000Z
mms_tests/test_server.py
srault95/mongo-mail-server
aac2482fd7f211ff77f1097e1a2f20ebd8648abd
[ "BSD-3-Clause" ]
6
2017-05-10T07:56:23.000Z
2019-07-29T07:13:00.000Z
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals from contextlib import contextmanager import os import smtplib from email.utils import getaddresses import gevent from mongo_mail_server import RecordPyMongoDBServer, uncompress, PYMONGO2 from . import utils MSG1 = """X-Envelope-From:...
28.933852
139
0.66326
f89c0172dc8f580ab98beb5d37ad8ff6dacf2e42
5,112
py
Python
antipetros_discordbot/bot_support/sub_support/sub_support_helper/embed_schema.py
Preen1/Antipetros_Discord_Bot
25143f09faf7abede35dee5672a7402595680e9b
[ "MIT" ]
null
null
null
antipetros_discordbot/bot_support/sub_support/sub_support_helper/embed_schema.py
Preen1/Antipetros_Discord_Bot
25143f09faf7abede35dee5672a7402595680e9b
[ "MIT" ]
null
null
null
antipetros_discordbot/bot_support/sub_support/sub_support_helper/embed_schema.py
Preen1/Antipetros_Discord_Bot
25143f09faf7abede35dee5672a7402595680e9b
[ "MIT" ]
null
null
null
""" [summary] [extended_summary] """ # region [Imports] # * Standard Library Imports ------------------------------------------------------------------------------------------------------------------------------------> import gc import os import re import sys import json import lzma import time import queue import ...
33.194805
162
0.662167
2c16c70dee4bee032886e97fda8be7f684d0ee20
6,633
py
Python
cascaded_networks/models/densenet.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
cascaded_networks/models/densenet.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
cascaded_networks/models/densenet.py
admariner/google-research
7cee4b22b925581d912e8d993625c180da2a5a4f
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research 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 applicab...
32.199029
80
0.612393
83ee3b33281c98b4923c5f637c1b9dce1a21e6c4
4,397
py
Python
courses/migrations/0001_initial.py
taufactor/tau-factor
d7883156bd9502742e0ad5c798fa1b2c38c7ff60
[ "MIT" ]
null
null
null
courses/migrations/0001_initial.py
taufactor/tau-factor
d7883156bd9502742e0ad5c798fa1b2c38c7ff60
[ "MIT" ]
null
null
null
courses/migrations/0001_initial.py
taufactor/tau-factor
d7883156bd9502742e0ad5c798fa1b2c38c7ff60
[ "MIT" ]
1
2021-05-18T19:01:14.000Z
2021-05-18T19:01:14.000Z
# Generated by Django 3.2.3 on 2021-05-17 20:40 import courses.defines import django.core.validators from django.db import migrations, models import django.db.models.deletion import enumchoicefield.fields import re import uuid class Migration(migrations.Migration): initial = True dependencie...
48.318681
217
0.585627
f20179e149de7378b7853ef89598c31eb3a0323f
406,340
py
Python
spambayes/windows/py2exe/gen_py/office-9.py
alexeip0/spambayes
0c7d12cf4702ef82974ab16d2a36fa9ccedf185a
[ "PSF-2.0" ]
13
2015-07-03T06:53:47.000Z
2021-02-19T13:21:56.000Z
spambayes/windows/py2exe/gen_py/office-9.py
alexeip0/spambayes
0c7d12cf4702ef82974ab16d2a36fa9ccedf185a
[ "PSF-2.0" ]
5
2015-07-16T07:33:46.000Z
2021-04-05T20:27:52.000Z
spambayes/windows/py2exe/gen_py/office-9.py
alexeip0/spambayes
0c7d12cf4702ef82974ab16d2a36fa9ccedf185a
[ "PSF-2.0" ]
20
2015-05-16T22:42:14.000Z
2021-09-18T17:46:40.000Z
# -*- coding: mbcs -*- # Created by makepy.py version 0.4.95 # By python version 2.4.4 (#71, Feb 5 2007, 15:24:39) [MSC v.1310 32 bit (Intel)] # From type library 'MSO9.DLL' # On Mon Mar 26 16:03:03 2007 """Microsoft Office 9.0 Object Library""" makepy_version = '0.4.95' python_version = 0x20404f0 import win32com.cli...
59.267795
208
0.605889
dd355351af2fb4eb004091caf096258d3a183c31
2,108
py
Python
scripts/countit.py
dcdanko/capalyzer
45f0283109542aaaecc5d28e800b819a0be62726
[ "MIT" ]
1
2019-11-22T16:37:34.000Z
2019-11-22T16:37:34.000Z
scripts/countit.py
dcdanko/capalyzer
45f0283109542aaaecc5d28e800b819a0be62726
[ "MIT" ]
9
2018-05-24T20:47:26.000Z
2019-07-02T21:30:54.000Z
scripts/countit.py
dcdanko/capalyzer
45f0283109542aaaecc5d28e800b819a0be62726
[ "MIT" ]
null
null
null
"""Count the total number of species found at given kmer thresholds. Uses the output of a longform krakenhll summary file as input. """ import click import pandas as pd def get_kmer_counts(myfile): tbl = {} for line in myfile: tkns = line.split(',') sp = tkns[1] k = int(tkns[7]) ...
25.707317
76
0.544592
61182dcafe94967f3d9f042d32c65a5ec8385f74
8,673
py
Python
glhe/properties/fluid_properties.py
stianchris/GLHE
80c3eecca81ffd50d5077f87027c9441292452f5
[ "MIT" ]
2
2018-11-06T08:04:04.000Z
2020-10-09T14:52:36.000Z
glhe/properties/fluid_properties.py
stianchris/GLHE
80c3eecca81ffd50d5077f87027c9441292452f5
[ "MIT" ]
68
2018-03-27T01:43:22.000Z
2019-09-09T12:05:44.000Z
glhe/properties/fluid_properties.py
mitchute/GLHE
80c3eecca81ffd50d5077f87027c9441292452f5
[ "MIT" ]
4
2018-05-24T03:02:44.000Z
2021-08-16T13:54:09.000Z
from typing import Union from CoolProp.CoolProp import PropsSI from numpy import arange from scipy.interpolate import interp1d from glhe.properties.fluid_property_types import FluidPropertyType from glhe.properties.fluid_types import FluidType from glhe.utilities.functions import c_to_k, k_to_c class Fluid(object):...
35.987552
111
0.643145
c5d55a81e123885d5447f0687e197f0500b3fe8c
4,855
py
Python
benchmarks/run-benchmark.py
SimonYang-CS/delta
6707b29f58a30989f40478ce40b3200c48bf37ce
[ "Apache-2.0" ]
null
null
null
benchmarks/run-benchmark.py
SimonYang-CS/delta
6707b29f58a30989f40478ce40b3200c48bf37ce
[ "Apache-2.0" ]
null
null
null
benchmarks/run-benchmark.py
SimonYang-CS/delta
6707b29f58a30989f40478ce40b3200c48bf37ce
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (2021) The Delta Lake Project 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...
38.84
139
0.688568
d1ee950665939790f52f662e2c705a46ae917d83
2,359
py
Python
tensor2tensor/trax/models/__init__.py
vinhngx/tensor2tensor
d510c92f5da10c722d49b11ea298505865b348a7
[ "Apache-2.0" ]
null
null
null
tensor2tensor/trax/models/__init__.py
vinhngx/tensor2tensor
d510c92f5da10c722d49b11ea298505865b348a7
[ "Apache-2.0" ]
null
null
null
tensor2tensor/trax/models/__init__.py
vinhngx/tensor2tensor
d510c92f5da10c722d49b11ea298505865b348a7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
39.983051
78
0.825774
7136a24c32bddfa892803cc7b229d3448e353d38
857
py
Python
medium/python/c0252_513_find-bottom-left-tree-value/00_leetcode_0252.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python/c0252_513_find-bottom-left-tree-value/00_leetcode_0252.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
null
null
null
medium/python/c0252_513_find-bottom-left-tree-value/00_leetcode_0252.py
drunkwater/leetcode
8cc4a07763e71efbaedb523015f0c1eff2927f60
[ "Ruby" ]
3
2018-02-09T02:46:48.000Z
2021-02-20T08:32:03.000Z
# DRUNKWATER TEMPLATE(add description and prototypes) # Question Title and Description on leetcode.com # Function Declaration and Function Prototypes on leetcode.com #513. Find Bottom Left Tree Value #Given a binary tree, find the leftmost value in the last row of the tree. #Example 1: #Input: # 2 # / \ # 1 3 #...
21.425
74
0.584597
68c5a9cbc40ed9200ef426c8603aefbfb7dbfd63
2,023
py
Python
api/lookup/ingest/ncbitaxon_pathopheno.py
bio-ontology-research-group/phenotype-reactor
9e42178399f5af52fdedb7f8a7c0b7bf6c044fd4
[ "CC-BY-4.0" ]
null
null
null
api/lookup/ingest/ncbitaxon_pathopheno.py
bio-ontology-research-group/phenotype-reactor
9e42178399f5af52fdedb7f8a7c0b7bf6c044fd4
[ "CC-BY-4.0" ]
19
2020-02-03T07:33:49.000Z
2022-02-10T12:21:03.000Z
api/lookup/ingest/ncbitaxon_pathopheno.py
bio-ontology-research-group/phenotype-reactor
9e42178399f5af52fdedb7f8a7c0b7bf6c044fd4
[ "CC-BY-4.0" ]
null
null
null
import logging import datetime from api.ingest.source import Source from api.rdf.namespace import PUBCHEM import api.lookup.lookup_elasticsearch as lookup_es import pandas as pd logger = logging.getLogger(__name__) class NCBITaxonPathophenoValueset(Source): # Shrinked list of filtered ncbitaxon terms includ...
36.125
110
0.651508
563e45da50f4b2a39a112256e16b7b876d463248
459
py
Python
project-euler/completed/euler12.py
davidxmoody/kata
d88569584c2390da0e8127258d8751f8a47b7d83
[ "MIT" ]
null
null
null
project-euler/completed/euler12.py
davidxmoody/kata
d88569584c2390da0e8127258d8751f8a47b7d83
[ "MIT" ]
null
null
null
project-euler/completed/euler12.py
davidxmoody/kata
d88569584c2390da0e8127258d8751f8a47b7d83
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import math def get_triangles(): i = 2 tri = 1 while True: yield tri tri += i i += 1 def num_factors(n): # Note that this will be off by one for 1 or for a square number. result = 0 for i in range(1, math.floor(math.sqrt(n))+1): if n%i==0...
17.653846
69
0.542484
62b2fa2785429b29e37790817bb729556dde2ad2
5,852
py
Python
scripts/createDDIsGraphfromCSV.py
UAMS-DBMI/dideo
de7f03573d20fb427546c02df59b2fbafff0b134
[ "CC-BY-4.0" ]
15
2015-07-02T14:38:37.000Z
2021-12-29T00:10:52.000Z
scripts/createDDIsGraphfromCSV.py
UAMS-DBMI/dideo
de7f03573d20fb427546c02df59b2fbafff0b134
[ "CC-BY-4.0" ]
18
2016-02-04T20:29:28.000Z
2021-06-15T10:06:08.000Z
scripts/createDDIsGraphfromCSV.py
UAMS-DBMI/dideo
de7f03573d20fb427546c02df59b2fbafff0b134
[ "CC-BY-4.0" ]
7
2017-06-02T15:05:35.000Z
2021-11-05T01:47:31.000Z
## Script createDDIsGraphfromCSV.py reads drug-drug interactions in csv and creates a sample RDF graph wihich can be used for compose competency queries ## output graph will be generate in data folder ## Author: Yifan Ning, DBMI, University of Pittsburgh ## Date: 01/23/2014 import sys sys.path = sys.path + ['.'] imp...
38
768
0.656528
081fc2eeadc736ef4905cca8e62dedf87b9f9afb
2,370
py
Python
tensorflow_graphics/rendering/voxels/tests/visual_hull_test.py
ghosalsattam/graphics
946aa03b5178d2fc557a81045b84df24af322afd
[ "Apache-2.0" ]
null
null
null
tensorflow_graphics/rendering/voxels/tests/visual_hull_test.py
ghosalsattam/graphics
946aa03b5178d2fc557a81045b84df24af322afd
[ "Apache-2.0" ]
null
null
null
tensorflow_graphics/rendering/voxels/tests/visual_hull_test.py
ghosalsattam/graphics
946aa03b5178d2fc557a81045b84df24af322afd
[ "Apache-2.0" ]
1
2020-06-04T23:24:40.000Z
2020-06-04T23:24:40.000Z
# Copyright 2020 The TensorFlow 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
34.347826
95
0.762025
f015dba5ac8086bdb66f468c39e8a403d9fb9131
2,581
py
Python
BusPirate 2017-02-04 i2c ms5661 pressure/busPirate_ms5661.py
swharden/AVR-projects
3a65c5280572e6567f54fa6be61383e1dbf9b29a
[ "MIT" ]
121
2016-09-07T07:56:35.000Z
2022-03-26T18:27:13.000Z
BusPirate 2017-02-04 i2c temperature/busPirate_LM75A.py
NahlaHussien/AVR-projects
68593c0e55304aa7fef8c00d36860f8b867c8c98
[ "MIT" ]
2
2019-07-03T12:47:50.000Z
2020-08-31T23:12:00.000Z
BusPirate 2017-02-04 i2c ms5661 pressure/busPirate_ms5661.py
swharden/AVR-projects
3a65c5280572e6567f54fa6be61383e1dbf9b29a
[ "MIT" ]
55
2016-09-29T17:59:25.000Z
2022-03-24T19:28:33.000Z
"""python3 control of buspirate (SWHarden.com)""" import serial import matplotlib.pyplot as plt BUSPIRATE_PORT = 'com3' #customize this! Find it in device manager. def send(ser,cmd,silent=False): """ send the command and listen to the response. returns a list of the returned lines. The first item is...
32.670886
73
0.621465
b7356feed5edd009a9c4fe494eb7761daecc50b6
8,314
py
Python
python/DeepLearning/lesson1/week4/my_main.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
1
2019-05-22T07:12:34.000Z
2019-05-22T07:12:34.000Z
python/DeepLearning/lesson1/week4/my_main.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
3
2021-12-10T01:13:54.000Z
2021-12-14T21:18:42.000Z
python/DeepLearning/lesson1/week4/my_main.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
null
null
null
import numpy as np import numpy.random import matplotlib.pyplot as plt import random import lr_utils # 参见资料包,或者在文章底部copy # 设置常量 # 激活函数的标识字符串 SIGMOID_NAME = 'sigmoid' TANH_NAME = 'tanh' # 激活函数 # def sigmoid(x): # return 1 / (1 + np.exp(-x)) def sigmoid(x): s = 1 / (1 + np.exp(-x)) return s # 深层神经网络主驱动 ...
25.581538
97
0.532115
9256cde1a237a1c0b2b686bf71788a4c64767c92
8,769
py
Python
fpga/lib/axi/tb/axi_register/test_axi_register.py
giraypultar/corundum
67ae5160471c41ac316b50db88604ef52f9285ba
[ "BSD-2-Clause-FreeBSD" ]
1
2021-07-27T10:20:42.000Z
2021-07-27T10:20:42.000Z
tb/axi_register/test_axi_register.py
markkknd/verilog-axi
bf2a779e484880f4941b223436a45fd440cded45
[ "MIT" ]
null
null
null
tb/axi_register/test_axi_register.py
markkknd/verilog-axi
bf2a779e484880f4941b223436a45fd440cded45
[ "MIT" ]
1
2021-07-27T10:20:24.000Z
2021-07-27T10:20:24.000Z
""" Copyright (c) 2020 Alex Forencich 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, distribute...
33.726923
109
0.682974
b57a0bb070c35b3c91ccf29effbe2b138cc2dd4f
527
py
Python
tests/test_filters.py
Edinburgh-Genome-Foundry/DnaCauldron
ef1d525f2627163414b94e4fee05911634738bdf
[ "MIT" ]
30
2018-05-09T14:59:03.000Z
2022-01-08T19:00:23.000Z
tests/test_filters.py
e-tomato/DnaCauldron
5208b962e15ff2091d65df1f9be3e429cc559e08
[ "MIT" ]
12
2018-07-04T12:34:57.000Z
2021-12-16T11:53:13.000Z
tests/test_filters.py
e-tomato/DnaCauldron
5208b962e15ff2091d65df1f9be3e429cc559e08
[ "MIT" ]
7
2017-12-13T14:33:18.000Z
2021-03-01T08:08:57.000Z
import dnacauldron as dc def test_filters(): to_record = dc.sequence_to_biopython_record filter1 = dc.NoRestrictionSiteFilter("BsmBI") assert filter1(to_record("ATGATGATG")) assert not filter1(to_record("ACGTCTCTTG")) assert not filter1(to_record("ACGGAGACGG")) filter2 = dc.TextSearchFilter("...
35.133333
75
0.734345
903a266275175e3ce23a6a83f0b3a88fe9b50fa0
15,544
py
Python
samples/brats/brats.py
fabianlohrmann1993/Mask_R-CNN_for_BraTS_dataset
7ca01bf54582708733e92e2dc9f2f5ab2354a6c3
[ "MIT" ]
null
null
null
samples/brats/brats.py
fabianlohrmann1993/Mask_R-CNN_for_BraTS_dataset
7ca01bf54582708733e92e2dc9f2f5ab2354a6c3
[ "MIT" ]
null
null
null
samples/brats/brats.py
fabianlohrmann1993/Mask_R-CNN_for_BraTS_dataset
7ca01bf54582708733e92e2dc9f2f5ab2354a6c3
[ "MIT" ]
null
null
null
""" Mask R-CNN Configurations and data loading code for MS COCO. Copyright (c) 2017 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla ------------------------------------------------------------ Usage: import the module (see Jupyter notebooks for examples), or run fr...
30.964143
124
0.580739
21c76a2ebbd278c32a9d58b53d599c5414d390c6
753
py
Python
pyrelease/licenses/LGPL_2.py
pyrelease/PyRelease
0f8fac5dd19bd50fed047a9570bcd05101b50d08
[ "MIT" ]
1
2018-07-19T20:38:18.000Z
2018-07-19T20:38:18.000Z
pyrelease/licenses/LGPL_2.py
pyrelease/pyrelease
0f8fac5dd19bd50fed047a9570bcd05101b50d08
[ "MIT" ]
null
null
null
pyrelease/licenses/LGPL_2.py
pyrelease/pyrelease
0f8fac5dd19bd50fed047a9570bcd05101b50d08
[ "MIT" ]
null
null
null
TEMPLATE = """{name} Copyright (C) {year} {author} This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is di...
44.294118
66
0.783533
12ef511c2d2646910bd35e7164f60b8404a2e527
1,364
py
Python
workon/utils/__init__.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/utils/__init__.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
workon/utils/__init__.py
dalou/django-workon
ef63c0a81c00ef560ed693e435cf3825f5170126
[ "BSD-3-Clause" ]
null
null
null
from .cache import * from .color import * from .crypt import * from .date import * from .debug import * from .emails import * from .file import * from .geo import * from .image import * from .number import * from .opengraph import * from .pagination import * from .phone import * from .rss import * from .string import ...
27.28
83
0.714076
b02bb5f478ddb81d23e92ab12b18be2005d6f5e5
41,423
py
Python
nova/tests/api/openstack/compute/plugins/v3/test_server_actions.py
vasart/nova
bca5004d367e0418e35f8a72fe0f2e106e977ab0
[ "Apache-2.0" ]
1
2021-09-10T15:29:02.000Z
2021-09-10T15:29:02.000Z
nova/tests/api/openstack/compute/plugins/v3/test_server_actions.py
PFZheng/nova
84be8abbccb5ddc2d7c5a7db59019ed1edb19e7f
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/compute/plugins/v3/test_server_actions.py
PFZheng/nova
84be8abbccb5ddc2d7c5a7db59019ed1edb19e7f
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 OpenStack Foundation # 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 requ...
38.568901
79
0.588489
bdc6dd7ae09865cf5fb11322e379802df0b3d016
9,871
py
Python
syndicate/core/conf/processor.py
epam/aws-syndicate
3f95c645602c1196fa155a939f3d16ffc0d93021
[ "Apache-2.0" ]
52
2018-09-14T10:00:38.000Z
2022-02-15T12:22:44.000Z
syndicate/core/conf/processor.py
epam/aws-syndicate
3f95c645602c1196fa155a939f3d16ffc0d93021
[ "Apache-2.0" ]
69
2019-03-27T13:06:05.000Z
2022-03-04T11:26:57.000Z
syndicate/core/conf/processor.py
epam/aws-syndicate
3f95c645602c1196fa155a939f3d16ffc0d93021
[ "Apache-2.0" ]
8
2019-02-07T12:37:49.000Z
2021-01-22T08:43:35.000Z
""" Copyright 2018 EPAM Systems, Inc. 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...
34.879859
78
0.621214
b27920769bc6abca6422f95179e19131c2d9b472
2,619
py
Python
torchtext/datasets/yelpreviewfull.py
LaudateCorpus1/text-1
8808e7eee5a2df79b9566a4a348889dc2722fcfb
[ "BSD-3-Clause" ]
null
null
null
torchtext/datasets/yelpreviewfull.py
LaudateCorpus1/text-1
8808e7eee5a2df79b9566a4a348889dc2722fcfb
[ "BSD-3-Clause" ]
null
null
null
torchtext/datasets/yelpreviewfull.py
LaudateCorpus1/text-1
8808e7eee5a2df79b9566a4a348889dc2722fcfb
[ "BSD-3-Clause" ]
null
null
null
import os from typing import Union, Tuple from torchtext._internal.module_utils import is_module_available from torchtext.data.datasets_utils import ( _wrap_split_argument, _create_dataset_directory, ) if is_module_available("torchdata"): from torchdata.datapipes.iter import FileOpener, GDriveReader, Iter...
32.333333
119
0.710577
9c9339cd190ac297ca609cc1eeb1a1e539d2b4ea
795
py
Python
candrani/urls.py
CandraniSriMurtono/CandraniSriMurtono
3353fb095a24ad1120304b77d1f7040413043607
[ "Unlicense" ]
null
null
null
candrani/urls.py
CandraniSriMurtono/CandraniSriMurtono
3353fb095a24ad1120304b77d1f7040413043607
[ "Unlicense" ]
null
null
null
candrani/urls.py
CandraniSriMurtono/CandraniSriMurtono
3353fb095a24ad1120304b77d1f7040413043607
[ "Unlicense" ]
null
null
null
"""candrani URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/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-base...
34.565217
77
0.701887
fe453ac9cad8ee90d4452e04cc46a92425c291e2
2,075
py
Python
hata/ext/management/create_project.py
catzoo/hata
49a55f4e02f4f8b5f3adcebc51952b612b4acb73
[ "0BSD" ]
173
2019-06-14T20:25:00.000Z
2022-03-21T19:36:10.000Z
hata/ext/management/create_project.py
catzoo/hata
49a55f4e02f4f8b5f3adcebc51952b612b4acb73
[ "0BSD" ]
52
2020-01-03T17:05:14.000Z
2022-03-31T11:39:50.000Z
hata/ext/management/create_project.py
catzoo/hata
49a55f4e02f4f8b5f3adcebc51952b612b4acb73
[ "0BSD" ]
47
2019-11-09T08:46:45.000Z
2022-03-31T14:33:34.000Z
from os.path import abspath as get_absolute_path, join as join_paths, exists, isdir as is_directory, \ isfile as is_file, getcwd as get_current_working_directory from os import makedirs as make_directories from dotenv import dotenv_values as load_into_dictionary from .utils import render_exception, create_file_st...
28.819444
111
0.713735
ea88a72b418ed492416e785c901fdbb0cbd66199
5,591
py
Python
oasislmf/exposures/pipeline.py
jonathanbethel/OasisLMF
7dfbbd237580d36f4b209a5e4494d21d7950e668
[ "BSD-3-Clause" ]
1
2019-08-10T18:53:53.000Z
2019-08-10T18:53:53.000Z
oasislmf/exposures/pipeline.py
jonathanbethel/OasisLMF
7dfbbd237580d36f4b209a5e4494d21d7950e668
[ "BSD-3-Clause" ]
null
null
null
oasislmf/exposures/pipeline.py
jonathanbethel/OasisLMF
7dfbbd237580d36f4b209a5e4494d21d7950e668
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- __all__ = [ 'OasisFilesPipeline' ] class OasisFilesPipeline(object): def __init__( self, model_key=None, source_exposures_file_path=None, canonical_exposures_file_path=None, model_exposures_file_path=None, keys_file_path=None, ke...
29.272251
85
0.634234
42c3b23a535291a97ec7665faa695fd90857d0e9
513
py
Python
258_addDigits.py
stuti-rastogi/leetcode-python-solutions
73593fe642a06a83cde974ba5e6de3a7b396ec84
[ "MIT" ]
4
2018-07-24T08:36:42.000Z
2019-08-25T17:48:47.000Z
258_addDigits.py
stuti-rastogi/leetcodesolutions
73593fe642a06a83cde974ba5e6de3a7b396ec84
[ "MIT" ]
null
null
null
258_addDigits.py
stuti-rastogi/leetcodesolutions
73593fe642a06a83cde974ba5e6de3a7b396ec84
[ "MIT" ]
null
null
null
class Solution(object): def addDigits(self, num): """ :type num: int :rtype: int """ # https://en.wikipedia.org/wiki/Digital_root#Congruence_formula if num == 0: return 0 else: return (num-1)%9 + 1 # while True: # n...
24.428571
71
0.382066
be7896974671161b12538792e24fe5b61f5cacdd
3,559
py
Python
bindings/python/ensmallen/datasets/string/thiomicrospirapelophila.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/thiomicrospirapelophila.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/thiomicrospirapelophila.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 Thiomicrospira pelophila. 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--prote...
32.953704
223
0.678561
fa7d2741edd56c9f8c2eb32f7a4d0f612c8052bb
1,303
py
Python
example/session/main.py
theoohoho/authx
5c79983cedd4f33fe4c6c3d744c6857f830653fc
[ "MIT" ]
141
2021-11-08T18:59:57.000Z
2022-03-31T18:49:23.000Z
example/session/main.py
theoohoho/authx
5c79983cedd4f33fe4c6c3d744c6857f830653fc
[ "MIT" ]
85
2021-11-08T17:30:08.000Z
2022-03-24T18:23:51.000Z
example/session/main.py
theoohoho/authx
5c79983cedd4f33fe4c6c3d744c6857f830653fc
[ "MIT" ]
15
2021-11-09T00:01:13.000Z
2022-03-26T20:25:18.000Z
import random from datetime import timedelta from typing import Any from fastapi import Depends, FastAPI, Request, Response from starlette.config import Config from authx.cache import basicConfig from authx.core import ( SessionStorage, deleteSession, getSession, getSessionId, getSessionStorage, ...
23.690909
73
0.742134
aac878e5b6c0b3ef0a08179e01435a0d0149a764
1,820
py
Python
pdia/utils/durSinceBlockStart.py
yangjiang001/pdia-1
8dcd0960bf2e540f11cd37ccb92cbac1bbd51368
[ "MIT" ]
null
null
null
pdia/utils/durSinceBlockStart.py
yangjiang001/pdia-1
8dcd0960bf2e540f11cd37ccb92cbac1bbd51368
[ "MIT" ]
null
null
null
pdia/utils/durSinceBlockStart.py
yangjiang001/pdia-1
8dcd0960bf2e540f11cd37ccb92cbac1bbd51368
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd # get global logger # logger = logging.getLogger('pdia') def durSinceBlockStart(x, timestamp="EventTime", durSinceBlockStart="durSinceBlockStart"): """ Given a data frame of a single block of keystroke logs, add a column that...
41.363636
108
0.682967
f4b13606194d6d4603f7d2cccd079ff797159b65
627
py
Python
tests/old_suite/basic/pkg2/a.py
yoda-vid/pyinstaller
419f349dad721a253b19d9c596e251818132d6ba
[ "Apache-2.0" ]
2
2017-02-08T22:22:09.000Z
2020-10-08T12:28:36.000Z
tests/old_suite/basic/pkg2/a.py
416426/pyinstaller
0f2b2e921433ab5a510c7efdb21d9c1d7cfbc645
[ "Apache-2.0" ]
3
2020-04-06T15:48:37.000Z
2021-03-23T10:22:21.000Z
tests/old_suite/basic/pkg2/a.py
416426/pyinstaller
0f2b2e921433ab5a510c7efdb21d9c1d7cfbc645
[ "Apache-2.0" ]
4
2018-06-04T20:40:37.000Z
2020-10-13T22:38:40.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2013-2021, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
33
78
0.556619
64525570efeeddc618cf80081ed4491cf2b6117d
100,728
py
Python
pyhanko/pdf_utils/crypt.py
peteris-zealid/pyHanko
414b3156b8853840b31cf0c3dd50654c868c6ba5
[ "MIT" ]
null
null
null
pyhanko/pdf_utils/crypt.py
peteris-zealid/pyHanko
414b3156b8853840b31cf0c3dd50654c868c6ba5
[ "MIT" ]
null
null
null
pyhanko/pdf_utils/crypt.py
peteris-zealid/pyHanko
414b3156b8853840b31cf0c3dd50654c868c6ba5
[ "MIT" ]
null
null
null
""" .. versionchanged:: 0.3.0 Added support for PDF 2.0 encryption standards and crypt filters. Utilities for PDF encryption. This module covers all methods outlined in the standard: * Legacy RC4-based encryption (based on PyPDF2 code). * AES-128 encryption with legacy key derivation (partly based on PyPDF2 code)...
37.169004
85
0.637549
ad37c6232e4823064d134a43360466d19a8a9f2d
2,248
py
Python
setup.py
andriyor/django-configurations
141d8ef2c4165d2686f8316827eda49f0eefb1b4
[ "BSD-3-Clause" ]
126
2015-01-07T10:46:09.000Z
2015-12-13T07:22:53.000Z
setup.py
andriyor/django-configurations
141d8ef2c4165d2686f8316827eda49f0eefb1b4
[ "BSD-3-Clause" ]
58
2015-01-05T10:17:39.000Z
2015-12-07T06:37:01.000Z
setup.py
andriyor/django-configurations
141d8ef2c4165d2686f8316827eda49f0eefb1b4
[ "BSD-3-Clause" ]
44
2015-01-07T14:28:22.000Z
2015-12-14T01:04:18.000Z
import os import codecs from setuptools import setup def read(*parts): filename = os.path.join(os.path.dirname(__file__), *parts) with codecs.open(filename, encoding='utf-8') as fp: return fp.read() setup( name="django-configurations", use_scm_version={"version_scheme": "post-release", "loca...
32.57971
84
0.579626
57078cea26a004d1a4aa34d05c3a626367b2c91a
5,624
py
Python
TheCenterServer/TheCenterServer/plugins/example-python/TheCenterAPI/APIServer.py
dicarne/the-center
f80fbe53b42263c54d0066a8ee9695d013fe2feb
[ "MIT" ]
null
null
null
TheCenterServer/TheCenterServer/plugins/example-python/TheCenterAPI/APIServer.py
dicarne/the-center
f80fbe53b42263c54d0066a8ee9695d013fe2feb
[ "MIT" ]
null
null
null
TheCenterServer/TheCenterServer/plugins/example-python/TheCenterAPI/APIServer.py
dicarne/the-center
f80fbe53b42263c54d0066a8ee9695d013fe2feb
[ "MIT" ]
null
null
null
from TheCenterAPI.ServerData import BoardDesc, WorkspaceDesc from typing import Any, Callable, Dict, List, TypeVar from TheCenterAPI.BaseUICom import UIBase, UIEventReqBody from fastapi import FastAPI import uvicorn import json import requests app = FastAPI() def Run(): config = json.load(open("pmodule.json")) ...
26.909091
99
0.592994
7775690cc307c69926ef88fff0b0bd3af2f62970
2,470
py
Python
aliyun-python-sdk-dds/aliyunsdkdds/request/v20151201/DestroyInstanceRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-dds/aliyunsdkdds/request/v20151201/DestroyInstanceRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-dds/aliyunsdkdds/request/v20151201/DestroyInstanceRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.305556
74
0.773279
9716a05d442a16dcaa680bda992fdc3ba2b81acb
51,365
py
Python
gptf/core/params.py
sanket-kamthe/gptf
7db86b8a608f9ca45548c4e2c9fcb5f48daf9187
[ "MIT" ]
1
2019-08-28T11:55:49.000Z
2019-08-28T11:55:49.000Z
gptf/core/params.py
sanket-kamthe/gptf
7db86b8a608f9ca45548c4e2c9fcb5f48daf9187
[ "MIT" ]
null
null
null
gptf/core/params.py
sanket-kamthe/gptf
7db86b8a608f9ca45548c4e2c9fcb5f48daf9187
[ "MIT" ]
2
2017-05-13T21:15:07.000Z
2019-11-19T18:15:10.000Z
# -*- encoding: utf-8 -*- """Provides classes that deal with the fetching as setting of parameters.""" from builtins import super, object, filter, map, range from future.utils import with_metaclass from abc import ABCMeta, abstractmethod from collections import namedtuple from functools import wraps import os import gc...
35.399724
86
0.557422
b27d0acacb52288538b3b6fd07de2611d38c2b4c
9,374
py
Python
tests/test_stormtrack/test_core/test_features/data/circle_on_globe_clat-80_rad-800_delta-0.5_pyproj.py
ruestefa/stormtrack
e9378f013c406d387ea944c97e5adc68df864dee
[ "MIT" ]
null
null
null
tests/test_stormtrack/test_core/test_features/data/circle_on_globe_clat-80_rad-800_delta-0.5_pyproj.py
ruestefa/stormtrack
e9378f013c406d387ea944c97e5adc68df864dee
[ "MIT" ]
2
2021-01-06T17:37:42.000Z
2021-02-05T18:40:52.000Z
tests/test_stormtrack/test_core/test_features/data/circle_on_globe_clat-80_rad-800_delta-0.5_pyproj.py
ruestefa/stormtrack
e9378f013c406d387ea944c97e5adc68df864dee
[ "MIT" ]
null
null
null
import numpy as np # fmt: off clon, clat = 0.0, 80.0 rad_km = 800.0 area_km2 = np.pi*rad_km**2 nlat, nlon = 31, 145 lat1d = np.linspace(72.5, 87.5, nlat) lon1d = np.linspace(-36.0, 36.0, nlon) lat2d, lon2d = np.meshgrid(lat1d, lon1d) _, X = 0, 1 mask = np.array([ [_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_...
195.291667
292
0.498613
9ed417d3ae2d53c8e857977902f54055fb2ba1c5
2,218
py
Python
lib/ansiblelint/rules/EnvVarsInCommandRule.py
webknjaz/ansible-lint
4232ff0718a4b000a227ac4df4c16fc7125c5583
[ "MIT" ]
null
null
null
lib/ansiblelint/rules/EnvVarsInCommandRule.py
webknjaz/ansible-lint
4232ff0718a4b000a227ac4df4c16fc7125c5583
[ "MIT" ]
null
null
null
lib/ansiblelint/rules/EnvVarsInCommandRule.py
webknjaz/ansible-lint
4232ff0718a4b000a227ac4df4c16fc7125c5583
[ "MIT" ]
null
null
null
# Copyright (c) 2016 Will Thames <will@thames.id.au> # # 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, mer...
47.191489
82
0.69477
78c8f179e4893595b0db88f4c3eb9715b61f55de
3,774
py
Python
ctapipe/image/morphology.py
LukasNickel/ctapipe
8c02fb772ec54c200b69721baf9ef20f590cd749
[ "BSD-3-Clause" ]
null
null
null
ctapipe/image/morphology.py
LukasNickel/ctapipe
8c02fb772ec54c200b69721baf9ef20f590cd749
[ "BSD-3-Clause" ]
null
null
null
ctapipe/image/morphology.py
LukasNickel/ctapipe
8c02fb772ec54c200b69721baf9ef20f590cd749
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from scipy.sparse.csgraph import connected_components from ..containers import MorphologyContainer def number_of_islands(geom, mask): """ Search a given pixel mask for connected clusters. This can be used to seperate between gamma and hadronic showers. Parameters ---------- ...
29.716535
89
0.691309
98d7be7f82337968c48a932057a6e49222e532ae
1,926
py
Python
tflite_tools/tflite/BuiltinOperator.py
wxbbuaa2011/tflite-tools
d1d90e33dd7df51ba26891a440c05d68129d4279
[ "MIT" ]
1
2019-10-30T00:52:21.000Z
2019-10-30T00:52:21.000Z
tflite_tools/tflite/BuiltinOperator.py
wxbbuaa2011/tflite-tools
d1d90e33dd7df51ba26891a440c05d68129d4279
[ "MIT" ]
null
null
null
tflite_tools/tflite/BuiltinOperator.py
wxbbuaa2011/tflite-tools
d1d90e33dd7df51ba26891a440c05d68129d4279
[ "MIT" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite class BuiltinOperator(object): ADD = 0 AVERAGE_POOL_2D = 1 CONCATENATION = 2 CONV_2D = 3 DEPTHWISE_CONV_2D = 4 DEQUANTIZE = 6 EMBEDDING_LOOKUP = 7 FLOOR = 8 FULLY_CONNECTED = 9 HASHTABLE_LO...
19.069307
68
0.596573
1357986f64bea0cdaba0f579918dff6570cbdf4e
3,423
py
Python
VoxCelebDataset.py
akaver/speaker-embed-augm
eef03926d1bc18a2463260b3bc4a7c12c624fee6
[ "Apache-2.0" ]
null
null
null
VoxCelebDataset.py
akaver/speaker-embed-augm
eef03926d1bc18a2463260b3bc4a7c12c624fee6
[ "Apache-2.0" ]
null
null
null
VoxCelebDataset.py
akaver/speaker-embed-augm
eef03926d1bc18a2463260b3bc4a7c12c624fee6
[ "Apache-2.0" ]
null
null
null
import torch import utils import random import logging import sys import json import numpy as np from utils import parse_arguments from hyperpyyaml import load_hyperpyyaml logger = logging.getLogger(__name__) class VoxCelebDataset(torch.utils.data.Dataset): def __init__(self, hparams, csv_data_file): sup...
30.837838
118
0.635115
39f60f3963db44db39a379e682e888ed332580d8
9,281
py
Python
src/python/metrics/fuzzer_stats_schema.py
tapaswenipathak/clusterfuzz
a5468fc736ee42af9e2dd63e24c22ae2c3ac1662
[ "Apache-2.0" ]
null
null
null
src/python/metrics/fuzzer_stats_schema.py
tapaswenipathak/clusterfuzz
a5468fc736ee42af9e2dd63e24c22ae2c3ac1662
[ "Apache-2.0" ]
null
null
null
src/python/metrics/fuzzer_stats_schema.py
tapaswenipathak/clusterfuzz
a5468fc736ee42af9e2dd63e24c22ae2c3ac1662
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
21.286697
74
0.540351
ef8e3b1c664fda8e75552d639f1ced960d37eb1c
8,314
py
Python
infra/gcb/build.py
haberman/oss-fuzz
337187317e6dca079479010d433d64485ebcb4a4
[ "Apache-2.0" ]
null
null
null
infra/gcb/build.py
haberman/oss-fuzz
337187317e6dca079479010d433d64485ebcb4a4
[ "Apache-2.0" ]
null
null
null
infra/gcb/build.py
haberman/oss-fuzz
337187317e6dca079479010d433d64485ebcb4a4
[ "Apache-2.0" ]
1
2018-09-20T20:32:08.000Z
2018-09-20T20:32:08.000Z
#!/usr/bin/python2 """Starts project build on Google Cloud Builder. Usage: build.py <project_dir> """ import base64 import collections import datetime import os import re import subprocess import sys import time import urllib import yaml from oauth2client.client import GoogleCredentials from oauth2client.service_ac...
29.378092
127
0.611258
c4bdc81d6f4e0f1f8be52563670cdfddc82b2925
6,896
py
Python
batch_rl/fixed_replay/replay_memory/fixed_replay_buffer.py
ShapRL/ShapRL
11327bb5e3b2f2e6ac3a631097bd712f13b9d275
[ "Apache-2.0" ]
null
null
null
batch_rl/fixed_replay/replay_memory/fixed_replay_buffer.py
ShapRL/ShapRL
11327bb5e3b2f2e6ac3a631097bd712f13b9d275
[ "Apache-2.0" ]
null
null
null
batch_rl/fixed_replay/replay_memory/fixed_replay_buffer.py
ShapRL/ShapRL
11327bb5e3b2f2e6ac3a631097bd712f13b9d275
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Google Research 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 applicab...
37.68306
108
0.701856
ed8f76485d289e23f9982704ffd2af310749c83e
1,913
py
Python
old_py2/consts/district_type.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
consts/district_type.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
consts/district_type.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
class DistrictType(object): """ Constants for what district an Event is a part of """ # Event is not a district event NO_DISTRICT = 0 MICHIGAN = 1 MID_ATLANTIC = 2 NEW_ENGLAND = 3 PACIFIC_NORTHWEST = 4 INDIANA = 5 CHESAPEAKE = 6 NORTH_CAROLINA = 7 GEORGIA = 8 ONT...
25.171053
53
0.556717
68d68f1542202e57a4e6d5237d0d5ef0f849da8f
3,757
py
Python
soundrts/lib/bindings.py
Finnboy94/soundrts
284ffe2c507f4c9e44b4e5fa8c4ef05b6614c6c6
[ "BSD-3-Clause" ]
23
2015-04-02T16:54:08.000Z
2022-03-02T09:48:04.000Z
soundrts/lib/bindings.py
Finnboy94/soundrts
284ffe2c507f4c9e44b4e5fa8c4ef05b6614c6c6
[ "BSD-3-Clause" ]
94
2015-03-25T21:05:45.000Z
2021-12-22T20:05:42.000Z
soundrts/lib/bindings.py
TifloDev/soundrts
209695ed80b8746facdcb35f446f0f855c48da84
[ "BSD-3-Clause" ]
33
2015-05-27T05:53:14.000Z
2021-12-08T02:45:44.000Z
import re import pygame from pygame import ( K_LALT, K_LCTRL, K_LSHIFT, K_RALT, K_RCTRL, K_RSHIFT, KMOD_ALT, KMOD_CTRL, KMOD_SHIFT, ) from .log import warning class _Error(Exception): pass _allowed_mods = ("CTRL", "ALT", "SHIFT") def _normalized_key(s): words = s.spli...
31.049587
85
0.596753
fddaa0f07a47236cfb9c645bb05d199da20ff519
27,947
py
Python
test/test_classify_l2_acl.py
lfntac/vpp
75ae1027c8418225c08c247354b384ac2412f137
[ "Apache-2.0" ]
1
2019-03-23T21:06:14.000Z
2019-03-23T21:06:14.000Z
test/test_classify_l2_acl.py
fantastic2085/vpp
c599c6f001bc28e1023fb5e74a27db37b1aae847
[ "Apache-2.0" ]
1
2021-06-01T23:31:18.000Z
2021-06-01T23:31:18.000Z
test/test_classify_l2_acl.py
fantastic2085/vpp
c599c6f001bc28e1023fb5e74a27db37b1aae847
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Classifier-based L2 ACL Test Case HLD: """ import unittest import random import binascii import socket from scapy.packet import Raw from scapy.data import ETH_P_IP from scapy.layers.l2 import Ether from scapy.layers.inet import IP, TCP, UDP, ICMP from scapy.layers.inet6 import IPv6, ICMPv6E...
40.858187
79
0.554478
676f129aa4b85d683fc415a6a7a1456d91236658
4,030
py
Python
venv/lib/python3.8/site-packages/azureml/_restclient/operations/swagger_operations.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azureml/_restclient/operations/swagger_operations.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/azureml/_restclient/operations/swagger_operations.py
amcclead7336/Enterprise_Data_Science_Final
ccdc0aa08d4726bf82d71c11a1cc0c63eb301a28
[ "Unlicense", "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator 2.3.3...
41.546392
204
0.650124
73d6f743b4f43e923bb81a0e18c303c9a9c15a5e
3,605
py
Python
src/wrf/g_pw.py
khallock/wrf-python
9c5825c101722e7eddece2ca13cc8e9d9f96a21e
[ "Apache-2.0" ]
1
2018-10-30T18:06:26.000Z
2018-10-30T18:06:26.000Z
src/wrf/g_pw.py
mostamndi/wrf-python
3806bcdd01b31fa67da980eafefa0d1245faf6a6
[ "Apache-2.0" ]
null
null
null
src/wrf/g_pw.py
mostamndi/wrf-python
3806bcdd01b31fa67da980eafefa0d1245faf6a6
[ "Apache-2.0" ]
null
null
null
from __future__ import (absolute_import, division, print_function) #from .extension import computepw,computetv,computetk from .extension import _pw, _tv, _tk from .constants import Constants from .util import extract_vars from .metadecorators import copy_and_set_metadata @copy_and_set_metadata(copy_varname="T", name...
39.615385
79
0.599168
ac4ba5db3772e14383795c000e604f3cfc291a48
636
py
Python
datahub/event/views.py
alixedi/data-hub-api-cd-poc
a5e5ea45bb496c0d2a06635864514af0c7d4291a
[ "MIT" ]
null
null
null
datahub/event/views.py
alixedi/data-hub-api-cd-poc
a5e5ea45bb496c0d2a06635864514af0c7d4291a
[ "MIT" ]
16
2020-04-01T15:25:35.000Z
2020-04-14T14:07:30.000Z
datahub/event/views.py
alixedi/data-hub-api-cd-poc
a5e5ea45bb496c0d2a06635864514af0c7d4291a
[ "MIT" ]
null
null
null
from datahub.core.viewsets import CoreViewSet from datahub.event.models import Event from datahub.event.serializers import EventSerializer from datahub.oauth.scopes import Scope class EventViewSet(CoreViewSet): """Views for events.""" required_scopes = (Scope.internal_front_end,) serializer_class = Event...
25.44
53
0.668239
b96899c710c38b11aeeb959bfea8ba7d80bc94c6
3,808
py
Python
ceilometer/nova_client.py
NeCTAR-RC/ceilometer
25cb8740b83bfbf5c526be816fa3ae10f936bff5
[ "Apache-2.0" ]
1
2015-02-26T03:23:09.000Z
2015-02-26T03:23:09.000Z
ceilometer/nova_client.py
NeCTAR-RC/ceilometer
25cb8740b83bfbf5c526be816fa3ae10f936bff5
[ "Apache-2.0" ]
null
null
null
ceilometer/nova_client.py
NeCTAR-RC/ceilometer
25cb8740b83bfbf5c526be816fa3ae10f936bff5
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Author: John Tran <jhtran@att.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 app...
31.471074
75
0.624212
f999f613ae2d8805e67577a4820860f2fffbec15
5,491
py
Python
DeepLearningAnnChurnPredictor.py
siddhaling/Bank-Churn-Prediction-using-Deep-Learning-And-Machine-Learning-Models
7fde2c710a7c313c4e962c1c9eaf66cceeba2c82
[ "MIT" ]
null
null
null
DeepLearningAnnChurnPredictor.py
siddhaling/Bank-Churn-Prediction-using-Deep-Learning-And-Machine-Learning-Models
7fde2c710a7c313c4e962c1c9eaf66cceeba2c82
[ "MIT" ]
null
null
null
DeepLearningAnnChurnPredictor.py
siddhaling/Bank-Churn-Prediction-using-Deep-Learning-And-Machine-Learning-Models
7fde2c710a7c313c4e962c1c9eaf66cceeba2c82
[ "MIT" ]
null
null
null
#importing libraries import numpy as np import pandas as pd import tensorflow import matplotlib.pyplot as plt import seaborn as sns #Python data visualization library based on matplotlib. pd.options.display.max_rows = None pd.options.display.max_columns = None df = pd.read_csv(r"\bank_churn.csv") feature_names = ['cus...
32.88024
139
0.70479
530dbe15d9e0ab03e8111519956a2c5a90ddcbce
797
py
Python
mmdet/core/evaluation/__init__.py
alexchungio/under-water-detect
312672ccbe5e31ca21dffab26e1438ea190f3e5a
[ "Apache-2.0" ]
1
2022-02-17T12:14:59.000Z
2022-02-17T12:14:59.000Z
mmdet/core/evaluation/__init__.py
alexchungio/under-water-object-detect-2020
312672ccbe5e31ca21dffab26e1438ea190f3e5a
[ "Apache-2.0" ]
null
null
null
mmdet/core/evaluation/__init__.py
alexchungio/under-water-object-detect-2020
312672ccbe5e31ca21dffab26e1438ea190f3e5a
[ "Apache-2.0" ]
null
null
null
from .class_names import (cityscapes_classes, coco_classes, dataset_aliases, get_classes, imagenet_det_classes, imagenet_vid_classes, voc_classes, underwater_classes) from .eval_hooks import DistEvalHook, EvalHook from .mean_ap import average_precision, eval_map, prin...
49.8125
80
0.726474
f80408478de78fa3475cf7747bb08d0f86ea07cc
663
py
Python
issues/20200630 #175 hatch-weird-edges/create_ccw_ellipse_hatches.py
jpsantos-mf/ezdxf
2b542a551b2cfc3c0920a5dbf302ff58cea90fbd
[ "MIT" ]
1
2021-06-05T09:15:15.000Z
2021-06-05T09:15:15.000Z
issues/20200630 #175 hatch-weird-edges/create_ccw_ellipse_hatches.py
jpsantos-mf/ezdxf
2b542a551b2cfc3c0920a5dbf302ff58cea90fbd
[ "MIT" ]
null
null
null
issues/20200630 #175 hatch-weird-edges/create_ccw_ellipse_hatches.py
jpsantos-mf/ezdxf
2b542a551b2cfc3c0920a5dbf302ff58cea90fbd
[ "MIT" ]
null
null
null
from pathlib import Path import ezdxf import math DIR = Path('~/Desktop/Outbox').expanduser() doc = ezdxf.new() msp = doc.modelspace() hatch = msp.add_hatch(color=1) ep = hatch.paths.add_edge_path() ep.add_line((0, 0), (1, 0)) ep.add_ellipse( center=(0, 0), major_axis=(1, 0), ratio=0.5, start_angle=0...
20.090909
43
0.657617
86cf5fdda3c327188692f2ce47a22897b91e62bc
1,601
py
Python
sqlparse/filters/right_margin.py
vmuriart/sqlparse
0c1c96e237269ba6b964a766c4fc2fc503af5d9c
[ "BSD-3-Clause" ]
1
2017-06-26T01:39:21.000Z
2017-06-26T01:39:21.000Z
sqlparse/filters/right_margin.py
vmuriart/sqlparse
0c1c96e237269ba6b964a766c4fc2fc503af5d9c
[ "BSD-3-Clause" ]
2
2016-05-25T01:09:04.000Z
2016-05-30T18:06:17.000Z
sqlparse/filters/right_margin.py
vmuriart/sqlparse
0c1c96e237269ba6b964a766c4fc2fc503af5d9c
[ "BSD-3-Clause" ]
1
2020-04-27T10:41:31.000Z
2020-04-27T10:41:31.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2016 Andi Albrecht, albrecht.andi@gmail.com # # This module is part of python-sqlparse and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php import re from sqlparse import sql, tokens as T from sqlparse.compat import text_type # FIXME: ...
32.02
74
0.541537
f3ee5e4a9c324da9afa1b5be50b9d6ca1b727d4c
19,110
py
Python
train_cos_new.py
CharlesW95/senior_project
d7bfe89c640b892f4c2f156a881c19cb5405b8ae
[ "MIT" ]
1
2018-07-12T10:00:11.000Z
2018-07-12T10:00:11.000Z
train_cos_new.py
CharlesW95/senior_project
d7bfe89c640b892f4c2f156a881c19cb5405b8ae
[ "MIT" ]
null
null
null
train_cos_new.py
CharlesW95/senior_project
d7bfe89c640b892f4c2f156a881c19cb5405b8ae
[ "MIT" ]
null
null
null
# This represents a new approach, where we feed style activations into the decoder. #!/usr/bin/env python from math import ceil, floor from random import uniform import argparse import os import tensorflow as tf from adain.nn import build_vgg, vgg_layer_params, build_decoder from adain.norm import adain from adain.ut...
42.751678
167
0.679906
fe3599447ec843cd5c9296bccc205dff470707c7
1,417
py
Python
src/Knn-Tensor.py
python-itb/knn-from-scratch
dbc6fb53cffb245a76d35b9ff85ac8cb21877ca8
[ "MIT" ]
null
null
null
src/Knn-Tensor.py
python-itb/knn-from-scratch
dbc6fb53cffb245a76d35b9ff85ac8cb21877ca8
[ "MIT" ]
2
2018-03-20T06:47:32.000Z
2018-10-25T10:54:08.000Z
src/Knn-Tensor.py
python-itb/knn-from-scratch
dbc6fb53cffb245a76d35b9ff85ac8cb21877ca8
[ "MIT" ]
4
2018-03-20T06:43:11.000Z
2019-04-15T16:34:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Feb 13 18:52:28 2018 @author: amajidsinar """ from sklearn import datasets import matplotlib.pyplot as plt import numpy as np plt.style.use('seaborn-white') iris = datasets.load_iris() dataset = iris.data # only take 0th and 1th column for X data_kno...
21.149254
94
0.687368
28beaf29a57ac7dad9035ba545ca787cfa58f6d8
9,724
py
Python
desugar/operator.py
maggyero/desugar
fd283d4e93d4dbae385577627051094460b74fc8
[ "MIT" ]
null
null
null
desugar/operator.py
maggyero/desugar
fd283d4e93d4dbae385577627051094460b74fc8
[ "MIT" ]
null
null
null
desugar/operator.py
maggyero/desugar
fd283d4e93d4dbae385577627051094460b74fc8
[ "MIT" ]
null
null
null
"""A pure Python implementation of the parts of the 'operator' module that pertain to syntax.""" # https://docs.python.org/3.8/library/operator.html from __future__ import annotations import typing from . import builtins as debuiltins if typing.TYPE_CHECKING: from typing import Any, Callable class _BinaryO...
35.619048
114
0.658165
601abdc0a92ec2f21fdd27e5e659af2bdd63508d
7,067
py
Python
src/web/api.py
canl/algo-trading
288f43a54d6594f79c79dc21f5534ad9aa785b29
[ "MIT" ]
11
2020-04-04T08:59:37.000Z
2020-12-25T20:21:05.000Z
src/web/api.py
canl/algo-trading
288f43a54d6594f79c79dc21f5534ad9aa785b29
[ "MIT" ]
1
2021-12-13T20:35:20.000Z
2021-12-13T20:35:20.000Z
src/web/api.py
canl/algo-trading
288f43a54d6594f79c79dc21f5534ad9aa785b29
[ "MIT" ]
3
2020-06-21T16:29:56.000Z
2020-07-18T15:15:01.000Z
from http import HTTPStatus from typing import List from flask import Blueprint, request from src.account.account_manager import AccountManager from src.env import RUNNING_ENV from src.orders.order import OrderSide from src.orders.order_manager import OrderManager from src.pricer import get_spot_rate from src.utils.c...
40.849711
157
0.593321
b9855e6625d526ec9cecb726db0b7eac8bc34672
1,927
py
Python
examples/dfp/v201708/creative_template_service/get_system_defined_creative_templates.py
stelaxi/googleads-python-lib
7830f303a63217e7c7190f9b085bce9c4f677727
[ "Apache-2.0" ]
1
2018-06-25T18:44:30.000Z
2018-06-25T18:44:30.000Z
examples/dfp/v201708/creative_template_service/get_system_defined_creative_templates.py
stelaxi/googleads-python-lib
7830f303a63217e7c7190f9b085bce9c4f677727
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201708/creative_template_service/get_system_defined_creative_templates.py
stelaxi/googleads-python-lib
7830f303a63217e7c7190f9b085bce9c4f677727
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
36.358491
75
0.721847
97fa73614f7a3d7ad058085375984733ad20165c
3,595
py
Python
acme/acme/errors.py
marcovr/certbot
c129ab2965f7ec4edf173b1cd900bd5add13cd2a
[ "Apache-2.0" ]
1
2019-01-20T08:17:26.000Z
2019-01-20T08:17:26.000Z
acme/acme/errors.py
marcovr/certbot
c129ab2965f7ec4edf173b1cd900bd5add13cd2a
[ "Apache-2.0" ]
1
2021-05-24T22:19:39.000Z
2021-05-24T22:20:42.000Z
acme/acme/errors.py
marcovr/certbot
c129ab2965f7ec4edf173b1cd900bd5add13cd2a
[ "Apache-2.0" ]
3
2019-03-21T23:21:38.000Z
2020-06-23T20:56:56.000Z
"""ACME errors.""" from josepy import errors as jose_errors class Error(Exception): """Generic ACME error.""" class DependencyError(Error): """Dependency error""" class SchemaValidationError(jose_errors.DeserializationError): """JSON schema ACME object validation error.""" class ClientError(Error): ...
29.710744
79
0.672323