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
f7414e3f469f6d399018e369e8cc8df87c4996fc
11,287
py
Python
gorillabot/plugins/link.py
pep7/GorillaBot
b29ae1f05423494f7e122906efe24e9ffcd1421e
[ "MIT" ]
null
null
null
gorillabot/plugins/link.py
pep7/GorillaBot
b29ae1f05423494f7e122906efe24e9ffcd1421e
[ "MIT" ]
null
null
null
gorillabot/plugins/link.py
pep7/GorillaBot
b29ae1f05423494f7e122906efe24e9ffcd1421e
[ "MIT" ]
null
null
null
# Copyright (c) 2013-2016 Molly White # # 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, # di...
44.437008
104
0.565341
f74188f78260ec762de0025163fd477eb97cc78e
4,892
py
Python
examples/transfer_bo.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
2
2021-09-06T02:06:22.000Z
2021-12-09T10:46:56.000Z
examples/transfer_bo.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
null
null
null
examples/transfer_bo.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
null
null
null
import numpy as np # import matplotlib.pyplot as plt from xbbo.configspace.space import DenseConfiguration, DenseConfigurationSpace from ConfigSpace.hyperparameters import UniformFloatHyperparameter from ConfigSpace.conditions import LessThanCondition # from xbbo.search_algorithm.transfer_tst_optimizer import SMBO # f...
48.435644
206
0.705233
f741a188fda6bef0c338259d1d5661b648d7d929
108
py
Python
route/__init__.py
0xwhoami/growtopia-chemsynth-router
08ad29ccd3ec6b36ddb48662f84073102392979f
[ "CC0-1.0" ]
null
null
null
route/__init__.py
0xwhoami/growtopia-chemsynth-router
08ad29ccd3ec6b36ddb48662f84073102392979f
[ "CC0-1.0" ]
null
null
null
route/__init__.py
0xwhoami/growtopia-chemsynth-router
08ad29ccd3ec6b36ddb48662f84073102392979f
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python """ Copyright (c) 2020-End_Of_Life See the file 'LICENSE' for copying permission """
15.428571
45
0.712963
f741b19a862036a25420498abb6c38930096315b
9,213
py
Python
src/infi/pyutils/lazy.py
jasonjorge/infi.asi
78a4c34a421102f99b959a659cf7303804627d9b
[ "BSD-3-Clause" ]
1
2022-02-12T20:30:55.000Z
2022-02-12T20:30:55.000Z
src/infi/pyutils/lazy.py
jasonjorge/infi.asi
78a4c34a421102f99b959a659cf7303804627d9b
[ "BSD-3-Clause" ]
5
2015-11-08T14:50:42.000Z
2020-06-23T14:42:33.000Z
src/infi/pyutils/lazy.py
jasonjorge/infi.asi
78a4c34a421102f99b959a659cf7303804627d9b
[ "BSD-3-Clause" ]
4
2015-02-22T09:06:59.000Z
2022-02-12T20:30:55.000Z
# Adapted from http://wiki.python.org/moin/PythonDecoratorLibrary#Cached_Properties import itertools import time from .decorators import wraps from .python_compat import iteritems from logging import getLogger from types import MethodType, FunctionType logger = getLogger(__name__) class cached_property(object): "...
36.41502
127
0.635189
f741d28c120ea874d240f15469308faf34286a81
3,151
py
Python
src/radical/ensemblemd/kernel_plugins/misc/diff.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
src/radical/ensemblemd/kernel_plugins/misc/diff.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
src/radical/ensemblemd/kernel_plugins/misc/diff.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
#!/usr/bin/env python """A kernel that compares two ASCII files and outputs the differences in a detailed format. """ __author__ = "Ioannis Paraskevakos <i.paraskev@rutgers.edu>" __copyright__ = "Copyright 2014, http://radical.rutgers.edu" __license__ = "MIT" from copy import deepcopy from radical.ensemblem...
33.88172
109
0.458267
f74252377db9d6fa8eeb07059e4b49ddfc329441
1,766
py
Python
samples/snippets/quickstart/quickstart.py
glaswasser/python-vision
706c314a86b8f35c313bb3e907ae84317dca1a0b
[ "Apache-2.0" ]
null
null
null
samples/snippets/quickstart/quickstart.py
glaswasser/python-vision
706c314a86b8f35c313bb3e907ae84317dca1a0b
[ "Apache-2.0" ]
null
null
null
samples/snippets/quickstart/quickstart.py
glaswasser/python-vision
706c314a86b8f35c313bb3e907ae84317dca1a0b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
32.703704
163
0.734994
f7425d36fe0f6897968f289c5528c4b52be383e4
23,070
py
Python
utils/check_repo.py
slowy07/transformers
7223844df9738719ee335428a326cd712f506806
[ "Apache-2.0" ]
15
2021-08-10T01:10:44.000Z
2022-01-20T15:23:49.000Z
utils/check_repo.py
4nalog/transformers
76cadb7943c8492ec481f4f3925e9e8793a32c9d
[ "Apache-2.0" ]
1
2020-03-21T21:38:47.000Z
2020-03-21T21:38:50.000Z
utils/check_repo.py
4nalog/transformers
76cadb7943c8492ec481f4f3925e9e8793a32c9d
[ "Apache-2.0" ]
1
2021-04-02T20:42:10.000Z
2021-04-02T20:42:10.000Z
# coding=utf-8 # Copyright 2020 The HuggingFace Inc. 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...
40.831858
141
0.687603
f7426ea00976e99a807367df8f057a858b319b91
7,958
py
Python
example/Bayesian/More advanced examples with FE models - Sfepy/material_homogenization.py
volpatto/UQpy
acbe1d6e655e98917f56b324f019881ea9ccca82
[ "MIT" ]
1
2020-09-03T12:10:39.000Z
2020-09-03T12:10:39.000Z
example/Bayesian/More advanced examples with FE models - Sfepy/material_homogenization.py
volpatto/UQpy
acbe1d6e655e98917f56b324f019881ea9ccca82
[ "MIT" ]
null
null
null
example/Bayesian/More advanced examples with FE models - Sfepy/material_homogenization.py
volpatto/UQpy
acbe1d6e655e98917f56b324f019881ea9ccca82
[ "MIT" ]
1
2021-04-04T14:17:55.000Z
2021-04-04T14:17:55.000Z
#!/usr/bin/env python # This code was adapted from http://sfepy.org/doc-devel/mat_optim.html. from __future__ import print_function from __future__ import absolute_import import sys sys.path.append('.') import matplotlib as mlp import matplotlib.pyplot as plt from matplotlib.collections import PolyCollection from mp...
36.3379
93
0.574265
f7427e3e091e4b7bc43db2bc2372dfafe57fa435
1,335
py
Python
alipay/aop/api/response/AlipayFundCouponWufuLiveAcceptResponse.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/AlipayFundCouponWufuLiveAcceptResponse.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/AlipayFundCouponWufuLiveAcceptResponse.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 from alipay.aop.api.domain.CommonPrizeModelVo import CommonPrizeModelVo class AlipayFundCouponWufuLiveAcceptResponse(AlipayResponse): def __init__(self): super(AlipayFundCouponWufu...
31.046512
111
0.662172
f742bfecd3ff1bea6cfcdc0bc20e45e69326710e
1,523
py
Python
tests/version_spit_check.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
null
null
null
tests/version_spit_check.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
14
2020-09-30T21:16:46.000Z
2021-11-08T18:54:34.000Z
tests/version_spit_check.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
1
2020-09-17T12:48:57.000Z
2020-09-17T12:48:57.000Z
# This work is based on original code developed and copyrighted by TNO 2020. # Subsequent contributions are licensed to you by the developers of such code and are # made available to the Project under one or several contributor license agreements. # # This work is licensed to you under the Apache License, Versi...
31.729167
87
0.620486
f742e8a83d8dc2b3ed20891ea8ef42174aca4a4d
1,831
py
Python
toontown/suit/DistributedGridGoon.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/suit/DistributedGridGoon.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/suit/DistributedGridGoon.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 pandac.PandaModules import * from direct.interval.IntervalGlobal import * from toontown.battle.BattleProps import * from direct.directnotify import DirectNotifyGlobal from toontown.suit import DistributedGoon from toontown.toonbase import ToontownGlobals from toontown.coghq import MovingPlatform class Distributed...
34.54717
204
0.673949
f7430f6ac609fa063a5c93eb798b63904e75a5c0
1,066
py
Python
sdks/python/test/test_AlertingGithubBugtrackerSettings.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_AlertingGithubBugtrackerSettings.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_AlertingGithubBugtrackerSettings.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
26.65
127
0.756098
f7430f9bf69f737e29287ec59200f7dbfa4334ff
15,010
py
Python
storm_kit/mpc/control/control_utils.py
rgap/storm
5f477d6fa58c6c1ec8d8e2b57c3b21844cae17ac
[ "MIT" ]
null
null
null
storm_kit/mpc/control/control_utils.py
rgap/storm
5f477d6fa58c6c1ec8d8e2b57c3b21844cae17ac
[ "MIT" ]
null
null
null
storm_kit/mpc/control/control_utils.py
rgap/storm
5f477d6fa58c6c1ec8d8e2b57c3b21844cae17ac
[ "MIT" ]
null
null
null
# # MIT License # # Copyright (c) 2020-2021 NVIDIA CORPORATION. # # 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, ...
36.256039
156
0.593205
f7435cd562697e1cc976e916003e38001a1a1351
16,047
py
Python
seqio/loggers.py
ayushkumar63123/seqio
23bcb59df59798074d7d5896a131980137c69ec8
[ "Apache-2.0" ]
144
2021-04-16T00:43:10.000Z
2022-03-21T08:51:27.000Z
seqio/loggers.py
ayushkumar63123/seqio
23bcb59df59798074d7d5896a131980137c69ec8
[ "Apache-2.0" ]
49
2021-04-26T06:28:51.000Z
2022-03-28T23:55:16.000Z
seqio/loggers.py
ayushkumar63123/seqio
23bcb59df59798074d7d5896a131980137c69ec8
[ "Apache-2.0" ]
13
2021-04-27T10:28:27.000Z
2022-03-10T18:43:37.000Z
# Copyright 2021 The SeqIO 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 wr...
38.026066
80
0.647785
f7436947b0127f7e035d1d3e1ed4f83760e00c34
2,214
py
Python
tests/python/pants_test/help/test_help_formatter.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/help/test_help_formatter.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/help/test_help_formatter.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
1
2019-06-10T17:24:34.000Z
2019-06-10T17:24:34.000Z
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import unittest fro...
44.28
96
0.672087
f7438d9ecc8eceb41e12585b9b81484d7c841141
3,114
py
Python
pycatia/in_interfaces/files.py
Tian-Jionglu/pycatia
b315aeb3a74846f134ff6b67b3a6334b9d3905fa
[ "MIT" ]
1
2020-04-27T13:59:10.000Z
2020-04-27T13:59:10.000Z
pycatia/in_interfaces/files.py
Luanee/pycatia
ea5eef8178f73de12404561c00baf7a7ca30da59
[ "MIT" ]
null
null
null
pycatia/in_interfaces/files.py
Luanee/pycatia
ea5eef8178f73de12404561c00baf7a7ca30da59
[ "MIT" ]
null
null
null
#! usr/bin/python3.6 """ Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445 .. warning:: The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only. They are there as a guide as to how the visual basic / catscript function...
36.209302
108
0.496146
f7438fb7972362af0e6a82e3fe654cfd9d62a05f
9,310
py
Python
flask_sqlite_web/sqliteFunctions.py
haibozhucloud/flask_sqlite_web
d0b407b359557bfd3cbb516d365f06c67f8d61d0
[ "MIT" ]
3
2019-01-15T06:49:34.000Z
2021-08-06T02:57:20.000Z
flask_sqlite_web/sqliteFunctions.py
haibozhucloud/flask_sqlite_web
d0b407b359557bfd3cbb516d365f06c67f8d61d0
[ "MIT" ]
null
null
null
flask_sqlite_web/sqliteFunctions.py
haibozhucloud/flask_sqlite_web
d0b407b359557bfd3cbb516d365f06c67f8d61d0
[ "MIT" ]
null
null
null
######################################### # Author : Haibo Zhu # Email : haibo.zhu@hotmail.com # created : 2018-11-06 13:38 # Last modified : 2018-11-08 14:49 # Filename : sqliteFunctions.py # Description : #########################################...
30.12945
136
0.588829
f743b9c07354f5c2f9fa0aee2bcab50a14abbd00
2,589
py
Python
src/lyxnotebook/run_lyxnotebook.py
abarker/lyxNotebook
c458b21e1b183b94172414e14dea671e1f3d4b22
[ "MIT" ]
12
2015-07-16T13:39:04.000Z
2022-02-14T15:36:10.000Z
src/lyxnotebook/run_lyxnotebook.py
abarker/lyxNotebook
c458b21e1b183b94172414e14dea671e1f3d4b22
[ "MIT" ]
4
2020-03-11T00:33:50.000Z
2020-05-21T22:05:13.000Z
src/lyxnotebook/run_lyxnotebook.py
abarker/lyxNotebook
c458b21e1b183b94172414e14dea671e1f3d4b22
[ "MIT" ]
3
2015-07-16T13:39:06.000Z
2020-04-15T19:17:45.000Z
#! /usr/bin/python """ ========================================================================= This file is part of LyX Notebook, which works with LyX but is an independent project. License details (MIT) can be found in the file COPYING. Copyright (c) 2012 Allen Barker =============================================...
36.464789
86
0.631904
f743bcd58d973e63c4a15c53633ff87895a7e899
2,122
py
Python
conans/client/uploader.py
TyRoXx/conan
644516b5126f78f46275a9f6a01148183c9d149f
[ "MIT" ]
null
null
null
conans/client/uploader.py
TyRoXx/conan
644516b5126f78f46275a9f6a01148183c9d149f
[ "MIT" ]
null
null
null
conans/client/uploader.py
TyRoXx/conan
644516b5126f78f46275a9f6a01148183c9d149f
[ "MIT" ]
null
null
null
import os from conans.errors import ConanException, NotFoundException from conans.model.ref import PackageReference class ConanUploader(object): def __init__(self, paths, user_io, remote_manager, remote): self._paths = paths self._user_io = user_io self._remote_manager = remote_manager ...
42.44
98
0.640905
f743dd1533365cffd345d7d20e4b9a39695c05d4
593
py
Python
ogr2osm/__init__.py
roelderickx/ogr2pbf
7ac99488d8daa9452e2a41e40bf2554dc720166d
[ "MIT" ]
null
null
null
ogr2osm/__init__.py
roelderickx/ogr2pbf
7ac99488d8daa9452e2a41e40bf2554dc720166d
[ "MIT" ]
null
null
null
ogr2osm/__init__.py
roelderickx/ogr2pbf
7ac99488d8daa9452e2a41e40bf2554dc720166d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Copyright (c) 2012-2021 Roel Derickx, Paul Norman <penorman@mac.com>, Sebastiaan Couwenberg <sebastic@xs4all.nl>, The University of Vermont <andrew.guertin@uvm.edu>, github contributors Released under the MIT license, as given in the file LICENSE, which must accompany any distribution of t...
32.944444
72
0.806071
f743f48c490c683fd697c5d1f8f67b90aef3bce7
1,367
py
Python
knx/text/postagger/default_tagger.py
gofortargets/CNN_brandsafety
77c9048a7aca9458879585925e98220435c052e9
[ "Apache-2.0" ]
2
2017-07-27T03:50:37.000Z
2017-09-28T06:42:52.000Z
knx/text/postagger/default_tagger.py
gofortargets/CNN_brandsafety
77c9048a7aca9458879585925e98220435c052e9
[ "Apache-2.0" ]
null
null
null
knx/text/postagger/default_tagger.py
gofortargets/CNN_brandsafety
77c9048a7aca9458879585925e98220435c052e9
[ "Apache-2.0" ]
null
null
null
import logging LOGGER = logging.getLogger(__name__) try: # from .import stanford_tagger as postagger # LOGGER.debug('Use stanford_tagger') from . import perceptron_tagger as postagger LOGGER.debug('Use perceptron_tagger') except: from . import nltk_tagger as postagger LOGGER.debug('Use nltk_tagg...
31.790698
98
0.637893
f743fd4aab41716900ee63a6f68f8af1b6a32303
1,567
py
Python
hooks/obsolete_messages.py
mondeja/pre-commit-po-hooks
6c96941357699b283c46528d34821631e1aff324
[ "BSD-3-Clause" ]
null
null
null
hooks/obsolete_messages.py
mondeja/pre-commit-po-hooks
6c96941357699b283c46528d34821631e1aff324
[ "BSD-3-Clause" ]
2
2021-08-25T04:56:36.000Z
2022-02-25T16:47:39.000Z
hooks/obsolete_messages.py
mondeja/pre-commit-po-hooks
6c96941357699b283c46528d34821631e1aff324
[ "BSD-3-Clause" ]
null
null
null
"""Checks for obsolete messages in PO files. Returns an error code if a PO file has an obsolete message. """ import argparse import sys def check_obsolete_messages(filenames, quiet=False): """Warns about all obsolete messages found in a set of PO files. Parameters ---------- filenames : list ...
27.017241
87
0.634333
f743fe0f5d383fefb27261a22b64df7f8debdb2b
1,273
py
Python
migrations/versions/0122_add_service_letter_contact.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
migrations/versions/0122_add_service_letter_contact.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
migrations/versions/0122_add_service_letter_contact.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
""" Revision ID: 0122_add_service_letter_contact Revises: 0121_nullable_logos Create Date: 2017-09-21 12:16:02.975120 """ import sqlalchemy as sa from alembic import op from sqlalchemy.dialects import postgresql revision = "0122_add_service_letter_contact" down_revision = "0121_nullable_logos" def upgrade(): o...
28.288889
79
0.6685
f744154f010a7e14fc8b2467e849f89c2f8b44a6
2,581
py
Python
scons/templates/buster_py2_options.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
scons/templates/buster_py2_options.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
scons/templates/buster_py2_options.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2020 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unt...
30.72619
83
0.667183
f7441e5310ab0a958ac934c6fcc8198fb0c61d64
301
py
Python
battleforcastile/utils/display_power.py
battleforcastile/battleforcastile
65223fcb56ecc550f1a7c7b70beadff22c866d85
[ "MIT" ]
null
null
null
battleforcastile/utils/display_power.py
battleforcastile/battleforcastile
65223fcb56ecc550f1a7c7b70beadff22c866d85
[ "MIT" ]
1
2021-08-21T10:16:03.000Z
2021-08-21T10:16:03.000Z
battleforcastile/utils/display_power.py
battleforcastile/battleforcastile
65223fcb56ecc550f1a7c7b70beadff22c866d85
[ "MIT" ]
null
null
null
def display_power(power: dict) -> str: name = power['name'] invocation_unit = power['invocation']['card_name'] invocation_instances = power['invocation']['num_instances'] cost = power['cost'] return f'{name} (Invocation: {invocation_instances} {invocation_unit}) - Cost: {cost}'
33.444444
90
0.681063
f74441db2773a5a826056f981dd9aed9b7cc6d50
14,337
py
Python
openrl/algorithms/imitation/imitation_learning.py
natetsang/open-rl
426723d0d6759672ce77e02afeb55cbeb68fcfb0
[ "MIT" ]
2
2021-09-10T18:52:35.000Z
2022-01-03T19:48:06.000Z
openrl/algorithms/imitation/imitation_learning.py
natetsang/open-rl
426723d0d6759672ce77e02afeb55cbeb68fcfb0
[ "MIT" ]
1
2021-12-28T17:42:23.000Z
2021-12-28T17:42:23.000Z
openrl/algorithms/imitation/imitation_learning.py
natetsang/open-rl
426723d0d6759672ce77e02afeb55cbeb68fcfb0
[ "MIT" ]
null
null
null
import gym import time import pickle import argparse import numpy as np import tensorflow as tf from typing import Callable, Union, Tuple, List from models.models import actor_fc_discrete_network, actor_critic_fc_discrete_network from algorithms.imitation.utils import plot_training_results from util.replay_buffer impor...
43.054054
121
0.625584
f74451751805bace06484342526dd58e1fdcc09d
7,045
py
Python
train.py
BXuan694/SOLO-pytorch
aef0ac47ce6989f6633fe4f71070bd6944c39abb
[ "Apache-2.0" ]
2
2022-03-19T12:58:58.000Z
2022-03-19T15:01:02.000Z
train.py
BXuan694/SOLO-pytorch
aef0ac47ce6989f6633fe4f71070bd6944c39abb
[ "Apache-2.0" ]
1
2022-03-19T15:06:25.000Z
2022-03-23T01:48:58.000Z
train.py
BXuan694/SOLO-pytorch
aef0ac47ce6989f6633fe4f71070bd6944c39abb
[ "Apache-2.0" ]
null
null
null
from data.config import cfg, process_funcs_dict from data.coco import CocoDataset from data.loader import build_dataloader #from modules.solov1 import SOLOV1 as solo # from modules.solov2 import SOLOV2 as solo from modules.solov1d import SOLOV1 as solo import time import torch import numpy as np # 梯度均衡 def clip_grads(...
37.673797
198
0.60582
f7446ab7e38ca354c89e6ca03d9847a06491b576
3,098
py
Python
chainer/links/cnet/link_cnet_linear.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
chainer/links/cnet/link_cnet_linear.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
chainer/links/cnet/link_cnet_linear.py
asrlabncku/RAP
11fab37c8d98257ec0aed1b306aa9709a3a51328
[ "MIT" ]
null
null
null
from __future__ import absolute_import import numpy from chainer import link from chainer.functions.cnet import function_cnet_linear import math from chainer import initializers from chainer import cuda class CnetLinear(link.Link): """Binary Linear layer (a.k.a. binary fully-connected layer). This is a lin...
34.043956
86
0.643641
f744817e85fdb412c5892b7d65c53e54ebb20095
322
py
Python
django-edx-courseware/urls.py
mjrulesamrat/django-edx-courseware
ec47a67e94b71ff95bb009fa95c47c76c21553da
[ "MIT" ]
null
null
null
django-edx-courseware/urls.py
mjrulesamrat/django-edx-courseware
ec47a67e94b71ff95bb009fa95c47c76c21553da
[ "MIT" ]
null
null
null
django-edx-courseware/urls.py
mjrulesamrat/django-edx-courseware
ec47a67e94b71ff95bb009fa95c47c76c21553da
[ "MIT" ]
null
null
null
__author__ = 'Jay Modi' from django.conf import settings from django.conf.urls import patterns, include, url from .views import course_data urlpatterns = [ url( r'^courses-data/{}$'.format( settings.COURSE_ID_PATTERN, ), course_data, name='edx_course_progress', ), ...
18.941176
51
0.63354
f7448f164d943f9205f7ff40068c9d8aff1896f8
613
py
Python
apps/sushi/migrations/0023_sushicredentials_last_updated_by.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/sushi/migrations/0023_sushicredentials_last_updated_by.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/sushi/migrations/0023_sushicredentials_last_updated_by.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-10-21 07:13 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('sushi', '0022_sushi_cred...
27.863636
122
0.690049
f74491c60ad7411487d7485ccbfd1015420a2fac
1,005
py
Python
the_millionaire/users/admin.py
mrsaemir/the_millionaire
3fe2c9c114b43648b1c2e039589733bbf778b7f6
[ "MIT" ]
null
null
null
the_millionaire/users/admin.py
mrsaemir/the_millionaire
3fe2c9c114b43648b1c2e039589733bbf778b7f6
[ "MIT" ]
null
null
null
the_millionaire/users/admin.py
mrsaemir/the_millionaire
3fe2c9c114b43648b1c2e039589733bbf778b7f6
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth import get_user_model from django.utils.translation import gettext_lazy as _ from the_millionaire.users.forms import UserChangeForm, UserCreationForm User = get_user_model() @admin.register(User) class User...
28.714286
74
0.559204
f74493fb8ff35c1840480038021304caa1379835
6,855
py
Python
photons.py
mfkoerner/icarus
eb480596be127f760d10531d27569290df3e8ff9
[ "MIT" ]
2
2018-02-21T23:23:53.000Z
2019-05-22T11:05:03.000Z
photons.py
mfkoerner/icarus
eb480596be127f760d10531d27569290df3e8ff9
[ "MIT" ]
null
null
null
photons.py
mfkoerner/icarus
eb480596be127f760d10531d27569290df3e8ff9
[ "MIT" ]
null
null
null
######################################## # written for Python 3 # # by Doug Fabini (fabini@mrl.ucsb.edu) # ######################################## ''' This script requires the following files to be located in 'baseDir': - IBZKPT (to extract number of k points) POSSIBLY NO LONGER NEEDED - DOSCAR (t...
38.296089
144
0.65485
f7452da095e19f5494b730624c0e1cac04e623b7
3,552
py
Python
etl/jobs/transformation/patient_transformer_job.py
PDXFinder/pdcm-etl
3caf80938d9e80f1fc7bb0724cba6ae68a8d315e
[ "Apache-2.0" ]
1
2021-05-24T14:54:48.000Z
2021-05-24T14:54:48.000Z
etl/jobs/transformation/patient_transformer_job.py
PDCMFinder/pdcm-etl
df0006e4ad5ca2ddf9c1387e28a0b7fb24f195de
[ "Apache-2.0" ]
37
2022-02-09T18:19:13.000Z
2022-03-29T12:14:19.000Z
etl/jobs/transformation/patient_transformer_job.py
PDCMFinder/pdcm-etl
df0006e4ad5ca2ddf9c1387e28a0b7fb24f195de
[ "Apache-2.0" ]
null
null
null
import sys from pyspark.sql import DataFrame, SparkSession from etl.constants import Constants from etl.jobs.util.cleaner import init_cap_and_trim_all from etl.jobs.util.dataframe_functions import transform_to_fk from etl.jobs.util.id_assigner import add_id def main(argv): """ Creates a parquet file with pa...
37
101
0.7317
f7454d807cf9346638540e5b9826adcab1db2bb3
8,481
py
Python
neo/io/brainwaredamio.py
deeptimittal12/python-neo
7409f47b5debd4d2a75bbf0e77ac10562446c97a
[ "BSD-3-Clause" ]
1
2020-06-08T14:00:03.000Z
2020-06-08T14:00:03.000Z
neo/io/brainwaredamio.py
deeptimittal12/python-neo
7409f47b5debd4d2a75bbf0e77ac10562446c97a
[ "BSD-3-Clause" ]
null
null
null
neo/io/brainwaredamio.py
deeptimittal12/python-neo
7409f47b5debd4d2a75bbf0e77ac10562446c97a
[ "BSD-3-Clause" ]
null
null
null
''' Class for reading from Brainware DAM files DAM files are binary files for holding raw data. They are broken up into sequence of Segments, each containing a single raw trace and parameters. The DAM file does NOT contain a sampling rate, nor can it be reliably calculated from any of the parameters. You can calcul...
35.78481
79
0.607476
f7457bda10287c1c64239c9802aa4e6293ce12bf
15,413
py
Python
canalystii/device.py
projectgus/python-canalystii
7ef3a4a369a88976291ea91f93ef2b8c322855b9
[ "BSD-3-Clause" ]
3
2021-09-09T16:30:20.000Z
2022-03-11T10:29:19.000Z
canalystii/device.py
projectgus/python-canalystii
7ef3a4a369a88976291ea91f93ef2b8c322855b9
[ "BSD-3-Clause" ]
null
null
null
canalystii/device.py
projectgus/python-canalystii
7ef3a4a369a88976291ea91f93ef2b8c322855b9
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2021 Angus Gratton # # SPDX-License-Identifier: Apache-2.0 # # This module contains device-level interface to Canalyst-II import ctypes import logging import usb.core import time from . import protocol logger = logging.getLogger(__name__) # "Fast" lookups to go from channel to USB endpoint number CHA...
44.417867
114
0.635957
f74581304b1ec7afe6efed1c1a84fed53c39ec0a
3,460
py
Python
app/celery/process_ses_receipts_tasks.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
app/celery/process_ses_receipts_tasks.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
app/celery/process_ses_receipts_tasks.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta import iso8601 from celery.exceptions import Retry from flask import current_app, json from notifications_utils.statsd_decorators import statsd from sqlalchemy.orm.exc import NoResultFound from app import notify_celery, statsd_client from app.clients.email.aws_ses import get_a...
39.770115
120
0.697399
f745882b7fa076b31cfecf66c9b6f8b109221cd1
1,962
py
Python
download_all_fx_data.py
feilongbk/FX-1-Minute-Data
83bd7eaef0dee7221e8acfa980ce180571b6ffce
[ "Apache-2.0" ]
326
2017-05-22T07:03:36.000Z
2022-03-31T21:57:21.000Z
download_all_fx_data.py
feilongbk/FX-1-Minute-Data
83bd7eaef0dee7221e8acfa980ce180571b6ffce
[ "Apache-2.0" ]
9
2017-12-15T10:30:17.000Z
2021-06-10T01:07:34.000Z
download_all_fx_data.py
feilongbk/FX-1-Minute-Data
83bd7eaef0dee7221e8acfa980ce180571b6ffce
[ "Apache-2.0" ]
140
2017-08-07T17:20:48.000Z
2022-03-29T19:46:23.000Z
import csv import os from histdata.api import download_hist_data def mkdir_p(path): import errno try: os.makedirs(path) except OSError as exc: if exc.errno == errno.EEXIST and os.path.isdir(path): pass else: raise def download_all(): with open('pairs....
36.333333
85
0.445464
f7458c30cc2fa802624a2a70a9422c6c7e9ff1a0
351
py
Python
BioNetGen-2.3.0/source_Atomizer/stats/wordcloud.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
BioNetGen-2.3.0/source_Atomizer/stats/wordcloud.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
BioNetGen-2.3.0/source_Atomizer/stats/wordcloud.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Mar 27 18:06:08 2013 @author: proto """ from pytagcloud import create_tag_image, make_tags from pytagcloud.lang.counter import get_tag_counts def cloudText(text,fileName): tags = make_tags(get_tag_counts(text), maxsize=80) create_tag_image(tags, fileName, size=(800,...
23.4
76
0.732194
f7459dd9070c8898f768605d0a670f18c376fd61
17,023
py
Python
build/android/run_tests.py
leiferikb/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-11-15T15:17:43.000Z
2021-11-15T15:17:43.000Z
build/android/run_tests.py
houseoflifeproperty/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
build/android/run_tests.py
houseoflifeproperty/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:24:02.000Z
2020-11-04T07:24:02.000Z
#!/usr/bin/env python # # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Runs all the native unit tests. 1. Copy over test binary to /data/local on device. 2. Resources: chrome/unit_tests requires r...
35.464583
80
0.654702
f745aabe794cc25ba4b2b6225a3914d2e99e5882
9,709
py
Python
data/params.py
liulisixin/unsupervised-learning-intrinsic-images
0d4ad151d203885c87122bcc305c787210b28a5c
[ "MIT" ]
61
2018-04-05T21:17:28.000Z
2019-08-10T08:43:58.000Z
data/params.py
liulisixin/unsupervised-learning-intrinsic-images
0d4ad151d203885c87122bcc305c787210b28a5c
[ "MIT" ]
4
2018-07-06T13:38:27.000Z
2019-08-03T09:37:10.000Z
data/params.py
liulisixin/unsupervised-learning-intrinsic-images
0d4ad151d203885c87122bcc305c787210b28a5c
[ "MIT" ]
13
2019-08-13T02:11:54.000Z
2021-07-06T09:27:27.000Z
import copy import json import random import hashlib import numpy as np class IntrinsicParameters(): """ Global parameter values for the algorithm """ def __init__(self): #: if True, print progress to the console self.logging = False #: if True, use a fixed seed for k-means clusteri...
31.21865
81
0.604697
f745c68cb1628be5bb8685f132df4cbb3d3c320f
6,432
py
Python
utils/video.py
gosticks/body-pose-animation
eb1b5876a845f277d43bfc18dcd48c4a9c694c06
[ "MIT" ]
null
null
null
utils/video.py
gosticks/body-pose-animation
eb1b5876a845f277d43bfc18dcd48c4a9c694c06
[ "MIT" ]
null
null
null
utils/video.py
gosticks/body-pose-animation
eb1b5876a845f277d43bfc18dcd48c4a9c694c06
[ "MIT" ]
null
null
null
from dataset import SMPLyDataset import pickle from typing import Tuple from model import SMPLyModel from renderer import DefaultRenderer import cv2 from tqdm import tqdm import numpy as np from scipy import interpolate def make_video(images, video_name: str, fps=30, ext: str = "mp4", post_process_frame=None): im...
32.649746
116
0.619403
f745d61facecf176819f6e0b1334bf6b5d46de14
29,170
py
Python
tests/unittests/test_network_install.py
cloudify-cosmo/cloudify-nsx-plugin
d7b2abbe384e55aaf47b2c8474ab07f622eb83b5
[ "Apache-2.0" ]
2
2017-03-08T21:44:54.000Z
2019-01-16T06:00:16.000Z
tests/unittests/test_network_install.py
cloudify-cosmo/cloudify-nsx-plugin
d7b2abbe384e55aaf47b2c8474ab07f622eb83b5
[ "Apache-2.0" ]
3
2017-01-26T13:26:31.000Z
2017-02-03T14:51:45.000Z
tests/unittests/test_network_install.py
cloudify-cosmo/cloudify-nsx-plugin
d7b2abbe384e55aaf47b2c8474ab07f622eb83b5
[ "Apache-2.0" ]
5
2016-12-28T15:26:02.000Z
2017-01-30T08:46:10.000Z
# Copyright (c) 2017 GigaSpaces Technologies Ltd. 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 ...
37.63871
77
0.472335
f745e6f3a37289bf61f2bd949c9ce1767d1c69a0
665
py
Python
manage.py
KamarulAdha/DRF-ML
2036ac6b3b3eb593d28ab89c948bf4ad2a4aa6dd
[ "MIT" ]
null
null
null
manage.py
KamarulAdha/DRF-ML
2036ac6b3b3eb593d28ab89c948bf4ad2a4aa6dd
[ "MIT" ]
null
null
null
manage.py
KamarulAdha/DRF-ML
2036ac6b3b3eb593d28ab89c948bf4ad2a4aa6dd
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'deploy_ml.settings') try: from django.core.management import execute_from_command_line except Im...
28.913043
73
0.679699
f745fd33ee13aea7516b847e8a0906cf09e91960
3,265
py
Python
PyFunceble/converter/internal_url.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
PyFunceble/converter/internal_url.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
PyFunceble/converter/internal_url.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
""" The tool to check the availability or syntax of domains, IPv4, IPv6 or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ ...
33.316327
88
0.596631
f746028ed415eb45b51d72258c9ab10b0953f241
14,479
py
Python
rule_based_decision_making.py
QianLabUSC/cognitively-enhanced-decision-framework
1797ddd41edcbfbfafca5b599ff7ab70f5fdc37f
[ "MIT" ]
null
null
null
rule_based_decision_making.py
QianLabUSC/cognitively-enhanced-decision-framework
1797ddd41edcbfbfafca5b599ff7ab70f5fdc37f
[ "MIT" ]
3
2021-06-28T15:35:21.000Z
2021-07-01T06:02:57.000Z
rule_based_decision_making.py
QianLabUSC/cognitively-enhanced-decision-framework
1797ddd41edcbfbfafca5b599ff7ab70f5fdc37f
[ "MIT" ]
null
null
null
# This FILE is part of multi-legged robot field exploration model # env_wrapper.py - to obtain user interaction data from website # # This programm is explained by roboLAND in university of southern california. # Please notify the source if you use it # # Copyright(c) 2021-2025 Ryoma Liu # Email: 1196075299@qq....
41.133523
123
0.57794
f74624c2e736bef6cbbf662d661e7836effdb8bc
936
py
Python
zerver/migrations/0015_attachment.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2017-07-27T19:49:12.000Z
2017-07-27T19:49:12.000Z
zerver/migrations/0015_attachment.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
9
2021-02-08T20:22:36.000Z
2022-03-11T23:22:45.000Z
zerver/migrations/0015_attachment.py
tobby2002/zulip
66e7c455759f9368bae16b9a604cf63f8e3524cd
[ "Apache-2.0" ]
1
2021-04-09T05:50:23.000Z
2021-04-09T05:50:23.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('zerver', '0014_realm_emoji_url_length'), ] operations = [ migr...
33.428571
114
0.621795
f74632da87bc118e8ef70accfd01c8d085a9cbd9
2,299
py
Python
modspectra/tests/test_spectrum_creation.py
Deech08/modspectra
4af177418f9ac3e1ff30bf99968251ac143a96bc
[ "BSD-3-Clause" ]
2
2020-06-04T13:09:50.000Z
2020-06-04T13:10:03.000Z
modspectra/tests/test_spectrum_creation.py
Deech08/modspectra
4af177418f9ac3e1ff30bf99968251ac143a96bc
[ "BSD-3-Clause" ]
1
2020-10-29T19:55:57.000Z
2020-10-29T19:55:57.000Z
modspectra/tests/test_spectrum_creation.py
Deech08/modspectra
4af177418f9ac3e1ff30bf99968251ac143a96bc
[ "BSD-3-Clause" ]
null
null
null
import pytest from numpy.random import randn from numpy.random import random import numpy as np def test_non_detection(): from ..cube import EmissionCube from astropy.coordinates import SkyCoord import astropy.units as u ''' Test that an anti-center pointing returns zero emission ''' l = 18...
32.842857
94
0.638104
f746c16fea3027a482c679020427437ced86395f
589
py
Python
examples/camera.py
cloudmesh/cloudmesh.pi
bdf706b3763031341c41b811749064c293e73c14
[ "Apache-2.0" ]
2
2017-09-18T00:56:36.000Z
2018-06-01T23:41:23.000Z
examples/camera.py
cloudmesh/cloudmesh-pi
bdf706b3763031341c41b811749064c293e73c14
[ "Apache-2.0" ]
1
2018-04-16T18:37:17.000Z
2018-04-16T18:37:17.000Z
examples/camera.py
cloudmesh/cloudmesh.pi
bdf706b3763031341c41b811749064c293e73c14
[ "Apache-2.0" ]
3
2017-09-20T11:13:54.000Z
2017-11-30T23:48:37.000Z
### # if you dont have picamera installed run sudo apt-get install python-picamera # and emable camera in raspberrypi configuration # # # this progam uses raspberry pi onboarc camera to capture an image and save it to a file # # wait for 5 seconds # capture the image # save the mage to image.jpg file # # for more infor...
21.035714
88
0.741935
f746ea3097b7b326f2fa01df7c61da4f5e6ea7f9
15,135
py
Python
test/test_serialization.py
jkulhanek/torchdata
2e8b9f613a13c74b424651649f317c7b322131d6
[ "BSD-3-Clause" ]
null
null
null
test/test_serialization.py
jkulhanek/torchdata
2e8b9f613a13c74b424651649f317c7b322131d6
[ "BSD-3-Clause" ]
null
null
null
test/test_serialization.py
jkulhanek/torchdata
2e8b9f613a13c74b424651649f317c7b322131d6
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import os import pickle import unittest import warnings from functools import partial from io import StringIO f...
40.795148
119
0.557582
f74722dded4b701ea739cfeabcf1fc83a44f0203
9,770
py
Python
mdrsl/rule_generation/association_rule_mining/apyori_impl/mine_mt_rules_from_dataframe_with_apyori.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
3
2020-08-03T19:25:44.000Z
2021-06-27T22:25:55.000Z
mdrsl/rule_generation/association_rule_mining/apyori_impl/mine_mt_rules_from_dataframe_with_apyori.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
null
null
null
mdrsl/rule_generation/association_rule_mining/apyori_impl/mine_mt_rules_from_dataframe_with_apyori.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
2
2020-08-07T22:54:28.000Z
2021-02-18T06:11:01.000Z
import random import numpy as np from typing import List, Optional, Dict import pandas as pd import time from mdrsl.rule_generation.association_rule_mining.apyori_impl.mine_mt_rules_from_transactions_with_apyori import ( mine_MCARs_from_transactions_using_apyori) from mdrsl.rule_generation.association_rule_mining...
37.722008
138
0.621085
f7472b67caaccda28cf0edd2bff43417639ea849
4,783
py
Python
facebook_business/test/async_ad_docs.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
facebook_business/test/async_ad_docs.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
facebook_business/test/async_ad_docs.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
36.51145
76
0.701861
f747350ed2fe7ea42b0ccce6f38156b781455d8b
1,003
py
Python
taxamo/models/emailInvoiceIn.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
4
2016-03-14T03:59:08.000Z
2020-06-21T07:58:38.000Z
taxamo/models/emailInvoiceIn.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
2
2016-03-07T13:41:23.000Z
2017-07-11T13:39:44.000Z
taxamo/models/emailInvoiceIn.py
taxamo/taxamo-python
190bdda68963860c131d2b1e9d31cd88de10d694
[ "Apache-2.0" ]
8
2016-01-13T14:32:19.000Z
2021-08-16T11:14:06.000Z
#!/usr/bin/env python """ Copyright 2014-2021 by Taxamo 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 applic...
31.34375
90
0.690927
f7473613deb0766b99315c742b58237acf9fe7aa
3,944
py
Python
tests/test_PolyViz.py
kobejohn/polymaze
c7ac6049bef547f032c353c5c50e8ead95954a33
[ "MIT" ]
21
2015-02-09T17:36:36.000Z
2021-06-01T19:58:59.000Z
tests/test_PolyViz.py
kobejohn/polymaze
c7ac6049bef547f032c353c5c50e8ead95954a33
[ "MIT" ]
1
2017-01-12T13:52:07.000Z
2017-01-12T13:52:07.000Z
tests/test_PolyViz.py
kobejohn/polymaze
c7ac6049bef547f032c353c5c50e8ead95954a33
[ "MIT" ]
4
2017-12-07T15:18:19.000Z
2021-06-01T19:59:20.000Z
import unittest from tests.test_PolyGrid import generic_grid from polymaze.polygrid import PolyGrid, PolyViz # silly workaround to allow tests to work in py2 or py3 try: _assertCountEqual = unittest.TestCase.assertCountEqual # py3 from unittest import mock except (AttributeError, ImportError): _assertCou...
39.838384
78
0.672667
f74747fd63350079355397ba5d7eb5c20324d9bc
2,469
py
Python
app/lib/db_query/tweets/categories.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
10
2019-03-22T07:07:41.000Z
2022-01-26T00:57:45.000Z
app/lib/db_query/tweets/categories.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
70
2017-07-12T19:49:38.000Z
2020-09-02T10:03:28.000Z
app/lib/db_query/tweets/categories.py
MichaelCurrin/twitterverse
9629f848377e4346be833db70f11c593cc0d7b6c
[ "MIT" ]
2
2017-06-30T07:13:39.000Z
2020-12-04T00:39:12.000Z
""" Category queries application file. """ from lib import database as db def printAvailableCategories(): """ Iterate through Categories in db to print out name and Profile count for each. :return: None """ print(" Category | Profiles") print("------------------------...
29.392857
80
0.567436
f7474971492e22c5b28f459c7bf3ba7e80bfc150
1,279
py
Python
example/logo_7_8.py
nikteliy/python-snap7
6f8bcb15ad2494fd95880171b974b001d33a5111
[ "MIT" ]
412
2015-02-25T11:07:09.000Z
2022-03-28T10:03:09.000Z
example/logo_7_8.py
nikteliy/python-snap7
6f8bcb15ad2494fd95880171b974b001d33a5111
[ "MIT" ]
240
2015-02-24T18:10:13.000Z
2022-03-22T11:10:09.000Z
example/logo_7_8.py
nikteliy/python-snap7
6f8bcb15ad2494fd95880171b974b001d33a5111
[ "MIT" ]
238
2015-02-24T16:12:32.000Z
2022-03-30T08:50:29.000Z
import logging import snap7 # for setup the Logo connection please follow this link # http://snap7.sourceforge.net/logo.html logging.basicConfig(level=logging.INFO) # Siemens LOGO devices Logo 8 is the default Logo_7 = True logger = logging.getLogger(__name__) plc = snap7.logo.Logo() plc.connect("192.168.0.41",0...
23.685185
68
0.645817
f74766b394c7478c0db1c7e117d71d7afe454999
56
py
Python
supplychainpy/distribution/air_frieght_transport.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
231
2016-05-30T02:34:45.000Z
2022-03-28T17:00:29.000Z
supplychainpy/distribution/air_frieght_transport.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
77
2016-03-23T16:28:34.000Z
2021-09-30T22:08:03.000Z
supplychainpy/distribution/air_frieght_transport.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
103
2016-08-10T19:53:09.000Z
2022-03-16T16:34:38.000Z
class FreightPlane: def __init__(self): pass
18.666667
23
0.642857
f747a897d8e129afaee76919be306a14ed4c5791
591
py
Python
elit/datasets/ner/resume.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
9
2021-07-12T22:05:47.000Z
2022-02-22T03:10:14.000Z
elit/datasets/ner/resume.py
emorynlp/stem-cell-hypothesis
48a628093d93d653865fbac6409d179cddd99293
[ "Apache-2.0" ]
4
2021-08-31T08:28:37.000Z
2022-03-28T05:52:14.000Z
elit/datasets/ner/resume.py
emorynlp/stem-cell-hypothesis
48a628093d93d653865fbac6409d179cddd99293
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2020-06-08 12:10 from elit.common.dataset import TransformableDataset from elit.utils.io_util import get_resource, generate_words_tags_from_tsv _RESUME_NER_HOME = 'https://github.com/jiesutd/LatticeLSTM/archive/master.zip#' RESUME_NER_TRAIN = _RESUME_NER_HOME + 'Resume...
34.764706
79
0.764805
f747bac6efbe42e2ea3d1d195eebcc5275b5d013
17,461
py
Python
PythonProjects/10-Sequences/src/m7_summary.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/10-Sequences/src/m7_summary.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/10-Sequences/src/m7_summary.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
""" This module lets you practice two forms of the ACCUMULATOR pattern: -- SUMMING -- COUNTING where the accumulation is done via ITERATING (i.e., looping) through a SEQUENCE. It also demonstrates the distinction between: -- an INDEX of the sequence (e.g., -5 is at index 1 in [0, -5, 12, -6]) and -- the item A...
35.489837
79
0.573335
f747cb701495e98da0898401c18ec0d5e5c58ba6
2,705
py
Python
src/rubrix/sdk/models/text_classification_annotation.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/text_classification_annotation.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/text_classification_annotation.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021-present, the Recognai S.L. 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 ...
29.086022
77
0.655083
f747ee58f7f28242455511b3daf96f42202e3d2e
146
py
Python
src/wai/annotations/adams/base/component/__init__.py
waikato-ufdl/wai-annotations-adams
1cb1ecf9520eea43c392a07d7766da51551a3a20
[ "Apache-2.0" ]
null
null
null
src/wai/annotations/adams/base/component/__init__.py
waikato-ufdl/wai-annotations-adams
1cb1ecf9520eea43c392a07d7766da51551a3a20
[ "Apache-2.0" ]
null
null
null
src/wai/annotations/adams/base/component/__init__.py
waikato-ufdl/wai-annotations-adams
1cb1ecf9520eea43c392a07d7766da51551a3a20
[ "Apache-2.0" ]
null
null
null
from ._ADAMSBaseReader import ADAMSBaseReader from ._ADAMSBaseWriter import ADAMSBaseWriter from ._ADAMSFilenameSource import ADAMSFilenameSource
36.5
53
0.89726
f74815e8fe1acf0580d8f6e57bd76d58194451ce
4,209
py
Python
dvc/ignore.py
amisev/dvc
025de9aeb509a539d5560f82caf47e851162f4a2
[ "Apache-2.0" ]
null
null
null
dvc/ignore.py
amisev/dvc
025de9aeb509a539d5560f82caf47e851162f4a2
[ "Apache-2.0" ]
null
null
null
dvc/ignore.py
amisev/dvc
025de9aeb509a539d5560f82caf47e851162f4a2
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import os from dulwich.ignore import match_pattern, read_ignore_patterns from dvc.utils import relpath from dvc.utils.compat import cast_bytes from dvc.utils.fs import get_parent_dirs_up_to class DvcIgnoreFileHandler(object): def __init__(self, tree): self.tree = ...
30.5
78
0.647897
f7481d7406370b2904206924837783a64d080c67
3,374
py
Python
python_solutions/CHAIN_INSPECTION/CHAIN_INSPECTION.py
joelstanner/codeeval
ef0591fabcad39d45f10287d7a1330f342ab96e0
[ "MIT" ]
null
null
null
python_solutions/CHAIN_INSPECTION/CHAIN_INSPECTION.py
joelstanner/codeeval
ef0591fabcad39d45f10287d7a1330f342ab96e0
[ "MIT" ]
null
null
null
python_solutions/CHAIN_INSPECTION/CHAIN_INSPECTION.py
joelstanner/codeeval
ef0591fabcad39d45f10287d7a1330f342ab96e0
[ "MIT" ]
null
null
null
""" CHAIN INSPECTION. https://www.codeeval.com/open_challenges/119/ We use special generator to produce chains of elements. Don't ask why we need them, we're not sure that somebody knows the answer for this question. A chain is represented by a string of name-address pairs. So the first element is the name of a pair ...
29.858407
78
0.667161
f748235b03a77e379a62b710d47f8a964a8cfeba
14,611
py
Python
domain-messages/domain_messages/LFMMarketResult/lfmmarketresult.py
simcesplatform/static-time-series-resource-forecaster
0f53915d7fe6da543f628487c8e643f2e9bb2652
[ "MIT" ]
null
null
null
domain-messages/domain_messages/LFMMarketResult/lfmmarketresult.py
simcesplatform/static-time-series-resource-forecaster
0f53915d7fe6da543f628487c8e643f2e9bb2652
[ "MIT" ]
null
null
null
domain-messages/domain_messages/LFMMarketResult/lfmmarketresult.py
simcesplatform/static-time-series-resource-forecaster
0f53915d7fe6da543f628487c8e643f2e9bb2652
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2021 Tampere University and VTT Technical Research Centre of Finland # This software was developed as a part of the ProCemPlus project: https://www.senecc.fi/projects/procemplus # This source code is licensed under the MIT license. See LICENSE in the repository root directory. # Auth...
39.382749
115
0.642666
f7482ac691a0fdfdc007363f5bd8272711320b3d
8,449
py
Python
autolrn/encoding/labelenc.py
SimonCarozza/autolrn
d0875844a3e9b4fc22510ef320aa498e339b6192
[ "MIT" ]
null
null
null
autolrn/encoding/labelenc.py
SimonCarozza/autolrn
d0875844a3e9b4fc22510ef320aa498e339b6192
[ "MIT" ]
null
null
null
autolrn/encoding/labelenc.py
SimonCarozza/autolrn
d0875844a3e9b4fc22510ef320aa498e339b6192
[ "MIT" ]
null
null
null
"""Label encode and One-Hot encode dataframes.""" from sklearn.preprocessing import LabelEncoder from pandas import get_dummies from pandas import DataFrame from pandas import Series from pandas import concat from pandas import merge import numpy as np # Auto encodes any dataframe column of type category or object. ...
34.206478
87
0.519233
f7483dc41d7e3e1457294dcbb499f8e642d0b5a9
4,130
py
Python
pybo/config.py
mikkokotila/pybo
ae921861e3e8c18856f19c59fc4c7da8f2126c1c
[ "Apache-2.0" ]
null
null
null
pybo/config.py
mikkokotila/pybo
ae921861e3e8c18856f19c59fc4c7da8f2126c1c
[ "Apache-2.0" ]
null
null
null
pybo/config.py
mikkokotila/pybo
ae921861e3e8c18856f19c59fc4c7da8f2126c1c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """Configuration file to set up Pybo """ from pathlib import Path import yaml default_config = '''tokenizer: trie_files: - &part 'particles.txt' - &ancient ancient.txt - &except exceptions.txt - &uncomp uncompound_lexicon.txt - &tsikchen tsikchen.txt - &oral0 oral_corpus_0.t...
29.29078
107
0.610654
f7485fd066424ede4f563d0a793586ac6a5a6a02
3,368
py
Python
tests/aquisition/test_measure.py
jvdoorn/SpectrumAnalyzer
264afaa795bd7246da2967d49b176361c454746e
[ "MIT" ]
1
2020-12-29T18:02:04.000Z
2020-12-29T18:02:04.000Z
tests/aquisition/test_measure.py
jvdoorn/SpectrumAnalyzer
264afaa795bd7246da2967d49b176361c454746e
[ "MIT" ]
5
2021-02-07T16:01:48.000Z
2022-03-12T00:51:26.000Z
tests/aquisition/test_measure.py
jvdoorn/SpectrumAnalyzer
264afaa795bd7246da2967d49b176361c454746e
[ "MIT" ]
null
null
null
import unittest import numpy as np from specc.analysis.analyzer import CircuitTester from specc.aquisition.daq import DataAcquisitionInterface from specc.data.results import SignalResponse from tests.utils import ACCEPTABLE_ERROR, TEST_AMPLITUDE, TEST_DF, TEST_FREQUENCY, TEST_SAMPLES, TEST_SAMPLE_RATE class TestDAQ...
38.712644
115
0.684976
f7486473166589d1446909259e7709fb68e2a5df
3,373
py
Python
src/structure/process_pdb.py
igordub/enm-research-project
c5c52f2a6b415bd871800bcf725fda23cb3fd542
[ "MIT" ]
null
null
null
src/structure/process_pdb.py
igordub/enm-research-project
c5c52f2a6b415bd871800bcf725fda23cb3fd542
[ "MIT" ]
null
null
null
src/structure/process_pdb.py
igordub/enm-research-project
c5c52f2a6b415bd871800bcf725fda23cb3fd542
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import click import logging from pathlib import Path from dotenv import find_dotenv, load_dotenv import os import pandas as pd from biopandas.pdb import PandasPdb from copy import deepcopy import src.utilities as utils @click.command() @click.argument('input_dir', type=click.Path(exists=True))...
34.070707
100
0.673881
f748b1172f3e0ca2af960e6acfaccec75a395009
1,051
py
Python
src/compas_cem/elements/trail.py
dylau/compas_cem
643c7d60cb9d6a9999cb96d39c44175cc8662a25
[ "MIT" ]
15
2020-12-11T14:35:19.000Z
2022-03-31T03:12:30.000Z
src/compas_cem/elements/trail.py
dylau/compas_cem
643c7d60cb9d6a9999cb96d39c44175cc8662a25
[ "MIT" ]
8
2020-10-09T00:08:05.000Z
2021-11-18T00:24:20.000Z
src/compas_cem/elements/trail.py
dylau/compas_cem
643c7d60cb9d6a9999cb96d39c44175cc8662a25
[ "MIT" ]
2
2021-12-28T02:29:47.000Z
2022-03-15T14:04:23.000Z
from compas_cem.elements import Edge class TrailEdge(Edge): """ A trail edge. Notes ----- If a plane is defined, it will override the absolute length of the trail edge. However, the sign of the length (e.g. the combinatorial state) is preserved. TODO: addexplicit combinatorial state to t...
30.911765
102
0.519505
f748f56f4e1a24811310c06c94386e264b91bd57
12,063
py
Python
schemes/parse_scheme_table.py
gold2718/ccpp-framework
66f1a069b6b15748e08adbe940b8ceb9b39619ab
[ "Apache-2.0" ]
null
null
null
schemes/parse_scheme_table.py
gold2718/ccpp-framework
66f1a069b6b15748e08adbe940b8ceb9b39619ab
[ "Apache-2.0" ]
39
2019-01-25T21:50:33.000Z
2021-09-03T16:57:43.000Z
schemes/parse_scheme_table.py
gold2718/ccpp-framework
66f1a069b6b15748e08adbe940b8ceb9b39619ab
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Usage: ./parse_scheme_table.py filename1 [filename2 filename3 ...] # Input: fortran filenames with doxygen-compliant and CCPP-compliant physics schemes; the argument tables should have the following format: # !! \section arg_table_schemename_run # !! | local_name | standard_name ...
54.09417
233
0.521346
f74907b936eb00941f148a9f06560e3d56a0302c
715
py
Python
products/models.py
benoitboyer/DjangoBio
415e048e7207f4abc6ac9b6bde7b7c7043aab78a
[ "MIT" ]
null
null
null
products/models.py
benoitboyer/DjangoBio
415e048e7207f4abc6ac9b6bde7b7c7043aab78a
[ "MIT" ]
null
null
null
products/models.py
benoitboyer/DjangoBio
415e048e7207f4abc6ac9b6bde7b7c7043aab78a
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Product(models.Model): product_brand = models.CharField(max_length=50) product_article_code = models.CharField(max_length=20) product_code= models.IntegerField() product_name= models.CharField(max_length=150) product_unit_packaging_number = models.Inte...
29.791667
67
0.80979
f74922ca39a253d92a9c87dae1b6068ed0dd843c
4,766
py
Python
eland/ml/_model_serializer.py
mesejo/eland
d1444f8e094ef11ce4fa6713a521245b68a842d7
[ "Apache-2.0" ]
null
null
null
eland/ml/_model_serializer.py
mesejo/eland
d1444f8e094ef11ce4fa6713a521245b68a842d7
[ "Apache-2.0" ]
null
null
null
eland/ml/_model_serializer.py
mesejo/eland
d1444f8e094ef11ce4fa6713a521245b68a842d7
[ "Apache-2.0" ]
null
null
null
# Licensed to Elasticsearch B.V under one or more agreements. # Elasticsearch B.V licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information import base64 import gzip import json from abc import ABC from typing import Sequence, Dict, Any, Optional def add_...
35.303704
87
0.648342
f74940774759d64a85f79cb06fe04419f5dcf521
27,717
py
Python
autotest/gdrivers/netcdf_cf.py
chambbj/gdal
3d56aecb5b8e9890dae8f560acd099992e707d12
[ "MIT" ]
1
2015-02-16T16:51:38.000Z
2015-02-16T16:51:38.000Z
autotest/gdrivers/netcdf_cf.py
theduckylittle/gdal
61be261cae524582ba28bceebb027cc1e967e0ab
[ "MIT" ]
null
null
null
autotest/gdrivers/netcdf_cf.py
theduckylittle/gdal
61be261cae524582ba28bceebb027cc1e967e0ab
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test NetCDF driver support. # Author: Frank Warmerdam <warmerdam@pobox.com> # ############################################################################### # Co...
41.001479
488
0.599307
f74959f1794d63d86a99d0bbf4f7c523d22281a1
5,114
py
Python
v3io_gputils/mpijob.py
sahare92/v3io-gputils
8d18c6b5b8d9051967295b75836708ffa645df81
[ "Apache-2.0" ]
null
null
null
v3io_gputils/mpijob.py
sahare92/v3io-gputils
8d18c6b5b8d9051967295b75836708ffa645df81
[ "Apache-2.0" ]
null
null
null
v3io_gputils/mpijob.py
sahare92/v3io-gputils
8d18c6b5b8d9051967295b75836708ffa645df81
[ "Apache-2.0" ]
null
null
null
from copy import deepcopy from os import environ from pprint import pprint import yaml from kubernetes import client, config from kubernetes.client.rest import ApiException _mpijob_template = { 'apiVersion': 'kubeflow.org/v1alpha1', 'kind': 'MPIJob', 'metadata': { 'name': '', 'namespace': 'default-tenant'...
32.993548
115
0.555534
f7497600d642a7db6b364f43f0e0a50efd519232
3,453
py
Python
appengine/components/tools/log_since.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2017-10-30T15:08:10.000Z
2017-10-30T15:08:10.000Z
appengine/components/tools/log_since.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/tools/log_since.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
#!/usr/bin/env python # Copyright 2014 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Prints a short log from HEAD (or [end]) to a pseudo revision number.""" __version__ = '1.0' import optparse import subp...
31.108108
77
0.640023
f7497d8712fd029a25bf3621c210603d647a77d2
31,698
py
Python
rioxarray/_io.py
aerisweather/rioxarray
1755f90ed827ea66477a235677c1c5ecd245833d
[ "ECL-2.0", "Apache-2.0" ]
269
2019-04-16T15:02:31.000Z
2022-03-31T08:10:13.000Z
rioxarray/_io.py
aerisweather/rioxarray
1755f90ed827ea66477a235677c1c5ecd245833d
[ "ECL-2.0", "Apache-2.0" ]
287
2019-04-17T02:51:12.000Z
2022-03-30T14:04:49.000Z
rioxarray/_io.py
aerisweather/rioxarray
1755f90ed827ea66477a235677c1c5ecd245833d
[ "ECL-2.0", "Apache-2.0" ]
43
2019-04-19T20:24:21.000Z
2022-03-25T15:36:56.000Z
""" Credits: This file was adopted from: https://github.com/pydata/xarray # noqa Source file: https://github.com/pydata/xarray/blob/1d7bcbdc75b6d556c04e2c7d7a042e4379e15303/xarray/backends/rasterio_.py # noqa """ import contextlib import os import re import threading import warnings import numpy as np import raster...
33.33123
127
0.618146
f7497f1f4bb2a67d60b34325c900ce8e14e8d00d
3,202
py
Python
alipay/aop/api/request/AlipayCommerceEducateCampusExamineQueryRequest.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/AlipayCommerceEducateCampusExamineQueryRequest.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/AlipayCommerceEducateCampusExamineQueryRequest.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 * class AlipayCommerceEducateCampusExamineQueryRequest(object): def __init__(self, biz_model=None): self._biz_model = biz_model self._versio...
25.015625
142
0.637726
f749833b519eca60c2ae70fd72c38e6decefd258
9,769
py
Python
opacus/privacy_analysis.py
nhsx-mirror/SynthVAE
64c00dff1b9cb1fe22b4b25e585b17ca5c7b9651
[ "MIT" ]
958
2020-08-28T15:34:15.000Z
2022-03-29T20:58:14.000Z
opacus/privacy_analysis.py
nhsx-mirror/SynthVAE
64c00dff1b9cb1fe22b4b25e585b17ca5c7b9651
[ "MIT" ]
330
2020-08-28T07:11:02.000Z
2022-03-31T19:16:10.000Z
opacus/privacy_analysis.py
nhsx-mirror/SynthVAE
64c00dff1b9cb1fe22b4b25e585b17ca5c7b9651
[ "MIT" ]
161
2020-08-28T06:12:10.000Z
2022-03-31T07:47:04.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved r""" *Based on Google's TF Privacy:* https://github.com/tensorflow/privacy/blob/master/tensorflow_privacy/privacy/analysis/rdp_accountant.py. *Here, we update this code to Python 3, and optimize dependencies.* Functionality ...
31.310897
136
0.604463
f749b1e973e1bf8ca1d6b889e5ab6ae31308500a
54
py
Python
webservices/env.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
246
2015-01-07T16:59:42.000Z
2020-01-18T20:35:05.000Z
webservices/env.py
adborden/openFEC
53a0a2b1a56292c5ca8e7a3185832baaed4a63d9
[ "CC0-1.0" ]
2,532
2015-01-02T16:22:46.000Z
2018-03-08T17:30:53.000Z
webservices/env.py
18F/openFEC
ee7b7368e0934f50c391789fb55444f811c1a2f7
[ "CC0-1.0" ]
75
2015-02-01T00:46:56.000Z
2021-02-14T10:51:34.000Z
import cfenv env = cfenv.AppEnv() __all__ = ['env']
9
20
0.648148
f749b7cb3e9cf99c7c9924870973047ee91ad75a
76
py
Python
tests/CONSTANTS.py
gousteris/git-diff-conditional-buildkite-plugin
517442ca9ebe21021e1078debf88c231ba8e8dff
[ "MIT" ]
19
2020-03-27T11:53:11.000Z
2021-04-14T23:11:27.000Z
tests/CONSTANTS.py
segmentio/git-diff-conditional-buildkite-plugin
62a276000149da0bbf4e152634211c75966a8558
[ "MIT" ]
7
2020-03-27T11:59:51.000Z
2021-08-06T14:01:42.000Z
tests/CONSTANTS.py
segmentio/git-diff-conditional-buildkite-plugin
62a276000149da0bbf4e152634211c75966a8558
[ "MIT" ]
6
2020-03-28T20:49:49.000Z
2022-01-19T17:48:02.000Z
LOGGER_NAME = "cli" PLUGIN_PREFIX = "BUILDKITE_PLUGIN_GIT_DIFF_CONDITIONAL"
25.333333
55
0.842105
f749cbea49751db5546b18ea9fe69eec26724adb
15,583
py
Python
pylib/zeus/runner.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
null
null
null
pylib/zeus/runner.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
null
null
null
pylib/zeus/runner.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
2
2018-07-16T19:14:11.000Z
2020-10-15T08:48:32.000Z
#!/usr/bin/env python """Handles run.""" __author__ = 'pramodg@room77.com (Pramod Gupta)' __copyright__ = 'Copyright 2012 Room77, Inc.' import itertools import json import os import re import sys import time from pylib.base.flags import Flags from pylib.base.exec_utils import ExecUtils from pylib.base.term_color im...
35.988453
99
0.656549
f74a1d08e0902583b5cd19cd039aea131ec0c4a4
5,506
py
Python
jenkinsapi_utils/jenkins_launcher.py
ifwe/jenkinsapi
31a7fbb07efcd48e226f7dcf643fd2a2625416c0
[ "MIT" ]
1
2015-01-12T14:15:59.000Z
2015-01-12T14:15:59.000Z
jenkinsapi_utils/jenkins_launcher.py
moustuk/jenkinsapi-1
d18c1e669965c209093763f3295f79c9d3ccdeea
[ "MIT" ]
null
null
null
jenkinsapi_utils/jenkins_launcher.py
moustuk/jenkinsapi-1
d18c1e669965c209093763f3295f79c9d3ccdeea
[ "MIT" ]
null
null
null
import os import time import Queue import random import shutil import logging import datetime import tempfile import requests import threading import subprocess import pkg_resources from jenkinsapi.jenkins import Jenkins from jenkinsapi.custom_exceptions import JenkinsAPIException log = logging.getLogger(__name__) ...
30.087432
96
0.599346
f74a2896a1d27cb39eb9be8b7f90b3a49f353807
38,296
py
Python
dbio/dss/__init__.py
DataBiosphere/data-store-cli
d83776ac68d3c6c86de1714487803bbdf705fddf
[ "MIT" ]
null
null
null
dbio/dss/__init__.py
DataBiosphere/data-store-cli
d83776ac68d3c6c86de1714487803bbdf705fddf
[ "MIT" ]
41
2020-01-13T22:19:19.000Z
2020-03-16T23:11:37.000Z
dbio/dss/__init__.py
DataBiosphere/data-store-cli
d83776ac68d3c6c86de1714487803bbdf705fddf
[ "MIT" ]
null
null
null
""" Data Storage System ******************* """ import errno import functools import json from collections import defaultdict, namedtuple import concurrent.futures from datetime import datetime from fnmatch import fnmatchcase import hashlib import os import re import tempfile import time import uuid from io import open...
49.160462
120
0.59283
f74a2c02757d56d4e71b63b64ba38781b6ff5ae8
966
py
Python
tests/test_irl.py
sethmlarson/irl
f28cc40faa8ef7991a4116fa38d1ea2be21ec081
[ "MIT" ]
7
2019-07-10T10:21:33.000Z
2020-09-22T09:05:09.000Z
tests/test_irl.py
python-http/yaul
f28cc40faa8ef7991a4116fa38d1ea2be21ec081
[ "MIT" ]
2
2019-09-25T17:26:03.000Z
2019-11-15T06:18:18.000Z
tests/test_irl.py
python-http/yaul
f28cc40faa8ef7991a4116fa38d1ea2be21ec081
[ "MIT" ]
null
null
null
import pytest import irl def test_equality_on_normalize(): url1 = irl.URL.parse("http://ヒ.example.com/abc%af?ヒq%CC#%dE") url2 = irl.URL.parse("HTTP://xn--pdk.eXaMpLe.CoM/abc%AF?%E3%83%92q%cc#%De") assert url1 == url2 @pytest.mark.parametrize( ["url", "addr"], [ ("http://example.com", ("...
28.411765
86
0.582816
f74a2e37020b9b9e0702331ff6e7a49c2a6f4eb8
3,222
py
Python
data/process_data.py
shahad-bit/Disaster-Response-Pipeline
76a86db14845c8d8ba8d87c81112580c96b2b0d4
[ "CNRI-Python" ]
null
null
null
data/process_data.py
shahad-bit/Disaster-Response-Pipeline
76a86db14845c8d8ba8d87c81112580c96b2b0d4
[ "CNRI-Python" ]
14
2020-01-10T22:26:06.000Z
2022-02-10T01:16:49.000Z
data/process_data.py
shahad-bit/Disaster-Response-Pipeline
76a86db14845c8d8ba8d87c81112580c96b2b0d4
[ "CNRI-Python" ]
null
null
null
import sys import pandas as pd from sqlalchemy import create_engine def load_data(messages_filepath, categories_filepath): """Load disaster messages and categories from csv files. Arguments: messages_filepath {String} -- disaster message file path categories_filepath {String} -- disaster c...
32.877551
80
0.658287
f74a4e0e253e95f9c690d7cec093a817cbba1f5e
24,765
py
Python
crosshair/simplestructs.py
Rik-de-Kort/CrossHair
e0a06969d571aebcc582359afdedf25f38630c0d
[ "MIT" ]
null
null
null
crosshair/simplestructs.py
Rik-de-Kort/CrossHair
e0a06969d571aebcc582359afdedf25f38630c0d
[ "MIT" ]
null
null
null
crosshair/simplestructs.py
Rik-de-Kort/CrossHair
e0a06969d571aebcc582359afdedf25f38630c0d
[ "MIT" ]
null
null
null
import collections.abc import dataclasses import functools import itertools import numbers import operator import sys from typing import * from crosshair.util import is_iterable from crosshair.util import is_hashable from crosshair.util import name_of_type class MapBase(collections.abc.MutableMapping): def __eq_...
28.696408
107
0.574399
f74a63828ceedda845b30d95cc6687889e0430b1
8,201
py
Python
src/LDPC/pyldpc/ldpcmatrices.py
Horacehxw/Multi-label
76095c72327e9aa379eaa653dbbb775ca638e6db
[ "MIT" ]
1
2019-04-24T15:24:48.000Z
2019-04-24T15:24:48.000Z
src/LDPC/pyldpc/ldpcmatrices.py
Horacehxw/Multi-label
76095c72327e9aa379eaa653dbbb775ca638e6db
[ "MIT" ]
null
null
null
src/LDPC/pyldpc/ldpcmatrices.py
Horacehxw/Multi-label
76095c72327e9aa379eaa653dbbb775ca638e6db
[ "MIT" ]
null
null
null
import numpy as np from scipy.sparse import csr_matrix from .ldpcalgebra import* __all__ = ['BinaryProduct', 'InCode', 'BinaryRank','RegularH','CodingMatrix','CodingMatrix_systematic','HtG'] def RegularH(n,d_v,d_c): """ ------------------------------------------------------------------------------ Builds a...
27.428094
129
0.559932
f74a6be17d44b1c99d379a8d7d7f5df13ddd7afb
106
py
Python
src/djangoSrc/dropbox_listener/apps.py
dighr/nethope_audio
8571bd6f621920f3fea085be3879cab15ccfc1e6
[ "MIT" ]
null
null
null
src/djangoSrc/dropbox_listener/apps.py
dighr/nethope_audio
8571bd6f621920f3fea085be3879cab15ccfc1e6
[ "MIT" ]
9
2021-03-09T21:01:14.000Z
2022-03-02T06:01:00.000Z
src/djangoSrc/dropbox_listener/apps.py
nethopeorg/nethope_audio
8571bd6f621920f3fea085be3879cab15ccfc1e6
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DropboxListenerConfig(AppConfig): name = 'dropbox_listener'
17.666667
39
0.792453
f74a73ed235fee6f6be7792ebdcaa8762726590d
905
py
Python
setup.py
paparent/pyforrst
70147a33b333c68fd8a72b5b5c502c3783b62c43
[ "MIT" ]
2
2016-03-01T22:16:45.000Z
2016-07-17T18:07:27.000Z
setup.py
paparent/pyforrst
70147a33b333c68fd8a72b5b5c502c3783b62c43
[ "MIT" ]
null
null
null
setup.py
paparent/pyforrst
70147a33b333c68fd8a72b5b5c502c3783b62c43
[ "MIT" ]
null
null
null
import os from setuptools import setup from pyforrst import __version__ setup( name='pyforrst', version=__version__, author='PA Parent', author_email='paparent@paparent.me', description='Python interface to Forrst API', long_description=file( os.path.join( os.path.dirname(_...
26.617647
71
0.61768
f74ab10f5ec32efdaea5c3f1b1f1bdf486d2e48b
1,283
py
Python
generic/time-calculator/time_calculator.py
dalamilla/programming-python
bf30ae752afff810d5cc0dda07694518a510a913
[ "MIT" ]
null
null
null
generic/time-calculator/time_calculator.py
dalamilla/programming-python
bf30ae752afff810d5cc0dda07694518a510a913
[ "MIT" ]
null
null
null
generic/time-calculator/time_calculator.py
dalamilla/programming-python
bf30ae752afff810d5cc0dda07694518a510a913
[ "MIT" ]
null
null
null
def add_time(start, duration, day=""): start_time = start.split() dur_time = duration.split() arr_days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"] star_arr = start_time[0].split(":") dur_arr = dur_time[0].split(":") hour = int(star_arr[0]) + int(dur_arr[0]) min = int(...
22.910714
91
0.55339
f74ae3fe033f7ab85beb25972ec28e355ac8796b
10,965
py
Python
Models/Electricity_Market/Tiers/V001/model.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
2
2018-05-31T15:02:08.000Z
2018-07-11T11:02:44.000Z
Models/Electricity_Market/Tiers/V001/model.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
null
null
null
Models/Electricity_Market/Tiers/V001/model.py
schmocker/Pyjamas
52a72d6e8b915f77a2194d4e7d53c46d0ec28c17
[ "MIT" ]
null
null
null
from pyjamas_core import Supermodel from pyjamas_core.util import Input, Output, Property from datetime import datetime, timedelta from Models._utils.time import datetime2utc_time, utc_time2datetime import numpy as np from pytz import timezone import json from scipy.interpolate import griddata import pandas as pd impor...
39.584838
150
0.540264
f74ae6b9925457538b16177136de3888adde735b
1,635
py
Python
tensorflow_datasets/scripts/cli/main.py
rushabh-v/datasets
eccdf9dd2b8741e1d2500ae7edb0cb7f5cd59da4
[ "Apache-2.0" ]
2
2020-10-12T07:09:38.000Z
2021-03-05T12:48:23.000Z
tensorflow_datasets/scripts/cli/main.py
rushabh-v/datasets
eccdf9dd2b8741e1d2500ae7edb0cb7f5cd59da4
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/scripts/cli/main.py
rushabh-v/datasets
eccdf9dd2b8741e1d2500ae7edb0cb7f5cd59da4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets 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 appl...
28.189655
78
0.729052
f74ae9c9e53bc414e5245b8a46d222773bdd1843
4,936
py
Python
aoide/make_sky_mask.py
granttremblay/aoide
ea25bdf92013f7dc3b254e261039c43e697ee901
[ "MIT" ]
1
2018-06-26T12:28:39.000Z
2018-06-26T12:28:39.000Z
aoide/make_sky_mask.py
granttremblay/Aoide
ea25bdf92013f7dc3b254e261039c43e697ee901
[ "MIT" ]
null
null
null
aoide/make_sky_mask.py
granttremblay/Aoide
ea25bdf92013f7dc3b254e261039c43e697ee901
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Aoide | Reduction & Analysis of MUSE observations ------------------------------------------------- Dr. Grant R. Tremblay | Harvard-Smithsonian Center for Astrophysics grant.tremblay @ cfa.harvard.edu See the README associated with this repository for documentation & examples. ''' from __fu...
30.097561
81
0.586507
f74af63f5ccfd54b66af7b96b0177756056c6157
240
py
Python
iterations/enumerate.py
SeanSyue/PythonReferences
103b2d6934a33e56a5d8fbb14d95282f572b3af7
[ "MIT" ]
null
null
null
iterations/enumerate.py
SeanSyue/PythonReferences
103b2d6934a33e56a5d8fbb14d95282f572b3af7
[ "MIT" ]
null
null
null
iterations/enumerate.py
SeanSyue/PythonReferences
103b2d6934a33e56a5d8fbb14d95282f572b3af7
[ "MIT" ]
null
null
null
seasons = ['Spring', 'Summer', 'Fall', 'Winter'] enum = enumerate(seasons) print(enum) print(type(enum)) print(list(enum)) my_list = ['apple', 'banana', 'grapes', 'pear'] for c, value in enumerate(my_list, 1): print(c, value)
24
49
0.629167
f74b26a31c7f63843b71cd0c4907c2f9a1f87f70
241
py
Python
pyspeckit/spectrum/models/OH.py
migueldvb/pyspeckit
fa7d875da7c684c8f6aaa3ba206ef3ff2e196652
[ "MIT", "BSD-3-Clause" ]
null
null
null
pyspeckit/spectrum/models/OH.py
migueldvb/pyspeckit
fa7d875da7c684c8f6aaa3ba206ef3ff2e196652
[ "MIT", "BSD-3-Clause" ]
null
null
null
pyspeckit/spectrum/models/OH.py
migueldvb/pyspeckit
fa7d875da7c684c8f6aaa3ba206ef3ff2e196652
[ "MIT", "BSD-3-Clause" ]
null
null
null
""" OH line fitter """ import redshiftedgroup freq_dict={ 'OH12':1.61223e9, 'OH11':1.66540e9, 'OH22':1.66736e9, 'OH21':1.72053e9, } OH = redshiftedgroup.redshiftedgroup(freq_dict) OHfitter = OH.fitter OHvheightfitter = OH.vheight_fitter
13.388889
47
0.738589
f74b33abf61540f34fa5672e5d8e0dabd0402b36
4,377
py
Python
oscar/lib/python2.7/site-packages/django/contrib/gis/db/backends/mysql/operations.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/gis/db/backends/mysql/operations.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/gis/db/backends/mysql/operations.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.gis.db.backends.base.adapter import WKTAdapter from django.contrib.gis.db.backends.base.operations import ( BaseSpatialOperations, ) from django.contrib.gis.db.backends.utils import SpatialOperator from django.contrib.gis.db.models import GeometryField, aggregates from django.db.backends.m...
39.080357
111
0.656614
f74b35d573a55d5e5d807e6f63998295e6f2ac66
202
py
Python
code_examples/python_with/with_simple.py
emilgaripov/emilgaripov.github.io
b0e4bf353cca894ec0199a73e71dc4f963e559a8
[ "MIT" ]
18
2017-02-19T15:58:54.000Z
2022-02-13T22:15:19.000Z
code_examples/python_with/with_simple.py
emilgaripov/emilgaripov.github.io
b0e4bf353cca894ec0199a73e71dc4f963e559a8
[ "MIT" ]
3
2020-02-26T14:42:54.000Z
2021-09-28T00:32:23.000Z
code_examples/python_with/with_simple.py
emilgaripov/emilgaripov.github.io
b0e4bf353cca894ec0199a73e71dc4f963e559a8
[ "MIT" ]
27
2017-05-03T15:38:41.000Z
2022-02-08T02:53:38.000Z
import contextlib @contextlib.contextmanager def lines(): print('-'*10, 'START', '-'*10) yield print('-'*11, 'END', '-'*11) with lines(): print('inside with block') print('outside')
14.428571
34
0.594059
f74b93f2ba91c860ce8e8dca9c307f3dd4f8e782
464
py
Python
toontown/coghq/PaintMixer.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/coghq/PaintMixer.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/coghq/PaintMixer.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 import PlatformEntity class PaintMixer(PlatformEntity.PlatformEntity): def start(self): PlatformEntity.PlatformEntity.start(self) model = self.platform.model shaft = model.find('**/PaintMixerBase1') shaft.setSz(self.shaftScale) shaft.node().setPreserveTr...
33.142857
52
0.689655
f74ba7b4d3a3b75a573444f558a4d790e954d12d
726
py
Python
mmdet/datasets/__init__.py
maktu6/mmdetection
4a0a42d4ab1f00732997e58da70c8145b9751bb0
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/__init__.py
maktu6/mmdetection
4a0a42d4ab1f00732997e58da70c8145b9751bb0
[ "Apache-2.0" ]
null
null
null
mmdet/datasets/__init__.py
maktu6/mmdetection
4a0a42d4ab1f00732997e58da70c8145b9751bb0
[ "Apache-2.0" ]
null
null
null
from .custom import CustomDataset from .xml_style import XMLDataset from .coco import CocoDataset from .voc import VOCDataset from .loader import GroupSampler, DistributedGroupSampler, build_dataloader from .utils import to_tensor, random_scale, show_ann, get_dataset from .concat_dataset import ConcatDataset from .repe...
40.333333
79
0.80303
f74bc584fa3f7f842ca2988f55f612e5139f9b02
7,270
py
Python
runtime/test/specs/V1_2/unidirectional_sequence_lstm_1step.mod.py
riscv-android-src/platform-packages-modules-NeuralNetworks
32a7fbe0cec3a17f9cdd8c6f11d94ae77e30add5
[ "Apache-2.0" ]
null
null
null
runtime/test/specs/V1_2/unidirectional_sequence_lstm_1step.mod.py
riscv-android-src/platform-packages-modules-NeuralNetworks
32a7fbe0cec3a17f9cdd8c6f11d94ae77e30add5
[ "Apache-2.0" ]
null
null
null
runtime/test/specs/V1_2/unidirectional_sequence_lstm_1step.mod.py
riscv-android-src/platform-packages-modules-NeuralNetworks
32a7fbe0cec3a17f9cdd8c6f11d94ae77e30add5
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2019 The Android Open Source Project # # 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 la...
43.795181
91
0.601376
f74bdb6e8649c00dbb2ee80660d7a80dbe509e45
13,273
py
Python
pycatia/drafting_interfaces/drawing_dimensions.py
Tian-Jionglu/pycatia
b315aeb3a74846f134ff6b67b3a6334b9d3905fa
[ "MIT" ]
1
2020-04-27T13:59:10.000Z
2020-04-27T13:59:10.000Z
pycatia/drafting_interfaces/drawing_dimensions.py
Luanee/pycatia
ea5eef8178f73de12404561c00baf7a7ca30da59
[ "MIT" ]
null
null
null
pycatia/drafting_interfaces/drawing_dimensions.py
Luanee/pycatia
ea5eef8178f73de12404561c00baf7a7ca30da59
[ "MIT" ]
null
null
null
#! usr/bin/python3.6 """ Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445 .. warning:: The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only. They are there as a guide as to how the visual basic / catscript function...
44.841216
117
0.497401