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
f7b86fec22e1d1bec40fdc98365436d41fb900ed
14,582
py
Python
setup.py
erasche/biopython
fba3c8a926a07b8b6b821759db8c71d93c51be86
[ "PostgreSQL" ]
1
2020-05-26T22:51:14.000Z
2020-05-26T22:51:14.000Z
setup.py
erasche/biopython
fba3c8a926a07b8b6b821759db8c71d93c51be86
[ "PostgreSQL" ]
null
null
null
setup.py
erasche/biopython
fba3c8a926a07b8b6b821759db8c71d93c51be86
[ "PostgreSQL" ]
null
null
null
"""Distutils based setup script for Biopython. This uses Distutils (http://python.org/sigs/distutils-sig/) the standard python mechanism for installing packages. For the easiest installation just type the command: python setup.py install For more in-depth instructions, see the installation section of the Biopython m...
29.820041
95
0.631258
f7b88efbf828358a80118141a5dbb4e0dce7fac3
5,736
py
Python
st2common/st2common/bootstrap/configsregistrar.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
st2common/st2common/bootstrap/configsregistrar.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
st2common/st2common/bootstrap/configsregistrar.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
35.627329
97
0.650453
f7b8a983dcdfd0830176915d9141c6844be6db40
3,471
py
Python
test/io_tests/tunnelling_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
test/io_tests/tunnelling_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
test/io_tests/tunnelling_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
"""Unit test for KNX/IP Tunnelling Request/Response.""" import asyncio import unittest from unittest.mock import patch import pytest pytestmark = pytest.mark.asyncio from xknx import XKNX from xknx.dpt import DPTArray from xknx.io import Tunnelling, UDPClient from xknx.knxip import ErrorCode, KNXIPFrame, KNXIPService...
47.547945
118
0.701527
f7b8d46c83e5f79d799a7d0acb14034833059aa2
6,533
py
Python
tests/test_dplyr_select.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
110
2021-03-09T04:10:40.000Z
2022-03-13T10:28:20.000Z
tests/test_dplyr_select.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
54
2021-06-20T18:53:44.000Z
2022-03-29T22:13:07.000Z
tests/test_dplyr_select.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/dplyr/blob/master/tests/testthat/test-select.r import pytest from datar.all import * from datar.core.exceptions import ColumnNotExistingError from datar.datasets import mtcars from datar.stats.verbs import set_names from pandas.core.frame import DataFrame from pipda ...
30.962085
77
0.596816
f7b8f701a1a1dc4a2f313b2f452fd69101f8a6ef
8,599
py
Python
pyddl/pyddl.py
piopy/pyddl
df09c6dcef912ba75810dee2de988c1e39efb690
[ "MIT" ]
42
2015-02-22T22:30:52.000Z
2022-03-21T11:23:42.000Z
pyddl/pyddl.py
piopy/pyddl
df09c6dcef912ba75810dee2de988c1e39efb690
[ "MIT" ]
3
2016-11-26T01:33:19.000Z
2019-12-01T17:47:34.000Z
pyddl/pyddl.py
piopy/pyddl
df09c6dcef912ba75810dee2de988c1e39efb690
[ "MIT" ]
10
2016-11-19T23:41:12.000Z
2021-11-03T17:07:01.000Z
""" Classes and functions that allow creating a PDDL-like problem and domain definition for planning """ from itertools import product import operator as ops NUM_OPS = { '>' : ops.gt, '<' : ops.lt, '=' : ops.eq, '>=': ops.ge, '<=': ops.le } class Domain(object): def __init__(self, actions=())...
32.57197
91
0.563321
f7b941084e7d5637a66843ab0801fab7efdde24a
1,563
py
Python
tests/nemo_text_processing/de/test_word.py
JMichaelStringer/NeMo
b5b29a69ccb0ec3d8c9ace2f33872ee99858a559
[ "Apache-2.0" ]
1
2021-09-10T10:40:51.000Z
2021-09-10T10:40:51.000Z
tests/nemo_text_processing/de/test_word.py
JMichaelStringer/NeMo
b5b29a69ccb0ec3d8c9ace2f33872ee99858a559
[ "Apache-2.0" ]
null
null
null
tests/nemo_text_processing/de/test_word.py
JMichaelStringer/NeMo
b5b29a69ccb0ec3d8c9ace2f33872ee99858a559
[ "Apache-2.0" ]
1
2022-01-07T03:39:11.000Z
2022-01-07T03:39:11.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. 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...
42.243243
111
0.790787
f7b96584c103106c5a7311bb5978abd202701d87
2,478
py
Python
tests/utils.py
movermeyer/pyrepo
59c662f5fe6f5b0c95ac75a5dda3593c250acd19
[ "MIT" ]
null
null
null
tests/utils.py
movermeyer/pyrepo
59c662f5fe6f5b0c95ac75a5dda3593c250acd19
[ "MIT" ]
null
null
null
tests/utils.py
movermeyer/pyrepo
59c662f5fe6f5b0c95ac75a5dda3593c250acd19
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Utilities to aid in testing. """ import subprocess import os class MockSourceRepo(object): """ Represents a source repository on the local filesystem for mocking purposes. The repository is setup to have some history and tags. """ def __init__...
35.913043
73
0.646893
f7b96ac24d68a104f7049c10e80505aea6273d09
11,869
py
Python
clients/client/python/ory_client/model/pagination.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/model/pagination.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/model/pagination.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
""" Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 The version of the OpenAPI document: v0.0.1-alpha.71 Contact: support@ory.sh Generated by: htt...
44.287313
194
0.572921
f7ba0c6a93075758f287d2bd1d4995c191e34034
5,441
py
Python
gibson2/examples/demo/igsdf_obj_viz.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
3
2021-02-07T14:00:38.000Z
2021-07-03T19:40:59.000Z
gibson2/examples/demo/igsdf_obj_viz.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
null
null
null
gibson2/examples/demo/igsdf_obj_viz.py
i-m-vivek/iGibson
c9009a3da4bfe05e8a3c058d83e0a5d3be0cd648
[ "MIT" ]
2
2021-04-01T12:14:59.000Z
2021-06-18T13:04:39.000Z
import cv2 import sys import os import numpy as np from gibson2.simulator import Simulator from gibson2.render.mesh_renderer.mesh_renderer_cpu import MeshRenderer from gibson2.render.mesh_renderer.mesh_renderer_settings import MeshRendererSettings from gibson2.render.profiler import Profiler # from gibson2.utils.assets...
33.795031
128
0.603566
f7ba2cdd8de5c6be36485376e2511546ba7984ea
306
py
Python
tools/snoop.py
drocco007/vox_linux
9807bc3af8bc35f8f6634019ec4bc22b5e3b2e33
[ "MIT" ]
5
2015-03-25T11:56:10.000Z
2018-02-03T21:11:27.000Z
tools/snoop.py
drocco007/vox_linux
9807bc3af8bc35f8f6634019ec4bc22b5e3b2e33
[ "MIT" ]
null
null
null
tools/snoop.py
drocco007/vox_linux
9807bc3af8bc35f8f6634019ec4bc22b5e3b2e33
[ "MIT" ]
null
null
null
import logging import sys logging.basicConfig(level=logging.DEBUG) from vox import bus if len(sys.argv) > 1: host = sys.argv[1] else: host = 'localhost' socket = bus.connect_subscribe(host=host) while True: message = socket.recv() logging.info('message: %s', message.decode('utf8'))
15.3
55
0.689542
f7ba359e1ef0256318cf8811cb294005cbc35156
5,032
py
Python
Core/Model/ChromeModel/SQLite/webdata.py
UpBeatMan/Abschlussarbeit
e842df691bbfdf77cd1c41d9de00718166bb4e19
[ "MIT" ]
null
null
null
Core/Model/ChromeModel/SQLite/webdata.py
UpBeatMan/Abschlussarbeit
e842df691bbfdf77cd1c41d9de00718166bb4e19
[ "MIT" ]
28
2021-06-20T17:39:00.000Z
2021-09-04T15:03:41.000Z
Core/Model/ChromeModel/SQLite/webdata.py
UpBeatMan/Abschlussarbeit
e842df691bbfdf77cd1c41d9de00718166bb4e19
[ "MIT" ]
null
null
null
from sqlalchemy import Column, Integer, String, orm import random from Model.util import log_message from Model.ChromeModel.SQLite.base import * NAME = "Name" VALUE = "Wert" KEYWORD = "Schlüsselwort" CREATEDAT = "Erstellt am" LASTMODIFIED = "Zuletzt geändert" LASTVISITED = "Zuletzt besucht" LASTUSED = "Zuletzt benutz...
33.771812
87
0.564388
f7ba3e052df091973810f7f0c4c950c65ab1db5a
6,911
py
Python
test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/aio/_multiapi_service_client.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/aio/_multiapi_service_client.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/multiapi/Expected/AcceptanceTests/MultiapiWithSubmodule/multiapiwithsubmodule/submodule/aio/_multiapi_service_client.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.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 ...
46.695946
147
0.690928
f7ba41dde9cca5b858fdfdc4e7dbd874a199d289
3,481
py
Python
evaluate11.py
danyaljj/allennlp
5846855d363df8f84d0a12bc6867ac66f539c2a3
[ "Apache-2.0" ]
null
null
null
evaluate11.py
danyaljj/allennlp
5846855d363df8f84d0a12bc6867ac66f539c2a3
[ "Apache-2.0" ]
null
null
null
evaluate11.py
danyaljj/allennlp
5846855d363df8f84d0a12bc6867ac66f539c2a3
[ "Apache-2.0" ]
null
null
null
""" Official evaluation script for v1.1 of the SQuAD dataset. """ from __future__ import print_function from collections import Counter import string import re import argparse import json import sys def normalize_answer(s): """Lower text and remove punctuation, articles and extra whitespace.""" def remove_art...
36.260417
77
0.652111
f7ba47c63cfc10bd559c13279f679319ec4ad5e4
839
py
Python
venv/bin/rst2latex.py
oktayuyar/RobotAppiumProject
29f7a744f6a15e3aba1f5fe8cd8b93f96c96044e
[ "MIT" ]
null
null
null
venv/bin/rst2latex.py
oktayuyar/RobotAppiumProject
29f7a744f6a15e3aba1f5fe8cd8b93f96c96044e
[ "MIT" ]
1
2021-06-02T00:48:18.000Z
2021-06-02T00:48:18.000Z
venv/bin/rst2latex.py
oktayuyar/RobotAppiumProject
29f7a744f6a15e3aba1f5fe8cd8b93f96c96044e
[ "MIT" ]
null
null
null
#!/Users/sahabt/PycharmProjects/RobotAppiumProject/venv/bin/python # $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing LaTeX. """ try: import ...
31.074074
76
0.682956
f7ba6a54e365dfe527f4fb87c687163cec4b671b
3,261
py
Python
venv/Lib/site-packages/pyrogram/raw/types/input_chat_uploaded_photo.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/input_chat_uploaded_photo.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/input_chat_uploaded_photo.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
37.482759
148
0.623122
f7ba8dc391ccf3453c4c9240b63e4e718cad898f
6,629
py
Python
upwork/client.py
upwork/python-upwork
63aa5ebfd91cbf6f019437358f3e89d0e3bc29aa
[ "Apache-2.0" ]
150
2015-05-28T19:09:33.000Z
2022-03-22T16:56:33.000Z
upwork/client.py
Top-coder-1/python-upwork
0671e1e90cc2d770be4f96ae4bfb21bc111dd122
[ "Apache-2.0" ]
38
2015-05-28T18:45:55.000Z
2021-06-14T09:34:27.000Z
upwork/client.py
Top-coder-1/python-upwork
0671e1e90cc2d770be4f96ae4bfb21bc111dd122
[ "Apache-2.0" ]
61
2015-09-01T06:39:25.000Z
2021-11-09T12:29:57.000Z
# Licensed under the Upwork's API Terms of Use; # you may not use this file except in compliance with the Terms. # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or i...
30.832558
112
0.632976
f7baaf61ac0c37d689d986db9aa15217bf92821d
10,371
py
Python
assignments/assignment3/layers.py
arch1baald/dlcourse_ai
cb55a4de241c58dffa2331ba17326e4ef244694c
[ "MIT" ]
null
null
null
assignments/assignment3/layers.py
arch1baald/dlcourse_ai
cb55a4de241c58dffa2331ba17326e4ef244694c
[ "MIT" ]
null
null
null
assignments/assignment3/layers.py
arch1baald/dlcourse_ai
cb55a4de241c58dffa2331ba17326e4ef244694c
[ "MIT" ]
null
null
null
import numpy as np def l2_regularization(W, reg_strength): ''' Computes L2 regularization loss on weights and its gradient Arguments: W, np array - weights reg_strength - float value Returns: loss, single value - l2 regularization loss gradient, np.array same shape as W - gra...
33.781759
170
0.590011
f7bad821e6e5664ffcc2683945505465ebc07259
1,130
py
Python
setup.py
pmrowla/ollehtv
e340ce34a0e2af7aaaab3d48cc8d6502e284dfa9
[ "MIT" ]
5
2017-03-14T16:17:06.000Z
2020-08-25T22:46:23.000Z
setup.py
pmrowla/ollehtv
e340ce34a0e2af7aaaab3d48cc8d6502e284dfa9
[ "MIT" ]
null
null
null
setup.py
pmrowla/ollehtv
e340ce34a0e2af7aaaab3d48cc8d6502e284dfa9
[ "MIT" ]
3
2017-11-19T08:39:48.000Z
2018-10-25T00:05:24.000Z
from setuptools import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() try: import pypandoc long_description = pypandoc.convert_text( long_descr...
29.736842
65
0.636283
f7bae3870fc5294a05d537e5fe458e411ae961b7
4,426
py
Python
alipay/aop/api/domain/AlipayOpenMiniDeveloppackageQueryModel.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/AlipayOpenMiniDeveloppackageQueryModel.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/AlipayOpenMiniDeveloppackageQueryModel.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 AlipayOpenMiniDeveloppackageQueryModel(object): def __init__(self): self._bundle_id = None self._deploy_version = None self._developer_version = None self._inst_co...
30.315068
85
0.589245
f7baf024e64cd1098108ba92ed7fec5d4f7b1d1b
3,735
py
Python
venv/lib/python3.8/site-packages/dateparser/data/date_translation_data/eu.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/date_translation_data/eu.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/eu.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "name": "eu", "date_order": "YMD", "january": [ "urtarrila", "urt" ], "february": [ "otsaila", "ots" ], "march": [ "martxoa", "mar" ], "april": [ "apirila", "api" ], "may": [ ...
16.900452
35
0.276841
f7bb3dda2b48a4be46fde95dc3d107f0f8d3e39d
19,404
py
Python
frameworks/js-bindings/cocos2d-x/tools/cocos2d-console/plugins/project_compile/build_android.py
zktc5418/Sample_JSB
fabaadb94325abd62bf029f732d4b0f19ab26666
[ "MIT" ]
22
2015-04-09T06:45:38.000Z
2017-10-16T15:45:30.000Z
frameworks/js-bindings/cocos2d-x/tools/cocos2d-console/plugins/project_compile/build_android.py
zktc5418/Sample_JSB
fabaadb94325abd62bf029f732d4b0f19ab26666
[ "MIT" ]
1
2016-09-20T10:54:53.000Z
2016-09-20T10:54:53.000Z
frameworks/js-bindings/cocos2d-x/tools/cocos2d-console/plugins/project_compile/build_android.py
zktc5418/Sample_JSB
fabaadb94325abd62bf029f732d4b0f19ab26666
[ "MIT" ]
32
2015-01-20T07:58:44.000Z
2018-08-03T15:12:47.000Z
#!/usr/bin/python # build_native.py # Build native codes import sys import os, os.path import shutil from optparse import OptionParser import cocos import cocos_project import json import re from xml.dom import minidom import project_compile BUILD_CFIG_FILE="build-cfg.json" class AndroidBuilder(object): CFG_K...
41.461538
186
0.620697
f7bb41d2931c7480dff79ac20e0935ce372db3ee
3,000
py
Python
2019/13/arcade.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2019/13/arcade.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2019/13/arcade.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
from collections import defaultdict from typing import Dict, List import intcode import robotics class Game(robotics.Painter): """Representation of a simple arcade game. Due to its similarities with the `robotics.Painter` class, we inherit from that instead of the base `intcode.Interpreter`. Attribu...
32.608696
71
0.557667
f7bb5736546e5f4db178ad6f7e2042eec77665c0
2,237
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/import_image_parameters_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/import_image_parameters_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/import_image_parameters_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# 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 ...
40.672727
121
0.647295
f7bb6373ad13b086a5d44b14064dabb6ae36a511
457
py
Python
docsrc/Matplotlib/conf.py
wklchris/blog
6229eeef06e5e542736ac26722c1ac7a03829204
[ "MIT" ]
null
null
null
docsrc/Matplotlib/conf.py
wklchris/blog
6229eeef06e5e542736ac26722c1ac7a03829204
[ "MIT" ]
null
null
null
docsrc/Matplotlib/conf.py
wklchris/blog
6229eeef06e5e542736ac26722c1ac7a03829204
[ "MIT" ]
null
null
null
author = "wklchris" copyright = "wklchris" exclude_patterns = ['_build', '**.ipynb_checkpoints'] extensions = ['nbsphinx', 'sphinx_copybutton', 'sphinx.ext.mathjax'] html_css_files = ['style.css'] html_static_path = ['../_static'] html_theme = "sphinx_rtd_theme" html_theme_options = {'canonical_url': "https://wklchris....
35.153846
85
0.73523
f7bb64faa0d31d3a8ddab25cfd7cdab36efdc701
2,590
py
Python
torcharrow/test/transformation/test_numeric_ops.py
Ssmush/torcharrow
07cab91b6fc10a98e636b1400007c2c01731dc1b
[ "BSD-3-Clause" ]
null
null
null
torcharrow/test/transformation/test_numeric_ops.py
Ssmush/torcharrow
07cab91b6fc10a98e636b1400007c2c01731dc1b
[ "BSD-3-Clause" ]
null
null
null
torcharrow/test/transformation/test_numeric_ops.py
Ssmush/torcharrow
07cab91b6fc10a98e636b1400007c2c01731dc1b
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. import math import unittest import numpy.testing import torcharrow as ta import torcharrow.dtypes as dt # TODO: add/migrate more numeric tests class _TestNumericOpsBase(unittest.TestCase): @classmethod def setUpClass(cls): # Prepare input data as C...
32.375
95
0.57027
f7bb6b483a2acc67de3b2bd7cb6c70c5c316788c
11,343
py
Python
sdk/lusid_workflows/models/lusid_validation_problem_details.py
finbourne/events-sdk-preview
8121c4400ebfbccb4a0b211a5ab9d547b264bda7
[ "MIT" ]
null
null
null
sdk/lusid_workflows/models/lusid_validation_problem_details.py
finbourne/events-sdk-preview
8121c4400ebfbccb4a0b211a5ab9d547b264bda7
[ "MIT" ]
null
null
null
sdk/lusid_workflows/models/lusid_validation_problem_details.py
finbourne/events-sdk-preview
8121c4400ebfbccb4a0b211a5ab9d547b264bda7
[ "MIT" ]
null
null
null
# coding: utf-8 """ FINBOURNE Workflows API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.1.39 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargs...
28.428571
204
0.594023
f7bb7a3e7edb865bbac2e14f13a9ad39970e0d02
7,940
py
Python
byconeer/biosamplesRefresher.py
sofiapfund/bycon
d7993eaf99cfce46f3025718ab3aa3c0f812badd
[ "CC0-1.0" ]
null
null
null
byconeer/biosamplesRefresher.py
sofiapfund/bycon
d7993eaf99cfce46f3025718ab3aa3c0f812badd
[ "CC0-1.0" ]
1
2021-03-18T12:17:59.000Z
2021-03-18T12:19:24.000Z
byconeer/biosamplesRefresher.py
sofiapfund/bycon
d7993eaf99cfce46f3025718ab3aa3c0f812badd
[ "CC0-1.0" ]
null
null
null
#!/usr/local/bin/python3 import re, json, yaml from os import path, environ, pardir import sys, datetime from isodate import date_isoformat from pymongo import MongoClient import argparse import statistics from progress.bar import Bar # local dir_path = path.dirname( path.abspath(__file__) ) pkg_sub = path.dirname(__...
33.083333
107
0.491688
f7bb960f6bcfe327746d300b999932b32fe4a8a5
15,570
py
Python
P1.py
migkapa/lanefinding
48a86986e72c063eaa8e49139f63cc0c0d2de916
[ "MIT" ]
null
null
null
P1.py
migkapa/lanefinding
48a86986e72c063eaa8e49139f63cc0c0d2de916
[ "MIT" ]
null
null
null
P1.py
migkapa/lanefinding
48a86986e72c063eaa8e49139f63cc0c0d2de916
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Self-Driving Car Engineer Nanodegree # # # ## Project: **Finding Lane Lines on the Road** # *** # In this project, you will use the tools you learned about in the lesson to identify lane lines on the road. You can develop your pipeline on a series of individual images, and...
41.081794
638
0.710854
f7bb9d67ba416f30fe35ab3d69f964128d3e5a7f
390
py
Python
geoapps/simpegPF/EM/Static/DC/__init__.py
RichardScottOZ/geoapps
5b3c1d4fd11add45992e8b2497312ac014272b69
[ "MIT" ]
1
2022-02-18T16:24:53.000Z
2022-02-18T16:24:53.000Z
geoapps/simpegPF/EM/Static/DC/__init__.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
geoapps/simpegPF/EM/Static/DC/__init__.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
from .ProblemDC import Problem3D_CC, Problem3D_N, BaseDCProblem from .ProblemDC_2D import Problem2D_CC, Problem2D_N from .SurveyDC import Survey, Survey_ky from . import SrcDC as Src # Pole from . import RxDC as Rx from .FieldsDC import FieldsDC, Fields_CC, Fields_N from .FieldsDC_2D import Fields_ky, Fields_ky_CC, Fi...
39
63
0.823077
f7bbe03080eacdb46951003a017c4783b13c7e76
5,140
py
Python
xontrib/mplhooks.py
jianlingzhong/xonsh
42e2d792117ceeb0ab7ec8f92fb1177b21388f84
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xontrib/mplhooks.py
jianlingzhong/xonsh
42e2d792117ceeb0ab7ec8f92fb1177b21388f84
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xontrib/mplhooks.py
jianlingzhong/xonsh
42e2d792117ceeb0ab7ec8f92fb1177b21388f84
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
"""Matplotlib hooks, for what its worth.""" from io import BytesIO import shutil import numpy as np import matplotlib import matplotlib.pyplot as plt from xonsh.tools import print_color, ON_WINDOWS try: # Use iterm2_tools as an indicator for the iterm2 terminal emulator from iterm2_tools.images import displa...
30.414201
92
0.631323
f7bbeada38ef08e4d641a70185b109d5bd3ce4a9
1,300
py
Python
random/ball.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
random/ball.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
random/ball.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
import time class ball(): def __init__(self, x = 5, y = 5, sx = 1, sy = 1, sp = 2, w = 10, h = 10): self.x = x self.y = y self.sx = sx self.sy = sy self.sp = sp self.w = w self.h = h def move(self): self.x = self.x + self.sx * self.sp sel...
20.967742
77
0.373077
f7bc014ade160ccfb7b6eada9043d0a079b0678a
5,645
py
Python
kinto/core/views/batch.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
4,618
2015-08-06T18:17:02.000Z
2022-03-31T10:03:07.000Z
kinto/core/views/batch.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
1,578
2015-07-30T09:47:41.000Z
2022-03-31T13:12:50.000Z
kinto/core/views/batch.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
546
2015-07-30T10:31:35.000Z
2022-03-31T12:44:32.000Z
import logging import colander from cornice.validators import colander_validator from pyramid import httpexceptions from pyramid.security import NO_PERMISSION_REQUIRED from kinto.core import Service, errors from kinto.core.errors import ErrorSchema from kinto.core.resource.viewset import CONTENT_TYPES from kinto.core...
34.631902
94
0.686802
f7bc129fa5006f1fb5ebbe0fd91d7505a42d68a7
2,040
py
Python
tests/draft_test.py
emlprime/fantasyx
43b06c16d600907f1da4217ff67de0f5b47fe70c
[ "MIT" ]
null
null
null
tests/draft_test.py
emlprime/fantasyx
43b06c16d600907f1da4217ff67de0f5b47fe70c
[ "MIT" ]
9
2020-09-05T04:44:39.000Z
2022-03-08T22:49:06.000Z
tests/draft_test.py
emlprime/fantasyx
43b06c16d600907f1da4217ff67de0f5b47fe70c
[ "MIT" ]
null
null
null
import unittest from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import Session import sys sys.path.append('../') from fantasyx.models import * Base = declarative_base() class TestDraft(unittest.TestCase): def setUp(self): self.engin...
36.428571
104
0.67451
f7bc2ed58b9e160291a9ed001671acf438e0c76a
9,775
py
Python
main.py
arxitaqu/Importer2OSMbasemap
a373d1dbab3bd7de28461e73f334d93f39a9beb8
[ "MIT" ]
null
null
null
main.py
arxitaqu/Importer2OSMbasemap
a373d1dbab3bd7de28461e73f334d93f39a9beb8
[ "MIT" ]
null
null
null
main.py
arxitaqu/Importer2OSMbasemap
a373d1dbab3bd7de28461e73f334d93f39a9beb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' /*************************************************************************** Importer2OSMbasemap A QGIS plugin ------------------- begin : 2022-03-03 git sha : $Format:%H$ cop...
34.540636
197
0.602148
f7bc33cab56278745452eade02afe07b7c2ee956
371
py
Python
freecoinage/coins/util/apidatasource.py
clifer/freecoinage
0bc8300f09445ef6d8258b3ca782627e0d81e2f1
[ "MIT" ]
null
null
null
freecoinage/coins/util/apidatasource.py
clifer/freecoinage
0bc8300f09445ef6d8258b3ca782627e0d81e2f1
[ "MIT" ]
null
null
null
freecoinage/coins/util/apidatasource.py
clifer/freecoinage
0bc8300f09445ef6d8258b3ca782627e0d81e2f1
[ "MIT" ]
null
null
null
import json import requests def FetchAPI(address, requeststring): headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"} params = '' try: response = requests.get(address + requeststring) data = response.json() return data; except: retur...
24.733333
91
0.6469
f7bc3a5f8b308dd77db4975186ab22e1195b0f81
11,636
py
Python
pollination_sdk/models/dag_array_output_alias.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
2
2020-01-30T23:28:59.000Z
2020-05-06T16:43:47.000Z
pollination_sdk/models/dag_array_output_alias.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
1
2020-10-02T18:00:25.000Z
2020-10-02T18:00:25.000Z
pollination_sdk/models/dag_array_output_alias.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ pollination-server Pollination Server OpenAPI Definition # noqa: E501 The version of the OpenAPI document: 0.16.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from pollination_sdk.configu...
32.963173
216
0.618855
f7bc61bc5f23d798e9ad68c5fe876b28b2050ee8
26,740
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/operations/_proximity_placement_groups_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/v2021_07_01/operations/_proximity_placement_groups_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/operations/_proximity_placement_groups_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 ...
42.444444
208
0.687547
f7bc856f6d9e48531bd71675e03c37f2efb25557
3,877
py
Python
utilities/dal.py
Yogev911/sms-service
18e5c6ba55d354ea59bc0eceed31a0e01ecb5ebb
[ "MIT" ]
null
null
null
utilities/dal.py
Yogev911/sms-service
18e5c6ba55d354ea59bc0eceed31a0e01ecb5ebb
[ "MIT" ]
null
null
null
utilities/dal.py
Yogev911/sms-service
18e5c6ba55d354ea59bc0eceed31a0e01ecb5ebb
[ "MIT" ]
null
null
null
import pymysql.cursors import conf class DbClient(object): def __init__(self): self.connection = None self.connection = pymysql.connect(host=conf.DB_HOST, user=conf.DB_USER, password=conf.DB_PASSWORD, ...
37.640777
112
0.537529
f7bc9b0156e3f005cd8db8d9602a8d9578c1c165
7,041
py
Python
peewee_migrate/cli.py
RedNu11/peewee_migrate2
f35ec40bc57088461a43aa5910dc9d85df83b662
[ "BSD-3-Clause" ]
18
2019-12-18T09:12:13.000Z
2022-01-25T15:34:33.000Z
peewee_migrate/cli.py
RedNu11/peewee_migrate2
f35ec40bc57088461a43aa5910dc9d85df83b662
[ "BSD-3-Clause" ]
27
2020-01-20T07:28:21.000Z
2022-03-18T06:10:42.000Z
peewee_migrate/cli.py
RedNu11/peewee_migrate2
f35ec40bc57088461a43aa5910dc9d85df83b662
[ "BSD-3-Clause" ]
8
2020-02-12T15:16:48.000Z
2021-10-18T18:40:19.000Z
""" CLI integration. """ import datetime import os import re import sys import click from playhouse.db_url import connect from peewee_migrate.compat import string_types VERBOSE = ['WARNING', 'INFO', 'DEBUG', 'NOTSET'] CLEAN_RE = re.compile(r'\s+$', re.M) def get_router(directory, database, schema=None, verbose=0)...
37.057895
96
0.664536
f7bcb207eb23ae7431fc4ba8d5c3656f795814b1
3,538
py
Python
auxiliary/diffihistogram_wrap.py
yanlinqian/Temporal-Color-Constancy
ebd363962fa8ae0908252cabaf97355da3da8a80
[ "MIT" ]
8
2020-09-04T08:55:41.000Z
2021-07-16T01:51:57.000Z
auxiliary/diffihistogram_wrap.py
yanlinqian/Temporal-Color-Constancy
ebd363962fa8ae0908252cabaf97355da3da8a80
[ "MIT" ]
3
2021-11-04T02:35:09.000Z
2021-11-24T12:37:28.000Z
auxiliary/diffihistogram_wrap.py
yanlinqian/Temporal-Color-Constancy
ebd363962fa8ae0908252cabaf97355da3da8a80
[ "MIT" ]
1
2020-10-15T13:20:42.000Z
2020-10-15T13:20:42.000Z
import torch import torch.nn as nn import time,datetime import torch.nn.functional as F import numpy as np class Histogram2D_wrap(nn.Module): def __init__(self, bins=100, min=0, max=1, norm=True, cuda=False): super(Histogram2D_wrap, self).__init__() self.bins, self.min, self.max, self.norm=bins,min...
34.686275
111
0.576314
f7bcbc5a7fffc3aee4354cab869a8853d648abe9
1,347
py
Python
hstfakestar.py
koconnor4/hstphot
04ec83fc6dce056bd6153e407446e1be4dff3923
[ "BSD-3-Clause" ]
null
null
null
hstfakestar.py
koconnor4/hstphot
04ec83fc6dce056bd6153e407446e1be4dff3923
[ "BSD-3-Clause" ]
null
null
null
hstfakestar.py
koconnor4/hstphot
04ec83fc6dce056bd6153e407446e1be4dff3923
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'rodney' from hstphot import radec2xy from astropy.io import fits as pyfits import numpy as np from PythonPhot.photfunctions import rdpsfmodel from PythonPhot.photfunctions import addtoimarray def addtofits(fitsin, fitsout, psfmodelfile, position, fluxscale, coordsys='xy', verbose=False): ...
31.325581
78
0.678545
f7bcc62fbcf534f58020558dad6bd5cee46db27e
5,719
py
Python
api_app/tests_ma/test_services/test_schema_service.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
api_app/tests_ma/test_services/test_schema_service.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
api_app/tests_ma/test_services/test_schema_service.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
import pytest from mock import patch, call import services.schema_service @patch('services.schema_service.read_schema') @patch('services.schema_service.enrich_template') def test_enrich_workspace_template_enriches_with_workspace_defaults_and_aad(enrich_template_mock, read_schema_mock, basic_resource_template): w...
42.051471
149
0.706067
f7bccb316ede711e819bd0992feee77fc964fc58
72,684
py
Python
spyder/plugins/explorer/widgets/explorer.py
Nicztin/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
1
2019-09-25T15:08:24.000Z
2019-09-25T15:08:24.000Z
spyder/plugins/explorer/widgets/explorer.py
jorgeps86/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
null
null
null
spyder/plugins/explorer/widgets/explorer.py
jorgeps86/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """Files and Directories Explorer""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 from __future__ im...
41.157418
82
0.542637
f7bccd82ac10cd67cd5aea2e99a9cfa35ca1e495
6,394
py
Python
examples/NeuroML/ABCD.py
singular-value/MDF
227216ffb2c9beea8539829b0b891196787d33ee
[ "Apache-2.0" ]
null
null
null
examples/NeuroML/ABCD.py
singular-value/MDF
227216ffb2c9beea8539829b0b891196787d33ee
[ "Apache-2.0" ]
null
null
null
examples/NeuroML/ABCD.py
singular-value/MDF
227216ffb2c9beea8539829b0b891196787d33ee
[ "Apache-2.0" ]
null
null
null
from neuromllite import Network, Cell, Population, Synapse, RectangularRegion, RandomLayout from neuromllite import Projection, RandomConnectivity, OneToOneConnector, Simulation, InputSource, Input from neuromllite.NetworkGenerator import check_to_generate_or_run import sys def generate(): dt = 100 # ms, so 0....
38.751515
105
0.477635
f7bd01cead42bc8de3e4c4d3caeffb5cc21df7cc
969
py
Python
datar/stats/verbs.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
110
2021-03-09T04:10:40.000Z
2022-03-13T10:28:20.000Z
datar/stats/verbs.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
54
2021-06-20T18:53:44.000Z
2022-03-29T22:13:07.000Z
datar/stats/verbs.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
11
2021-06-18T03:03:14.000Z
2022-02-25T11:48:26.000Z
"""Verbs ported from r-stats""" from typing import Iterable from pandas import DataFrame, isna from pipda import register_verb from ..core.defaults import NA_REPR from ..core.grouped import DataFrameGroupBy @register_verb(DataFrame) def set_names(obj: DataFrame, names: Iterable[str]) -> DataFrame: """Set names ...
31.258065
71
0.712074
f7bd05322fe9ef2b0f41dfaf91c46abbfc9cdf86
1,097
py
Python
blueprints/dev-utils/_unix/m4/m4.py
juergenhoetzel/craft
9d3fe6dc07f2307e8f8212c8981b980a9d2d28fd
[ "BSD-2-Clause" ]
null
null
null
blueprints/dev-utils/_unix/m4/m4.py
juergenhoetzel/craft
9d3fe6dc07f2307e8f8212c8981b980a9d2d28fd
[ "BSD-2-Clause" ]
null
null
null
blueprints/dev-utils/_unix/m4/m4.py
juergenhoetzel/craft
9d3fe6dc07f2307e8f8212c8981b980a9d2d28fd
[ "BSD-2-Clause" ]
null
null
null
import info class subinfo( info.infoclass ): def setTargets( self ): for ver in ["1.4.18"]: self.targets[ ver ] = f"https://ftp.gnu.org/gnu/m4/m4-{ver}.tar.xz" self.targetInstSrc[ ver ] = f"m4-{ver}" self.targetInstallPath[ver] = "dev-utils" self.targetDigests[...
43.88
141
0.671832
f7bd493a4a6b9c29c45be6e230287ac9d5505f79
5,661
py
Python
links/tests.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
null
null
null
links/tests.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
1
2022-02-17T20:28:19.000Z
2022-02-17T20:28:19.000Z
links/tests.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
null
null
null
from django.contrib.admin.sites import AdminSite from django.contrib.auth.models import User from django.contrib.messages.storage.fallback import FallbackStorage from django.http import HttpResponse, HttpResponseRedirect from django.test import TestCase, RequestFactory, override_settings, SimpleTestCase from django.url...
39.587413
111
0.671613
f7bd84caaf5caf81cc85783c488cd1ed11fae71b
26,346
py
Python
source/galyleo/galyleo_table.py
engageLively/galyleo-user-docs
3e6711c417e4b92a58eb88c01456f30e2a342382
[ "BSD-3-Clause" ]
null
null
null
source/galyleo/galyleo_table.py
engageLively/galyleo-user-docs
3e6711c417e4b92a58eb88c01456f30e2a342382
[ "BSD-3-Clause" ]
null
null
null
source/galyleo/galyleo_table.py
engageLively/galyleo-user-docs
3e6711c417e4b92a58eb88c01456f30e2a342382
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License # Copyright (c) 2019-2021, engageLively # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this # ...
45.581315
684
0.65137
f7bd86a9828ae93541f359ed0db3d076b65bf31c
907
py
Python
01-Lesson-Plans/04-Pandas/3/Activities/03-Stu_Partner_Interviews/Solved/pig_latinize/Solved/pig_latin.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-04-13T07:14:34.000Z
2021-04-13T07:14:34.000Z
01-Lesson-Plans/04-Pandas/3/Activities/03-Stu_Partner_Interviews/Solved/pig_latinize/Solved/pig_latin.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
2
2021-06-02T03:14:19.000Z
2022-02-11T23:21:24.000Z
01-Lesson-Plans/04-Pandas/3/Activities/03-Stu_Partner_Interviews/Solved/pig_latinize/Solved/pig_latin.py
tatianegercina/FinTech
b40687aa362d78674e223eb15ecf14bc59f90b62
[ "ADSL" ]
1
2021-05-07T13:26:50.000Z
2021-05-07T13:26:50.000Z
def pig(string): # Use built-in method to delete common punctuation marks strip_commas = string.replace(",", "") strip_period = strip_commas.replace(".", "") strip_semi_colon = strip_period.replace(";", "") # Transform string into a list for word manipulation word_list = strip_semi_colon.split(...
30.233333
60
0.672547
f7bd8ade2cb5544c09d507b34cd38180b857ef28
22,547
py
Python
src/sardana/macroserver/msparameter.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
src/sardana/macroserver/msparameter.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
src/sardana/macroserver/msparameter.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
35.845787
86
0.595334
f7bd8b5890d4393f0342b3b071c229e4775c5c46
6,657
py
Python
lrtc_lib/active_learning/core/strategy/discriminative_representation_sampling.py
MovestaDev/low-resource-text-classification-framework
4380755a65b35265e84ecbf4b87e872d79e8f079
[ "Apache-2.0" ]
57
2020-11-18T15:13:06.000Z
2022-03-28T22:33:26.000Z
lrtc_lib/active_learning/core/strategy/discriminative_representation_sampling.py
MovestaDev/low-resource-text-classification-framework
4380755a65b35265e84ecbf4b87e872d79e8f079
[ "Apache-2.0" ]
5
2021-02-23T22:11:07.000Z
2021-12-13T00:13:48.000Z
lrtc_lib/active_learning/core/strategy/discriminative_representation_sampling.py
MovestaDev/low-resource-text-classification-framework
4380755a65b35265e84ecbf4b87e872d79e8f079
[ "Apache-2.0" ]
14
2021-02-10T08:55:27.000Z
2022-02-23T22:37:54.000Z
# (c) Copyright IBM Corporation 2020. # LICENSE: Apache License 2.0 (Apache-2.0) # http://www.apache.org/licenses/LICENSE-2.0 import numpy as np import gc import tensorflow as tf from lrtc_lib.active_learning.strategies import ActiveLearningStrategies from lrtc_lib.orchestrator import orchestrator_api from lrtc_lib...
42.948387
117
0.673426
f7bd9f12a20c37c82c39e20cde0fa813161c669c
717
py
Python
setup.py
mauabe/galileo-notebook
7877125bb6892e2a2600f383934156fec1a54067
[ "MIT" ]
1
2019-02-26T11:12:43.000Z
2019-02-26T11:12:43.000Z
setup.py
mauabe/galileo-notebook
7877125bb6892e2a2600f383934156fec1a54067
[ "MIT" ]
null
null
null
setup.py
mauabe/galileo-notebook
7877125bb6892e2a2600f383934156fec1a54067
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as readme_file: readme = readme_file.read() requirements = ["ipython>=6", "nbformat>=4", "nbconvert>=5", "request>=2"] setup( name="galileo-notebook", version="0.0.2", author="Mauricio Feldman-Abe, Jeff Hale", author_email="spamme@spep...
29.875
74
0.712692
f7bdcc00c0880554c17ba6de8a7383af11ec8065
3,281
py
Python
testing/scripts/run_telemetry_as_googletest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
testing/scripts/run_telemetry_as_googletest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
testing/scripts/run_telemetry_as_googletest.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
#!/usr/bin/env python # Copyright 2015 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. """Runs isolate bundled Telemetry unittests. This script attempts to emulate the contract of gtest-style tests invoked via recipes. Th...
31.247619
79
0.682109
f7bdd4de59f14c839958b2017135d6e04792546d
13,294
py
Python
python/odml/odml_files_generator.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/odml_files_generator.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/odml_files_generator.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
import random import time import uuid from abc import ABC, abstractmethod from os import getcwd, path import odml from odml.tools.rdf_converter import RDFReader, RDFWriter from odml.tools.odmlparser import ODMLWriter RANDOM_MAX = 1000000000 # might be collisions so better change to uuid MAX_VALUE_LIST_NUMBER = 5 MA...
33.486146
138
0.610275
f7bde64d861ea84f6a0483cdddf17127e95c800d
67
py
Python
keras_retinanet/backend/__init__.py
mj-haghighi/keras-retinanet
644c2f8da799889a2a3f6cc833478256cbe32c23
[ "Apache-2.0" ]
null
null
null
keras_retinanet/backend/__init__.py
mj-haghighi/keras-retinanet
644c2f8da799889a2a3f6cc833478256cbe32c23
[ "Apache-2.0" ]
null
null
null
keras_retinanet/backend/__init__.py
mj-haghighi/keras-retinanet
644c2f8da799889a2a3f6cc833478256cbe32c23
[ "Apache-2.0" ]
null
null
null
# from .backend import * # noqa: F401,F403 from .sbackend import *
33.5
43
0.701493
f7be5d83e5cff2f3607d1909bc7590200801889b
1,939
py
Python
src/Application/PythonScriptModule/pymodules_old/apitest/chessview/pychessview.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
1
2018-04-02T15:38:10.000Z
2018-04-02T15:38:10.000Z
src/Application/PythonScriptModule/pymodules_old/apitest/chessview/pychessview.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
null
null
null
src/Application/PythonScriptModule/pymodules_old/apitest/chessview/pychessview.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
1
2021-09-04T12:37:34.000Z
2021-09-04T12:37:34.000Z
import sys from sys import stdin, stdout import time import gtk import __builtin__, gettext, gtk.glade gettext.install("pychess", unicode=1) t = gettext.translation("pychess", fallback=True) __builtin__.__dict__["ngettext"] = t.ungettext #evilness copy-paste from pychess startup script import pychess.Main from pyche...
26.561644
95
0.662713
f7bee3ba1b867207bce8573e8c5f124a12adbd1e
3,720
py
Python
text_office/migrations/0001_initial.py
pkaczynski/django-text_office
07c52ad6f8955c11cf79e4a99e45d46c1b440345
[ "MIT" ]
null
null
null
text_office/migrations/0001_initial.py
pkaczynski/django-text_office
07c52ad6f8955c11cf79e4a99e45d46c1b440345
[ "MIT" ]
null
null
null
text_office/migrations/0001_initial.py
pkaczynski/django-text_office
07c52ad6f8955c11cf79e4a99e45d46c1b440345
[ "MIT" ]
1
2021-08-09T22:54:22.000Z
2021-08-09T22:54:22.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.12 on 2017-07-25 23:43 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import jsonfield.fields import phonenumber_field.modelfields import text_office.validators class Migration(migrations.Migration): ...
55.522388
226
0.630645
f7beee66cdaa830f2f7a58ed0a533e06c876fb77
5,280
py
Python
api_app/tests_ma/test_db/test_repositories/test_workpaces_service_repository.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
api_app/tests_ma/test_db/test_repositories/test_workpaces_service_repository.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
api_app/tests_ma/test_db/test_repositories/test_workpaces_service_repository.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
null
null
null
from mock import patch, MagicMock import pytest from db.errors import EntityDoesNotExist, ResourceIsNotDeployed from db.repositories.workspace_services import WorkspaceServiceRepository from db.repositories.operations import OperationRepository from models.domain.resource import ResourceType from models.domain.workspa...
44
193
0.832197
f7bef573044e2e79f59d0c6eed3f024c892fbc34
53
py
Python
testx.py
golemhq/webdriver-manager
0e72ef1e4c882989fd78cd50b9e46a4503e5fac5
[ "MIT" ]
5
2018-11-07T16:21:37.000Z
2021-12-09T14:24:21.000Z
testx.py
golemhq/webdriver-manager
0e72ef1e4c882989fd78cd50b9e46a4503e5fac5
[ "MIT" ]
1
2018-08-08T20:09:44.000Z
2018-11-02T03:13:34.000Z
testx.py
golemhq/webdriver-manager
0e72ef1e4c882989fd78cd50b9e46a4503e5fac5
[ "MIT" ]
2
2021-04-13T18:37:32.000Z
2022-03-01T21:15:17.000Z
import webdriver_manager webdriver_manager.update()
13.25
26
0.867925
f7bf0243b13f21b2de98373a1306e885f43cb8d2
3,428
py
Python
fiaas_skipper/deploy/bootstrap.py
rarruda/skipper
a5ed39eac102116ef49dc952d6f1f4017acaa11c
[ "Apache-2.0" ]
null
null
null
fiaas_skipper/deploy/bootstrap.py
rarruda/skipper
a5ed39eac102116ef49dc952d6f1f4017acaa11c
[ "Apache-2.0" ]
null
null
null
fiaas_skipper/deploy/bootstrap.py
rarruda/skipper
a5ed39eac102116ef49dc952d6f1f4017acaa11c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 # Copyright 2017-2019 The FIAAS 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 # # U...
36.860215
108
0.71266
f7bf396326211d9a5f5a46886e3b819067c1b716
830
py
Python
tests/test_backend_tensorflow.py
opeltre/geomstats
135d5bb6f19e29dd453c68399e04100a9e2c76bf
[ "MIT" ]
null
null
null
tests/test_backend_tensorflow.py
opeltre/geomstats
135d5bb6f19e29dd453c68399e04100a9e2c76bf
[ "MIT" ]
null
null
null
tests/test_backend_tensorflow.py
opeltre/geomstats
135d5bb6f19e29dd453c68399e04100a9e2c76bf
[ "MIT" ]
null
null
null
""" Unit tests for tensorflow backend. """ import geomstats.backend as gs import geomstats.tests @geomstats.tests.tf_only class TestBackendTensorFlow(geomstats.tests.TestCase): def test_vstack(self): import tensorflow as tf with self.test_session(): tensor_1 = tf.convert_to_tensor([[1...
27.666667
73
0.551807
f7bf533b30ed874a14e309ddad909a89ed117a79
14,092
py
Python
networking_bigswitch/tests/unit/bigswitch/test_restproxy_agent.py
mail2nsrajesh/networking-bigswitch
9a1072ebaaa25486179ff61bc1d2d6cadfb19be3
[ "Apache-2.0" ]
null
null
null
networking_bigswitch/tests/unit/bigswitch/test_restproxy_agent.py
mail2nsrajesh/networking-bigswitch
9a1072ebaaa25486179ff61bc1d2d6cadfb19be3
[ "Apache-2.0" ]
null
null
null
networking_bigswitch/tests/unit/bigswitch/test_restproxy_agent.py
mail2nsrajesh/networking-bigswitch
9a1072ebaaa25486179ff61bc1d2d6cadfb19be3
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Big Switch Networks, 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...
37.478723
78
0.642563
f7bf65abc04119ad77eb6fac3615dacf68e748f0
2,960
py
Python
InvenTree/part/templatetags/inventree_extras.py
wolffam/InvenTree
4af6b65ac3bfce132b2dfa35d221cfd7df0d761d
[ "MIT" ]
null
null
null
InvenTree/part/templatetags/inventree_extras.py
wolffam/InvenTree
4af6b65ac3bfce132b2dfa35d221cfd7df0d761d
[ "MIT" ]
null
null
null
InvenTree/part/templatetags/inventree_extras.py
wolffam/InvenTree
4af6b65ac3bfce132b2dfa35d221cfd7df0d761d
[ "MIT" ]
null
null
null
""" This module provides template tags for extra functionality over and above the built-in Django tags. """ import os from django import template from InvenTree import version, settings from InvenTree.helpers import decimal2string from common.models import InvenTreeSetting, ColorTheme register = template.Library() ...
26.666667
87
0.716892
f7bf74b7897a34fd9abd610bd4f4ec86bbc481a4
2,479
py
Python
src/data_separator.py
antonmattsson/diabetic_retinopathy
6aaa0ab3631d1cb0075d3acf2778822d62d1b532
[ "MIT" ]
null
null
null
src/data_separator.py
antonmattsson/diabetic_retinopathy
6aaa0ab3631d1cb0075d3acf2778822d62d1b532
[ "MIT" ]
null
null
null
src/data_separator.py
antonmattsson/diabetic_retinopathy
6aaa0ab3631d1cb0075d3acf2778822d62d1b532
[ "MIT" ]
null
null
null
import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from numpy.core.defchararray import add, replace # Separate the data set into test and train data # Read filenames from a text file listing all the images filenames = np.genfromtxt('../data/train_list.txt', dtype=str) # Read i...
39.983871
100
0.756353
f7bf756164aa31046260aafba08e30e39dbb2c0c
30,316
py
Python
rasa/nlu/featurizers/dense_featurizer/lm_featurizer.py
venushong667/rasa
dc0af420818e263fb4ef97c0d7f1c65e1da83bd1
[ "Apache-2.0" ]
null
null
null
rasa/nlu/featurizers/dense_featurizer/lm_featurizer.py
venushong667/rasa
dc0af420818e263fb4ef97c0d7f1c65e1da83bd1
[ "Apache-2.0" ]
null
null
null
rasa/nlu/featurizers/dense_featurizer/lm_featurizer.py
venushong667/rasa
dc0af420818e263fb4ef97c0d7f1c65e1da83bd1
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import numpy as np import logging from typing import Any, Optional, Text, List, Dict, Tuple from rasa.engine.graph import ExecutionContext, GraphComponent from rasa.engine.storage.resource import Resource from rasa.engine.storage.storage import ModelStorage from rasa.nlu.config impo...
39.117419
88
0.647447
f7bf82e9e36e1030dd16d8a94405ae429e5ad42f
8,241
py
Python
sensor.py
staiji/citywaste_korea
680f46f036e15bdfd98ddbf329f098514c9f7c8f
[ "Apache-2.0" ]
4
2021-03-17T02:40:35.000Z
2022-03-08T16:22:59.000Z
sensor.py
staiji/citywaste_korea
680f46f036e15bdfd98ddbf329f098514c9f7c8f
[ "Apache-2.0" ]
1
2021-03-22T05:13:59.000Z
2022-03-19T12:09:44.000Z
sensor.py
staiji/citywaste_korea
680f46f036e15bdfd98ddbf329f098514c9f7c8f
[ "Apache-2.0" ]
null
null
null
"""Support for getting statistical data from a city-waste system.""" import datetime from datetime import timedelta import json import logging import requests import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import CONF_MONITORED_CONDITIONS, CONF_NAME, MASS...
33.364372
136
0.574324
f7bf852d785259dd68d9588c49226505eb1c14ff
2,669
py
Python
opta/crash_reporter.py
run-x/opta
64606498334f2b1aa79f5a431465eafdf5ca5ed7
[ "Apache-2.0" ]
595
2021-05-21T22:30:48.000Z
2022-03-31T15:40:25.000Z
opta/crash_reporter.py
run-x/opta
64606498334f2b1aa79f5a431465eafdf5ca5ed7
[ "Apache-2.0" ]
463
2021-05-24T21:32:59.000Z
2022-03-31T17:12:33.000Z
opta/crash_reporter.py
run-x/opta
64606498334f2b1aa79f5a431465eafdf5ca5ed7
[ "Apache-2.0" ]
29
2021-05-21T22:27:52.000Z
2022-03-28T16:43:45.000Z
import json import os import platform import shutil from logging import DEBUG, Handler, LogRecord from typing import TYPE_CHECKING, List from opta.constants import VERSION from opta.utils import LogFormatMultiplexer, ansi_scrub, logger # from opta.core.terraform import Terraform if TYPE_CHECKING: from opta.layer ...
31.77381
68
0.643687
f7bfad173902a0b6f2d91d862bae5b0f88e238d3
800
py
Python
huobi/model/referencecurrency.py
xiaohuid/huobi_Python
ebc84b2fc560f77fd77457f36ff91906c43646e3
[ "Apache-2.0" ]
1
2020-12-28T07:04:45.000Z
2020-12-28T07:04:45.000Z
huobi/model/referencecurrency.py
xiaohuid/huobi_Python
ebc84b2fc560f77fd77457f36ff91906c43646e3
[ "Apache-2.0" ]
null
null
null
huobi/model/referencecurrency.py
xiaohuid/huobi_Python
ebc84b2fc560f77fd77457f36ff91906c43646e3
[ "Apache-2.0" ]
1
2022-03-27T10:36:04.000Z
2022-03-27T10:36:04.000Z
from huobi.model import InstrumentStatus class ReferenceCurrency: """ The Huobi supported static reference information for each currency. :member currency: currency instStatus: Instrument status chains: chain list """ def __init__(self): self.currency = "" ...
28.571429
82
0.645
f7bfd0a4af1ea0dc966fd2236766061bb2ced812
12,427
py
Python
src/compas/geometry/_transformations/rotation.py
shervinazadi/compas
a3f5a0dd59247b6b6cdac3f14a45f9ff414f44b3
[ "MIT" ]
2
2021-03-17T18:14:22.000Z
2021-09-19T13:50:02.000Z
src/compas/geometry/_transformations/rotation.py
shervinazadi/compas
a3f5a0dd59247b6b6cdac3f14a45f9ff414f44b3
[ "MIT" ]
null
null
null
src/compas/geometry/_transformations/rotation.py
shervinazadi/compas
a3f5a0dd59247b6b6cdac3f14a45f9ff414f44b3
[ "MIT" ]
null
null
null
""" This library for transformations partly derived and was re-implemented from the following online resources: * http://www.lfd.uci.edu/~gohlke/code/transformations.py.html * http://www.euclideanspace.com/maths/geometry/rotations/ * http://code.activestate.com/recipes/578108-determinant-of-matrix-of-any-o...
32.788918
115
0.582602
f7bfd45835e9d8148f233231b546075de05376a4
5,934
py
Python
geometry/bezier_surface.py
jnez71/misc
397ac0b8e3bccec4daa73db8963bb0510eebebfe
[ "MIT" ]
3
2017-05-12T21:52:53.000Z
2018-04-02T16:05:08.000Z
geometry/bezier_surface.py
jnez71/misc
397ac0b8e3bccec4daa73db8963bb0510eebebfe
[ "MIT" ]
null
null
null
geometry/bezier_surface.py
jnez71/misc
397ac0b8e3bccec4daa73db8963bb0510eebebfe
[ "MIT" ]
4
2017-04-13T01:06:21.000Z
2019-01-22T09:43:38.000Z
#!/usr/bin/env python3 """ Efficient implementation of a Bezier surface and its differential geometry. """ from __future__ import division import numpy as np ################################################## CORE class Bezier(object): """ Bezier manifold of dimension 2 embedded in Euclidean space of dimensi...
38.038462
94
0.578868
f7bffb8edf4db26048b8979e1972a25aaf44173c
28,411
py
Python
script-EodData.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
script-EodData.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
script-EodData.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
import csv import json import pprint import requests import time import sys import datetime as PanDateTime import os as PanOS import os.path as PanOSPath import pandas as Pan # from __future__ import print_function import yfinance as YaFin import pandas_datareader as PanDR import quandl as Qndl from yahoofinancials imp...
51.37613
156
0.691528
f7c001717af7a8185b6fd713b38c9713c67af207
9,746
py
Python
test/cut/test_padding_cut.py
freewym/lhotse
66e9bbaf25b75011388ab00189baa162c3c1d435
[ "Apache-2.0" ]
1
2021-01-05T07:33:35.000Z
2021-01-05T07:33:35.000Z
test/cut/test_padding_cut.py
freewym/lhotse
66e9bbaf25b75011388ab00189baa162c3c1d435
[ "Apache-2.0" ]
null
null
null
test/cut/test_padding_cut.py
freewym/lhotse
66e9bbaf25b75011388ab00189baa162c3c1d435
[ "Apache-2.0" ]
null
null
null
from tempfile import NamedTemporaryFile import numpy as np import pytest from lhotse.audio import AudioSource, Recording from lhotse.cut import Cut, CutSet, PaddingCut from lhotse.features import Features from lhotse.utils import EPSILON, LOG_EPSILON PADDING_ENERGY = EPSILON PADDING_LOG_ENERGY = LOG_EPSILON @pytes...
34.438163
115
0.707572
f7c043cbb40252ce242ea5fdf76a0c87629961ae
12,146
py
Python
layers/_neural.py
larsmaaloee/BIVA
e47201113d779c6ea1245875714101b2bbfcbdae
[ "MIT" ]
28
2019-10-24T10:35:43.000Z
2021-07-25T04:28:44.000Z
layers/_neural.py
larsmaaloee/BIVA
e47201113d779c6ea1245875714101b2bbfcbdae
[ "MIT" ]
null
null
null
layers/_neural.py
larsmaaloee/BIVA
e47201113d779c6ea1245875714101b2bbfcbdae
[ "MIT" ]
6
2019-10-24T11:09:58.000Z
2021-02-19T01:35:38.000Z
import tensorflow as tf import warnings def conv2d(x, dim=(32, [3, 3], [1, 1]), pad='SAME', scope="conv2d", training=True, ema=None, init=False, bias_initializer=tf.constant_initializer(0.)): num_filters, filter_size, stride = dim with tf.variable_scope(scope): V = tf.get_variable('V', shape=list(fil...
44.819188
194
0.580273
f7c04637213852c911cc233c3fc2a591ad6e6e1f
3,554
py
Python
custos-client-sdks/custos-python-sdk/custos/clients/super_tenant_management_client.py
hasithajayasundara/airavata-custos
2d341849dd8ea8a7c2efec6cc73b01dfd495352e
[ "Apache-2.0" ]
10
2019-05-21T22:42:35.000Z
2022-03-25T15:58:09.000Z
custos-client-sdks/custos-python-sdk/custos/clients/super_tenant_management_client.py
hasithajayasundara/airavata-custos
2d341849dd8ea8a7c2efec6cc73b01dfd495352e
[ "Apache-2.0" ]
83
2019-02-22T12:22:14.000Z
2022-03-30T13:42:47.000Z
custos-client-sdks/custos-python-sdk/custos/clients/super_tenant_management_client.py
hasithajayasundara/airavata-custos
2d341849dd8ea8a7c2efec6cc73b01dfd495352e
[ "Apache-2.0" ]
20
2019-02-22T08:10:05.000Z
2021-11-07T19:37:04.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...
43.876543
114
0.721722
f7c0685cac53e53758b728a3da8dd66c49089b1e
10,442
py
Python
src/FastQ2doubleIndexBAM.py
visze/MPRAflow
f2289b9399c0a816bd572ff2dae0a496fc6cc85e
[ "Apache-2.0" ]
16
2020-01-13T17:42:00.000Z
2022-03-08T18:33:12.000Z
src/FastQ2doubleIndexBAM.py
visze/MPRAflow
f2289b9399c0a816bd572ff2dae0a496fc6cc85e
[ "Apache-2.0" ]
25
2020-01-09T13:42:22.000Z
2022-02-24T11:55:29.000Z
workflow/scripts/count/FastQ2doubleIndexBAM.py
kircherlab/MPRAsnakeflow
b5e47fec40b840fce58cd32ca85b63d9a116c691
[ "MIT" ]
6
2020-01-03T14:05:30.000Z
2021-04-30T19:37:44.000Z
#!/usr/bin/env python # -*- coding: ASCII -*- """ Extract the index sequence from the middle and end of an Illumina run. Separates reads for Paired End runs. :Author: Martin Kircher :Contact: mkircher@uw.edu :Date: *06.12.2019 :Type: tool :Input: fasta, fastq :Output: BAM """ import sys import os import string tabl...
43.690377
425
0.697184
f7c09b5608ce89ef7b890566555441edad3dac45
1,160
py
Python
files/forms.py
danielchriscarter/part2-django
d4adffa3280431151bb8d1c51f0be2dbffff9dd1
[ "BSD-2-Clause" ]
null
null
null
files/forms.py
danielchriscarter/part2-django
d4adffa3280431151bb8d1c51f0be2dbffff9dd1
[ "BSD-2-Clause" ]
null
null
null
files/forms.py
danielchriscarter/part2-django
d4adffa3280431151bb8d1c51f0be2dbffff9dd1
[ "BSD-2-Clause" ]
null
null
null
from django import forms class PermissionUpdateForm(forms.Form): remove = forms.MultipleChoiceField() add = forms.CharField(required=False, label='Grant access to') def __init__(self, *args, **kwargs): users = kwargs.pop('users', ()) user_choices = [(u,u) for u in users] super().__i...
38.666667
96
0.673276
f7c0a391b1aeabb19f15a3cbdf1a1881584eea96
1,061
py
Python
benchmarks/benchmark_tensor_compression.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
11
2021-06-21T19:56:01.000Z
2021-12-22T09:06:09.000Z
benchmarks/benchmark_tensor_compression.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
null
null
null
benchmarks/benchmark_tensor_compression.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
null
null
null
import argparse import time import torch from hivemind.proto.runtime_pb2 import CompressionType from hivemind.utils.compression import serialize_torch_tensor, deserialize_torch_tensor def benchmark_compression(tensor: torch.Tensor, compression_type: CompressionType) -> float: t = time.time() deserialize_tor...
32.151515
92
0.72196
f7c0a62d97a085cf5122e0137f276dc1bba5e4c5
4,848
py
Python
yfinance_demo.py
darth-dodo/supreme-enignma
a33536c2cd1b53b094077fbe57d0ee95ff37883b
[ "MIT" ]
1
2020-08-20T06:58:34.000Z
2020-08-20T06:58:34.000Z
yfinance_demo.py
darth-dodo/supreme-enignma
a33536c2cd1b53b094077fbe57d0ee95ff37883b
[ "MIT" ]
7
2020-08-14T14:30:31.000Z
2020-08-15T21:10:30.000Z
yfinance_demo.py
darth-dodo/supreme-enignma
a33536c2cd1b53b094077fbe57d0ee95ff37883b
[ "MIT" ]
1
2021-06-03T06:46:08.000Z
2021-06-03T06:46:08.000Z
import yfinance as yf from pprint import pprint symbols = ["MSFT", "GOOG", "AAPL", "FB", "PG"] for sym in symbols: print("====================") print(sym) data = yf.Ticker(sym) pprint(data.info) print("====================") """ sample data GOOG {'52WeekChange': 0.28944457, 'SandP52WeekChange...
31.277419
80
0.660891
f7c0aa36552d745d05ef70f8330d6dee1c98b1ce
6,365
py
Python
api/test/api/responders_test/test_data/environment_configs.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
api/test/api/responders_test/test_data/environment_configs.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
api/test/api/responders_test/test_data/environment_configs.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright (c) 2017-2020 Koren Lev (Cisco Systems), # # Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others # # # ...
27.435345
79
0.583818
f7c0cd614fdd0caa9a6ae436c49e01e4c8e3f86b
1,813
py
Python
keystoneclient/__init__.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/keystoneclient/__init__.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/keystoneclient/__init__.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 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...
30.728814
80
0.750689
f7c0ed0526d55dfa2ea56e2b2d6a99648fb66ed0
3,848
py
Python
pygame_fpak/main.py
e-user/pygame-flatpak-test
0f6cc87fb1e882697a08b6f623098a58ea409e44
[ "MIT" ]
7
2017-03-06T13:41:07.000Z
2020-01-20T03:13:54.000Z
pygame_fpak/main.py
e-user/pygame-flatpak-test
0f6cc87fb1e882697a08b6f623098a58ea409e44
[ "MIT" ]
1
2017-02-27T14:03:45.000Z
2017-03-04T16:45:33.000Z
pygame_fpak/main.py
takluyver/pygame-flatpak-test
0f6cc87fb1e882697a08b6f623098a58ea409e44
[ "MIT" ]
2
2018-05-03T01:30:38.000Z
2020-08-31T14:54:24.000Z
import json from pathlib import Path import pytoml import shutil from subprocess import run, PIPE import sys def flatpak(*args): run(('flatpak',) + args, check=True) class PkgRef: def __init__(self, name, arch, branch): self.name = name self.arch = arch self.branch = branch def list_i...
35.962617
100
0.613046
f7c0fec9776a13bbfcc24ba4cfca837ebd191ce8
6,725
py
Python
mmgen/ops/stylegan3/custom_ops.py
liuhd073/mmgeneration
2e09a6b63c5f0ddee850d429c5b739ae1e0cc76d
[ "Apache-2.0" ]
null
null
null
mmgen/ops/stylegan3/custom_ops.py
liuhd073/mmgeneration
2e09a6b63c5f0ddee850d429c5b739ae1e0cc76d
[ "Apache-2.0" ]
null
null
null
mmgen/ops/stylegan3/custom_ops.py
liuhd073/mmgeneration
2e09a6b63c5f0ddee850d429c5b739ae1e0cc76d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this sof...
36.548913
112
0.602528
f7c14beb9082decd24e6c5cee214687cb5960c00
434
py
Python
recordwhat/records/timestamp.py
mrakitin/recordwhat
c68b8fca69836bdba0075726e829325f2c8918a8
[ "BSD-3-Clause" ]
1
2016-06-08T15:14:15.000Z
2016-06-08T15:14:15.000Z
recordwhat/records/timestamp.py
mrakitin/recordwhat
c68b8fca69836bdba0075726e829325f2c8918a8
[ "BSD-3-Clause" ]
12
2016-02-11T15:01:05.000Z
2019-09-23T17:28:32.000Z
recordwhat/records/timestamp.py
mrakitin/recordwhat
c68b8fca69836bdba0075726e829325f2c8918a8
[ "BSD-3-Clause" ]
4
2016-06-08T15:03:07.000Z
2019-09-23T17:05:38.000Z
from ophyd import (EpicsSignal, EpicsSignalRO) from .. import (RecordBase, _register_record_type, FieldComponent as Cpt) @_register_record_type('timestamp') class TimestampRecord(RecordBase): alarm_status = Cpt(EpicsSignalRO, '.STAT') current_raw_value = Cpt(EpicsSignal, '.RVAL') previous...
28.933333
62
0.709677
f7c156f5e44212981cf0a277a5676079dff0aa56
5,716
py
Python
nvflare/private/fed/server/info_coll_cmd.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
155
2021-08-05T18:05:09.000Z
2022-03-27T15:32:56.000Z
nvflare/private/fed/server/info_coll_cmd.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
216
2021-12-01T06:07:12.000Z
2022-03-30T23:34:02.000Z
nvflare/private/fed/server/info_coll_cmd.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
44
2021-11-24T16:03:29.000Z
2022-03-24T23:28:39.000Z
# Copyright (c) 2021-2022, NVIDIA CORPORATION. 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 ...
39.42069
91
0.645206
f7c16f0328596f2ab36b6beb26bac84610bc647b
16,785
py
Python
timematch.py
jnyborg/timematch
a652df95282de9a3fc12d2fd204f438ff4ccb122
[ "MIT" ]
2
2022-03-22T08:18:08.000Z
2022-03-29T10:31:18.000Z
timematch.py
jnyborg/timematch
a652df95282de9a3fc12d2fd204f438ff4ccb122
[ "MIT" ]
null
null
null
timematch.py
jnyborg/timematch
a652df95282de9a3fc12d2fd204f438ff4ccb122
[ "MIT" ]
null
null
null
from torch.utils.data.sampler import WeightedRandomSampler import sklearn.metrics from collections import Counter from copy import deepcopy import numpy as np import torch import torch.nn.functional as F from torch.utils import data from torchvision import transforms from tqdm import tqdm from dataset import PixelSet...
43.939791
202
0.680071
f7c1a1086ac4a2b66449492d9f5bba7f3938915c
2,431
py
Python
python-code/thirdparty/eos-demo.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
13
2018-09-07T02:29:07.000Z
2021-06-18T08:40:09.000Z
python-code/thirdparty/eos-demo.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
null
null
null
python-code/thirdparty/eos-demo.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
4
2019-06-20T00:09:39.000Z
2021-07-15T10:14:36.000Z
import eos import numpy as np def main(): """Demo for running the eos fitting from Python.""" landmarks = read_pts('D:/Develop/opensources/eos/examples\data/image_0010.pts') image_width = 1280 # Make sure to adjust these when using your own images! image_height = 1024 model = eos.morphablemodel.lo...
50.645833
121
0.699301
f7c1a9a48fbd29d1dce14cb6d7a9d838bab9f312
202
py
Python
foe_pool.py
QwerTech/foe-automation
9978cd365097a2c9ebec9039642c4e5f6c361018
[ "MIT" ]
null
null
null
foe_pool.py
QwerTech/foe-automation
9978cd365097a2c9ebec9039642c4e5f6c361018
[ "MIT" ]
3
2021-09-08T02:13:20.000Z
2022-03-12T00:36:40.000Z
foe_pool.py
QwerTech/foe-automation
9978cd365097a2c9ebec9039642c4e5f6c361018
[ "MIT" ]
null
null
null
import multiprocessing pool = None def initPool(): global pool pool = multiprocessing.Pool(int(multiprocessing.cpu_count())) def execInPool(func, params): return pool.map(func, params)
15.538462
65
0.722772
f7c1bd25a10a816bafa6f330cbbccf12a3e146be
11,575
py
Python
hdltools/abshdl/module.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
2
2020-02-28T13:02:39.000Z
2021-06-30T09:15:35.000Z
hdltools/abshdl/module.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
1
2020-03-22T17:32:45.000Z
2020-03-23T15:43:39.000Z
hdltools/abshdl/module.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
null
null
null
"""HDL Module.""" from hdltools.abshdl import HDLObject from hdltools.abshdl.builtin import HDLBuiltins from hdltools.abshdl.scope import HDLScope from hdltools.abshdl.signal import HDLSignal from hdltools.abshdl.macro import HDLMacro from hdltools.abshdl.port import HDLModulePort, HDLModuleTypedPort from hdltools.abs...
32.422969
82
0.559482
f7c1c2be04249622d664d9ac5d00c881360a7f9d
4,630
py
Python
cs-tracker/add.py
seendsouza/cs-tracker
e331f77b27f209744f1a07b6762a2ec5db44443d
[ "MIT" ]
null
null
null
cs-tracker/add.py
seendsouza/cs-tracker
e331f77b27f209744f1a07b6762a2ec5db44443d
[ "MIT" ]
null
null
null
cs-tracker/add.py
seendsouza/cs-tracker
e331f77b27f209744f1a07b6762a2ec5db44443d
[ "MIT" ]
null
null
null
""" add timestamped entries with cs count at 5 minutes for training type add new training type add new session of entries """ import os import time import json import click default_directory = str() default_filename = str() config_data = dict() path = os.path.abspath(os.path.relpath('../data/config.json')) with open...
40.614035
145
0.677754
f7c1c51f6829762488152f8d8362e242892e8497
2,116
py
Python
frigate/zmq_wrapper.py
giladnahor/frigate
a36f71d9892585515d05ce869ddf40298adaadc7
[ "MIT" ]
null
null
null
frigate/zmq_wrapper.py
giladnahor/frigate
a36f71d9892585515d05ce869ddf40298adaadc7
[ "MIT" ]
null
null
null
frigate/zmq_wrapper.py
giladnahor/frigate
a36f71d9892585515d05ce869ddf40298adaadc7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import zmq def ServerSocket(port=5556): # opens server socket and returns it # use this socekt for send recv functions # see zmq doc for more options if not isinstance(port, int): raise TypeError("port should be integer") context = zmq.Context...
29.802817
81
0.681947
f7c1c8fe0541e68b280b7a3dede0de29f0fe8a11
4,446
py
Python
setup.py
albertyw/thriftrw-python
22f6ab645f5af48cae2fee0dc1431dfacb971348
[ "MIT" ]
40
2016-02-18T18:01:23.000Z
2022-03-31T10:34:33.000Z
setup.py
albertyw/thriftrw-python
22f6ab645f5af48cae2fee0dc1431dfacb971348
[ "MIT" ]
56
2016-02-10T16:51:07.000Z
2020-02-07T05:28:49.000Z
setup.py
albertyw/thriftrw-python
22f6ab645f5af48cae2fee0dc1431dfacb971348
[ "MIT" ]
12
2016-03-29T17:29:28.000Z
2021-10-30T14:36:39.000Z
#!/usr/bin/env python import os import re from setuptools import setup from setuptools import find_packages from setuptools.command.sdist import sdist as _sdist from setuptools.extension import Extension as _Extension cmdclass = {} ext_modules = [] cython_modules = [ 'thriftrw._buffer', 'thriftrw._cython', ...
26.783133
78
0.618084
f7c1cdc9fa4b249c689c53e9c2e33a1ca1208801
10,888
py
Python
python_modules/libraries/dagster-mlflow/dagster_mlflow/resources.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-mlflow/dagster_mlflow/resources.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-mlflow/dagster_mlflow/resources.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
""" This module contains the mlflow resource provided by the MlFlow class. This resource provides an easy way to configure mlflow for logging various things from dagster runs. """ import atexit import sys from itertools import islice from os import environ from typing import Any, Optional import mlflow from mlflow.ent...
37.67474
100
0.618846
f7c1eca7e365f998949b2a66933731d02ba9c143
35,009
py
Python
ForgeWiki/forgewiki/wiki_main.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
null
null
null
ForgeWiki/forgewiki/wiki_main.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
null
null
null
ForgeWiki/forgewiki/wiki_main.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (t...
37.603652
124
0.599189
f7c2016a80078e99a7e4a4c9f3cb1c5e20621bb0
980
py
Python
flexget/plugins/output/mock_output.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/plugins/output/mock_output.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/output/mock_output.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import logging from flexget import plugin from flexget.event import event log = logging.getLogger('mock_output') class MockOutput(object): """ Debugging plugin which...
29.69697
111
0.7
f7c20fa3c4f05a8924a46938ac36d7f617be63ac
9,145
py
Python
socialregistration/tests.py
nypublicradio/legacy-publisher-django-socialregistration
181f75d152f553f77fa899dac895c4276108204f
[ "MIT" ]
63
2015-01-27T16:52:03.000Z
2021-08-29T04:23:51.000Z
socialregistration/tests.py
nypublicradio/legacy-publisher-django-socialregistration
181f75d152f553f77fa899dac895c4276108204f
[ "MIT" ]
3
2016-05-26T07:46:53.000Z
2022-02-16T15:25:16.000Z
socialregistration/tests.py
nypublicradio/legacy-publisher-django-socialregistration
181f75d152f553f77fa899dac895c4276108204f
[ "MIT" ]
23
2015-02-02T13:33:46.000Z
2020-10-25T20:02:53.000Z
from django import template from django.conf import settings from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.test import TestCase from oauth2 import Client from socialregistration.signals import login, connect import mock import urllib import urlparse class Template...
33.621324
110
0.647348
f7c2506e77a3a4987204ff865cb16f24551bca21
265
py
Python
pni_customization/pni_customization/doctype/slitting_table/slitting_table.py
DaizyModi/pni_customization
577946e91c8fe956ca64c089327ce18174002ec4
[ "MIT" ]
null
null
null
pni_customization/pni_customization/doctype/slitting_table/slitting_table.py
DaizyModi/pni_customization
577946e91c8fe956ca64c089327ce18174002ec4
[ "MIT" ]
null
null
null
pni_customization/pni_customization/doctype/slitting_table/slitting_table.py
DaizyModi/pni_customization
577946e91c8fe956ca64c089327ce18174002ec4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Jigar Tarpara and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class SlittingTable(Document): pass
24.090909
52
0.777358
f7c2581f2eb7d8b29aea22ff4dea20b06fc27682
639
py
Python
DealData/__init__.py
yaoMYZ/ROP
08418e43deefeacfe32da86a2bcc8f94c0105c7c
[ "Apache-2.0" ]
null
null
null
DealData/__init__.py
yaoMYZ/ROP
08418e43deefeacfe32da86a2bcc8f94c0105c7c
[ "Apache-2.0" ]
null
null
null
DealData/__init__.py
yaoMYZ/ROP
08418e43deefeacfe32da86a2bcc8f94c0105c7c
[ "Apache-2.0" ]
null
null
null
from DealData.FileOperation import FileOperation import numpy as np def test(): a=np.random.uniform(0,1,size=10) b = np.random.uniform(0, 1, size=10) print(a) print(b) print(np.corrcoef(a,b)) print(cal_corrcoef(a,b)) pass def cal_corrcoef(X,Y): # 均值 Xmean = np.mean(X) Ymean = np...
19.363636
48
0.58216
f7c282b6db3cf699ab11e416b23c13c05bd0745b
1,856
py
Python
detection/RetinaFaceAntiCov/test.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
12,377
2017-12-04T02:46:57.000Z
2022-03-31T16:48:31.000Z
detection/RetinaFaceAntiCov/test.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
1,851
2017-12-05T05:41:23.000Z
2022-03-30T13:06:22.000Z
detection/RetinaFaceAntiCov/test.py
dwhite54/insightface
ea172e4921c3960c0684404afff6d0d862447eae
[ "MIT" ]
4,198
2017-12-05T02:57:19.000Z
2022-03-30T10:29:37.000Z
import cv2 import sys import numpy as np import datetime import os import glob from retinaface_cov import RetinaFaceCoV thresh = 0.8 mask_thresh = 0.2 scales = [640, 1080] count = 1 gpuid = 0 #detector = RetinaFaceCoV('./model/mnet_cov1', 0, gpuid, 'net3') detector = RetinaFaceCoV('./model/mnet_cov2', 0, gpuid, 'net...
27.701493
76
0.595366
f7c285c4f83f99753ec5791d6f50aa954e9d9fd6
22,169
py
Python
radiomics/shape.py
drmaxchen/pyradio
f2e46856425cfb233d29d391199bfb9b85824b06
[ "BSD-3-Clause" ]
null
null
null
radiomics/shape.py
drmaxchen/pyradio
f2e46856425cfb233d29d391199bfb9b85824b06
[ "BSD-3-Clause" ]
null
null
null
radiomics/shape.py
drmaxchen/pyradio
f2e46856425cfb233d29d391199bfb9b85824b06
[ "BSD-3-Clause" ]
null
null
null
import numpy import SimpleITK as sitk from radiomics import base, cShape, deprecated class RadiomicsShape(base.RadiomicsFeaturesBase): r""" In this group of features we included descriptors of the three-dimensional size and shape of the ROI. These features are independent from the gray level intensity distribu...
43.554028
128
0.538049
f7c28b6730b23d6fbf09de3ad94da08efc329964
4,902
py
Python
chapps/tests/test_switchboard/conftest.py
easydns/chapps
3bb54e795de1f91c6cf749f9aeb16b1211584809
[ "MIT" ]
1
2022-03-23T13:36:43.000Z
2022-03-23T13:36:43.000Z
chapps/tests/test_switchboard/conftest.py
easydns/chapps
3bb54e795de1f91c6cf749f9aeb16b1211584809
[ "MIT" ]
2
2022-02-25T18:12:15.000Z
2022-03-07T22:32:13.000Z
chapps/tests/test_switchboard/conftest.py
easydns/chapps
3bb54e795de1f91c6cf749f9aeb16b1211584809
[ "MIT" ]
null
null
null
"""fixtures for testing chapps.switchboard""" from unittest.mock import Mock, AsyncMock import pytest from chapps.policy import ( GreylistingPolicy, SenderDomainAuthPolicy, OutboundQuotaPolicy, ) from chapps.signals import CallableExhausted from chapps.tests.conftest import ErrorAfter, _unique_instance fro...
26.786885
78
0.690126