hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
9eba965a5b7095832a47e731bdbbc1d3b0042a21
3,529
py
Python
back/found/sample.py
soulgchoi/bonsildoongsil
6f596ab86339b6b62cc5d76ab11cb1b0e343b5f3
[ "MIT" ]
1
2020-08-18T01:10:17.000Z
2020-08-18T01:10:17.000Z
back/found/sample.py
soulgchoi/bonsildoongsil
6f596ab86339b6b62cc5d76ab11cb1b0e343b5f3
[ "MIT" ]
14
2021-03-19T08:51:18.000Z
2022-02-27T07:29:26.000Z
back/found/sample.py
sigk218/BSDS
2976a9da57609b47e3b8ce06d2c05d1e2eae5f71
[ "MIT" ]
1
2020-08-18T01:10:18.000Z
2020-08-18T01:10:18.000Z
from django.core.cache import cache from django.utils.functional import cached_property from django.core.paginator import Paginator, Page, PageNotAnInteger class CachedPaginator(Paginator): """A paginator that caches the results on a page by page basis.""" def __init__(self, object_list, per_page, orphans=0, ...
41.517647
121
0.656277
9eba9aa5feee9947781919165413f8400cfd3f6c
13,780
py
Python
bonneville/modules/win_file.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/win_file.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/win_file.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' Manage information about files on the minion, set/read user, group data :depends: - win32api - win32con - win32security - ntsecuritycon ''' # Import python libs import os import stat import os.path import logging # pylint: disable=W0611 import tempfile...
28.530021
119
0.651234
9ebabc8dad30d94c61ebdc732530aafb83712186
401
py
Python
neof_backend_root/neof_backend/wsgi.py
gentzeng/neo-framework
d19350837012c37ccf246aca740a10766b079914
[ "MIT" ]
null
null
null
neof_backend_root/neof_backend/wsgi.py
gentzeng/neo-framework
d19350837012c37ccf246aca740a10766b079914
[ "MIT" ]
null
null
null
neof_backend_root/neof_backend/wsgi.py
gentzeng/neo-framework
d19350837012c37ccf246aca740a10766b079914
[ "MIT" ]
null
null
null
""" WSGI config for neof_backend project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_...
23.588235
78
0.790524
9ebac609c3ed4b81def75ed9904b1082dbef718c
5,995
py
Python
dataGenerate/convertCordGazebo.py
Aniket-Gujarathi/d2-net
c716d37087390af04c8843452dadfa47a64cfbe2
[ "BSD-3-Clause-Clear" ]
6
2020-09-04T04:06:58.000Z
2021-11-29T08:41:37.000Z
dataGenerate/convertCordGazebo.py
kinalmehta/d2-net
f0d63609730b06e064c037256e0e40bac5b5ca43
[ "BSD-3-Clause-Clear" ]
null
null
null
dataGenerate/convertCordGazebo.py
kinalmehta/d2-net
f0d63609730b06e064c037256e0e40bac5b5ca43
[ "BSD-3-Clause-Clear" ]
3
2020-09-24T04:36:20.000Z
2022-01-12T08:40:49.000Z
# Usage: python convertCordGazebo.py poses.txt img_pairs.csv # Input: poses.txt: Contains robot poses extracted from odometry in the form: X, Y, Theta # Input: img_pairs.csv: Contains opposite img pairs extracted. # Output: A matrix containing transformation of image pairs of 2nd wrt 1st camera. # We can use this matr...
25.189076
110
0.654712
9ebaf7a1cd3d819762882c9a159d5e08c365f31b
12,880
py
Python
openfold/np/protein.py
aqlaboratory/openfold
d6b36a80e3ee82eee8ac09215fce553d822f86a3
[ "Apache-2.0" ]
789
2021-11-12T16:12:21.000Z
2022-03-28T05:45:19.000Z
openfold/np/protein.py
aqlaboratory/openfold
d6b36a80e3ee82eee8ac09215fce553d822f86a3
[ "Apache-2.0" ]
84
2021-11-12T22:23:50.000Z
2022-03-29T01:06:06.000Z
openfold/np/protein.py
aqlaboratory/openfold
d6b36a80e3ee82eee8ac09215fce553d822f86a3
[ "Apache-2.0" ]
114
2021-11-12T16:00:57.000Z
2022-03-27T21:32:31.000Z
# Copyright 2021 AlQuraishi Laboratory # Copyright 2021 DeepMind Technologies Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
33.805774
84
0.609394
9ebb21cb17a5679c86067ff775139b6ce3d530e9
1,140
py
Python
python/example/test.py
sarus-tech/opendp
e4b1714fdadd72fe488647be83f6bfc7d1d20064
[ "MIT" ]
null
null
null
python/example/test.py
sarus-tech/opendp
e4b1714fdadd72fe488647be83f6bfc7d1d20064
[ "MIT" ]
null
null
null
python/example/test.py
sarus-tech/opendp
e4b1714fdadd72fe488647be83f6bfc7d1d20064
[ "MIT" ]
null
null
null
from opendp.trans import * from opendp.meas import * from opendp.comb import * from opendp.typing import SubstituteDistance def main(): ### HELLO WORLD identity = make_identity(M=SubstituteDistance, T=str) arg = "hello, world!" res = identity(arg) print(res) ### SUMMARY STATS # Parse da...
23.75
86
0.612281
9ebb3960f34ee698bd85dbf15cba9bb5c813576b
12,954
py
Python
src/pybricks/pupdevices.py
TheVinhLuong102/pybricks-api
1259d5d33acb41b383445a4b1776b38084efb481
[ "MIT" ]
51
2020-04-02T10:03:45.000Z
2022-03-27T23:49:39.000Z
src/pybricks/pupdevices.py
LEGO-Robotics/Pybricks-API
1259d5d33acb41b383445a4b1776b38084efb481
[ "MIT" ]
77
2020-03-22T17:32:14.000Z
2022-03-28T18:02:43.000Z
src/pybricks/pupdevices.py
LEGO-Robotics/Pybricks-API
1259d5d33acb41b383445a4b1776b38084efb481
[ "MIT" ]
25
2020-03-18T23:35:17.000Z
2022-01-01T12:52:01.000Z
# SPDX-License-Identifier: MIT # Copyright (c) 2018-2020 The Pybricks Authors """LEGO® Powered Up motor, sensors, and lights.""" from ._common import (Keypad as _Keypad, DCMotor, ColorLight as _ColorLight, Motor as _Motor, LightArray as _LightArray, Light as _Light) from ....
27.978402
79
0.569245
9ebb65723acf44778e5058e9684a11b6bade203d
431
py
Python
chapter11/twisted/twisted_web_server.py
yangwawa0323/Learning-Python-Networking-Second-Edition
5460fe4fb6acc5d0df19bf36e52ac09e9a11eb8b
[ "MIT" ]
52
2018-12-17T19:33:06.000Z
2022-03-25T18:14:02.000Z
chapter11/twisted/twisted_web_server.py
barretthugh/Learning-Python-Networking-Second-Edition
0f00b8b20c1c85e76754e47113dff8ca9e99d5ca
[ "MIT" ]
null
null
null
chapter11/twisted/twisted_web_server.py
barretthugh/Learning-Python-Networking-Second-Edition
0f00b8b20c1c85e76754e47113dff8ca9e99d5ca
[ "MIT" ]
38
2018-12-18T09:08:43.000Z
2022-02-06T02:53:05.000Z
#!/usr/bin/env python3 from twisted.internet import reactor from twisted.web import server, resource class TwistedResource(resource.Resource): def render_GET(self, request): return b"<html><center><h1>Twisted server is running on port 8080</h1></center></html>" root = resource.Resource() root...
26.9375
103
0.723898
9ebb7011c4e89216096ad73fc74a3ed02ac07442
2,505
py
Python
modules/templates/DRKCM/upgrade/1.5.0-1.5.1.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
2
2017-07-25T19:15:58.000Z
2018-10-09T22:57:41.000Z
modules/templates/DRKCM/upgrade/1.5.0-1.5.1.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
null
null
null
modules/templates/DRKCM/upgrade/1.5.0-1.5.1.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
1
2017-10-03T13:03:47.000Z
2017-10-03T13:03:47.000Z
# -*- coding: utf-8 -*- # # Database upgrade script # # DRKCM Template Version 1.5.0 => 1.5.1 # # Execute in web2py folder after code upgrade like: # python web2py.py -S eden -M -R applications/eden/modules/templates/DRKCM/upgrade/1.5.0-1.5.1.py # import datetime import sys #from s3 import S3DateTime #from gluon.stora...
26.648936
97
0.57485
9ebb7024bb08c8f5214fc1a4bd76372b87b25ac1
6,114
py
Python
text_data/query.py
maxblee/text_data
006068f1662a7ef230237ecc88a3493438297e6b
[ "MIT" ]
null
null
null
text_data/query.py
maxblee/text_data
006068f1662a7ef230237ecc88a3493438297e6b
[ "MIT" ]
null
null
null
text_data/query.py
maxblee/text_data
006068f1662a7ef230237ecc88a3493438297e6b
[ "MIT" ]
null
null
null
"""This builds and runs search queries for :class:`text_data.index.Corpus`. For the most part, you won't be using this directly. Instead, you'll likely be using :class:`text_data.index.Corpus`. However, viewing the :code:`__repr__` for the query you're running can be helpful for debugging or validating queries. """ im...
39.192308
111
0.638862
9ebb834f8e36675e09ef7fec96bc23c6082e137d
790
py
Python
mdrsl/data_structures/comparable_itemset.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
3
2020-08-03T19:25:44.000Z
2021-06-27T22:25:55.000Z
mdrsl/data_structures/comparable_itemset.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
null
null
null
mdrsl/data_structures/comparable_itemset.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
2
2020-08-07T22:54:28.000Z
2021-02-18T06:11:01.000Z
class ComparableItemSet: """ ComparableItemSet is a common ancestor for Antecedent and Transaction class so that they both can be compared using <= and >= operators. Any class that inherits from ComparableItemSet needs to have a "frozenset" attribute. "frozenset" attribute is a frozenset o...
30.384615
57
0.677215
9ebb9320546933c8a6175bd5a8f5fac07e047e48
1,858
py
Python
USocket.py
shiye1999/CS305A_RDT
a3c2240c4c37a849e16f53babe07cf6f6d047dd8
[ "MIT" ]
null
null
null
USocket.py
shiye1999/CS305A_RDT
a3c2240c4c37a849e16f53babe07cf6f6d047dd8
[ "MIT" ]
null
null
null
USocket.py
shiye1999/CS305A_RDT
a3c2240c4c37a849e16f53babe07cf6f6d047dd8
[ "MIT" ]
null
null
null
from socket import socket, AF_INET, SOCK_DGRAM, inet_aton, inet_ntoa import time sockets = {} network = ('127.0.0.1', 12345) def bytes_to_addr(bytes): return inet_ntoa(bytes[:4]), int.from_bytes(bytes[4:8], 'big') def addr_to_bytes(addr): return inet_aton(addr[0]) + addr[1].to_bytes(4, 'big') ...
27.731343
76
0.584499
9ebbc99244c005800f76e3a5e6d5da8a8f864693
1,999
py
Python
ui/button.py
xieguo/sublime_db
f2a7b0e55e9f0b77b90a9aa2ea4c4f9136db1315
[ "MIT" ]
1
2019-01-21T17:37:32.000Z
2019-01-21T17:37:32.000Z
ui/button.py
xieguo/sublime_db
f2a7b0e55e9f0b77b90a9aa2ea4c4f9136db1315
[ "MIT" ]
null
null
null
ui/button.py
xieguo/sublime_db
f2a7b0e55e9f0b77b90a9aa2ea4c4f9136db1315
[ "MIT" ]
null
null
null
from sublime_db.core.typecheck import ( List, Sequence, Callable, Optional ) from .component import Component, ComponentInline from .layout import Layout from .render import Timer, add_timer class OnClick (ComponentInline): def __init__(self, on_click: Callable[[], None], items: List[Component]) -> None: super...
28.15493
129
0.743372
9ebbd11c2d27e5fa9fd4eb04d5b10e2c0209a6d6
35,611
py
Python
zerver/views/auth.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
zerver/views/auth.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
zerver/views/auth.py
gnprice/zulip
f29a1918f3cd3795f6ded3dc174472ef0fde3973
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from django.core.exceptions import ValidationError from django.core.validators import validate_email from django.contrib.auth import authenticate, get_backends from django.contrib.auth.views import login as django_login_page, \ logout_then_login as django_logout_then_login from dja...
45.306616
108
0.681671
9ebbf68d9f021126c8ea22800f1b196cc13bf36c
55,396
py
Python
brilws/cli/brilcalc_main.py
xiezhen/brilws
e3652dd4506dff9d713184ff623b59bc11fbe2c7
[ "MIT" ]
1
2017-03-23T16:26:06.000Z
2017-03-23T16:26:06.000Z
brilws/cli/brilcalc_main.py
xiezhen/brilws
e3652dd4506dff9d713184ff623b59bc11fbe2c7
[ "MIT" ]
1
2017-03-24T15:02:20.000Z
2017-10-02T13:43:26.000Z
brilws/cli/brilcalc_main.py
xiezhen/brilws
e3652dd4506dff9d713184ff623b59bc11fbe2c7
[ "MIT" ]
1
2019-12-06T09:23:01.000Z
2019-12-06T09:23:01.000Z
from __future__ import print_function import sys import os sys.path.insert(0,os.path.dirname(sys.executable)+'/../lib/python2.7/site-packages/') #ignore other PYTHONPATH import logging import docopt import schema import brilws import prettytable import pandas as pd import numpy as np import ast from brilws import api,...
54.416503
597
0.535237
9ebc4080b79652d2820cd84ff14a1bd4da9995e8
1,812
py
Python
tests/new_features.py
jvanasco/ashes
45f592e7c01d91a8bc9b57d19b8837ef8b7e1c4b
[ "BSD-3-Clause" ]
null
null
null
tests/new_features.py
jvanasco/ashes
45f592e7c01d91a8bc9b57d19b8837ef8b7e1c4b
[ "BSD-3-Clause" ]
null
null
null
tests/new_features.py
jvanasco/ashes
45f592e7c01d91a8bc9b57d19b8837ef8b7e1c4b
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import unittest import ashes from .core import AshesTest heading = 'new_features' class raw_text(AshesTest): template = '{thing} {`{preserved} \n{whitespace} {#etc.} `}' json_ast = r'["body", ["reference", ["key", "thing"], ["filters"]], ["buffer", " "], ["raw", "{...
33.555556
139
0.549669
9ebc54c821256b5d9e42bd179d261e65061ee4dd
14,462
py
Python
fcos_core/modeling/rpn/ddtnet/loss.py
ZhangXX54/DDTNet
1de4cb5652bca6c45a80d93100ae5ab8e699344f
[ "BSD-2-Clause" ]
null
null
null
fcos_core/modeling/rpn/ddtnet/loss.py
ZhangXX54/DDTNet
1de4cb5652bca6c45a80d93100ae5ab8e699344f
[ "BSD-2-Clause" ]
null
null
null
fcos_core/modeling/rpn/ddtnet/loss.py
ZhangXX54/DDTNet
1de4cb5652bca6c45a80d93100ae5ab8e699344f
[ "BSD-2-Clause" ]
null
null
null
""" This file contains specific functions for computing losses of DDTNet file """ import torch from torch.nn import functional as F from torch import nn import os # from ..utils import concat_box_prediction_layers from fcos_core.layers import IOULoss from fcos_core.layers import SigmoidFocalLoss from fcos_core.modelin...
39.513661
137
0.593141
9ebc70d662e4c0d89e2c48dd9886571fbb9bb93f
17,008
py
Python
magellan_models/interface/abstract_api_model.py
3mcloud/magellan-models
aae47496f240a5211e650a5c0efcbc95a15f7bb0
[ "BSD-3-Clause" ]
2
2021-08-11T18:15:28.000Z
2021-08-11T18:33:38.000Z
magellan_models/interface/abstract_api_model.py
3mcloud/magellan-models
aae47496f240a5211e650a5c0efcbc95a15f7bb0
[ "BSD-3-Clause" ]
null
null
null
magellan_models/interface/abstract_api_model.py
3mcloud/magellan-models
aae47496f240a5211e650a5c0efcbc95a15f7bb0
[ "BSD-3-Clause" ]
null
null
null
""" Abstract API Model class definition file """ # Automagic attributes on requests cause pylint warnings so I'm disabling no-member # pylint: disable=dangerous-default-value, no-member from abc import ABC, abstractmethod from typing import Any, Union from warnings import warn from jsonschema import validate, Validati...
40.208038
99
0.656632
9ebc76c47e6f4c97b56534936f89bf7e8cfd068f
23,313
py
Python
uv_magic_uv/op/uv_bounding_box.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
1
2018-06-18T09:46:10.000Z
2018-06-18T09:46:10.000Z
uv_magic_uv/op/uv_bounding_box.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
null
null
null
uv_magic_uv/op/uv_bounding_box.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
null
null
null
# <pep8-80 compliant> # ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # ...
31.804911
79
0.564621
9ebc9a0806e76c6517ffc2c51258bee8b2d4b5ce
6,071
py
Python
test/testbase.py
gregsmi/sample-metadata
f8d18c3e750475f40147097c2861cc6ffc712a2e
[ "MIT" ]
null
null
null
test/testbase.py
gregsmi/sample-metadata
f8d18c3e750475f40147097c2861cc6ffc712a2e
[ "MIT" ]
null
null
null
test/testbase.py
gregsmi/sample-metadata
f8d18c3e750475f40147097c2861cc6ffc712a2e
[ "MIT" ]
null
null
null
# pylint: disable=invalid-overridden-method import asyncio import logging import os import socket import subprocess import unittest from functools import wraps from typing import Dict from testcontainers.mysql import MySqlContainer import nest_asyncio from db.python.connect import ( ConnectionStringDatabaseConf...
34.299435
113
0.575852
9ebd00da604c5369c32c93135b7027a466f0f213
5,885
py
Python
nmtwizard/preprocess.py
ClementChouteau/nmt-wizard-docker
b2bf2178b48ee1decd4a7216eee358b8e0953ce8
[ "MIT" ]
1
2019-11-09T04:18:58.000Z
2019-11-09T04:18:58.000Z
nmtwizard/preprocess.py
ClementChouteau/nmt-wizard-docker
b2bf2178b48ee1decd4a7216eee358b8e0953ce8
[ "MIT" ]
null
null
null
nmtwizard/preprocess.py
ClementChouteau/nmt-wizard-docker
b2bf2178b48ee1decd4a7216eee358b8e0953ce8
[ "MIT" ]
null
null
null
"""Functions for corpus preprocessing.""" import os from nmtwizard.logger import get_logger from nmtwizard.sampler import sample from nmtwizard import prepoperator from nmtwizard import tokenizer logger = get_logger(__name__) def _generate_models(config, corpus_dir, data_dir, option): build_option = "build_" +...
40.308219
122
0.627698
9ebd0fa1a0092dd7d951bddd40dae37cf5eecde6
1,849
py
Python
test/test_parser.py
zlatsic/ruly
6660ed2d276bace542ddf9e69efd47eb23c3df16
[ "MIT" ]
1
2021-02-05T18:37:27.000Z
2021-02-05T18:37:27.000Z
test/test_parser.py
zlatsic/ruly
6660ed2d276bace542ddf9e69efd47eb23c3df16
[ "MIT" ]
null
null
null
test/test_parser.py
zlatsic/ruly
6660ed2d276bace542ddf9e69efd47eb23c3df16
[ "MIT" ]
null
null
null
import pytest import ruly @pytest.mark.parametrize('input_str,expected', [ ('IF rule_engine="ruly" THEN usability="awesome"', ruly.Rule(ruly.Equals('rule_engine', 'ruly'), {'usability': 'awesome'})), ('IF rule_engine = "ruly" THEN usability = "awesome"', ruly.Rule(rul...
35.557692
76
0.567334
9ebd1fc754fbea055dc09265fc9ba304c54e16ec
3,413
py
Python
alipay/aop/api/domain/AlipayOpenAppServiceValidpageQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayOpenAppServiceValidpageQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayOpenAppServiceValidpageQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenAppServiceValidpageQueryModel(object): def __init__(self): self._current_page = None self._page_size = None self._region_codes = None self._scene_code = ...
31.311927
75
0.592441
9ebd22b15cac8593b0efa960f451e5a9bbdff404
831
py
Python
setup.py
dominikwelke/assr-tools
d759971d0f2265658c42c00b64f147c3796d4309
[ "BSD-3-Clause" ]
null
null
null
setup.py
dominikwelke/assr-tools
d759971d0f2265658c42c00b64f147c3796d4309
[ "BSD-3-Clause" ]
5
2020-11-02T09:55:41.000Z
2020-11-02T16:03:09.000Z
setup.py
dominikwelke/assr-tools
d759971d0f2265658c42c00b64f147c3796d4309
[ "BSD-3-Clause" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="assr-tools", # Replace with your own username version="1.0", author="Dominik Welke", author_email="dominik.welke@web.de", description="Frequency tagged auditory stimuli for ASSR experiment...
29.678571
84
0.647413
9ebd47f9b4342a886469fa063690e9f66abe65b0
49,748
py
Python
geone/imgplot3d.py
alecomunian/geone
182879f017f3e92638e2d798a3f60c56d653316a
[ "BSD-4-Clause-UC" ]
9
2020-08-04T14:25:01.000Z
2022-02-02T10:40:48.000Z
geone/imgplot3d.py
alecomunian/geone
182879f017f3e92638e2d798a3f60c56d653316a
[ "BSD-4-Clause-UC" ]
2
2021-12-17T06:36:12.000Z
2022-02-02T11:03:39.000Z
geone/imgplot3d.py
alecomunian/geone
182879f017f3e92638e2d798a3f60c56d653316a
[ "BSD-4-Clause-UC" ]
7
2020-06-17T18:09:15.000Z
2021-12-06T07:20:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Python module: 'imgplot3d.py' author: Julien Straubhaar date: feb-2020 Definition of functions for plotting images (geone.Img class) in 3d based on pyvista. """ # from geone import customcolors as ccol import numpy as np import matplotlib.pyplot a...
39.048666
423
0.573631
9ebdbc37697b566d893c13eed782c8259f051d60
2,948
py
Python
tensorflow_similarity/samplers/utils.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
1
2021-09-14T09:23:10.000Z
2021-09-14T09:23:10.000Z
tensorflow_similarity/samplers/utils.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
null
null
null
tensorflow_similarity/samplers/utils.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
33.5
78
0.669267
9ebdc1e3ad1f28159b1f02e27f444c6185026c6c
1,743
py
Python
lib/ModifTarifPage.py
Rsky-20/Gestionnaire_Automobile
9d7af6386828dab9e21b87ef74344c4a592d4da1
[ "MIT" ]
null
null
null
lib/ModifTarifPage.py
Rsky-20/Gestionnaire_Automobile
9d7af6386828dab9e21b87ef74344c4a592d4da1
[ "MIT" ]
null
null
null
lib/ModifTarifPage.py
Rsky-20/Gestionnaire_Automobile
9d7af6386828dab9e21b87ef74344c4a592d4da1
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter import messagebox import lib.DataTool as DT def valide(gamme, t, prix, assur, caut, app): """[summary] Args: gamme ([type]): [description] t ([type]): [description] prix ([type]): [description] assur ([type]): [description] caut ([type...
26.815385
114
0.557085
9ebdc5c418f25a82c269df86f120ad1b0533fc13
23,419
py
Python
tidecv/quantify.py
XiwuChen/tide
4f20204e6ea383e671feae07143d19cb2564e351
[ "MIT" ]
1
2020-10-13T14:37:41.000Z
2020-10-13T14:37:41.000Z
tidecv/quantify.py
XiwuChen/tide
4f20204e6ea383e671feae07143d19cb2564e351
[ "MIT" ]
null
null
null
tidecv/quantify.py
XiwuChen/tide
4f20204e6ea383e671feae07143d19cb2564e351
[ "MIT" ]
null
null
null
from .data import Data from .ap import ClassedAPDataObject from .errors.main_errors import * from .errors.qualifiers import Qualifier, AREA from . import functions as f from . import plotting as P from pycocotools import mask as mask_utils from collections import defaultdict, OrderedDict import numpy as np from typing...
33.599713
144
0.677569
9ebe1b4c3e3525b7d4e96e7a13eadb4a5ef0750d
13,107
py
Python
util_model.py
lucaboulard/vlcvoicectrl
a408c2b1208469d1a908fbc327f3d3ecf07bc21b
[ "MIT" ]
null
null
null
util_model.py
lucaboulard/vlcvoicectrl
a408c2b1208469d1a908fbc327f3d3ecf07bc21b
[ "MIT" ]
2
2018-09-19T13:12:09.000Z
2018-09-19T14:05:36.000Z
util_model.py
lucaboulard/vlcvoicectrl
a408c2b1208469d1a908fbc327f3d3ecf07bc21b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Utility functions for model definition, training, evaluating and deploying. This module defines utility functions supporting the lifecycle of keras models. """ import numpy as np import tensorflow.keras.backend as K import os, os.path import matplotlib.pyplot as plt ...
39.242515
137
0.58854
9ebe2299161655e5e7de6a263caf96b6d3e6bceb
9,363
py
Python
dgpy/operators.py
nilsleiffischer/dgpy
85d0b85cddb0cf030f35d5043a959b5d23424bc8
[ "MIT" ]
1
2021-04-12T16:38:58.000Z
2021-04-12T16:38:58.000Z
dgpy/operators.py
nilsleiffischer/dgpy
85d0b85cddb0cf030f35d5043a959b5d23424bc8
[ "MIT" ]
null
null
null
dgpy/operators.py
nilsleiffischer/dgpy
85d0b85cddb0cf030f35d5043a959b5d23424bc8
[ "MIT" ]
1
2019-09-24T09:40:33.000Z
2019-09-24T09:40:33.000Z
import numpy as np import scipy from scipy.sparse.linalg import LinearOperator from .spectral import logical_mass_matrix, diag_logical_mass_matrix, logical_differentiation_matrix from .interpolate import lagrange_interpolate precomputed_massmats = {} def mass_matrix(e, d, mass_lumping): global precomputed_mass...
34.936567
141
0.607925
9ebe279d3436cb61ba27701ce39dda4833112716
11,525
py
Python
treewidget/tree.py
jerch/django-treewidget
110ffb2ec771091638347bd5e1ae18ca4ca4d6ed
[ "MIT" ]
9
2019-04-14T10:15:13.000Z
2021-12-18T14:27:16.000Z
treewidget/tree.py
netzkolchose/django-treewidget
9c79be166b05707c464c8d2a5e2bb2784403c79f
[ "MIT" ]
12
2018-03-19T01:13:55.000Z
2022-03-24T17:37:57.000Z
treewidget/tree.py
netzkolchose/django-treewidget
9c79be166b05707c464c8d2a5e2bb2784403c79f
[ "MIT" ]
3
2020-06-29T00:25:31.000Z
2022-03-24T13:21:12.000Z
from django.db.models import QuerySet from django.db.models import Q, F from django.db.models.functions import Substr, Length from django.db.models import CharField, OuterRef, Subquery try: from treebeard.models import Node as TreebeardNode from treebeard.al_tree import AL_Node from treebeard.ns_tree impor...
35.681115
102
0.575098
9ebe2d43b3b40b2340a44d73e62826e364bedf55
37,403
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_disks_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_disks_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_disks_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
45.780906
292
0.664465
9ebe389b56770d7d0893bd0a576bd4444501596d
4,407
py
Python
python/openlattice/models/data_edge_key.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
python/openlattice/models/data_edge_key.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
1
2021-01-20T00:20:01.000Z
2021-01-20T00:20:01.000Z
python/openlattice/models/data_edge_key.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenLattice API OpenLattice API # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@openlattice.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from openlattice.configuration import Configuration ...
25.327586
99
0.553438
9ebe8939afce40482e131efbca8e57452a6db899
17,712
py
Python
src/Products/PluginIndexes/CompositeIndex/CompositeIndex.py
icemac/Products.ZCatalog
697719cc0f1a016ab7b874237271d3e11693e78b
[ "ZPL-2.1" ]
null
null
null
src/Products/PluginIndexes/CompositeIndex/CompositeIndex.py
icemac/Products.ZCatalog
697719cc0f1a016ab7b874237271d3e11693e78b
[ "ZPL-2.1" ]
1
2021-02-10T16:05:38.000Z
2021-02-10T16:05:38.000Z
src/Products/PluginIndexes/CompositeIndex/CompositeIndex.py
icemac/Products.ZCatalog
697719cc0f1a016ab7b874237271d3e11693e78b
[ "ZPL-2.1" ]
1
2021-02-10T15:34:58.000Z
2021-02-10T15:34:58.000Z
############################################################################## # # Copyright (c) 2010 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
31.628571
78
0.565605
9ebe97da0f3d6c21c48a96d796d68e4059163cda
4,958
py
Python
utils.py
karthikziffer/keras-seq-2-seq-signal-prediction
464cc5613b875af0e63bb544908bb3397e4d5df5
[ "MIT" ]
196
2018-08-31T13:41:50.000Z
2022-03-22T03:59:28.000Z
utils.py
karthikziffer/keras-seq-2-seq-signal-prediction
464cc5613b875af0e63bb544908bb3397e4d5df5
[ "MIT" ]
2
2019-05-14T15:57:46.000Z
2019-06-18T07:00:03.000Z
utils.py
karthikziffer/keras-seq-2-seq-signal-prediction
464cc5613b875af0e63bb544908bb3397e4d5df5
[ "MIT" ]
65
2018-09-02T16:25:59.000Z
2022-01-27T07:10:27.000Z
# This file contains code modified licensed under the MIT License: # Copyright (c) 2017 Guillaume Chevalier # For more information, visit: # https://github.com/guillaume-chevalier/seq2seq-signal-prediction # https://github.com/guillaume-chevalier/seq2seq-signal-prediction/blob/master/LICENSE """Contains functions to g...
40.308943
100
0.615369
9ebec4776f78a03e97d7b0e5c46f707497fb0a51
322
py
Python
queue/admin.py
gdi3d/move_my_files
235d99219ea6cf31b81bd00f2a0b6a562efe0144
[ "MIT" ]
1
2018-04-02T09:01:41.000Z
2018-04-02T09:01:41.000Z
queue/admin.py
gdi3d/move_my_files
235d99219ea6cf31b81bd00f2a0b6a562efe0144
[ "MIT" ]
null
null
null
queue/admin.py
gdi3d/move_my_files
235d99219ea6cf31b81bd00f2a0b6a562efe0144
[ "MIT" ]
null
null
null
from django.contrib import admin from queue.models import TaskPool # Register your models here. class TaskPoolAdmin(admin.ModelAdmin): list_display = ('task', 'action', 'status', 'created', 'modified') list_filter = ('action', 'status', 'modified', 'created', 'task__name') admin.site.register(TaskPool, TaskPoolAdmi...
35.777778
72
0.748447
9ebee68609ebb88885822750cf18a235169cbac8
3,807
py
Python
bittensor/utils/codes.py
chaosxcode/bittensor
9c2f513cc7fb03844952ae3755162ed914b11cba
[ "MIT" ]
2
2020-03-11T19:40:05.000Z
2020-06-14T19:35:34.000Z
bittensor/utils/codes.py
chaosxcode/bittensor
9c2f513cc7fb03844952ae3755162ed914b11cba
[ "MIT" ]
null
null
null
bittensor/utils/codes.py
chaosxcode/bittensor
9c2f513cc7fb03844952ae3755162ed914b11cba
[ "MIT" ]
null
null
null
""" utils for rpc log, convert return code to string with color for the log """ # The MIT License (MIT) # Copyright © 2021 Yuma Rao # 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 res...
29.976378
115
0.616233
9ebefe7179db608c9fe30e7f2c474ae5e29ec61a
562
py
Python
agogosml/agogosml/common/listener_client.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
13
2018-12-07T21:02:20.000Z
2019-02-22T14:36:31.000Z
agogosml/agogosml/common/listener_client.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
43
2018-11-30T11:31:43.000Z
2019-04-03T16:09:06.000Z
agogosml/agogosml/common/listener_client.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
13
2018-11-29T00:31:29.000Z
2019-02-22T18:50:28.000Z
"""Abstract listener client broker interface.""" from abc import ABC from abc import abstractmethod class ListenerClient(ABC): """Abstract listener client broker interface.""" @abstractmethod def __init__(self, config: dict): """Abstract listener client broker class.""" raise NotImplemen...
23.416667
52
0.676157
9ebf2476413371228b4815dfdcb789ee6536e613
3,056
py
Python
planetmint/backend/tarantool/connection.py
liviu-lesan/planetmint
54cf8e45108947aa8282ddaaf127d08e06ce842e
[ "Apache-2.0" ]
null
null
null
planetmint/backend/tarantool/connection.py
liviu-lesan/planetmint
54cf8e45108947aa8282ddaaf127d08e06ce842e
[ "Apache-2.0" ]
null
null
null
planetmint/backend/tarantool/connection.py
liviu-lesan/planetmint
54cf8e45108947aa8282ddaaf127d08e06ce842e
[ "Apache-2.0" ]
null
null
null
# Copyright © 2020 Interplanetary Database Association e.V., # Planetmint and IPDB software contributors. # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # Code is Apache-2.0 and docs are CC-BY-4.0 import logging import tarantool from planetmint.config import Config from planetmint.common.exceptions import Conf...
40.210526
105
0.614202
9ebf2c2bc580f095563518af9d749a046304607c
1,688
py
Python
python/mxnet/library.py
ckt624/incubator-mxnet
bcbdc1cc797064fafc0a46a3dd00d446a7c60357
[ "Apache-2.0" ]
48
2020-07-29T18:09:23.000Z
2021-10-09T01:53:33.000Z
python/mxnet/library.py
chongruo/incubator-mxnet
7f57e8e10c504fe7a463ba695321b11c6dd4912d
[ "Apache-2.0" ]
10
2017-05-27T01:00:48.000Z
2019-10-20T20:38:11.000Z
Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/python/mxnet/library.py
lablup/training_results_v0.7
f5bb59aa0f8b18b602763abe47d1d24d0d54b197
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.000Z
# 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...
33.76
71
0.703791
9ebf3d0bf3535c577c8f39694479a5fc8d60fe33
17,514
py
Python
solutions/watercooler/deployment/azure/scripts/install.py
NikCharlebois/dataconnect-solutions
407a6759741a0de77430e36bbc69d643e13765c9
[ "MIT" ]
10
2021-06-18T16:32:07.000Z
2022-02-11T06:25:03.000Z
solutions/watercooler/deployment/azure/scripts/install.py
NikCharlebois/dataconnect-solutions
407a6759741a0de77430e36bbc69d643e13765c9
[ "MIT" ]
13
2021-05-27T00:48:15.000Z
2022-01-08T16:13:59.000Z
solutions/watercooler/deployment/azure/scripts/install.py
NikCharlebois/dataconnect-solutions
407a6759741a0de77430e36bbc69d643e13765c9
[ "MIT" ]
18
2021-06-03T13:43:43.000Z
2022-03-25T11:04:47.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT license. See LICENSE file in the project root for full license information. # 1. check/create AAD configuration # Pre-requirements: # + * wc-admin AAD group # + * wc-employee-export AAD group # + * wc-service SP with...
58.38
179
0.665182
9ebf64bf896b5d0c0cd514bab21cf4cd33a55fdd
1,208
py
Python
utils.py
lealssa/cvm_extractor
869389777d2bfd0133b66da5e7aaa2a7d0ff69f7
[ "MIT" ]
null
null
null
utils.py
lealssa/cvm_extractor
869389777d2bfd0133b66da5e7aaa2a7d0ff69f7
[ "MIT" ]
null
null
null
utils.py
lealssa/cvm_extractor
869389777d2bfd0133b66da5e7aaa2a7d0ff69f7
[ "MIT" ]
null
null
null
import json from datetime import datetime, date from dateutil.rrule import rrule, MONTHLY def get_config(): ''' Retorna um dict com o as configs do arquivo config.json ''' config_file = './config.json' config = {} with open(config_file,'r') as f: config = json.loads(f.read()) ...
24.16
90
0.578642
9ebf82510ca46251800dd5250013c4cbf8c84550
5,883
py
Python
libs/metrics/top_level_metric_risk_levels.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
null
null
null
libs/metrics/top_level_metric_risk_levels.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
null
null
null
libs/metrics/top_level_metric_risk_levels.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
null
null
null
from typing import List, Optional import math import numpy as np import pandas as pd from covidactnow.datapublic.common_fields import CommonFields from libs.metrics.top_level_metrics import MetricsFields from libs.metrics import top_level_metrics from api import can_api_v2_definition RiskLevel = can_api_v2_definition...
33.810345
96
0.748088
9ebfcfc5a44397ee6a60590cb7bd6976c5e59e75
1,661
py
Python
passpie/validators.py
bcfurtado/passpie
421c40a57ad5f55e3f14b323c929a2c41dfb5527
[ "MIT" ]
700
2015-05-02T20:58:37.000Z
2022-01-20T18:49:17.000Z
passpie/validators.py
bcfurtado/passpie
421c40a57ad5f55e3f14b323c929a2c41dfb5527
[ "MIT" ]
108
2015-05-02T02:56:39.000Z
2021-07-01T21:46:10.000Z
passpie/validators.py
bcfurtado/passpie
421c40a57ad5f55e3f14b323c929a2c41dfb5527
[ "MIT" ]
72
2015-05-03T02:50:24.000Z
2021-06-09T03:38:51.000Z
import click from .history import clone from . import config def validate_remote(ctx, param, value): if value: try: remote, branch = value.split('/') return (remote, branch) except ValueError: raise click.BadParameter('remote need to be in format <remote>/<bran...
36.911111
92
0.624925
9ebfe9680866fb20ff8a35a2a45bcb6f03b012af
10,754
py
Python
raiden/tasks.py
ExchangeUnion/raiden
2217bcb698fcfce3499dc1f41ad919ed82e8e45f
[ "MIT" ]
null
null
null
raiden/tasks.py
ExchangeUnion/raiden
2217bcb698fcfce3499dc1f41ad919ed82e8e45f
[ "MIT" ]
12
2019-08-09T19:12:17.000Z
2019-12-05T15:49:29.000Z
raiden/tasks.py
ExchangeUnion/raiden
2217bcb698fcfce3499dc1f41ad919ed82e8e45f
[ "MIT" ]
null
null
null
import re from json.decoder import JSONDecodeError import click import gevent import requests import structlog from eth_utils import to_checksum_address, to_hex from gevent.event import AsyncResult from pkg_resources import parse_version from web3 import Web3 from raiden.constants import ( CHECK_GAS_RESERVE_INTER...
38.823105
99
0.642831
9ec00369d33fdc983b3a0ee397a55c1504c60775
2,781
py
Python
orderbook_veinte/orderbook/serializers/bids_serializer.py
morwen1/hyperion
f0d77a6cce6a366555e9f0ca0080f3da134862bf
[ "MIT" ]
null
null
null
orderbook_veinte/orderbook/serializers/bids_serializer.py
morwen1/hyperion
f0d77a6cce6a366555e9f0ca0080f3da134862bf
[ "MIT" ]
null
null
null
orderbook_veinte/orderbook/serializers/bids_serializer.py
morwen1/hyperion
f0d77a6cce6a366555e9f0ca0080f3da134862bf
[ "MIT" ]
null
null
null
#DJANGO #REST FRAMEWORK from rest_framework import serializers #MODELS from orderbook_veinte.orderbook.models import Orders , OrderStatus #Orerbook from orderbook_veinte.orderbook.tree import initializeTree from orderbook_veinte.orderbook.tree import Bid from orderbook_veinte.orderbook.tasks import AsincronicOrde...
25.281818
82
0.632506
9ec055bb76febd2ab95aa6a57009a14c7d521893
5,282
py
Python
train.py
aaron-zou/pytorch-deeplab-resnet
4d8255d624a2bd35b9b2ca3204614764e57de5cd
[ "MIT" ]
null
null
null
train.py
aaron-zou/pytorch-deeplab-resnet
4d8255d624a2bd35b9b2ca3204614764e57de5cd
[ "MIT" ]
null
null
null
train.py
aaron-zou/pytorch-deeplab-resnet
4d8255d624a2bd35b9b2ca3204614764e57de5cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function import multiprocessing import os import random import cv2 import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from docopt import docopt from PIL import Image from torch.autograd import Variable fr...
34.75
80
0.588603
9ec0b435acfa8699fac16f6ac1ca6b6a64caf214
3,202
py
Python
allennlp_mylib/dataset_readers/category_crisis_tweets.py
wangcongcong123/UCDTrecIS2019
01c7ec6a492bf049bc8ce52d04a012033d1f89c6
[ "Apache-2.0" ]
3
2019-10-24T13:32:27.000Z
2020-03-26T18:54:36.000Z
allennlp_mylib/dataset_readers/category_crisis_tweets.py
wangcongcong123/UCDTrecIS2019
01c7ec6a492bf049bc8ce52d04a012033d1f89c6
[ "Apache-2.0" ]
null
null
null
allennlp_mylib/dataset_readers/category_crisis_tweets.py
wangcongcong123/UCDTrecIS2019
01c7ec6a492bf049bc8ce52d04a012033d1f89c6
[ "Apache-2.0" ]
null
null
null
from typing import Dict, List import json import logging from overrides import overrides from allennlp.common.file_utils import cached_path from allennlp.data.dataset_readers.dataset_reader import DatasetReader from allennlp.data.fields import LabelField, TextField, MultiLabelField from allennlp.data.instance import In...
44.472222
100
0.64772
9ec0d382c76349d3afea68b799c8baab49a546e1
5,552
py
Python
src/python/platforms/android/settings.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
null
null
null
src/python/platforms/android/settings.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "Apache-2.0" ]
1
2019-06-07T21:29:28.000Z
2019-06-07T21:29:28.000Z
src/python/platforms/android/settings.py
fengjixuchui/clusterfuzz
ef89be3934936d1086b4a21bffca5506c8cb93be
[ "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, ...
30.010811
80
0.70245
9ec1159cdb0faa411c71b586a304c969c2838731
3,027
py
Python
day8/day8.py
tomp/AOC-2020
c7b8313f883b6285f118d281d99c4b32b0497289
[ "MIT" ]
null
null
null
day8/day8.py
tomp/AOC-2020
c7b8313f883b6285f118d281d99c4b32b0497289
[ "MIT" ]
null
null
null
day8/day8.py
tomp/AOC-2020
c7b8313f883b6285f118d281d99c4b32b0497289
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Advent of Code 2020 - day 8 # from pathlib import Path import re INPUTFILE = "input.txt" SAMPLE_INPUT = """ nop +0 acc +1 jmp +4 acc +3 jmp -3 acc -99 acc +1 jmp -4 acc +6 """ def sample_input(): return filter_blank_lines(SAMPLE_INPUT.split("\n")) # Utility functions def load_inp...
19.914474
73
0.573835
9ec120eebe650f974e02e730df6141af9a7803ce
163,133
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
40.570256
229
0.660719
9ec13b9009c61875b4869cba6a9cadae2beca9a0
9,239
py
Python
modules/templates/000_config.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
modules/templates/000_config.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
modules/templates/000_config.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Machine-specific settings All settings which are typically edited for a specific machine should be done here Deployers should ideally not need to edit any other files outside of their template folder Note for Developers: /models/000_config.py is NOT in the Git repo...
37.404858
112
0.731248
9ec14edf61788d7f0d94ec4092b2c23202510b8c
1,562
py
Python
tests/common/test_run/ascend/bitwise_xor_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_run/ascend/bitwise_xor_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_run/ascend/bitwise_xor_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # 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 agre...
40.051282
74
0.729834
9ec1655f9115b283913d9067633539445cfb2c70
6,528
py
Python
src/nlplib/core/model/sqlalchemy_/neuralnetwork.py
rectangletangle/nlplib
7dcc0daf050a73c03b7d7f0257ad0b862586a6e3
[ "BSD-2-Clause" ]
1
2015-11-18T12:59:52.000Z
2015-11-18T12:59:52.000Z
src/nlplib/core/model/sqlalchemy_/neuralnetwork.py
rectangletangle/nlplib
7dcc0daf050a73c03b7d7f0257ad0b862586a6e3
[ "BSD-2-Clause" ]
null
null
null
src/nlplib/core/model/sqlalchemy_/neuralnetwork.py
rectangletangle/nlplib
7dcc0daf050a73c03b7d7f0257ad0b862586a6e3
[ "BSD-2-Clause" ]
null
null
null
''' This module outlines how neural network related models are mapped to their respective SQLAlchemy tables. ''' import json import pickle from sqlalchemy.orm import relationship, column_property, reconstructor from sqlalchemy import Column, Integer, Float, String, ForeignKey, Binary, TypeDecorator from nlplib.core...
40.04908
117
0.581495
9ec1657b3ef564ce4da05e3872733c97b187b34f
2,514
py
Python
Unified Glyph Info/UGI_showBuildString.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
2
2021-02-12T20:36:29.000Z
2021-11-03T08:04:01.000Z
Unified Glyph Info/UGI_showBuildString.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
null
null
null
Unified Glyph Info/UGI_showBuildString.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
null
null
null
# MenuTitle: Show Build String # -*- coding: utf-8 -*- __doc__ = """ Displays a string with the current glyph containing useful or comparable glyphs. """ from AppKit import NSEvent from collections import defaultdict from UGI.UGI_importer import import_scripts unified_infos = import_scripts(Glyphs.font) Glyphs.clearL...
28.896552
102
0.684566
9ec1a4b7320e37733cb92da3dcfe4081363cef3d
4,939
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_led_animation/animation/grid_rain.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_led_animation/animation/grid_rain.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_led_animation/animation/grid_rain.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# The MIT License (MIT) # # Copyright (c) 2020 Kattni Rembor for Adafruit Industries # # 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 ri...
33.598639
87
0.641223
9ec1b1d452d9f95099c7129424d4f8d0d8ddf0f2
679
py
Python
data/transcoder_evaluation_gfg/python/COUNT_SET_BITS_IN_AN_INTEGER.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/COUNT_SET_BITS_IN_AN_INTEGER.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/COUNT_SET_BITS_IN_AN_INTEGER.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : count = 0 while ( n ) : count += n & 1 n >>= 1 return count #TOFILL if __name_...
19.970588
64
0.533137
9ec1c095a9c72800b79e818d53fbdc99a4ae9b64
2,129
py
Python
build_files/cmake/cmake_consistency_check_config.py
1-MillionParanoidTterabytes/Blender-2.79b-blackened
e8d767324e69015aa66850d13bee7db1dc7d084b
[ "Unlicense" ]
2
2018-06-18T01:50:25.000Z
2018-06-18T01:50:32.000Z
build_files/cmake/cmake_consistency_check_config.py
1-MillionParanoidTterabytes/Blender-2.79b-blackened
e8d767324e69015aa66850d13bee7db1dc7d084b
[ "Unlicense" ]
null
null
null
build_files/cmake/cmake_consistency_check_config.py
1-MillionParanoidTterabytes/Blender-2.79b-blackened
e8d767324e69015aa66850d13bee7db1dc7d084b
[ "Unlicense" ]
null
null
null
import os IGNORE = ( "/test/", "/tests/gtests/", "/release/", # specific source files "extern/bullet2/src/BulletCollision/CollisionDispatch/btBox2dBox2dCollisionAlgorithm.cpp", "extern/bullet2/src/BulletCollision/CollisionDispatch/btConvex2dConvex2dAlgorithm.cpp", "extern/bullet2/src/Bulle...
50.690476
117
0.782997
9ec23d97c5987f9e89b94a820b9cb97b58607824
1,418
py
Python
blog/management/commands/create_permissions.py
luismayta/python-example-elasticsearch
4572b03c425f525094d5892ef8c625cfa991174a
[ "MIT" ]
4
2019-08-04T19:23:39.000Z
2021-04-10T08:26:44.000Z
blog/management/commands/create_permissions.py
luismayta/python-example-elasticsearch
4572b03c425f525094d5892ef8c625cfa991174a
[ "MIT" ]
3
2019-07-08T20:08:02.000Z
2019-07-09T19:47:25.000Z
blog/management/commands/create_permissions.py
luismayta/python-example-elasticsearch
4572b03c425f525094d5892ef8c625cfa991174a
[ "MIT" ]
1
2019-08-05T05:15:26.000Z
2019-08-05T05:15:26.000Z
# -*- coding: utf-8 -*- from django.apps import apps from django.core.management.base import BaseCommand class Command(BaseCommand): """ Create get an patch missing permissions for every ContentType. """ _message_finish = "Successfully create permissions" help = "Create get an patch missing per...
36.358974
88
0.590268
9ec243d7dbf61ca30c862b870814f86a2bf27d39
1,364
py
Python
samples/gpio_waveform.py
nowls/apigpio
5e0a8d2aade59fb6f1edecd88ece2424ea547612
[ "MIT" ]
null
null
null
samples/gpio_waveform.py
nowls/apigpio
5e0a8d2aade59fb6f1edecd88ece2424ea547612
[ "MIT" ]
null
null
null
samples/gpio_waveform.py
nowls/apigpio
5e0a8d2aade59fb6f1edecd88ece2424ea547612
[ "MIT" ]
null
null
null
import asyncio import apigpio LED_GPIO = 21 async def start(pi, address, gpio, cycles=5, period=1.0, duty=0.5): ''' Blink an LED using the waveform API. address:= the (host, port) tuple used to connect to pigpiod gpio:= the GPIO to control cycles:= the number of cycles to blink the LED ...
25.259259
67
0.645894
9ec24e62c00d046f1ddf60736d5d01555482bb84
1,554
py
Python
keras_frcnn/dataframe.py
So-dal/Keras_FasterRCNN_CustomDataset
254a3e7b32d025d5ccabf527052d4ef457b29563
[ "Apache-2.0" ]
null
null
null
keras_frcnn/dataframe.py
So-dal/Keras_FasterRCNN_CustomDataset
254a3e7b32d025d5ccabf527052d4ef457b29563
[ "Apache-2.0" ]
null
null
null
keras_frcnn/dataframe.py
So-dal/Keras_FasterRCNN_CustomDataset
254a3e7b32d025d5ccabf527052d4ef457b29563
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Nov 2 14:48:52 2021 @author: sophie """ import pandas as pd import os.path import os def get_dataframe (dataset): """ to create the dataframe required for the datagen.flow_from_dataframe method, dataset must be th name of the folde...
30.470588
98
0.633205
9ec27cc46cf7d1695da7fe55e7f73722c8be2b54
3,423
py
Python
setup.py
LaudateCorpus1/edgeai-benchmark
bc7f3c52862133f5fe8409248c21887b3f930a68
[ "BSD-3-Clause" ]
7
2021-07-31T16:41:57.000Z
2022-03-30T23:29:12.000Z
setup.py
LaudateCorpus1/edgeai-benchmark
bc7f3c52862133f5fe8409248c21887b3f930a68
[ "BSD-3-Clause" ]
3
2022-02-09T17:39:02.000Z
2022-03-30T07:07:06.000Z
setup.py
LaudateCorpus1/edgeai-benchmark
bc7f3c52862133f5fe8409248c21887b3f930a68
[ "BSD-3-Clause" ]
3
2021-11-15T01:44:32.000Z
2022-01-20T05:19:27.000Z
# Copyright (c) 2018-2021, Texas Instruments # All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of condition...
42.259259
136
0.709904
9ec295ed9080bc23738f4be41de5ad002392b133
15,125
py
Python
python/pyspark/pandas/data_type_ops/boolean_ops.py
eejbyfeldt/spark
5edbbd1711402735623fa1fc9b86ff41c28996e9
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-07-12T10:39:09.000Z
2021-07-12T10:39:09.000Z
python/pyspark/pandas/data_type_ops/boolean_ops.py
eejbyfeldt/spark
5edbbd1711402735623fa1fc9b86ff41c28996e9
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
python/pyspark/pandas/data_type_ops/boolean_ops.py
eejbyfeldt/spark
5edbbd1711402735623fa1fc9b86ff41c28996e9
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
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 us...
42.847025
100
0.63881
9ec2df6fde5e84cb2bb33b84408b684dd85355e6
26,900
py
Python
jmspack/NLTSA.py
jameshtwose/jmspack
b226519c1b8a0007f3d59eb8117234e63194d745
[ "BSD-3-Clause" ]
null
null
null
jmspack/NLTSA.py
jameshtwose/jmspack
b226519c1b8a0007f3d59eb8117234e63194d745
[ "BSD-3-Clause" ]
4
2021-03-21T14:46:19.000Z
2021-12-21T09:33:56.000Z
jmspack/NLTSA.py
jameshtwose/jmspack
b226519c1b8a0007f3d59eb8117234e63194d745
[ "BSD-3-Clause" ]
null
null
null
r"""Submodule NLTSA.py includes the following functions: <br> - **fluctuation_intensity():** run fluctuation intensity on a time series to detect non linear change <br> - **distribution_uniformity():** run distribution uniformity on a time series to detect non linear change <br> - **complexity_resonance():** the produc...
43.108974
150
0.658401
9ec2e780d82c9974025d1e67d3584222c8a60191
26,983
py
Python
analysis/optimus5/torchray_extremal_perturbation_sequence.py
willshi88/scrambler
fd77c05824fc99e6965d204c4f5baa1e3b0c4fb3
[ "MIT" ]
19
2021-04-30T04:12:58.000Z
2022-03-07T19:09:32.000Z
analysis/optimus5/torchray_extremal_perturbation_sequence.py
willshi88/scrambler
fd77c05824fc99e6965d204c4f5baa1e3b0c4fb3
[ "MIT" ]
4
2021-07-02T15:07:27.000Z
2021-08-01T12:41:28.000Z
analysis/optimus5/torchray_extremal_perturbation_sequence.py
willshi88/scrambler
fd77c05824fc99e6965d204c4f5baa1e3b0c4fb3
[ "MIT" ]
4
2021-06-28T09:41:01.000Z
2022-02-28T09:13:29.000Z
from __future__ import division from __future__ import print_function __all__ = [ "extremal_perturbation", "Perturbation", "simple_reward", "contrastive_reward", "BLUR_PERTURBATION", "FADE_PERTURBATION", "PRESERVE_VARIANT", "DELETE_VARIANT", "DUAL_VARIANT", ] import math import m...
35.64465
88
0.562947
9ec2f83fa5ba0a204afa8bda703bd4eb94054f3d
7,954
py
Python
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_pool2d.py
jurafish/Paddle
15724e745409cf6af3df99ae3eec90511e482cbc
[ "Apache-2.0" ]
17,085
2016-11-18T06:40:52.000Z
2022-03-31T22:52:32.000Z
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_pool2d.py
jurafish/Paddle
15724e745409cf6af3df99ae3eec90511e482cbc
[ "Apache-2.0" ]
29,769
2016-11-18T06:35:22.000Z
2022-03-31T16:46:15.000Z
python/paddle/fluid/tests/unittests/ir/inference/test_trt_convert_pool2d.py
jurafish/Paddle
15724e745409cf6af3df99ae3eec90511e482cbc
[ "Apache-2.0" ]
4,641
2016-11-18T07:43:33.000Z
2022-03-31T15:15:02.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
47.628743
80
0.460146
9ec3127284dc4ccd2653f531276700e158243e4c
13,450
py
Python
drivers/calc_empirical_isochrone_age.py
lgbouma/rudolf
0f130f45fdbcce109a6750aa179dd26a12179619
[ "MIT" ]
null
null
null
drivers/calc_empirical_isochrone_age.py
lgbouma/rudolf
0f130f45fdbcce109a6750aa179dd26a12179619
[ "MIT" ]
null
null
null
drivers/calc_empirical_isochrone_age.py
lgbouma/rudolf
0f130f45fdbcce109a6750aa179dd26a12179619
[ "MIT" ]
null
null
null
import numpy as np, pandas as pd, matplotlib.pyplot as plt import os, pickle from numpy import array as nparr from rudolf.paths import DATADIR, RESULTSDIR from rudolf.helpers import ( get_deltalyr_kc19_gaia_data, get_simulated_RM_data, get_keplerfieldfootprint_dict, get_deltalyr_kc19_comovers, get_deltaly...
35.866667
107
0.581413
9ec34552fb84bc2d0bde3ea7370e50de94a19116
12,428
py
Python
app/urls.py
nerdfiles/utxo_us
a1091d22984a593ca16e308f39fa6adce83c85c9
[ "MIT" ]
null
null
null
app/urls.py
nerdfiles/utxo_us
a1091d22984a593ca16e308f39fa6adce83c85c9
[ "MIT" ]
4
2021-04-30T21:20:31.000Z
2022-03-12T00:39:18.000Z
app/urls.py
nerdfiles/utxo_us
a1091d22984a593ca16e308f39fa6adce83c85c9
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- from django.conf import settings from django.conf.urls import patterns, include, url from django.conf.urls.i18n import i18n_patterns from django.conf.urls.static import static from django.contrib import admin from django.template.context import RequestContext #from django....
38.596273
122
0.536369
9ec34a5096429cf56613c665a17b2535ceee5d77
12,952
py
Python
catalyst/rl/offpolicy/algorithms/td3.py
ivbelkin/catalyst
468348d0a9a2c2e34e6e3550adf67275e96ce13d
[ "MIT" ]
null
null
null
catalyst/rl/offpolicy/algorithms/td3.py
ivbelkin/catalyst
468348d0a9a2c2e34e6e3550adf67275e96ce13d
[ "MIT" ]
null
null
null
catalyst/rl/offpolicy/algorithms/td3.py
ivbelkin/catalyst
468348d0a9a2c2e34e6e3550adf67275e96ce13d
[ "MIT" ]
null
null
null
import copy import torch import torch.nn.functional as F from catalyst.dl.utils import UtilsFactory from catalyst.rl.offpolicy.algorithms.core import Algorithm from catalyst.rl.offpolicy.algorithms.utils import categorical_loss, \ quantile_loss, soft_update class TD3(Algorithm): """ Swiss Army knife TD3 a...
35.484932
78
0.581841
9ec3542531fe866a8a3ebb90543bc9f282eeec78
26,515
py
Python
tests/test_tree.py
fjulian/py_trees
63fffdfb581f390546c375f13d064b10fdace786
[ "BSD-3-Clause" ]
null
null
null
tests/test_tree.py
fjulian/py_trees
63fffdfb581f390546c375f13d064b10fdace786
[ "BSD-3-Clause" ]
null
null
null
tests/test_tree.py
fjulian/py_trees
63fffdfb581f390546c375f13d064b10fdace786
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # License: BSD # https://raw.githubusercontent.com/splintered-reality/py_trees/devel/LICENSE # ############################################################################## # Imports ############################################################################## import threading import time ...
39.10767
114
0.664718
9ec360da1b872008ed7453f55454ebfb9e4d871e
1,317
py
Python
examples/dependent_required.py
kevinheavey/apischema
6307a67c4545d1e16e1ee49bd44d9e0fd155820d
[ "MIT" ]
118
2020-05-24T20:22:27.000Z
2022-03-23T23:04:50.000Z
examples/dependent_required.py
kevinheavey/apischema
6307a67c4545d1e16e1ee49bd44d9e0fd155820d
[ "MIT" ]
89
2021-02-26T14:22:41.000Z
2022-03-30T22:17:06.000Z
examples/dependent_required.py
kevinheavey/apischema
6307a67c4545d1e16e1ee49bd44d9e0fd155820d
[ "MIT" ]
13
2020-12-24T22:43:50.000Z
2022-03-13T15:03:44.000Z
from dataclasses import dataclass, field from pytest import raises from apischema import ValidationError, dependent_required, deserialize from apischema.json_schema import deserialization_schema from apischema.skip import NotNull @dataclass class Billing: name: str # Fields used in dependencies MUST be decl...
29.266667
83
0.687168
9ec375a8653aa4d152ec4503e5f09fb381a56409
3,750
py
Python
NintbotForDiscord/Redis.py
nint8835/NintbotForDiscordV2
65f6aa896c116fd3b554b7b324734caf54ad608e
[ "MIT" ]
null
null
null
NintbotForDiscord/Redis.py
nint8835/NintbotForDiscordV2
65f6aa896c116fd3b554b7b324734caf54ad608e
[ "MIT" ]
null
null
null
NintbotForDiscord/Redis.py
nint8835/NintbotForDiscordV2
65f6aa896c116fd3b554b7b324734caf54ad608e
[ "MIT" ]
null
null
null
from typing import Tuple import aioredis from discord import Server, Channel, User from .BasePlugin import BasePlugin from . import Bot from .Enums import RedisStorageScope class RedisManager(object): def __init__(self, bot: "Bot.Bot", address: Tuple[str, int]): self._bot = bot # type: Bot.Bot ...
37.5
113
0.642667
9ec37a3d7327aaed0320965e047c5106d8f35782
3,512
py
Python
cli_docs/conf.py
jacobkiers/tzk
3e9ecd4b70da3a70ea8d6f13d45cea21f2f2307e
[ "MIT" ]
null
null
null
cli_docs/conf.py
jacobkiers/tzk
3e9ecd4b70da3a70ea8d6f13d45cea21f2f2307e
[ "MIT" ]
null
null
null
cli_docs/conf.py
jacobkiers/tzk
3e9ecd4b70da3a70ea8d6f13d45cea21f2f2307e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
32.220183
78
0.684795
9ec38bde4c6321b162b985f9bcd5127bc1cf381f
10,027
py
Python
riboutils/extract_metagene_profiles.py
dieterich-lab/riboseq-utils
42fabc77a7d51c8a24a4346928585fc0ff1584d8
[ "MIT" ]
null
null
null
riboutils/extract_metagene_profiles.py
dieterich-lab/riboseq-utils
42fabc77a7d51c8a24a4346928585fc0ff1584d8
[ "MIT" ]
10
2017-02-28T14:30:20.000Z
2019-06-07T13:11:01.000Z
riboutils/extract_metagene_profiles.py
dieterich-lab/riboseq-utils
42fabc77a7d51c8a24a4346928585fc0ff1584d8
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import argparse import collections import numpy as np import pandas as pd import sys import bio_utils.bam_utils as bam_utils import bio_utils.bed_utils as bed_utils import misc.utils as utils import misc.pandas_utils as pandas_utils import logging import misc.logging_utils as logging_utils lo...
40.926531
113
0.702802
9ec3e42000f82c964e657286a910fd53950720ed
12,146
py
Python
disnake/ext/commands/bot.py
UT1C/disnake
4f1e3a78b662b42ef5dbe10c75c16283c3010460
[ "MIT" ]
null
null
null
disnake/ext/commands/bot.py
UT1C/disnake
4f1e3a78b662b42ef5dbe10c75c16283c3010460
[ "MIT" ]
null
null
null
disnake/ext/commands/bot.py
UT1C/disnake
4f1e3a78b662b42ef5dbe10c75c16283c3010460
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-2021 Rapptz Copyright (c) 2021-present Disnake Development 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 limi...
42.617544
117
0.697349
9ec3f4681a99ade33ad1a8d04c503c5115d9cc4d
374
py
Python
python_modules/libraries/dagster-aws/dagster_aws_tests/ecs_tests/launcher_tests/test_utils.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-aws/dagster_aws_tests/ecs_tests/launcher_tests/test_utils.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-aws/dagster_aws_tests/ecs_tests/launcher_tests/test_utils.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
from dagster_aws.ecs.utils import sanitize_family def test_sanitize_family(): assert sanitize_family("abc") == "abc" assert sanitize_family("abc123") == "abc123" assert sanitize_family("abc-123") == "abc-123" assert sanitize_family("abc_123") == "abc_123" assert sanitize_family("abc 123") == "abc1...
34
50
0.697861
9ec41d087af78f92de251a4d393fbdd9a0a52961
966
py
Python
aio/cluster/test/test_cluster_service.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
3
2021-11-09T09:43:21.000Z
2021-12-16T18:15:43.000Z
aio/cluster/test/test_cluster_service.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
null
null
null
aio/cluster/test/test_cluster_service.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
2
2022-03-10T11:24:46.000Z
2022-03-25T06:39:17.000Z
# -*- coding: utf-8 -*- # created: 2021-11-21 # creator: liguopeng@liguopeng.net from functools import partial from gcommon.aio import gasync from gcommon.aio.cluster.cluster_client import ClusterClient from gcommon.aio.cluster.cluster_config import ClusterConfig from gcommon.aio.cluster.zk_service import ZookeeperSe...
31.16129
65
0.78882
9ec41dbabf1d4140233601c61bd981c96e5c5dd8
6,110
py
Python
pytorch_widedeep/models/deep_text.py
FlyingWing/pytorch-widedeep
91a255d08bc9bdd5a05669465b7cf0313849ec9c
[ "MIT" ]
null
null
null
pytorch_widedeep/models/deep_text.py
FlyingWing/pytorch-widedeep
91a255d08bc9bdd5a05669465b7cf0313849ec9c
[ "MIT" ]
null
null
null
pytorch_widedeep/models/deep_text.py
FlyingWing/pytorch-widedeep
91a255d08bc9bdd5a05669465b7cf0313849ec9c
[ "MIT" ]
null
null
null
import warnings import numpy as np import torch from torch import nn from ..wdtypes import * from .deep_dense import dense_layer class DeepText(nn.Module): r"""Standard text classifier/regressor comprised by a stack of RNNs (LSTMs). In addition, there is the option to add a Fully Connected (FC) set of dens...
35.730994
92
0.579214
9ec4223c9e92591998c2f3c9a08af3301657c3df
17,015
py
Python
Test22_handwriter/others/noteshrink.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
3
2018-07-29T17:31:58.000Z
2019-06-27T10:36:34.000Z
Test22_handwriter/others/noteshrink.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
null
null
null
Test22_handwriter/others/noteshrink.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
1
2019-02-18T02:27:39.000Z
2019-02-18T02:27:39.000Z
#!/usr/bin/env python #https://note.youdao.com/share/?id=7c7db82c3677a189b6d79505c5c1f136&type=note#/ #https://mzucker.github.io/2016/09/20/noteshrink.html '''Converts sequence of images to compact PDF while removing speckles, bleedthrough, etc. ''' # for some reason pylint complains about members being undefined :( #...
29.336207
79
0.56697
9ec4392172677bf915d3304b8e6e60da8f6d6337
1,910
py
Python
CourseraMOOCdbTranslate/program/piping_scripts/queries/coursera/submission_assessment_data.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
26
2016-09-14T18:15:29.000Z
2021-12-01T20:01:29.000Z
CourseraMOOCdbTranslate/program/piping_scripts/queries/coursera/submission_assessment_data.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
122
2017-09-12T15:22:03.000Z
2021-09-27T17:25:08.000Z
CourseraMOOCdbTranslate/program/piping_scripts/queries/coursera/submission_assessment_data.py
rcmurray/WorkflowComponents
368f8132ce5bef3ac3fb9d8e1a13a08f91764cfa
[ "BSD-4-Clause-UC" ]
17
2017-02-16T16:04:41.000Z
2021-02-06T05:36:44.000Z
from utilities import db, moocdb_utils from coursera_quizzes import * from common import * from datetime import datetime def GetSubmissionAndAssessmentData(vars, test): # DB connections # -------------- s = vars['source'] general_db_selector = db.Selector(s['host'], s['user'], s['password'], s['po...
42.444444
149
0.525654
9ec43a2aa284b22d1dd0e9b5bcb1606941ee58a2
2,780
py
Python
simulate_sensored.py
johannah-23/motulator
902eceaf62f0a3607a6eb38c2914fa01e9b6ebf0
[ "MIT" ]
null
null
null
simulate_sensored.py
johannah-23/motulator
902eceaf62f0a3607a6eb38c2914fa01e9b6ebf0
[ "MIT" ]
null
null
null
simulate_sensored.py
johannah-23/motulator
902eceaf62f0a3607a6eb38c2914fa01e9b6ebf0
[ "MIT" ]
null
null
null
# pylint: disable=C0103 ''' (c) Aalto Electric Drives (contact: marko.hinkkanen@aalto.fi). motulator: Open-Source Simulator for Motor Drives and Power Converters This software includes simulation models for an induction motor, a synchronous reluctance motor, and a permanent-magnet synchronous motor. Furthermor...
37.567568
79
0.707554
9ec47b215cb5270e211abb392441f849e65d028e
2,282
py
Python
master/doingmath_code/doingmath_code/chapter3/solutions/us_population_stats.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/doingmath_code/doingmath_code/chapter3/solutions/us_population_stats.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/doingmath_code/doingmath_code/chapter3/solutions/us_population_stats.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
''' us_population_stats.py Read the US population data from a CSV file, calculate the growth in population in consective years and compute various statistical measures. Also creates two graphs - one showing the total population over the years and other showing the change between consecutive years. ''' import matplot...
29.636364
83
0.658195
9ec49042e3e85eda03e87f6b500d5fc948c369d4
1,499
py
Python
anchor_topic/cooccur.py
forest-snow/anchor-topic
ad947f2ff6aefc28394531fa74ba3e94e5a01fc2
[ "MIT" ]
13
2019-02-14T15:55:55.000Z
2022-03-03T01:01:28.000Z
anchor_topic/cooccur.py
gkaramanolakis/anchor-topic
e1637fa3965bfe14d8a5241b070c675bcdf4df18
[ "MIT" ]
1
2020-11-12T22:49:16.000Z
2020-11-12T22:49:16.000Z
anchor_topic/cooccur.py
gkaramanolakis/anchor-topic
e1637fa3965bfe14d8a5241b070c675bcdf4df18
[ "MIT" ]
2
2019-02-14T15:26:56.000Z
2021-08-21T02:37:53.000Z
import scipy.sparse import numpy import math import scipy.stats def computeQ(word_doc, epsilon=1e-15): M = scipy.sparse.csc_matrix(word_doc.copy(), dtype=float) n_words, n_docs = M.shape # word_probs is sum of probabilities of word occurring in all documents word_probs = numpy.zeros(n_words) # ...
27.759259
80
0.638426
9ec49575a529f5eb12fc57d8403b5cd070780ae7
6,721
py
Python
lda2vec/utils.py
annaelvira24/Lda2vec-Tensorflow
57aa112db5f7fed6542e22f91632cae3e98e46ef
[ "MIT" ]
null
null
null
lda2vec/utils.py
annaelvira24/Lda2vec-Tensorflow
57aa112db5f7fed6542e22f91632cae3e98e46ef
[ "MIT" ]
null
null
null
lda2vec/utils.py
annaelvira24/Lda2vec-Tensorflow
57aa112db5f7fed6542e22f91632cae3e98e46ef
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.utils import shuffle import pickle import pyLDAvis import os import random def _softmax(x): e_x = np.exp(x - np.max(x)) out = e_x / e_x.sum() return out def _softmax_2d(x): y = x - x.max(axis=1, keepdims=True) np.exp(y, out=y) y /= y.sum(axi...
35.941176
119
0.666567
9ec4c7d1d1fb0d1df8464374ff4a02935772c76d
650
py
Python
fiepipedesktoplib/gitstorage/shells/vars/root_id.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fiepipedesktoplib/gitstorage/shells/vars/root_id.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fiepipedesktoplib/gitstorage/shells/vars/root_id.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
import typing import uuid from fieuishell.ModalInputUI import InputModalShellUI from fieuishell.Shell import VarCommand class RootIDInputModal(InputModalShellUI[str]): def validate(self, v: str) -> typing.Tuple[bool, str]: try: return True, str(uuid.UUID(v)) except ValueError: ...
24.074074
63
0.675385
9ec502b1e7918517603224121d0ed57d32bb8968
1,770
py
Python
parsl/tests/configs/azure_single_node.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
1
2020-11-21T17:32:09.000Z
2020-11-21T17:32:09.000Z
parsl/tests/configs/azure_single_node.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
null
null
null
parsl/tests/configs/azure_single_node.py
aquanauts/parsl
978bb483a4a41b3cef083aa242b2a78614a02dd0
[ "Apache-2.0" ]
1
2022-03-09T10:51:12.000Z
2022-03-09T10:51:12.000Z
"""Config for Azure""" from parsl.providers import AzureProvider from parsl.config import Config from parsl.executors import HighThroughputExecutor from parsl.tests.utils import get_rundir from parsl.data_provider.http import HTTPInTaskStaging from parsl.data_provider.ftp import FTPInTaskStaging from parsl.data_provid...
36.122449
133
0.691525
9ec5308a4f74de337758932d79c3feb8e92a6b6d
1,004
py
Python
pylot/loggers/trajectory_logger_operator.py
victorsun123/pylot
43df8de4b4ed562370a5512093f6d9b486699567
[ "Apache-2.0" ]
null
null
null
pylot/loggers/trajectory_logger_operator.py
victorsun123/pylot
43df8de4b4ed562370a5512093f6d9b486699567
[ "Apache-2.0" ]
null
null
null
pylot/loggers/trajectory_logger_operator.py
victorsun123/pylot
43df8de4b4ed562370a5512093f6d9b486699567
[ "Apache-2.0" ]
null
null
null
import json from erdos.op import Op from pylot.utils import is_ground_tracking_stream class TrajectoryLoggerOp(Op): """ Log actor trajectories.""" def __init__(self, name, flags): super(TrajectoryLoggerOp, self).__init__(name) self._flags = flags self._msg_cnt = 0 @staticmethod...
30.424242
79
0.664343
9ec543cc14ca3bfa191a0070c397df73f8b90a88
1,157
py
Python
app/checkout_backend/management/commands/load_products.py
jcazallasc/lana-python-challenge
134ef30b6dcc7c323c90df8992b194741f071d95
[ "MIT" ]
null
null
null
app/checkout_backend/management/commands/load_products.py
jcazallasc/lana-python-challenge
134ef30b6dcc7c323c90df8992b194741f071d95
[ "MIT" ]
null
null
null
app/checkout_backend/management/commands/load_products.py
jcazallasc/lana-python-challenge
134ef30b6dcc7c323c90df8992b194741f071d95
[ "MIT" ]
null
null
null
import csv from django.core.management.base import BaseCommand, CommandError from checkout_backend.adapters.django.product_repository import DjangoProductRepository from checkout_backend.management.commands.utils import get_full_path class Command(BaseCommand): help = """Load products from CSV file. The CSV Fil...
35.060606
93
0.567848
9ec54aeb9e23e9f389e2fb28e2c59234ca0f44b3
805
py
Python
example/dataset.py
nickvasko/DLTrainer
eec9a54172ab803f75eb4861143913aa29e219d0
[ "MIT" ]
null
null
null
example/dataset.py
nickvasko/DLTrainer
eec9a54172ab803f75eb4861143913aa29e219d0
[ "MIT" ]
null
null
null
example/dataset.py
nickvasko/DLTrainer
eec9a54172ab803f75eb4861143913aa29e219d0
[ "MIT" ]
null
null
null
import torch from torch.utils.data import Dataset import pickle import os from .util import create_sample_data class SimpleDataset(Dataset): def __init__(self, args, file_type): cache_file = f'{args.data_dir}/{file_type}.pkl' if not os.path.exists(cache_file): print(f'dataset not foun...
28.75
100
0.643478
9ec58b218c26b1c71cd65d95e36e0e5b540bcd25
572
py
Python
setup.py
SandipPalit/sp_distributions
6c32a5ab5dc3c5bcfea9b89834fb1216f7885e83
[ "MIT" ]
2
2021-11-12T12:01:22.000Z
2021-11-28T12:00:20.000Z
setup.py
SandipPalit/sp_distributions
6c32a5ab5dc3c5bcfea9b89834fb1216f7885e83
[ "MIT" ]
null
null
null
setup.py
SandipPalit/sp_distributions
6c32a5ab5dc3c5bcfea9b89834fb1216f7885e83
[ "MIT" ]
null
null
null
from setuptools import setup with open("sp_distributions/README.md", "r") as fh: long_description = fh.read() setup(name='sp_distributions', version='0.1.2', license='MIT', author='Sandip Palit', author_email='sandippalit009@gmail.com', long_description=long_description, long_d...
35.75
121
0.708042
9ec5c4528bc5fd84b15a1a39d42df73c0372c253
4,591
py
Python
argos/extract_frames.py
subhacom/argos
e1b4057e470c517aabca6b6e0a0efb44871fed82
[ "Unlicense" ]
1
2021-05-18T01:07:16.000Z
2021-05-18T01:07:16.000Z
argos/extract_frames.py
subhacom/argos
e1b4057e470c517aabca6b6e0a0efb44871fed82
[ "Unlicense" ]
null
null
null
argos/extract_frames.py
subhacom/argos
e1b4057e470c517aabca6b6e0a0efb44871fed82
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # Author: SSubhasis Ray, ray dot subhasis at gmail dot com # Date: 2020-02-23 """ ========================================== Extract some frames from a video as images ========================================== This is a little utility to extract frames from a video file. try ``python -m argos.e...
37.325203
76
0.573731
9ec5c6e18835b8d9495f31674d22c87b9b3c089b
835
py
Python
callisto/app/agent/k8s.py
isabella232/callisto
182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f
[ "MIT" ]
84
2020-02-18T14:58:35.000Z
2022-03-04T22:34:46.000Z
callisto/app/agent/k8s.py
wrike/callisto
182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f
[ "MIT" ]
6
2020-07-13T19:31:07.000Z
2022-03-30T15:35:23.000Z
callisto/app/agent/k8s.py
isabella232/callisto
182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f
[ "MIT" ]
9
2021-03-08T10:17:29.000Z
2022-03-04T12:21:53.000Z
from __future__ import annotations from ...libs.domains.config import K8sConfig from ...libs.services.k8s.client import K8sClient from ...libs.services.k8s.service import K8sService from ...libs.services.pod_event import PodEventService from ...libs.services.task_runner import TaskRunnerService async def init_k8s_se...
43.947368
112
0.74491
9ec5cb7906b3b40445257c6247715ae52fd14c2f
16,038
py
Python
src/operation/exec_test.py
tobytoyin/TesterFactory
150a2625f8fb4eb50d600611d990a8bb8fed96a4
[ "MIT" ]
null
null
null
src/operation/exec_test.py
tobytoyin/TesterFactory
150a2625f8fb4eb50d600611d990a8bb8fed96a4
[ "MIT" ]
null
null
null
src/operation/exec_test.py
tobytoyin/TesterFactory
150a2625f8fb4eb50d600611d990a8bb8fed96a4
[ "MIT" ]
null
null
null
from src.operation.execution import Execution from selenium.common.exceptions import ( ElementClickInterceptedException, ElementNotInteractableException, NoSuchElementException, ) from selenium.webdriver.support import expected_conditions as EC from time import sleep from bs4 import BeautifulSoup from selen...
35.017467
114
0.563162
9ec5d8e1cd2093652c21b2a5c247668aa51528a5
2,483
py
Python
pystyl/clustering/api.py
ELTE-DH/pystyl
84e99e6faa962bc0aba561f129abd597fb4b7792
[ "BSD-3-Clause" ]
48
2015-09-21T08:24:09.000Z
2022-01-06T08:41:23.000Z
pystyl/clustering/api.py
ELTE-DH/pystyl
84e99e6faa962bc0aba561f129abd597fb4b7792
[ "BSD-3-Clause" ]
7
2015-09-18T14:21:23.000Z
2021-05-10T09:29:18.000Z
pystyl/clustering/api.py
ELTE-DH/pystyl
84e99e6faa962bc0aba561f129abd597fb4b7792
[ "BSD-3-Clause" ]
15
2016-05-20T11:31:30.000Z
2021-03-30T13:13:41.000Z
# Hierarchical Agglomerative Cluster Analysis # # Copyright (C) 2013 Folgert Karsdorp # Author: Folgert Karsdorp <fbkarsdorp@gmail.com> # URL: <https://github.com/fbkarsdorp/HAC-python> # For licence information, see LICENCE.TXT class AbstractClusterer(object): """ Abstract interface covering basic clustering...
34.486111
80
0.628272
9ec6184cb539c121d48f3eb2562b88db7386f609
3,680
py
Python
docusign_rooms/models/global_closing_statuses.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
2
2020-11-11T01:38:45.000Z
2021-11-14T17:00:43.000Z
docusign_rooms/models/global_closing_statuses.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
null
null
null
docusign_rooms/models/global_closing_statuses.py
docusign/docusign-rooms-python-client
eb8cfd0e487a87bc43d54bfa9de784eb170a40d3
[ "MIT" ]
1
2021-11-14T17:00:32.000Z
2021-11-14T17:00:32.000Z
# coding: utf-8 """ DocuSign Rooms API - v2 An API for an integrator to access the features of DocuSign Rooms # noqa: E501 OpenAPI spec version: v2 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import...
29.918699
98
0.598913
9ec6244c3bea7a00e22b8055cd02fad500977585
9,085
py
Python
ckan/logic/schema.py
jasonzou/ckan
d7006805cce5a7cc10901d18895f9fee2de04886
[ "BSD-3-Clause" ]
1
2016-02-11T04:51:21.000Z
2016-02-11T04:51:21.000Z
ckan/logic/schema.py
jasonzou/ckan
d7006805cce5a7cc10901d18895f9fee2de04886
[ "BSD-3-Clause" ]
null
null
null
ckan/logic/schema.py
jasonzou/ckan
d7006805cce5a7cc10901d18895f9fee2de04886
[ "BSD-3-Clause" ]
null
null
null
from ckan.lib.navl.validators import (ignore_missing, keep_extras, not_empty, empty, ignore, if_empty_same_as, ...
34.154135
108
0.574573
9ec62d2730940516e17cf9bf53175b874c319122
2,293
py
Python
tests/test_tidyr_extract.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
110
2021-03-09T04:10:40.000Z
2022-03-13T10:28:20.000Z
tests/test_tidyr_extract.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
54
2021-06-20T18:53:44.000Z
2022-03-29T22:13:07.000Z
tests/test_tidyr_extract.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
11
2021-06-18T03:03:14.000Z
2022-02-25T11:48:26.000Z
# tests grabbed from: # https://github.com/tidyverse/tidyr/blob/HEAD/tests/testthat/test-extract.R import pytest from pandas.testing import assert_frame_equal from datar.all import * from .conftest import assert_iterable_equal def test_default_returns_first_alpha_group(): df = tibble(x=c("a.b", "a.d", "b.c")) ...
34.742424
76
0.597907
9ec62ee6f7604c7e5170984f8cbda777adc93677
8,479
py
Python
tests/test_response.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
1
2020-08-18T22:00:22.000Z
2020-08-18T22:00:22.000Z
tests/test_response.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
tests/test_response.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
1
2021-05-10T23:33:34.000Z
2021-05-10T23:33:34.000Z
import pytest from requests import Response from py42.exceptions import Py42Error from py42.response import Py42Response JSON_LIST_WITH_DATA_NODE = ( '{"data": {"item_list_key": [{"foo": "foo_val"}, {"bar": "bar_val"}]}}' ) JSON_DICT_WITH_DATA_NODE = '{"data": {"item_list_key": {"foo": "foo_val"}}}' JSON_LIST_NO...
39.437209
88
0.729921
9ec633af1e38d549411705cf88fd28f47666d5ae
534
py
Python
terrascript/sentry/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/sentry/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/sentry/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/sentry/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class sentry_key(terrascript.Resource): pass class sentry_organization(terrascript.Resource): pass...
15.705882
79
0.765918
9ec64bb197af565b5d5dcbf36420c671dbe4a367
667
py
Python
tree/0110-balanced-binary-tree(平衡二叉树).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-01-10T17:03:21.000Z
2021-01-10T17:03:21.000Z
tree/0110-balanced-binary-tree(平衡二叉树).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
null
null
null
tree/0110-balanced-binary-tree(平衡二叉树).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-07-25T07:53:14.000Z
2021-07-25T07:53:14.000Z
class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: # 关心递归函数的语义 def isBalanced(self, root: TreeNode) -> bool: # 先写特殊情况,空树是平衡二叉树 if root is None: return True return self.__helper(root) != -1 ...
23.821429
62
0.547226