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
1d3ada7f4d34eecd83191dd03cc0a628d7bca436
10,901
py
Python
xpctl-client/xpclient/models/experiment.py
mead-ml/xpctl
75fcb195e66519b545ddd7aeb2d7476624c20c46
[ "Apache-2.0" ]
3
2019-07-11T17:05:25.000Z
2020-11-19T08:11:31.000Z
xpctl-client/xpclient/models/experiment.py
mead-ml/xpctl
75fcb195e66519b545ddd7aeb2d7476624c20c46
[ "Apache-2.0" ]
4
2019-06-28T01:07:42.000Z
2020-07-24T15:12:57.000Z
xpctl-client/xpclient/models/experiment.py
mead-ml/xpctl
75fcb195e66519b545ddd7aeb2d7476624c20c46
[ "Apache-2.0" ]
2
2019-06-27T19:10:05.000Z
2019-08-15T20:15:49.000Z
# coding: utf-8 """ xpctl This is a sample xpctl server. You can find out more about xpctl at [baseline](https://github.com/dpressel/baseline/blob/master/docs/xpctl.md). # noqa: E501 OpenAPI spec version: 1.0.0 Contact: apiteam@swagger.io Generated by: https://github.com/swagger-api/swagger-co...
25.351163
223
0.560958
1d3aeb2026d1c5c85c3dfd3289fbc43a9175e57d
5,534
py
Python
src/nexgen/tools/VDS_tools.py
DominicOram/nexgen
5a0dbb7bc7f8f3876e4cd69c6cd4eb7df0587af8
[ "BSD-3-Clause" ]
null
null
null
src/nexgen/tools/VDS_tools.py
DominicOram/nexgen
5a0dbb7bc7f8f3876e4cd69c6cd4eb7df0587af8
[ "BSD-3-Clause" ]
null
null
null
src/nexgen/tools/VDS_tools.py
DominicOram/nexgen
5a0dbb7bc7f8f3876e4cd69c6cd4eb7df0587af8
[ "BSD-3-Clause" ]
null
null
null
""" Tools to write Virtual DataSets """ import h5py import logging import numpy as np from pathlib import Path from typing import Any, List, Tuple, Union vds_logger = logging.getLogger("NeXusGenerator.writer.vds") def image_vds_writer( nxsfile: h5py.File, data_shape: Union[Tuple, List], data_type: Any...
36.893333
108
0.649801
1d3afd5b9eab39a60ffe2cc7bce47ceb028e6d37
7,516
py
Python
mslib/utils/_tests/test_coordinate.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
33
2020-12-04T04:29:28.000Z
2022-03-05T17:11:49.000Z
mslib/utils/_tests/test_coordinate.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
614
2020-12-06T16:54:44.000Z
2022-03-31T07:41:02.000Z
mslib/utils/_tests/test_coordinate.py
aravindm711/MSS
128687ec036d445656a70ff4b82c3cb7586715e4
[ "Apache-2.0" ]
51
2020-12-04T15:10:46.000Z
2022-03-20T02:02:11.000Z
# -*- coding: utf-8 -*- """ mslib.utils._tests.test_coordinate ~~~~~~~~~~~~~~~~~~~~~~~ This module provides pytest functions to tests mslib.utils.coordinate This file is part of mss. :copyright: Copyright 2016-2017 Reimar Bauer :copyright: Copyright 2016-2021 by the mss team, see AUTHORS. ...
38.943005
119
0.597658
1d3b0a476a407b4da8e5f79a213c2953cce7021d
3,242
py
Python
pysoa/server/django/cache.py
arareko/pysoa
a90e428558500cf692f7f6e33fd358dd2779c328
[ "Apache-2.0" ]
91
2017-05-08T22:41:33.000Z
2022-02-09T11:37:07.000Z
pysoa/server/django/cache.py
arareko/pysoa
a90e428558500cf692f7f6e33fd358dd2779c328
[ "Apache-2.0" ]
63
2017-06-14T20:08:49.000Z
2021-06-16T23:08:25.000Z
pysoa/server/django/cache.py
arareko/pysoa
a90e428558500cf692f7f6e33fd358dd2779c328
[ "Apache-2.0" ]
26
2017-10-13T23:23:13.000Z
2022-01-11T16:58:17.000Z
from __future__ import ( absolute_import, unicode_literals, ) from typing import Any from django.core.cache.backends.locmem import LocMemCache from django.core.cache.backends.memcached import ( MemcachedCache, PyLibMCCache, ) __all__ = ( 'PySOAMemcachedCache', 'PySOAProcessScopedMemoryCache'...
40.024691
119
0.696792
1d3b3204aca8e9a9ca60bb87a8e5fd790ee5d2b3
9,506
py
Python
scripts/output_results.py
thusithathilina/multiple-scheduling-2.0
f3897e4ac05f22505220ba0856f356691bc96843
[ "MIT" ]
null
null
null
scripts/output_results.py
thusithathilina/multiple-scheduling-2.0
f3897e4ac05f22505220ba0856f356691bc96843
[ "MIT" ]
1
2020-10-01T02:55:53.000Z
2020-10-01T11:06:07.000Z
scripts/output_results.py
thusithathilina/multiple-scheduling-2.0
f3897e4ac05f22505220ba0856f356691bc96843
[ "MIT" ]
1
2020-09-30T12:30:56.000Z
2020-09-30T12:30:56.000Z
from shutil import copy import pickle import pandas as pd from scripts.input_parameter import * from scripts.cfunctions import average from pathlib import Path import pandas_bokeh from bokeh.models.widgets import DataTable, TableColumn from bokeh.models import ColumnDataSource, NumeralTickFormatter def write_batch_ex...
39.119342
119
0.623817
1d3b3a6a89b958e37581d5a97c3de56beac3d795
9,343
py
Python
docs/conf.py
agoraplex/anodi
b300312f2433a5975b48350345d662654c577d40
[ "BSD-3-Clause" ]
6
2015-01-29T17:57:47.000Z
2019-05-22T10:13:01.000Z
docs/conf.py
agoraplex/anodi
b300312f2433a5975b48350345d662654c577d40
[ "BSD-3-Clause" ]
1
2019-08-08T08:44:58.000Z
2019-08-08T08:44:58.000Z
docs/conf.py
agoraplex/anodi
b300312f2433a5975b48350345d662654c577d40
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # anodi documentation build configuration file, created by # sphinx-quickstart2 on Fri Jan 11 10:39:10 2013. # # 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 ...
32.667832
126
0.711335
1d3b40472f13c63485c03a119e6ee0e7c3db2689
7,009
py
Python
vespene/models/project.py
webknjaz/vespene
32e82ce37db33a106c0c58d50762f24a7c90bc2f
[ "Apache-2.0" ]
1
2018-11-07T20:14:07.000Z
2018-11-07T20:14:07.000Z
vespene/models/project.py
webknjaz/vespene
32e82ce37db33a106c0c58d50762f24a7c90bc2f
[ "Apache-2.0" ]
2
2018-11-10T08:40:01.000Z
2018-11-10T15:08:31.000Z
vespene/models/project.py
webknjaz/vespene
32e82ce37db33a106c0c58d50762f24a7c90bc2f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018, Michael DeHaan LLC # License: Apache License Version 2.0 + Commons Clause #--------------------------------------------------------------------------- # project.py - model & behavior for projects, which involve a build # script and sometimes a source code repo. Instances of projects # building are ...
49.359155
180
0.698958
1d3b99e8b1f9ddd7d4722d170bea4b0925083183
209
py
Python
ncolony/tests/helper.py
ncolony/ncolony
a7aae3b5f47c1ec1389267746ce53a1a436ada3c
[ "MIT" ]
12
2017-11-29T19:32:47.000Z
2020-07-29T14:09:29.000Z
ncolony/tests/helper.py
ncolony/ncolony
a7aae3b5f47c1ec1389267746ce53a1a436ada3c
[ "MIT" ]
23
2017-10-02T03:29:41.000Z
2020-06-04T20:28:54.000Z
ncolony/tests/helper.py
ncolony/ncolony
a7aae3b5f47c1ec1389267746ce53a1a436ada3c
[ "MIT" ]
1
2018-02-23T20:59:57.000Z
2018-02-23T20:59:57.000Z
# Copyright (c) Moshe Zadka # See LICENSE for details. """Helper functions""" import json def dumps2utf8(something): """json.dumps and encode to utf-8""" return json.dumps(something).encode('utf-8')
20.9
48
0.69378
1d3b9a02af6e89b6042ef22324a5fbf041b52bc7
8,158
py
Python
docs/conf.py
exolever/django-simple-user
8c7f4e78b5da434cd3960e59d9b08cf69a636e0a
[ "MIT" ]
null
null
null
docs/conf.py
exolever/django-simple-user
8c7f4e78b5da434cd3960e59d9b08cf69a636e0a
[ "MIT" ]
1
2019-09-02T15:41:57.000Z
2019-09-02T15:41:57.000Z
docs/conf.py
exolever/django-simple-user
8c7f4e78b5da434cd3960e59d9b08cf69a636e0a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # complexity documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # 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. # # ...
31.992157
80
0.718191
1d3bac14c4dfe3ccc57017cf12bdcf9310b30884
4,865
py
Python
velruse/providers/twitter.py
hqman/velruse
4f1549d07ce6ef250e75a764ddd615765dd54ce8
[ "MIT" ]
null
null
null
velruse/providers/twitter.py
hqman/velruse
4f1549d07ce6ef250e75a764ddd615765dd54ce8
[ "MIT" ]
null
null
null
velruse/providers/twitter.py
hqman/velruse
4f1549d07ce6ef250e75a764ddd615765dd54ce8
[ "MIT" ]
null
null
null
"""Twitter Authentication Views""" from urlparse import parse_qs import oauth2 as oauth import requests from pyramid.httpexceptions import HTTPFound from pyramid.security import NO_PERMISSION_REQUIRED from velruse.api import ( AuthenticationComplete, AuthenticationDenied, register_provider, ) from velrus...
36.856061
80
0.67112
1d3bcc4818556b6bd5016372c37fa5eacc354d58
1,145
py
Python
crypten/common/tensor_types.py
knarflin/CrypTen
6a06dc8cd52200f40a9fc520be0066bd0dea6b14
[ "MIT" ]
1
2019-12-06T06:08:40.000Z
2019-12-06T06:08:40.000Z
crypten/common/tensor_types.py
knarflin/CrypTen
6a06dc8cd52200f40a9fc520be0066bd0dea6b14
[ "MIT" ]
10
2021-02-03T16:45:53.000Z
2021-04-07T16:24:17.000Z
crypten/common/tensor_types.py
knarflin/CrypTen
6a06dc8cd52200f40a9fc520be0066bd0dea6b14
[ "MIT" ]
1
2021-02-10T06:15:02.000Z
2021-02-10T06:15:02.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. 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 torch from crypten.cuda import CUDALongTensor # helper functions that determine if input is float, int, or ba...
31.805556
81
0.716157
1d3bec7c4fdd97ecb672383ce39d7401e555df70
2,979
py
Python
tests/test_unit_cmd.py
kant/python-itoolkit
179523134cac3f380f88bd76be8b8c97896c7b29
[ "MIT" ]
null
null
null
tests/test_unit_cmd.py
kant/python-itoolkit
179523134cac3f380f88bd76be8b8c97896c7b29
[ "MIT" ]
null
null
null
tests/test_unit_cmd.py
kant/python-itoolkit
179523134cac3f380f88bd76be8b8c97896c7b29
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET from itoolkit import iCmd def test_rexx(): cmd = 'RTVJOBA USRLIBL(?) SYSLIBL(?)' key = 'rtvjoba' element = ET.fromstring(iCmd(key, cmd).xml_in()) assert(element.tag == 'cmd') assert('exec' in element.attrib) assert(element.attrib['exec'] == 'rexx') ...
25.681034
70
0.595502
1d3c0636de28331b5bc1ea8b52089744f77da482
728
py
Python
toontown/pgui/DirectGui.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/pgui/DirectGui.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/pgui/DirectGui.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
"""Undocumented Module""" import DirectGuiGlobals as DGG from OnscreenText import * from OnscreenGeom import * from OnscreenImage import * # MPG DirectStart should call this? # Set up default font #defaultFont = getDefaultFont() #if defaultFont: # PGItem.getTextNode().setFont(defaultFont) # Direct Gui Classes fro...
25.103448
46
0.804945
1d3c24769f199d3c1b88f606988e6949ff8b424d
940
py
Python
KristaBackup/web/AppRunner.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
7
2020-07-28T06:53:02.000Z
2022-03-18T05:23:03.000Z
KristaBackup/web/AppRunner.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
1
2020-11-25T16:13:26.000Z
2020-11-25T16:13:26.000Z
KristaBackup/web/AppRunner.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
1
2020-07-28T13:47:09.000Z
2020-07-28T13:47:09.000Z
# -*- coding: UTF-8 -*- import logging import os import signal from common.procutil import check_process, get_executable_filename from common.arguments import constants class AppRunner(): name = 'foo' """ Абстрактный метод, должен быть переопределен в потомке """ def run_app(self): ...
21.363636
66
0.593617
1d3c4f249b9507fb187fbb57f9255345a726ba9e
16
py
Python
btd6_memory_info/generated/UnityEngine/Yoga/yoga.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/Yoga/yoga.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/Yoga/yoga.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class Yoga: pass
16
16
0.8125
1d3c548b7d16a6bec8dc5897ae26c5a9d749d1f7
5,831
py
Python
src/runner.py
ModOrganizer2/modorganizer-installer_wizard
fb91a1d2b64a18e258abf00f0320c2ea46875198
[ "MIT" ]
null
null
null
src/runner.py
ModOrganizer2/modorganizer-installer_wizard
fb91a1d2b64a18e258abf00f0320c2ea46875198
[ "MIT" ]
null
null
null
src/runner.py
ModOrganizer2/modorganizer-installer_wizard
fb91a1d2b64a18e258abf00f0320c2ea46875198
[ "MIT" ]
1
2020-11-25T16:41:19.000Z
2020-11-25T16:41:19.000Z
# -*- encoding: utf-8 -*- import sys from pathlib import Path from typing import Iterable, List, Optional import mobase from wizard.interpreter import WizardInterpreter from wizard.manager import ManagerModInterface from wizard.severity import SeverityContext from wizard.value import SubPackage, SubPackages from wi...
29.301508
84
0.589607
1d3c5b65f781de1f38033626de3ef84a022c8a10
1,094
py
Python
python_modules/dagster/dagster_tests/cli_tests/test_new_project.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/cli_tests/test_new_project.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/cli_tests/test_new_project.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import os from click.testing import CliRunner from dagster.cli import new_project_cli def test_new_project_command_fails_when_dir_path_exists(): runner = CliRunner() with runner.isolated_filesystem(): os.mkdir("existing_dir") result = runner.invoke(new_project_cli, ["existing_dir"]) ...
32.176471
66
0.710238
1d3cc9b3e2b54561e9e4946dfb5c4ca432b1e724
244
py
Python
moto/autoscaling/__init__.py
argos83/moto
d3df810065c9c453d40fcc971f9be6b7b2846061
[ "Apache-2.0" ]
1
2021-03-06T22:01:41.000Z
2021-03-06T22:01:41.000Z
moto/autoscaling/__init__.py
marciogh/moto
d3df810065c9c453d40fcc971f9be6b7b2846061
[ "Apache-2.0" ]
null
null
null
moto/autoscaling/__init__.py
marciogh/moto
d3df810065c9c453d40fcc971f9be6b7b2846061
[ "Apache-2.0" ]
1
2017-10-19T00:53:28.000Z
2017-10-19T00:53:28.000Z
from __future__ import unicode_literals from .models import autoscaling_backends from ..core.models import MockAWS, base_decorator autoscaling_backend = autoscaling_backends['us-east-1'] mock_autoscaling = base_decorator(autoscaling_backends)
34.857143
55
0.856557
1d3cd800d815b5be6d24273b0b4e54e5f12c97b2
4,489
py
Python
deepsim/deepsim/core/ray.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
1
2022-03-25T07:20:49.000Z
2022-03-25T07:20:49.000Z
deepsim/deepsim/core/ray.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
deepsim/deepsim/core/ray.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
################################################################################# # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"). ...
33.007353
96
0.513255
1d3ce3541c2b19ef4619841575d134d2cfc6113f
6,072
py
Python
yolox/models/darknet.py
junhai0428/YOLOX-OBB
9f0d745b89ba6559e692ff06ba09b433b2f4594c
[ "Apache-2.0" ]
null
null
null
yolox/models/darknet.py
junhai0428/YOLOX-OBB
9f0d745b89ba6559e692ff06ba09b433b2f4594c
[ "Apache-2.0" ]
null
null
null
yolox/models/darknet.py
junhai0428/YOLOX-OBB
9f0d745b89ba6559e692ff06ba09b433b2f4594c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. from torch import nn from .network_blocks import BaseConv, CSPLayer, DWConv, Focus, ResLayer, SPPBottleneck class Darknet(nn.Module): # number of blocks from dark2 to dark5. depth2blocks = {21: [1, 2, ...
33.733333
93
0.530303
1d3cf52fb375a7c279d47f4aecfc943ca4859920
3,833
py
Python
selepy/driver_funcs.py
atomicfruitcake/selepy
d25e13a2d98b56724f52bc690abec5f1fb61ddfd
[ "MIT" ]
null
null
null
selepy/driver_funcs.py
atomicfruitcake/selepy
d25e13a2d98b56724f52bc690abec5f1fb61ddfd
[ "MIT" ]
null
null
null
selepy/driver_funcs.py
atomicfruitcake/selepy
d25e13a2d98b56724f52bc690abec5f1fb61ddfd
[ "MIT" ]
null
null
null
'''! @author atomicfruitcake This module contains functions to manipulate selenium webdrivers ''' import logging import re import time from datetime import datetime import selenium_docker_container from constants import Constants logger = logging.getLogger(__name__) logging.getLogger().addHandler(logging.StreamHandl...
29.037879
79
0.695278
1d3d23b0c9b1b5bce1e9520a685b9c5608833c86
4,651
py
Python
check_status.py
azavea/gtfs-feed-fetcher
0cbdcb10d24a15c0e68832064f699dac7ab7c67c
[ "MIT" ]
4
2016-08-02T14:18:54.000Z
2020-05-14T05:39:21.000Z
check_status.py
azavea/gtfs-feed-fetcher
0cbdcb10d24a15c0e68832064f699dac7ab7c67c
[ "MIT" ]
3
2017-06-28T14:48:08.000Z
2017-12-15T20:50:52.000Z
check_status.py
azavea/gtfs-feed-fetcher
0cbdcb10d24a15c0e68832064f699dac7ab7c67c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Command line interface for reporting on downloaded feed statuses.""" import argparse from datetime import datetime, timedelta import logging import os import pickle import sys DOWNLOAD_DIRECTORY = 'gtfs' # warn if feed is within this many days of expiring WARN_DAYS = 30 logging.basicConfig() ...
39.084034
98
0.608256
1d3d568be3b1c7613558328f3754fbe3fa4bc85e
1,975
py
Python
py/cidoc_crm_types/entities/e10_transfer_of_custody.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/entities/e10_transfer_of_custody.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/entities/e10_transfer_of_custody.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from .e7_activity import E7Activity from dataclasses import dataclass @dataclass class E10TransferofCustody(E7Activity): """ Scope note: This class comprises transfers of physical custody of objects between instances of E39 Actor. The recording of the donor and/or recipient is optional. It is possible that in a...
59.848485
770
0.795443
1d3dd19ce4097b32ee62d81a0493ddde643edee1
7,132
py
Python
leetcode_python/Depth-First-Search/binary-tree-right-side-view.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Depth-First-Search/binary-tree-right-side-view.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Depth-First-Search/binary-tree-right-side-view.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" 199. Binary Tree Right Side View Medium Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. Example 1: Input: root = [1,2,3,null,5,null,4] Output: [1,3,4] Example 2: Input: root = [1,null,3] Output: [1,3]...
26.71161
154
0.507852
1d3dda3f16ac6d53b365ecb5682679b0ed3a8c81
8,021
py
Python
docs/conf.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
18
2017-06-12T09:58:02.000Z
2021-10-01T11:14:34.000Z
docs/conf.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
276
2019-04-26T20:13:01.000Z
2022-03-31T10:26:28.000Z
docs/conf.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
7
2018-03-13T23:44:26.000Z
2021-09-15T17:54:55.000Z
# Readux documentation build configuration file, created by # sphinx-quickstart. # # 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 values have a default; values that are c...
31.332031
87
0.696547
1d3dfa8eeba38f2c22f2fa1e86f4da2f48cd0166
829
py
Python
tri/undreamt/undreamt/devices.py
hoangle96/CS539_project
20f704398a8bdb3ab709cef45ed861898fd4d1dd
[ "MIT" ]
null
null
null
tri/undreamt/undreamt/devices.py
hoangle96/CS539_project
20f704398a8bdb3ab709cef45ed861898fd4d1dd
[ "MIT" ]
null
null
null
tri/undreamt/undreamt/devices.py
hoangle96/CS539_project
20f704398a8bdb3ab709cef45ed861898fd4d1dd
[ "MIT" ]
null
null
null
# Copyright (C) 2018 Mikel Artetxe <artetxem@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This prog...
33.16
71
0.739445
1d3e16dcd2e198e8c7e60f1fed2cadd73fab4318
17,314
py
Python
exegis/footnotes.py
gruel/AphorismToTEI
6d33a353c4b4f159af62e061618ff03a1f09fb7f
[ "BSD-3-Clause" ]
null
null
null
exegis/footnotes.py
gruel/AphorismToTEI
6d33a353c4b4f159af62e061618ff03a1f09fb7f
[ "BSD-3-Clause" ]
null
null
null
exegis/footnotes.py
gruel/AphorismToTEI
6d33a353c4b4f159af62e061618ff03a1f09fb7f
[ "BSD-3-Clause" ]
null
null
null
"""Module used to treat the footnotes from the hypocratic project. :Authors: Jonathan Boyle, Nicolas Gruel <nicolas.gruel@manchester.ac.uk> :Copyright: IT Services, The University of Manchester """ # pylint: disable=locally-disabled, invalid-name import re from collections import OrderedDict try: from .baseclass...
37.314655
79
0.523507
1d3e203b48b47b49dd1eeb522494e0a3f6b2db17
14,207
py
Python
code/ARAX/ARAXQuery/ARAX_response.py
RTXteam/RTX
eabc4f4445d69c71d428acc8e9fa9865a85fb593
[ "MIT" ]
31
2018-03-05T20:01:10.000Z
2022-02-01T03:31:22.000Z
code/ARAX/ARAXQuery/ARAX_response.py
RTXteam/RTX
eabc4f4445d69c71d428acc8e9fa9865a85fb593
[ "MIT" ]
1,774
2018-03-06T01:55:03.000Z
2022-03-31T03:09:04.000Z
code/ARAX/ARAXQuery/ARAX_response.py
RTXteam/RTX
eabc4f4445d69c71d428acc8e9fa9865a85fb593
[ "MIT" ]
19
2018-05-10T00:43:19.000Z
2022-03-08T19:26:16.000Z
#!/usr/bin/env python3 import sys def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) import datetime class ARAXResponse: #### Class variables DEBUG = 10 INFO = 20 WARNING = 30 ERROR = 40 level_names = { 10: 'DEBUG', 20: 'INFO', 30: 'WARNING', 40: 'ERROR' } equal_or_grea...
41.662757
149
0.635813
1d3e20412867f069b8d760e365336c14c0394801
6,361
py
Python
configs/example/ruby_mem_test.py
pnkfb9/gem5_priority
fbf766277df78a470758cf7d798d12fb1e7c51c4
[ "BSD-3-Clause" ]
11
2015-03-21T13:35:06.000Z
2022-01-27T07:31:52.000Z
configs/example/ruby_mem_test.py
pnkfb9/gem5_priority
fbf766277df78a470758cf7d798d12fb1e7c51c4
[ "BSD-3-Clause" ]
4
2017-02-14T06:33:15.000Z
2017-05-09T13:14:15.000Z
configs/example/ruby_mem_test.py
pnkfb9/gem5_priority
fbf766277df78a470758cf7d798d12fb1e7c51c4
[ "BSD-3-Clause" ]
4
2015-03-21T13:35:24.000Z
2020-06-30T02:09:36.000Z
# Copyright (c) 2006-2007 The Regents of The University of Michigan # Copyright (c) 2009 Advanced Micro Devices, 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: redistributions of source co...
34.383784
81
0.695488
1d3e632ab05ea726dec95855dd32ff11639948be
8,002
py
Python
djangoenv/lib/python3.8/site-packages/svgwrite/filters.py
zawad2221/courier_delivery
f96c41a60943946f9f7e0837d017215aa8cd02dd
[ "MIT" ]
1
2021-09-23T00:06:51.000Z
2021-09-23T00:06:51.000Z
djangoenv/lib/python3.8/site-packages/svgwrite/filters.py
zawad2221/courier_delivery
f96c41a60943946f9f7e0837d017215aa8cd02dd
[ "MIT" ]
3
2021-06-08T20:41:18.000Z
2022-01-13T01:55:43.000Z
djangoenv/lib/python3.8/site-packages/svgwrite/filters.py
zawad2221/courier_delivery
f96c41a60943946f9f7e0837d017215aa8cd02dd
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 # Author: mozman --<mozman@gmx.at> # Purpose: filters module # Created: 03.11.2010 # Copyright (C) 2010, Manfred Moitzi # License: MIT License from svgwrite.base import BaseElement from svgwrite.mixins import XLink, Presentation from svgwrite.utils import strlist, is_stri...
29.20438
99
0.620595
1d3ede3e67793039d822b113b159237a16fd537c
6,268
py
Python
tests/core/test_broker.py
TariqAHassan/alsek
a0d0f44d2eea1538c9d04530ae917695f624d269
[ "MIT" ]
1
2021-08-16T02:38:40.000Z
2021-08-16T02:38:40.000Z
tests/core/test_broker.py
TariqAHassan/alsek
a0d0f44d2eea1538c9d04530ae917695f624d269
[ "MIT" ]
null
null
null
tests/core/test_broker.py
TariqAHassan/alsek
a0d0f44d2eea1538c9d04530ae917695f624d269
[ "MIT" ]
null
null
null
""" Test Broker """ from typing import Optional, Union import pytest from alsek._defaults import DEFAULT_TASK_TTL from alsek.core.broker import Broker from alsek.core.concurrency import Lock from alsek.core.message import Message from alsek.exceptions import MessageDoesNotExistsError from tests._helpers import ...
27.491228
82
0.665444
1d3f135714e80703d98a90035506a9023998bcbf
5,646
py
Python
oscar/lib/python2.7/site-packages/django/contrib/gis/geos/coordseq.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/gis/geos/coordseq.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/gis/geos/coordseq.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
""" This module houses the GEOSCoordSeq object, which is used internally by GEOSGeometry to house the actual coordinates of the Point, LineString, and LinearRing geometries. """ from ctypes import byref, c_double, c_uint from django.contrib.gis.geos import prototypes as capi from django.contrib.gis.geos.bas...
34.218182
98
0.599362
1d3f207ac1a79c896dd9249cdd135675027fdaca
8,472
py
Python
rig/f_rivet.py
Zeplaro/Maya
d1fb1c6c14984d5d4dbf6a8a422026d935256729
[ "MIT" ]
null
null
null
rig/f_rivet.py
Zeplaro/Maya
d1fb1c6c14984d5d4dbf6a8a422026d935256729
[ "MIT" ]
null
null
null
rig/f_rivet.py
Zeplaro/Maya
d1fb1c6c14984d5d4dbf6a8a422026d935256729
[ "MIT" ]
null
null
null
import maya.cmds as mc from .tbx import get_shape from functools import partial def launch_ui(): if mc.window('rvtUI', exists=True): mc.deleteUI('rvtUI') FRivetUI() class FRivetUI: nbOfColumn = 0 width = 30 def __init__(self): self.ui_layout() mc.showWindow('rvtUI') ...
37.321586
118
0.597616
1d3f23deafff3bf676c69551aeabe1897a17f4ab
382
py
Python
build/caster_man_viz/catkin_generated/pkg.installspace.context.pc.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
build/caster_man_viz/catkin_generated/pkg.installspace.context.pc.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
build/caster_man_viz/catkin_generated/pkg.installspace.context.pc.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "caster_man_viz" PROJECT_SPACE_DIR = "...
42.444444
68
0.709424
1d3f23e43eb75a5440a77d4d8e9bbc5a9fb126f6
573
py
Python
navycut/boiler_create_app/sister.py
FlaskAio/navycut
40f378f1710a26645df8d726c4d1caf33097da50
[ "MIT" ]
4
2021-09-22T09:23:04.000Z
2022-03-05T05:58:46.000Z
navycut/boiler_create_app/sister.py
FlaskAio/navycut
40f378f1710a26645df8d726c4d1caf33097da50
[ "MIT" ]
21
2021-09-27T03:19:21.000Z
2022-03-31T03:20:59.000Z
navycut/boiler_create_app/sister.py
FlaskAio/navycut
40f378f1710a26645df8d726c4d1caf33097da50
[ "MIT" ]
null
null
null
""" Do not change anything if you dont have enough knowledge how to handle it, otherwise it may mess the server. """ from navycut.core import AppSister from navycut.utils import path from .urls import urlpatterns __basedir__ = path.abspath(__file__).parent class classname___boiler_var(AppSister): name = "impo...
27.285714
57
0.753927
1d3f32902507d3a40b1bfcf0241d4c5155161967
21,690
py
Python
tests/test_helpers/test_search/test_models.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
tests/test_helpers/test_search/test_models.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
tests/test_helpers/test_search/test_models.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2020 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
34.648562
143
0.644398
1d3f9d44939678bd11bf1b8f6db9f47d7ceb3968
534
py
Python
Source/Oyooni/Color Recognition/server.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
Source/Oyooni/Color Recognition/server.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
Source/Oyooni/Color Recognition/server.py
Oyooni5245/Oyooni
a00b845ac97eaee74d40cab563b9532fdeca97c8
[ "MIT" ]
null
null
null
from flask import Flask, request from flask_restful import Resource, Api from detect import detectColors, get_color_dict app = Flask(__name__) api = Api(app) colorDict = get_color_dict() class ColorRecognizer(Resource): def post(self): image_path = request.get_json()['ImagePath'] detectedColor = ...
24.272727
59
0.728464
1d3fb0d908380ed704279f0a4552efcfaca5568c
1,868
py
Python
models/layers/conv.py
kuleshov/neural-variational-inference
ad8a30c143b1c7695b816f39cd84c0f696f8275c
[ "MIT" ]
15
2018-01-08T03:11:10.000Z
2022-02-08T20:24:22.000Z
models/layers/conv.py
kuleshov/neural-variational-inference
ad8a30c143b1c7695b816f39cd84c0f696f8275c
[ "MIT" ]
null
null
null
models/layers/conv.py
kuleshov/neural-variational-inference
ad8a30c143b1c7695b816f39cd84c0f696f8275c
[ "MIT" ]
5
2018-02-26T07:18:10.000Z
2022-01-24T21:05:15.000Z
import numpy as np import theano import theano.tensor as T import lasagne # ---------------------------------------------------------------------------- class Deconv2DLayer(lasagne.layers.Layer): def __init__(self, incoming, num_filters, filter_size, stride=1, pad=0, nonlinearity=lasagne.nonlineariti...
43.44186
78
0.566916
1d3fe0e1d5110baf466a240d54784f2104a1e0ff
4,960
py
Python
python/wikibot/wikimonitor.py
JDzvonik/sling
3000f6ff7ae5c2d5ddcae13ad3599e35bf375ec5
[ "Apache-2.0" ]
2,023
2017-10-13T01:39:21.000Z
2022-03-27T14:24:09.000Z
python/wikibot/wikimonitor.py
JDzvonik/sling
3000f6ff7ae5c2d5ddcae13ad3599e35bf375ec5
[ "Apache-2.0" ]
166
2017-10-26T00:36:03.000Z
2021-10-08T13:32:32.000Z
python/wikibot/wikimonitor.py
JDzvonik/sling
3000f6ff7ae5c2d5ddcae13ad3599e35bf375ec5
[ "Apache-2.0" ]
316
2017-10-12T20:34:28.000Z
2022-02-02T16:03:45.000Z
# Copyright 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:#www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.206897
79
0.616935
1d3fee91e790c651931e3c86b5dc59edb3a0e0f3
770
py
Python
tests/unit/test_agent_main.py
tilkow/temboard-agent
b8bf296454db68a85996f49fb6c684d57efa028a
[ "PostgreSQL" ]
1
2017-12-18T12:07:45.000Z
2017-12-18T12:07:45.000Z
tests/unit/test_agent_main.py
tilkow/temboard-agent
b8bf296454db68a85996f49fb6c684d57efa028a
[ "PostgreSQL" ]
null
null
null
tests/unit/test_agent_main.py
tilkow/temboard-agent
b8bf296454db68a85996f49fb6c684d57efa028a
[ "PostgreSQL" ]
null
null
null
import pytest def test_help(): from temboardagent.scripts.agent import main with pytest.raises(SystemExit) as ei: main(argv=['--help']) assert 0 == ei.value.code def test_options_specs(): from temboardagent.scripts.agent import list_options_specs assert list(list_options_specs()) de...
25.666667
71
0.74026
1d40158ec0f95f1953e065101f5edd8ba74f3c38
725
py
Python
setup.py
yossioo/thonny-black-code-format
182bcd49abb967c29e88b75f07d6a48c14f8fa20
[ "MIT" ]
3
2021-07-31T00:25:54.000Z
2021-08-15T15:59:25.000Z
setup.py
yossioo/thonny-black-code-format
182bcd49abb967c29e88b75f07d6a48c14f8fa20
[ "MIT" ]
null
null
null
setup.py
yossioo/thonny-black-code-format
182bcd49abb967c29e88b75f07d6a48c14f8fa20
[ "MIT" ]
1
2021-07-31T00:26:15.000Z
2021-07-31T00:26:15.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="thonny-black-format", version="0.0.3", author="Franccisco", description="A plugin to format your python code with Black in Thonny IDE.", long_description=long_description, long_descrip...
31.521739
80
0.666207
1d402880f6acb705c38b8a4a6b001d4e5d92be33
2,269
py
Python
rally/plugins/openstack/context/designate/zones.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/context/designate/zones.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/context/designate/zones.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
# 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 agreed to in writing, software #...
37.196721
75
0.634641
1d4077012802981989855e07df0e5f0a9be9fbba
5,459
py
Python
galois/_math.py
iyanmv/galois
a5e6386a684e3e0b47af608217002795dc25c702
[ "MIT" ]
null
null
null
galois/_math.py
iyanmv/galois
a5e6386a684e3e0b47af608217002795dc25c702
[ "MIT" ]
null
null
null
galois/_math.py
iyanmv/galois
a5e6386a684e3e0b47af608217002795dc25c702
[ "MIT" ]
null
null
null
""" A module containing math and arithmetic routines on integers. Some of these functions are polymorphic and wrapped in `_polymorphic.py`. """ import math import sys from typing import Tuple import numpy as np from ._overrides import set_module __all__ = ["isqrt", "iroot", "ilog"] ################################...
24.701357
135
0.491116
1d407b181930c399c76d3c9694165b49c427abe7
3,922
py
Python
src/Tacotron2/layers.py
ajinkyakulkarni14/ERISHA
2135ed05845ca097f616dc4548fb1a33c6fe9ad2
[ "BSD-3-Clause" ]
42
2020-11-15T13:46:24.000Z
2021-08-16T11:04:17.000Z
src/Tacotron2/layers.py
ajinkyakulkarni14/ERISHA
2135ed05845ca097f616dc4548fb1a33c6fe9ad2
[ "BSD-3-Clause" ]
3
2021-02-24T03:08:31.000Z
2021-11-05T04:15:53.000Z
src/Tacotron2/layers.py
ajinkyakulkarni14/ERISHA
2135ed05845ca097f616dc4548fb1a33c6fe9ad2
[ "BSD-3-Clause" ]
18
2020-11-16T11:07:11.000Z
2022-02-11T01:25:24.000Z
# from https://github.com/NVIDIA/tacotron2 # no changes made import torch from librosa.filters import mel as librosa_mel_fn from audio_processing import dynamic_range_compression, dynamic_range_decompression from stft import STFT class LinearNorm(torch.nn.Module): def __init__(self, in_dim, out_dim, bias=True, w...
38.45098
87
0.631566
1d40a704b8d0bcf27ff99d089b350544fbbeafec
399
py
Python
cases/dataset_preparation.py
rozlana-g/FEDOT
a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c
[ "BSD-3-Clause" ]
358
2020-06-11T09:34:53.000Z
2022-03-31T12:56:22.000Z
cases/dataset_preparation.py
rozlana-g/FEDOT
a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c
[ "BSD-3-Clause" ]
467
2020-06-11T13:49:45.000Z
2022-03-31T14:19:48.000Z
cases/dataset_preparation.py
rozlana-g/FEDOT
a909d6c0ef481cc1cf7a5f10f7b1292d8d2def5c
[ "BSD-3-Clause" ]
48
2020-07-13T14:50:45.000Z
2022-03-26T09:37:13.000Z
import os import tarfile def unpack_archived_data(archive_name: str): archive_path = os.path.abspath(f'{archive_name}.tar.gz') if (os.path.exists(archive_path) and archive_name not in os.listdir(os.path.dirname(archive_path))): with tarfile.open(archive_path) as file: file.extr...
33.25
75
0.701754
1d40f0678698864a0a7aa044e463405cf45dd6de
5,714
py
Python
sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/redhatopenshift/azure-mgmt-redhatopenshift/azure/mgmt/redhatopenshift/v2021_09_01_preview/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
38.870748
133
0.651208
1d40f165536c72698e9806f6500bd747570c2a5f
4,545
py
Python
salt/modules/smtp.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
3
2015-04-16T18:42:35.000Z
2017-10-30T16:57:49.000Z
salt/salt/modules/smtp.py
smallyear/linuxLearn
342e5020bf24b5fac732c4275a512087b47e578d
[ "Apache-2.0" ]
16
2015-11-18T00:44:03.000Z
2018-10-29T20:48:27.000Z
salt/salt/modules/smtp.py
smallyear/linuxLearn
342e5020bf24b5fac732c4275a512087b47e578d
[ "Apache-2.0" ]
1
2018-04-19T16:57:27.000Z
2018-04-19T16:57:27.000Z
# -*- coding: utf-8 -*- ''' Module for Sending Messages via SMTP .. versionadded:: 2014.7.0 :depends: - smtplib python module :configuration: This module can be used by either passing a jid and password directly to send_message, or by specifying the name of a configuration profile in the minion config, mini...
28.584906
81
0.605061
1d4125a7f8886209b67a876080835fd17e8436e1
17,052
py
Python
NavPython/IronPython/Tools/Scripts/pyc.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
2
2020-09-27T09:19:57.000Z
2022-03-05T11:08:26.000Z
NavPython/IronPython/Tools/Scripts/pyc.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
null
null
null
NavPython/IronPython/Tools/Scripts/pyc.py
jstammers/EDMSuite
2841c0edef32a496855ca41deaa0f710b017ae2f
[ "MIT" ]
1
2020-05-11T12:26:46.000Z
2020-05-11T12:26:46.000Z
##################################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # # This source code is subject to terms and conditions of the Apache License, Version 2.0. A # copy of the license can be found in the License.html file at the root of th...
51.207207
217
0.641977
1d4149d4633dbc07653bfba807b459d7f72e6fc0
449
py
Python
alipay/aop/api/response/AlipayOpenMiniResourceModifyResponse.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/response/AlipayOpenMiniResourceModifyResponse.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/response/AlipayOpenMiniResourceModifyResponse.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.response.AlipayResponse import AlipayResponse class AlipayOpenMiniResourceModifyResponse(AlipayResponse): def __init__(self): super(AlipayOpenMiniResourceModifyResponse, self).__init__() def parse_response_content(self, ...
28.0625
109
0.783964
1d417d1adead71451eeec949930511b24a59719e
6,638
py
Python
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_sql_resources_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_sql_resources_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
9
2022-03-25T19:35:49.000Z
2022-03-31T06:09:47.000Z
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_sql_resources_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-14T21:43:29.000Z
2022-02-14T21:43:29.000Z
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
46.097222
193
0.662097
1d418340a7207690f971b79791ab390ce20812fa
16,813
py
Python
vnpy/data/renko/rebuild_future.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
null
null
null
vnpy/data/renko/rebuild_future.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
null
null
null
vnpy/data/renko/rebuild_future.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
1
2020-04-03T10:43:31.000Z
2020-04-03T10:43:31.000Z
# encoding: UTF-8 import os import copy import csv import signal import traceback from datetime import datetime, timedelta from queue import Queue from time import sleep from threading import Thread from vnpy.data.mongo.mongo_data import MongoData from vnpy.data.tdx.tdx_common import FakeStrategy, get_future_contrac...
42.0325
119
0.526081
1d41a6e06b4debabb55afa7298a90efc74d390b1
2,372
py
Python
angalabiri/utils/models.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
1
2021-03-25T14:06:23.000Z
2021-03-25T14:06:23.000Z
angalabiri/utils/models.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
5
2021-09-08T03:08:46.000Z
2022-03-12T00:56:35.000Z
angalabiri/utils/models.py
me-edavids/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
null
null
null
import datetime import math import os import random import string from django.db.models import Avg, Count, Sum from django.utils import timezone from django.utils.text import slugify def random_integer_generator(size=12, chars=string.digits): return "".join(random.choice(chars) for _ in range(size)) def random...
28.238095
83
0.718381
1d4211d74dfb47fba06afaf48f018d88fda8725b
29
py
Python
btd6_memory_info/generated/System/Xml/Linq/NamespaceResolver/namespace_resolver.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Xml/Linq/NamespaceResolver/namespace_resolver.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Xml/Linq/NamespaceResolver/namespace_resolver.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class NamespaceResolver: pass
29
29
0.896552
1d421ac89f5d847a53e10084afa3ffd184b0539e
84,600
py
Python
python/ray/tests/test_basic.py
FlyClover/ray
51dae23d5c8e81449bf381427fcb246c821a0196
[ "Apache-2.0" ]
null
null
null
python/ray/tests/test_basic.py
FlyClover/ray
51dae23d5c8e81449bf381427fcb246c821a0196
[ "Apache-2.0" ]
null
null
null
python/ray/tests/test_basic.py
FlyClover/ray
51dae23d5c8e81449bf381427fcb246c821a0196
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections from concurrent.futures import ThreadPoolExecutor import json import logging import os import random import re import setproctitle import shutil import six import socket impor...
30.171184
79
0.60961
1d42457dd13e99f43e6ab1f2584c720513c4a49f
31,535
py
Python
test/unit/test_caching.py
chromy/PyOP2
8a1955c628b795019485c9771709c338a806e661
[ "BSD-3-Clause" ]
null
null
null
test/unit/test_caching.py
chromy/PyOP2
8a1955c628b795019485c9771709c338a806e661
[ "BSD-3-Clause" ]
null
null
null
test/unit/test_caching.py
chromy/PyOP2
8a1955c628b795019485c9771709c338a806e661
[ "BSD-3-Clause" ]
null
null
null
# This file is part of PyOP2 # # PyOP2 is Copyright (c) 2012, Imperial College London and # others. Please see the AUTHORS file in the main source directory for # a full list of copyright holders. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted ...
32.047764
104
0.572253
1d425bd6eb064f59207cd29390173fb0f56d2684
12,013
py
Python
custom_components/xiaomigateway/media_player.py
gheesung/xiaomigateway
5193daa7efa6e23afbc10d3c185410d08263a84f
[ "MIT" ]
null
null
null
custom_components/xiaomigateway/media_player.py
gheesung/xiaomigateway
5193daa7efa6e23afbc10d3c185410d08263a84f
[ "MIT" ]
null
null
null
custom_components/xiaomigateway/media_player.py
gheesung/xiaomigateway
5193daa7efa6e23afbc10d3c185410d08263a84f
[ "MIT" ]
null
null
null
""" Add support for the Xiaomi Gateway FM Radio. """ import homeassistant.helpers.config_validation as cv import logging import voluptuous as vol import asyncio from homeassistant.components.media_player import MediaPlayerEntity from homeassistant.components.media_player.const import ( SUPPORT_TURN_ON, SUPPORT_T...
34.82029
88
0.570965
1d425f5d9b15d177bb5a282b347fe9048baac3bf
13,032
py
Python
nova/test.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/test.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/test.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
34.752
79
0.643416
1d429236e05c0e9887599dd078cf1b6f12863937
90,896
py
Python
Kernel.py
gsboylan/meerk40t
7607b034368a428dfc5cab56629032d6074c756d
[ "MIT" ]
null
null
null
Kernel.py
gsboylan/meerk40t
7607b034368a428dfc5cab56629032d6074c756d
[ "MIT" ]
null
null
null
Kernel.py
gsboylan/meerk40t
7607b034368a428dfc5cab56629032d6074c756d
[ "MIT" ]
null
null
null
import os import time from threading import Thread, Lock from LaserOperation import * STATE_UNKNOWN = -1 STATE_INITIALIZE = 0 STATE_IDLE = 1 STATE_ACTIVE = 2 STATE_BUSY = 3 STATE_PAUSE = 4 STATE_END = 5 STATE_WAIT = 7 # Controller is waiting for something. This could be aborted. STATE_TERMINATE = 10 ...
36.829822
121
0.556064
1d42f6e6cb88717078fe239ee5779643b986abcb
4,826
py
Python
test/integration/vint/linting/test_linter.py
mattn/vint
d8804a006182362a03eaac16d7a133aff5db84a8
[ "MIT" ]
1
2015-05-14T22:02:45.000Z
2015-05-14T22:02:45.000Z
test/integration/vint/linting/test_linter.py
mattn/vint
d8804a006182362a03eaac16d7a133aff5db84a8
[ "MIT" ]
null
null
null
test/integration/vint/linting/test_linter.py
mattn/vint
d8804a006182362a03eaac16d7a133aff5db84a8
[ "MIT" ]
null
null
null
import unittest from pathlib import Path from vint.ast.node_type import NodeType from vint.linting.level import Level from vint.linting.policy.abstract_policy import AbstractPolicy from vint.linting.linter import Linter INVALID_VIM_SCRIPT = Path('test', 'fixture', 'linter', 'invalid.vim') BROKEN_VIM_SCRIPT = Path('tes...
28.388235
79
0.495856
1d42fb8eb200a58f86d4fb56ab0900fdcccc9ced
15,059
py
Python
python/oneflow/nn/modules/constant.py
Warmchay/oneflow
5a333ff065bb89990318de2f1bd650e314d49301
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/modules/constant.py
Warmchay/oneflow
5a333ff065bb89990318de2f1bd650e314d49301
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/modules/constant.py
Warmchay/oneflow
5a333ff065bb89990318de2f1bd650e314d49301
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
35.769596
200
0.6187
1d43164071d478bf142846e9dfaae7d581b52ef3
17,297
py
Python
sodasql/cli/cli.py
fbertsch/soda-sql
112fd2efad64795b03dc55143fbf6a8385c93c8c
[ "Apache-2.0" ]
null
null
null
sodasql/cli/cli.py
fbertsch/soda-sql
112fd2efad64795b03dc55143fbf6a8385c93c8c
[ "Apache-2.0" ]
null
null
null
sodasql/cli/cli.py
fbertsch/soda-sql
112fd2efad64795b03dc55143fbf6a8385c93c8c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Soda # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software #...
43.679293
133
0.626698
1d4318c64a3e348f67f6e63a702094127969f872
613
py
Python
pyclopedia/p03_stdlib/_numeric_and_math/p06_random.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
pyclopedia/p03_stdlib/_numeric_and_math/p06_random.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
pyclopedia/p03_stdlib/_numeric_and_math/p06_random.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ref: - https://docs.python.org/2/library/random.html - https://docs.python.org/3/library/random.html """ import random options = "0123456789abcdefg" # random choose one choice = random.choice(options) # choose non-repeat n, a combination from pool md5 = "".join(r...
17.027778
47
0.690049
1d432ce3fb11abde7dcca6484fbe79c2f6f80559
6,650
py
Python
deepsim/deepsim/core/twist.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
1
2022-03-25T07:20:49.000Z
2022-03-25T07:20:49.000Z
deepsim/deepsim/core/twist.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
deepsim/deepsim/core/twist.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
################################################################################# # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"). ...
29.820628
96
0.511429
1d43446e534758ea86ea86c254d7c701ab605c36
10,010
py
Python
tests/test_moe.py
ploshkin/hivemind
7bb656567417895e9f1d8684a0c0e9ef4e4de25d
[ "MIT" ]
null
null
null
tests/test_moe.py
ploshkin/hivemind
7bb656567417895e9f1d8684a0c0e9ef4e4de25d
[ "MIT" ]
null
null
null
tests/test_moe.py
ploshkin/hivemind
7bb656567417895e9f1d8684a0c0e9ef4e4de25d
[ "MIT" ]
null
null
null
import grpc import numpy as np import pytest import torch import hivemind from hivemind import background_server from hivemind.client.expert import DUMMY from hivemind.server import layers @pytest.mark.forked def test_moe(): all_expert_uids = [f'ffn.{np.random.randint(0, 3)}.{np.random.randint(0, 3)}.{np.random....
44.887892
120
0.609291
1d437ee9ff8720e625bdfcd5713633575f666bdf
3,568
py
Python
ibans/iban.py
iltoningui/ibans-python
ff688843afc4913c5b2c91ae5b653b54e82c67ca
[ "MIT" ]
3
2021-01-31T12:44:24.000Z
2021-02-01T17:51:03.000Z
ibans/iban.py
iltoningui/ibans-python
ff688843afc4913c5b2c91ae5b653b54e82c67ca
[ "MIT" ]
1
2021-05-28T05:31:59.000Z
2021-05-28T05:31:59.000Z
ibans/iban.py
open-ibans/ibans-python
ff688843afc4913c5b2c91ae5b653b54e82c67ca
[ "MIT" ]
null
null
null
from enum import Enum class IbanFormat(Enum): PRINT = 0 ELECTRONIC = 1 PRINT_HIDDEN = 3 ELECTRONIC_HIDDEN = 4 class Iban: """ This class represents a parsed IBAN """ def __init__( self, iban_format: list, country_code: str, check_digit: str, bban: ...
31.857143
82
0.602578
1d437f51eb439f11fbb025da6ca4d4e6bd6b9ff3
13,179
py
Python
st2common/st2common/services/rbac.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
st2common/st2common/services/rbac.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
st2common/st2common/services/rbac.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
33.705882
98
0.696259
1d43a90a58edde78ca6dd62ea35138f5d16e56db
610
py
Python
exercicio_01.py
alef123vinicius/Estudo_python
30b121d611f94eb5df9fbb41ef7279546143221b
[ "Apache-2.0" ]
1
2021-02-10T14:59:44.000Z
2021-02-10T14:59:44.000Z
exercicio_01.py
alef123vinicius/Estudo_python
30b121d611f94eb5df9fbb41ef7279546143221b
[ "Apache-2.0" ]
null
null
null
exercicio_01.py
alef123vinicius/Estudo_python
30b121d611f94eb5df9fbb41ef7279546143221b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Feb 11 15:28:46 2021 @author: alef """ """ Exercicio 01 1. Implementar duas funções: - Uma que converta temperatura em graus Celsius para Fahrenheit - Outra que covnerta temperatura em graus Fahrenheit para Celsius Formula: F = 9/...
19.0625
69
0.678689
1d4428ad717aab11869f680be8522615d10f5a33
849
py
Python
python/tree/0590_n-ary_tree_postorder_traversal.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/tree/0590_n-ary_tree_postorder_traversal.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/tree/0590_n-ary_tree_postorder_traversal.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
# Definition for a Node. class Node(object): def __init__(self, val, children): self.val = val self.children = children class Solution(object): def postorder(self, root): """ :type root: Node :rtype: List[int] """ res = [] if root is None: ...
20.707317
47
0.497055
1d444b7ea4ea1967bdc92d5a9bfa4623437e639b
25,571
py
Python
bballmain/lib/python2.7/site-packages/faker/tests/__init__.py
bjf2015/bballmain
81130df9e546211e34da6c4377cf0b19ce773f88
[ "MIT" ]
null
null
null
bballmain/lib/python2.7/site-packages/faker/tests/__init__.py
bjf2015/bballmain
81130df9e546211e34da6c4377cf0b19ce773f88
[ "MIT" ]
null
null
null
bballmain/lib/python2.7/site-packages/faker/tests/__init__.py
bjf2015/bballmain
81130df9e546211e34da6c4377cf0b19ce773f88
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals __loader__ = None import datetime import json import os import re import time import unittest import string import six import sys import logging try: from mock import patch except ImportError: from unittest.mock import patch try: from StringIO impo...
37.659794
165
0.647491
1d450f039955b25bcf4f1eec430dd5cbfa9a0286
5,573
py
Python
API/src/main/resources/Lib/robot/variables/filesetter.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/variables/filesetter.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/variables/filesetter.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license # # 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 b...
38.701389
79
0.621389
1d4523cec41ca06376831529b195d0034e4d1d1d
3,151
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1/aio/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1/aio/_configuration.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.476923
142
0.695017
1d4524415eb66c5373b6584a4849273add2d0bcc
11,048
py
Python
main.py
Abeilles14/Velocity-Obstacle-and-Motion-Planning
4509abeb589d6f11046103422f70f8ddde397d63
[ "MIT" ]
7
2021-11-17T01:39:02.000Z
2022-01-23T17:40:29.000Z
main.py
Abeilles14/Velocity-Obstacle-and-Motion-Planning
4509abeb589d6f11046103422f70f8ddde397d63
[ "MIT" ]
null
null
null
main.py
Abeilles14/Velocity-Obstacle-and-Motion-Planning
4509abeb589d6f11046103422f70f8ddde397d63
[ "MIT" ]
null
null
null
# 3D PICK AND PLACE SIMULATION import numpy as np import logging from math import * from matplotlib import pyplot as plt from utils import init_fonts, get_nearest_object, add_obstacle, dump_graphics from obstacles import Static_Obstacle from objects import Object from arm import Arm from arm_state_machine import ArmSta...
40.918519
133
0.589971
1d4565905fd4fe1e72685813e00d2cf94e5be97e
3,093
py
Python
test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_llc_client.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_llc_client.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/llc/low-level/Expected/AcceptanceTests/LLCServiceDrivenUpdateOneLowLevel/llcservicedrivenupdateonelowlevel/aio/_llc_client.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.958333
119
0.685742
1d457eca49991b3427d1c0f8a10998cf7c81ae8a
1,861
py
Python
app/utils/data.py
flych3r/spotify-tracker
306d549da6a57866ea480c85286d870e7653a1eb
[ "MIT" ]
2
2021-06-25T00:24:13.000Z
2021-07-10T13:00:39.000Z
app/utils/data.py
flych3r/spotify-tracker
306d549da6a57866ea480c85286d870e7653a1eb
[ "MIT" ]
null
null
null
app/utils/data.py
flych3r/spotify-tracker
306d549da6a57866ea480c85286d870e7653a1eb
[ "MIT" ]
2
2021-05-16T01:40:39.000Z
2021-07-10T12:59:07.000Z
from typing import Any, Dict, List, Text, Union def select_dict_keys( dictionary: Union[Dict, List[Dict]], keys: List[Text] ) -> Union[Dict, List[Dict]]: """ Returns subset of dictionary. Parameters ---------- dictionary : dict or list of dict dictionaries to filter keys keys : li...
23.556962
70
0.59914
1d45c933ed2eb8f0cb12be40d216ea1ad545f916
1,123
py
Python
reconstruction/main/main_experiment4.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
reconstruction/main/main_experiment4.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
15
2019-06-17T16:13:39.000Z
2022-02-27T05:23:59.000Z
reconstruction/main/main_experiment4.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
import numpy as np def solve(X, Y, solution=[]): if not X: yield list(solution) else: c = min(X, key=lambda c: len(X[c])) for r in list(X[c]): solution.append(r) cols = select(X, Y, r) for s in solve(X, Y, solution): yield s deselect(X, Y, r, cols) solution.pop() ...
21.596154
81
0.487979
1d4607dcf52197ff31142d78034e7334f96de1e4
3,245
py
Python
ts/nni_manager/config/aml/amlUtil.py
Microsoft/nni
b99e26833287c901f6d808d07ea6882014b05f58
[ "MIT" ]
2,305
2018-09-07T12:42:26.000Z
2019-05-06T20:14:24.000Z
ts/nni_manager/config/aml/amlUtil.py
Eurus-Holmes/nni
45af1d6b79b355d3e013f1eae2f4c193bbd84074
[ "MIT" ]
379
2018-09-10T10:19:50.000Z
2019-05-06T18:04:46.000Z
ts/nni_manager/config/aml/amlUtil.py
Eurus-Holmes/nni
45af1d6b79b355d3e013f1eae2f4c193bbd84074
[ "MIT" ]
314
2018-09-08T05:36:08.000Z
2019-05-06T08:48:51.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import sys import time import json import warnings from argparse import ArgumentParser from azureml.core import Experiment, RunConfiguration, ScriptRunConfig, Workspace from azureml.core.authentication import ( AzureCliAuthenticatio...
41.075949
110
0.668413
1d46251ea30ce42f83c9af7fb97c52d15ccefc3b
5,538
py
Python
helix/utils/utils.py
ckrivacic/helix_matcher
e1acb518117faf7de9a91270f86d78e066eea903
[ "MIT" ]
2
2021-04-26T15:14:08.000Z
2021-06-07T10:56:37.000Z
helix/utils/utils.py
ckrivacic/helix_matcher
e1acb518117faf7de9a91270f86d78e066eea903
[ "MIT" ]
null
null
null
helix/utils/utils.py
ckrivacic/helix_matcher
e1acb518117faf7de9a91270f86d78e066eea903
[ "MIT" ]
null
null
null
from pyrosetta import * from pyrosetta.rosetta.core.select import residue_selector from helix.utils.numeric import intlist_to_vector1_size import os, wget, sys import networkx as nx def three_to_one(restype): three_to_one = { 'ala':'a', 'arg':'r', 'asn':'n', 'asp':'d', 'cys':'c', 'glu':'e',...
28.4
76
0.597869
1d4672ff0b7525c244174f27959d8735163bdbc0
22
py
Python
ibm_watson/version.py
jsstylos/waston-developer-cloud-python-sdk
97de097b8c86622ab2f30f5386bb74321d28addf
[ "Apache-2.0" ]
1,579
2015-10-08T14:02:17.000Z
2022-02-28T10:49:21.000Z
ibm_watson/version.py
jsstylos/waston-developer-cloud-python-sdk
97de097b8c86622ab2f30f5386bb74321d28addf
[ "Apache-2.0" ]
749
2015-10-08T20:00:24.000Z
2022-03-21T21:33:17.000Z
Lib/site-packages/chainer/_version.py
km-t/dcpython
c0fcd5557691004d7d9d22a662d90e52ecc5f34f
[ "CNRI-Python-GPL-Compatible" ]
1,006
2015-10-24T06:30:58.000Z
2022-03-23T07:10:04.000Z
__version__ = '5.3.0'
11
21
0.636364
1d467ac9b2861a178e39d0b4e9f0c2be09a55b34
15,551
py
Python
datafreezer/seed_db.py
DallasMorningNews/django-datafreezer
982dcf2015c80a280f1a093e32977cb71d4ea7aa
[ "MIT" ]
1
2017-03-07T15:53:31.000Z
2017-03-07T15:53:31.000Z
datafreezer/seed_db.py
DallasMorningNews/django-datafreezer
982dcf2015c80a280f1a093e32977cb71d4ea7aa
[ "MIT" ]
null
null
null
datafreezer/seed_db.py
DallasMorningNews/django-datafreezer
982dcf2015c80a280f1a093e32977cb71d4ea7aa
[ "MIT" ]
2
2016-09-02T04:53:06.000Z
2018-04-11T21:38:22.000Z
# Imports from python. # NOQA from csv import reader import random import string # Imports from django. from django.utils.text import slugify # Imports from datafreezer. from datafreezer.apps import HUBS_LIST, STAFF_LIST # NOQA from datafreezer.models import ( Article, # NOQA DataDictionary, DataDict...
41.140212
79
0.680985
1d467ccbda4e3a25f2e6b6fd7ba5f5ed89a4ec01
6,185
py
Python
sdk/scvmm/azure-mgmt-scvmm/azure/mgmt/scvmm/aio/_scvmm.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/scvmm/azure-mgmt-scvmm/azure/mgmt/scvmm/aio/_scvmm.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/scvmm/azure-mgmt-scvmm/azure/mgmt/scvmm/aio/_scvmm.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 ...
52.415254
217
0.735166
1d468c2c031785a8c52b6f3486afa98411511b0f
323
py
Python
basic/lists.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
basic/lists.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
basic/lists.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
intList = [1, 2, 3, 4, 5, 6, 7, 8, 9] sliceList = intList[5:7] concatList = intList + [10, 11, 12] appendList = intList appendList.append(123) matrix = [[1, 2, 3], [4, 5, 6]] matrix2 = 8*[8*[0]] print(intList) print(sliceList) print(concatList) print(appendList) print("Length: ", len(intList)) print(matrix) print(matri...
23.071429
37
0.665635
1d469266b93b893d38b2e08ac6d8947e1c2780f7
14,480
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_10_01/aio/operations/_maintenance_configurations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_10_01/aio/operations/_maintenance_configurations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_10_01/aio/operations/_maintenance_configurations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
44.281346
232
0.676243
1d46e3d934051b656bb9e6cfa393a3a982b853f7
1,451
py
Python
scripts/minnimumRemoveToMakeValidParanthesis.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/minnimumRemoveToMakeValidParanthesis.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/minnimumRemoveToMakeValidParanthesis.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" Medium Given a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum number of parentheses ( '(' or ')', in any positions ) so that the resulting parentheses string is valid and return any valid string. Formally, a parentheses string is valid if and only if: It is the empty ...
20.43662
111
0.651275
1d46e70728daa925812b89a859f51f6d1189acb5
45,453
py
Python
GearBot/Cogs/Serveradmin.py
mrkirby153/GearBot
a61d936c12e906c7bcfaa840a585ee25ffc06138
[ "MIT" ]
null
null
null
GearBot/Cogs/Serveradmin.py
mrkirby153/GearBot
a61d936c12e906c7bcfaa840a585ee25ffc06138
[ "MIT" ]
null
null
null
GearBot/Cogs/Serveradmin.py
mrkirby153/GearBot
a61d936c12e906c7bcfaa840a585ee25ffc06138
[ "MIT" ]
null
null
null
import discord import pytz from discord import TextChannel from discord.ext import commands from pytz import UnknownTimeZoneError from Cogs.BaseCog import BaseCog from Util import Configuration, Permissioncheckers, Emoji, Translator, Features, Utils, Confirmation, Pages, \ MessageUtils, Selfroles from Util.Convert...
46.714286
230
0.605175
1d46e919abb808c8c257703026415a7706acebbb
6,714
py
Python
tests/test_helpers.py
mrcagney/gtfs_k
746ef0d983e3f52cbc4b792728395513e7181ed5
[ "MIT" ]
47
2019-09-11T19:03:22.000Z
2022-03-23T13:54:11.000Z
tests/test_helpers.py
mrcagney/gtfs_k
746ef0d983e3f52cbc4b792728395513e7181ed5
[ "MIT" ]
8
2019-11-01T09:13:50.000Z
2022-03-22T22:19:47.000Z
tests/test_helpers.py
mrcagney/gtfs_k
746ef0d983e3f52cbc4b792728395513e7181ed5
[ "MIT" ]
17
2020-01-13T03:34:36.000Z
2022-02-09T03:51:04.000Z
import pytest import pandas as pd import numpy as np from numpy.testing import assert_array_equal from pandas.testing import assert_series_equal import shapely.geometry as sg from .context import gtfs_kit, cairns, cairns_dates, cairns_trip_stats from gtfs_kit import * def test_timestr_to_seconds(): timestr1 = "...
27.858921
86
0.567918
1d46f1ee8e30795d023249c985814e13f2e28c7d
14,871
py
Python
salt/modules/solarispkg.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
1
2020-06-16T05:47:58.000Z
2020-06-16T05:47:58.000Z
salt/modules/solarispkg.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/modules/solarispkg.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Package support for Solaris ''' # Import python libs import copy import os import logging # Import salt libs import salt.utils from salt.exceptions import CommandExecutionError, MinionError log = logging.getLogger(__name__) # Define the module's virtual name __virtualname__ = 'pkg' def...
31.843683
138
0.634658
1d471776b1c4e63967aedc91f3d69e47c8346a2b
2,063
py
Python
test/test_pmac/test_regression/test_cs_switching.py
hir12111/pmac
aaedd320e1548c085adce55edfd1183716a74f3b
[ "Apache-2.0" ]
14
2016-08-24T11:18:59.000Z
2022-03-04T02:14:11.000Z
test/test_pmac/test_regression/test_cs_switching.py
hir12111/pmac
aaedd320e1548c085adce55edfd1183716a74f3b
[ "Apache-2.0" ]
26
2016-12-08T13:17:05.000Z
2022-02-01T16:39:40.000Z
test/test_pmac/test_regression/test_cs_switching.py
hir12111/pmac
aaedd320e1548c085adce55edfd1183716a74f3b
[ "Apache-2.0" ]
8
2016-10-07T12:55:38.000Z
2020-10-20T15:58:23.000Z
from unittest import TestCase from test.brick.trajectory import Trajectory from test.brick.movemonitor import MoveMonitor from datetime import datetime from test.brick.testbrick import TBrick, DECIMALS from cothread import Sleep import cothread.catools as ca # these are test_regression tests for the set of issues that...
36.839286
100
0.634513
1d473ab8d480612893a78959ba4569fe677d052e
9,188
py
Python
nova/virt/hyperv/driver.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/virt/hyperv/driver.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/virt/hyperv/driver.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2010 Cloud.com, Inc # Copyright (c) 2012 Cloudbase Solutions Srl # # 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 # # ...
44.173077
79
0.606334
1d4761ac9ed81108f7e9be729ba4d673658ac8cd
1,131
py
Python
commands/ingame_commands/highscores.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
commands/ingame_commands/highscores.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
commands/ingame_commands/highscores.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
from commands.command_functionality import highscores from commands.sendable import Sendable from ppobyter.ingame_commands.context import Context import asyncio def get_clancommands(): cmddict = {} for cmdname, cmd in highscores.get_clancommands().items(): def makecmd(cmd): return lambda c...
30.567568
92
0.715296
1d47648a167b71e5e11f6976aa49dae78be34ed7
11,554
py
Python
weather_forecasts.py
zspatter/weather-forecast
4daac158f7a7e94f4ea3f3d742e32b8248032e38
[ "Unlicense" ]
2
2020-11-11T17:16:56.000Z
2021-01-09T16:40:21.000Z
weather_forecasts.py
zspatter/weather-forecast
4daac158f7a7e94f4ea3f3d742e32b8248032e38
[ "Unlicense" ]
1
2019-05-21T17:11:44.000Z
2019-05-21T17:11:44.000Z
weather_forecasts.py
zspatter/weather-forecast
4daac158f7a7e94f4ea3f3d742e32b8248032e38
[ "Unlicense" ]
4
2020-02-14T00:27:05.000Z
2022-01-06T12:19:29.000Z
import csv from typing import Any, Dict, List, Optional, Union import pyowm # creates OWM object with my unique API key # (if forked, replace API key - keys can be generated here: https://openweathermap.org/appid) owm = pyowm.OWM(API_key='e8105e17092b41b8c9eb198d7692a4f2', version='2.5') forecasts: List[Dict[str, Any...
44.099237
97
0.612861
1d4776a2e69e4285b051ee382f8ba432ea23c522
3,979
py
Python
alipay/aop/api/request/AlipayCommerceDataCampaignSendRequest.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/AlipayCommerceDataCampaignSendRequest.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/AlipayCommerceDataCampaignSendRequest.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.AlipayCommerceDataCampaignSendModel import AlipayCommerceDataCampaignSendModel class AlipayCommerceDataCampaignSendRequest(object): ...
27.441379
148
0.645388
1d479aa05d785990558b88d6325a51249146c309
1,202
py
Python
thgsp/graphs/laplace.py
bwdeng20/thgsp
785b3ff291d72ee51e51e4cdbfd4bab63f8de9ac
[ "BSD-3-Clause" ]
22
2021-01-13T05:15:38.000Z
2022-01-17T01:37:29.000Z
thgsp/graphs/laplace.py
bwdeng20/thgsp
785b3ff291d72ee51e51e4cdbfd4bab63f8de9ac
[ "BSD-3-Clause" ]
2
2021-03-26T04:36:39.000Z
2022-01-11T16:17:56.000Z
thgsp/graphs/laplace.py
bwdeng20/thgsp
785b3ff291d72ee51e51e4cdbfd4bab63f8de9ac
[ "BSD-3-Clause" ]
2
2021-01-13T05:15:43.000Z
2022-01-01T12:51:32.000Z
import torch from torch_sparse import SparseTensor def laplace(adj: SparseTensor, lap_type=None): M, N = adj.sizes() assert M == N row, col, val = adj.clone().coo() val = col.new_ones(col.shape, dtype=adj.dtype()) if val is None else val deg = adj.sum(0) loop_index = torch.arange(N, device=ad...
33.388889
79
0.601498
1d47b8f7db1ed28ee2283684eb43ede41e46ce39
2,555
py
Python
master/kismet-2018-08-BETA1/kismet-2018-08-BETA1/log_tools/elk/kismet_log_to_elk.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/kismet-2018-08-BETA1/kismet-2018-08-BETA1/log_tools/elk/kismet_log_to_elk.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/kismet-2018-08-BETA1/kismet-2018-08-BETA1/log_tools/elk/kismet_log_to_elk.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
#!/usr/bin/env python # Simple dumper to extract kismet records and export them as a json # array import argparse from elasticsearch import Elasticsearch from elasticsearch_dsl import Index import json import sqlite3 import string import sys import re def strip_old_empty_trees(obj): # Hardcoded list of previousl...
26.071429
87
0.623092
1d47d2949e289105968dcbc3e81f3ec6403906ec
271
py
Python
product/serializers.py
manuelmillares/ecommerce-rest-api
9e4c38ee6fb3e76048abe11947f2fe56794d2cce
[ "MIT" ]
null
null
null
product/serializers.py
manuelmillares/ecommerce-rest-api
9e4c38ee6fb3e76048abe11947f2fe56794d2cce
[ "MIT" ]
null
null
null
product/serializers.py
manuelmillares/ecommerce-rest-api
9e4c38ee6fb3e76048abe11947f2fe56794d2cce
[ "MIT" ]
null
null
null
from rest_framework import serializers from ecommerce_api import models class ProductSerializer(serializers.ModelSerializer): """Serializes a product object""" class Meta: model = models.Product fields = ('id', 'title', 'description', 'price')
24.636364
56
0.708487
1d47d74b99f4c0b976898bb83c4a14034f1d9ce5
5,833
py
Python
sparv/modules/stanford/stanford.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
null
null
null
sparv/modules/stanford/stanford.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
null
null
null
sparv/modules/stanford/stanford.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
null
null
null
"""Use Stanford Parser to analyse English text. Requires Stanford CoreNLP version 4.0.0 (https://stanfordnlp.github.io/CoreNLP/history.html). May work with newer versions. Please download, unzip and place contents inside sparv-pipeline/bin/stanford_parser. License for Stanford CoreNLP: GPL2 https://www.gnu.org/license...
46.293651
120
0.620778
1d4811b4439fc2c7a15d633263b83c392a3e84e4
22,207
py
Python
flow_manager.py
SIOTLAB/FDK-Fog-Development-Kit
158bc2c3459c1e6f649e329faf8877632b90d895
[ "Apache-2.0" ]
4
2020-02-22T00:38:43.000Z
2021-11-15T17:42:56.000Z
flow_manager.py
SIOTLAB/FDK-Fog-Development-Kit
158bc2c3459c1e6f649e329faf8877632b90d895
[ "Apache-2.0" ]
null
null
null
flow_manager.py
SIOTLAB/FDK-Fog-Development-Kit
158bc2c3459c1e6f649e329faf8877632b90d895
[ "Apache-2.0" ]
1
2021-11-28T20:21:59.000Z
2021-11-28T20:21:59.000Z
# This file is a part of the The Fog Development Kit (FDK) # # Developed by: # - Colton Powell # - Christopher Desiniotis # - Dr. Behnam Dezfouli # # In the Internet of Things Research Lab, Santa Clara University, CA, USA import copy import json import fdk import manager import requests as req import sys import topol...
36.345336
110
0.498356
1d483b24d2926b1d03d8beb0d8a2eaad24b65b09
3,821
py
Python
ml-agents-envs/mlagentsdev/envs/communicator_objects/unity_input_pb2.py
vkakerbeck/ml-agents-dev
e3a52b5787af06c07fbd945e2ac37bb3bf07ce0c
[ "Apache-2.0" ]
null
null
null
ml-agents-envs/mlagentsdev/envs/communicator_objects/unity_input_pb2.py
vkakerbeck/ml-agents-dev
e3a52b5787af06c07fbd945e2ac37bb3bf07ce0c
[ "Apache-2.0" ]
null
null
null
ml-agents-envs/mlagentsdev/envs/communicator_objects/unity_input_pb2.py
vkakerbeck/ml-agents-dev
e3a52b5787af06c07fbd945e2ac37bb3bf07ce0c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mlagentsdev/envs/communicator_objects/unity_input.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import me...
45.488095
529
0.82256
1d485c4be133299cc41a0b3ee90a9cb52f4d286f
37,983
py
Python
tests/components/mqtt/test_climate.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
2
2022-01-24T18:59:56.000Z
2022-02-04T22:12:48.000Z
tests/components/mqtt/test_climate.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
3
2021-09-08T03:31:36.000Z
2022-03-12T01:00:03.000Z
tests/components/mqtt/test_climate.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""The tests for the mqtt climate component.""" import copy import json import unittest import pytest import voluptuous as vol from homeassistant.components.climate import DEFAULT_MAX_TEMP, DEFAULT_MIN_TEMP from homeassistant.components.climate.const import ( DOMAIN as CLIMATE_DOMAIN, HVAC_MODE_AUTO, HVAC...
38.212274
87
0.720085
1d487d0be831ffde3a9429649f448e7245447484
2,155
py
Python
Models/UNet.py
VladPerish/keras_segmentation
851771ff2b8d02879574f37e86a3acba12a4d299
[ "MIT" ]
1
2020-09-09T12:42:39.000Z
2020-09-09T12:42:39.000Z
Models/UNet.py
nayemabs/keras_segmentation
851771ff2b8d02879574f37e86a3acba12a4d299
[ "MIT" ]
null
null
null
Models/UNet.py
nayemabs/keras_segmentation
851771ff2b8d02879574f37e86a3acba12a4d299
[ "MIT" ]
null
null
null
""" @author: LiShiHang @software: PyCharm @file: UNet.py @time: 2018/12/27 16:54 @desc: """ from keras import Model, layers from keras.applications import vgg16 from keras.layers import Input, Conv2D, BatchNormalization, Activation, Reshape, MaxPool2D, concatenate, UpSampling2D def UNet(nClasses, input_height, input_...
29.520548
117
0.641299
1d488ccb93b71a4d7e4f29043708588242ed0e1a
19,801
py
Python
tests/python/driver/tvmc/test_compiler.py
ZihengJiang/relax
5676ffa4c423adf2b3f1920c5fdaca43369e9855
[ "Apache-2.0" ]
1
2020-04-01T07:18:38.000Z
2020-04-01T07:18:38.000Z
tests/python/driver/tvmc/test_compiler.py
ZihengJiang/relax
5676ffa4c423adf2b3f1920c5fdaca43369e9855
[ "Apache-2.0" ]
null
null
null
tests/python/driver/tvmc/test_compiler.py
ZihengJiang/relax
5676ffa4c423adf2b3f1920c5fdaca43369e9855
[ "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 u...
37.644487
135
0.72961