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
dcf40aa612752378ba96ad059905227cc5fd8040
1,582
py
Python
pacote-download/Exercicios/Desafio98.py
lucasdmazon/CursoVideo_Python
b4edb9d45aaa6bd93c06370780be09328621aa36
[ "MIT" ]
null
null
null
pacote-download/Exercicios/Desafio98.py
lucasdmazon/CursoVideo_Python
b4edb9d45aaa6bd93c06370780be09328621aa36
[ "MIT" ]
null
null
null
pacote-download/Exercicios/Desafio98.py
lucasdmazon/CursoVideo_Python
b4edb9d45aaa6bd93c06370780be09328621aa36
[ "MIT" ]
null
null
null
from time import sleep ''' def contador(): for i in range(0, 3): if i == 0: inicio = 1 fim = 10 passo = 1 elif i == 1: inicio = 10 fim = 0 passo = 2 else: print('Agora é sua vez de personalizar a contagem!')...
22.28169
70
0.450063
ba158730182564fea2973238dec7e8e18599f39b
1,426
py
Python
app.py
happyeye01/api-ai
e62df964d9672ffac1c513f2ec59888352520f67
[ "Apache-2.0" ]
null
null
null
app.py
happyeye01/api-ai
e62df964d9672ffac1c513f2ec59888352520f67
[ "Apache-2.0" ]
null
null
null
app.py
happyeye01/api-ai
e62df964d9672ffac1c513f2ec59888352520f67
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import urllib import json import os from flask import Flask from flask import request from flask import make_response # Flask app should start in global layout app = Flask(__name__) @app.route('/webhook', methods=['POST']) def webhook(): req = request.get_json(silent=True, force=True) ...
22.634921
93
0.613604
c09c66d4ed82b0eee1c555d2abce811b96fdb156
1,493
py
Python
python/graphscope/analytical/app/lpa.py
varinic/GraphScope
b8cb7c404ed38841d46bf2cd35d8fe3fa812bf21
[ "Apache-2.0" ]
null
null
null
python/graphscope/analytical/app/lpa.py
varinic/GraphScope
b8cb7c404ed38841d46bf2cd35d8fe3fa812bf21
[ "Apache-2.0" ]
null
null
null
python/graphscope/analytical/app/lpa.py
varinic/GraphScope
b8cb7c404ed38841d46bf2cd35d8fe3fa812bf21
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. 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...
29.86
115
0.703282
6ce41be58acead45f961edde49da6220d5138b80
5,451
py
Python
PixelLevelLipsDetection/SkinSegmentation.py
amrkh97/Lipify-LipReading
9e97336a84d6b8eb877cd72ca17e65b587260f3b
[ "MIT" ]
null
null
null
PixelLevelLipsDetection/SkinSegmentation.py
amrkh97/Lipify-LipReading
9e97336a84d6b8eb877cd72ca17e65b587260f3b
[ "MIT" ]
3
2020-05-08T20:11:32.000Z
2021-06-30T10:17:04.000Z
PixelLevelLipsDetection/SkinSegmentation.py
amrkh97/Lipify-LipReading
9e97336a84d6b8eb877cd72ca17e65b587260f3b
[ "MIT" ]
2
2020-03-31T15:32:05.000Z
2021-12-29T14:41:07.000Z
import cv2 import numpy as np from FR import operation from MatrixOperations import logic_and_list, logic_or_list, createMatrix, logic_not from canny import cannyDetection, getGrayImage, gaussian_blur2 from colorspace import getHSV # ---------------------------------------------------------------------------- # func...
40.080882
92
0.50321
5cd2d2cae6e62464d2342518285f234ed7147cb7
813
py
Python
probe/experiment_test_MP.py
bicv/SparseEdges
9979a1c0d6b49cd21955939375bb8f1fa37aad57
[ "MIT" ]
2
2018-09-03T18:17:33.000Z
2021-05-23T10:29:42.000Z
probe/experiment_test_MP.py
bicv/SparseEdges
9979a1c0d6b49cd21955939375bb8f1fa37aad57
[ "MIT" ]
1
2018-07-13T09:37:21.000Z
2018-07-13T09:37:21.000Z
probe/experiment_test_MP.py
bicv/SparseEdges
9979a1c0d6b49cd21955939375bb8f1fa37aad57
[ "MIT" ]
null
null
null
import numpy as np from SparseEdges import SparseEdges mp = SparseEdges('https://raw.githubusercontent.com/bicv/SparseEdges/master/default_param.py') mp.pe.N = 128 # number of edges mp.pe.figsize_edges = 9 #! defining a reference test image (see test_Image) image = np.zeros((mp.pe.N_X, mp.pe.N_Y)) image[mp.pe.N_X//2:...
31.269231
94
0.688807
7d799fd0d9454e0278e1e88a22ea7bfbe6c43a48
1,895
py
Python
src/graphs/binary_tree_to_linked_list.py
seahrh/coding-interview
517d19e7e88c02acec4aa6336bc20206ce3f1897
[ "MIT" ]
null
null
null
src/graphs/binary_tree_to_linked_list.py
seahrh/coding-interview
517d19e7e88c02acec4aa6336bc20206ce3f1897
[ "MIT" ]
null
null
null
src/graphs/binary_tree_to_linked_list.py
seahrh/coding-interview
517d19e7e88c02acec4aa6336bc20206ce3f1897
[ "MIT" ]
null
null
null
""" Flatten a binary tree into linked list ======================================== Given a binary tree, flatten it into linked list in-place. Usage of auxiliary data structure is not allowed. After flattening, left of each node should point to NULL and right should contain next node in preorder. Examples: Input ...
23.395062
109
0.502375
d098178fdf724091339dd79e851d7264bb9f3875
783
py
Python
examples/Graph_Neural_Networks/TensorFlow/FastGCN.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
examples/Graph_Neural_Networks/TensorFlow/FastGCN.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
examples/Graph_Neural_Networks/TensorFlow/FastGCN.py
TobiasSchmidtDE/GraphGallery
e627e4f454e0ce3813171305a524f5190a6e6f45
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import graphgallery import tensorflow as tf graphgallery.set_memory_growth() print("GraphGallery version: ", graphgallery.__version__) print("TensorFlow version: ", tf.__version__) ''' Load Datasets - cora/citeseer/pubmed ''' from graphgallery.datasets import Planetoid data = P...
30.115385
101
0.772669
58785d11c24705ee9352f8c687a56e3eea007b4f
1,728
py
Python
contrib/experimental/input/show_input.py
bitcraft/pyglet
144257c365ca85528c6a4c5bed8141e683d7a9b6
[ "BSD-3-Clause" ]
15
2015-01-21T12:29:01.000Z
2018-12-09T09:17:33.000Z
contrib/experimental/input/show_input.py
bitcraft/pyglet
144257c365ca85528c6a4c5bed8141e683d7a9b6
[ "BSD-3-Clause" ]
null
null
null
contrib/experimental/input/show_input.py
bitcraft/pyglet
144257c365ca85528c6a4c5bed8141e683d7a9b6
[ "BSD-3-Clause" ]
9
2015-12-12T09:12:46.000Z
2021-12-26T13:29:14.000Z
#!/usr/bin/env python """ """ __docformat__ = 'restructuredtext' __version__ = '$Id: $' import pyglet import input devices = input.get_devices() show_all = True window = pyglet.window.Window(1024, 768) batch = pyglet.graphics.Batch() class TrackedElement: def __init__(self, element): self.element = ...
22.736842
77
0.585648
0a409ba432fe384de46d15b88554e6585e8944a5
13,079
py
Python
synapse/point.py
maxdl/Synapse.py
5bef3eac9d2f98435a9c59efa1eab18052c7796a
[ "MIT" ]
null
null
null
synapse/point.py
maxdl/Synapse.py
5bef3eac9d2f98435a9c59efa1eab18052c7796a
[ "MIT" ]
null
null
null
synapse/point.py
maxdl/Synapse.py
5bef3eac9d2f98435a9c59efa1eab18052c7796a
[ "MIT" ]
null
null
null
import sys from . import geometry from .err_warn import ProfileError, profile_warning, profile_message def lazy_property(fn): """Decorator that makes a property lazily evaluated. From https://stevenloria.com/lazy-properties/. """ attr_name = '_lazy_' + fn.__name__ @property def _lazy_prope...
41.389241
96
0.60838
9aa498c223d1e38cdc87064b45ad0c22672e7d6d
556
py
Python
genrate_parenthesis111.py
kodreanuja/python
b894af6d4d94b2a8bd160703be5e8d7ab1029015
[ "MIT" ]
null
null
null
genrate_parenthesis111.py
kodreanuja/python
b894af6d4d94b2a8bd160703be5e8d7ab1029015
[ "MIT" ]
null
null
null
genrate_parenthesis111.py
kodreanuja/python
b894af6d4d94b2a8bd160703be5e8d7ab1029015
[ "MIT" ]
null
null
null
def genrate_parenthesis(n): stack = [] res = [] def backtraking(openN, closedN): if openN == closedN == n: res.append("".join(stack)) if openN < n: stack.append("(") backtraking(openN+1, closedN) stack.pop() if closedN < open...
27.8
44
0.489209
40cdb6d00dede9b1cde10c8048300ae6845d230b
3,288
py
Python
jina/excepts.py
abellimz/jina
010789331ce896ffcaea897402d698944f1a9d40
[ "Apache-2.0" ]
null
null
null
jina/excepts.py
abellimz/jina
010789331ce896ffcaea897402d698944f1a9d40
[ "Apache-2.0" ]
null
null
null
jina/excepts.py
abellimz/jina
010789331ce896ffcaea897402d698944f1a9d40
[ "Apache-2.0" ]
null
null
null
"""This modules defines all kinds of exceptions raised in Jina.""" class NoExplicitMessage(Exception): """Waiting until all partial messages are received.""" class ChainedPodException(Exception): """Chained exception from the last Pod.""" class MismatchedVersion(SystemError): """When the jina version ...
27.173554
102
0.742092
ef35097333c4f1069d1d07bc55fe1d7c189d2366
16,228
py
Python
advanced-lane-detection/lane_detection.py
sieniven/self-driving-project
ae135319f0991a940241c71f498865822a4f5b80
[ "Apache-2.0" ]
null
null
null
advanced-lane-detection/lane_detection.py
sieniven/self-driving-project
ae135319f0991a940241c71f498865822a4f5b80
[ "Apache-2.0" ]
null
null
null
advanced-lane-detection/lane_detection.py
sieniven/self-driving-project
ae135319f0991a940241c71f498865822a4f5b80
[ "Apache-2.0" ]
1
2022-03-31T10:33:45.000Z
2022-03-31T10:33:45.000Z
import os import numpy as np import cv2 from calibrate_camera import calibrate_camera, get_calibration from color_gradient_threshold import color_gradient_threshold from perspective_transform import corners_unwarp # define a class to store the characteristics of the lane detection class Lanes: def __init__(self):...
45.456583
141
0.618129
9d73f7af5b20ab31fffeef7829fe88d962f8232a
12,290
py
Python
distributed/cli/dask_worker.py
jonashaag/distributed
7936dcbb1bae42e47c5af4f91863dd7f7ec3b6c2
[ "BSD-3-Clause" ]
null
null
null
distributed/cli/dask_worker.py
jonashaag/distributed
7936dcbb1bae42e47c5af4f91863dd7f7ec3b6c2
[ "BSD-3-Clause" ]
null
null
null
distributed/cli/dask_worker.py
jonashaag/distributed
7936dcbb1bae42e47c5af4f91863dd7f7ec3b6c2
[ "BSD-3-Clause" ]
1
2020-06-19T11:38:14.000Z
2020-06-19T11:38:14.000Z
import asyncio import atexit import logging import gc import os import signal import sys import warnings import click import dask from dask.utils import ignoring from dask.system import CPU_COUNT from distributed import Nanny, Security from distributed.cli.utils import check_python_3, install_signal_handlers from dist...
27.311111
95
0.629292
3e621a1a711c50b80df4f2d68921a8f8edbd3354
22,156
py
Python
venv/lib/python3.6/site-packages/progressbar/widgets.py
ayumitanaka13/microblog
ae0405113608022b9627d8a2dc542e95b2c578eb
[ "MIT" ]
8
2021-12-14T21:30:01.000Z
2022-02-14T11:30:03.000Z
MetaScreener/external_sw/python2-packages/progressbar/widgets.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
null
null
null
MetaScreener/external_sw/python2-packages/progressbar/widgets.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
null
null
null
from __future__ import division, absolute_import, with_statement from __future__ import print_function import datetime import abc import sys import pprint from python_utils import converters from . import utils from . import six from . import base MAX_DATE = datetime.date(year=datetime.MAXYEAR, month=12, day=31) MA...
33.620637
79
0.623262
93cfe506dca3387572c8742cd37d12df578c7928
1,277
py
Python
feeder/parsers/FI.py
brunolajoie/electricitymap
273382e51525834df356d235913ee051035cda3b
[ "MIT" ]
5
2018-09-27T07:55:47.000Z
2021-09-30T09:34:35.000Z
feeder/parsers/FI.py
brunolajoie/electricitymap
273382e51525834df356d235913ee051035cda3b
[ "MIT" ]
null
null
null
feeder/parsers/FI.py
brunolajoie/electricitymap
273382e51525834df356d235913ee051035cda3b
[ "MIT" ]
null
null
null
import arrow import requests COUNTRY_CODE = 'FI' def fetch_FI(): url = 'http://driftsdata.statnett.no/restapi/ProductionConsumption/GetLatestDetailedOverview' data = requests.get(url).json() countries = map(lambda x: x['value'], data['Headers']) i = countries.index(COUNTRY_CODE) obj = { '...
38.69697
117
0.560689
a36f09794d2b2eae0e279f19b1acfbd87196c56e
1,972
py
Python
openprocurement/auctions/lease/tests/cancellation.py
antonkorobko/openprocurement.auctions.lease
56e04f2a6f3593bf2b1dd867fad7d7deec1f425a
[ "Apache-2.0" ]
null
null
null
openprocurement/auctions/lease/tests/cancellation.py
antonkorobko/openprocurement.auctions.lease
56e04f2a6f3593bf2b1dd867fad7d7deec1f425a
[ "Apache-2.0" ]
23
2018-05-18T13:55:58.000Z
2020-01-06T18:52:48.000Z
openprocurement/auctions/lease/tests/cancellation.py
antonkorobko/openprocurement.auctions.lease
56e04f2a6f3593bf2b1dd867fad7d7deec1f425a
[ "Apache-2.0" ]
9
2018-05-15T09:32:12.000Z
2019-04-30T09:54:47.000Z
# -*- coding: utf-8 -*- import unittest from openprocurement.auctions.lease.tests.base import BaseAuctionWebTest, test_lots, test_bids, test_financial_auction_data, test_financial_bids from openprocurement.auctions.core.tests.cancellation import ( AuctionCancellationResourceTestMixin, AuctionLotCancellationRes...
36.518519
144
0.786511
d98805ccbeee73e75458823e025daf2014d16c65
8,314
py
Python
lark/parser_frontends.py
evilnose/lark
811a4eb4925679fb62640f56e3bec4acada42fb9
[ "MIT" ]
null
null
null
lark/parser_frontends.py
evilnose/lark
811a4eb4925679fb62640f56e3bec4acada42fb9
[ "MIT" ]
null
null
null
lark/parser_frontends.py
evilnose/lark
811a4eb4925679fb62640f56e3bec4acada42fb9
[ "MIT" ]
null
null
null
from .exceptions import ConfigurationError, GrammarError, assert_config from .utils import get_regexp_width, Serialize from .parsers.grammar_analysis import GrammarAnalyzer from .lexer import LexerThread, TraditionalLexer, ContextualLexer, Lexer, Token, TerminalDef from .parsers import earley, xearley, cyk from .parser...
36.147826
144
0.671638
070f875e525bb577d2b8309eee202af6dc9f6e1b
1,166
py
Python
Lib/test/anygui.py
jimmyyu2004/jython
5b4dc2d54d01a6fda8c55d07b2608167e7a40769
[ "CNRI-Jython" ]
332
2015-08-22T12:43:56.000Z
2022-03-17T01:05:43.000Z
Lib/test/anygui.py
Pandinosaurus/jython3
def4f8ec47cb7a9c799ea4c745f12badf92c5769
[ "CNRI-Jython" ]
36
2015-05-30T08:39:19.000Z
2022-03-04T20:42:33.000Z
Lib/test/anygui.py
Pandinosaurus/jython3
def4f8ec47cb7a9c799ea4c745f12badf92c5769
[ "CNRI-Jython" ]
74
2015-05-29T17:18:53.000Z
2022-01-15T14:06:44.000Z
'''Used by test_import_jy/test_getattr_module''' import sys class anygui: def __init__(self): self.__backend = None self.__backends = ['msw', 'x', 'mac', 'wx', 'tk', 'java'] def __try_to_get(self, modulename): import imp try: module = imp.find_module(modulename) ...
29.15
70
0.593482
b0e57877717f3012424eb4b1b4eb2a7d7daf5cbf
5,903
py
Python
tests/test_model_service.py
FerdinandZhong/ML-Model-CI
90fa2de056dca05031f0787b96c520dc57dc664d
[ "Apache-2.0" ]
1
2021-01-11T12:11:31.000Z
2021-01-11T12:11:31.000Z
tests/test_model_service.py
FerdinandZhong/ML-Model-CI
90fa2de056dca05031f0787b96c520dc57dc664d
[ "Apache-2.0" ]
null
null
null
tests/test_model_service.py
FerdinandZhong/ML-Model-CI
90fa2de056dca05031f0787b96c520dc57dc664d
[ "Apache-2.0" ]
null
null
null
from modelci.persistence import mongo from modelci.persistence.service import ModelService from modelci.types.bo import ( DynamicProfileResultBO, ProfileMemory, ProfileLatency, ProfileThroughput, ModelBO, Framework, Engine, ModelVersion, IOShape, Weight, StaticProfileResultBO...
30.905759
94
0.685245
0e9499d9deadafcd509f59a06fd493d2b43a854e
8,855
py
Python
bbob/bbob_pproc/compall/ppperfprof.py
sjvrijn/ConfiguringCMAES
ff48885cbe15b86b90edd0279f6bdf8a43dfd85d
[ "MIT" ]
1
2019-09-12T07:46:00.000Z
2019-09-12T07:46:00.000Z
bbob/bbob_pproc/compall/ppperfprof.py
sjvrijn/ConfiguringCMAES
ff48885cbe15b86b90edd0279f6bdf8a43dfd85d
[ "MIT" ]
null
null
null
bbob/bbob_pproc/compall/ppperfprof.py
sjvrijn/ConfiguringCMAES
ff48885cbe15b86b90edd0279f6bdf8a43dfd85d
[ "MIT" ]
1
2019-01-20T16:55:02.000Z
2019-01-20T16:55:02.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """For generating performance profiles. This module is not in use (anymore or not yet?). **Example** .. plot:: :width: 75% import urllib import tarfile import glob from pylab import * import pickle import bbob_pproc as bb import bbob_pproc.compa...
39.70852
166
0.595257
2751bf86ff4f608b10c10a65410a1d77f26b8111
1,450
py
Python
packaging/ansible-runner-service-project/project/roles/ovirt-host-upgrade/callback_plugins/hostupgradeplugin.py
hbraha/ovirt-engine
a6c17bd73d510d6b44ac72000c0ff686b484746c
[ "Apache-2.0" ]
347
2015-01-20T14:13:21.000Z
2022-03-31T17:53:11.000Z
packaging/ansible-runner-service-project/project/roles/ovirt-host-upgrade/callback_plugins/hostupgradeplugin.py
hbraha/ovirt-engine
a6c17bd73d510d6b44ac72000c0ff686b484746c
[ "Apache-2.0" ]
128
2015-05-22T19:14:32.000Z
2022-03-31T08:11:18.000Z
packaging/ansible-runner-service-project/project/roles/ovirt-host-upgrade/callback_plugins/hostupgradeplugin.py
hbraha/ovirt-engine
a6c17bd73d510d6b44ac72000c0ff686b484746c
[ "Apache-2.0" ]
202
2015-01-04T06:20:49.000Z
2022-03-08T15:30:08.000Z
from __future__ import absolute_import import json from ansible.plugins.callback import CallbackBase __metaclass__ = type class CallbackModule(CallbackBase): """ This callback module print list of packages which yum module report to be updated. It checks only tasks with are tagged by 'updatecheck' tag....
31.521739
77
0.665517
ed1a0752af3dd36bc200bee34bf74826f7326b1a
1,167
py
Python
test/t1000/unit/domain/entity/test_events.py
helcerion/T1000
25684e88dc8adb37fe07ff358f84f797f7b9c716
[ "MIT" ]
1
2021-08-23T01:33:03.000Z
2021-08-23T01:33:03.000Z
test/t1000/unit/domain/entity/test_events.py
helcerion/T1000
25684e88dc8adb37fe07ff358f84f797f7b9c716
[ "MIT" ]
20
2019-10-29T10:55:27.000Z
2022-03-12T00:04:50.000Z
test/t1000/unit/domain/entity/test_events.py
helcerion/T1000
25684e88dc8adb37fe07ff358f84f797f7b9c716
[ "MIT" ]
null
null
null
import unittest from unittest.mock import MagicMock, Mock from src.t1000.domain.entity import Events class EventsTestCase(unittest.TestCase): def setUp(self): return super().setUp() def tearDown(self): return super().tearDown() def test_equal_events(self): event_mock_1 = Mock() ...
34.323529
113
0.684662
30e566b5bd76c9860e06826d5c8833fa5d2812d2
377
py
Python
docs/examples/widgets/placeholders.py
dpoehls/textual
f47b3e089c681275c48c0debc7a320b66a772a50
[ "MIT" ]
6,706
2021-06-08T17:14:36.000Z
2022-01-05T09:53:23.000Z
docs/examples/widgets/placeholders.py
dpoehls/textual
f47b3e089c681275c48c0debc7a320b66a772a50
[ "MIT" ]
97
2022-01-05T11:35:14.000Z
2022-03-30T19:58:48.000Z
docs/examples/widgets/placeholders.py
dpoehls/textual
f47b3e089c681275c48c0debc7a320b66a772a50
[ "MIT" ]
166
2021-06-12T11:11:19.000Z
2022-01-04T05:32:32.000Z
from textual.app import App from textual.widgets import Placeholder class SimpleApp(App): """Demonstrates smooth animation""" async def on_mount(self) -> None: """Build layout here.""" await self.view.dock(Placeholder(), edge="left", size=40) await self.view.dock(Placeholder(), Place...
23.5625
70
0.67374
404952a59de5eb657d93834af3d6c77163a5ff75
1,844
py
Python
src/AIAGeneration/Alignment.py
Dsbaule/Sketch2AIA
72cf271d30a08e7dc856bf452f8370111dde19fe
[ "Apache-2.0" ]
null
null
null
src/AIAGeneration/Alignment.py
Dsbaule/Sketch2AIA
72cf271d30a08e7dc856bf452f8370111dde19fe
[ "Apache-2.0" ]
null
null
null
src/AIAGeneration/Alignment.py
Dsbaule/Sketch2AIA
72cf271d30a08e7dc856bf452f8370111dde19fe
[ "Apache-2.0" ]
null
null
null
from .Component import Component def align(componentList, vertical = True): # Create a tuple for current alignment: curAlignment = ('vertical' if vertical else 'horizontal', list()) # Sort list based on current alignment (By x for horizontal, by y for vertical) if vertical: componentList.sort(...
41.909091
123
0.64154
7aa21f8013e3e5b3710a27105529f2aaab7761f6
31,465
py
Python
inference_evaluation/vis_combined_results.py
embedded-machine-learning/eml-tools
9c9d12f9b970a42360bc6ca350f3b67ad822b141
[ "Apache-2.0" ]
null
null
null
inference_evaluation/vis_combined_results.py
embedded-machine-learning/eml-tools
9c9d12f9b970a42360bc6ca350f3b67ad822b141
[ "Apache-2.0" ]
null
null
null
inference_evaluation/vis_combined_results.py
embedded-machine-learning/eml-tools
9c9d12f9b970a42360bc6ca350f3b67ad822b141
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Visualize performance and latencies from networks. parser = argparse.ArgumentParser( description='Evaluation and Visualization') parser.add_argument("-lat", '--latency_file', default=None, help='Directory with latency inputs', required=False) p...
43.640777
123
0.618592
f0cc03f511ca68f4729cf5832eb7e93abb688151
889
py
Python
tempest/services/volume/v2/json/admin/volume_hosts_client.py
KiranPawar72/tempest
1fef3dd92b083055793065dd0693454735ec2c01
[ "Apache-2.0" ]
null
null
null
tempest/services/volume/v2/json/admin/volume_hosts_client.py
KiranPawar72/tempest
1fef3dd92b083055793065dd0693454735ec2c01
[ "Apache-2.0" ]
null
null
null
tempest/services/volume/v2/json/admin/volume_hosts_client.py
KiranPawar72/tempest
1fef3dd92b083055793065dd0693454735ec2c01
[ "Apache-2.0" ]
1
2020-07-21T02:18:23.000Z
2020-07-21T02:18:23.000Z
# Copyright 2014 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...
35.56
78
0.740157
46e98df5c916c5bfb69a6847f52e17e8662daa37
2,772
py
Python
scripts/relief.py
AleZandona/ml_rSNFi
a765042fd45dbe88b544eb2611dee171a0939caa
[ "MIT" ]
2
2017-07-22T12:17:37.000Z
2020-04-05T11:26:44.000Z
scripts/relief.py
AleZandona/ml_rSNFi
a765042fd45dbe88b544eb2611dee171a0939caa
[ "MIT" ]
null
null
null
scripts/relief.py
AleZandona/ml_rSNFi
a765042fd45dbe88b544eb2611dee171a0939caa
[ "MIT" ]
null
null
null
from __future__ import division import numpy as np __author__ = 'Davide Albanese' def diff(a, b, nu): d = np.abs(a - b) / nu d[np.isnan(d)] = 0.0 return d def knearest(x, y, i, cl, k, nu): dist, idx = [], [] for j in range(x.shape[0]): if (y[j] == cl) and (i != j): dist.appe...
26.653846
65
0.458514
77a9c254f496816245679c3f860a7aa21f7c1fc1
10,600
py
Python
test/functional/mempool_packages.py
helveticum/helveticum
0781224d86d542281b1f2f98ae533d1252e1e71b
[ "MIT" ]
1
2017-07-06T06:04:15.000Z
2017-07-06T06:04:15.000Z
test/functional/mempool_packages.py
helveticum/helveticum
0781224d86d542281b1f2f98ae533d1252e1e71b
[ "MIT" ]
null
null
null
test/functional/mempool_packages.py
helveticum/helveticum
0781224d86d542281b1f2f98ae533d1252e1e71b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Helveticum Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test descendant package tracking code.""" from test_framework.test_framework import HelveticumTestF...
43.265306
152
0.633774
5b18c5269e26bad9b73c8c704b750e60615976cc
1,891
py
Python
spacy/tests/lang/bn/test_tokenizer.py
snosrap/spaCy
3f68bbcfec44ef55d101e6db742d353b72652129
[ "MIT" ]
22,040
2016-10-03T11:58:15.000Z
2022-03-31T21:08:19.000Z
spacy/tests/lang/bn/test_tokenizer.py
snosrap/spaCy
3f68bbcfec44ef55d101e6db742d353b72652129
[ "MIT" ]
6,927
2016-10-03T13:11:11.000Z
2022-03-31T17:01:25.000Z
spacy/tests/lang/bn/test_tokenizer.py
snosrap/spaCy
3f68bbcfec44ef55d101e6db742d353b72652129
[ "MIT" ]
4,403
2016-10-04T03:36:33.000Z
2022-03-31T14:12:34.000Z
import pytest # fmt: off TESTCASES = [ # Punctuation tests ("আমি বাংলায় গান গাই!", ["আমি", "বাংলায়", "গান", "গাই", "!"]), ("আমি বাংলায় কথা কই।", ["আমি", "বাংলায়", "কথা", "কই", "।"]), ("বসুন্ধরা জনসম্মুখে দোষ স্বীকার করলো না?", ["বসুন্ধরা", "জনসম্মুখে", "দোষ", "স্বীকার", "করলো", "না", "?"]), ("...
49.763158
148
0.483871
e0b7f659e394d431caf2056ba379ff946db08766
12,873
py
Python
functional_tests/pages/components/forms.py
pcea-st-andrews/stands-ims
58aaf7bb5e76b329438eaa5cd49a54925c81cfd9
[ "MIT" ]
1
2021-09-11T17:22:37.000Z
2021-09-11T17:22:37.000Z
functional_tests/pages/components/forms.py
pcea-st-andrews/stands-ims
58aaf7bb5e76b329438eaa5cd49a54925c81cfd9
[ "MIT" ]
39
2021-06-26T02:01:37.000Z
2021-07-14T17:11:53.000Z
functional_tests/pages/components/forms.py
pcea-st-andrews/stands-ims
58aaf7bb5e76b329438eaa5cd49a54925c81cfd9
[ "MIT" ]
2
2021-07-19T08:00:58.000Z
2022-02-05T16:38:02.000Z
from selenium.webdriver.common.by import By from .base import BaseComponent class FormComponent(BaseComponent): SUBMIT_BUTTON = (By.CSS_SELECTOR, "button[type='submit']") @property def _submit_button(self): return self.browser.find_element(*self.SUBMIT_BUTTON) @property def submit_butto...
33.787402
85
0.713742
f2f1dcad247566196b49959bc4e90057b6781ade
62
py
Python
funcs/variable.py
nickborodinov/dqn
a9f5f4662ea2b9277378b7921ab6abedd02e0db6
[ "MIT" ]
null
null
null
funcs/variable.py
nickborodinov/dqn
a9f5f4662ea2b9277378b7921ab6abedd02e0db6
[ "MIT" ]
null
null
null
funcs/variable.py
nickborodinov/dqn
a9f5f4662ea2b9277378b7921ab6abedd02e0db6
[ "MIT" ]
null
null
null
import numpy as np def funcsion(array): return array
12.4
21
0.677419
68087c1a114a935ad3d5d9b918c4571e85ed9cda
3,515
py
Python
python/cudf/cudf/tests/utils.py
brandon-b-miller/cudf
5d2d68ef231bedd3a7e590b071f4d8e4af7e5f93
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/tests/utils.py
brandon-b-miller/cudf
5d2d68ef231bedd3a7e590b071f4d8e4af7e5f93
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/tests/utils.py
brandon-b-miller/cudf
5d2d68ef231bedd3a7e590b071f4d8e4af7e5f93
[ "Apache-2.0" ]
null
null
null
from contextlib import contextmanager import numpy as np import pandas as pd import pandas.util.testing as tm from cudf import Series from cudf.utils import utils supported_numpy_dtypes = [ "bool", "int8", "int16", "int32", "int64", "float32", "float64", "datetime64[ms]", "datetim...
26.428571
79
0.606259
c98e467b1a37f91489346e32bf6639db8323ea2c
1,118
py
Python
savegamebackup/subcommands/restore.py
philipschoemig/SavegameBackup
4bbfc8c739dfcf14c4a4d0917124426abc0d130f
[ "BSD-3-Clause" ]
1
2019-05-01T02:31:15.000Z
2019-05-01T02:31:15.000Z
savegamebackup/subcommands/restore.py
philipschoemig/SavegameBackup
4bbfc8c739dfcf14c4a4d0917124426abc0d130f
[ "BSD-3-Clause" ]
null
null
null
savegamebackup/subcommands/restore.py
philipschoemig/SavegameBackup
4bbfc8c739dfcf14c4a4d0917124426abc0d130f
[ "BSD-3-Clause" ]
null
null
null
""" Created on 22.01.2016 @author: Philip Schoemig """ import utils.game class Processor(object): def __init__(self, configurator): self.configurator = configurator self.args = None self.game_manager = None def run(self, args): print("== Restore backup ==") self.args...
25.409091
56
0.54025
348731f4c88fdbb543579f68454beffc17ebf50f
6,175
py
Python
Feed_Handler/bitmex_FH/BITMEX.py
anubhavj880/Jack
932fc60923ccc17b5fd77bd13ee381b1c8ba0f15
[ "Apache-2.0" ]
null
null
null
Feed_Handler/bitmex_FH/BITMEX.py
anubhavj880/Jack
932fc60923ccc17b5fd77bd13ee381b1c8ba0f15
[ "Apache-2.0" ]
null
null
null
Feed_Handler/bitmex_FH/BITMEX.py
anubhavj880/Jack
932fc60923ccc17b5fd77bd13ee381b1c8ba0f15
[ "Apache-2.0" ]
null
null
null
import time, datetime import Utils import threading import requests import json from connection import Connection books = {} exchCode = 'BITMEX' logger = Utils.getLogger() class Book(): def __init__(self, symbol, exchCode): self.symbol = symbol self.exchCode = exchCode self.bids = [] ...
34.497207
164
0.580081
9678bc1038dcae1e809ac663da6fe8b763a73758
4,975
py
Python
pywraps/py_graph.py
Learner0x5a/idapython
585173f0d49b7deaa5aedc136f73af910a8d4b38
[ "BSD-3-Clause" ]
10
2017-02-15T05:03:25.000Z
2021-01-22T07:20:32.000Z
pywraps/py_graph.py
Learner0x5a/idapython
585173f0d49b7deaa5aedc136f73af910a8d4b38
[ "BSD-3-Clause" ]
null
null
null
pywraps/py_graph.py
Learner0x5a/idapython
585173f0d49b7deaa5aedc136f73af910a8d4b38
[ "BSD-3-Clause" ]
30
2016-01-27T22:47:30.000Z
2022-03-11T19:56:59.000Z
#<pycode(py_graph)> class GraphViewer(CustomIDAMemo): """This class wraps the user graphing facility provided by the graph.hpp file""" def __init__(self, title, close_open = False): """ Constructs the GraphView object. Please do not remove or rename the private fields @param tit...
30.709877
133
0.589146
ef7b211b14bd4f46303b50e36d30871399437386
15,958
py
Python
lib/assets/Lib/encodings/aliases.py
s6007589/cafe-grader-web
18a993801c698fb7b7ec6ae5f4b67920503cb242
[ "MIT" ]
25
2016-09-04T07:34:13.000Z
2022-02-14T07:39:02.000Z
lib/assets/Lib/encodings/aliases.py
it56660024/cafe-grader-web
e9a1305fd62e79e54f6961f97ddc5cd57bafd73c
[ "MIT" ]
25
2015-02-05T03:59:27.000Z
2022-02-11T16:54:04.000Z
lib/assets/Lib/encodings/aliases.py
it56660024/cafe-grader-web
e9a1305fd62e79e54f6961f97ddc5cd57bafd73c
[ "MIT" ]
16
2016-09-05T00:30:27.000Z
2021-12-05T11:07:02.000Z
""" Encoding Aliases Support This module is used by the encodings package search function to map encodings names to module names. Note that the search function normalizes the encoding names before doing the lookup, so the mapping will have to map normalized encoding names to module names. ...
29.280734
84
0.436333
6e166888e21926ac6a7aea4801ff0b097ca7a213
362
py
Python
tests/data/fmtskip3.py
AppliedIntuition/black
bc0c5ca9d41956bf5ed9fc851202579f9e52a338
[ "MIT" ]
16,110
2019-07-22T21:54:54.000Z
2022-03-31T22:52:39.000Z
tests/data/fmtskip3.py
marnixah/black-but-usable
83b83d3066d1d857983bfa1a666a409e7255d79d
[ "MIT" ]
1,981
2019-07-22T21:26:16.000Z
2022-03-31T23:14:35.000Z
tests/data/fmtskip3.py
marnixah/black-but-usable
83b83d3066d1d857983bfa1a666a409e7255d79d
[ "MIT" ]
1,762
2019-07-22T21:23:00.000Z
2022-03-31T06:10:22.000Z
a = 3 # fmt: off b, c = 1, 2 d = 6 # fmt: skip e = 5 # fmt: on f = ["This is a very long line that should be formatted into a clearer line ", "by rearranging."] # output a = 3 # fmt: off b, c = 1, 2 d = 6 # fmt: skip e = 5 # fmt: on f = [ "This is a very long line that should be formatted into a...
17.238095
97
0.558011
14bced8febcbcd417669329a4e09a02ea4f9b8d0
18,221
py
Python
ugali/utils/idl.py
DarkEnergySurvey/ugali
82abffcc92bddf830d89f85cb3966870f7d9f720
[ "MIT" ]
12
2016-10-26T20:45:33.000Z
2021-11-24T04:07:43.000Z
ugali/utils/idl.py
DarkEnergySurvey/ugali
82abffcc92bddf830d89f85cb3966870f7d9f720
[ "MIT" ]
64
2017-04-14T15:04:24.000Z
2022-02-03T19:42:57.000Z
ugali/utils/idl.py
DarkEnergySurvey/ugali
82abffcc92bddf830d89f85cb3966870f7d9f720
[ "MIT" ]
12
2016-06-23T21:42:46.000Z
2021-06-19T05:29:49.000Z
from numpy import array, sqrt, zeros, sin, cos, arange, arcsin,\ arctan2, transpose, concatenate, ndarray, pi, dot, deg2rad,\ rad2deg def jprecess(ra, dec, mu_radec=None, parallax=None, rad_vel=None, epoch=None): """ NAME: JPRECESS PURPOSE: Precess astronomical coordinates from...
41.600457
205
0.573788
d598f73487006a398b500668a8e35aea579a4175
4,331
py
Python
tests/enumerator_test.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
1
2022-03-11T13:36:34.000Z
2022-03-11T13:36:34.000Z
tests/enumerator_test.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
null
null
null
tests/enumerator_test.py
Walon1998/dace
95ddfd3e9a5c654f0f0d66d026e0b64ec0f028a0
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. from dace.transformation.estimator.enumeration.brute_force_enumerator import BruteForceEnumerator from dace.transformation.estimator.enumeration.connected_enumerator import ConnectedEnumerator import dace import numpy as np import pytest from ...
30.286713
97
0.648118
8f863f799626191511e4fc03f64322884f6b195d
6,233
py
Python
build/android/pylib/gtest/test_package_exe.py
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
5
2019-05-24T01:25:34.000Z
2020-04-06T05:07:01.000Z
build/android/pylib/gtest/test_package_exe.py
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
null
null
null
build/android/pylib/gtest/test_package_exe.py
domenic/mojo
53dda76fed90a47c35ed6e06baf833a0d44495b8
[ "BSD-3-Clause" ]
5
2016-12-23T04:21:10.000Z
2020-06-18T13:52:33.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Defines TestPackageExecutable to help run stand-alone executables.""" import logging import os import sys import tempfile from pylib import cmd_help...
38.475309
79
0.665651
b64ec0801f92cdcac47a0bb6d41d69d879305953
2,125
py
Python
src/items/models.py
elipavlov/items
c935e3321284af251c3339e72531f26e9dd64802
[ "MIT" ]
null
null
null
src/items/models.py
elipavlov/items
c935e3321284af251c3339e72531f26e9dd64802
[ "MIT" ]
null
null
null
src/items/models.py
elipavlov/items
c935e3321284af251c3339e72531f26e9dd64802
[ "MIT" ]
null
null
null
# coding=utf-8 from datetime import datetime, timedelta from flask_sqlalchemy import SQLAlchemy from .exceptions import DataExtractionError db = SQLAlchemy() def install_db(app): db.init_app(app) return app def init_db(): db.create_all() def drop_db(): db.drop_all() class Item(db.Model): ...
27.960526
94
0.558118
80a9d4a68d287c6cb092fe240a977291990d3c33
20,684
py
Python
sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2021_06_01_preview/operations/_mhsm_private_endpoint_connections_operations.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2021_06_01_preview/operations/_mhsm_private_endpoint_connections_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2021_06_01_preview/operations/_mhsm_private_endpoint_connections_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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. # Changes may ...
52.100756
231
0.68188
83f375fb4881d82fe78a068dd21e2bcf3e3c9dab
354
py
Python
core/forms.py
Merzoit/lssiten
10d99e6710bfccef7117ce1fc2bbb18d2519819a
[ "Apache-2.0" ]
null
null
null
core/forms.py
Merzoit/lssiten
10d99e6710bfccef7117ce1fc2bbb18d2519819a
[ "Apache-2.0" ]
null
null
null
core/forms.py
Merzoit/lssiten
10d99e6710bfccef7117ce1fc2bbb18d2519819a
[ "Apache-2.0" ]
null
null
null
from django import forms from .models import Order class OrderForm(forms.ModelForm): class Meta: model = Order fields = ("name", "email", "phone") def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) for field in self.fields: self.fields[field].widg...
32.181818
69
0.618644
fccda7a33af9022215e019203b9f6000cc4e965e
4,640
py
Python
model.py
wuhuicumt/LearningWhereToLook
4fa71aebbb451de29f876fad83dbbac34037aa13
[ "MIT" ]
4
2021-05-08T12:40:13.000Z
2022-02-10T12:02:12.000Z
model.py
wuhuicumt/LearningWhereToLook
4fa71aebbb451de29f876fad83dbbac34037aa13
[ "MIT" ]
null
null
null
model.py
wuhuicumt/LearningWhereToLook
4fa71aebbb451de29f876fad83dbbac34037aa13
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torchvision.models import vgg19 class ChannelAttention(nn.Module): def __init__(self, in_dim): """ Borrowed from https://github.com/sinashish/multi-scale-attention """ super(ChannelAttention, self).__init__() ...
28.466258
84
0.553233
08ab9dc0c97db912530d2525272f64aa40415faf
1,096
py
Python
tests/functional/intfunc/math/test_cosh_01.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/functional/intfunc/math/test_cosh_01.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/functional/intfunc/math/test_cosh_01.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: functional.intfunc.math.cosh_01 # title: New Built-in Functions, Firebird 2.1 : COSH( <number>) # decription: test of COSH # Returns the hyperbolic cosine of a number. # tracker_id: # min_versions: [] # versions: 2.1 # qmid: functional.intfunc.math.c...
21.490196
70
0.610401
5a8f7dd000a3a6b3022e7dd93a7c101dca4023b0
3,388
py
Python
src/python/pants/build_graph/prep_command.py
AllClearID/pants
c4fdf00a3bdf9f26f876e85c46909d0729f7132c
[ "Apache-2.0" ]
1
2018-12-10T21:31:02.000Z
2018-12-10T21:31:02.000Z
src/python/pants/build_graph/prep_command.py
AllClearID/pants
c4fdf00a3bdf9f26f876e85c46909d0729f7132c
[ "Apache-2.0" ]
2
2016-10-13T21:37:42.000Z
2018-07-20T20:14:33.000Z
src/python/pants/build_graph/prep_command.py
AllClearID/pants
c4fdf00a3bdf9f26f876e85c46909d0729f7132c
[ "Apache-2.0" ]
1
2018-03-08T22:21:44.000Z
2018-03-08T22:21:44.000Z
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from pants.base.exce...
37.644444
98
0.699823
74ee4fa16cf61a5754b623dc897c21bbfa218018
133
py
Python
core_get/actions/package/package_options.py
core-get/core-get
8fb960e4e51d0d46b5e3b2f4832eb4a39e0e60f7
[ "MIT" ]
null
null
null
core_get/actions/package/package_options.py
core-get/core-get
8fb960e4e51d0d46b5e3b2f4832eb4a39e0e60f7
[ "MIT" ]
null
null
null
core_get/actions/package/package_options.py
core-get/core-get
8fb960e4e51d0d46b5e3b2f4832eb4a39e0e60f7
[ "MIT" ]
null
null
null
from dataclasses import dataclass from core_get.options.options import Options @dataclass class PackageOptions(Options): pass
14.777778
44
0.81203
ebfd58968e5be56bcc65630f552ecd9f7d8ae395
1,958
py
Python
python/perspective/scripts/write_version.py
vishalbelsare/perspective
a0f2ad988c5cec40258e1549f2986fa7c9d938da
[ "Apache-2.0" ]
2,436
2019-04-30T21:24:08.000Z
2022-03-31T13:47:52.000Z
python/perspective/scripts/write_version.py
vishalbelsare/perspective
a0f2ad988c5cec40258e1549f2986fa7c9d938da
[ "Apache-2.0" ]
773
2019-05-01T16:45:59.000Z
2022-03-31T16:09:43.000Z
python/perspective/scripts/write_version.py
vishalbelsare/perspective
a0f2ad988c5cec40258e1549f2986fa7c9d938da
[ "Apache-2.0" ]
379
2019-05-01T11:22:02.000Z
2022-03-31T10:14:53.000Z
################################################################################ # # Copyright (c) 2019, the Perspective Authors. # # This file is part of the Perspective library, distributed under the terms of # the Apache License 2.0. The full license can be found in the LICENSE file. # import os import json import...
36.259259
109
0.669561
0e7b581868fe767a1a2202a350cef441901fb15d
2,272
py
Python
src/hdmf/monitor.py
hrnciar/hdmf
73d93364fa5b4d007a1cbf217b16c66a166bf39b
[ "BSD-3-Clause-LBNL" ]
25
2019-03-07T15:33:16.000Z
2022-02-16T20:03:57.000Z
src/hdmf/monitor.py
hrnciar/hdmf
73d93364fa5b4d007a1cbf217b16c66a166bf39b
[ "BSD-3-Clause-LBNL" ]
641
2019-02-02T00:31:12.000Z
2022-03-31T18:16:54.000Z
src/hdmf/monitor.py
hrnciar/hdmf
73d93364fa5b4d007a1cbf217b16c66a166bf39b
[ "BSD-3-Clause-LBNL" ]
16
2019-02-05T18:21:35.000Z
2022-02-14T23:37:21.000Z
from abc import ABCMeta, abstractmethod from .data_utils import AbstractDataChunkIterator, DataChunkIterator, DataChunk from .utils import docval, getargs, call_docval_func class NotYetExhausted(Exception): pass class DataChunkProcessor(AbstractDataChunkIterator, metaclass=ABCMeta): @docval({'name': 'data...
30.702703
99
0.658011
b62c7b242db7da8bbfa0b302fea40b7eceb7d096
21,596
py
Python
tests/sc/test_asset_lists.py
allenmichael/pyTenable
8372cfdf3ced99de50227f6fbb37d6db2b26291e
[ "MIT" ]
null
null
null
tests/sc/test_asset_lists.py
allenmichael/pyTenable
8372cfdf3ced99de50227f6fbb37d6db2b26291e
[ "MIT" ]
null
null
null
tests/sc/test_asset_lists.py
allenmichael/pyTenable
8372cfdf3ced99de50227f6fbb37d6db2b26291e
[ "MIT" ]
null
null
null
import os import pytest from tenable.errors import APIError, UnexpectedValueError from ..checker import check, single def test_asset_lists_dynamic_rules_constructor_passthrough(sc): data = {'test': 'value'} assert data == sc.asset_lists._dynamic_rules_constructor(data) def test_asset_lists_dynamic_rules_co...
32.329341
90
0.644518
5f7d955bcfdeb15f9ad35bf2ce596b9afa40dd6b
702
py
Python
helpers/calculators.py
AnimusXCASH/DCABinanceTrader
2009898ca934ee31a1dffb409ff75ef699e46b08
[ "MIT" ]
4
2022-01-27T18:29:30.000Z
2022-03-27T11:16:32.000Z
helpers/calculators.py
AnimusXCASH/DCABinanceTrader
2009898ca934ee31a1dffb409ff75ef699e46b08
[ "MIT" ]
2
2022-01-17T12:58:09.000Z
2022-02-26T05:27:08.000Z
helpers/calculators.py
AnimusXCASH/DCABinanceTrader
2009898ca934ee31a1dffb409ff75ef699e46b08
[ "MIT" ]
1
2022-03-26T08:18:27.000Z
2022-03-26T08:18:27.000Z
class Calculators(): def __init__(self): pass def dca(self, all_buys: list) -> tuple: """ Calculates the DCA entry, total quote invested and total coins purchased :param all_buys: All fully filled buys marked in database for symbol :return: Average DCA entry, total dolla...
36.947368
106
0.653846
eaf4f311062e06df23ae9bfeb0f2183b30873778
12,085
py
Python
eZmaxApi/model/ezsignfolder_get_ezsigndocuments_v1_response_all_of.py
ezmaxinc/eZmax-SDK-python
6794b8001abfb7d9ae18a3b87aba164839b925a0
[ "MIT" ]
null
null
null
eZmaxApi/model/ezsignfolder_get_ezsigndocuments_v1_response_all_of.py
ezmaxinc/eZmax-SDK-python
6794b8001abfb7d9ae18a3b87aba164839b925a0
[ "MIT" ]
null
null
null
eZmaxApi/model/ezsignfolder_get_ezsigndocuments_v1_response_all_of.py
ezmaxinc/eZmax-SDK-python
6794b8001abfb7d9ae18a3b87aba164839b925a0
[ "MIT" ]
null
null
null
""" eZmax API Definition (Full) This API expose all the functionnalities for the eZmax and eZsign applications. # noqa: E501 The version of the OpenAPI document: 1.1.7 Contact: support-api@ezmax.ca Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401...
43.628159
134
0.574431
f0ad0433fbb2544954776210273a8e2ad44d6433
4,225
py
Python
ml_classifier/cls_run_user_pic.py
shijun18/XunFei_Classifier
f1331f1ada5b897656f7b3161b000c29e70e450f
[ "MIT" ]
12
2021-07-14T13:16:07.000Z
2022-01-27T11:57:50.000Z
ml_classifier/cls_run_user_pic.py
shijun18/XunFei_Classifier
f1331f1ada5b897656f7b3161b000c29e70e450f
[ "MIT" ]
null
null
null
ml_classifier/cls_run_user_pic.py
shijun18/XunFei_Classifier
f1331f1ada5b897656f7b3161b000c29e70e450f
[ "MIT" ]
2
2021-06-30T07:51:36.000Z
2021-12-11T07:46:39.000Z
import os import pandas as pd import pickle from cls_trainer import ML_Classifier,params_dict from sklearn.metrics import make_scorer from sklearn.metrics import accuracy_score,precision_score,f1_score,recall_score from sklearn.preprocessing import LabelEncoder # _AVAIL_CLF = ['lasso','knn','svm','decision tree','r...
34.631148
145
0.694201
6e307d408522eb30bc1af46dd07c9d2971d20a5f
11,240
py
Python
poker_remnants.py
HaowenLee/PokerRemnants-
ca55a98be9cf6982956c7a47e03761c69002301a
[ "Apache-2.0" ]
1
2019-03-29T12:59:00.000Z
2019-03-29T12:59:00.000Z
poker_remnants.py
HaowenLee/PokerRemnants-
ca55a98be9cf6982956c7a47e03761c69002301a
[ "Apache-2.0" ]
null
null
null
poker_remnants.py
HaowenLee/PokerRemnants-
ca55a98be9cf6982956c7a47e03761c69002301a
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- # 该算法比较慢 import operator # 牌型枚举 class ComeType: PASS, SINGLE, PAIR, TRIPLE, TRIPLE_ONE, TRIPLE_TWO, FOURTH_TWO_ONES, FOURTH_TWO_PAIRS, STRAIGHT, EVEN_PAIR, BOMB = \ range(11) # 3-14 分别代表 3-10, J, Q, K, A # 16, 18, 19 分别代表 2, little_joker, big_joker # 将 2 与其他牌分开是为了方便计算顺子 # 定义 HAN...
31.84136
120
0.521263
4b7a400cad4781aea92b42182b0c497efb9fec00
2,061
py
Python
setup.py
predatordk7/instabot
620ee76dceed54a456d3eae42ba4a6edcf33a537
[ "Apache-2.0" ]
1
2020-10-11T00:01:25.000Z
2020-10-11T00:01:25.000Z
setup.py
predatordk7/instabot
620ee76dceed54a456d3eae42ba4a6edcf33a537
[ "Apache-2.0" ]
null
null
null
setup.py
predatordk7/instabot
620ee76dceed54a456d3eae42ba4a6edcf33a537
[ "Apache-2.0" ]
null
null
null
from codecs import open from os import path from setuptools import find_packages, setup here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, "README.md"), encoding="utf-8") as f: long_description = f.read() setup( name="instabot", version=...
34.35
78
0.602135
11bcb4acef647dcdd9d1d7e32226dc1857a04f23
796
py
Python
ceilometerdemo/tests/test_ceilometerdemo.py
lianhao/ceilometerdemo
d4fb1d7d6edd9881b22e218580cccab3e6fa7ce7
[ "Apache-2.0" ]
null
null
null
ceilometerdemo/tests/test_ceilometerdemo.py
lianhao/ceilometerdemo
d4fb1d7d6edd9881b22e218580cccab3e6fa7ce7
[ "Apache-2.0" ]
null
null
null
ceilometerdemo/tests/test_ceilometerdemo.py
lianhao/ceilometerdemo
d4fb1d7d6edd9881b22e218580cccab3e6fa7ce7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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, softw...
27.448276
75
0.711055
a73fdb9a0c3c4f8cef21f84f32ca4aa889b30373
954
py
Python
dayz_dev_tools/keys.py
tjensen/dayz-dev-tools
e88c7f4d169778737f2299b6cb10dac9b1a29127
[ "MIT" ]
4
2021-07-26T00:27:01.000Z
2022-03-20T16:39:42.000Z
dayz_dev_tools/keys.py
tjensen/dayz-dev-tools
e88c7f4d169778737f2299b6cb10dac9b1a29127
[ "MIT" ]
19
2021-08-04T21:56:12.000Z
2022-02-27T22:25:19.000Z
dayz_dev_tools/keys.py
tjensen/dayz-dev-tools
e88c7f4d169778737f2299b6cb10dac9b1a29127
[ "MIT" ]
2
2021-09-17T01:11:44.000Z
2022-01-28T16:43:01.000Z
import logging import os import shutil def copy_keys(source: str, destination: str) -> None: """Search for `*.bikey` (public key) files in one directory and copy them to another directory. :Parameters: - `source`: The source directory to be searched for ``*.bikey`` files. - `destination`: The des...
34.071429
99
0.660377
431dae0e91292d11cbbb07195914e5ede9b898dd
865
py
Python
kroml/iostrategies/execution/sklearnpipeline.py
kroML/kroml
cfa5e505aaac01c31c1a4811e27ce70c41e0b1ae
[ "MIT" ]
null
null
null
kroml/iostrategies/execution/sklearnpipeline.py
kroML/kroml
cfa5e505aaac01c31c1a4811e27ce70c41e0b1ae
[ "MIT" ]
4
2020-09-26T01:10:21.000Z
2022-02-10T02:00:18.000Z
kroml/iostrategies/execution/sklearnpipeline.py
kroML/kroml
cfa5e505aaac01c31c1a4811e27ce70c41e0b1ae
[ "MIT" ]
null
null
null
from utils.logger import Logger from iostrategies.execution.abstract_execution import Execution from iostrategies.execution.abstract_execution import initialize_modules from iostrategies.execution.abstract_execution import initialize_functions from sklearn.pipeline import Pipeline logger = Logger(__name__) @logger....
30.892857
118
0.768786
333589112bcdb60e742ac977a85fceb9dd189ae3
1,963
py
Python
tests/plugins/pull/test_mqtt_subscribe.py
HazardDede/pnp
469ca17254dcca1a4eefe0dc5ac574692a9ab38e
[ "MIT" ]
4
2018-10-07T11:32:00.000Z
2019-04-23T09:34:23.000Z
tests/plugins/pull/test_mqtt_subscribe.py
HazardDede/pnp
469ca17254dcca1a4eefe0dc5ac574692a9ab38e
[ "MIT" ]
null
null
null
tests/plugins/pull/test_mqtt_subscribe.py
HazardDede/pnp
469ca17254dcca1a4eefe0dc5ac574692a9ab38e
[ "MIT" ]
1
2019-08-12T19:56:10.000Z
2019-08-12T19:56:10.000Z
import time import pytest from mock import patch from pnp.plugins.pull.mqtt import Subscribe from . import make_runner, MqttMessage, start_runner, dummy_callback @pytest.mark.asyncio async def test_mqtt_pull(): with patch('paho.mqtt.client.Client') as mock_client: mc = mock_client.return_value ...
36.351852
118
0.664799
2ed79619ec9d116e3032465a147d0d28e200ae97
1,128
py
Python
database/dsstox/synonyms.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
database/dsstox/synonyms.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
database/dsstox/synonyms.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
import datetime from database.database_schemas import Schemas from database.dsstox.generic_substances import GenericSubstances from sqlalchemy import Column, Integer, String, DateTime, ForeignKey from sqlalchemy.orm import relationship from database.base import Base class Synonyms(Base): """Maps to synonyms tab...
37.6
86
0.764184
cbbcf57c48e5f9f3ab11d755979e6ea471885df8
2,765
py
Python
tests/test_parser.py
dachenlian/weibospider
4fe9e08efcca11573f485a2ddbad3b7bc422fa7c
[ "MIT" ]
3,649
2017-10-22T12:08:22.000Z
2022-03-27T06:29:28.000Z
tests/test_parser.py
dachenlian/weibospider
4fe9e08efcca11573f485a2ddbad3b7bc422fa7c
[ "MIT" ]
146
2017-10-22T12:54:29.000Z
2022-02-14T13:54:23.000Z
tests/test_parser.py
dachenlian/weibospider
4fe9e08efcca11573f485a2ddbad3b7bc422fa7c
[ "MIT" ]
1,002
2017-10-25T03:44:17.000Z
2022-03-24T08:49:59.000Z
import time import pytest import requests from page_get import get_profile from page_parse import search from page_parse import home from page_parse import comment from page_parse import repost from tests import REQUEST_INTERNAL @pytest.mark.parametrize( 'uid, expect_name', [('1642351362', 'angelababy'), ('10503...
37.876712
115
0.682821
a71ca9c66134efa52e46cef2425fb8d5fdbeb1a7
361
py
Python
src/Strength/StrengthSoundSpeedPolicyInst.cc.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
1
2020-10-21T01:56:55.000Z
2020-10-21T01:56:55.000Z
src/Strength/StrengthSoundSpeedPolicyInst.cc.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
src/Strength/StrengthSoundSpeedPolicyInst.cc.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
text = """ //------------------------------------------------------------------------------ // Explicit instantiation. //------------------------------------------------------------------------------ #include "StrengthSoundSpeedPolicy.cc" #include "Geometry/Dimension.hh" namespace Spheral { template class StrengthSo...
27.769231
80
0.401662
cf3bbae06f3088b31cf43074001976c60e15c3b8
262
py
Python
wbb/utils/filter_groups.py
Imran95942/userbotisl
1614af1d1ba904dfd5e28dfd5b3e21d5e24bb55c
[ "MIT" ]
1
2021-11-17T13:25:25.000Z
2021-11-17T13:25:25.000Z
wbb/utils/filter_groups.py
Imran95942/userbotisl
1614af1d1ba904dfd5e28dfd5b3e21d5e24bb55c
[ "MIT" ]
null
null
null
wbb/utils/filter_groups.py
Imran95942/userbotisl
1614af1d1ba904dfd5e28dfd5b3e21d5e24bb55c
[ "MIT" ]
null
null
null
chat_filters_group = 1 chatbot_group = 2 karma_positive_group = 3 karma_negative_group = 4 regex_group = 5 welcome_captcha_group = 6 antiflood_group = 7 blacklist_filters_group = 8 taglog_group = 9 chat_watcher_group = 10 flood_group = 11 autocorrect_group = 12
20.153846
27
0.816794
942bc4cb0d905940e57465055b20fcdc13a6966c
41,128
py
Python
tornado/test/httpserver_test.py
fengsp/tornado
43e23f977715396ce243c6cd7e3387abf2a2e4ee
[ "Apache-2.0" ]
1
2016-04-08T03:23:58.000Z
2016-04-08T03:23:58.000Z
tornado/test/httpserver_test.py
fengsp/tornado
43e23f977715396ce243c6cd7e3387abf2a2e4ee
[ "Apache-2.0" ]
1
2017-09-19T09:52:54.000Z
2017-09-19T09:52:54.000Z
tornado/test/httpserver_test.py
fengsp/tornado
43e23f977715396ce243c6cd7e3387abf2a2e4ee
[ "Apache-2.0" ]
1
2016-09-12T09:32:32.000Z
2016-09-12T09:32:32.000Z
#!/usr/bin/env python from __future__ import absolute_import, division, print_function, with_statement from tornado import netutil from tornado.escape import json_decode, json_encode, utf8, _unicode, recursive_unicode, native_str from tornado import gen from tornado.http1connection import HTTP1Connection from tornado...
37.59415
110
0.612454
dcf9c4a70822c9974e6e98c25a6bdfacf50abd56
13,858
py
Python
horizon/exceptions.py
Tehsmash/horizon
8ffade099a3a437509dcdcf25d5b054e5c188b61
[ "Apache-2.0" ]
60
2015-03-09T14:31:46.000Z
2021-12-12T19:22:31.000Z
horizon/exceptions.py
2733284198/avos
becf7dd313fb8569581f985118c8367921c731ab
[ "Apache-2.0" ]
7
2015-04-13T13:21:10.000Z
2016-02-24T18:38:28.000Z
horizon/exceptions.py
2733284198/avos
becf7dd313fb8569581f985118c8367921c731ab
[ "Apache-2.0" ]
13
2015-03-09T17:26:26.000Z
2020-02-22T19:19:14.000Z
# Copyright 2012 Nebula, 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 agree...
38.494444
79
0.676144
3b04c2f402e812339aef84226974abacb51a5d7b
17,216
py
Python
tools/multi_gpu_train.py
Mrqianduoduo/RSDet-8P-4R
b6d3963ed4b76d88dce3bf8c234229536f383c19
[ "Apache-2.0" ]
23
2020-12-03T01:25:24.000Z
2022-03-09T05:02:06.000Z
tools/multi_gpu_train.py
Mrqianduoduo/RSDet-8P-4R
b6d3963ed4b76d88dce3bf8c234229536f383c19
[ "Apache-2.0" ]
3
2021-01-14T13:36:41.000Z
2021-11-11T11:42:26.000Z
tools/multi_gpu_train.py
Mrqianduoduo/RSDet-8P-4R
b6d3963ed4b76d88dce3bf8c234229536f383c19
[ "Apache-2.0" ]
3
2021-01-22T13:17:33.000Z
2022-03-09T08:22:10.000Z
# -*- coding:utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import division import tensorflow as tf import tensorflow.contrib.slim as slim import os import sys import numpy as np import time sys.path.append("../") from libs.configs import cfgs from libs.network...
46.910082
129
0.525267
4aa585adaa546606fbf34b986c170efd74b29688
4,858
py
Python
Submodules/Peano/src/peano/performanceanalysis/performanceanalysis_analysis.py
linusseelinger/ExaHyPE-Tsunami
92a6e14926862e1584ef1e935874c91d252e8112
[ "BSD-3-Clause" ]
2
2019-08-14T22:41:26.000Z
2020-02-04T19:30:24.000Z
Submodules/Peano/src/peano/performanceanalysis/performanceanalysis_analysis.py
linusseelinger/ExaHyPE-Tsunami
92a6e14926862e1584ef1e935874c91d252e8112
[ "BSD-3-Clause" ]
null
null
null
Submodules/Peano/src/peano/performanceanalysis/performanceanalysis_analysis.py
linusseelinger/ExaHyPE-Tsunami
92a6e14926862e1584ef1e935874c91d252e8112
[ "BSD-3-Clause" ]
3
2019-07-22T10:27:36.000Z
2020-05-11T12:25:29.000Z
class TreeNode: def __init__(self,rank,dim,level): self.rank = rank self.level = level if dim==2: self.children = [[[None for x in range(0,3)] for y in range(0,3)] for z in range(0,1)] elif dim==3: self.children = [[[None for x in range(0,3)] for y in range(0,3)] for z in rang...
34.453901
174
0.614656
8fdac7ce443560e507500759aae132aeec62dcf2
3,352
py
Python
test/nicos_mlz/reseda/test_devices.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
test/nicos_mlz/reseda/test_devices.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
test/nicos_mlz/reseda/test_devices.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2022 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
31.327103
79
0.627088
cd222e2edaefe43006a74475a51c644790fc82b0
1,067
py
Python
Code_Hunter/wanted/migrations/0020_auto_20210715_1829.py
leobang17/Weiver
73269ae5603efdad4f1a7b8bc69c6aed671c897c
[ "MIT" ]
null
null
null
Code_Hunter/wanted/migrations/0020_auto_20210715_1829.py
leobang17/Weiver
73269ae5603efdad4f1a7b8bc69c6aed671c897c
[ "MIT" ]
null
null
null
Code_Hunter/wanted/migrations/0020_auto_20210715_1829.py
leobang17/Weiver
73269ae5603efdad4f1a7b8bc69c6aed671c897c
[ "MIT" ]
3
2021-05-30T03:05:59.000Z
2021-07-02T10:03:38.000Z
# Generated by Django 3.2.3 on 2021-07-15 09:29 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('wanted', '0019_auto_2021...
33.34375
153
0.654171
061aee5d251cdb30c3d2eaef77574655fe48d159
319
py
Python
apps/activity/__init__.py
storagebot/kitsune
613ba2ca09104f330ab77088b452391169096249
[ "BSD-3-Clause" ]
2
2019-08-19T17:08:47.000Z
2019-10-05T11:37:02.000Z
apps/activity/__init__.py
taliasman/kitsune
f8085205eef143011adb4c52d1f183da06c1c58e
[ "BSD-3-Clause" ]
null
null
null
apps/activity/__init__.py
taliasman/kitsune
f8085205eef143011adb4c52d1f183da06c1c58e
[ "BSD-3-Clause" ]
null
null
null
class ActionFormatter(object): """A base class for action formatters. Subclasses must implement all properties, optionally with @property.""" title = 'Something Happened!' content = '' def __init__(self, action): self.action = action def __unicode__(self): return self.title
22.785714
75
0.664577
a82c9662c7c76accf38c16e86bc49b786e403b27
16,851
py
Python
tests/integration/modules/test_pkg.py
pombredanne/salt
2aaa8ac1e4c0bfcff24044c1ed811496935074ba
[ "Apache-2.0" ]
null
null
null
tests/integration/modules/test_pkg.py
pombredanne/salt
2aaa8ac1e4c0bfcff24044c1ed811496935074ba
[ "Apache-2.0" ]
null
null
null
tests/integration/modules/test_pkg.py
pombredanne/salt
2aaa8ac1e4c0bfcff24044c1ed811496935074ba
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Import Python libs from __future__ import absolute_import, print_function, unicode_literals import os # Import Salt Testing libs from tests.support.case import ModuleCase from tests.support.mixins import SaltReturnAssertsMixin from tests.support.helpers import ( destructiveTest, flak...
40.507212
109
0.555635
f04f51cfbfe68bb016b3444d31c12f5c84eab3d2
1,679
py
Python
ingestion-and-query-tests/query-test.py
vijayraavi/elasticsearch
64ab295bb9d4d774a2a851bbf7401629a8f283d7
[ "MIT" ]
442
2015-04-16T23:43:02.000Z
2017-03-03T13:38:51.000Z
ingestion-and-query-tests/query-test.py
vijayraavi/elasticsearch
64ab295bb9d4d774a2a851bbf7401629a8f283d7
[ "MIT" ]
64
2015-04-16T22:14:18.000Z
2016-10-24T19:07:03.000Z
ingestion-and-query-tests/query-test.py
vijayraavi/elasticsearch
64ab295bb9d4d774a2a851bbf7401629a8f283d7
[ "MIT" ]
100
2015-04-15T22:31:01.000Z
2017-01-15T13:22:06.000Z
#!/usr/bin/env python import sys import configparser import platform from subprocess import call import datetime def main(args=None): datetimeformatted = datetime.datetime.now().strftime('%Y%m%d%H%M') config = configparser.ConfigParser() config.sections() system = platform.system().lower() ...
28.948276
120
0.570578
25295ca3273c353a66fb1008dd6bb2b946c961e5
7,471
py
Python
examples/pytorch/hgt/model.py
kyawlin/dgl
4579bbf7b7254eee84a9cba14f26808df8b00c09
[ "Apache-2.0" ]
5
2021-07-03T04:58:48.000Z
2022-01-12T02:40:36.000Z
examples/pytorch/hgt/model.py
kyawlin/dgl
4579bbf7b7254eee84a9cba14f26808df8b00c09
[ "Apache-2.0" ]
null
null
null
examples/pytorch/hgt/model.py
kyawlin/dgl
4579bbf7b7254eee84a9cba14f26808df8b00c09
[ "Apache-2.0" ]
7
2020-12-11T04:41:45.000Z
2021-06-24T02:05:15.000Z
import dgl import math import torch import torch.nn as nn import torch.nn.functional as F import dgl.function as fn from dgl.nn.functional import edge_softmax class HGTLayer(nn.Module): def __init__(self, in_dim, out_dim, node_dict, edge_dict, ...
41.97191
105
0.572748
f30415b6343ec02838442ca2234c595e8b40d5f4
4,414
py
Python
labeller.py
sezer-muhammed/ee-star-codes
4a8cfcdec69fbbd7ca258d414b0ce70bb4fdb449
[ "MIT" ]
null
null
null
labeller.py
sezer-muhammed/ee-star-codes
4a8cfcdec69fbbd7ca258d414b0ce70bb4fdb449
[ "MIT" ]
null
null
null
labeller.py
sezer-muhammed/ee-star-codes
4a8cfcdec69fbbd7ca258d414b0ce70bb4fdb449
[ "MIT" ]
null
null
null
import cv2 import numpy as np import win32gui, win32ui, win32con, win32api import time import pyautogui import tensorflow as tf import threading from object_detection.utils import ops as utils_ops from object_detection.utils import label_map_util import glob txtfiles = [] for file in glob.glob("--PATH--/*....
42.038095
150
0.587902
10eb18b77051be8c3f93336c7b57335c0a0c8e96
1,607
py
Python
bin/other/species-reason-2013.py
adjspecies/furrypoll-munger
8dfe57e873ccad899fbb4c1395cf89e5a70d043a
[ "MIT" ]
1
2019-01-24T01:57:17.000Z
2019-01-24T01:57:17.000Z
bin/other/species-reason-2013.py
adjspecies/furrypoll-munger
8dfe57e873ccad899fbb4c1395cf89e5a70d043a
[ "MIT" ]
1
2016-01-10T23:59:39.000Z
2016-01-10T23:59:39.000Z
bin/other/species-reason-2013.py
adjspecies/furrypoll-munger
8dfe57e873ccad899fbb4c1395cf89e5a70d043a
[ "MIT" ]
1
2015-04-05T18:43:12.000Z
2015-04-05T18:43:12.000Z
import csv import psycopg2 query = ''' select species.survey_response_id, species.value, reason.value from survey_answer reason, survey_answer species where reason.question_id = 67 and species.question_id = 66 and reason.survey_response_id = species.survey_response_id; ''' species = ['...
31.509804
78
0.63659
3a2c830a96a9f629a69e0f584f8f0af9b0765f71
425
py
Python
create_aio_app/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/routes.py
Arfey/create-aio-app
66e6418ec33e090fa16c589a0e7d22bfceb8e75a
[ "MIT" ]
1
2018-09-23T19:58:51.000Z
2018-09-23T19:58:51.000Z
create_aio_app/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/routes.py
Arfey/create-aio-app
66e6418ec33e090fa16c589a0e7d22bfceb8e75a
[ "MIT" ]
null
null
null
create_aio_app/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/routes.py
Arfey/create-aio-app
66e6418ec33e090fa16c589a0e7d22bfceb8e75a
[ "MIT" ]
null
null
null
import pathlib from aiohttp import web from {{ cookiecutter.project_name }}.apps.main.views import index PROJECT_PATH = pathlib.Path(__file__).parent def init_routes(app: web.Application) -> None: add_route = app.router.add_route add_route('*', '/', index, name='index') # added static dir app.rou...
20.238095
65
0.654118
5faa8c154cd8560837856e0ee44d070bcf96f8cc
2,863
py
Python
uestc_signin/notify.py
ehds/uestc-signin
58b1dfde919b2e37dd6aaa4b69ad086d172d9aa6
[ "MIT" ]
1
2020-12-07T06:42:54.000Z
2020-12-07T06:42:54.000Z
uestc_signin/notify.py
ehds/uestc-signin
58b1dfde919b2e37dd6aaa4b69ad086d172d9aa6
[ "MIT" ]
3
2020-12-07T08:27:06.000Z
2021-11-02T13:47:00.000Z
uestc_signin/notify.py
ehds/uestc-signin
58b1dfde919b2e37dd6aaa4b69ad086d172d9aa6
[ "MIT" ]
1
2020-12-19T05:10:45.000Z
2020-12-19T05:10:45.000Z
# coding=utf-8 # # Copyright (c) 2020 The UESTC-Signin Authors. All rights reserved. # Use of this source code is governed by a MIT-style license that can be # found in the LICENSE file. See the AUTHORS file for names of contributors. # # Authors: ehds(ds.he@foxmail.com) import smtplib from email.mime.text import MIME...
32.908046
76
0.599721
e62fffbfb2312687a54b2210ba47c8b010b5ac18
1,622
py
Python
leet/problems/221_max_sqaure.py
blurrcat/leet
bc2d00790f6b7e9cab56b1ddb55070ea9879a1c4
[ "BSD-3-Clause" ]
null
null
null
leet/problems/221_max_sqaure.py
blurrcat/leet
bc2d00790f6b7e9cab56b1ddb55070ea9879a1c4
[ "BSD-3-Clause" ]
null
null
null
leet/problems/221_max_sqaure.py
blurrcat/leet
bc2d00790f6b7e9cab56b1ddb55070ea9879a1c4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. For example, given the following matrix: 1 0 1 0 0 1 0 1 1 1 1 1 1 1 1 1 0 0 1 0 Return 4. >>> s = Solution() >>> s.maximalSquare([['1', '1'], ...
25.746032
133
0.41307
e0f9670db831248ccb267eedaa6b535c9561b462
4,800
py
Python
datacommons/test/places_test.py
mvashishtha/api-python
324478efbbc7a1a0e08ae880a2a9daa5767d72d7
[ "Apache-2.0" ]
null
null
null
datacommons/test/places_test.py
mvashishtha/api-python
324478efbbc7a1a0e08ae880a2a9daa5767d72d7
[ "Apache-2.0" ]
null
null
null
datacommons/test/places_test.py
mvashishtha/api-python
324478efbbc7a1a0e08ae880a2a9daa5767d72d7
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google 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 to in writing, ...
32.653061
77
0.657083
037ad95745ba210d8988aa0a72d18ccc899f083b
942
py
Python
obj_detect_pytorch/tests/test_unit_model.py
SilkeDH/obj_detect_pytorch
605e73fa30cb78b729a62b22ebd9ef675b34c689
[ "MIT" ]
null
null
null
obj_detect_pytorch/tests/test_unit_model.py
SilkeDH/obj_detect_pytorch
605e73fa30cb78b729a62b22ebd9ef675b34c689
[ "MIT" ]
7
2019-10-24T12:15:13.000Z
2020-02-28T15:12:03.000Z
obj_detect_pytorch/tests/test_unit_model.py
SilkeDH/obj_detect_pytorch
605e73fa30cb78b729a62b22ebd9ef675b34c689
[ "MIT" ]
1
2020-02-28T10:03:52.000Z
2020-02-28T10:03:52.000Z
# -*- coding: utf-8 -*- import unittest import obj_detect_pytorch.models.deepaas_api as deepaas_api class TestModelMethods(unittest.TestCase): def setUp(self): self.meta = deepaas_api.get_metadata() def test_model_metadata_type(self): """ Test that get_metadata() returns ...
30.387097
82
0.605096
a3728b787042e5d11b56705751a9d2319ea70aa6
12,654
py
Python
src/arclink/libs/python/seiscomp/sds.py
damb/seiscomp3
560a8f7ae43737ae7826fb1ffca76a9f601cf9dc
[ "Naumen", "Condor-1.1", "MS-PL" ]
94
2015-02-04T13:57:34.000Z
2021-11-01T15:10:06.000Z
src/arclink/libs/python/seiscomp/sds.py
damb/seiscomp3
560a8f7ae43737ae7826fb1ffca76a9f601cf9dc
[ "Naumen", "Condor-1.1", "MS-PL" ]
233
2015-01-28T15:16:46.000Z
2021-08-23T11:31:37.000Z
src/arclink/libs/python/seiscomp/sds.py
salichon/seiscomp3
4f7715f9ff9a35e7912c379ebf10446d0bceaeb2
[ "Naumen", "Condor-1.1", "MS-PL" ]
95
2015-02-13T15:53:30.000Z
2021-11-02T14:54:54.000Z
############################################################################# # sds.py # # # # ArcLink archive structure handler # # ...
41.900662
131
0.550656
d9202a5425648bf221a38220a2720242a359fa47
2,437
py
Python
code/tests/functional/tests/test_relationship.py
CiscoSecurity/tr-05-serverless-google-chronicle
b11c65748eaed7eb424b32c2663b70e71c527c22
[ "MIT" ]
1
2020-06-19T18:42:40.000Z
2020-06-19T18:42:40.000Z
code/tests/functional/tests/test_relationship.py
CiscoSecurity/tr-05-serverless-google-chronicle
b11c65748eaed7eb424b32c2663b70e71c527c22
[ "MIT" ]
1
2020-10-15T10:54:37.000Z
2020-10-15T10:54:37.000Z
code/tests/functional/tests/test_relationship.py
CiscoSecurity/tr-05-serverless-google-chronicle
b11c65748eaed7eb424b32c2663b70e71c527c22
[ "MIT" ]
1
2022-03-04T15:04:28.000Z
2022-03-04T15:04:28.000Z
import pytest from ctrlibrary.core.utils import get_observables from ctrlibrary.threatresponse.enrich import enrich_observe_observables from tests.functional.tests.constants import ( MODULE_NAME, CTR_ENTITIES_LIMIT ) @pytest.mark.skip('switched off till find valid data') # @pytest.mark.parametrize( # 'obs...
32.065789
79
0.672548
9fb106ce48694f3cff58f83ec4d3b9126b81e44b
3,796
py
Python
tests/functions_tests/test_hierarchical_softmax.py
woodshop/complex-chainer
18c2ef988319d26123915ec846fc08d8837258ff
[ "MIT" ]
null
null
null
tests/functions_tests/test_hierarchical_softmax.py
woodshop/complex-chainer
18c2ef988319d26123915ec846fc08d8837258ff
[ "MIT" ]
null
null
null
tests/functions_tests/test_hierarchical_softmax.py
woodshop/complex-chainer
18c2ef988319d26123915ec846fc08d8837258ff
[ "MIT" ]
null
null
null
import copy import unittest import numpy import chainer from chainer import cuda from chainer import functions from chainer import gradient_check from chainer import testing from chainer.testing import attr from chainer.testing import condition if cuda.available: cuda.init() class TestHuffmanTree(unittest.Tes...
30.861789
77
0.581138
7f599d27ef0aa08b1ed15fb22e8ac4fe6b2aed13
1,730
py
Python
test/modules/http1/htdocs/cgi/upload.py
samkenxstream/httpd
622fed589cef3eff746f54ef0eab91da058b90d6
[ "Apache-2.0" ]
null
null
null
test/modules/http1/htdocs/cgi/upload.py
samkenxstream/httpd
622fed589cef3eff746f54ef0eab91da058b90d6
[ "Apache-2.0" ]
null
null
null
test/modules/http1/htdocs/cgi/upload.py
samkenxstream/httpd
622fed589cef3eff746f54ef0eab91da058b90d6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import cgi, os import cgitb cgitb.enable() status = '200 Ok' try: # Windows needs stdio set for binary mode. import msvcrt msvcrt.setmode(0, os.O_BINARY) # stdin = 0 msvcrt.setmode(1, os.O_BINARY) # stdout = 1 except ImportError: pass form = cgi.FieldStorage() # Test if ...
26.615385
101
0.598266
659e0e8c6d3be65b5798a61fe2520cc5aff1cac9
35,447
py
Python
pesummary/gw/webpage/main.py
pesummary/pesummary
99e3c450ecbcaf5a23564d329bdf6e0080f6f2a8
[ "MIT" ]
1
2021-08-03T05:58:20.000Z
2021-08-03T05:58:20.000Z
pesummary/gw/webpage/main.py
pesummary/pesummary
99e3c450ecbcaf5a23564d329bdf6e0080f6f2a8
[ "MIT" ]
1
2020-06-13T13:29:35.000Z
2020-06-15T12:45:04.000Z
pesummary/gw/webpage/main.py
pesummary/pesummary
99e3c450ecbcaf5a23564d329bdf6e0080f6f2a8
[ "MIT" ]
3
2021-07-08T08:31:28.000Z
2022-03-31T14:08:58.000Z
# Licensed under an MIT style license -- see LICENSE.md import os import numpy as np import pesummary from pesummary.core.webpage import webpage from pesummary.core.webpage.main import _WebpageGeneration as _CoreWebpageGeneration from pesummary.core.webpage.main import PlotCaption from pesummary.gw.file.standard_name...
40.510857
90
0.530877
f089d0e3c8027a5175b0ebbc5fcbc1a6ba0017bd
33,362
py
Python
BETA/MotifParser.py
taoliu/BETA
f1d6ccef09b68ed17a35e33f29507920dee35149
[ "Artistic-1.0-Perl" ]
null
null
null
BETA/MotifParser.py
taoliu/BETA
f1d6ccef09b68ed17a35e33f29507920dee35149
[ "Artistic-1.0-Perl" ]
null
null
null
BETA/MotifParser.py
taoliu/BETA
f1d6ccef09b68ed17a35e33f29507920dee35149
[ "Artistic-1.0-Perl" ]
null
null
null
#! /usr/bin/env python from xml.etree.ElementTree import * import xml.dom.minidom as minidom import os, sys from . import bayesian_motif_comp as bayesian_motif_comp import numpy #import mdseqpos.motif as motif SEP = "|" def Info(string): print(string) def List2Str(l, con=SEP): """use SEP to join list""" l...
41.187654
310
0.52368
7843d9b558d2db55e970299e410cd25a0ead3a06
2,323
py
Python
hatsploit/payloads/macos/x64/membrane_reverse_tcp.py
sunmughan/rat
650d4ca1a6d2405b893002150740b85008268263
[ "MIT" ]
null
null
null
hatsploit/payloads/macos/x64/membrane_reverse_tcp.py
sunmughan/rat
650d4ca1a6d2405b893002150740b85008268263
[ "MIT" ]
null
null
null
hatsploit/payloads/macos/x64/membrane_reverse_tcp.py
sunmughan/rat
650d4ca1a6d2405b893002150740b85008268263
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # This payload requires HatSploit: https://hatsploit.netlify.app # Current source: https://github.com/EntySec/HatSploit # from hatsploit.lib.payload import Payload from hatsploit.lib.config import Config from hatsploit.utils.string import StringTools from hatsploit.utils.tcp import TCPClient ...
27.011628
99
0.599225
1f8e24cc5afe8f64c3a26cc16e981718ef970866
1,537
py
Python
features.py
mzuniga94/fruit-punch
55cd5998acc7343d614a4181687591a2c807545d
[ "MIT" ]
null
null
null
features.py
mzuniga94/fruit-punch
55cd5998acc7343d614a4181687591a2c807545d
[ "MIT" ]
null
null
null
features.py
mzuniga94/fruit-punch
55cd5998acc7343d614a4181687591a2c807545d
[ "MIT" ]
null
null
null
""" ------------------------------------------------------------------------------------------- Group: T-Swift Members: Matthew Zuniga, Ryan Talactac, Christian Jimenez, Pooja Gajjar File: features.py Description: Contains methods for extracting features for the data. --------------------------------------...
32.702128
93
0.454782
8fcd1ef872276a16e984883b4c08305a456ac183
9,077
py
Python
cli_code/cli_doc_auto/pyreg/manager/regex.py
s3dawyXD/cli_code
7dab06a75868aca57348e3aececa4c4588ab7fa7
[ "MIT" ]
9
2019-07-25T09:47:24.000Z
2021-11-14T15:48:12.000Z
cli_code/cli_doc_auto/pyreg/manager/regex.py
s3dawyXD/cli_code
7dab06a75868aca57348e3aececa4c4588ab7fa7
[ "MIT" ]
12
2019-08-10T10:52:19.000Z
2021-02-25T12:41:06.000Z
cli_code/cli_doc_auto/pyreg/manager/regex.py
s3dawyXD/cli_code
7dab06a75868aca57348e3aececa4c4588ab7fa7
[ "MIT" ]
4
2020-02-17T15:55:21.000Z
2021-01-20T14:56:05.000Z
# -*- coding: utf-8 -*- import os import re import json import logging from ..context import config LOGGER = logging.getLogger() ARG_SEP = '\s*,\s*' KWARGS_OP = '\s*=\s*' KEY_PATTERNS = [ ('var', '[\w_][\w\d_]*'), ('args', '\*\s*[\w_][\w\d_]*'), ('kwargs', '\*\*\s*[\w_][\w\d_]*'), ] VAL_PATTER...
26.234104
84
0.495648
3178470b326faf4848a326a764b13179ca312663
727
py
Python
girder_plugin/arbor_nova/client_webroot.py
girder/arbor_tasks
8a0b6c94b3aea1722878c7425a70197d206a8414
[ "Apache-2.0" ]
4
2019-04-30T16:52:31.000Z
2020-03-11T17:18:08.000Z
girder_plugin/arbor_nova/client_webroot.py
girder/arbor_tasks
8a0b6c94b3aea1722878c7425a70197d206a8414
[ "Apache-2.0" ]
6
2019-04-08T20:54:32.000Z
2019-04-19T19:29:11.000Z
girder_plugin/arbor_nova/client_webroot.py
girder/arbor_tasks
8a0b6c94b3aea1722878c7425a70197d206a8414
[ "Apache-2.0" ]
2
2020-04-30T20:23:34.000Z
2020-10-23T14:18:59.000Z
import os from girder.utility.webroot import WebrootBase from girder import constants class ClientWebroot(WebrootBase): def __init__(self, templatePath=None): super(ClientWebroot, self).__init__('') self.vars = { # 'title' is deprecated use brandName instead 'title': 'Gir...
23.451613
92
0.616231
b30f82a339c488b83bad383f10d6eba7506e88ed
4,028
py
Python
Examples/IPv4 Address/ip4_example_common.py
glennmcallister/gateway-workflows
d9daa0ba4efa9715ed40ef7e54b2b98fba4bb63e
[ "Apache-2.0" ]
1
2018-06-26T14:56:50.000Z
2018-06-26T14:56:50.000Z
Examples/IPv4 Address/ip4_example_common.py
glennmcallister/gateway-workflows
d9daa0ba4efa9715ed40ef7e54b2b98fba4bb63e
[ "Apache-2.0" ]
null
null
null
Examples/IPv4 Address/ip4_example_common.py
glennmcallister/gateway-workflows
d9daa0ba4efa9715ed40ef7e54b2b98fba4bb63e
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 BlueCat Networks. All rights reserved. import struct import ipaddress from socket import inet_aton from flask import url_for, redirect, render_template, flash, g, request, jsonify from bluecat.api_exception import APIException, PortalException, BAMException from bluecat import util def get_networks...
32.224
126
0.677259
9f98e019799a50e10a604e8aa18c27c1442c6094
2,768
py
Python
sac_example_elif/network.py
Berk035/SimStar-Racer
6deec22b02ed80195bf854d1ccce164ebc724d13
[ "MIT" ]
null
null
null
sac_example_elif/network.py
Berk035/SimStar-Racer
6deec22b02ed80195bf854d1ccce164ebc724d13
[ "MIT" ]
null
null
null
sac_example_elif/network.py
Berk035/SimStar-Racer
6deec22b02ed80195bf854d1ccce164ebc724d13
[ "MIT" ]
null
null
null
import numpy as np import torch from torch.distributions import Normal class Actor(torch.nn.Module): def __init__(self, input_size, hidden_size, output_size): super(Actor, self).__init__() # defining fully-connected layers self.fc_1 = torch.nn.Linear(input_size, hidden_size) self....
37.917808
111
0.642702
86ad31a43972f95c5a81137903864bbefe34a97f
1,348
py
Python
setup.py
aellerton/gilt-python
a57e7f8f3af5eecb994cabdcd9fb4866c2a3af20
[ "Apache-2.0" ]
1
2017-04-25T09:10:30.000Z
2017-04-25T09:10:30.000Z
setup.py
aellerton/gilt-python
a57e7f8f3af5eecb994cabdcd9fb4866c2a3af20
[ "Apache-2.0" ]
1
2016-11-26T02:31:14.000Z
2016-11-27T07:23:53.000Z
setup.py
aellerton/gilt-python
a57e7f8f3af5eecb994cabdcd9fb4866c2a3af20
[ "Apache-2.0" ]
null
null
null
from gilt import __version__ from setuptools import setup, find_packages setup( name = "gilt-python", version = __version__, description = "Gilt API client", author = "AJEllerton", author_email = "andrewjellerton+gilt-python@gmail.com", url = "https://github.com/aellerton/gilt-python", keyw...
32.878049
88
0.601632
f490c5dcfdb052017416883fd3a2b47938106bdd
1,871
py
Python
setup.py
google/edward2
5574e773ca4ff5f36a5d9bf3b75ac8505973aa4b
[ "Apache-2.0" ]
591
2019-08-13T20:48:00.000Z
2022-03-31T03:34:32.000Z
setup.py
google/edward2
5574e773ca4ff5f36a5d9bf3b75ac8505973aa4b
[ "Apache-2.0" ]
162
2019-08-15T00:39:09.000Z
2022-03-25T07:19:15.000Z
setup.py
google/edward2
5574e773ca4ff5f36a5d9bf3b75ac8505973aa4b
[ "Apache-2.0" ]
78
2019-08-13T20:45:13.000Z
2022-03-10T11:54:18.000Z
"""Edward2. Edward2 is a probabilistic programming language in Python. It extends deep learning ecosystems so that one can declare models as probabilistic programs and manipulate a model's computation for flexible training, latent variable inference, and prediction. See more details in the [`README.md`](https://githu...
32.258621
80
0.626403
d5094daaaa5e6cc4602dcb1ab21b86d65baf2f1b
22,428
py
Python
lib/googlecloudsdk/api_lib/source/git.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/api_lib/source/git.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/api_lib/source/git.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
1
2020-07-24T20:13:29.000Z
2020-07-24T20:13:29.000Z
# Copyright 2015 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 required by applicable law or ag...
35.264151
80
0.670724
288526197b734129a50f5f6dba8ebab38215e908
1,237
py
Python
extensions/.stubs/clrclasses/Autodesk/AutoCAD/Internal/PreviousInput/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
1
2020-03-25T03:27:24.000Z
2020-03-25T03:27:24.000Z
extensions/.stubs/clrclasses/Autodesk/AutoCAD/Internal/PreviousInput/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
null
null
null
extensions/.stubs/clrclasses/Autodesk/AutoCAD/Internal/PreviousInput/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
null
null
null
from __clrclasses__.Autodesk.AutoCAD.Internal.PreviousInput import AcPiMonitorReactorImpl from __clrclasses__.Autodesk.AutoCAD.Internal.PreviousInput import CommandLineMonitor from __clrclasses__.Autodesk.AutoCAD.Internal.PreviousInput import CommandLineMonitorServices from __clrclasses__.Autodesk.AutoCAD.Internal.Prev...
82.466667
94
0.909458
bc1ee330dffe7a6964bc3483eb6bd77033099185
7,660
py
Python
src/probnum/filtsmooth/gaussfiltsmooth/unscentedtransform.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
null
null
null
src/probnum/filtsmooth/gaussfiltsmooth/unscentedtransform.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
2
2020-12-28T19:37:16.000Z
2020-12-28T19:37:31.000Z
src/probnum/filtsmooth/gaussfiltsmooth/unscentedtransform.py
admdev8/probnum
792b6299bac247cf8b1b5056756f0f078855d83a
[ "MIT" ]
null
null
null
""" See BFaS; p. 84f. """ import numpy as np __all__ = ["UnscentedTransform"] class UnscentedTransform: """ Used for unscented Kalman filter. """ def __init__(self, dimension, spread=1e-4, priorpar=2.0, special_scale=0.0): """ dimension : int Spatial dimensionality ...
28.58209
138
0.59765
a95e772c1ab1723d075ee6934d7c6198d68eeab8
1,018
py
Python
perfkitbenchmarker/providers/aws/flags.py
dq922/CloudControlVM
fae2cf7d2c4388e1dc657bd9245d88f2cb1b9b52
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/providers/aws/flags.py
dq922/CloudControlVM
fae2cf7d2c4388e1dc657bd9245d88f2cb1b9b52
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/providers/aws/flags.py
dq922/CloudControlVM
fae2cf7d2c4388e1dc657bd9245d88f2cb1b9b52
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 PerfKitBenchmarker 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...
44.26087
74
0.712181
021d120d9164d18919d5f1910aa73dfa3d026634
10,254
py
Python
meerkat_auth/role.py
fjelltopp/meerkat_auth
590f8971ade096366635b5cc129fc6ed98119f14
[ "MIT" ]
null
null
null
meerkat_auth/role.py
fjelltopp/meerkat_auth
590f8971ade096366635b5cc129fc6ed98119f14
[ "MIT" ]
5
2020-10-05T13:04:19.000Z
2021-09-30T11:00:12.000Z
meerkat_auth/role.py
fjelltopp/meerkat_auth
590f8971ade096366635b5cc129fc6ed98119f14
[ "MIT" ]
null
null
null
from meerkat_auth import app import logging import boto3 class Role: # The database resource DB = boto3.resource( 'dynamodb', endpoint_url=app.config['DB_URL'], region_name='eu-west-1' ) """ Class to model a single access Role object and includes functions to handle w...
33.400651
79
0.560854
713c8e77da8ba4b2f27143cb0508c7dd9422e992
6,284
py
Python
surepy/entities/devices.py
Ashitaka57/surepy
5d72298928e4b0ffdace908921e3d635ba1eec8f
[ "MIT" ]
46
2019-12-20T23:54:31.000Z
2022-02-18T05:05:53.000Z
surepy/entities/devices.py
Ashitaka57/surepy
5d72298928e4b0ffdace908921e3d635ba1eec8f
[ "MIT" ]
84
2020-04-16T20:20:37.000Z
2022-03-30T03:07:12.000Z
surepy/entities/devices.py
Ashitaka57/surepy
5d72298928e4b0ffdace908921e3d635ba1eec8f
[ "MIT" ]
22
2020-04-09T14:14:49.000Z
2021-12-14T20:49:21.000Z
""" surepy.devices ==================================== ABC representing a Sure Petcare Device. |license-info| """ from __future__ import annotations import logging from abc import ABC from typing import Any from urllib.parse import urlparse from surepy.const import SURE_BATT_VOLTAGE_FULL, SURE_BATT_VOLTAGE_LOW fr...
28.825688
93
0.622533