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
1dcee1db33906fcf1701ff29172f76cde041c53a
3,734
py
Python
intersight/models/storage_flex_util_virtual_drive_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/storage_flex_util_virtual_drive_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/storage_flex_util_virtual_drive_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class StorageFlexUtilVirtualDriveRef(object): """ N...
24.893333
83
0.556776
1dcf3035c7235829dee7f39f6c6c0ee5f44f46aa
3,022
py
Python
joj/horse/schemas/problem_set.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
6
2020-12-28T07:05:52.000Z
2022-01-16T04:44:02.000Z
joj/horse/schemas/problem_set.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
56
2021-02-02T02:21:52.000Z
2022-03-13T02:39:05.000Z
joj/horse/schemas/problem_set.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
3
2021-01-28T17:52:58.000Z
2021-12-17T17:42:42.000Z
from datetime import datetime from typing import TYPE_CHECKING, List, Optional from uuid import UUID from sqlmodel import Field from joj.horse.schemas import BaseModel from joj.horse.schemas.base import ( DomainMixin, EditMetaclass, IDMixin, LongText, NoneEmptyLongStr, TimestampMixin, URLC...
28.780952
88
0.692588
1dcf3a46cfa39985f213949b6fd1b9f1d79cccf7
4,220
py
Python
core/__settings_archive/stg.py
NUKnightLab/cityhallmonitor
c016d0822191a741e9fe38a69d9ce7ad53d99986
[ "MIT" ]
null
null
null
core/__settings_archive/stg.py
NUKnightLab/cityhallmonitor
c016d0822191a741e9fe38a69d9ce7ad53d99986
[ "MIT" ]
138
2015-10-01T20:38:46.000Z
2021-06-10T17:47:20.000Z
core/__settings_archive/stg.py
NUKnightLab/cityhallmonitor
c016d0822191a741e9fe38a69d9ce7ad53d99986
[ "MIT" ]
null
null
null
""" Staging Django settings for cityhallmonitor project. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ import os import sys from .base import * # Import secrets ...
27.402597
82
0.613507
1dcf5b1c7754d3695737b35252c8b588c9c9da8b
27,983
py
Python
src/sage/groups/free_group.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
3
2016-06-19T14:48:31.000Z
2022-01-28T08:46:01.000Z
src/sage/groups/free_group.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
src/sage/groups/free_group.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
7
2021-11-08T10:01:59.000Z
2022-03-03T11:25:52.000Z
""" Free Groups Free groups and finitely presented groups are implemented as a wrapper over the corresponding GAP objects. A free group can be created by giving the number of generators, or their names. It is also possible to create indexed generators:: sage: G.<x,y,z> = FreeGroup(); G Free Group on generat...
30.515812
107
0.519244
1dcf5ffc17d2d9b1cd8f621b98f7fde6dbcc3ac9
4,107
py
Python
src/controller/node_health/node_poll.py
srikanteswartalluri/container-orchestrator
3cd07989e28ece0038cb0b7c6bbdc83c1c0ba7a9
[ "Apache-2.0" ]
null
null
null
src/controller/node_health/node_poll.py
srikanteswartalluri/container-orchestrator
3cd07989e28ece0038cb0b7c6bbdc83c1c0ba7a9
[ "Apache-2.0" ]
null
null
null
src/controller/node_health/node_poll.py
srikanteswartalluri/container-orchestrator
3cd07989e28ece0038cb0b7c6bbdc83c1c0ba7a9
[ "Apache-2.0" ]
null
null
null
from collections import Counter from util.db import db import datetime class NodeHealth: def healthCheck(self): nodeDetails = db.node_config.find() ## filter nodes if heart beat wasn't updated for more than 20 seconds failedNodes = [ node['name'] for node in nodeDetails if ...
30.422222
108
0.422693
1dcfa6a9c8099d42dff231f77002a812ceb36545
16,456
py
Python
tests/libs/metrics/top_level_metrics_test.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
null
null
null
tests/libs/metrics/top_level_metrics_test.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
null
null
null
tests/libs/metrics/top_level_metrics_test.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
null
null
null
from typing import List import dataclasses from typing import Optional import numpy as np import pandas as pd import structlog from covidactnow.datapublic.common_fields import CommonFields import libs.metrics.test_positivity from api import can_api_v2_definition from libs.metrics import top_level_metrics from libs.da...
34.571429
100
0.68115
1dcfc8c8712149021afeeb451a7bb61b557c85c1
10,838
py
Python
open-hackathon-server/src/hackathon/views/user_routes.py
akondasif/open-hackathon-bak_01
d60ad764edf689a95b6ffcc56815338b380801de
[ "MIT" ]
null
null
null
open-hackathon-server/src/hackathon/views/user_routes.py
akondasif/open-hackathon-bak_01
d60ad764edf689a95b6ffcc56815338b380801de
[ "MIT" ]
null
null
null
open-hackathon-server/src/hackathon/views/user_routes.py
akondasif/open-hackathon-bak_01
d60ad764edf689a95b6ffcc56815338b380801de
[ "MIT" ]
1
2019-04-03T23:13:55.000Z
2019-04-03T23:13:55.000Z
# -*- coding: utf-8 -*- """ Copyright (c) Microsoft Open Technologies (Shanghai) Co. Ltd.  All rights reserved. The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without res...
35.887417
92
0.68306
1dcfd3710f3957d63be002efc916af7f67039dc0
1,150
py
Python
setup.py
Kaptard/docker-bash-volume-watcher
d2fd273cc7499290bbe8dac7948b6416df68cbf2
[ "MIT" ]
2
2018-11-06T05:54:16.000Z
2019-04-30T18:49:56.000Z
setup.py
Kaptard/docker-bash-volume-watcher
d2fd273cc7499290bbe8dac7948b6416df68cbf2
[ "MIT" ]
null
null
null
setup.py
Kaptard/docker-bash-volume-watcher
d2fd273cc7499290bbe8dac7948b6416df68cbf2
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('README.rst') as file: long_description = file.read() setup(name='docker-bash-volume-watcher', version='1.0.8', packages=find_packages(), entry_points={ 'console_scripts': ['docker-volume-watcher=docker_volume_watcher.cli:main'], ...
34.848485
100
0.623478
1dcfdc212c31fc15ad45df5a8851044ccf3f1bb6
9,599
py
Python
unit_test/options_toml_test.py
bbayles/cibuildwheel
af2014c954cdda356d496732c4d5398c61526b8f
[ "BSD-2-Clause" ]
371
2021-05-19T18:48:06.000Z
2022-03-31T11:31:41.000Z
unit_test/options_toml_test.py
bbayles/cibuildwheel
af2014c954cdda356d496732c4d5398c61526b8f
[ "BSD-2-Clause" ]
234
2021-05-19T19:25:42.000Z
2022-03-29T19:03:00.000Z
unit_test/options_toml_test.py
bbayles/cibuildwheel
af2014c954cdda356d496732c4d5398c61526b8f
[ "BSD-2-Clause" ]
56
2021-05-25T19:59:54.000Z
2022-03-26T13:49:14.000Z
from pathlib import Path import pytest from cibuildwheel.options import ConfigOptionError, OptionsReader, _dig_first PYPROJECT_1 = """ [tool.cibuildwheel] build = "cp39*" environment = {THING = "OTHER", FOO="BAR"} test-command = "pyproject" test-requires = "something" test-extras = ["one", "two"] manylinux-x86_64-...
30.667732
93
0.684967
1dcff3e34d64982cfe93224a491ceb03ec8a01ec
3,382
py
Python
utils.py
MPTG94/AI-HW2
1ef8ae1dfade4a6c79e4de1775825c292216bc0b
[ "MIT" ]
null
null
null
utils.py
MPTG94/AI-HW2
1ef8ae1dfade4a6c79e4de1775825c292216bc0b
[ "MIT" ]
null
null
null
utils.py
MPTG94/AI-HW2
1ef8ae1dfade4a6c79e4de1775825c292216bc0b
[ "MIT" ]
null
null
null
import operator import numpy as np import os #TODO: edit the alpha and beta initialization values for AlphaBeta algorithm. # instead of 'None', write the real initialization value, learned in class. # hint: you can use np.inf ALPHA_VALUE_INIT = None BETA_VALUE_INIT = None def get_directions(position): """Returns ...
43.358974
119
0.283264
1dd01c7d12f7ba6a9620d48073b5ef0ded93065e
1,520
py
Python
GPdoemd/param_estim/diff_evol.py
scwolof/GPdoemd
485265a66585a8ebe88d1ba3da957199159dbcbf
[ "MIT" ]
28
2018-07-04T21:46:18.000Z
2022-01-10T07:48:59.000Z
GPdoemd/param_estim/diff_evol.py
scwolof/GPdoemd
485265a66585a8ebe88d1ba3da957199159dbcbf
[ "MIT" ]
1
2018-10-03T22:40:00.000Z
2018-10-04T17:49:49.000Z
GPdoemd/param_estim/diff_evol.py
scwolof/GPdoemd
485265a66585a8ebe88d1ba3da957199159dbcbf
[ "MIT" ]
5
2018-09-18T18:43:19.000Z
2020-11-28T22:07:22.000Z
""" MIT License Copyright (c) 2018 Simon Olofsson 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...
36.190476
78
0.782237
1dd02bf6e1eecadfe6fbd1fe3147d70ae067426e
16,740
py
Python
stitch/_version.py
pystitch/stitch
09a16da2f2af2be6a960e2338de488c8de2c2271
[ "MIT" ]
468
2016-08-31T19:17:17.000Z
2022-03-07T13:51:53.000Z
stitch/_version.py
hschuett/stitch
09a16da2f2af2be6a960e2338de488c8de2c2271
[ "MIT" ]
40
2016-08-29T20:34:47.000Z
2020-09-21T03:25:49.000Z
stitch/_version.py
TomAugspurger/stitch
09a16da2f2af2be6a960e2338de488c8de2c2271
[ "MIT" ]
29
2016-08-31T19:44:19.000Z
2019-05-16T14:37:44.000Z
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
34.515464
79
0.590562
1dd084c0b0352782b632a0e3d38640da504afe14
3,035
py
Python
alipay/aop/api/domain/KbdishPeriodExtendInfo.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/KbdishPeriodExtendInfo.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/KbdishPeriodExtendInfo.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 * from alipay.aop.api.domain.KbdishTimeRangeInfo import KbdishTimeRangeInfo class KbdishPeriodExtendInfo(object): def __init__(self): self._end_date = None self._start_date = None ...
30.969388
89
0.583526
1dd0f35ebe6309eb323e6e7fb16487311a9695e5
1,464
py
Python
screens.py
Jocadbz/screens
a99d239d82dc3847522e54d128293bc12f4b8824
[ "Unlicense" ]
null
null
null
screens.py
Jocadbz/screens
a99d239d82dc3847522e54d128293bc12f4b8824
[ "Unlicense" ]
null
null
null
screens.py
Jocadbz/screens
a99d239d82dc3847522e54d128293bc12f4b8824
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys def WALLPAPER(): os.system("nitrogen --restore") def LAPTOP(): os.system("xrandr --output eDP1 --primary --mode 1366x768 --pos 0x156 --rotate normal --output HDMI1 --off --output VIRTUAL1 --off") def HDMI(): os.system("xrandr --output e...
26.142857
175
0.549863
1dd1322ece7f06dc0abbdce85e5c21fb7ce7c60c
10,784
py
Python
dtLib/unquant/msd3.py
Digital-Twin-Operational-Platform/Cristallo
20e21f6ae0f0f99002a229c8c966fd72020698c3
[ "BSD-3-Clause" ]
6
2021-07-14T08:43:20.000Z
2022-02-02T19:40:26.000Z
dtLib/unquant/msd3.py
Digital-Twin-Operational-Platform/Cristallo
20e21f6ae0f0f99002a229c8c966fd72020698c3
[ "BSD-3-Clause" ]
null
null
null
dtLib/unquant/msd3.py
Digital-Twin-Operational-Platform/Cristallo
20e21f6ae0f0f99002a229c8c966fd72020698c3
[ "BSD-3-Clause" ]
2
2021-07-05T08:08:43.000Z
2022-03-28T09:46:02.000Z
''' `dtLib/msd3.py` :Author: Marco De Angelis :Organisation: University of Liverpool :Copyright: BSD Licence This single python file ``msd3.py`` is the scientific code for the uncertainty page. This module is intended to be self-contained, thus it is orthogonal to any other module in this softwar...
33.805643
144
0.621476
1dd139cb1626ea9766ae04328a876a1f58796114
724
py
Python
src/oscar/test/factories/basket.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
src/oscar/test/factories/basket.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
5
2021-05-28T19:38:28.000Z
2022-03-12T00:45:39.000Z
src/oscar/test/factories/basket.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
null
null
null
import factory from oscar.core.loading import get_class, get_model Selector = get_class('partner.strategy', 'Selector') __all__ = [ 'BasketFactory', 'BasketLineAttributeFactory' ] class BasketFactory(factory.DjangoModelFactory): @factory.post_generation def set_strategy(self, create, e...
24.965517
70
0.691989
1dd14aa29afa40a6d6a2d2afed742f3399c03f6e
5,318
py
Python
src/rexpy/pycondor/basenode.py
douglasdavis/rexpy
94eb997c7bc0e07c262555a7710c0a33e146801d
[ "BSD-3-Clause" ]
23
2017-05-16T21:37:07.000Z
2021-11-15T13:46:03.000Z
src/rexpy/pycondor/basenode.py
douglasdavis/rexpy
94eb997c7bc0e07c262555a7710c0a33e146801d
[ "BSD-3-Clause" ]
83
2017-01-27T21:00:38.000Z
2022-02-10T16:27:54.000Z
src/rexpy/pycondor/basenode.py
douglasdavis/rexpy
94eb997c7bc0e07c262555a7710c0a33e146801d
[ "BSD-3-Clause" ]
14
2017-04-05T15:40:37.000Z
2021-11-15T13:38:09.000Z
import os import time import glob from . import utils class BaseNode(object): def __init__(self, name, submit=None, extra_lines=None, dag=None, verbose=0): # Validate user input if extra_lines and not isinstance(extra_lines, (str, list, tuple)): raise TypeError('ex...
27.554404
78
0.543813
1dd162f513d8e9c1d18893345e6797687f1f5d85
1,462
py
Python
search_engines/engines/duckduckgo.py
soxoj/async-search-scraper
322733e77c3c40bc24b16a30dfe36a21fc9f32b9
[ "MIT" ]
5
2022-01-10T15:23:40.000Z
2022-02-25T15:11:24.000Z
search_engines/engines/duckduckgo.py
soxoj/Search-Engines-Scraper
322733e77c3c40bc24b16a30dfe36a21fc9f32b9
[ "MIT" ]
null
null
null
search_engines/engines/duckduckgo.py
soxoj/Search-Engines-Scraper
322733e77c3c40bc24b16a30dfe36a21fc9f32b9
[ "MIT" ]
2
2022-02-08T23:27:39.000Z
2022-02-25T16:23:59.000Z
from ..engine import SearchEngine from ..config import PROXY, TIMEOUT class Duckduckgo(SearchEngine): '''Searches duckduckgo.com''' def __init__(self, proxy=PROXY, timeout=TIMEOUT, *args, **kwargs): super(Duckduckgo, self).__init__(proxy, timeout, *args, **kwargs) self._base_url = 'htt...
38.473684
92
0.562244
1dd17f5e52f8c7eef94188d90fa32a414d5f1734
18,847
py
Python
datasets/data_prep/video_loader.py
bolianchen/pytorch_depth_from_videos_in_the_wild
6f013154ba9f3a8de944c788a9370980e4c2b7c8
[ "MIT" ]
5
2022-02-25T04:38:16.000Z
2022-03-28T17:38:03.000Z
datasets/data_prep/video_loader.py
bolianchen/pytorch_depth_from_videos_in_the_wild
6f013154ba9f3a8de944c788a9370980e4c2b7c8
[ "MIT" ]
5
2022-02-25T07:26:39.000Z
2022-03-02T06:04:32.000Z
datasets/data_prep/video_loader.py
bolianchen/pytorch_depth_from_videos_in_the_wild
6f013154ba9f3a8de944c788a9370980e4c2b7c8
[ "MIT" ]
null
null
null
# All Rights Reserved. from __future__ import absolute_import from __future__ import division from __future__ import print_function import glob import json import os import sys import shutil import re import torch from absl import logging import numpy as np import pandas as pd import imageio from PIL import Image im...
37.17357
136
0.554995
1dd1a69e9df1bc49dc76bd4b5be762d19bf3053b
647
py
Python
setup.py
StMay/Mahjong_Server
66ecbaac0bddafffd439a02a3c422e2f207d4fb9
[ "MIT" ]
null
null
null
setup.py
StMay/Mahjong_Server
66ecbaac0bddafffd439a02a3c422e2f207d4fb9
[ "MIT" ]
null
null
null
setup.py
StMay/Mahjong_Server
66ecbaac0bddafffd439a02a3c422e2f207d4fb9
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="mahjong-server", version="0.0.7", author="Steven May", description="Mahjong Game Server", long_description=long_description, long_description_content_type="text/mark...
24.884615
52
0.638331
1dd1a9a4de4ce92436f71c7cb871c2843d84ef10
30,377
py
Python
src/uvm/base/factory.py
fvutils/uvm-py
5e5ed203b680ead6e1b47fcff6d74fa99b5929c4
[ "Apache-2.0" ]
1
2019-10-13T06:14:28.000Z
2019-10-13T06:14:28.000Z
src/uvm/base/factory.py
fvutils/uvm-py
5e5ed203b680ead6e1b47fcff6d74fa99b5929c4
[ "Apache-2.0" ]
null
null
null
src/uvm/base/factory.py
fvutils/uvm-py
5e5ed203b680ead6e1b47fcff6d74fa99b5929c4
[ "Apache-2.0" ]
1
2019-12-23T06:21:49.000Z
2019-12-23T06:21:49.000Z
# #------------------------------------------------------------------------------ # Copyright 2007-2014 Mentor Graphics Corporation # Copyright 2015 Analog Devices, Inc. # Copyright 2014 Semifore # Copyright 2017 Intel Corporation # Copyright 2018 Qualcomm, Inc. # Copyright 2011 Synopsys, Inc. # Copyright 2007-2018 Cad...
38.598475
122
0.635053
1dd1c78cea204402f2a8507d6f77a4cd09d9df04
4,076
py
Python
lib/reda/importers/res2dinv.py
j-hase/reda
b6419c39842cfbdd9380a27a5c6e9a04ccaeb294
[ "MIT" ]
null
null
null
lib/reda/importers/res2dinv.py
j-hase/reda
b6419c39842cfbdd9380a27a5c6e9a04ccaeb294
[ "MIT" ]
null
null
null
lib/reda/importers/res2dinv.py
j-hase/reda
b6419c39842cfbdd9380a27a5c6e9a04ccaeb294
[ "MIT" ]
null
null
null
"""Importer for RES2DINV files Please note that this importer is very rudimentary at the moment. We need test data and real usage to improve upon this. """ from io import StringIO import pandas as pd from reda.containers.ERT import ERT from reda.importers.utils.decorators import enable_result_transforms def _read...
24.118343
79
0.563297
1dd1cc35d95bbbfa78c9ce48ab7e808e37109d59
10,539
py
Python
Tools/resultsdbpy/resultsdbpy/model/failure_context.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/resultsdbpy/resultsdbpy/model/failure_context.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/resultsdbpy/resultsdbpy/model/failure_context.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2019 Apple Inc. 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 list of conditions and the f...
50.913043
135
0.633646
1dd1cd444c27e1c3e9986da2deb92b906dbe516f
3,738
py
Python
sqlalchemy_sluggable/__init__.py
kvesteri/sqlalchemy-sluggable
1487080f4500fd5c339c90c68c28b14ff3a29578
[ "BSD-3-Clause" ]
2
2016-06-09T17:04:47.000Z
2016-08-30T21:28:48.000Z
sqlalchemy_sluggable/__init__.py
kvesteri/sqlalchemy-sluggable
1487080f4500fd5c339c90c68c28b14ff3a29578
[ "BSD-3-Clause" ]
1
2017-03-06T18:31:51.000Z
2017-03-07T08:42:14.000Z
sqlalchemy_sluggable/__init__.py
kvesteri/sqlalchemy-sluggable
1487080f4500fd5c339c90c68c28b14ff3a29578
[ "BSD-3-Clause" ]
null
null
null
from itertools import chain from inflection import parameterize from sqlalchemy import Column, Unicode, event from sqlalchemy.orm import Session from sqlalchemy.orm.exc import NoResultFound __version__ = '0.1.2' DEFAULT_SLUG_OPTIONS = { 'always_update': False, 'populate_from': None, 'separator': '-' } ...
30.145161
79
0.623863
1dd2081e629f2df6ac476ecb8f80ea4e1462beab
442
py
Python
python/mathematics/mat_exp_test.py
jtpio/algo-toolbox
d0f675889889ad52d853d948b0191bbd14c1e9cd
[ "MIT" ]
null
null
null
python/mathematics/mat_exp_test.py
jtpio/algo-toolbox
d0f675889889ad52d853d948b0191bbd14c1e9cd
[ "MIT" ]
null
null
null
python/mathematics/mat_exp_test.py
jtpio/algo-toolbox
d0f675889889ad52d853d948b0191bbd14c1e9cd
[ "MIT" ]
null
null
null
import numpy as np from mat_exp import mat_exp def compute_ans(n): res = mat_exp(m, n, MOD) * m0 xn = (2 * res.item(0, 0)) % MOD - 1 return xn # Tests taken from Google Code Jam 2008, Round 1A, Problem C, Numbers m = np.matrix([[3, 5], [1, 3]]) m0 = np.matrix([[1], [0]]) MOD = 1000 tests = [ [160581...
19.217391
69
0.599548
1dd230b621830b8c97845beec366039b7d73070f
11,407
py
Python
pulser-core/pulser/channels.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
pulser-core/pulser/channels.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
pulser-core/pulser/channels.py
lvignoli/Pulser
263149799d722023b2f7ab1fe653fbdebb2fe894
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pulser Development Team # # 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 i...
35.535826
79
0.608398
1dd242ca47d2b64bfeb0b581bbfdca9e76e93fdf
21,162
py
Python
mlrun/frameworks/tf_keras/callbacks/logging_callback.py
dinal/mlrun
712ccdd2c706af3988791e1562e7a7a2fd113660
[ "Apache-2.0" ]
null
null
null
mlrun/frameworks/tf_keras/callbacks/logging_callback.py
dinal/mlrun
712ccdd2c706af3988791e1562e7a7a2fd113660
[ "Apache-2.0" ]
null
null
null
mlrun/frameworks/tf_keras/callbacks/logging_callback.py
dinal/mlrun
712ccdd2c706af3988791e1562e7a7a2fd113660
[ "Apache-2.0" ]
null
null
null
from typing import Callable, Dict, List, Union import numpy as np import tensorflow as tf from tensorflow import Tensor, Variable from tensorflow.keras.callbacks import Callback import mlrun from mlrun.frameworks._common.loggers import Logger, LoggerMode, TrackableType class LoggingCallback(Callback): """ C...
46.004348
120
0.614687
1dd248260aab0441d7e9e41d6e54bbc99ff62a3d
684
py
Python
ssacc/adapters/zipcodes_csv_gateway.py
tomwillis608/ssacc
f716357fba9383c75b98c3ffdb241d790e204a4b
[ "MIT" ]
1
2021-07-18T20:25:24.000Z
2021-07-18T20:25:24.000Z
ssacc/adapters/zipcodes_csv_gateway.py
tomwillis608/ssacc
f716357fba9383c75b98c3ffdb241d790e204a4b
[ "MIT" ]
314
2020-08-29T18:58:58.000Z
2022-03-29T01:19:54.000Z
ssacc/adapters/zipcodes_csv_gateway.py
tomwillis608/ssacc
f716357fba9383c75b98c3ffdb241d790e204a4b
[ "MIT" ]
null
null
null
"""Gateway to the zipcodes.csv data.""" from ssacc.adapters import csv_utils from ssacc.factories.factory import Factory, InjectionKeys from ssacc.utils import utils def get_zipcodes_filepath(): """Inject filepath to zipcounty data.""" project_root = utils.get_project_root() file_path = project_root.join...
32.571429
71
0.75731
1dd2541436a3aee8ee90ad9c19cfddcd035469f7
1,668
py
Python
Examples/scripts/wind_3.py
jenkayco/hacknostics
4f980b17a2648cb6547cd2d8b442ae23253ab5e6
[ "MIT" ]
2
2019-06-04T20:10:46.000Z
2021-06-07T21:10:39.000Z
Examples/scripts/wind_3.py
jenkayco/hacknostics
4f980b17a2648cb6547cd2d8b442ae23253ab5e6
[ "MIT" ]
2
2019-06-05T03:08:06.000Z
2019-06-05T15:38:01.000Z
Examples/scripts/wind_3.py
jenkayco/hacknostics
4f980b17a2648cb6547cd2d8b442ae23253ab5e6
[ "MIT" ]
2
2019-06-05T03:11:35.000Z
2019-06-05T05:33:45.000Z
import xarray as xr from windspharm.xarray import VectorWind f = xr.open_dataset("/Users/brianpm/Documents/www.ncl.ucar.edu/Applications/Data/cdf/uv300.nc") u = f["U"] v = f["V"] w = VectorWind(u, v) ## VERY IMPORTANT: VectorWind apparently reverses latitude to be decreasing (90 to -90) vort, div = w.vrtdiv() # Rel...
41.7
119
0.698441
1dd26b1af8e7e736d0c29c5b134b7863a61eff78
5,457
py
Python
sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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 may ...
40.125
133
0.663735
1dd293b9d8f88c01206856d5b5d1945fc7d10164
1,137
py
Python
Problems/1293/solve.py
luanshiyinyang/LCNotes
093b109aefd65c2263f59472f7118059d7eeb256
[ "MIT" ]
3
2021-09-04T05:24:20.000Z
2022-02-19T08:31:28.000Z
Problems/1293/solve.py
luanshiyinyang/LCNotes
093b109aefd65c2263f59472f7118059d7eeb256
[ "MIT" ]
null
null
null
Problems/1293/solve.py
luanshiyinyang/LCNotes
093b109aefd65c2263f59472f7118059d7eeb256
[ "MIT" ]
null
null
null
class Solution: def shortestPath(self, grid: List[List[int]], k: int) -> int: m, n = len(grid), len(grid[0]) if m == 1 and n == 1: return 0 k = min(m+n-3, k) # BFS visited, q = set([(0, 0, k)]), collections.deque([(0, 0, k)]) step = 0 ...
40.607143
96
0.350923
1dd318aa0598f63623e19f57eb8af1a91c236839
5,185
py
Python
embiggen/embedders/ensmallen_embedders/node2vec.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
2
2020-01-30T11:57:37.000Z
2020-05-02T00:05:49.000Z
embiggen/embedders/ensmallen_embedders/node2vec.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
93
2020-01-26T00:43:51.000Z
2020-05-10T03:29:54.000Z
embiggen/embedders/ensmallen_embedders/node2vec.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
5
2020-02-13T07:18:11.000Z
2020-03-19T08:03:34.000Z
"""Module providing abstract Node2Vec implementation.""" from typing import Optional, Union, Dict, Any from ensmallen import Graph import numpy as np import pandas as pd from ensmallen import models from embiggen.utils.abstract_models import abstract_class, AbstractEmbeddingModel, EmbeddingResult @abstract_class clas...
31.047904
98
0.60135
1dd3202b1cd6f2c676b026e9b5d28fd66022e8b4
22,183
py
Python
yaml2sbml/YamlModel.py
yannikschaelte/yaml2sbml
aaec8b225c9e67d9959d5788f4194c4f0081d031
[ "MIT" ]
null
null
null
yaml2sbml/YamlModel.py
yannikschaelte/yaml2sbml
aaec8b225c9e67d9959d5788f4194c4f0081d031
[ "MIT" ]
null
null
null
yaml2sbml/YamlModel.py
yannikschaelte/yaml2sbml
aaec8b225c9e67d9959d5788f4194c4f0081d031
[ "MIT" ]
null
null
null
import yaml import os.path from typing import Union import copy from .yaml2sbml import _parse_yaml_dict from .yaml2PEtab import _yaml2petab from .yaml_validation import _validate_yaml_from_dict class YamlModel: """ Functionality to set up, edit, load and write yaml models. """ def __init__(self): ...
35.379585
87
0.538295
1dd330edac624731e1352787a0692d63532d0a51
2,566
py
Python
nvflare/fuel/hci/base64_utils.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
155
2021-08-05T18:05:09.000Z
2022-03-27T15:32:56.000Z
nvflare/fuel/hci/base64_utils.py
Can-Zhao/NVFlare
52d9dee9972b32d49d9a8add52a652ce3bb878b5
[ "Apache-2.0" ]
216
2021-12-01T06:07:12.000Z
2022-03-30T23:34:02.000Z
nvflare/fuel/hci/base64_utils.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 ...
27.891304
87
0.699532
1dd3365d6a7fa08aa7e2634c395541c68fc376cf
1,143
py
Python
djangocms_navigation/filters.py
Bernardvdv/djangocms-navigation
200fff28cbb46fb2fd2504d00702cf2be8d687fa
[ "BSD-3-Clause" ]
null
null
null
djangocms_navigation/filters.py
Bernardvdv/djangocms-navigation
200fff28cbb46fb2fd2504d00702cf2be8d687fa
[ "BSD-3-Clause" ]
null
null
null
djangocms_navigation/filters.py
Bernardvdv/djangocms-navigation
200fff28cbb46fb2fd2504d00702cf2be8d687fa
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from django.utils.translation import gettext_lazy as _ from cms.utils.i18n import get_language_tuple, get_site_language_from_request class LanguageFilter(admin.SimpleListFilter): title = _("language") parameter_name = "language" def lookups(self, request, model...
33.617647
87
0.6028
1dd347ebc9e4231663756b2c437f93db80a92729
459
py
Python
src/13/putting_limits_on_memory_and_cpu_usage/example.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
14
2017-05-20T04:06:46.000Z
2022-01-23T06:48:45.000Z
src/13/putting_limits_on_memory_and_cpu_usage/example.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
1
2021-06-10T20:17:55.000Z
2021-06-10T20:17:55.000Z
src/13/putting_limits_on_memory_and_cpu_usage/example.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
15
2017-03-29T17:57:33.000Z
2021-08-24T02:20:08.000Z
import signal import resource import os def time_exceeded(signo, frame): print("Time's up!") raise SystemExit(1) def set_max_runtime(seconds): # Install the signal handler and set a resource limit soft, hard = resource.getrlimit(resource.RLIMIT_CPU) resource.setrlimit(resource.RLIMIT_CPU, (seconds...
24.157895
60
0.721133
1dd34d9d7985151809ad2d99b965b607e25baa1f
14,352
py
Python
services/utils/activities.py
CPSSD/rabble
88ad5f4cfd49c00037ffdd0f0b5d463dcbf299c9
[ "MIT" ]
3
2020-03-17T23:18:39.000Z
2021-03-06T02:56:46.000Z
services/utils/activities.py
CPSSD/rabble
88ad5f4cfd49c00037ffdd0f0b5d463dcbf299c9
[ "MIT" ]
3
2020-03-21T08:47:34.000Z
2020-05-11T21:56:56.000Z
services/utils/activities.py
CPSSD/rabble
88ad5f4cfd49c00037ffdd0f0b5d463dcbf299c9
[ "MIT" ]
1
2020-03-17T14:13:54.000Z
2020-03-17T14:13:54.000Z
import json import sys import time import os from services.proto import database_pb2 import requests from requests_http_signature import HTTPSignatureHeaderAuth class ActivitiesUtil: def __init__(self, logger, db): host_name = os.environ.get("HOST_NAME") if not host_name: print("Ple...
39.977716
98
0.580477
1dd3570da01eb8a73beb03e8f0f5f91c8a54da4b
2,758
py
Python
Network/HTTP/ISEConfigParse.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
null
null
null
Network/HTTP/ISEConfigParse.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
null
null
null
Network/HTTP/ISEConfigParse.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/python3.4 # -*- coding=utf-8 -*- #本脚由亁颐堂现任明教教主编写,用于乾颐盾Python课程! #教主QQ:605658506 #亁颐堂官网www.qytang.com #乾颐盾是由亁颐堂现任明教教主开发的综合性安全课程 #包括传统网络安全(防火墙,IPS...)与Python语言和黑客渗透课程! import sys sys.path.append('/usr/local/lib/python3.4/dist-packages/PyQYT/ExtentionPackages') sys.path.append('/usr/lib/python3.4/site-packages...
43.09375
121
0.674764
1dd3bb4b8c160ca77d7181281e926f315a809d1d
4,696
py
Python
tpm2_pytss/util/simulator.py
pdxjohnny/tpm2-pytss
484e3592208f196bec6381f36fdcdfd99bd019a3
[ "BSD-2-Clause" ]
null
null
null
tpm2_pytss/util/simulator.py
pdxjohnny/tpm2-pytss
484e3592208f196bec6381f36fdcdfd99bd019a3
[ "BSD-2-Clause" ]
null
null
null
tpm2_pytss/util/simulator.py
pdxjohnny/tpm2-pytss
484e3592208f196bec6381f36fdcdfd99bd019a3
[ "BSD-2-Clause" ]
null
null
null
# SPDX-License-Identifier: MIT # Copyright (c) 2019 Intel Corporation # All rights reserved. import os import atexit import random import asyncio import subprocess class SimulatorFailedToStart(Exception): pass # pragma: no cov class Simulator: HOST = "127.0.0.1" def __init__(self, binary="tpm_server"...
32.839161
86
0.575596
1dd3e710ea506535897f0966008acad110e0b457
1,248
py
Python
tests/test_validators.py
salvatore287/omgircd3
19666f0828c67c8926975880debf5e975cf5c2ff
[ "0BSD" ]
2
2017-11-13T09:43:10.000Z
2018-04-25T22:28:04.000Z
tests/test_validators.py
salvatore287/omgircd3
19666f0828c67c8926975880debf5e975cf5c2ff
[ "0BSD" ]
null
null
null
tests/test_validators.py
salvatore287/omgircd3
19666f0828c67c8926975880debf5e975cf5c2ff
[ "0BSD" ]
1
2021-04-16T11:42:51.000Z
2021-04-16T11:42:51.000Z
from omgircd3.ircd import is_valid_channel_name, is_valid_nickname def test_valid_channel_name(): # lowercase assert is_valid_channel_name('meuh') # with numbers assert is_valid_channel_name('meuh42') # uppercase assert is_valid_channel_name('MEUH42') # lowercase with sign assert is_va...
26
66
0.704327
1dd3e9ff2d5ee7ec519703b04b09b9da47b11501
106
py
Python
pypeloton/__init__.py
raman325/pypeloton
b653bd6ae1d28ad2dde420a9f369467c2aabe6a2
[ "MIT" ]
2
2021-03-13T21:14:27.000Z
2022-01-03T01:43:06.000Z
pypeloton/__init__.py
raman325/pypeloton
b653bd6ae1d28ad2dde420a9f369467c2aabe6a2
[ "MIT" ]
null
null
null
pypeloton/__init__.py
raman325/pypeloton
b653bd6ae1d28ad2dde420a9f369467c2aabe6a2
[ "MIT" ]
null
null
null
from .pypeloton import Peloton, PelotonAsync # noqa: F401 from .version import __version__ # noqa: F401
35.333333
58
0.773585
1dd3f538cd2637ab31d3578dc400495d88e0d616
5,324
py
Python
melody/constraints/pitch_step_constraint.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
1
2021-05-06T19:45:54.000Z
2021-05-06T19:45:54.000Z
melody/constraints/pitch_step_constraint.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
melody/constraints/pitch_step_constraint.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
""" File: pitch_step_constraint.py Purpose: Constraint that compute a second pitch from the first based on a number of diatonic steps. """ from melody.constraints.abstract_constraint import AbstractConstraint from tonalmodel.pitch_scale import PitchScale from structure.note import Note class PitchStepConstraint(Ab...
38.57971
113
0.671675
1dd3f6970e0051593b68290165ae396d0da67c99
2,192
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/source_trigger.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/source_trigger.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/source_trigger.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 ...
39.854545
85
0.639599
1dd40b9933678559b13f801c8429c7fe1a024c49
2,882
py
Python
nearpy/utils/utils.py
akabos/NearPy
485ee37952fe68fd7fed85f4bf8f47e2076e9e36
[ "MIT" ]
null
null
null
nearpy/utils/utils.py
akabos/NearPy
485ee37952fe68fd7fed85f4bf8f47e2076e9e36
[ "MIT" ]
null
null
null
nearpy/utils/utils.py
akabos/NearPy
485ee37952fe68fd7fed85f4bf8f47e2076e9e36
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2013 Ole Krause-Sparmann # 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,...
31.326087
81
0.680083
1dd40f2239e381c2fb74e533d55d0986c2972dbe
3,337
py
Python
ros2_ws/src/utils/rosbag_to_hdf5/rosbag_to_hdf5/rosbot_gazebo_data_recorder.py
FastSense/rosbot-ros2
c2d274ce179534fec5b2786a6f96b6d638019ac4
[ "MIT" ]
null
null
null
ros2_ws/src/utils/rosbag_to_hdf5/rosbag_to_hdf5/rosbot_gazebo_data_recorder.py
FastSense/rosbot-ros2
c2d274ce179534fec5b2786a6f96b6d638019ac4
[ "MIT" ]
2
2021-07-05T14:50:09.000Z
2021-09-14T15:21:11.000Z
ros2_ws/src/utils/rosbag_to_hdf5/rosbag_to_hdf5/rosbot_gazebo_data_recorder.py
FastSense/metalbot
063c897a16129d9aa88c2c7c52bdf6547af894e4
[ "MIT" ]
null
null
null
import rclpy from rclpy.node import Node from cv_bridge import CvBridge from sensor_msgs.msg import PointCloud2 from nav_msgs.msg import Odometry import h5py import numpy as np import signal import sys path_to_save_hdf5 = None odom_positions = [] odom_rotations = [] odom_stamps = [] pcd_data = [] pcd_stamps = [] cl...
32.398058
115
0.662871
1dd482ba4e0d9514dd23398d668efe2203fd5a41
5,028
py
Python
app/user/tests/test_user_api.py
johnDenbrough/recipe-app-api
617dbaa56cd0b19e0131a21e31bcec617a1911eb
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
johnDenbrough/recipe-app-api
617dbaa56cd0b19e0131a21e31bcec617a1911eb
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
johnDenbrough/recipe-app-api
617dbaa56cd0b19e0131a21e31bcec617a1911eb
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status CREATE_USER_URL = reverse('user:create') TOKEN_URL = reverse('user:token') ME_URL = reverse('user:me') def create_user(**params)...
34.204082
77
0.627287
1dd4a079872c81b16e845aacd040d7bd216a9372
968
py
Python
tests/renderers/script/test_script_parse_code.py
timvink/pheasant
eb5b0a8b5473baad5ad4903984433fe763f5312e
[ "MIT" ]
24
2018-05-25T15:23:30.000Z
2021-06-09T10:56:52.000Z
tests/renderers/script/test_script_parse_code.py
timvink/pheasant
eb5b0a8b5473baad5ad4903984433fe763f5312e
[ "MIT" ]
14
2019-04-30T10:51:01.000Z
2020-09-16T20:37:30.000Z
tests/renderers/script/test_script_parse_code.py
timvink/pheasant
eb5b0a8b5473baad5ad4903984433fe763f5312e
[ "MIT" ]
9
2019-06-12T10:54:18.000Z
2022-01-15T21:19:05.000Z
import pytest @pytest.fixture() def convert(script): def func(source): return script.convert(source, max_line_length=88) return func def test_python_parse_source(convert): source = "# # Title\n\n# ## Section\n" assert convert(source) == source source = "# # Title\n\n# abc\n# def\n# ghi\...
30.25
64
0.572314
1dd4c9e5ca65dddd5128bc71b4f64bca06079cb2
1,957
py
Python
code/windowing_on_data.py
solothinker/Breaking-Brain
447b3268d3f7a24a3db7c004cf3a9b9c5c6979fc
[ "MIT" ]
null
null
null
code/windowing_on_data.py
solothinker/Breaking-Brain
447b3268d3f7a24a3db7c004cf3a9b9c5c6979fc
[ "MIT" ]
null
null
null
code/windowing_on_data.py
solothinker/Breaking-Brain
447b3268d3f7a24a3db7c004cf3a9b9c5c6979fc
[ "MIT" ]
null
null
null
import os import numpy as np import pandas as pd import matplotlib.pyplot as plt from Filters import FilterWilter plt.rcParams["figure.figsize"] = (20,10) df = pd.read_csv("../data/allRawData.csv") data = df['value'].values samples = 512.0 sampleLen = len(data)#10000 order = 6 cutoff = 50 # desired cutoff freq...
24.772152
60
0.630046
1dd4fb894934514d06506ef6c17d149bfb5221da
1,906
py
Python
tests/integration/components/mutually_exclusive/test_month_year_date_single_checkbox_override.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/integration/components/mutually_exclusive/test_month_year_date_single_checkbox_override.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/integration/components/mutually_exclusive/test_month_year_date_single_checkbox_override.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
from tests.integration.components.mutually_exclusive.schema_urls import ( MUTUALLY_EXCLUSIVE_MONTH_YEAR_DATE, ) from tests.integration.integration_test_case import IntegrationTestCase class TestMonthYearDateSingleCheckboxOverride(IntegrationTestCase): """ Tests to ensure that the server-side validation ...
28.447761
95
0.593389
1dd5040326fcfeaa61f7b18b614c3b34e82d0785
3,790
py
Python
fastmvsnet/utils/io.py
molspace/FastMVS_experiments
b897015d77600687ca2addf99bb6a6f0de524e5f
[ "MIT" ]
419
2019-08-13T06:03:32.000Z
2022-03-29T06:26:08.000Z
fastmvsnet/utils/io.py
molspace/FastMVS_experiments
b897015d77600687ca2addf99bb6a6f0de524e5f
[ "MIT" ]
31
2019-08-20T19:25:14.000Z
2022-03-30T05:14:39.000Z
fastmvsnet/utils/io.py
molspace/FastMVS_experiments
b897015d77600687ca2addf99bb6a6f0de524e5f
[ "MIT" ]
99
2019-08-13T08:52:46.000Z
2022-03-20T08:30:22.000Z
import os import re import numpy as np import sys import errno import pickle import cv2 import torch def mkdir(path): os.makedirs(path, exist_ok=True) def load_cam_dtu(file, num_depth=0, interval_scale=1.0): """ read camera txt file """ cam = np.zeros((2, 4, 4)) words = file.read().split() # rea...
25.958904
118
0.526121
1dd50ee7b65f28eb1e76d5f9739db19d21830edf
4,541
py
Python
var/spack/repos/builtin/packages/gaussian-view/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
348
2015-12-30T04:05:54.000Z
2022-02-21T10:57:53.000Z
var/spack/repos/builtin/packages/gaussian-view/package.py
BenWibking/spack
49b3b43a4a9375210b578635d9240875a5f3106b
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3,994
2015-12-09T09:43:00.000Z
2017-11-04T02:46:39.000Z
var/spack/repos/builtin/packages/gaussian-view/package.py
flatironinstitute/spack
71a7b1b5fadbe16bcdb36fb679aa828cd7d83b02
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
359
2015-12-16T18:25:55.000Z
2017-11-02T14:51:13.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) # ---------------------------------------------------------------------------- import os import llnl.util.tty as tty fro...
37.221311
87
0.642149
1dd52044fe199a22f3babbc396b19cdfeabbbec0
999
py
Python
src/economy/migrations/0020_alter_expense_reimbursement.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
7
2017-04-14T15:28:29.000Z
2021-09-10T09:45:38.000Z
src/economy/migrations/0020_alter_expense_reimbursement.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
799
2016-04-28T09:31:50.000Z
2022-03-29T09:05:02.000Z
src/economy/migrations/0020_alter_expense_reimbursement.py
bornhack/bornhack-website
40ed0875f5129a4c8ae1887e33e7dedb4981dadc
[ "BSD-3-Clause" ]
35
2016-04-28T09:23:53.000Z
2021-05-02T12:36:01.000Z
# Generated by Django 3.2.7 on 2021-09-02 12:00 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("economy", "0019_fix_reimbursement_help_texts"), ] operations = [ migrations.AlterField( model_n...
37
358
0.652653
1dd524c44b577685d14e203151ffc2cea799d389
878
py
Python
contrib/go/tests/python/pants_test/contrib/go/tasks/test_go_binary_integration.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
contrib/go/tests/python/pants_test/contrib/go/tasks/test_go_binary_integration.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
contrib/go/tests/python/pants_test/contrib/go/tasks/test_go_binary_integration.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2017 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals from pants.util.dirutil import safe_delete from pants.util.process_handler import subproc...
38.173913
83
0.77221
1dd53f0672a9734fe45b8501cc6dbe5d94b323a5
552,065
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/_models_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/_models_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/_models_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
43.576052
750
0.682266
1dd549053bd361aee9738bdbcdab428a33671d2d
10,570
py
Python
Model/distributional_q_model.py
Skylark0924/Gamma_Reward
2eed6e2ea246974946b16bb7743fa55219436580
[ "Apache-2.0" ]
12
2020-10-15T08:11:50.000Z
2021-12-11T03:10:47.000Z
Model/distributional_q_model.py
Skylark0924/Gamma_Reward
2eed6e2ea246974946b16bb7743fa55219436580
[ "Apache-2.0" ]
null
null
null
Model/distributional_q_model.py
Skylark0924/Gamma_Reward
2eed6e2ea246974946b16bb7743fa55219436580
[ "Apache-2.0" ]
2
2021-01-28T09:53:11.000Z
2021-10-03T17:29:41.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from Model.tf_modelv2 import TFModelV2 from ray.rllib.utils import try_import_tf tf = try_import_tf() class DistributionalQModel(TFModelV2): """Extension of standard TFModel to provid...
40.343511
79
0.553453
1dd559a15b25e99a66adbd3ff281e19b396bc32f
272
py
Python
laser-scanning/python/proj-laser-pattern.py
olaals/prosjektoppgave
048c5c01cf428846c76b1c27abd4c0f451056e03
[ "MIT" ]
null
null
null
laser-scanning/python/proj-laser-pattern.py
olaals/prosjektoppgave
048c5c01cf428846c76b1c27abd4c0f451056e03
[ "MIT" ]
null
null
null
laser-scanning/python/proj-laser-pattern.py
olaals/prosjektoppgave
048c5c01cf428846c76b1c27abd4c0f451056e03
[ "MIT" ]
null
null
null
import cv2 import numpy as np if __name__ == "__main__": WIDTH = 1920 HEIGHT = 1080 WIDTH_LINE = 6 img = np.zeros((HEIGHT, WIDTH, 3)) img[:, int(WIDTH/2-WIDTH_LINE/2):int(WIDTH/2+WIDTH_LINE/2), 2] = 255 cv2.imwrite("../patterns/red.png", img)
18.133333
72
0.617647
1dd55a2e1fab0a5a101b62bf04c4f200f318c114
3,215
py
Python
setup.py
raffienficiaud/brain-data-visualization
edc685e978da5a514686f38106a4cbd274e33f75
[ "MIT" ]
6
2019-01-05T20:34:29.000Z
2021-07-31T20:02:52.000Z
setup.py
raffienficiaud/brain-data-vizualisation
edc685e978da5a514686f38106a4cbd274e33f75
[ "MIT" ]
null
null
null
setup.py
raffienficiaud/brain-data-vizualisation
edc685e978da5a514686f38106a4cbd274e33f75
[ "MIT" ]
2
2021-07-31T20:02:53.000Z
2022-03-07T18:12:25.000Z
try: from setuptools import setup, convert_path has_setup_tools = True except ImportError: # Installing from Paraview directly does not include setuptools from distutils.core import setup from distutils.util import convert_path has_setup_tools = False def _get_version(): """ Convenient fu...
42.302632
174
0.704821
1dd55e635016a4f277da10deffce2736f0dc4e9d
1,363
py
Python
leetcode/medium/92-Reverse_LL_II.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
1
2020-02-25T10:32:27.000Z
2020-02-25T10:32:27.000Z
leetcode/medium/92-Reverse_LL_II.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
null
null
null
leetcode/medium/92-Reverse_LL_II.py
shubhamoli/practice
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
[ "MIT" ]
null
null
null
""" Leetcode #92 """ class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def reverseBetween(self, head: ListNode, m: int, n: int) -> ListNode: if not head: return None if not head.next: return head ...
19.753623
73
0.480558
1dd58259a7dcbd01d99f33ed5617ade14a5b94f9
2,938
py
Python
archive/Decathlon/meta_network.py
tueimage/meta-segmentation-msc-2018
d497e6ea99b89fdb54e11568452894f022269043
[ "MIT" ]
3
2019-07-16T12:31:38.000Z
2020-07-22T17:03:53.000Z
archive/Decathlon/meta_network.py
tueimage/meta-segmentation-msc-2018
d497e6ea99b89fdb54e11568452894f022269043
[ "MIT" ]
null
null
null
archive/Decathlon/meta_network.py
tueimage/meta-segmentation-msc-2018
d497e6ea99b89fdb54e11568452894f022269043
[ "MIT" ]
1
2020-12-10T12:56:06.000Z
2020-12-10T12:56:06.000Z
from utils import meta_generator from keras.models import Model, load_model from keras.optimizers import Adam from keras.layers import Flatten, Dense import numpy as np from scipy.stats import kurtosis, skew class meta_learner(): def __init__(self, fe): self.fe = fe self.minibatch_size= 5 s...
48.163934
194
0.665419
1dd5d5a11d34bd3f9faab18ff6771ec7bc84014e
9,147
py
Python
src/alu/alud.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
src/alu/alud.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
20
2020-01-13T04:19:37.000Z
2020-02-12T14:25:44.000Z
src/alu/alud.py
Aimini/hm-51
2d46323388a0679b2f99d1a33f5a0d55a5f838e6
[ "MIT" ]
null
null
null
import sys import argparse ## ## 2019-12-18 23:10:18 ## AI ## genrate double operands ALU LUT(some function using A only) ## AT28C64 chips have 13bit input, 8 bit output, for ## support 8 + 8 = 16 bit input, I split it's to two 4-bit part, low and high ## 1 bit for fi(flag in), 4bit for operand A nibble, 4bit for opera...
28.85489
108
0.483984
1dd5df408715d478d03066b01b0a362894a43e00
13,789
py
Python
src/py42/clients/settings/org_settings.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
src/py42/clients/settings/org_settings.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
src/py42/clients/settings/org_settings.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
from py42._compat import str from py42._compat import UserDict from py42.clients.settings import SettingProperty from py42.clients.settings import TSettingProperty from py42.clients.settings._converters import bool_to_str from py42.clients.settings._converters import bytes_to_gb from py42.clients.settings._converters i...
37.986226
149
0.720574
1dd5f38bdda6e230830540819be3e0bf2b7e93dc
2,990
py
Python
tests/variantstudy/model/command/conftest.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
2
2021-11-15T09:26:33.000Z
2022-02-24T09:53:54.000Z
tests/variantstudy/model/command/conftest.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
542
2021-01-11T13:23:47.000Z
2022-03-31T15:38:10.000Z
tests/variantstudy/model/command/conftest.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
1
2020-10-01T12:18:15.000Z
2020-10-01T12:18:15.000Z
import zipfile from datetime import datetime from pathlib import Path from unittest.mock import Mock import pytest from sqlalchemy import create_engine from antarest.core.config import Config from antarest.core.utils.fastapi_sqlalchemy import DBSessionMiddleware from antarest.dbmodel import Base from antarest.matrixs...
32.150538
85
0.740134
1dd6052d47daa35f6dc204271b7f04f0e4259c03
2,347
py
Python
FlowCalc/flow_segments.py
Will-Robin/FlowCalc
8b034f3039b709cf2d6e1b713be2a5428cead2b2
[ "MIT" ]
null
null
null
FlowCalc/flow_segments.py
Will-Robin/FlowCalc
8b034f3039b709cf2d6e1b713be2a5428cead2b2
[ "MIT" ]
null
null
null
FlowCalc/flow_segments.py
Will-Robin/FlowCalc
8b034f3039b709cf2d6e1b713be2a5428cead2b2
[ "MIT" ]
null
null
null
import numpy as np from FlowCalc import flow_segments as FlS def time_segment(start, end, step): """ Creates a time segment. Parameters ---------- start: float Start time for segment in seconds. end: float End time for segment in seconds. step: int Step increment i...
20.059829
76
0.57222
1dd60e711b6729e929e04be360fc56ab87067fa0
6,201
py
Python
stellarlab/catalog/utils.py
wangleon/stella
3942f8e687065bb96760140596747cbbe6dad04b
[ "Apache-2.0" ]
null
null
null
stellarlab/catalog/utils.py
wangleon/stella
3942f8e687065bb96760140596747cbbe6dad04b
[ "Apache-2.0" ]
null
null
null
stellarlab/catalog/utils.py
wangleon/stella
3942f8e687065bb96760140596747cbbe6dad04b
[ "Apache-2.0" ]
1
2021-10-02T02:18:28.000Z
2021-10-02T02:18:28.000Z
import math import numpy as np import matplotlib import matplotlib.pyplot as plt import matplotlib.colors as mcolors from astropy.coordinates import SkyCoord def plot_skymap(ra, dec, figfile, projection='hammer', figsize=(8,4.5), dpi=150, size=1, alpha=0.1): """Plot a skymap of sample stars. Args: ...
35.434286
80
0.618126
1dd60f7ebf791b1c4c6a918eaac2393f78069c31
1,874
py
Python
venv/Lib/site-packages/pyrogram/methods/auth/check_password.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/methods/auth/check_password.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/methods/auth/check_password.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# 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...
33.464286
85
0.671825
1dd674c7c981fa590c271c97549766b987a0fb14
2,442
py
Python
privex/eos/adapters.py
Privex/eos-python
df4f751c8cd46ba0a13385f0e5eb630d471d6f65
[ "X11" ]
1
2020-02-16T23:17:05.000Z
2020-02-16T23:17:05.000Z
privex/eos/adapters.py
Privex/eos-python
df4f751c8cd46ba0a13385f0e5eb630d471d6f65
[ "X11" ]
5
2020-03-24T18:07:08.000Z
2021-08-23T20:40:04.000Z
privex/eos/adapters.py
Privex/eos-python
df4f751c8cd46ba0a13385f0e5eb630d471d6f65
[ "X11" ]
null
null
null
from abc import abstractmethod from os.path import expanduser, join from typing import List, Tuple from privex.db import SqliteWrapper, GenericDBWrapper SQLITE_SCHEMA = [ ( 'nodes', "CREATE TABLE nodes (" " id INTEGER PRIMARY KEY AUTOINCREMENT, url TEXT NOT NULL, network TEXT NO...
30.525
117
0.653563
1dd6940b7640764dae77038a649525bcafcae745
4,401
py
Python
tests/test_xml_parser.py
klahnakoski/mo-parsing
885bf3fd61430d5fa15164168b975b18988fcf9e
[ "MIT" ]
1
2021-10-30T21:18:29.000Z
2021-10-30T21:18:29.000Z
tests/test_xml_parser.py
klahnakoski/mo-parsing
885bf3fd61430d5fa15164168b975b18988fcf9e
[ "MIT" ]
22
2020-04-15T14:49:30.000Z
2021-12-22T02:49:52.000Z
tests/test_xml_parser.py
klahnakoski/mo-parsing
885bf3fd61430d5fa15164168b975b18988fcf9e
[ "MIT" ]
null
null
null
# encoding: utf-8 import ast from unittest import TestCase, skip from mo_dots import unwraplist from mo_threads.profiles import CProfiler, write_profiles from mo_times import Timer from mo_parsing import ( Whitespace, Literal, Regex, Word, Group, Forward, Log, ParseException, Optio...
27.335404
88
0.510339
1dd6bcdb719a0c4956e8775536eb92819998ceb5
2,033
py
Python
test/test_safe_updates.py
bufferx/asyncmongo
c68ba72a79507e21f28c5525e1f6954cc68db4cf
[ "Apache-2.0" ]
209
2015-01-01T07:43:06.000Z
2021-11-15T09:31:35.000Z
test/test_safe_updates.py
bufferx/asyncmongo
c68ba72a79507e21f28c5525e1f6954cc68db4cf
[ "Apache-2.0" ]
3
2015-09-16T18:29:09.000Z
2019-04-09T13:14:18.000Z
test/test_safe_updates.py
bufferx/asyncmongo
c68ba72a79507e21f28c5525e1f6954cc68db4cf
[ "Apache-2.0" ]
51
2015-01-06T13:46:12.000Z
2020-11-23T17:29:55.000Z
import tornado.ioloop import time import logging import test_shunt import asyncmongo TEST_TIMESTAMP = int(time.time()) class SafeUpdatesTest(test_shunt.MongoTest): def test_update_safe(self): test_shunt.setup() db = asyncmongo.Client(pool_id='testinsert', host='127.0.0.1', port=27018, dbname='tes...
46.204545
124
0.649287
1dd6e519fa594c05325388892e8dfbc45c2884be
3,052
py
Python
hs_tracking/middleware.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_tracking/middleware.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_tracking/middleware.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
from django.utils.deprecation import MiddlewareMixin from .models import Session from . import utils import re RESOURCE_RE = re.compile('resource/([0-9a-f]{32})/') # parser for resource id BAG_RE = re.compile('bags/([0-9a-f]{32})\.zip') # parser for resource id LANDING_RE = re.compile('resource/([0-9a-f]{32})/$') ...
31.791667
95
0.6173
1dd7225d518e57dfbbd47c87ad9f54a131daacb8
2,717
py
Python
e3nn/math/group/linalg.py
SuperXiang/e3nn
b97b2b9e83f896c6b8b21b2fe20dc356a2c18e0c
[ "MIT" ]
1
2021-02-09T10:34:09.000Z
2021-02-09T10:34:09.000Z
e3nn/math/group/linalg.py
SuperXiang/e3nn
b97b2b9e83f896c6b8b21b2fe20dc356a2c18e0c
[ "MIT" ]
null
null
null
e3nn/math/group/linalg.py
SuperXiang/e3nn
b97b2b9e83f896c6b8b21b2fe20dc356a2c18e0c
[ "MIT" ]
null
null
null
import warnings import torch from e3nn.math import complete_basis, direct_sum, kron from e3nn.math.group import Group def intertwiners(group: Group, D1, D2, eps=1e-9): r""" Compute a basis of the vector space of matrices A such that D1(g) A = A D2(g) for all g in O(3) """ e = group.identity() ...
31.964706
106
0.59919
1dd729906a8d92fefe027f841196fcd478ad18fd
3,973
py
Python
alipay/aop/api/request/MybankCreditSceneprodLprQueryRequest.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/request/MybankCreditSceneprodLprQueryRequest.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/request/MybankCreditSceneprodLprQueryRequest.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.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.MybankCreditSceneprodLprQueryModel import MybankCreditSceneprodLprQueryModel class MybankCreditSceneprodLprQueryRequest(object): ...
27.4
148
0.644853
1dd7302077211d2c86e112734759b6fd08973d81
27,805
py
Python
openbb_terminal/economy/prediction/pred_controller.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
openbb_terminal/economy/prediction/pred_controller.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
openbb_terminal/economy/prediction/pred_controller.py
JerBouma/OpenBBTerminal
0c60d70cb29b0a6e4db41d6dd0d34f79a6169b27
[ "MIT" ]
null
null
null
"""Fred Series Prediction Controller""" __docformat__ = "numpy" import argparse import logging from typing import Dict, List from prompt_toolkit.completion import NestedCompleter from openbb_terminal import feature_flags as obbff from openbb_terminal.common.prediction_techniques import ( arima_model, arima_v...
36.346405
111
0.513757
1dd739bf811d0ac66026f966f4b1bd600b5b5e7b
11,201
py
Python
btlejack/jobs.py
ins1gn1a/btlejack
7cd784a5c9ead820bdc1b1745d2d8e0773e6facb
[ "MIT" ]
1,522
2018-08-11T19:27:30.000Z
2022-03-25T21:10:11.000Z
btlejack/jobs.py
ins1gn1a/btlejack
7cd784a5c9ead820bdc1b1745d2d8e0773e6facb
[ "MIT" ]
71
2018-08-12T06:38:46.000Z
2022-03-22T09:55:31.000Z
btlejack/jobs.py
ins1gn1a/btlejack
7cd784a5c9ead820bdc1b1745d2d8e0773e6facb
[ "MIT" ]
165
2018-08-12T20:29:22.000Z
2022-02-19T19:17:23.000Z
""" BtleJack jobs. """ from threading import Thread, Lock from serial.tools.list_ports import comports from btlejack.packets import * from btlejack.interface import AbstractInterface from btlejack.link import Link, DeviceError class SingleSnifferInterface(AbstractInterface): """ Single sniffer interface cla...
30.687671
97
0.568253
1dd74c82e9f1102df7f5b76dc822e9d75ac4d18b
3,319
py
Python
tests/integration/test_steady_ring_vortex_lattice_method.py
camUrban/PteraSoftware
cd5163aa2cc5ea76a906b271d9d9958ad99e57bd
[ "MIT" ]
68
2020-07-18T20:49:37.000Z
2022-03-23T21:07:35.000Z
tests/integration/test_steady_ring_vortex_lattice_method.py
camUrban/PteraSoftware
cd5163aa2cc5ea76a906b271d9d9958ad99e57bd
[ "MIT" ]
13
2020-08-20T04:56:44.000Z
2022-03-27T14:34:02.000Z
tests/integration/test_steady_ring_vortex_lattice_method.py
camUrban/PteraSoftware
cd5163aa2cc5ea76a906b271d9d9958ad99e57bd
[ "MIT" ]
17
2020-07-23T22:26:31.000Z
2022-03-27T12:34:27.000Z
"""This module is a testing case for the steady ring vortex lattice method solver. Based on an identical XFLR5 testing case, the expected output for this case is: CL: 0.788 CDi: 0.019 Cm: -0.687 Note: The expected output was created using XFLR5's inviscid VLM2 analysis type, which is a ring vor...
31.609524
138
0.697499
1dd799455c52087425cc3963dda579a5ae0212d2
767
py
Python
django_extended/fields/color.py
dalou/django-extended
a7ba952ea7089cfb319b4615ae098579c9ab14f9
[ "BSD-3-Clause" ]
1
2015-12-14T17:16:04.000Z
2015-12-14T17:16:04.000Z
django_extended/fields/color.py
dalou/django-extended
a7ba952ea7089cfb319b4615ae098579c9ab14f9
[ "BSD-3-Clause" ]
null
null
null
django_extended/fields/color.py
dalou/django-extended
a7ba952ea7089cfb319b4615ae098579c9ab14f9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from django import forms from django.utils.text import capfirst from ..forms import ColorField as ColorFormField, ColorInput class ColorField(models.CharField): """ A text field made to accept hexadecimal color value (#FFFFFF) with a color picker widg...
28.407407
73
0.696219
1dd7a6993c328028a7b3a939fbc3e8a0aa30b080
2,735
py
Python
plugins/usd/maya/inventory/action_switch_usd_to_abc.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
plugins/usd/maya/inventory/action_switch_usd_to_abc.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
plugins/usd/maya/inventory/action_switch_usd_to_abc.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import avalon.io import avalon.api from avalon.io import ObjectId class SwitchUSDToABC(avalon.api.InventoryAction): """Switch USD stage to alembic """ label = "Switch USD to Alembic" icon = "wrench" color = "#00a2ff" order = -10 @staticmethod def is_compatible(container): if ...
30.730337
77
0.618647
1dd7a9db49ab516e1dd4a1cc3a712531c357e35a
534
py
Python
sleepy/__init__.py
HitSyr/Sleepy
70ec9479fb947a624e3c658ea39c886c30bf794d
[ "MIT" ]
4
2021-12-08T21:38:14.000Z
2022-01-30T04:16:38.000Z
sleepy/__init__.py
HitSyr/Sleepy
70ec9479fb947a624e3c658ea39c886c30bf794d
[ "MIT" ]
2
2021-09-29T13:33:26.000Z
2021-12-12T12:52:16.000Z
sleepy/__init__.py
HitSyr/Sleepy
70ec9479fb947a624e3c658ea39c886c30bf794d
[ "MIT" ]
null
null
null
""" Sleepy Discord Bot ~~~~~~~~~~~~~~~~~~ A Discord bot for those who like to sleep. :copyright: (c) 2018-present HitchedSyringe :license: MPL-2.0, see LICENSE for more information. """ __title__ = "sleepy" __author__ = "HitchedSyringe" __copyright__ = "Copyright (c) 2018-present HitchedSyringe" __license__ = "MPL-...
19.777778
59
0.705993
1dd7b0189aa51950fbb8b529d45a7502123beb0c
10,389
py
Python
bayleaf/families.py
schluedj/bayleaf
c1ff85d654e87fa78dcddac51516571d4c4f2ae2
[ "MIT" ]
3
2018-07-11T15:00:29.000Z
2019-06-25T23:00:59.000Z
bayleaf/families.py
schluedj/bayleaf
c1ff85d654e87fa78dcddac51516571d4c4f2ae2
[ "MIT" ]
null
null
null
bayleaf/families.py
schluedj/bayleaf
c1ff85d654e87fa78dcddac51516571d4c4f2ae2
[ "MIT" ]
null
null
null
### Family storage for bayleaf ### Author: David Schlueter ### David Schlueter ### Vanderbilt University Department of Biostatistics, ### File contains many hacks to GLM module in pymc3 ### July 21, 2017 import theano.tensor as tt from pymc3.model import Model, Deterministic import numpy as np import pymc3.distributio...
35.824138
168
0.580614
1dd8412fd8931befc2f98a99de8aeeb97e60b924
9,748
py
Python
tests/unit/trace/test_tracer.py
samn/opencensus-python
d8709f141b67f7f5ba011c440b8ba8fb9cbc419a
[ "Apache-2.0" ]
null
null
null
tests/unit/trace/test_tracer.py
samn/opencensus-python
d8709f141b67f7f5ba011c440b8ba8fb9cbc419a
[ "Apache-2.0" ]
null
null
null
tests/unit/trace/test_tracer.py
samn/opencensus-python
d8709f141b67f7f5ba011c440b8ba8fb9cbc419a
[ "Apache-2.0" ]
null
null
null
# Copyright 2017, OpenCensus Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
33.965157
75
0.685679
1dd84554a78beb7681f8dc39968dc059ebfc61cb
1,261
py
Python
user/recover_password/app.py
dsvalenciah/ROAp
24cbff0e719c5009ec1f1e7190924d4d9297e992
[ "MIT" ]
4
2018-04-23T00:04:01.000Z
2018-10-28T22:56:51.000Z
user/recover_password/app.py
dsvalenciah/ROAp
24cbff0e719c5009ec1f1e7190924d4d9297e992
[ "MIT" ]
23
2017-12-22T08:27:35.000Z
2021-12-13T19:57:35.000Z
user/recover_password/app.py
dsvalenciah/ROAp
24cbff0e719c5009ec1f1e7190924d4d9297e992
[ "MIT" ]
1
2020-06-03T02:07:26.000Z
2020-06-03T02:07:26.000Z
""" Contains roap app and his db run class. """ import os from setup.compile_messages import create_mo_files import falcon from falcon_cors import CORS from pymongo import MongoClient from resources.recover_password import UserRecoverPassword from resources.recover_password_email import UserEmail class Roap(): ...
22.517857
80
0.61935
1dd84fdfc9465fae4aae2024fd41ef759720fdf9
10,717
py
Python
test/aqua/test_qsvm.py
tsura-crisaldo/qiskit-aqua
2b4a70bb24a9170c3735124536dce1d7ffe4ed67
[ "Apache-2.0" ]
null
null
null
test/aqua/test_qsvm.py
tsura-crisaldo/qiskit-aqua
2b4a70bb24a9170c3735124536dce1d7ffe4ed67
[ "Apache-2.0" ]
null
null
null
test/aqua/test_qsvm.py
tsura-crisaldo/qiskit-aqua
2b4a70bb24a9170c3735124536dce1d7ffe4ed67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2018, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
48.493213
100
0.539797
1dd86b64d89e6d7d320a8930c439cdfa7ba91986
2,966
py
Python
ufora/FORA/Judgment/JudgmentOnValueTree_test.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
ufora/FORA/Judgment/JudgmentOnValueTree_test.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
ufora/FORA/Judgment/JudgmentOnValueTree_test.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
# Copyright 2015 Ufora Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
28.247619
79
0.435604
1dd884a4590fae1823eb82a03c3e223ab7e52a34
6,859
py
Python
df4cats/embedding/models.py
cfrancesco/DF4cats
41787c90925522ab49562905da61817b6b29494b
[ "MIT" ]
2
2019-07-11T13:40:57.000Z
2019-10-17T17:39:26.000Z
df4cats/embedding/models.py
cfrancesco/DF4cats
41787c90925522ab49562905da61817b6b29494b
[ "MIT" ]
null
null
null
df4cats/embedding/models.py
cfrancesco/DF4cats
41787c90925522ab49562905da61817b6b29494b
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from keras.layers import Input, Dense, Embedding, concatenate, Reshape, Flatten, Lambda from keras.layers import SpatialDropout1D, Dropout, Add from keras.models import Model import keras.backend as K from copy import deepcopy from keras.optimizers import Adam from typing import U...
38.971591
99
0.599942
1dd887ec64aa100ec795dba2e3f3bdcfbe444273
9,258
py
Python
tests/test_util.py
bilts/harmony-service-lib-py
6eb358539adab9510d75158737de2b55fba85f91
[ "Apache-2.0" ]
null
null
null
tests/test_util.py
bilts/harmony-service-lib-py
6eb358539adab9510d75158737de2b55fba85f91
[ "Apache-2.0" ]
null
null
null
tests/test_util.py
bilts/harmony-service-lib-py
6eb358539adab9510d75158737de2b55fba85f91
[ "Apache-2.0" ]
null
null
null
import pathlib import unittest from unittest.mock import patch, MagicMock from urllib.error import HTTPError from harmony import aws from harmony import util from harmony.message import Variable from tests.test_cli import MockAdapter, cli_test from tests.util import mock_receive, config_fixture class TestDownload(un...
37.787755
117
0.624217
1dd89e232b3a206091c0ad787e80cf2c1f5d63ab
13,193
py
Python
mymodels/hypermodels.py
lauromoraes/promoter_paper
62aea776cb318a13e142f84dd84bb0a29fb0e83f
[ "Apache-2.0" ]
null
null
null
mymodels/hypermodels.py
lauromoraes/promoter_paper
62aea776cb318a13e142f84dd84bb0a29fb0e83f
[ "Apache-2.0" ]
9
2020-08-12T18:08:46.000Z
2022-03-12T00:46:11.000Z
mymodels/hypermodels.py
lauromoraes/promoter_paper
62aea776cb318a13e142f84dd84bb0a29fb0e83f
[ "Apache-2.0" ]
null
null
null
import numpy as np from tensorflow import keras from tensorflow import random as tf_random from kerastuner import HyperModel from tensorflow.keras import models from tensorflow.keras.layers import ( Conv1D, Conv2D, Dense, Dropout, Flatten, MaxPooling1D, MaxPooling2D, Input, Activatio...
41.357367
114
0.56295
1dd8b7c50778f5197c17ef92372a0bedaa7644d7
9,952
py
Python
utils.py
jndevanshu/tagger
51181d3ac9b0959ba507ee0c06c28bed55b51c76
[ "Apache-2.0" ]
null
null
null
utils.py
jndevanshu/tagger
51181d3ac9b0959ba507ee0c06c28bed55b51c76
[ "Apache-2.0" ]
null
null
null
utils.py
jndevanshu/tagger
51181d3ac9b0959ba507ee0c06c28bed55b51c76
[ "Apache-2.0" ]
null
null
null
import os import re import codecs import numpy as np import theano models_path = "./models" eval_path = "./evaluation" eval_temp = os.path.join(eval_path, "temp") eval_script = os.path.join(eval_path, "conlleval") def get_name(parameters): """ Generate a model name from its parameters. """ if parame...
30.24924
84
0.549638
1dd90668768fe4d15c602570a49bfd9d160b2e38
5,858
py
Python
main.py
Imira-S-R/PasswordManagerCLI
67c8598da2e143fcca02272f3aecd1ee350d12e8
[ "MIT" ]
3
2021-12-17T06:50:35.000Z
2021-12-25T02:24:06.000Z
main.py
Imira-S-R/PasswordManagerCLI
67c8598da2e143fcca02272f3aecd1ee350d12e8
[ "MIT" ]
null
null
null
main.py
Imira-S-R/PasswordManagerCLI
67c8598da2e143fcca02272f3aecd1ee350d12e8
[ "MIT" ]
null
null
null
from database_functions import * import os from termcolor import cprint, colored import colorama import subprocess import getpass from encryption import * import argparse colorama.init() menu = ''' 1. Add New Password 2. Edit Password 3. Delete Password 4. View Passwords 5. Find a password for a site or app 6. Find ...
26.151786
156
0.622226
1dd9185e77727f7ef856bd46a1427b80cb637ff8
1,353
py
Python
python/q545/q545.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
python/q545/q545.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
python/q545/q545.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
# Definition for a binary tree node. from typing import List class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def boundaryOfBinaryTree(self, root: TreeNode) -> List[int]: left = [] if r...
27.06
64
0.453067
1dd926e44946dcf1f923e04a38e62fbef8ed1f0f
4,459
py
Python
tests/test_state.py
kenodegard/conda-libmamba-solver
2b0639160795df87c201da056f780040b60d5d94
[ "BSD-3-Clause" ]
null
null
null
tests/test_state.py
kenodegard/conda-libmamba-solver
2b0639160795df87c201da056f780040b60d5d94
[ "BSD-3-Clause" ]
null
null
null
tests/test_state.py
kenodegard/conda-libmamba-solver
2b0639160795df87c201da056f780040b60d5d94
[ "BSD-3-Clause" ]
null
null
null
""" Test the Solver API helpers. These objects are solver-agnostic but encode most of the logic needed to expose a prefix state, command line flags and context environment variables to the solver itself. We'll try our best to encode the intricate legacy logic as a testable behavioral units that, eventually, will allow...
39.460177
97
0.722135
1dd92cbcab69407e79f2456bb39116fcfb717424
2,216
py
Python
app/schema_validation/definitions.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
app/schema_validation/definitions.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
app/schema_validation/definitions.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
""" Definitions are intended for schema definitions that are not likely to change from version to version. If the definition is specific to a version put it in a definition file in the version package """ uuid = { "type": "string", "format": "validate_uuid", "validationMessage": "is not a valid UUID", ...
29.945946
102
0.527076
1dd95c0fe1291ff92e7b9a2a166198c0a26b01bb
22,714
py
Python
tests/functional/testplan/runnable/interactive/test_interactive.py
armarti/testplan
5dcfe5840c0c99e9535cc223230f400fa62802f2
[ "Apache-2.0" ]
null
null
null
tests/functional/testplan/runnable/interactive/test_interactive.py
armarti/testplan
5dcfe5840c0c99e9535cc223230f400fa62802f2
[ "Apache-2.0" ]
null
null
null
tests/functional/testplan/runnable/interactive/test_interactive.py
armarti/testplan
5dcfe5840c0c99e9535cc223230f400fa62802f2
[ "Apache-2.0" ]
null
null
null
"""Interactive mode tests.""" import os import re import pytest import six import requests import pytest from testplan.common.utils.timing import wait from testplan.common.utils.comparison import compare from testplan.common.utils.context import context from testplan.common.utils.timing import get_sleeper from testp...
40.344583
91
0.575812
1dd96f86dcec60169a618cb432b5c42465f3b1b6
1,504
py
Python
fiepipedesktoplib/sites/shells/abstractsite.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fiepipedesktoplib/sites/shells/abstractsite.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fiepipedesktoplib/sites/shells/abstractsite.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
import typing import fiepipelib.localuser.routines.localuser import fiepipelib.legalentity.registry.data.registered_entity import fiepipelib.sites.data.abstractsite import fiepipedesktoplib.shells import abc from fiepipedesktoplib.shells.AbstractShell import AbstractShell class Shell(AbstractShell): """A shell fo...
27.345455
106
0.714096
1dd977431870e7ff616f9388e4020755e464dcc2
2,143
py
Python
mslib/utils/_tests/tests.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
33
2020-12-04T04:29:28.000Z
2022-03-05T17:11:49.000Z
mslib/utils/_tests/tests.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
614
2020-12-06T16:54:44.000Z
2022-03-31T07:41:02.000Z
mslib/utils/_tests/tests.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
51
2020-12-04T15:10:46.000Z
2022-03-20T02:02:11.000Z
# -*- coding: utf-8 -*- """ mslib._tests.test_utils ~~~~~~~~~~~~~~~~~~~~~~~ This module provides pytest functions to tests mslib.mss_util This file is part of mss. :copyright: Copyright 2016-2017 Reimar Bauer :copyright: Copyright 2016-2021 by the mss team, see AUTHORS. :license: APACHE-...
34.015873
80
0.656556
1dd981b5776a84978a319af1963d8c71201b55ab
7,070
py
Python
toontown/coghq/boardbothq/BoardOfficeGearRoom_Battle01.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2018-06-16T23:06:38.000Z
2018-06-16T23:06:38.000Z
toontown/coghq/boardbothq/BoardOfficeGearRoom_Battle01.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/coghq/boardbothq/BoardOfficeGearRoom_Battle01.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from toontown.coghq.SpecImports import * GlobalEntities = {1000: {'type': 'levelMgr', 'name': 'LevelMgr', 'comment': '', 'parentEntId': 0, 'cogLevel': 0, 'farPlaneDistance': 1500, 'modelFilename': 'phase_11/models/lawbotHQ/LB_Zone7a', 'wantDoors': 1}, 1001: {'typ...
35
71
0.491089
1dd9bf0e506915d71adb969374b79c93912dea4e
617,020
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models_py3.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/v2019_12_01/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/models/_models_py3.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 ...
48.473564
901
0.684905
1dd9c2dcf5923e3a968823bcf5302857ddc4711b
1,648
py
Python
misc/headPanTilt.py
davidko-ww/WonderPyExamples
12dbf138483fe0cecaa78a6b67dc4cf68fe7ddb3
[ "MIT" ]
10
2018-07-31T06:45:22.000Z
2021-01-20T07:43:53.000Z
misc/headPanTilt.py
davidko-ww/WonderPyExamples
12dbf138483fe0cecaa78a6b67dc4cf68fe7ddb3
[ "MIT" ]
3
2018-07-31T20:31:54.000Z
2020-07-30T22:37:49.000Z
misc/headPanTilt.py
davidko-ww/WonderPyExamples
12dbf138483fe0cecaa78a6b67dc4cf68fe7ddb3
[ "MIT" ]
7
2018-07-31T22:41:46.000Z
2021-11-04T18:06:00.000Z
import sys import colorsys import WonderPy from WonderPy.core.wwConstants import WWRobotConstants from WonderPy.util import wwMath class MyClass(object): def on_connect(self, robot): if not robot.has_ability(WWRobotConstants.WWRobotAbilities.HEAD_MOVE, True): exit(1) # turn off the ...
28.912281
116
0.598908
1dd9d4f04e641875814d03de0c853b2c646a0cf0
3,682
py
Python
djangoDemo/mysite/register/forms.py
AirChen/PythonPractic
676708237dc502ea9a60218a3ca134874bd18456
[ "MIT" ]
null
null
null
djangoDemo/mysite/register/forms.py
AirChen/PythonPractic
676708237dc502ea9a60218a3ca134874bd18456
[ "MIT" ]
null
null
null
djangoDemo/mysite/register/forms.py
AirChen/PythonPractic
676708237dc502ea9a60218a3ca134874bd18456
[ "MIT" ]
null
null
null
#!/usr/bin/python from django import forms from django.contrib.auth.models import User from django.core.exceptions import ValidationError from mysite.settings import ALLOWED_SIGNUP_DOMAINS def SignupDomainValidator(value): if '*' not in ALLOWED_SIGNUP_DOMAINS: try: domain = value[value.index("@"):] if domai...
39.170213
136
0.696904
1dd9dcf8f954ba5e28d434bbf8e9338c321a1f14
15,904
py
Python
lib/galaxy/webapps/tool_shed/buildapp.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
lib/galaxy/webapps/tool_shed/buildapp.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
lib/galaxy/webapps/tool_shed/buildapp.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
""" Provides factory methods to assemble the Galaxy web application """ import atexit import logging import os import routes from six.moves.urllib.parse import parse_qs from inspect import isclass from paste import httpexceptions from galaxy.util import asbool import galaxy.webapps.tool_shed.model import galaxy.webap...
50.170347
174
0.599975
1dda24a44e877b38bf8213b128e395e016fb1bfe
638
py
Python
var/spack/repos/builtin/packages/py-gitdb2/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/py-gitdb2/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/py-gitdb2/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyGitdb2(PythonPackage): """GitDB is a pure-Python git object database """ homepa...
31.9
88
0.719436
1dda34c5438809dbb4bde3f3a7c86097a12cc406
6,856
py
Python
dit/multivariate/secret_key_agreement/tests/test_intrinsic_mutual_information.py
volpatto/dit
a8b0ffd72e0829c4b239419e85b9e0cfd20085dd
[ "BSD-3-Clause" ]
null
null
null
dit/multivariate/secret_key_agreement/tests/test_intrinsic_mutual_information.py
volpatto/dit
a8b0ffd72e0829c4b239419e85b9e0cfd20085dd
[ "BSD-3-Clause" ]
null
null
null
dit/multivariate/secret_key_agreement/tests/test_intrinsic_mutual_information.py
volpatto/dit
a8b0ffd72e0829c4b239419e85b9e0cfd20085dd
[ "BSD-3-Clause" ]
null
null
null
""" Tests for dit.multivariate.intrinsic_mutual_information """ from __future__ import division import pytest from hypothesis import given, settings import numpy as np from dit import Distribution from dit.example_dists.intrinsic import intrinsic_1, intrinsic_2, intrinsic_3 from dit.exceptions import ditException ...
31.163636
118
0.633606