hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
ef845444931a8d201a2d23d00770e4b8ba6b041c
3,788
py
Python
criterion_core/utils/augmentation.py
criterion-ai/criterion_core
51298d3d3ff80bf9f4c85adf6a9b40742b0f0d06
[ "Apache-2.0" ]
null
null
null
criterion_core/utils/augmentation.py
criterion-ai/criterion_core
51298d3d3ff80bf9f4c85adf6a9b40742b0f0d06
[ "Apache-2.0" ]
2
2019-04-17T22:38:57.000Z
2019-06-01T11:49:54.000Z
criterion_core/utils/augmentation.py
criterion-ai/criterion_core
51298d3d3ff80bf9f4c85adf6a9b40742b0f0d06
[ "Apache-2.0" ]
1
2019-04-17T23:13:49.000Z
2019-04-17T23:13:49.000Z
import imgaug.augmenters as ia import criterion_core.utils.vue_schema_utils as schema from criterion_core.utils import image_proc def augmentation_schema(enable=True, vertical_translation=0, horizontal_translation=0, scaling=0, rotation=5, shear=0, flipl=False, flipr=False, color_correct=Fals...
42.088889
120
0.68453
04feef2f149b236fc5287f89a39c72522701893b
252
py
Python
cdn_static_website/settings/components/database.py
soulraven/cdn_small
e2415b39089cb761ddfe1748e443abd9c4080e83
[ "MIT" ]
null
null
null
cdn_static_website/settings/components/database.py
soulraven/cdn_small
e2415b39089cb761ddfe1748e443abd9c4080e83
[ "MIT" ]
null
null
null
cdn_static_website/settings/components/database.py
soulraven/cdn_small
e2415b39089cb761ddfe1748e443abd9c4080e83
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os from cdn_static_website.settings.components import BASE_DIR, config DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR.joinpath('db.sqlite3').as_posix(), } }
19.384615
67
0.634921
80df0c9602c2d50a625c10176f3532a1235649c0
10,615
py
Python
sdk/python/pulumi_azure_native/network/v20190701/application_security_group.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20190701/application_security_group.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20190701/application_security_group.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
65.931677
4,400
0.721997
d5f47e7d14bbec0acb2951b0a7aeba1b11c97f9c
8,301
py
Python
docs/conf.py
drnextgis/django-storages
8321ff511f786169a507efd84d24de377ee992bf
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
drnextgis/django-storages
8321ff511f786169a507efd84d24de377ee992bf
[ "BSD-3-Clause" ]
1
2020-03-27T01:21:37.000Z
2020-04-01T21:17:45.000Z
docs/conf.py
pozotron/django-storages
fc983bab8ab51d692470969f3337e2acfe7f65ca
[ "BSD-3-Clause" ]
1
2021-05-05T23:56:35.000Z
2021-05-05T23:56:35.000Z
# django-storages documentation build configuration file, created by # sphinx-quickstart on Sun Aug 28 13:44:45 2011. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration val...
32.425781
80
0.719311
bf0565940dcfb779a31e53444130b012fb965514
2,172
py
Python
main/plugins/trackers/Lostfilm_tv.py
akkaorig/pyMediaManager
bd67c2c034afe869e8083d871e93aaef9c4bd888
[ "MIT" ]
1
2020-06-02T05:22:26.000Z
2020-06-02T05:22:26.000Z
main/plugins/trackers/Lostfilm_tv.py
akkaorig/pyMediaManager
bd67c2c034afe869e8083d871e93aaef9c4bd888
[ "MIT" ]
1
2021-06-10T18:50:06.000Z
2021-06-10T18:50:06.000Z
main/plugins/trackers/Lostfilm_tv.py
akkaorig/pyMediaManager
bd67c2c034afe869e8083d871e93aaef9c4bd888
[ "MIT" ]
3
2020-04-10T13:21:50.000Z
2021-07-29T01:08:38.000Z
import requests from bs4 import BeautifulSoup from dateparser import parse def params(key): plugin_params = { # Разрешение для работы без авторизации 'parsing': True, 'torrent_dw': False, # Наличие возможность скачать по магнет-ссылки 'magnet_dw': False, # This name...
32.41791
108
0.625691
e1859f485ed387a060308753db23c6e0932212f3
23,647
py
Python
python_modules/libraries/dagster-k8s/dagster_k8s_tests/unit_tests/test_client.py
chasleslr/dagster
88907f9473fb8e7a9b1af9a0a8b349d42f4b8153
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-k8s/dagster_k8s_tests/unit_tests/test_client.py
chasleslr/dagster
88907f9473fb8e7a9b1af9a0a8b349d42f4b8153
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-k8s/dagster_k8s_tests/unit_tests/test_client.py
chasleslr/dagster
88907f9473fb8e7a9b1af9a0a8b349d42f4b8153
[ "Apache-2.0" ]
null
null
null
import time from collections import namedtuple import kubernetes import pytest from dagster.seven import mock from dagster_k8s.client import ( DagsterK8sAPIRetryLimitExceeded, DagsterK8sError, DagsterK8sUnrecoverableAPIError, DagsterKubernetesClient, KubernetesWaitingReasons, WaitForPodState, )...
32.797503
100
0.725039
b64f74e318aee974c3e67e45fe19913af4c29330
28,471
py
Python
datadog_checks_base/tests/base/checks/openmetrics/test_options.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
663
2016-08-23T05:23:45.000Z
2022-03-29T00:37:23.000Z
datadog_checks_base/tests/base/checks/openmetrics/test_options.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
6,642
2016-06-09T16:29:20.000Z
2022-03-31T22:24:09.000Z
datadog_checks_base/tests/base/checks/openmetrics/test_options.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
1,222
2017-01-27T15:51:38.000Z
2022-03-31T18:17:51.000Z
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import pytest from datadog_checks.base.constants import ServiceCheck from datadog_checks.dev.testing import requires_py3 from .utils import get_check pytestmark = [requires_py3, pytest.mark.openmetrics,...
40.384397
119
0.623125
ae012d543670a7ed165161031ac68eb5a24bb85f
80,547
py
Python
labelImg.py
retail-intelligence/labelImg
b1e5a81f0446aeb47fd1017fc99fa7bacff21561
[ "MIT" ]
null
null
null
labelImg.py
retail-intelligence/labelImg
b1e5a81f0446aeb47fd1017fc99fa7bacff21561
[ "MIT" ]
null
null
null
labelImg.py
retail-intelligence/labelImg
b1e5a81f0446aeb47fd1017fc99fa7bacff21561
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import codecs import distutils.spawn import os.path import platform import re import sys import subprocess import configparser from typing import DefaultDict from numpy.lib.npyio import save import pandas as pd from functools import partial from collections...
40.313814
142
0.607633
f858294f977ad40410a29b50dcbfea5c4c8088d8
946
py
Python
app/ptz/utils.py
DoriHp/PTZ-controller
35c3e067216d6855913618fc8f233f07572fb127
[ "Apache-2.0" ]
null
null
null
app/ptz/utils.py
DoriHp/PTZ-controller
35c3e067216d6855913618fc8f233f07572fb127
[ "Apache-2.0" ]
null
null
null
app/ptz/utils.py
DoriHp/PTZ-controller
35c3e067216d6855913618fc8f233f07572fb127
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Bao # @Date: 2021-08-10 13:34:04 # @Last Modified by: Bao # @Last Modified time: 2021-08-18 14:38:51 import os import sys __all__ = ["e_verbose"] def e_verbose(e, logger=None, prefix=""): """ Get more details about the exception Args: - e: catched...
31.533333
86
0.604651
5698920d41973d7734c5cab024b64b0e55d13284
76,614
py
Python
supervisor/options.py
Jimdo/supervisor
0f675c934beb6c72a0192efe4f0dc8646d88a34a
[ "ZPL-2.1" ]
1
2016-02-18T20:39:12.000Z
2016-02-18T20:39:12.000Z
supervisor/options.py
Jimdo/supervisor
0f675c934beb6c72a0192efe4f0dc8646d88a34a
[ "ZPL-2.1" ]
null
null
null
supervisor/options.py
Jimdo/supervisor
0f675c934beb6c72a0192efe4f0dc8646d88a34a
[ "ZPL-2.1" ]
null
null
null
import ConfigParser import socket import getopt import os import sys import tempfile import errno import signal import re import xmlrpclib import pwd import grp import resource import stat import pkg_resources import select import glob import platform import warnings from fcntl import fcntl from fcntl import F_SETFL, ...
37.871478
94
0.571762
00ab8f9c3968a51699fc3dd3edd2d11f88c40111
217
py
Python
2016-12-03/pipe.py
awesome-archive/mp
e904c7c858fe5df5859f6282e5d4906a96abd6e5
[ "Apache-2.0" ]
90
2016-11-29T07:21:58.000Z
2022-03-29T06:41:01.000Z
2016-12-03/pipe.py
awesome-archive/mp
e904c7c858fe5df5859f6282e5d4906a96abd6e5
[ "Apache-2.0" ]
1
2020-01-19T10:03:12.000Z
2020-01-19T10:03:12.000Z
2016-12-03/pipe.py
awesome-archive/mp
e904c7c858fe5df5859f6282e5d4906a96abd6e5
[ "Apache-2.0" ]
34
2016-12-07T09:26:34.000Z
2020-09-14T01:57:11.000Z
from multiprocessing import Process, Pipe def f(conn): conn.send(Pipe()) conn.close() parent_conn, child_conn = Pipe() p = Process(target=f, args=(child_conn,)) p.start() print parent_conn.recv() p.join()
15.5
41
0.691244
11caf3af96da1990e1332ebcb9301d97c74aec87
18,102
py
Python
manager/src/homeComponnents.py
robertocarlosmedina/voterpy
3d1294c1cd2b28cf3a0a2c67d936b04837e68952
[ "MIT" ]
3
2021-04-08T10:31:11.000Z
2021-04-09T14:26:14.000Z
manager/src/homeComponnents.py
rehanganapathy/voterpy
3d1294c1cd2b28cf3a0a2c67d936b04837e68952
[ "MIT" ]
1
2021-04-09T00:43:36.000Z
2021-04-09T00:43:36.000Z
manager/src/homeComponnents.py
rehanganapathy/voterpy
3d1294c1cd2b28cf3a0a2c67d936b04837e68952
[ "MIT" ]
1
2021-04-09T14:27:44.000Z
2021-04-09T14:27:44.000Z
import pygame from support.client import Client from support.inputBoxs import drawInputBoxs, verifyInput from support.buttons import verticalButtonsDisplay from support.color import Color import math # Class data will facilitade the iteration whit the program and the server's data'bases class ObjectRepresentation: ...
51.57265
161
0.559165
e74662c13226fc143b7daba8d4213bfa5df2fe10
11,067
py
Python
galaxy/accounts/tests/test_custom_user_model.py
SamyCoenen/galaxy
7c17ef45e53b0fc2fe8a2c70a99f3947604e0b0e
[ "Apache-2.0" ]
null
null
null
galaxy/accounts/tests/test_custom_user_model.py
SamyCoenen/galaxy
7c17ef45e53b0fc2fe8a2c70a99f3947604e0b0e
[ "Apache-2.0" ]
null
null
null
galaxy/accounts/tests/test_custom_user_model.py
SamyCoenen/galaxy
7c17ef45e53b0fc2fe8a2c70a99f3947604e0b0e
[ "Apache-2.0" ]
null
null
null
# (c) 2012-2018, Ansible # This file is part of Ansible Galaxy # # Ansible Galaxy is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by # the Apache Software Foundation, either version 2 of the License, or # (at your option) any later version. # # Ansible Gal...
31.087079
75
0.594922
3a0469dbb868062e3d27716334e16efbedd608c3
8,078
py
Python
site-packages/neutronclient/common/utils.py
hariza17/freezer_libraries
e0bd890eba5e7438976fb3b4d66c41c128bab790
[ "PSF-2.0" ]
null
null
null
site-packages/neutronclient/common/utils.py
hariza17/freezer_libraries
e0bd890eba5e7438976fb3b4d66c41c128bab790
[ "PSF-2.0" ]
null
null
null
site-packages/neutronclient/common/utils.py
hariza17/freezer_libraries
e0bd890eba5e7438976fb3b4d66c41c128bab790
[ "PSF-2.0" ]
null
null
null
# Copyright 2011, VMware, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
33.799163
78
0.605224
2fd10dc82f26c3bcb247d865753a10c2e13e62cb
9,189
py
Python
crossword_generator.py
Axelwickm/CLI-Crossword-Generator
a5ae45425817528f262e8f94163973704da1be4b
[ "MIT" ]
1
2020-08-15T08:37:16.000Z
2020-08-15T08:37:16.000Z
crossword_generator.py
Axelwickm/CLI-Crossword-Generator
a5ae45425817528f262e8f94163973704da1be4b
[ "MIT" ]
null
null
null
crossword_generator.py
Axelwickm/CLI-Crossword-Generator
a5ae45425817528f262e8f94163973704da1be4b
[ "MIT" ]
null
null
null
import curses from curses import wrapper import os import time os.environ.setdefault('ESCDELAY', '25') dict_dict = {} # What dictionary to use dictionary_path = "dictionaries/sv_wikidict.txt" def load_dict(path): # Load dictionary from file _words = [] with open(path, "r") as file: for line in f...
34.41573
104
0.46708
eaf728aa801aaf02468fd88aef1072c2a22d915e
7,111
py
Python
homeassistant/components/plugwise/config_flow.py
EuleMitKeule/core
3af54d96c7dcc3f7087d1196e6ab0db029301ee7
[ "Apache-2.0" ]
3
2022-02-18T14:03:39.000Z
2022-03-26T20:26:55.000Z
homeassistant/components/plugwise/config_flow.py
EuleMitKeule/core
3af54d96c7dcc3f7087d1196e6ab0db029301ee7
[ "Apache-2.0" ]
61
2020-12-18T07:13:13.000Z
2022-03-27T18:11:09.000Z
homeassistant/components/plugwise/config_flow.py
EuleMitKeule/core
3af54d96c7dcc3f7087d1196e6ab0db029301ee7
[ "Apache-2.0" ]
2
2020-06-06T21:55:32.000Z
2022-03-06T04:18:21.000Z
"""Config flow for Plugwise integration.""" from __future__ import annotations import logging from plugwise.exceptions import InvalidAuthentication, PlugwiseException from plugwise.smile import Smile import voluptuous as vol from homeassistant import config_entries, core, exceptions from homeassistant.components imp...
31.052402
107
0.664885
cae7fc5c710d3e8c65834a09576065f35d4f3a1b
11,583
py
Python
google/cloud/appengine_admin_v1/services/authorized_domains/transports/grpc_asyncio.py
parthea/python-appengine-admin
b23b075ae60fb5b7452e9c996b0febdeea81c50e
[ "Apache-2.0" ]
null
null
null
google/cloud/appengine_admin_v1/services/authorized_domains/transports/grpc_asyncio.py
parthea/python-appengine-admin
b23b075ae60fb5b7452e9c996b0febdeea81c50e
[ "Apache-2.0" ]
null
null
null
google/cloud/appengine_admin_v1/services/authorized_domains/transports/grpc_asyncio.py
parthea/python-appengine-admin
b23b075ae60fb5b7452e9c996b0febdeea81c50e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 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 o...
44.209924
90
0.642234
a3ce47795979b0eec00a2d68b0cdadc2848557c9
8,091
py
Python
trio/tests/test_wait_for_object.py
JefffHofffman/trio
d8631117ce4ca19017bbe3850704dd5ce6cfaeb1
[ "Apache-2.0", "MIT" ]
null
null
null
trio/tests/test_wait_for_object.py
JefffHofffman/trio
d8631117ce4ca19017bbe3850704dd5ce6cfaeb1
[ "Apache-2.0", "MIT" ]
null
null
null
trio/tests/test_wait_for_object.py
JefffHofffman/trio
d8631117ce4ca19017bbe3850704dd5ce6cfaeb1
[ "Apache-2.0", "MIT" ]
null
null
null
import os import pytest on_windows = (os.name == "nt") # Mark all the tests in this file as being windows-only pytestmark = pytest.mark.skipif(not on_windows, reason="windows only") from .._core.tests.tutil import slow from .. import _core from .. import _timeouts if on_windows: from .._core._windows_cffi import...
36.945205
88
0.714992
bf32c37e84261923e491ff0f45a61eb3192ca30b
32,705
py
Python
pysurvival/models/multi_task.py
fmhoward/pysurvival
3fea55f09477e9f0844845e09d6ea60434436e2e
[ "Apache-2.0" ]
null
null
null
pysurvival/models/multi_task.py
fmhoward/pysurvival
3fea55f09477e9f0844845e09d6ea60434436e2e
[ "Apache-2.0" ]
null
null
null
pysurvival/models/multi_task.py
fmhoward/pysurvival
3fea55f09477e9f0844845e09d6ea60434436e2e
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import import torch import numpy as np import copy import multiprocessing from pysurvival import HAS_GPU from pysurvival import utils from pysurvival.utils import neural_networks as nn from pysurvival.utils import optimization as opt from pysurvival.models import BaseModel # %...
38.296253
101
0.556673
93113c3bb07a9bb58b2002f156779333797f7e4c
461
py
Python
accounts/migrations/0002_auto_20170301_1823.py
pyladieshre/pyladies
5cbea02a48ac64b1194d6329c5bc55183142f2ab
[ "MIT" ]
1
2020-10-19T17:25:40.000Z
2020-10-19T17:25:40.000Z
accounts/migrations/0002_auto_20170301_1823.py
pyladieshre/pyladies
5cbea02a48ac64b1194d6329c5bc55183142f2ab
[ "MIT" ]
3
2017-01-22T17:36:36.000Z
2017-03-07T09:24:21.000Z
accounts/migrations/0002_auto_20170301_1823.py
herambchaudhari4121/pyladies
5cbea02a48ac64b1194d6329c5bc55183142f2ab
[ "MIT" ]
9
2017-01-21T11:16:04.000Z
2020-10-19T04:14:34.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-03-01 16:23 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.RemoveField( mo...
20.043478
48
0.585683
286f552fd3062fc87686eefb2500c5946c4ffc1f
772
py
Python
setup.py
kanedo/checkout_code
3d638dc1a09ae0d017dc0c8872876d231c09f65b
[ "MIT" ]
3
2018-07-12T08:59:44.000Z
2020-03-31T10:10:48.000Z
setup.py
kanedo/checkout_code
3d638dc1a09ae0d017dc0c8872876d231c09f65b
[ "MIT" ]
1
2019-02-07T17:07:29.000Z
2019-02-08T09:50:11.000Z
setup.py
kanedo/checkout_code
3d638dc1a09ae0d017dc0c8872876d231c09f65b
[ "MIT" ]
2
2019-04-06T19:08:40.000Z
2020-04-01T11:28:37.000Z
from setuptools import setup import pathlib # The directory containing this file HERE = pathlib.Path(__file__).parent # The text of the README file README = (HERE / "README.md").read_text() setup(name='checkout_code', version='0.5', description='Tool to checkout a specific commit to a unique location', ...
26.62069
76
0.665803
190d00d744a0cbe716c82cf1293e0cd8f9cf8bf1
10,067
py
Python
test/functional/rpc_net.py
joynicoferna/carpinchocoin
987284642d94e26c2b3b884c14846068d124a24a
[ "MIT" ]
null
null
null
test/functional/rpc_net.py
joynicoferna/carpinchocoin
987284642d94e26c2b3b884c14846068d124a24a
[ "MIT" ]
null
null
null
test/functional/rpc_net.py
joynicoferna/carpinchocoin
987284642d94e26c2b3b884c14846068d124a24a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test RPC calls related to net. Tests correspond to code in rpc/net.cpp. """ from decimal import Decim...
45.552036
152
0.669117
63c2a1620bdb7f2f5a73df80588e73d529d35e0f
821
py
Python
tests/integration/client/syndic.py
jkur/salt
3e62675550f9869d550d7787800270e632955d2f
[ "Apache-2.0" ]
2
2015-11-07T12:05:15.000Z
2018-10-29T13:21:06.000Z
tests/integration/client/syndic.py
jkur/salt
3e62675550f9869d550d7787800270e632955d2f
[ "Apache-2.0" ]
null
null
null
tests/integration/client/syndic.py
jkur/salt
3e62675550f9869d550d7787800270e632955d2f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Import Python libs from __future__ import absolute_import # Import Salt Testing libs from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import salt libs import integration class TestSyndic(integration.SyndicCase): ''' Validate the syndic interface by t...
20.525
60
0.552984
7e27c9ae038ed58750a5f98e6ef5da2829ae497a
490
py
Python
python-new-trunk/Crypto/Util/__init__.py
raychorn/svn_molten-magma
8aa2ff2340707eecae6514943e86f5afba9cd54a
[ "CC0-1.0" ]
null
null
null
python-new-trunk/Crypto/Util/__init__.py
raychorn/svn_molten-magma
8aa2ff2340707eecae6514943e86f5afba9cd54a
[ "CC0-1.0" ]
null
null
null
python-new-trunk/Crypto/Util/__init__.py
raychorn/svn_molten-magma
8aa2ff2340707eecae6514943e86f5afba9cd54a
[ "CC0-1.0" ]
null
null
null
"""Miscellaneous modules Contains useful modules that don't belong into any of the other Crypto.* subpackages. Crypto.Util.number Number-theoretic functions (primality testing, etc.) Crypto.Util.randpool Random number generation Crypto.Util.RFC1751 Converts between 128-bit keys and human-readable ...
28.823529
78
0.695918
59323454815bd39e04c5f78d0edcf0fe930b4b0f
1,691
py
Python
metall0id/root/cmdclient.py
mwrlabs/mercury-modules
e1d057a91db3d440126a43ae108bbc1e172a27c6
[ "BSD-Source-Code" ]
13
2015-01-08T13:37:39.000Z
2018-11-25T07:38:10.000Z
metall0id/root/cmdclient.py
mwrlabs/mercury-modules
e1d057a91db3d440126a43ae108bbc1e172a27c6
[ "BSD-Source-Code" ]
null
null
null
metall0id/root/cmdclient.py
mwrlabs/mercury-modules
e1d057a91db3d440126a43ae108bbc1e172a27c6
[ "BSD-Source-Code" ]
3
2020-03-21T03:13:07.000Z
2021-06-01T03:29:33.000Z
from mwr.droidhg.modules import common, Module class CmdClient(Module, common.Vulnerability, common.Shell, common.FileSystem, common.ClassLoader): name = "Obtain a root shell on an Acer Iconia and various Motorola devices." description = """Exploit the setuid-root binary at /system/bin/cmdclient on certai...
42.275
215
0.619752
11e12b29017758ec2ea6f67a3169801af64d8fb3
2,235
py
Python
capture-positives.py
SkUrRiEr/pi-face-following-cam
6c7fd969194d6a911d767334af705d17336b3987
[ "MIT" ]
null
null
null
capture-positives.py
SkUrRiEr/pi-face-following-cam
6c7fd969194d6a911d767334af705d17336b3987
[ "MIT" ]
null
null
null
capture-positives.py
SkUrRiEr/pi-face-following-cam
6c7fd969194d6a911d767334af705d17336b3987
[ "MIT" ]
null
null
null
"""Raspberry Pi Face Recognition Treasure Box Positive Image Capture Script Copyright 2013 Tony DiCola Run this script to capture positive images for training the face recognizer. """ import glob import os import sys import select import cv2 import config import face # Prefix for positive training image filenames...
31.928571
142
0.717226
c32f8c7abbeb19fdf0634b8bd15f3cbe2b763fd5
7,689
py
Python
src/py/qlslibs/utils.py
irinabov/debian-qpid-tools
bf23b550044c8c839ff4a02bc77f3d17172c3925
[ "Apache-2.0" ]
null
null
null
src/py/qlslibs/utils.py
irinabov/debian-qpid-tools
bf23b550044c8c839ff4a02bc77f3d17172c3925
[ "Apache-2.0" ]
null
null
null
src/py/qlslibs/utils.py
irinabov/debian-qpid-tools
bf23b550044c8c839ff4a02bc77f3d17172c3925
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
37.144928
118
0.696319
481a8e1dbcd023228e5efdb85340c3fbb81f2704
1,906
py
Python
machine_learning/k_nearest_neighbours.py
czuo0303/Python
4b71e2647b38f146e795a645957b311905c6c33f
[ "MIT" ]
7
2020-03-29T08:20:07.000Z
2022-03-19T06:41:19.000Z
machine_learning/k_nearest_neighbours.py
Mathewsmusukuma/Python
4866b1330bc7c77c0ed0e050e6b99efdeb026448
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
machine_learning/k_nearest_neighbours.py
Mathewsmusukuma/Python
4866b1330bc7c77c0ed0e050e6b99efdeb026448
[ "MIT" ]
6
2020-05-31T20:40:50.000Z
2021-12-23T04:52:15.000Z
import numpy as np from collections import Counter from sklearn import datasets from sklearn.model_selection import train_test_split data = datasets.load_iris() X = np.array(data["data"]) y = np.array(data["target"]) classes = data["target_names"] X_train, X_test, y_train, y_test = train_test_split(X, y) def eucli...
32.862069
80
0.654774
14119ecd90b343f90c057b0a04a5e13a65941039
4,352
py
Python
src/fetchers/freqProfileFetcher.py
nagasudhirpulla/wrldc_mis_weekly_report_generator
ad3462c647a53aeafc5cb4df3393350b922469e8
[ "MIT" ]
null
null
null
src/fetchers/freqProfileFetcher.py
nagasudhirpulla/wrldc_mis_weekly_report_generator
ad3462c647a53aeafc5cb4df3393350b922469e8
[ "MIT" ]
7
2020-09-18T11:37:36.000Z
2020-09-26T12:29:30.000Z
src/fetchers/freqProfileFetcher.py
nagasudhirpulla/wrldc_mis_weekly_report_generator
ad3462c647a53aeafc5cb4df3393350b922469e8
[ "MIT" ]
3
2020-09-19T07:28:40.000Z
2020-09-25T05:49:15.000Z
import cx_Oracle import pandas as pd import datetime as dt from typing import List, Tuple from src.typeDefs.dayFreqProfile import IDayFreqProfile from src.typeDefs.freqProfileData import IFreqProfile from src.appLogger import getAppLogger class FrequencyProfileFetcher(): """This class fetches derived frequency fo...
40.296296
108
0.57284
634af5504d4ce6e280259cac6f5003c54bfb61ed
587
py
Python
app/migrations/0002_dblinkall.py
JKing-8/APITest
23a7034c809a9087754e22e637692dc1b9c7a232
[ "Apache-2.0" ]
1
2021-08-19T07:57:04.000Z
2021-08-19T07:57:04.000Z
app/migrations/0002_dblinkall.py
JKing-8/APITest
23a7034c809a9087754e22e637692dc1b9c7a232
[ "Apache-2.0" ]
null
null
null
app/migrations/0002_dblinkall.py
JKing-8/APITest
23a7034c809a9087754e22e637692dc1b9c7a232
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-26 02:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0001_initial'), ] operations = [ migrations.CreateModel( name='DBLinkAll', fields=[ ('id', mo...
26.681818
117
0.574106
e285672eb0c45e0896a5a0fa07889471ea3ac7c8
1,437
py
Python
src/assignments/assignment10/main.py
acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino
c2ee6a9914383716347765f148d2d15b9e3211b7
[ "MIT" ]
null
null
null
src/assignments/assignment10/main.py
acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino
c2ee6a9914383716347765f148d2d15b9e3211b7
[ "MIT" ]
1
2018-02-03T03:41:28.000Z
2018-02-03T03:41:28.000Z
src/assignments/assignment10/main.py
acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino
c2ee6a9914383716347765f148d2d15b9e3211b7
[ "MIT" ]
1
2018-04-13T01:17:50.000Z
2018-04-13T01:17:50.000Z
#Write import statements for classes invoice and invoice_item and PRODUCT from src.assignments.assignment10.invoice import Invoice from src.assignments.assignment10.invoice_item import InvoiceItem from src.assignments.assignment10.product import Product from src.assignments.assignment10.customer import Customer impor...
26.611111
95
0.765484
ca4d99076fc85d5b20a6f8b5943381e9105a87f5
7,622
py
Python
tests/test_basic.py
HathorNetwork/python-hathorlib
2b534de8e4c6e15a30db2d681636338cf4c1718b
[ "Apache-2.0" ]
null
null
null
tests/test_basic.py
HathorNetwork/python-hathorlib
2b534de8e4c6e15a30db2d681636338cf4c1718b
[ "Apache-2.0" ]
1
2021-08-23T13:28:28.000Z
2021-09-14T18:58:03.000Z
tests/test_basic.py
HathorNetwork/python-hathorlib
2b534de8e4c6e15a30db2d681636338cf4c1718b
[ "Apache-2.0" ]
2
2021-08-24T14:15:29.000Z
2022-02-08T21:36:11.000Z
""" Copyright (c) Hathor Labs and its affiliates. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """ import unittest from hathorlib import Block, TokenCreationTransaction, Transaction from hathorlib.base_transaction import tx_or_block_from_byte...
52.565517
118
0.692338
a011c7e65dfc039cf51950a00513a6ac74b43eca
8,428
py
Python
playground1.py
cjdjr/cosp_nas
f54243176e8398d79df25d295704f24238f24cc7
[ "MIT" ]
3
2021-12-09T18:59:40.000Z
2021-12-09T19:00:08.000Z
playground1.py
cjdjr/cosp_nas
f54243176e8398d79df25d295704f24238f24cc7
[ "MIT" ]
null
null
null
playground1.py
cjdjr/cosp_nas
f54243176e8398d79df25d295704f24238f24cc7
[ "MIT" ]
null
null
null
import os import time import glob import numpy as np import pickle import torch import logging import argparse import torch import random import json import pprint as pp from torch.nn import DataParallel from torch.utils.data import DataLoader from torch.autograd import Variable import torch.optim as optim from tensorb...
40.912621
123
0.686996
9a37f1f62df045712a4a65d8794c786d72a78c38
799
py
Python
main/forms/category.py
anngle/t923
078d2c566c77afa2ca1be7663d3c23c9f0ecddac
[ "BSD-3-Clause" ]
1
2021-11-28T05:46:45.000Z
2021-11-28T05:46:45.000Z
main/forms/category.py
anngle/t923
078d2c566c77afa2ca1be7663d3c23c9f0ecddac
[ "BSD-3-Clause" ]
null
null
null
main/forms/category.py
anngle/t923
078d2c566c77afa2ca1be7663d3c23c9f0ecddac
[ "BSD-3-Clause" ]
null
null
null
#coding=utf-8 from flask_wtf import Form from flask_wtf import FlaskForm from wtforms import validators from wtforms import StringField,IntegerField,BooleanField from wtforms.validators import DataRequired class CategoryForm(FlaskForm): """产品分类表单.""" name = StringField('分类名称:', validators=[DataRequired()],ren...
30.730769
95
0.677096
10e126ea0eeedcd52dc0becbc489f94b0922ee30
4,080
py
Python
py/desispec/qa/qa_prod.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
24
2015-09-29T06:06:29.000Z
2022-01-14T07:31:45.000Z
py/desispec/qa/qa_prod.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
1,452
2015-02-26T00:14:23.000Z
2022-03-31T23:35:10.000Z
py/desispec/qa/qa_prod.py
echaussidon/desispec
8a8bd59653861509dd630ffc8e1cd6c67f6cdd51
[ "BSD-3-Clause" ]
25
2015-02-06T21:39:13.000Z
2022-02-22T14:16:31.000Z
""" Class to organize QA for a full DESI production run """ from __future__ import print_function, absolute_import, division import numpy as np import glob, os import warnings from desispec.io import get_exposures from desispec.io import get_files from desispec.io import specprod_root from desispec.io import get_nig...
34.576271
97
0.605637
9f9c8203c3ddd8658b48a58b58042721f2762cf4
572
py
Python
users/migrations/0002_auto_20200624_0045.py
sb-git-cloud/covid-support-tool
511f39507f5e4f66824fc859c152badf8bda8037
[ "MIT" ]
null
null
null
users/migrations/0002_auto_20200624_0045.py
sb-git-cloud/covid-support-tool
511f39507f5e4f66824fc859c152badf8bda8037
[ "MIT" ]
null
null
null
users/migrations/0002_auto_20200624_0045.py
sb-git-cloud/covid-support-tool
511f39507f5e4f66824fc859c152badf8bda8037
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-24 00:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AddField( model_name='account', name='givenName', f...
23.833333
76
0.58042
c5d279e45a029ec32d1cf2152fa80dd000c1e56b
1,223
py
Python
context/optparse.py
ShoaibIN/cloudsec
daaf8ab9235ddc0d968fe0332109d4120a2e312d
[ "MIT" ]
null
null
null
context/optparse.py
ShoaibIN/cloudsec
daaf8ab9235ddc0d968fe0332109d4120a2e312d
[ "MIT" ]
null
null
null
context/optparse.py
ShoaibIN/cloudsec
daaf8ab9235ddc0d968fe0332109d4120a2e312d
[ "MIT" ]
2
2020-12-03T08:49:06.000Z
2020-12-05T11:12:59.000Z
import argparse def parser(): parser = argparse.ArgumentParser(description='CloudSec Encryption of files done by hybrid cryptography.') subparser = parser.add_subparsers(dest="subparser_name",help="Cloudsec Modes") parsera = subparser.add_parser('encrypt',help="Used in Encryption | cloudsec encrypt --help"...
67.944444
128
0.730989
812e82ca4f3951f165309054be244f13368161e9
9,191
py
Python
intersight/models/storage_remote_key_setting.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
intersight/models/storage_remote_key_setting.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
intersight/models/storage_remote_key_setting.py
ategaw-cisco/intersight-python
9d6476620507281b1dc358e29ac452d56081bbb0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-262 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class StorageRemoteKeySetting(object): """ NOTE: Th...
31.476027
204
0.626265
4a6d9de749104041c9bc0ae09baa88cb20dde7fc
1,509
py
Python
git_project_updater_business/scanners/maven_scanner.py
Slidem/git-project-updater
2d0e91fab26f6c5e7cf5c92c9f0ee78925fb33b5
[ "MIT" ]
null
null
null
git_project_updater_business/scanners/maven_scanner.py
Slidem/git-project-updater
2d0e91fab26f6c5e7cf5c92c9f0ee78925fb33b5
[ "MIT" ]
null
null
null
git_project_updater_business/scanners/maven_scanner.py
Slidem/git-project-updater
2d0e91fab26f6c5e7cf5c92c9f0ee78925fb33b5
[ "MIT" ]
null
null
null
from git_project_updater_business.scanners.project_scanner import ProjectScanner from git_project_updater_business.scanners.converter.maven.pom_to_project_converter import PomToProjectConverter from pathlib import Path import os class MavenProjectsScanner(ProjectScanner): def __init__(self): pass de...
38.692308
112
0.689198
b45b30f61b14f631a8a25f8d854b587becb9688a
535
py
Python
tests/__init__.py
gohar94/azure-functions-python-worker
4322e53ddbcc1eea40c1b061b42653336d9003f6
[ "MIT" ]
277
2018-01-25T23:13:03.000Z
2022-02-22T06:12:04.000Z
tests/__init__.py
gohar94/azure-functions-python-worker
4322e53ddbcc1eea40c1b061b42653336d9003f6
[ "MIT" ]
731
2018-01-18T18:54:38.000Z
2022-03-29T00:01:46.000Z
tests/__init__.py
YunchuWang/azure-functions-python-worker
1f23e038a506c6412e4efbf07eb471a6afab0c2a
[ "MIT" ]
109
2018-01-18T02:22:57.000Z
2022-02-15T18:59:54.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """Bootstrap for '$ python setup.py test' command.""" import os.path import sys import unittest import unittest.runner def suite(): test_loader = unittest.TestLoader() test_suite = test_loader.discover( os.p...
24.318182
59
0.714019
4a82328fbe3646ed81827cd9c8178a1f00de373e
585
py
Python
Python3/230.kth-smallest-element-in-a-bst.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/230.kth-smallest-element-in-a-bst.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
Python3/230.kth-smallest-element-in-a-bst.py
610yilingliu/leetcode
30d071b3685c2131bd3462ba77c6c05114f3f227
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=230 lang=python3 # # [230] Kth Smallest Element in a BST # # @lc code=start # Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def kthSmallest(self, root: TreeNode, k): ...
18.28125
45
0.579487
7504d73972393402ebde6f20b493527517c69e66
4,723
py
Python
feagen/bundling.py
ianlini/feagen
21188b3f57305f21621c994de7bc05c001470559
[ "BSD-2-Clause" ]
36
2016-10-19T12:51:43.000Z
2019-11-26T07:10:31.000Z
feagen/bundling.py
candy02058912/feagen
b9713cc2929417d226b67f7087bf006039d4b2f5
[ "BSD-2-Clause" ]
30
2016-11-08T04:15:41.000Z
2020-03-26T03:13:34.000Z
feagen/bundling.py
candy02058912/feagen
b9713cc2929417d226b67f7087bf006039d4b2f5
[ "BSD-2-Clause" ]
5
2016-12-09T03:20:48.000Z
2019-09-30T10:25:46.000Z
import os from past.builtins import basestring import numpy as np import pandas as pd import h5py import six from bistiming import IterTimer, SimpleTimer def get_data_keys_from_structure(structure): data_keys = [] def _get_data_keys_from_structure(structure): if isinstance(structure, basestring): ...
41.069565
79
0.559178
fed3fe287e542d79b3756879c32f959662a1522e
899
py
Python
main/libpeas/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
null
null
null
main/libpeas/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
null
null
null
main/libpeas/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
null
null
null
pkgname = "libpeas" pkgver = "1.32.0" pkgrel = 0 build_style = "meson" configure_args = ["-Ddemos=false", "-Dvapi=true"] make_check_wrapper = ["xvfb-run"] hostmakedepends = [ "meson", "pkgconf", "glib-devel", "gettext-tiny", "vala", "gobject-introspection", "python" ] makedepends = [ "libglib-devel", "pytho...
32.107143
75
0.701891
96538cece5a8d492668beea205e12b9378ffc3d4
6,914
py
Python
example/Arty/fpga/tb/fpga_core/test_fpga_core.py
fdarling/verilog-ethernet
3c58dce4ce2d2e0919d6a7a1c66e7a3a87ed1e6e
[ "MIT" ]
null
null
null
example/Arty/fpga/tb/fpga_core/test_fpga_core.py
fdarling/verilog-ethernet
3c58dce4ce2d2e0919d6a7a1c66e7a3a87ed1e6e
[ "MIT" ]
null
null
null
example/Arty/fpga/tb/fpga_core/test_fpga_core.py
fdarling/verilog-ethernet
3c58dce4ce2d2e0919d6a7a1c66e7a3a87ed1e6e
[ "MIT" ]
null
null
null
""" Copyright (c) 2020 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute...
32.460094
83
0.665751
0753123fd107c2b1520a3055d6e54924ff7dcf13
4,816
py
Python
src/airthingswave-mqtt/airthingswave.py
renemarc/airthingswave-mqtt
8ab9eb0339ef58f99ed8da70c242c70803fe0acb
[ "MIT" ]
13
2018-07-13T16:07:10.000Z
2021-11-29T14:02:08.000Z
src/airthingswave-mqtt/airthingswave.py
renemarc/airthingswave-mqtt
8ab9eb0339ef58f99ed8da70c242c70803fe0acb
[ "MIT" ]
5
2018-11-02T23:18:40.000Z
2021-07-30T07:21:12.000Z
src/airthingswave-mqtt/airthingswave.py
renemarc/airthingswave-mqtt
8ab9eb0339ef58f99ed8da70c242c70803fe0acb
[ "MIT" ]
11
2018-07-22T03:30:47.000Z
2021-07-27T03:31:16.000Z
# # Portions of this code from https://airthings.com/raspberry-pi/ which is itself # released under an MIT license with the following terms: # # Copyright (c) 2018 Airthings AS # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documen...
39.47541
115
0.611503
134eac63c2b6eb3e4b17fa5659ae44f7e8e7e0cb
13,071
py
Python
tests/jaxpr_effects_test.py
oliverdutton/jax
b7f04a9c617698194d71fa31b434b191c5dc6a9e
[ "Apache-2.0" ]
null
null
null
tests/jaxpr_effects_test.py
oliverdutton/jax
b7f04a9c617698194d71fa31b434b191c5dc6a9e
[ "Apache-2.0" ]
null
null
null
tests/jaxpr_effects_test.py
oliverdutton/jax
b7f04a9c617698194d71fa31b434b191c5dc6a9e
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.270335
88
0.686635
29bcf1aa2e51c992ed9c0d69aa7bb9366c9d1c42
8,940
py
Python
tools/nni_cmd/config_schema.py
xumeng723/nni
f47ce0d0adc0f4cd5e3dd2e0f382f646cac03d0e
[ "MIT" ]
3
2019-01-27T02:00:46.000Z
2019-01-27T02:07:04.000Z
tools/nni_cmd/config_schema.py
xumeng723/nni
f47ce0d0adc0f4cd5e3dd2e0f382f646cac03d0e
[ "MIT" ]
null
null
null
tools/nni_cmd/config_schema.py
xumeng723/nni
f47ce0d0adc0f4cd5e3dd2e0f382f646cac03d0e
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, # to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, # including without limitation the rights t...
33.735849
134
0.571477
0e8d9be19deb0957ece6a4a1bdf35c2a7f6a86d0
15,268
py
Python
nipyapi/nifi/models/controller_service_referencing_component_dto.py
oneextrafact/nipyapi
4c184d69002a8ee3ac528fda63b2ffcc6cedbae5
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/models/controller_service_referencing_component_dto.py
oneextrafact/nipyapi
4c184d69002a8ee3ac528fda63b2ffcc6cedbae5
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/models/controller_service_referencing_component_dto.py
oneextrafact/nipyapi
4c184d69002a8ee3ac528fda63b2ffcc6cedbae5
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ NiFi Rest Api The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
34.7
479
0.652607
f71a2e67d16d278f046fedc42260f77f54a931dc
2,802
py
Python
vplexapi-7.0.0.0/vplexapi/models/rule_set.py
lhernand3z/python-vplex
0f94723fd56c7a3a85c4afb3b78046b9c66b93e4
[ "Apache-2.0" ]
null
null
null
vplexapi-7.0.0.0/vplexapi/models/rule_set.py
lhernand3z/python-vplex
0f94723fd56c7a3a85c4afb3b78046b9c66b93e4
[ "Apache-2.0" ]
null
null
null
vplexapi-7.0.0.0/vplexapi/models/rule_set.py
lhernand3z/python-vplex
0f94723fd56c7a3a85c4afb3b78046b9c66b93e4
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ VPlex REST API A definition for the next-gen VPlex API # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class RuleSet(object): """NOTE: This class is auto gen...
24.79646
80
0.533904
198cc7cb26d4a75fafd96444e2be4c3debf0d1e3
8,198
py
Python
kubernetes/client/models/v1beta1_certificate_signing_request_spec.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta1_certificate_signing_request_spec.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta1_certificate_signing_request_spec.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.12.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
30.362963
197
0.597097
94b8b9a5dc52ee36cf7405d5e24678c3a86dc707
1,363
py
Python
azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings_py3.py
bgsky/azure-sdk-for-python
ec18d0b25be10fddbde416b901b905dfb0896430
[ "MIT" ]
null
null
null
azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings_py3.py
bgsky/azure-sdk-for-python
ec18d0b25be10fddbde416b901b905dfb0896430
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings_py3.py
bgsky/azure-sdk-for-python
ec18d0b25be10fddbde416b901b905dfb0896430
[ "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 ...
38.942857
96
0.639032
d1f6de9b14fe8cd9911d158543193f2fc8f19720
1,762
py
Python
examples/1909.11088/plot_production/cosl.py
celis/B_decays_clustering-
d73739edaf7fa82a0041d9567d27cd490232b75c
[ "MIT" ]
9
2019-03-27T12:32:24.000Z
2021-10-19T10:18:33.000Z
examples/1909.11088/plot_production/cosl.py
celis/B_decays_clustering-
d73739edaf7fa82a0041d9567d27cd490232b75c
[ "MIT" ]
30
2019-03-26T18:32:39.000Z
2019-09-24T06:54:28.000Z
examples/1909.11088/plot_production/cosl.py
celis/B_decays_clustering-
d73739edaf7fa82a0041d9567d27cd490232b75c
[ "MIT" ]
2
2019-08-08T09:42:38.000Z
2019-12-29T22:47:05.000Z
#!/usr/bin/env python3 # std from pathlib import Path # 3rd import matplotlib.pyplot as plt import matplotlib # ours import clusterking as ck from clusterking.maths.metric import chi2_metric # Plot style matplotlib.use("Agg") plt.rcParams.update({"text.latex.preamble": [r"\usepackage{amsmath}"]}) plt.rc("xtick", *...
26.298507
80
0.708286
635eb8350e844ab3cf2ba529639693e678c61fa3
10,572
py
Python
mne/io/ctf/ctf.py
DraganaMana/mne-python
83d48ec9e93bc176ae7fb8d000521ba3bd6b4c3c
[ "BSD-3-Clause" ]
1
2020-11-05T21:30:15.000Z
2020-11-05T21:30:15.000Z
mne/io/ctf/ctf.py
DraganaMana/mne-python
83d48ec9e93bc176ae7fb8d000521ba3bd6b4c3c
[ "BSD-3-Clause" ]
1
2020-10-29T19:55:08.000Z
2020-10-29T19:55:08.000Z
mne/io/ctf/ctf.py
DraganaMana/mne-python
83d48ec9e93bc176ae7fb8d000521ba3bd6b4c3c
[ "BSD-3-Clause" ]
1
2020-01-07T03:16:59.000Z
2020-01-07T03:16:59.000Z
"""Conversion tool from CTF to FIF.""" # Author: Eric Larson <larson.eric.d<gmail.com> # # License: BSD (3-clause) import os from os import path as op import numpy as np from ...utils import verbose, logger, _clean_names from ..base import BaseRaw from ..utils import _mult_cal_one, _blk_read_lims from .res4 impor...
41.786561
79
0.58759
4a552b8eb5ed055119f31fc25e01800d776e2afa
3,527
py
Python
frontend/widgets/connection.py
ludica-squamata/BehaviourTreeEditor_v2
65ca608f7086cd2b4f0cc1eab7b714959b312b94
[ "MIT" ]
null
null
null
frontend/widgets/connection.py
ludica-squamata/BehaviourTreeEditor_v2
65ca608f7086cd2b4f0cc1eab7b714959b312b94
[ "MIT" ]
null
null
null
frontend/widgets/connection.py
ludica-squamata/BehaviourTreeEditor_v2
65ca608f7086cd2b4f0cc1eab7b714959b312b94
[ "MIT" ]
null
null
null
from frontend.globals import COLOR_CONNECTION, WidgetHandler, Renderer, COLOR_UNSELECTED, COLOR_SELECTED, WIDTH, HEIGHT from pygame import Surface, SRCALPHA, draw, BLEND_MAX, BLEND_MIN from backend.eventhandler import EventHandler from .basewidget import BaseWidget class Connection(BaseWidget): handles = N...
33.590476
120
0.60533
544d105a2dc7ef754fc762ad175cf0e4e5794d11
3,916
py
Python
train.py
votnhan/VAE_BRATS2018
3d4ddf52f5bd4b59f3b0563dfb4e8ba8f6e1684d
[ "MIT" ]
11
2020-03-10T06:00:48.000Z
2021-10-14T03:18:14.000Z
train.py
sneh-debug/VAE_BRATS2018
3d4ddf52f5bd4b59f3b0563dfb4e8ba8f6e1684d
[ "MIT" ]
null
null
null
train.py
sneh-debug/VAE_BRATS2018
3d4ddf52f5bd4b59f3b0563dfb4e8ba8f6e1684d
[ "MIT" ]
5
2020-03-10T06:00:51.000Z
2021-07-21T16:12:33.000Z
import os from data import open_data_file from generator import get_training_and_validation_generators from model import build_model from training import load_old_model, train_model config = dict() config["image_shape"] = (128, 128, 128) # This determines what shape the images will be cropped/resampled to. config["la...
46.619048
124
0.742084
c2d30f7c7cfde310cbf223050a624cc336a3e5f6
1,504
py
Python
week2/multiMaximumDigitSum.py
A1fus/programmingWithPython
6b81a3818e54f365dc4e44b610670ac96093555a
[ "Apache-2.0" ]
null
null
null
week2/multiMaximumDigitSum.py
A1fus/programmingWithPython
6b81a3818e54f365dc4e44b610670ac96093555a
[ "Apache-2.0" ]
1
2019-11-06T23:20:00.000Z
2019-11-12T12:31:14.000Z
week2/multiMaximumDigitSum.py
A1fus/programmingWithPython
6b81a3818e54f365dc4e44b610670ac96093555a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Loads a natural number (a non-negative integer) n and then loads n integers. The program has to print the sum of the maximum digits of all the loaded numbers. If a number has multiple maximum digits, they are all added. """ #%% Variables nat = -1 natDigit = 0 digitSum = 0 lastDigit = -1 s ...
29.490196
219
0.668883
399f47ad16bc4fb7fea9dcfbf9a14e0ae3a5eb66
3,615
py
Python
catkin_ws/src/f4-devel/kinematics/include/kinematics/test_kinematics.py
DiegoOrtegoP/Software
4a07dd2dab29db910ca2e26848fa6b53b7ab00cd
[ "CC-BY-2.0" ]
12
2016-04-14T12:21:46.000Z
2021-06-18T07:51:40.000Z
catkin_ws/src/f4-devel/kinematics/include/kinematics/test_kinematics.py
DiegoOrtegoP/Software
4a07dd2dab29db910ca2e26848fa6b53b7ab00cd
[ "CC-BY-2.0" ]
14
2017-03-03T23:33:05.000Z
2018-04-03T18:07:53.000Z
catkin_ws/src/f4-devel/kinematics/include/kinematics/test_kinematics.py
DiegoOrtegoP/Software
4a07dd2dab29db910ca2e26848fa6b53b7ab00cd
[ "CC-BY-2.0" ]
113
2016-05-03T06:11:42.000Z
2019-06-01T14:37:38.000Z
#!/usr/bin/env python __author__ = 'jpazis' from numpy import * import csv from Linear_learner import Linear_learner from Forward_kinematics import Forward_kinematics from Inverse_kinematics import Inverse_kinematics #self.theta_dot_weights = genfromtxt(theta_dot_weights_file) #self.v_weights = genfromtxt(v_weights_...
42.529412
132
0.744398
c745f755c54aca55bb0a93defa20fa96deefd909
444
py
Python
blog/migrations/0001_initial.py
fweidemann14/testing-heroku-deployment
842b5872ecdaa2c32e595d7720d776266446459f
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
fweidemann14/testing-heroku-deployment
842b5872ecdaa2c32e595d7720d776266446459f
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
fweidemann14/testing-heroku-deployment
842b5872ecdaa2c32e595d7720d776266446459f
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2018-01-12 11:04 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Test', fields=[ ('id', models.AutoField(prima...
20.181818
76
0.554054
9d1f0a3da7ea72ea6c3992740ae6a64f2106b4e2
1,266
py
Python
trade_utilities/daily_return.py
bkarjoo/pysim
5d4e6ae337cac5b588a98ed33807e97677e36922
[ "MIT" ]
null
null
null
trade_utilities/daily_return.py
bkarjoo/pysim
5d4e6ae337cac5b588a98ed33807e97677e36922
[ "MIT" ]
null
null
null
trade_utilities/daily_return.py
bkarjoo/pysim
5d4e6ae337cac5b588a98ed33807e97677e36922
[ "MIT" ]
null
null
null
from kibot.kibot_downloader import get_close class DailyReturn(object): def __init__(self): self.previous_date = None self.today_date = None self.transactions = [] def reset(self, previous_date, today_date, positions): self.previous_date = previous_date self.today_date...
32.461538
63
0.666667
94a98fff59b582b3c55f7152eedc4fdd35e300d3
5,124
py
Python
corehq/apps/fixtures/upload/workbook.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/fixtures/upload/workbook.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/fixtures/upload/workbook.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from django.utils.translation import ugettext as _ from corehq.apps.fixtures.exceptions import FixtureUploadError from corehq.apps.fixtures.models import FixtureTypeField from corehq.apps.fixtures.upload.const import DELETE_HEADER from corehq.apps.fixtures.upload.failure_messages import FAILURE_MESSAGES from corehq.ap...
37.130435
108
0.624122
d475ffc69a4169da2d6c0d8bd344a43e4b704e93
3,334
py
Python
01/00/0.py
pylangstudy/201801
eee9cfd2b370153359183d3c8f7fe117f4392142
[ "CC0-1.0" ]
null
null
null
01/00/0.py
pylangstudy/201801
eee9cfd2b370153359183d3c8f7fe117f4392142
[ "CC0-1.0" ]
null
null
null
01/00/0.py
pylangstudy/201801
eee9cfd2b370153359183d3c8f7fe117f4392142
[ "CC0-1.0" ]
null
null
null
# https://qiita.com/denzow/items/a42d344fa343cd80cf86 # http://今日覚えたこと.biz/?p=1637 # coding:utf-8 """ emlファイルを元に扱いやすい様にデータを取得する サンプル。 あくまでい最低限の実装のため考慮漏れなどがあるかも。。。 """ import sys import email from email.header import decode_header class MailParser(object): """ メールファイルのパスを受け取り、それを解析するクラス """ def __ini...
27.783333
96
0.556689
ef9d79e4d93aa592938139e117c96cf7fd42cfd1
411
py
Python
experiments/fdtd-2d/tmp_files/8532.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/fdtd-2d/tmp_files/8532.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
experiments/fdtd-2d/tmp_files/8532.py
LoopTilingBenchmark/benchmark
52a3d2e70216552a498fd91de02a2fa9cb62122c
[ "BSD-2-Clause" ]
null
null
null
from chill import * source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/fdtd-2d/kernel.c') destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/fdtd-2d/tmp_files/8532.c') procedure('kernel_fdtd_2d') loop(0) known(' nx > 1 ') known(' ny > 1 ') ti...
22.833333
116
0.720195
dbf03d7d0ee739bc2121b9ad43cafce88ad8c3e0
3,052
py
Python
train_date.py
KITMILTU/Adversarial_time-to-event
bbe5766f2e4bfeb5d43932a2cbc189ee5b8656b7
[ "MIT" ]
27
2018-06-18T14:29:25.000Z
2022-03-10T10:41:38.000Z
train_date.py
KITMILTU/Adversarial_time-to-event
bbe5766f2e4bfeb5d43932a2cbc189ee5b8656b7
[ "MIT" ]
null
null
null
train_date.py
KITMILTU/Adversarial_time-to-event
bbe5766f2e4bfeb5d43932a2cbc189ee5b8656b7
[ "MIT" ]
9
2018-06-18T19:54:34.000Z
2021-08-28T16:10:47.000Z
import os import pprint import sys import data.flchain.flchain_data as flchain_data import data.seer.seer_data as seer_data import data.support.support_data as support_data from flags_parameters import set_params from model.date import DATE from model.date_ae import DATE_AE if __name__ == '__main__': GPUID = "0" ...
36.333333
109
0.612713
2c3971fdb97ab7b80c27ff0c464f212450abc1a7
450
py
Python
tests/test_scaffoldapi.py
EEE3097/scaffoldapi
3373dbf7f05d1a976918fc49c7f481dcb77c1814
[ "Apache-2.0" ]
null
null
null
tests/test_scaffoldapi.py
EEE3097/scaffoldapi
3373dbf7f05d1a976918fc49c7f481dcb77c1814
[ "Apache-2.0" ]
2
2020-08-10T22:44:05.000Z
2020-08-10T22:44:43.000Z
tests/test_scaffoldapi.py
EEE3097/scaffoldapi
3373dbf7f05d1a976918fc49c7f481dcb77c1814
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Tests for `scaffoldapi` package.""" import pytest import requests from scaffoldapi import scaffoldapi def test_returns_sum_as_float(): """ Tests returns_sumn_as_float returns a float""" assert scaffoldapi.returns_sum_as_float(1.5, 6) == float(7.5) def test_who_am_i_online(): ""...
26.470588
67
0.748889
6fab13b303d04d9d651a91f3d314012c1373a183
707
py
Python
deephyper/benchmark/nas/saddleReg/problem.py
madhukar-m-rao/deephyper
d280701d9e4cae3e639be054bf1c5ef918d9a1a7
[ "BSD-3-Clause" ]
2
2020-08-26T09:15:27.000Z
2020-08-26T09:19:13.000Z
deephyper/benchmark/nas/saddleReg/problem.py
madhukar-m-rao/deephyper
d280701d9e4cae3e639be054bf1c5ef918d9a1a7
[ "BSD-3-Clause" ]
null
null
null
deephyper/benchmark/nas/saddleReg/problem.py
madhukar-m-rao/deephyper
d280701d9e4cae3e639be054bf1c5ef918d9a1a7
[ "BSD-3-Clause" ]
null
null
null
from deephyper.problem import NaProblem from deephyper.benchmark.nas.saddleReg.load_data import load_data from deephyper.search.nas.model.baseline.simple import create_search_space from deephyper.search.nas.model.preprocessing import minmaxstdscaler Problem = NaProblem() Problem.load_data(load_data) Problem.preproce...
26.185185
99
0.807638
d67a0eb04ce417fb143563b747bd4dc5faeb3689
1,624
py
Python
app.py
Bruce95317/candlestick_detect
5a88a0c4c06a5819b2e901030955fe6fea695f0c
[ "MIT" ]
null
null
null
app.py
Bruce95317/candlestick_detect
5a88a0c4c06a5819b2e901030955fe6fea695f0c
[ "MIT" ]
null
null
null
app.py
Bruce95317/candlestick_detect
5a88a0c4c06a5819b2e901030955fe6fea695f0c
[ "MIT" ]
1
2022-03-24T23:28:07.000Z
2022-03-24T23:28:07.000Z
import os import csv import yfinance as yf import pandas as pd import talib from flask import Flask, render_template, request from patterns import patterns app = Flask(__name__) @app.route('/') def index(): pattern = request.args.get('pattern', None) stocks = {} with open('datasets/companies.csv') as f:...
29.527273
99
0.553571
47980ae47f98ebbee18fd6abd046a67707e22af6
65
py
Python
federation_api/people/helper/__init__.py
practo/federation
e316201d9b96ea1a7f6d3e9df63747b9c7c8a99e
[ "MIT" ]
null
null
null
federation_api/people/helper/__init__.py
practo/federation
e316201d9b96ea1a7f6d3e9df63747b9c7c8a99e
[ "MIT" ]
null
null
null
federation_api/people/helper/__init__.py
practo/federation
e316201d9b96ea1a7f6d3e9df63747b9c7c8a99e
[ "MIT" ]
null
null
null
from people_helper import PeopleHelper __all__ = [PeopleHelper]
16.25
38
0.830769
9da94abef19e5f62da86561d4d59ad30fa437671
3,668
py
Python
jamdol-flask.py
letuananh/jamdict
bf709d814b8453a1a279f65ff7ec8e2365865dbb
[ "MIT" ]
84
2019-02-08T16:42:36.000Z
2022-03-25T07:44:44.000Z
jamdol-flask.py
letuananh/jamdict
bf709d814b8453a1a279f65ff7ec8e2365865dbb
[ "MIT" ]
27
2018-03-22T05:47:32.000Z
2021-07-22T19:43:58.000Z
jamdol-flask.py
letuananh/jamdict
bf709d814b8453a1a279f65ff7ec8e2365865dbb
[ "MIT" ]
7
2019-07-04T20:19:43.000Z
2021-04-14T07:14:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ jamdol - JAMDict OnLine (REST server) Latest version can be found at https://github.com/neocl/jamdict """ # Copyright (c) 2017, Le Tuan Anh <tuananh.ke@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and ...
32.75
127
0.594602
042863d3a38eeaad3c220481c6d65431e42230f9
1,673
py
Python
uu/workflows/utils.py
upiq/uu.workflows
17467ee7a4f56a9ae1cd1c6465da5e0238202861
[ "MIT" ]
null
null
null
uu/workflows/utils.py
upiq/uu.workflows
17467ee7a4f56a9ae1cd1c6465da5e0238202861
[ "MIT" ]
null
null
null
uu/workflows/utils.py
upiq/uu.workflows
17467ee7a4f56a9ae1cd1c6465da5e0238202861
[ "MIT" ]
null
null
null
from zope.component.hooks import getSite from Acquisition import aq_parent from DateTime import DateTime # zope2 DateTime from plone.app.contentrules.handlers import _status as rule_status from Products.CMFCore.utils import getToolByName _true = lambda a, b: a == b and b all_true = lambda seq: reduce(_true, seq) has...
41.825
80
0.69217
fdf679b99b7f296b6037fbc262bfddd49cd03c89
2,760
py
Python
sklearn/utils/tests/test_stats.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
50,961
2015-01-01T06:06:31.000Z
2022-03-31T23:40:12.000Z
sklearn/utils/tests/test_stats.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
17,065
2015-01-01T02:01:58.000Z
2022-03-31T23:48:34.000Z
sklearn/utils/tests/test_stats.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
26,886
2015-01-01T00:59:27.000Z
2022-03-31T18:03:23.000Z
import numpy as np from numpy.testing import assert_allclose from pytest import approx from sklearn.utils.stats import _weighted_percentile def test_weighted_percentile(): y = np.empty(102, dtype=np.float64) y[:50] = 0 y[-51:] = 2 y[-1] = 100000 y[50] = 1 sw = np.ones(102, dtype=np.float64) ...
27.878788
83
0.664493
490c5596ed2b143b585c0c2a5cf711029f49de4e
3,374
py
Python
testSuite/injections_gradient.py
ElaineYao/TensorFI
96890d269dc619ca946f1082fdc6a8195b75cb4a
[ "MIT" ]
35
2018-10-28T22:41:31.000Z
2022-03-27T21:47:40.000Z
testSuite/injections_gradient.py
bigmpc/TensorFI
3d75830ff202fdf98cf28acd842209ad7f6e6e2a
[ "MIT" ]
28
2019-08-26T17:52:37.000Z
2021-06-13T01:04:00.000Z
testSuite/injections_gradient.py
bigmpc/TensorFI
3d75830ff202fdf98cf28acd842209ad7f6e6e2a
[ "MIT" ]
30
2018-11-08T02:52:06.000Z
2022-03-27T21:57:47.000Z
#!/usr/bin/python # Example 4 from TensorFlow tutorial # set logging folder from globals import TESTSUITE_DIR logDir = TESTSUITE_DIR + "/faultLogs/" confFile = TESTSUITE_DIR + "/confFiles/injections_config.yaml" #specify the config file # ***the call to TensorFI to instrument the model must include these directori...
29.596491
151
0.705098
851410d8d3b55b63ad78aacc800bf37abd6c4f77
3,883
py
Python
src/coolpyler/errors.py
pat-and-mat/cool-compiler-2021
2d34144d7e73b4375c1d9e6eeacf9966c440ecf8
[ "MIT" ]
null
null
null
src/coolpyler/errors.py
pat-and-mat/cool-compiler-2021
2d34144d7e73b4375c1d9e6eeacf9966c440ecf8
[ "MIT" ]
null
null
null
src/coolpyler/errors.py
pat-and-mat/cool-compiler-2021
2d34144d7e73b4375c1d9e6eeacf9966c440ecf8
[ "MIT" ]
1
2021-03-15T00:18:25.000Z
2021-03-15T00:18:25.000Z
class CoolpylerError(object): """ Errors reported by the compiler """ def __init__(self, line, column, type, msg) -> None: self.line = line self.column = column self.type = type self.msg = msg def __str__(self) -> str: return f"({self.line}, {self.column}) -...
25.886667
87
0.643832
011b7fcb5c90d50e6938f50c7d61a2eef06c92ac
1,673
py
Python
mongodantic/queryset.py
bzdvdn/mongodantic
df2d5b1e2e53fa7ee72017fc1b4e76be4351a91b
[ "MIT" ]
null
null
null
mongodantic/queryset.py
bzdvdn/mongodantic
df2d5b1e2e53fa7ee72017fc1b4e76be4351a91b
[ "MIT" ]
null
null
null
mongodantic/queryset.py
bzdvdn/mongodantic
df2d5b1e2e53fa7ee72017fc1b4e76be4351a91b
[ "MIT" ]
null
null
null
from json import dumps from typing import Generator, List, Union, Any, Tuple, List, TYPE_CHECKING from .helpers import handle_and_convert_connection_errors if TYPE_CHECKING: from .models import MongoModel __all__ = ('QuerySet',) class QuerySet(object): def __init__( self, model: 'MongoModel...
25.348485
75
0.62104
5dd13b90e5f01937c6fcff1bbce53d610e5be967
35,751
py
Python
vesper/util/schedule.py
RichardLitt/Vesper
5360844f42a06942e7684121c650b08cf8616285
[ "MIT" ]
1
2021-04-26T23:03:17.000Z
2021-04-26T23:03:17.000Z
vesper/util/schedule.py
Tubbz-alt/Vesper
76e5931ca0c7fbe070c53b1362ec246ec9007beb
[ "MIT" ]
null
null
null
vesper/util/schedule.py
Tubbz-alt/Vesper
76e5931ca0c7fbe070c53b1362ec246ec9007beb
[ "MIT" ]
null
null
null
"""Module containing `Schedule` class.""" from collections import namedtuple from threading import Event, Thread import datetime import itertools import re import jsonschema import pytz from vesper.util.notifier import Notifier import vesper.ephem.ephem_utils as ephem_utils import vesper.util.time_utils as time_uti...
27.437452
79
0.579368
02d07d484c5253794b2643644bf29e2e06085a1c
3,298
py
Python
django_project/django_project/settings.py
rupakbajgain/soilbearing
ab7ad6f4302a9ce1d0ecd9ddd730031200426e56
[ "MIT" ]
null
null
null
django_project/django_project/settings.py
rupakbajgain/soilbearing
ab7ad6f4302a9ce1d0ecd9ddd730031200426e56
[ "MIT" ]
null
null
null
django_project/django_project/settings.py
rupakbajgain/soilbearing
ab7ad6f4302a9ce1d0ecd9ddd730031200426e56
[ "MIT" ]
1
2021-02-20T07:59:57.000Z
2021-02-20T07:59:57.000Z
""" Django settings for django_project project. Generated by 'django-admin startproject' using Django 2.2.12. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impo...
24.796992
91
0.694057
d1877295787f66c7d2963752cd2aea703438f4d4
808
py
Python
api/config/settings/test.py
citizenlabsgr/voter-engagement
2d33eac1531471988543c6c3781b95ac73ec6dd9
[ "MIT" ]
6
2017-11-10T00:50:17.000Z
2018-03-25T02:26:19.000Z
api/config/settings/test.py
citizenlabsgr/voter-engagement
2d33eac1531471988543c6c3781b95ac73ec6dd9
[ "MIT" ]
40
2017-10-25T16:16:55.000Z
2018-08-15T05:27:36.000Z
api/config/settings/test.py
citizenlabsgr/voter-engagement
2d33eac1531471988543c6c3781b95ac73ec6dd9
[ "MIT" ]
3
2017-11-22T01:50:41.000Z
2018-04-17T23:33:08.000Z
import bugsnag from .base import * # BASE_NAME and BASE_DOMAIN are intentionally unset # They are only needed to seed data in staging and local BASE_URL = "http://example.com" ############################################################################### # Core TEST = True DEBUG = True SECRET_KEY = 'test' ####...
21.263158
79
0.404703
726dad181f42bc76be72aa29136c4a824e9d583e
425
py
Python
django_auth_policy/signals.py
fox-it/django-auth-policy
6dbd1056bb01bf938c7ce937f5a14a949959dc7f
[ "BSD-3-Clause" ]
5
2017-09-05T13:31:53.000Z
2020-03-21T23:33:58.000Z
django_auth_policy/signals.py
fox-it/django-auth-policy
6dbd1056bb01bf938c7ce937f5a14a949959dc7f
[ "BSD-3-Clause" ]
1
2015-11-16T22:36:54.000Z
2015-11-16T22:37:25.000Z
django_auth_policy/signals.py
fox-it/django-auth-policy
6dbd1056bb01bf938c7ce937f5a14a949959dc7f
[ "BSD-3-Clause" ]
3
2018-03-16T19:17:11.000Z
2021-04-20T15:02:04.000Z
from django import dispatch # user_expired is send as soon as a user expires # It can be used to inform the user or an admin about the expiry user_expired = dispatch.Signal(providing_args=["user"]) # temporary_password_set is send when a user gets a temporary password # It can be used to inform the user about the tem...
42.5
88
0.785882
76010a7006fa4f6c0a3e0ebc2e86288fb686be92
3,158
py
Python
fisher_py/data/business/reaction.py
abdelq/fisher_py
befb98732ba7c4e57858d158c68cda09ed829d66
[ "MIT" ]
3
2021-11-03T20:55:45.000Z
2022-02-01T10:11:47.000Z
fisher_py/data/business/reaction.py
abdelq/fisher_py
befb98732ba7c4e57858d158c68cda09ed829d66
[ "MIT" ]
2
2022-01-28T02:04:21.000Z
2022-01-29T01:29:14.000Z
fisher_py/data/business/reaction.py
abdelq/fisher_py
befb98732ba7c4e57858d158c68cda09ed829d66
[ "MIT" ]
1
2022-01-26T23:30:37.000Z
2022-01-26T23:30:37.000Z
from fisher_py.net_wrapping import NetWrapperBase from fisher_py.data.filter_enums import ActivationType class Reaction(NetWrapperBase): """ The Reaction interface. Defines a reaction for fragmenting an ion (an MS/MS stage). """ def __init__(self, reaction_net): super().__init__() sel...
34.326087
130
0.677961
f83ee85bcff601bdf7c975d6c18babd7aff4208c
12,869
py
Python
sdk/avalon_sdk/work_order/work_order_params.py
san-lab/avalon_dalion
7dcd8ce46366caa51b658e33eac88d2853a5b595
[ "Apache-2.0" ]
1
2020-07-29T19:21:33.000Z
2020-07-29T19:21:33.000Z
sdk/avalon_sdk/work_order/work_order_params.py
stephmackenz/avalon
8afeab63a04b681bc44c66e807e70c27c8f1e589
[ "Apache-2.0" ]
1
2021-02-03T07:57:06.000Z
2021-02-13T13:53:49.000Z
sdk/avalon_sdk/work_order/work_order_params.py
stephmackenz/avalon
8afeab63a04b681bc44c66e807e70c27c8f1e589
[ "Apache-2.0" ]
4
2021-06-09T08:55:26.000Z
2021-11-26T16:25:48.000Z
# Copyright 2019 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
38.99697
79
0.639211
c215e3bf31d41593a585084f9bea54e97014b59f
382
py
Python
datasources/automatic/scraper.py
sfakir/COVID-QA
889a2188ef816d44e521be8d2d8f1afa4ec841a9
[ "Apache-2.0" ]
null
null
null
datasources/automatic/scraper.py
sfakir/COVID-QA
889a2188ef816d44e521be8d2d8f1afa4ec841a9
[ "Apache-2.0" ]
null
null
null
datasources/automatic/scraper.py
sfakir/COVID-QA
889a2188ef816d44e521be8d2d8f1afa4ec841a9
[ "Apache-2.0" ]
null
null
null
######### Implement Scraper here ######### # for each site in sources.csv # scrape and try to extract fields that are not set in the CSV # output + usage # 1. output should be a dataframe, similar to the one used in datasources.META_scraper.py # 2. writing results to Elasticsearch should be handled in backend # 3. ca...
38.2
89
0.732984
ae038f6e0907cd33dcd5acc73ccba53668b1cd02
4,617
py
Python
sdk/python/feast/infra/local_sqlite.py
randxie/feast
cc003155ae0ddaaf4894c88e71c35c4698daf25a
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/infra/local_sqlite.py
randxie/feast
cc003155ae0ddaaf4894c88e71c35c4698daf25a
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/infra/local_sqlite.py
randxie/feast
cc003155ae0ddaaf4894c88e71c35c4698daf25a
[ "Apache-2.0" ]
null
null
null
import os import sqlite3 from datetime import datetime from typing import Dict, List, Optional, Tuple, Union from feast import FeatureTable, FeatureView from feast.infra.key_encoding_utils import serialize_entity_key from feast.infra.provider import Provider from feast.protos.feast.types.EntityKey_pb2 import EntityKey...
35.790698
204
0.528265
da44cee15e0c92552ccd39afa6e04accf4653733
24,716
py
Python
yapf/yapflib/split_penalty.py
Santosh-Gupta/yapf
7facc6bb70694fc386b735092c14932abac2d95e
[ "Apache-2.0" ]
null
null
null
yapf/yapflib/split_penalty.py
Santosh-Gupta/yapf
7facc6bb70694fc386b735092c14932abac2d95e
[ "Apache-2.0" ]
null
null
null
yapf/yapflib/split_penalty.py
Santosh-Gupta/yapf
7facc6bb70694fc386b735092c14932abac2d95e
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
38.861635
80
0.670335
06403eb6d70acb6107507bcb1cc5980e382ff1fd
13,549
py
Python
models/VanillaTransformer/multiHeadAttention.py
liuaoy/deep-time-series
569ca2173b3c033522c3c3a6333b86270bcfa2e7
[ "Apache-2.0" ]
5
2022-03-19T10:32:29.000Z
2022-03-29T00:50:30.000Z
models/VanillaTransformer/multiHeadAttention.py
liuaoy/deep-time-series
569ca2173b3c033522c3c3a6333b86270bcfa2e7
[ "Apache-2.0" ]
1
2022-03-22T07:52:08.000Z
2022-03-22T07:55:28.000Z
models/VanillaTransformer/multiHeadAttention.py
liuaoy/deep-time-series
569ca2173b3c033522c3c3a6333b86270bcfa2e7
[ "Apache-2.0" ]
2
2022-03-19T21:07:39.000Z
2022-03-23T09:24:30.000Z
from typing import Optional import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from .utils import generate_local_map_mask class MultiHeadAttention(nn.Module): """Multi Head Attention block from Attention is All You Need. Given 3 inputs of shape (batch_size, K, d_model), t...
37.120548
144
0.601373
c5cb5efa1e8fa198498d7f422aa617b141e06577
48
py
Python
specviz/plugins/statistics/__init__.py
ibusko/specviz
b8bcd495e5b43dc2b90f7bf2d5bad2d27c6990aa
[ "BSD-3-Clause" ]
null
null
null
specviz/plugins/statistics/__init__.py
ibusko/specviz
b8bcd495e5b43dc2b90f7bf2d5bad2d27c6990aa
[ "BSD-3-Clause" ]
null
null
null
specviz/plugins/statistics/__init__.py
ibusko/specviz
b8bcd495e5b43dc2b90f7bf2d5bad2d27c6990aa
[ "BSD-3-Clause" ]
null
null
null
from .statistics_widget import StatisticsWidget
24
47
0.895833
a5db7178d6c11bfa78e5ae76cf507c531ee6fef4
1,465
py
Python
evolution/genes/layer2d.py
vfcosta/coegan-trained
44174e68909d9c03bf2e4b7e4c7a48237a560183
[ "MIT" ]
null
null
null
evolution/genes/layer2d.py
vfcosta/coegan-trained
44174e68909d9c03bf2e4b7e4c7a48237a560183
[ "MIT" ]
null
null
null
evolution/genes/layer2d.py
vfcosta/coegan-trained
44174e68909d9c03bf2e4b7e4c7a48237a560183
[ "MIT" ]
1
2021-06-11T16:52:55.000Z
2021-06-11T16:52:55.000Z
from evolution.layers.pixelwise_norm import PixelwiseNorm import numpy as np from torch import nn from evolution.layers.skip_module import SkipModule from util import config from .layer import Layer class Layer2D(Layer): """Represents an generic 2d layer in the evolving model.""" def __init__(self, activati...
34.069767
115
0.665529
18572264e9a84686ac7390997c66fd96ab0547b8
18,908
py
Python
aiida/restapi/resources.py
ltalirz/aiida_core
7d0d5a90bd546549b1f87a74567a86db5ff905f1
[ "MIT", "BSD-3-Clause" ]
1
2020-12-20T08:41:52.000Z
2020-12-20T08:41:52.000Z
aiida/restapi/resources.py
pranjalmish1/aiida-core
6c60afb1c81b88a4864573803860ef38b9da5e99
[ "MIT", "BSD-3-Clause" ]
3
2018-04-13T08:15:28.000Z
2019-11-03T22:36:03.000Z
aiida/restapi/resources.py
pranjalmish1/aiida-core
6c60afb1c81b88a4864573803860ef38b9da5e99
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
37.665339
135
0.606251
2c9f067882cf332aafa4d065ea5d24733e9f0bc3
34,218
bzl
Python
tensorflow/workspace.bzl
master-hzz/tensorflow
4b4b51cdd9e8c3c748b76dd8649bcd5556e84d76
[ "Apache-2.0" ]
null
null
null
tensorflow/workspace.bzl
master-hzz/tensorflow
4b4b51cdd9e8c3c748b76dd8649bcd5556e84d76
[ "Apache-2.0" ]
null
null
null
tensorflow/workspace.bzl
master-hzz/tensorflow
4b4b51cdd9e8c3c748b76dd8649bcd5556e84d76
[ "Apache-2.0" ]
1
2019-01-10T08:34:08.000Z
2019-01-10T08:34:08.000Z
# TensorFlow external dependencies that can be loaded in WORKSPACE files. load("//third_party/gpus:cuda_configure.bzl", "cuda_configure") load("//third_party/sycl:sycl_configure.bzl", "sycl_configure") load("//third_party/mkl:build_defs.bzl", "mkl_repository") load( "@io_bazel_rules_closure//closure/private:java_...
41.376058
163
0.69557
6392dc7ec5eb4e801ac9814df8b74bbd25fb137e
1,627
py
Python
pystate/_test_creator_module.py
rimms/sensorbee_py
1cad28b16a87a184670ae560640fb3f8698f04e2
[ "MIT" ]
null
null
null
pystate/_test_creator_module.py
rimms/sensorbee_py
1cad28b16a87a184670ae560640fb3f8698f04e2
[ "MIT" ]
null
null
null
pystate/_test_creator_module.py
rimms/sensorbee_py
1cad28b16a87a184670ae560640fb3f8698f04e2
[ "MIT" ]
null
null
null
import six class TestClass(object): @staticmethod def create(): self = TestClass() return self def write(self, value): return 'called! arg is "{}"'.format(str(value)) class TestClass2(object): @staticmethod def create(**params): self = TestClass2() self...
20.858974
65
0.562385
e072f8307d643e309227381f56ba849f97c36824
7,012
py
Python
django_selenium_clean/__init__.py
aptiko/django-selenium-clean
780418037908f3de42f8be8940c3b1e4252f36af
[ "BSD-3-Clause" ]
14
2015-11-04T11:41:56.000Z
2022-01-05T10:57:36.000Z
django_selenium_clean/__init__.py
aptiko/django-selenium-clean
780418037908f3de42f8be8940c3b1e4252f36af
[ "BSD-3-Clause" ]
5
2017-05-17T14:37:01.000Z
2021-04-08T15:16:09.000Z
django_selenium_clean/__init__.py
aptiko/django-selenium-clean
780418037908f3de42f8be8940c3b1e4252f36af
[ "BSD-3-Clause" ]
3
2017-03-11T19:40:59.000Z
2020-05-11T05:55:41.000Z
from __future__ import absolute_import import os import signal import time from importlib import import_module from django.conf import settings from django.contrib.staticfiles.testing import StaticLiveServerTestCase from django.http import HttpRequest from selenium.common.exceptions import WebDriverException from se...
32.766355
85
0.631489
365dced8b6c701b0d5d9ac22c0f5acb52a6cdbd1
463
py
Python
cases/admin.py
horizonltd/corona
fd7302aae313e0767a73ffd772553cefad71acaf
[ "MIT" ]
null
null
null
cases/admin.py
horizonltd/corona
fd7302aae313e0767a73ffd772553cefad71acaf
[ "MIT" ]
10
2020-03-31T01:56:33.000Z
2022-02-10T11:23:42.000Z
cases/admin.py
horizonltd/corona
fd7302aae313e0767a73ffd772553cefad71acaf
[ "MIT" ]
null
null
null
from django.contrib import admin from . models import State, Country, TestCenter # Register your models here. class TestCenterAdmin(admin.ModelAdmin): search_fields = ['__all__'] admin.site.register(TestCenter, TestCenterAdmin) class StateAdmin(admin.ModelAdmin): search_fields = ['__all__'] class Count...
19.291667
48
0.766739
cbb6111593bf7ab44ddf912154f3ec69e32859b4
4,042
py
Python
src/login/bklogin/components/http.py
Chace-wang/bk-user
057f270d66a1834312306c9fba1f4e95521f10b1
[ "MIT" ]
null
null
null
src/login/bklogin/components/http.py
Chace-wang/bk-user
057f270d66a1834312306c9fba1f4e95521f10b1
[ "MIT" ]
null
null
null
src/login/bklogin/components/http.py
Chace-wang/bk-user
057f270d66a1834312306c9fba1f4e95521f10b1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
37.775701
118
0.645225
c1c1c39a7683f1124afe7f91ad11c6865d59561c
487
py
Python
user_program/make_zip.py
dekuNukem/USB4VC
66c4f0b4a4acd7cec6654ea0dd4da026edf5d24c
[ "MIT" ]
78
2022-02-07T16:48:11.000Z
2022-03-31T12:25:35.000Z
user_program/make_zip.py
dekuNukem/USB4VC
66c4f0b4a4acd7cec6654ea0dd4da026edf5d24c
[ "MIT" ]
1
2022-02-26T20:16:08.000Z
2022-02-26T20:24:04.000Z
user_program/make_zip.py
dekuNukem/USB4VC
66c4f0b4a4acd7cec6654ea0dd4da026edf5d24c
[ "MIT" ]
1
2022-02-24T03:34:15.000Z
2022-02-24T03:34:15.000Z
import usb4vc_shared import os import sys import time os.system("rm -rfv ./rpi_app") os.system("sleep 0.1") os.system("rm -fv ./*.zip") os.system("sleep 0.1") os.system("mkdir rpi_app") os.system("sleep 0.1") os.system("cp -v ./*.py rpi_app/") os.system("cp -v ./*.ttf rpi_app/") filename = f'usb4vc_src_{usb4vc_shared...
28.647059
151
0.728953
a0bc8c54290d5e85d817dca817bff7bcade5e4e5
5,366
py
Python
pymel/versions.py
williambong/pymel
8a9a43647d96bd2aea25f32bf485441694c4a884
[ "BSD-3-Clause" ]
null
null
null
pymel/versions.py
williambong/pymel
8a9a43647d96bd2aea25f32bf485441694c4a884
[ "BSD-3-Clause" ]
null
null
null
pymel/versions.py
williambong/pymel
8a9a43647d96bd2aea25f32bf485441694c4a884
[ "BSD-3-Clause" ]
null
null
null
"""Functions for getting and comparing versions of Maya. Class for storing apiVersions, which are the best method for comparing versions. :: >>> from pymel import versions >>> if versions.current() >= versions.v2008: ... print "The current version is later than Maya 2008" The current version is la...
26.433498
114
0.676482
eda9ffe569f13887c0082b0717d7e566377909d4
880
py
Python
Mininet-based Programming/progAssign3/pox_module/setup.py
cla7aye15I4nd/Computer-Network
12c2c63bcb440ac9781052c257f1290f74756f4a
[ "Apache-2.0" ]
3
2021-02-01T16:23:23.000Z
2021-05-25T07:35:08.000Z
Mininet-based Programming/progAssign3/pox_module/setup.py
cla7aye15I4nd/Computer-Network
12c2c63bcb440ac9781052c257f1290f74756f4a
[ "Apache-2.0" ]
null
null
null
Mininet-based Programming/progAssign3/pox_module/setup.py
cla7aye15I4nd/Computer-Network
12c2c63bcb440ac9781052c257f1290f74756f4a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python '''Setuptools params''' from setuptools import setup, find_packages setup( name='cs640', version='0.0.0', description='Network controller for CS640 Assignments', author='', author_email='huangty@stanford.edu agember@cs.wisc.edu', packages=find_packages(exclude='test'), ...
28.387097
75
0.618182
cf4eed56f9e210fc676cb4d29a0cd9da6ea720bc
2,275
py
Python
addons/purchase_stock/tests/common.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
addons/purchase_stock/tests/common.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
addons/purchase_stock/tests/common.py
jjiege/odoo
fd5b8ad387c1881f349d125cbd56433f4d49398f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import timedelta from odoo import fields from odoo.addons.stock.tests.common2 import TestStockCommon from odoo import tools from odoo.modules.module import get_module_resource class TestPurchase(TestStockCommon): def _create_make_procurement(self, product, product_qty, date...
42.924528
224
0.625055
a0129199d78f47d3e0d2f7c8b927f2e704f894c6
1,973
py
Python
arpym/estimation/fit_factor_analysis.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
6
2021-04-10T13:24:30.000Z
2022-03-26T08:20:42.000Z
arpym/estimation/fit_factor_analysis.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
null
null
null
arpym/estimation/fit_factor_analysis.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
6
2019-08-13T22:02:17.000Z
2022-02-09T17:49:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np from arpym.estimation.factor_analysis_paf import factor_analysis_paf from arpym.estimation.factor_analysis_mlf import factor_analysis_mlf from arpym.statistics.meancov_sp import meancov_sp def fit_factor_analysis(x, k_, p=None, method='PrincAxFact'):...
28.594203
75
0.623923
132a73ea2e5cb0328bdcdbc3872acb14abf162af
822
py
Python
setup.py
aliciawyy/sheep
b21231dfdaee63d3f868421cba2a50be26c513f4
[ "MIT" ]
null
null
null
setup.py
aliciawyy/sheep
b21231dfdaee63d3f868421cba2a50be26c513f4
[ "MIT" ]
73
2018-06-13T14:50:51.000Z
2022-03-07T23:04:38.000Z
setup.py
aliciawyy/sheep
b21231dfdaee63d3f868421cba2a50be26c513f4
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="sheepts", version="0.0.4", description="Light Time Series Toolbox", long_description="sheepts is a light time series toolbox.", url="https://github.com/aliciawyy/sheep", author="Alice Wang", author_email="rainingilove@gmail.com", license="MIT",...
27.4
63
0.591241
72e2a38800a3638907de51b6646a05eb040ddc0e
1,168
py
Python
Contests/Weekly Contest/Contest 223/1722. Minimize Hamming Distance After Swap Operations.py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
4
2020-11-17T05:24:24.000Z
2021-06-14T21:01:45.000Z
Contests/Weekly Contest/Contest 223/1722. Minimize Hamming Distance After Swap Operations.py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
null
null
null
Contests/Weekly Contest/Contest 223/1722. Minimize Hamming Distance After Swap Operations.py
Dharaneeshwar/Leetcode
cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287
[ "MIT" ]
null
null
null
class Solution: def check(self,d,l,v,ind): for i in d[ind]: if v[i]==0: v[i]=1 l+=[i] l,v= self.check(d,l,v,i) return (l,v) def minimumHammingDistance(self, source: List[int], target: List[int], s: List[List[int]]) -> int: ...
31.567568
102
0.358733
8478b2ed1c660da7cbf9fb483d212c681bd41c2e
1,516
py
Python
examples/MatrixServoExtension/Set_Angle.py
Matrix-Robotics/MatrixControl
0e596be195b2324154bc6ec220172863e311ccb7
[ "MIT" ]
1
2021-07-15T07:33:43.000Z
2021-07-15T07:33:43.000Z
examples/MatrixServoExtension/Set_Angle.py
Matrix-Robotics/MatrixControl
0e596be195b2324154bc6ec220172863e311ccb7
[ "MIT" ]
1
2021-08-12T09:08:10.000Z
2021-08-12T09:08:10.000Z
examples/MatrixServoExtension/Set_Angle.py
Matrix-Robotics/MatrixControl
0e596be195b2324154bc6ec220172863e311ccb7
[ "MIT" ]
null
null
null
import time import sys, os sys.path.insert(0, os.path.abspath("../..")) from MatrixControl import Device Mini1 = Device(0, "Mini", 115200) Mini1.SetI2C(1, "ServoExtension") while True: print("===============================================================") channel = 1 angle = 0 Mini1.I2C1.setAngle(...
24.852459
76
0.573219
a1b136954fd68b789d391bd2a95349cb8bb2eda6
520
py
Python
hulpmiddelen/vertaalNaarC1-.py
bvangils/c6-88
ae8a0e38578284875aad0a129536eead28ff9116
[ "CC0-1.0" ]
1
2021-08-09T13:58:03.000Z
2021-08-09T13:58:03.000Z
hulpmiddelen/vertaalNaarC1-.py
bvangils/C6_88
ae8a0e38578284875aad0a129536eead28ff9116
[ "CC0-1.0" ]
1
2022-03-10T16:08:39.000Z
2022-03-10T16:08:39.000Z
hulpmiddelen/vertaalNaarC1-.py
bvangils/c6-88
ae8a0e38578284875aad0a129536eead28ff9116
[ "CC0-1.0" ]
1
2021-08-09T19:20:42.000Z
2021-08-09T19:20:42.000Z
# Dit Python script helpt om Nederlands te vertalen in de c1-taalset. # Let op: volgens c6-8 mag je alléén in die richting geautomatiseerde hulpmiddelen maken, niet andersom! invoer = input('Geef de te vertalen tekst:\n') c1alfabet = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopq...
47.272727
112
0.680769