hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
795e1f9913b5a3a7e2b01678bcfbb45452871626
1,186
py
Python
Part1_Feature_based_method/Cumulant_NN_AWGN/plot_fig.py
coszero/Modulation-Recognition
26f09db322a491d28ebad7068d1b3e2d34fb69f7
[ "Apache-2.0" ]
5
2020-11-23T06:18:15.000Z
2022-02-18T15:15:01.000Z
Part1_Feature_based_method/Cumulant_NN_AWGN/plot_fig.py
coszero/Modulation-Recognition
26f09db322a491d28ebad7068d1b3e2d34fb69f7
[ "Apache-2.0" ]
1
2021-04-03T08:37:04.000Z
2021-04-03T08:37:04.000Z
Part1_Feature_based_method/Cumulant_NN_AWGN/plot_fig.py
coszero/Modulation-Recognition
26f09db322a491d28ebad7068d1b3e2d34fb69f7
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt curve_F3 = np.loadtxt('./result/CUM_NN_F3_L100_50000.txt', delimiter = ',', dtype = float) curve_F9 = np.loadtxt('./result/CUM_NN_F9_L100_50000.txt', delimiter = ',', dtype = float) curve_TC = np.loadtxt('./result/cum_based_all_L100.txt', delimiter = ',', dtype = flo...
38.258065
90
0.686341
795e209177b81f147c92acd9836e56e7d3978211
3,112
py
Python
examples/api.py
vancamti/skosprovider
b32370a58a57c7f372cb3dcb50d62bc4f43e65be
[ "MIT" ]
12
2015-03-27T16:54:08.000Z
2020-07-27T07:12:41.000Z
examples/api.py
vancamti/skosprovider
b32370a58a57c7f372cb3dcb50d62bc4f43e65be
[ "MIT" ]
87
2015-01-26T20:28:33.000Z
2021-12-08T10:55:16.000Z
examples/api.py
vancamti/skosprovider
b32370a58a57c7f372cb3dcb50d62bc4f43e65be
[ "MIT" ]
5
2016-05-20T09:42:47.000Z
2021-11-24T12:23:09.000Z
# -*- coding: utf-8 -*- ''' This example demonstrates the skosprovider API with a simple DictionaryProvider containing just three items. ''' from skosprovider.providers import DictionaryProvider from skosprovider.uri import UriPatternGenerator from skosprovider.skos import ConceptScheme larch = { 'id': '1', '...
29.923077
112
0.60347
795e2096914319d1d3b0c4190d01d3567c813bb3
3,995
py
Python
int_ui/mirror_dir.py
evgeniyabrosin/anfisa
ac4aef1a816de05ee2a45aa5b220e2baf93574de
[ "Apache-2.0" ]
8
2019-03-26T16:07:46.000Z
2021-12-30T13:38:06.000Z
int_ui/mirror_dir.py
evgeniyabrosin/anfisa
ac4aef1a816de05ee2a45aa5b220e2baf93574de
[ "Apache-2.0" ]
13
2018-11-07T19:37:20.000Z
2022-02-21T17:11:45.000Z
int_ui/mirror_dir.py
evgeniyabrosin/anfisa
ac4aef1a816de05ee2a45aa5b220e2baf93574de
[ "Apache-2.0" ]
15
2018-10-16T08:15:11.000Z
2022-02-21T14:07:29.000Z
# Copyright (c) 2019. Partners HealthCare and other members of # Forome Association # # Developed by Sergey Trifonov based on contributions by Joel Krier, # Michael Bouzinier, Shamil Sunyaev and other members of Division of # Genetics, Brigham and Women's Hospital # # Licensed under the Apache License, Version 2....
38.413462
77
0.552941
795e20c31ff7f249e99ae3f5b7b1300402b2749d
5,133
py
Python
cisp/event.py
centrify/centrify-hparcsight-integration-sample
d18f2d35fba13a7941cc10a4c9790f071f49864f
[ "Apache-2.0" ]
1
2021-03-17T16:42:46.000Z
2021-03-17T16:42:46.000Z
cisp/event.py
centrify/centrify-hparcsight-integration-sample
d18f2d35fba13a7941cc10a4c9790f071f49864f
[ "Apache-2.0" ]
null
null
null
cisp/event.py
centrify/centrify-hparcsight-integration-sample
d18f2d35fba13a7941cc10a4c9790f071f49864f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Centrify Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
48.424528
127
0.552893
795e210ba0b5e1a5dcb445663a11bafaa142dc05
40,465
py
Python
pyaci/core.py
camrossi/pyaci
c2148a5ab6f1d8b5923bf6ded258c9e3f48b6217
[ "Apache-2.0" ]
46
2016-10-21T20:25:26.000Z
2022-02-06T13:47:35.000Z
pyaci/core.py
camrossi/pyaci
c2148a5ab6f1d8b5923bf6ded258c9e3f48b6217
[ "Apache-2.0" ]
39
2017-11-26T20:28:50.000Z
2021-12-23T09:47:24.000Z
pyaci/core.py
camrossi/pyaci
c2148a5ab6f1d8b5923bf6ded258c9e3f48b6217
[ "Apache-2.0" ]
39
2016-10-21T21:19:43.000Z
2022-01-11T16:47:30.000Z
# Copyright (c) 2014, 2015 Cisco Systems, Inc. All rights reserved. """ pyaci.core ~~~~~~~~~~~~~~~~~~~ This module contains the core classes of PyACI. """ from OpenSSL.crypto import FILETYPE_PEM, load_privatekey, sign from collections import OrderedDict, defaultdict, deque from lxml import etree from requests import...
33.525269
119
0.583294
795e215708e7f77ef40cca0f22a4146fc5abef96
4,561
py
Python
src/htrun/host_tests_runner/host_test.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
37
2015-09-10T13:52:40.000Z
2021-11-17T11:53:30.000Z
src/htrun/host_tests_runner/host_test.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
270
2015-09-09T13:00:53.000Z
2021-12-16T17:39:05.000Z
src/htrun/host_tests_runner/host_test.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
51
2015-09-04T13:16:47.000Z
2021-11-18T15:40:03.000Z
# # Copyright (c) 2021 Arm Limited and Contributors. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # """Classes performing test selection, test execution and reporting of test results.""" from sys import stdout from .target_base import TargetBase from . import __version__ class HostTestResults(object): ...
30.406667
86
0.614997
795e21dcb0fcd48ce7d04b077482dc25d1d4e621
10,696
py
Python
widgets/Menu.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
3
2018-03-19T07:57:10.000Z
2021-07-05T08:55:14.000Z
widgets/Menu.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
6
2020-03-24T15:40:18.000Z
2021-12-13T19:46:09.000Z
widgets/Menu.py
iubica/wx-portfolio
12101986db72bcaffd9b744d514d6f9f651ad5a1
[ "MIT" ]
4
2018-03-29T21:59:55.000Z
2019-12-16T14:56:38.000Z
#!/usr/bin/env python import time import wx import images #------------------------------------------------------------------- class MyFrame(wx.Frame): def __init__(self, parent, id, log): wx.Frame.__init__(self, parent, id, 'Playing with menus', size=(500, 250)) self.log = log self.Cent...
33.955556
119
0.621915
795e22b0d94b51ab6253770d12ac221f27af5298
2,050
py
Python
tacker/db/nfvo/nfvo_db.py
qubitn1nja/tacker
5b40d877a7050cbbec6bdf8ccd77eb7cf224f1b1
[ "Apache-2.0" ]
1
2020-10-13T05:20:38.000Z
2020-10-13T05:20:38.000Z
tacker/db/nfvo/nfvo_db.py
qubitn1nja/tacker
5b40d877a7050cbbec6bdf8ccd77eb7cf224f1b1
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
tacker/db/nfvo/nfvo_db.py
qubitn1nja/tacker
5b40d877a7050cbbec6bdf8ccd77eb7cf224f1b1
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2016 Brocade Communications System, 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 #...
35.344828
79
0.696585
795e238be0b4c127af7c314498f7f26d738206b4
6,441
py
Python
test/functional/rpc_bind.py
cedicoin/cedicoin
b75eec0512455ea80d98d72e2fca2e74572a568a
[ "MIT" ]
null
null
null
test/functional/rpc_bind.py
cedicoin/cedicoin
b75eec0512455ea80d98d72e2fca2e74572a568a
[ "MIT" ]
null
null
null
test/functional/rpc_bind.py
cedicoin/cedicoin
b75eec0512455ea80d98d72e2fca2e74572a568a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Cedicoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test running cedicoind with the -rpcbind and -rpcallowip options.""" import sys from test_framework....
49.546154
172
0.633597
795e2420f39a57976dc6d6f242bdf1daf729046c
20,235
py
Python
test/test_connection.py
jochenparm/moler
0253d677e0ef150206758c7991197ba5687d0965
[ "BSD-3-Clause" ]
57
2018-02-20T08:16:47.000Z
2022-03-28T10:36:57.000Z
test/test_connection.py
jochenparm/moler
0253d677e0ef150206758c7991197ba5687d0965
[ "BSD-3-Clause" ]
377
2018-07-19T11:56:27.000Z
2021-07-09T13:08:12.000Z
test/test_connection.py
jochenparm/moler
0253d677e0ef150206758c7991197ba5687d0965
[ "BSD-3-Clause" ]
24
2018-04-14T20:49:40.000Z
2022-03-29T10:44:26.000Z
# -*- coding: utf-8 -*- __author__ = 'Grzegorz Latuszek' __copyright__ = 'Copyright (C) 2018, Nokia' __email__ = 'grzegorz.latuszek@nokia.com' import binascii import gc from moler.util.moler_test import MolerTest import pytest import datetime def do_nothing_func(): pass def test_can_attach_external_outgoing_...
37.82243
122
0.7447
795e24530ba6fe356c98cce0efe5ed514eb2b175
1,673
py
Python
pyscf/lib/test/test_misc.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
7
2020-03-06T15:14:17.000Z
2021-04-05T04:52:21.000Z
pyscf/lib/test/test_misc.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
36
2018-08-22T19:44:03.000Z
2020-05-09T10:02:36.000Z
pyscf/lib/test/test_misc.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
4
2018-02-14T16:28:28.000Z
2019-08-12T16:40:30.000Z
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
30.418182
74
0.62642
795e2483a9424d095368319913c234834d640ae9
73
py
Python
qr_payments/__init__.py
nahualventure/pos-addons
3c911c28c259967fb74e311ddcc8e6ca032c005d
[ "MIT" ]
null
null
null
qr_payments/__init__.py
nahualventure/pos-addons
3c911c28c259967fb74e311ddcc8e6ca032c005d
[ "MIT" ]
null
null
null
qr_payments/__init__.py
nahualventure/pos-addons
3c911c28c259967fb74e311ddcc8e6ca032c005d
[ "MIT" ]
3
2021-06-15T05:45:42.000Z
2021-07-27T12:28:53.000Z
# License MIT (https://opensource.org/licenses/MIT). from . import tools
24.333333
52
0.739726
795e24fca463c57ecfba5ac809a589d4e7ab21d3
6,044
py
Python
prepare_local_upk_files.py
FI-Mihej/Bensbach
3b952896c414e3085fb6299403d6f4702b78db29
[ "Apache-2.0" ]
6
2020-06-13T14:36:00.000Z
2021-12-10T02:52:10.000Z
prepare_local_upk_files.py
FI-Mihej/Bensbach
3b952896c414e3085fb6299403d6f4702b78db29
[ "Apache-2.0" ]
1
2018-07-01T07:15:54.000Z
2021-09-10T17:09:12.000Z
prepare_local_upk_files.py
FI-Mihej/Bensbach
3b952896c414e3085fb6299403d6f4702b78db29
[ "Apache-2.0" ]
3
2020-05-17T13:57:58.000Z
2021-12-20T10:04:19.000Z
#!/usr/bin/env python # Copyright © 2016 ButenkoMS. All rights reserved. Contacts: <gtalk@butenkoms.space> # # 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/licen...
45.104478
117
0.609861
795e251c24afb1bf5c4af92a1799c53ee41caf76
2,699
py
Python
onnxmltools/convert/coreml/operator_converters/neural_network/Embed.py
weikexin/onnxmltools
b5ea8a43bb0abf5ca23f0913dc2d9ea11b9724b1
[ "MIT" ]
null
null
null
onnxmltools/convert/coreml/operator_converters/neural_network/Embed.py
weikexin/onnxmltools
b5ea8a43bb0abf5ca23f0913dc2d9ea11b9724b1
[ "MIT" ]
null
null
null
onnxmltools/convert/coreml/operator_converters/neural_network/Embed.py
weikexin/onnxmltools
b5ea8a43bb0abf5ca23f0913dc2d9ea11b9724b1
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import nu...
57.425532
117
0.681363
795e271964e76c13ec8d852392a45eea05501663
7,464
py
Python
neutron/agent/l3/ha.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/agent/l3/ha.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/agent/l3/ha.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
# Copyright (c) 2014 OpenStack Foundation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
41.237569
78
0.666801
795e28da6d5ce0ae7a28f97fd110d28595e34490
36
py
Python
src/__init__.py
HalbardHobby/git-LFS-for-Lambda
d19ba6fc4605d5dc2dba52acb4236c68787f8bde
[ "MIT" ]
null
null
null
src/__init__.py
HalbardHobby/git-LFS-for-Lambda
d19ba6fc4605d5dc2dba52acb4236c68787f8bde
[ "MIT" ]
null
null
null
src/__init__.py
HalbardHobby/git-LFS-for-Lambda
d19ba6fc4605d5dc2dba52acb4236c68787f8bde
[ "MIT" ]
null
null
null
"""Package with the source code."""
18
35
0.666667
795e2980caf0ced9051898f9ce49805fed7041d8
623
py
Python
INBa/2015/Semyenov_A_N/task_7_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Semyenov_A_N/task_7_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Semyenov_A_N/task_7_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 7. Вариант 24 #Разработайте систему начисления очков для задачи 6, в соответствии с которой игрок получал бы большее количество баллов за меньшее количество попыток. #Semyenov A.N. #31.03.2016 print('Угадайте название одной из четырех основных мастей лошадей, которую загадал компьютер') import random a = rando...
31.15
151
0.696629
795e299cfbc6ccbab4bf0b96c22659fd821fd4d5
2,226
py
Python
FastSimulation/Configuration/python/Geometries_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
FastSimulation/Configuration/python/Geometries_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
FastSimulation/Configuration/python/Geometries_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # The CMS Geometry files # Pilot 2 geometry doesn't contain the preshower #from Configuration.StandardSequences.GeometryPilot2_cff import * # To use the "full" CMS geometry, comment the prevous line, and uncomment the following one: #####from Configuration.StandardSequences.Ge...
42.807692
107
0.839623
795e2acbd4a7a805d3543742cd2af87b70bbe1b1
3,248
py
Python
tools/ann_file_gen.py
aronfothi/mask_cluster_rcnn
5e1dcf0269166f0d2bce36e5b11e0be4cb585355
[ "Apache-2.0" ]
null
null
null
tools/ann_file_gen.py
aronfothi/mask_cluster_rcnn
5e1dcf0269166f0d2bce36e5b11e0be4cb585355
[ "Apache-2.0" ]
null
null
null
tools/ann_file_gen.py
aronfothi/mask_cluster_rcnn
5e1dcf0269166f0d2bce36e5b11e0be4cb585355
[ "Apache-2.0" ]
null
null
null
import sys import os import cv2 import json import numpy as np from os import listdir path = sys.argv[1] dest_path = sys.argv[2] images_path = dest_path + 'images' if ('mp4' in path.split('/')[-1]) or ('avi' in path.split('/')[-1]): print("Video processing....") try: os.mkdir(images_...
26.842975
160
0.535714
795e2c19b33cfbd0004659248b9dfdd26e5b35cc
5,875
py
Python
resources/ds_basics/s5v3.py
langsari/ftu-data-science
2f294a7ebf937857f2b1349978cf7c9c7a6bdd88
[ "MIT" ]
1
2019-03-15T13:22:32.000Z
2019-03-15T13:22:32.000Z
resources/ds_basics/s5v3.py
langsari/ftu-data-science
2f294a7ebf937857f2b1349978cf7c9c7a6bdd88
[ "MIT" ]
null
null
null
resources/ds_basics/s5v3.py
langsari/ftu-data-science
2f294a7ebf937857f2b1349978cf7c9c7a6bdd88
[ "MIT" ]
2
2019-05-10T01:38:35.000Z
2019-08-19T13:57:47.000Z
from s5v2 import * from prettytable import PrettyTable def my_table(): # no arguments are passed in, which seems a bit weird. We're hard-coding a function that only does one thing. x = PrettyTable(['Style', 'Average Price']) # setup a new pretty table list and give and give it two list items x.add_row(['Print', pret...
59.343434
727
0.737021
795e2c4fa627734ffa1d0b26d1ae3926f4d1e41e
2,234
py
Python
setup.py
flupke/upnp-port-forward
ba380e6407c1fec5f9d7a2ec7265d9597a2524ba
[ "MIT" ]
null
null
null
setup.py
flupke/upnp-port-forward
ba380e6407c1fec5f9d7a2ec7265d9597a2524ba
[ "MIT" ]
null
null
null
setup.py
flupke/upnp-port-forward
ba380e6407c1fec5f9d7a2ec7265d9597a2524ba
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import ( setup, find_packages, ) extras_require = { 'test': [ "pytest>=6.0.1", "pytest-xdist==2.1.0", "tox==3.19.0", ], 'lint': [ "black==19.10b0", "flake8==3.8.3", "isort>=4.2.15,<5", ...
27.243902
98
0.570725
795e2cc755e9b0d5c95c416a04bf48415dea8108
5,291
py
Python
networking_vsphere/tests/unit/utils/test_cache.py
huadream/networking-vsphere
8669a78d4d2eb4620610fe7e4548cac7fbfa9e6a
[ "Apache-2.0" ]
8
2015-04-23T15:36:56.000Z
2019-03-06T13:23:28.000Z
networking_vsphere/tests/unit/utils/test_cache.py
huadream/networking-vsphere
8669a78d4d2eb4620610fe7e4548cac7fbfa9e6a
[ "Apache-2.0" ]
1
2016-10-04T13:24:50.000Z
2016-10-04T13:24:50.000Z
networking_vsphere/tests/unit/utils/test_cache.py
huadream/networking-vsphere
8669a78d4d2eb4620610fe7e4548cac7fbfa9e6a
[ "Apache-2.0" ]
19
2015-09-15T13:25:01.000Z
2019-09-03T08:23:21.000Z
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # 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/LICEN...
41.335938
78
0.68815
795e2da195f065df490bdcee56e2fc64fe1e02ab
264
py
Python
continuousSubarraySum.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
continuousSubarraySum.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
continuousSubarraySum.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
class Solution: # @param {int[]} A an integer array # @return {int[]} A list of integers includes the index of the # first number and the index of the last number def continuousSubarraySum(self, A): # Write your code here
44
68
0.621212
795e2dc6f232fd8cc113e436b270f31a7f6973c1
2,054
py
Python
flexneuart/models/parade/parade_max.py
gitter-badger/FlexNeuART
f69e5421bdebe9db0d993b5470dace61872f90df
[ "Apache-2.0" ]
101
2020-08-06T07:06:00.000Z
2022-03-02T15:25:59.000Z
flexneuart/models/parade/parade_max.py
gitter-badger/FlexNeuART
f69e5421bdebe9db0d993b5470dace61872f90df
[ "Apache-2.0" ]
9
2020-11-05T23:17:06.000Z
2021-08-21T06:07:30.000Z
flexneuart/models/parade/parade_max.py
gitter-badger/FlexNeuART
f69e5421bdebe9db0d993b5470dace61872f90df
[ "Apache-2.0" ]
17
2020-09-09T22:08:03.000Z
2022-03-25T09:50:30.000Z
# # Copyright 2014+ Carnegie Mellon University # # 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 ag...
39.5
77
0.716164
795e2e8f6433ff9d5c8419e0ab28ebf21659cc45
6,768
py
Python
bindings/python/ensmallen_graph/datasets/string/polaromonasnaphthalenivorans.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/polaromonasnaphthalenivorans.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/polaromonasnaphthalenivorans.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Polaromonas naphthalenivorans. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetim...
35.809524
223
0.707299
795e2ea61926cde80424911edea9d2403657d592
3,653
py
Python
Check_gdbs.py
nismod/natural-capital-mapping
f388fee3c2592bf99eb628b4d4743bf9be3d4346
[ "MIT" ]
1
2021-03-31T00:35:00.000Z
2021-03-31T00:35:00.000Z
Check_gdbs.py
nismod/natural-capital-mapping
f388fee3c2592bf99eb628b4d4743bf9be3d4346
[ "MIT" ]
null
null
null
Check_gdbs.py
nismod/natural-capital-mapping
f388fee3c2592bf99eb628b4d4743bf9be3d4346
[ "MIT" ]
2
2020-01-30T09:40:36.000Z
2021-04-16T09:36:40.000Z
# Loops through a set of gdbs and checks for errors # The errors are specific to the process of creating natural capital maps but this code could be modified to check for other errors # import time import arcpy import os arcpy.CheckOutExtension("Spatial") print(''.join(["## Started on : ", time.ctime()])) # Choose ...
46.240506
133
0.649603
795e2f89d828f32017bad46cedb46129399ac8dc
1,773
py
Python
app/gws/plugin/qgis/writer.py
gbd-consult/gbd-websuite
7212f41081c04614fdb4641e902d4de3424da8c5
[ "Apache-2.0" ]
3
2020-07-24T10:10:18.000Z
2022-03-16T10:22:04.000Z
app/gws/plugin/qgis/writer.py
gbd-consult/gbd-websuite
7212f41081c04614fdb4641e902d4de3424da8c5
[ "Apache-2.0" ]
28
2020-03-03T17:35:58.000Z
2021-07-12T12:05:47.000Z
app/gws/plugin/qgis/writer.py
gbd-consult/gbd-websuite
7212f41081c04614fdb4641e902d4de3424da8c5
[ "Apache-2.0" ]
1
2021-02-22T14:32:10.000Z
2021-02-22T14:32:10.000Z
"""Manipulate QGIS project files.""" import bs4 import gws import gws.types as t def add_variables(source_text: str, d: dict) -> str: """Inject our variables into a project""" # @TODO rewrite relative paths to absolute bs = bs4.BeautifulSoup(source_text, 'lxml-xml') """ The vars are stored lik...
23.959459
84
0.539763
795e2fbfd07fe4c16393534d908c4cab31cf1912
559
bzl
Python
src/main/starlark/core/options/derive.bzl
vaticle/rules_kotlin
a73e838c2121bea9788f381b5c4d6de93cb18c74
[ "Apache-2.0" ]
286
2018-01-31T18:02:23.000Z
2022-03-27T07:03:06.000Z
src/main/starlark/core/options/derive.bzl
vaticle/rules_kotlin
a73e838c2121bea9788f381b5c4d6de93cb18c74
[ "Apache-2.0" ]
473
2018-01-31T17:58:05.000Z
2022-03-30T16:55:29.000Z
src/main/starlark/core/options/derive.bzl
vaticle/rules_kotlin
a73e838c2121bea9788f381b5c4d6de93cb18c74
[ "Apache-2.0" ]
144
2018-01-31T20:05:16.000Z
2022-03-13T17:47:20.000Z
_value_to_flag_info = provider( fields = { "ctx": "_derive_flag_ctx", "derive": "function(ctx, value) -> [] ", }, ) _derive_flag_ctx = provider( fields = {"name": "flag name for the compiler"}, ) def _derive_repeated_flag(ctx, value): return ["%s%s" % (ctx.name, v) for v in value] def...
22.36
52
0.645796
795e2fd846be8f38c15d531a56e14ab2ef663327
18,351
py
Python
nanopub/client.py
cffbots/nanopub
666a1583a1dc25a95b799a5892c9d332b942060f
[ "Apache-2.0" ]
13
2020-10-08T10:54:22.000Z
2022-03-05T17:34:54.000Z
nanopub/client.py
cffbots/nanopub
666a1583a1dc25a95b799a5892c9d332b942060f
[ "Apache-2.0" ]
77
2020-10-08T11:00:43.000Z
2021-09-06T15:36:20.000Z
nanopub/client.py
cffbots/nanopub
666a1583a1dc25a95b799a5892c9d332b942060f
[ "Apache-2.0" ]
4
2020-11-25T16:35:22.000Z
2022-02-02T14:17:11.000Z
# -*- coding: utf-8 -*- """This module includes a client for the nanopub server. """ import os import random import tempfile import warnings from typing import List, Union, Tuple import rdflib import requests from nanopub import namespaces, profile from nanopub.definitions import DUMMY_NANOPUB_URI from nanopub.java_...
43.692857
100
0.617405
795e30d12ceb5cd3df4caf46b53abe4e2d29b46a
10,459
py
Python
python/ray/serve/http_util.py
willfrey/ray
288a81b42ef0186ab4db33b30191614a7bdb69f6
[ "Apache-2.0" ]
1
2019-06-19T02:23:43.000Z
2019-06-19T02:23:43.000Z
python/ray/serve/http_util.py
willfrey/ray
288a81b42ef0186ab4db33b30191614a7bdb69f6
[ "Apache-2.0" ]
73
2021-09-25T07:11:39.000Z
2022-03-26T07:10:59.000Z
python/ray/serve/http_util.py
willfrey/ray
288a81b42ef0186ab4db33b30191614a7bdb69f6
[ "Apache-2.0" ]
null
null
null
import asyncio import socket from dataclasses import dataclass import inspect import json import logging from typing import Any, Dict, Type import starlette.responses import starlette.requests from starlette.types import Send, ASGIApp from fastapi.encoders import jsonable_encoder from ray.serve.exceptions import RayS...
36.315972
99
0.652548
795e3201e4ed6e095f2cf5224440cb2299fba7e3
2,930
py
Python
cohesity_management_sdk/models/protection_job_summary_for_policies.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/protection_job_summary_for_policies.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/protection_job_summary_for_policies.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. import cohesity_management_sdk.models.backup_run import cohesity_management_sdk.models.copy_run import cohesity_management_sdk.models.protection_job class ProtectionJobSummaryForPolicies(object): """Implementation of the 'ProtectionJobSummaryForPolicies' mod...
37.088608
178
0.672355
795e3247bc1bdb43550f3a1f1587be6374a6456f
1,236
py
Python
src/glossary/bookglossary.py
klown/clusive
3c89dae967dfe190c2cdf269915c6ace968d1bfb
[ "bzip2-1.0.6" ]
null
null
null
src/glossary/bookglossary.py
klown/clusive
3c89dae967dfe190c2cdf269915c6ace968d1bfb
[ "bzip2-1.0.6" ]
null
null
null
src/glossary/bookglossary.py
klown/clusive
3c89dae967dfe190c2cdf269915c6ace968d1bfb
[ "bzip2-1.0.6" ]
null
null
null
import json import logging import glossary.util as glossaryutil from library.models import Book logger = logging.getLogger(__name__) # Methods for looking up words in a book's glossary class BookGlossary: book = None data = None def __init__(self, book_id): self.book_id = book_id def ini...
29.428571
76
0.584142
795e32a0572f3f9381619aa0bb02c80a7be12fef
2,296
py
Python
emg_server/emg_server.py
nikitarub/multidata
6a05ad0a4e8e585ae00d145d04761f2838f8a0cb
[ "MIT" ]
null
null
null
emg_server/emg_server.py
nikitarub/multidata
6a05ad0a4e8e585ae00d145d04761f2838f8a0cb
[ "MIT" ]
null
null
null
emg_server/emg_server.py
nikitarub/multidata
6a05ad0a4e8e585ae00d145d04761f2838f8a0cb
[ "MIT" ]
null
null
null
import asyncio import websockets import time from get_serial import read_for_sec_to_array flag_connected = False async def send_emg(): uri = "ws://localhost:8765" async with websockets.connect(uri) as websocket: while True: # print("Connected") signal = read_for_sec_to_array(0....
30.613333
80
0.502613
795e32c949f1fd766d4fbff043fc8e31cb12d3fa
5,368
py
Python
brave/inputs/input.py
LoveTropics/brave
1f000a63c040cf43f7a8c5bf0460f463c666ded5
[ "Apache-2.0" ]
572
2018-10-25T10:52:21.000Z
2022-03-09T18:02:20.000Z
brave/inputs/input.py
LoveTropics/brave
1f000a63c040cf43f7a8c5bf0460f463c666ded5
[ "Apache-2.0" ]
50
2018-11-06T08:53:27.000Z
2022-01-04T17:00:37.000Z
brave/inputs/input.py
The-Eagle-Stream/brave
7b0e914d847495ec1d1dfd3a5c35a3b9c9ffbb87
[ "Apache-2.0" ]
130
2018-11-01T14:50:46.000Z
2022-03-10T20:31:41.000Z
from gi.repository import Gst from brave.inputoutputoverlay import InputOutputOverlay import random class Input(InputOutputOverlay): ''' An abstract superclass representing an AV input. ''' def setup(self): ''' Sets up the relevant GStreamer pipeline for this input. ''' ...
40.360902
104
0.618852
795e336e8438da27d6b41ef374342d43fb103f36
1,020
py
Python
ex112/utilidadesCev/moeda/__init__.py
ArthurCorrea/python-exercises
0c2ac46b8c40dd9868b132e847cfa42e025095e3
[ "MIT" ]
null
null
null
ex112/utilidadesCev/moeda/__init__.py
ArthurCorrea/python-exercises
0c2ac46b8c40dd9868b132e847cfa42e025095e3
[ "MIT" ]
null
null
null
ex112/utilidadesCev/moeda/__init__.py
ArthurCorrea/python-exercises
0c2ac46b8c40dd9868b132e847cfa42e025095e3
[ "MIT" ]
null
null
null
def dobro(n, formatar=False): num = n * 2 return num if not formatar else moeda(num) def metade(n, formatar=False): num = n / 2 return num if not formatar else moeda(num) def aumentar(n, aumenta, formatar=False): num = (n * aumenta) / 100 num += n return num if formatar is False else moe...
26.842105
82
0.581373
795e3463e5c1885163dcf912d5a6a8e88580b9fa
7,676
py
Python
univariate_random_intercept_adam.py
kyleclo/tensorflow-mle
efe00ba11841a1a448fff4166309fc23a713ba30
[ "BSD-3-Clause" ]
13
2017-11-10T01:23:48.000Z
2020-06-11T16:33:41.000Z
univariate_random_intercept_adam.py
kyleclo/tensorflow-mle
efe00ba11841a1a448fff4166309fc23a713ba30
[ "BSD-3-Clause" ]
null
null
null
univariate_random_intercept_adam.py
kyleclo/tensorflow-mle
efe00ba11841a1a448fff4166309fc23a713ba30
[ "BSD-3-Clause" ]
3
2017-12-19T17:34:12.000Z
2019-08-23T18:53:25.000Z
# Copyright (c) 2017, Kyle Lo # 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 numpy as np import tensorflow as tf from util.sprint import sfill, sfloat, sarray # random intercepts-only NUM_SUBJECTS = 100...
40.4
79
0.542861
795e3471f102808e141414f268ef1163ce4d9117
1,468
py
Python
setup.py
rahulbsw/sqlalchemy-trino
dc528bb05c532dcfe9f4210aab361df225c5903a
[ "Apache-2.0" ]
null
null
null
setup.py
rahulbsw/sqlalchemy-trino
dc528bb05c532dcfe9f4210aab361df225c5903a
[ "Apache-2.0" ]
null
null
null
setup.py
rahulbsw/sqlalchemy-trino
dc528bb05c532dcfe9f4210aab361df225c5903a
[ "Apache-2.0" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="sqlalchemy-trino", version="0.3.0.0.350", author="Dũng Đặng Minh", author_email="dungdm93@live.com", description="Trino dialect for SQLAlchemy", long_description=long...
33.363636
70
0.611717
795e34ee04ac6ad00fafad1c5e2f47df99858122
17,748
py
Python
casfs/_version.py
tchklovski/casfs
08303917ea5713156a2eb39c5b6c50d289c12a9a
[ "ECL-2.0", "Apache-2.0" ]
13
2020-06-08T13:09:48.000Z
2021-12-23T16:04:00.000Z
casfs/_version.py
tchklovski/casfs
08303917ea5713156a2eb39c5b6c50d289c12a9a
[ "ECL-2.0", "Apache-2.0" ]
1
2020-06-17T20:35:50.000Z
2021-07-21T05:12:33.000Z
casfs/_version.py
tchklovski/casfs
08303917ea5713156a2eb39c5b6c50d289c12a9a
[ "ECL-2.0", "Apache-2.0" ]
3
2020-06-17T20:34:51.000Z
2021-10-16T23:23:00.000Z
#!/usr/bin/python # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
31.468085
80
0.632804
795e35747e287d6331e8590672ccff28c99e871d
1,211
py
Python
leetcode/python/Problem13/roman_to_int.py
angelusualle/algorithms
86286a49db2a755bc57330cb455bcbd8241ea6be
[ "Apache-2.0" ]
null
null
null
leetcode/python/Problem13/roman_to_int.py
angelusualle/algorithms
86286a49db2a755bc57330cb455bcbd8241ea6be
[ "Apache-2.0" ]
null
null
null
leetcode/python/Problem13/roman_to_int.py
angelusualle/algorithms
86286a49db2a755bc57330cb455bcbd8241ea6be
[ "Apache-2.0" ]
null
null
null
# O(n) where n is size of roman numeral string def roman_to_int(s): num = 0 i = 0 while i < len(s): if s[i] == 'M': num += 1000 i += 1 elif s[i] == 'C' and i + 1 < len(s) and s[i+1] == 'M': num += 900 i += 2 elif s[i] == 'C' and i + 1 <...
26.911111
64
0.289017
795e35af729f22f34ef80c8be3086404d3c65eb8
10,518
py
Python
architectures/conll16st-v34-focused-rnns/v34/classifier.py
jimmycallin/master-thesis
5d30df288478ca944338eba353cbc2b84f415ee0
[ "MIT" ]
2
2016-06-21T12:34:23.000Z
2017-05-23T18:34:53.000Z
architectures/conll16st-v34-focused-rnns/v34/classifier.py
jimmycallin/master-thesis
5d30df288478ca944338eba353cbc2b84f415ee0
[ "MIT" ]
null
null
null
architectures/conll16st-v34-focused-rnns/v34/classifier.py
jimmycallin/master-thesis
5d30df288478ca944338eba353cbc2b84f415ee0
[ "MIT" ]
1
2020-06-17T14:07:50.000Z
2020-06-17T14:07:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # pylint: disable=C0103,W0621 """ Apply a trained discourse relation sense classifier (CoNLL16st). """ __author__ = "GW [http://gw.tnode.com/] <gw.2016@tnode.com>" __license__ = "GPLv3+" import argparse import codecs import json import logging import os import sys from ker...
36.776224
185
0.687013
795e3aaa791e069e8eb26c20b587e9934e0c2138
2,842
py
Python
azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/web_application_firewall_custom_rule.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/web_application_firewall_custom_rule.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/web_application_firewall_custom_rule.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
40.028169
83
0.628431
795e3ae564da57d9f098887d21016a5fa7dc8f53
1,887
py
Python
tests/unit_tests/test_tethys_config/test_admin.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
79
2015-10-05T13:13:28.000Z
2022-02-01T12:30:33.000Z
tests/unit_tests/test_tethys_config/test_admin.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
542
2015-08-12T22:11:32.000Z
2022-03-29T22:18:08.000Z
tests/unit_tests/test_tethys_config/test_admin.py
msouff/tethys
45795d1e6561d5db8fddd838f4d1ae1d91dbb837
[ "BSD-2-Clause" ]
71
2016-01-16T01:03:41.000Z
2022-03-31T17:55:54.000Z
import unittest from unittest import mock from tethys_config.models import SettingsCategory, Setting from tethys_config.admin import SettingInline, SettingCategoryAdmin class TethysConfigAdminTest(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_SettingInline...
36.288462
79
0.717011
795e3ba157f8aeda11edf66f6a2b226860a34308
2,717
py
Python
bbsim/matrix/rem.py
luciancooper/bbcmd
307aea02d245b3d217bb1a7f76a985b98da54e40
[ "MIT" ]
2
2018-12-07T20:13:03.000Z
2020-06-03T11:34:59.000Z
bbsim/matrix/rem.py
luciancooper/bbcmd
307aea02d245b3d217bb1a7f76a985b98da54e40
[ "MIT" ]
null
null
null
bbsim/matrix/rem.py
luciancooper/bbcmd
307aea02d245b3d217bb1a7f76a985b98da54e40
[ "MIT" ]
null
null
null
import numpy as np from .util import scolDec ########################################################################################################### # REM Matrix # #########################################################...
38.267606
186
0.387192
795e3bec5241da5ae3354db778df35b1019b9d77
3,901
py
Python
pruebaE1.py
sergiocgdl/Python-SOMCC
3487b14d026d36405f152adfb0e9221eadd02e87
[ "MIT" ]
null
null
null
pruebaE1.py
sergiocgdl/Python-SOMCC
3487b14d026d36405f152adfb0e9221eadd02e87
[ "MIT" ]
null
null
null
pruebaE1.py
sergiocgdl/Python-SOMCC
3487b14d026d36405f152adfb0e9221eadd02e87
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import math from som1 import SCCSOM from somE1 import SCCSOM_E from sklearn.metrics.cluster import adjusted_rand_score import sys ################################################################################ # Función para Lectura y tratamiento de l...
36.12037
142
0.537298
795e3cbfdd7bf170c5a080868753dca7f1987b09
1,507
py
Python
src/workers/worker.py
PatricioIribarneCatella/TP-NBA-statistics
e5a9a67a56614c63e4761316403e8ba6181ba447
[ "MIT" ]
null
null
null
src/workers/worker.py
PatricioIribarneCatella/TP-NBA-statistics
e5a9a67a56614c63e4761316403e8ba6181ba447
[ "MIT" ]
null
null
null
src/workers/worker.py
PatricioIribarneCatella/TP-NBA-statistics
e5a9a67a56614c63e4761316403e8ba6181ba447
[ "MIT" ]
null
null
null
import sys from os import path sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) from middleware.connection import WorkerSocket import middleware.constants as const class Worker(object): def __init__(self, node, config): self.socket = WorkerSocket(config[node]) # Implementation ...
23.546875
67
0.564698
795e3cec6663891ae94f209192c15c62d43a91df
1,090
py
Python
Python/moving-stones-until-consecutive.py
black-shadows/LeetCode-Solutions
b1692583f7b710943ffb19b392b8bf64845b5d7a
[ "Fair", "Unlicense" ]
null
null
null
Python/moving-stones-until-consecutive.py
black-shadows/LeetCode-Solutions
b1692583f7b710943ffb19b392b8bf64845b5d7a
[ "Fair", "Unlicense" ]
null
null
null
Python/moving-stones-until-consecutive.py
black-shadows/LeetCode-Solutions
b1692583f7b710943ffb19b392b8bf64845b5d7a
[ "Fair", "Unlicense" ]
null
null
null
# Time: O(1) # Space: O(1) class Solution(object): def numMovesStones(self, a, b, c): """ :type a: int :type b: int :type c: int :rtype: List[int] """ s = [a, b, c] s.sort() if s[0]+1 == s[1] and s[1]+1 == s[2]: retu...
28.684211
101
0.458716
795e3d8530238e8585a941e83e062078c06d09b5
1,248
py
Python
tests/test_wandb.py
AyushExel/flair
d6e7c8e6861fd258ac5c04b3de9ddd807a971090
[ "MIT" ]
null
null
null
tests/test_wandb.py
AyushExel/flair
d6e7c8e6861fd258ac5c04b3de9ddd807a971090
[ "MIT" ]
null
null
null
tests/test_wandb.py
AyushExel/flair
d6e7c8e6861fd258ac5c04b3de9ddd807a971090
[ "MIT" ]
null
null
null
from flair.data import Corpus from flair.datasets import TREC_6 from flair.embeddings import WordEmbeddings, FlairEmbeddings, DocumentRNNEmbeddings from flair.models import TextClassifier from flair.trainers import ModelTrainer # 1. get the corpus corpus: Corpus = TREC_6() # 2. create the label dictionary label_dict...
33.72973
106
0.739583
795e3dcec9bfa12fbd587a27362cbd96d2754441
12,741
py
Python
nova/tests/api/openstack/compute/contrib/test_keypairs.py
781778304/nova
05aff1959c9f94dae095635133386418390efb37
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/compute/contrib/test_keypairs.py
781778304/nova
05aff1959c9f94dae095635133386418390efb37
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/compute/contrib/test_keypairs.py
781778304/nova
05aff1959c9f94dae095635133386418390efb37
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 Eldar Nugaev # 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 ...
37.254386
78
0.604584
795e3dec685132d2cfa559777e14998aa3d5b3a9
6,233
py
Python
alipay/aop/api/domain/ProductBaseVO.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/ProductBaseVO.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/ProductBaseVO.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class ProductBaseVO(object): def __init__(self): self._biz_status = None self._is_combinate = None self._prod_env = None self._prod_name = None self._prod_templa...
32.633508
93
0.608214
795e3df779cc3df87b9ef999eb8615617354eea9
8,295
py
Python
plugins/callback.py
truongnam12/MusicPlayer-1
a20bcde0240075829f7abb4c46e015f1c36d4c1c
[ "MIT" ]
null
null
null
plugins/callback.py
truongnam12/MusicPlayer-1
a20bcde0240075829f7abb4c46e015f1c36d4c1c
[ "MIT" ]
null
null
null
plugins/callback.py
truongnam12/MusicPlayer-1
a20bcde0240075829f7abb4c46e015f1c36d4c1c
[ "MIT" ]
null
null
null
#MIT License #Copyright (c) 2021 SUBIN #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, distr...
39.312796
243
0.531887
795e3e1aed0c392f3911d88159500772513b4b83
937
py
Python
bindings/python/setup.py
svn2github/opendaff
c8a55ae2f58a89ec2df03857bc87e7bec7f5f154
[ "Apache-2.0" ]
null
null
null
bindings/python/setup.py
svn2github/opendaff
c8a55ae2f58a89ec2df03857bc87e7bec7f5f154
[ "Apache-2.0" ]
1
2019-01-16T06:52:38.000Z
2019-01-16T06:52:38.000Z
bindings/python/setup.py
svn2github/opendaff
c8a55ae2f58a89ec2df03857bc87e7bec7f5f154
[ "Apache-2.0" ]
1
2022-03-24T23:59:25.000Z
2022-03-24T23:59:25.000Z
from distutils.core import setup, Extension daffmodule = Extension('daffCppInterface', include_dirs = [ '../../include' ], sources = [ 'pydaff.cpp', '../../src/DAFFMetadataImpl.cpp', '../../src/DAFFReader.cpp', '../../src/DAFFReaderImpl.cpp', '../../...
40.73913
121
0.57524
795e3e961b6411cbeb1a040c14ab12cdfceb866c
10,644
py
Python
allennlp/data/dataset_readers/coreference_resolution/conll.py
justindujardin/allennlp
c4559f3751775aa8bc018db417edc119d29d8051
[ "Apache-2.0" ]
1
2020-09-19T07:09:27.000Z
2020-09-19T07:09:27.000Z
allennlp/data/dataset_readers/coreference_resolution/conll.py
justindujardin/allennlp
c4559f3751775aa8bc018db417edc119d29d8051
[ "Apache-2.0" ]
null
null
null
allennlp/data/dataset_readers/coreference_resolution/conll.py
justindujardin/allennlp
c4559f3751775aa8bc018db417edc119d29d8051
[ "Apache-2.0" ]
1
2021-02-04T08:42:23.000Z
2021-02-04T08:42:23.000Z
import logging import collections from typing import Any, Dict, List, Optional, Tuple, DefaultDict, Set from overrides import overrides from allennlp.common.file_utils import cached_path from allennlp.data.dataset_readers.dataset_reader import DatasetReader from allennlp.data.fields import ( Field, ListField,...
43.802469
100
0.633972
795e3ee4e97d22d8b97c3c7c37f6844128f47560
1,686
py
Python
Pyrado/scripts/training/omo_pepg.py
jacarvalho/SimuRLacra
a6c982862e2ab39a9f65d1c09aa59d9a8b7ac6c5
[ "BSD-3-Clause" ]
null
null
null
Pyrado/scripts/training/omo_pepg.py
jacarvalho/SimuRLacra
a6c982862e2ab39a9f65d1c09aa59d9a8b7ac6c5
[ "BSD-3-Clause" ]
null
null
null
Pyrado/scripts/training/omo_pepg.py
jacarvalho/SimuRLacra
a6c982862e2ab39a9f65d1c09aa59d9a8b7ac6c5
[ "BSD-3-Clause" ]
null
null
null
""" Train an agent to solve the One-Mass-Oscillator environment using Parameter-Exploring Policy Gradients. """ import numpy as np from pyrado.algorithms.pepg import PEPG from pyrado.environment_wrappers.action_normalization import ActNormWrapper from pyrado.environments.pysim.one_mass_oscillator import OneMassOscilla...
31.811321
107
0.716489
795e3f490c07ea1f21e193104d61e87d3f3881b4
1,764
py
Python
services/schemas.py
progenetix/bycon
0f81ee17d81d37b55ce492a84814e9e8a90042f6
[ "CC0-1.0" ]
4
2020-07-21T09:36:38.000Z
2021-06-28T13:00:07.000Z
services/schemas.py
progenetix/bycon
0f81ee17d81d37b55ce492a84814e9e8a90042f6
[ "CC0-1.0" ]
4
2020-07-22T08:14:27.000Z
2021-06-24T13:39:03.000Z
services/schemas.py
progenetix/bycon
0f81ee17d81d37b55ce492a84814e9e8a90042f6
[ "CC0-1.0" ]
2
2021-03-16T19:34:13.000Z
2021-12-15T08:51:38.000Z
#!/usr/local/bin/python3 import cgi, cgitb import re, json, yaml from os import environ, pardir, path, scandir import sys, datetime from humps import camelize # local dir_path = path.dirname(path.abspath(__file__)) pkg_path = path.join( dir_path, pardir ) sys.path.append( pkg_path ) from beaconServer.lib.cgi_utils i...
28
108
0.495465
795e3f8cd7b7a389998f9a45e5b9ec7adee72730
5,038
py
Python
hyperv/neutron/neutron_client.py
costingalan/networking-hyperv-7.0.3-1.0.2
0cace61470bd9ac377af207e75850e5a08054295
[ "Apache-2.0" ]
null
null
null
hyperv/neutron/neutron_client.py
costingalan/networking-hyperv-7.0.3-1.0.2
0cace61470bd9ac377af207e75850e5a08054295
[ "Apache-2.0" ]
null
null
null
hyperv/neutron/neutron_client.py
costingalan/networking-hyperv-7.0.3-1.0.2
0cace61470bd9ac377af207e75850e5a08054295
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Cloudbase Solutions SRL # 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 r...
37.318519
79
0.596864
795e407e8039ad7fefa2b53d61292db24a7c2c93
426
py
Python
order/forms.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
16
2021-09-22T19:08:28.000Z
2022-03-18T18:57:02.000Z
order/forms.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
6
2021-09-30T12:36:02.000Z
2022-03-18T22:18:00.000Z
order/forms.py
hossainchisty/Multi-Vendor-eCommerce
42c5f62b8b098255cc9ea57858d3cc7de94bd76a
[ "MIT" ]
6
2021-12-06T02:04:51.000Z
2022-03-13T14:38:14.000Z
from django import forms class CheckoutForm(forms.Form): first_name = forms.CharField(max_length=50) last_name = forms.CharField(max_length=50) email = forms.EmailField() phone = forms.CharField(max_length=20) address = forms.CharField(max_length=250) zipcode = forms.CharField(max_len...
32.769231
51
0.720657
795e410843f3cfcea04304acce926340cd504f30
8,493
py
Python
gluon/blocks/fresnet.py
Talgin/facerec
6ec6d9fbb1c2cf4cc344decfa1ef012f43f7bbce
[ "MIT" ]
23
2019-01-08T02:33:35.000Z
2022-03-27T12:34:28.000Z
gluon/blocks/fresnet.py
Talgin/facerec
6ec6d9fbb1c2cf4cc344decfa1ef012f43f7bbce
[ "MIT" ]
7
2020-01-02T12:44:03.000Z
2021-06-10T20:19:20.000Z
gluon/blocks/fresnet.py
Talgin/facerec
6ec6d9fbb1c2cf4cc344decfa1ef012f43f7bbce
[ "MIT" ]
7
2019-02-17T14:11:47.000Z
2022-03-29T08:32:47.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.450644
111
0.616743
795e412db09e26ce0cac577ce1e05d20e38b6342
1,341
py
Python
tests/parsers/sqlite_plugins/zeitgeist.py
jeppetrost/plaso
b48008c6ea79950eeeef3a05b3a859086c8704b6
[ "Apache-2.0" ]
null
null
null
tests/parsers/sqlite_plugins/zeitgeist.py
jeppetrost/plaso
b48008c6ea79950eeeef3a05b3a859086c8704b6
[ "Apache-2.0" ]
null
null
null
tests/parsers/sqlite_plugins/zeitgeist.py
jeppetrost/plaso
b48008c6ea79950eeeef3a05b3a859086c8704b6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for the Zeitgeist activity database plugin.""" from __future__ import unicode_literals import unittest from plaso.formatters import zeitgeist as _ # pylint: disable=unused-import from plaso.parsers.sqlite_plugins import zeitgeist from tests import test_lib as ...
30.477273
76
0.764355
795e415ba67ba45268260d28d849e82742d69602
648
py
Python
structural_patterns/flyweight_pattern/app.py
Stihotvor/python3_patterns
01627a2506d81982d9805ff6b1cda14ba214ee2e
[ "MIT" ]
null
null
null
structural_patterns/flyweight_pattern/app.py
Stihotvor/python3_patterns
01627a2506d81982d9805ff6b1cda14ba214ee2e
[ "MIT" ]
null
null
null
structural_patterns/flyweight_pattern/app.py
Stihotvor/python3_patterns
01627a2506d81982d9805ff6b1cda14ba214ee2e
[ "MIT" ]
null
null
null
class Grade(object): _instances = {} def __new__(cls, percent): percent = max(50, min(99, percent)) letter = 'FDCBA'[(percent - 50) // 10] self = cls._instances.get(letter) if self is None: self = cls._instances[letter] = object.__new__(Grade) self.letter...
32.4
65
0.612654
795e4187466a98ef1dd0f804ce8d2e9a808958df
6,104
py
Python
egs/vcc18/run.py
chomeyama/UnifiedSourceFilterGAN
ffb111a1b5f30d40b7170656c451640ca5abb514
[ "MIT" ]
13
2021-04-07T04:26:16.000Z
2021-09-06T02:17:02.000Z
egs/vcc18/run.py
chomeyama/UnifiedSourceFilterGAN
ffb111a1b5f30d40b7170656c451640ca5abb514
[ "MIT" ]
null
null
null
egs/vcc18/run.py
chomeyama/UnifiedSourceFilterGAN
ffb111a1b5f30d40b7170656c451640ca5abb514
[ "MIT" ]
1
2021-04-22T22:38:02.000Z
2021-04-22T22:38:02.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This code is modified from https://github.com/bigpon/QPPWG. """Pytorch uSFGAN script Usage: run.py [-h] [-g GPUID] [-f FACTOR] [-C CONFIG] [-T TRAIN] [-V VALID] [-E EVAL] [-R RESUME] [-I ITER] [-0] [-1] [-2] Options: ...
34.88
87
0.527031
795e423e7e60742142fa59a0ee27d51cfee2ce9c
3,185
py
Python
localK_sim.py
alexandster/localKfunSpaceTime
37d9adf1a41874e883b77f9d308caab76df407d3
[ "Apache-2.0" ]
null
null
null
localK_sim.py
alexandster/localKfunSpaceTime
37d9adf1a41874e883b77f9d308caab76df407d3
[ "Apache-2.0" ]
null
null
null
localK_sim.py
alexandster/localKfunSpaceTime
37d9adf1a41874e883b77f9d308caab76df407d3
[ "Apache-2.0" ]
null
null
null
#import modules import sys import numpy as np import settings as sett from datetime import datetime #------------------------------------------------------------------------------------------------------------ #distance function def dist(p1,p2): return [pow(pow(p1[0]-p2[0],2)+pow(p1[1]-p2[1],2),0.5), abs(p1[2] - p...
34.619565
110
0.474411
795e42edc57c2fa7152e2eb7c189241f0d273a19
1,665
py
Python
tests/test_siteheightvariation.py
marcelosalles/pyidf
c2f744211572b5e14e29522aac1421ba88addb0e
[ "Apache-2.0" ]
19
2015-12-08T23:33:51.000Z
2022-01-31T04:41:10.000Z
tests/test_siteheightvariation.py
marcelosalles/pyidf
c2f744211572b5e14e29522aac1421ba88addb0e
[ "Apache-2.0" ]
2
2019-10-04T10:57:00.000Z
2021-10-01T06:46:17.000Z
tests/test_siteheightvariation.py
marcelosalles/pyidf
c2f744211572b5e14e29522aac1421ba88addb0e
[ "Apache-2.0" ]
7
2015-11-04T02:25:01.000Z
2021-12-08T03:14:28.000Z
import os import tempfile import unittest import logging from pyidf import ValidationLevel import pyidf from pyidf.idf import IDF from pyidf.location_and_climate import SiteHeightVariation log = logging.getLogger(__name__) class TestSiteHeightVariation(unittest.TestCase): def setUp(self): self.fd, self.p...
36.195652
153
0.75015
795e43d6177cf32915c657db80069659eae17d1e
5,079
py
Python
configs/representation/uvc3/uvc3_r18_center_l1_cj_video_4x8x1_sgd_cosine_10e_k400_rgb.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
configs/representation/uvc3/uvc3_r18_center_l1_cj_video_4x8x1_sgd_cosine_10e_k400_rgb.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
configs/representation/uvc3/uvc3_r18_center_l1_cj_video_4x8x1_sgd_cosine_10e_k400_rgb.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
# model settings temperature = 0.01 with_norm = True model = dict( type='UVCTrackerV3', backbone=dict( type='ResNet', pretrained=None, depth=18, out_indices=(3, ), strides=(1, 2, 1, 1), norm_eval=False, zero_init_residual=True), cls_head=dict( ...
30.413174
78
0.621579
795e44a2a89fb83bc73bf11e07d4fff5c23e1fb5
1,139
py
Python
log_sessions/cartpole_8_2_05_1/modules/digideep/environment/storage.py
godnpeter/DMC_Clustering_PICA
1b3e14dd4034f3941af1caa06c1d4b6f9d606408
[ "BSD-2-Clause" ]
1
2021-05-09T14:34:49.000Z
2021-05-09T14:34:49.000Z
log_sessions/cartpole_8_4_05_1/modules/digideep/environment/storage.py
godnpeter/DMC_Clustering_PICA
1b3e14dd4034f3941af1caa06c1d4b6f9d606408
[ "BSD-2-Clause" ]
null
null
null
log_sessions/cartpole_8_4_05_1/modules/digideep/environment/storage.py
godnpeter/DMC_Clustering_PICA
1b3e14dd4034f3941af1caa06c1d4b6f9d606408
[ "BSD-2-Clause" ]
null
null
null
import torch class Storage: def __init__(self, obs_cluster_num, action_cluster_num, num_steps ): self.input_batch = torch.zeros(num_steps,5) self.obs_cluster_batch = torch.zeros(num_steps, obs_cluster_num) self.action_cluster_batch = torch.zeros(num_steps, action_cluster_num) self...
35.59375
79
0.636523
795e45d54ed0a2f83b60b366d4d0edc84ca77d5f
6,435
py
Python
astropy/uncertainty/distributions.py
mehrdad-shokri/astropy
abd73b51277694338c8eca7639da956dcd06f207
[ "BSD-3-Clause" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
Library/lib/python3.7/site-packages/astropy-4.0-py3.7-macosx-10.9-x86_64.egg/astropy/uncertainty/distributions.py
gengyong/Carnets
8930a14f69360d4db115a85ff9e0f6efa80fa2e7
[ "BSD-3-Clause" ]
242
2019-01-29T15:48:27.000Z
2022-03-31T22:09:21.000Z
Library/lib/python3.7/site-packages/astropy-4.0-py3.7-macosx-10.9-x86_64.egg/astropy/uncertainty/distributions.py
gengyong/Carnets
8930a14f69360d4db115a85ff9e0f6efa80fa2e7
[ "BSD-3-Clause" ]
31
2019-03-10T09:51:27.000Z
2022-02-14T23:11:12.000Z
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst """ Built-in distribution-creation functions. """ from warnings import warn import numpy as np from astropy import units as u from .core import Distribution __all__ = ['normal', 'poisson', 'uniform'] def normal(center, *, std=...
35.75
98
0.625486
795e46027605261c8583b9e9c74c3dbfbe0c1991
801
py
Python
week46.py
TadBak/python_weekly
02fd21608a2f0aa5587853bfbda0645254bc4c4a
[ "MIT" ]
2
2019-03-05T01:59:27.000Z
2021-01-03T14:29:42.000Z
week46.py
TadBak/python_weekly
02fd21608a2f0aa5587853bfbda0645254bc4c4a
[ "MIT" ]
null
null
null
week46.py
TadBak/python_weekly
02fd21608a2f0aa5587853bfbda0645254bc4c4a
[ "MIT" ]
1
2019-08-22T01:05:02.000Z
2019-08-22T01:05:02.000Z
# decorator function def mymypy(types): def wrap(func): def inner(*args): for t, a in zip(types, args): if not isinstance(a, t): raise TypeError(f'Argument: {a} is not type {t}') return func(*args) return inner return wrap # --- testi...
19.071429
69
0.54432
795e4610b0e7c832c5995e219b75f224f3cd65d0
3,587
py
Python
examples/HorizontalReflector1D.py
zfang-slim/pysit
8fca42b9749841abc302d1f8195a1437fad7ae4d
[ "BSD-3-Clause" ]
64
2015-09-08T06:23:27.000Z
2022-03-09T23:35:24.000Z
examples/HorizontalReflector1D.py
zfang-slim/pysit
8fca42b9749841abc302d1f8195a1437fad7ae4d
[ "BSD-3-Clause" ]
23
2015-10-08T01:14:24.000Z
2021-07-15T11:37:05.000Z
examples/HorizontalReflector1D.py
zfang-slim/pysit
8fca42b9749841abc302d1f8195a1437fad7ae4d
[ "BSD-3-Clause" ]
48
2015-06-25T14:48:22.000Z
2021-12-06T19:50:25.000Z
# Std import block import time import numpy as np import matplotlib.pyplot as plt from pysit import * from pysit.gallery import horizontal_reflector if __name__ == '__main__': # Setup # Define Domain pmlz = PML(0.1, 100, ftype='quadratic') # pmlz = Dirichlet() z_config = (0.1, 0.8, pmlz, Diric...
28.927419
106
0.560078
795e46b1727f687c079d6e8c68a9d04c1a224764
331
py
Python
inbox/cron.py
future-haus/django-inbox
02da1f825b6abc56a0c2c80d6e9b3616f3ef09b8
[ "MIT" ]
null
null
null
inbox/cron.py
future-haus/django-inbox
02da1f825b6abc56a0c2c80d6e9b3616f3ef09b8
[ "MIT" ]
14
2021-08-31T04:18:57.000Z
2021-08-31T04:55:32.000Z
inbox/cron.py
future-haus/django-inbox
02da1f825b6abc56a0c2c80d6e9b3616f3ef09b8
[ "MIT" ]
null
null
null
from django.http import HttpResponse from inbox.utils import process_new_messages, process_new_message_logs def view_process_new_messages(request): process_new_messages() return HttpResponse(status=200) def view_process_new_message_logs(request): process_new_message_logs() return HttpResponse(s...
18.388889
70
0.809668
795e46f0bbf3e53810189b6a0e07ead000c57115
2,245
py
Python
new_plot.py
nsang0u/TweetMapping
9e88fea27a4d7fc669d4ea5ad669491c4f8b99c2
[ "MIT" ]
null
null
null
new_plot.py
nsang0u/TweetMapping
9e88fea27a4d7fc669d4ea5ad669491c4f8b99c2
[ "MIT" ]
null
null
null
new_plot.py
nsang0u/TweetMapping
9e88fea27a4d7fc669d4ea5ad669491c4f8b99c2
[ "MIT" ]
null
null
null
import sys import csv import geopy import pandas as pd import plotly.express as px from geopy.geocoders import Nominatim from optparse import OptionParser GEO_COLNUM = 5 DATE_COLNUM = 1 csv.register_dialect('managequotes', escapechar='\\', doublequote=False) def location2coords(locationstr, geolocator): try: ...
34.015152
146
0.647216
795e47ccd5b46a6f6554ce7877796b783c0f65a8
5,774
py
Python
networks.py
wentaoyuan/sornet
ac25abdd33ef9436b0a00f985ff77f0acb2099eb
[ "MIT" ]
12
2022-02-14T21:40:18.000Z
2022-03-25T16:47:58.000Z
networks.py
wentaoyuan/sornet
ac25abdd33ef9436b0a00f985ff77f0acb2099eb
[ "MIT" ]
1
2022-02-16T06:06:52.000Z
2022-02-16T06:06:52.000Z
networks.py
wentaoyuan/sornet
ac25abdd33ef9436b0a00f985ff77f0acb2099eb
[ "MIT" ]
4
2022-01-29T23:23:16.000Z
2022-03-25T17:42:09.000Z
''' MIT License Copyright (c) 2022 Wentao Yuan 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, d...
36.77707
92
0.615864
795e487badb89c0d180598ff84e0bf86eeb7a0f5
2,727
py
Python
hmc/__init__.py
kim-hyunsu/nctp-hmc
634d14f48bff9be51fd83005ed71a4e63e0a9641
[ "MIT" ]
null
null
null
hmc/__init__.py
kim-hyunsu/nctp-hmc
634d14f48bff9be51fd83005ed71a4e63e0a9641
[ "MIT" ]
null
null
null
hmc/__init__.py
kim-hyunsu/nctp-hmc
634d14f48bff9be51fd83005ed71a4e63e0a9641
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np def kinetic_energy(velocity): """Kinetic energy of the current velocity (assuming a standard Gaussian) (x dot x) / 2 Parameters ---------- velocity : tf.Variable Vector of current velocity Returns ------- kinetic_energy : float ...
25.971429
76
0.598827
795e4921bc3115f7997e67be6d7c69d0453e0287
3,401
py
Python
BS/BS_027_190221/main.py
Aleksey-Voko/Word_forms_bases
f14173cef830e7a514dfaefba3bbbf0c02a3ac0f
[ "MIT" ]
null
null
null
BS/BS_027_190221/main.py
Aleksey-Voko/Word_forms_bases
f14173cef830e7a514dfaefba3bbbf0c02a3ac0f
[ "MIT" ]
null
null
null
BS/BS_027_190221/main.py
Aleksey-Voko/Word_forms_bases
f14173cef830e7a514dfaefba3bbbf0c02a3ac0f
[ "MIT" ]
null
null
null
from BS.utils import (save_list_to_file, get_string_list_from_file, get_bs_title_word_form, get_socket_word_form, read_src_bs) def get_replays_in_groups(): replays_in_groups = [] with open('src_dict/Повторы в группах.txt', encoding='utf-8') as f_in: groups ...
30.918182
77
0.604822
795e493c9391fba5a48feb0e1a35bf48b8c9091c
129
py
Python
app/users/admin.py
jayjodev/oncollegehub
5633df8beaef232d58025c4407bd9e25bd349e49
[ "MIT" ]
2
2018-11-14T17:08:05.000Z
2018-11-14T17:08:38.000Z
app/users/admin.py
jayjodev/oncollegehub
5633df8beaef232d58025c4407bd9e25bd349e49
[ "MIT" ]
16
2020-01-11T04:09:50.000Z
2022-03-12T00:11:19.000Z
app/users/admin.py
jayjodev/oncollegehub
5633df8beaef232d58025c4407bd9e25bd349e49
[ "MIT" ]
2
2018-11-14T17:08:07.000Z
2018-11-28T21:38:16.000Z
from django.contrib import admin from .models import Profile, College admin.site.register(Profile) admin.site.register(College)
21.5
36
0.821705
795e4b986d13f94d76511e13849eec215f77104b
1,733
py
Python
trust_stores_observatory/certificate_utils.py
jurajsomorovsky/trust_stores_observatory
6dfdd4985e54c46fc7383b888c1b5828ba329ee6
[ "MIT" ]
null
null
null
trust_stores_observatory/certificate_utils.py
jurajsomorovsky/trust_stores_observatory
6dfdd4985e54c46fc7383b888c1b5828ba329ee6
[ "MIT" ]
null
null
null
trust_stores_observatory/certificate_utils.py
jurajsomorovsky/trust_stores_observatory
6dfdd4985e54c46fc7383b888c1b5828ba329ee6
[ "MIT" ]
null
null
null
from typing import List from cryptography.x509 import NameOID, Name, Certificate class CertificateUtils: @staticmethod def _get_names_with_oid(name_field: Name, name_oid: NameOID) -> List[str]: return [cn.value for cn in name_field.get_attributes_for_oid(name_oid)] @classmethod def _get_name...
41.261905
115
0.663012
795e4c103b14533dddeaba059820ea3785831662
37
py
Python
1.DataType/String.py
olzlgur/Python_study
8dd346d07f64839cc8832e7bd4b7a57adf342312
[ "MIT" ]
null
null
null
1.DataType/String.py
olzlgur/Python_study
8dd346d07f64839cc8832e7bd4b7a57adf342312
[ "MIT" ]
null
null
null
1.DataType/String.py
olzlgur/Python_study
8dd346d07f64839cc8832e7bd4b7a57adf342312
[ "MIT" ]
null
null
null
print("하늘") print('바다') print("!"*10)
12.333333
13
0.567568
795e4c3da207f46c4c8da60baab2edc81591fa1e
4,184
py
Python
pylayers/location/geometric/exploit_CDF.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
143
2015-01-09T07:50:20.000Z
2022-03-02T11:26:53.000Z
pylayers/location/geometric/exploit_CDF.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
148
2015-01-13T04:19:34.000Z
2022-03-11T23:48:25.000Z
pylayers/location/geometric/exploit_CDF.py
usmanwardag/pylayers
2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a
[ "MIT" ]
95
2015-05-01T13:22:42.000Z
2022-03-15T11:22:28.000Z
import numpy as np import scipy as sp import scipy.stats as stats import matplotlib.pyplot as plt from matplotlib.patches import Circle, Wedge from matplotlib.collections import PatchCollection import sys import ConfigParser ############################### # filename = le meme nom de fichier que dans compute RSS-HT #...
29.258741
95
0.572419
795e4dbae4650190bd00cb14f091b7342acc51ba
6,440
py
Python
demo/mmdetection_demo.py
jahwanoh/mmdetection
77d64bf11f57e35eb2efc2df6fa35e923ce0b3a2
[ "Apache-2.0" ]
null
null
null
demo/mmdetection_demo.py
jahwanoh/mmdetection
77d64bf11f57e35eb2efc2df6fa35e923ce0b3a2
[ "Apache-2.0" ]
null
null
null
demo/mmdetection_demo.py
jahwanoh/mmdetection
77d64bf11f57e35eb2efc2df6fa35e923ce0b3a2
[ "Apache-2.0" ]
1
2020-08-11T08:33:11.000Z
2020-08-11T08:33:11.000Z
from mmdet.apis import init_detector, inference_detector, show_result_pyplot import mmcv import cv2 import numpy as np import time import sys import glob import os from datetime import datetime def process_video_crcnn(frame_offset, frame_count, config_file, checkpoint_file, video_path, dsort_img_path): """ fra...
37.882353
186
0.57764
795e4e2fd9c656c6e97e7b557613502ba927880f
957
py
Python
src/core/ServerStart.py
PyDO-Team/PyDO-Old
a89d9d30aee72a42ce3afdd90b5b297e7b908d73
[ "BSD-3-Clause" ]
1
2021-02-23T12:54:05.000Z
2021-02-23T12:54:05.000Z
src/core/ServerStart.py
PyDO-Team/PyDO-Old
a89d9d30aee72a42ce3afdd90b5b297e7b908d73
[ "BSD-3-Clause" ]
null
null
null
src/core/ServerStart.py
PyDO-Team/PyDO-Old
a89d9d30aee72a42ce3afdd90b5b297e7b908d73
[ "BSD-3-Clause" ]
1
2021-02-23T12:54:07.000Z
2021-02-23T12:54:07.000Z
import sys import __builtin__ try: from panda3d.core import * except: print(":ServerStart(error): Panda3D is required to run PyDO") sys.exit() from src.config.ConfigManager import ConfigManager configManager = ConfigManager() isLegacy = configManager.getBool('want-legacy', False) if isLegacy: from s...
24.538462
149
0.753396
795e4e926881ccf6ecf3963b21e95ff35c12fb6c
9,569
py
Python
packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/_tickformatstop.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/_tickformatstop.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/_tickformatstop.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "contourcarpet.colorbar" _path_str = "contourcarpet.colorbar.tickformatstop" _valid_p...
33.693662
82
0.570802
795e50837f21c4b4bac5afea1aa5842c7e911854
3,951
py
Python
custom-events/client-libraries/python/gen/spec_pb2.py
marcgovi/eventarc-samples
d7958b24c091c846c8daba264540b22d78cac77d
[ "Apache-2.0" ]
null
null
null
custom-events/client-libraries/python/gen/spec_pb2.py
marcgovi/eventarc-samples
d7958b24c091c846c8daba264540b22d78cac77d
[ "Apache-2.0" ]
null
null
null
custom-events/client-libraries/python/gen/spec_pb2.py
marcgovi/eventarc-samples
d7958b24c091c846c8daba264540b22d78cac77d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: spec.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google....
63.725806
1,372
0.806884
795e5091cd2ec2955cb88a99fe7257ca0ebd4a25
3,764
py
Python
tests/buildkite/schedule_and_publish/test_publish_benchmark_results_on_slack.py
ursacomputing/arrow-benchmarks-ci
71554ada73a7173a1007044d3a39f0b19e5ba9ec
[ "MIT" ]
null
null
null
tests/buildkite/schedule_and_publish/test_publish_benchmark_results_on_slack.py
ursacomputing/arrow-benchmarks-ci
71554ada73a7173a1007044d3a39f0b19e5ba9ec
[ "MIT" ]
6
2021-11-30T22:25:32.000Z
2022-03-29T00:03:02.000Z
tests/buildkite/schedule_and_publish/test_publish_benchmark_results_on_slack.py
ursacomputing/arrow-benchmarks-ci
71554ada73a7173a1007044d3a39f0b19e5ba9ec
[ "MIT" ]
4
2022-01-21T09:51:01.000Z
2022-03-21T18:00:50.000Z
from buildkite.schedule_and_publish.create_benchmark_builds import ( create_benchmark_builds, ) from buildkite.schedule_and_publish.get_commits import get_commits from buildkite.schedule_and_publish.publish_benchmark_results_on_slack import ( publish_benchmark_results_on_slack, ) from buildkite.schedule_and_pub...
40.042553
194
0.723167
795e5171ac7a3a1a91e29ec14847277dddec4596
826
py
Python
Algo and DSA/LeetCode-Solutions-master/Python/remove-duplicates-from-sorted-list-ii.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
Algo and DSA/LeetCode-Solutions-master/Python/remove-duplicates-from-sorted-list-ii.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
Algo and DSA/LeetCode-Solutions-master/Python/remove-duplicates-from-sorted-list-ii.py
Sourav692/FAANG-Interview-Preparation
f523e5c94d582328b3edc449ea16ac6ab28cdc81
[ "Unlicense" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
# Time: O(n) # Space: O(1) class ListNode(object): def __init__(self, x): self.val = x self.next = None def __repr__(self): if self is None: return "Nil" else: return "{} -> {}".format(self.val, repr(self.next)) class Solution(object): def deleteDu...
23.6
63
0.451574
795e522b889ada090107cc85413d3c8e77120bd3
184
py
Python
example/get_fol.py
Billal06/igtools3
43bdd72f879c1acc61aa384cfce6fbd8d4a1d457
[ "MIT" ]
null
null
null
example/get_fol.py
Billal06/igtools3
43bdd72f879c1acc61aa384cfce6fbd8d4a1d457
[ "MIT" ]
null
null
null
example/get_fol.py
Billal06/igtools3
43bdd72f879c1acc61aa384cfce6fbd8d4a1d457
[ "MIT" ]
null
null
null
# Update igtools v0.7 # Install Now # $ pip inatall igtools3 # Example v0.7 import igtools3 id = "31085556612" ses = igtools3.Session() print (ses.get_followers_name(id, max=100))
16.727273
43
0.722826
795e53434d74ddd8cf34d1f58ba1f8e9d71c9a52
5,761
py
Python
training_inductive.py
rmazzier/KENN-Citeseer-Experiments
9a0274f10ff00d8fbc42dd5eebdfbc775dc96b50
[ "BSD-3-Clause" ]
3
2021-05-07T19:26:45.000Z
2021-05-14T21:19:37.000Z
training_inductive.py
rmazzier/KENN-Citeseer-Experiments
9a0274f10ff00d8fbc42dd5eebdfbc775dc96b50
[ "BSD-3-Clause" ]
null
null
null
training_inductive.py
rmazzier/KENN-Citeseer-Experiments
9a0274f10ff00d8fbc42dd5eebdfbc775dc96b50
[ "BSD-3-Clause" ]
null
null
null
import tensorflow as tf from tensorflow import keras import numpy as np from model import Standard, Kenn import os import settings as s from training_helper_functions import * from training_standard import train_and_evaluate_standard from pre_elab import generate_dataset, get_train_and_valid_lengths os.environ['CUDA_...
38.406667
139
0.695365
795e53cdfd2fbbcad272a1bbbe37d409e87f9dd8
1,437
py
Python
tests/testsuite/contrib/test_predicates.py
danlamanna/django-rules
27656602e83dd7fdef1b4c74f1ea80399b686380
[ "MIT" ]
3
2019-09-28T20:39:11.000Z
2019-11-14T14:21:54.000Z
tests/testsuite/contrib/test_predicates.py
danlamanna/django-rules
27656602e83dd7fdef1b4c74f1ea80399b686380
[ "MIT" ]
null
null
null
tests/testsuite/contrib/test_predicates.py
danlamanna/django-rules
27656602e83dd7fdef1b4c74f1ea80399b686380
[ "MIT" ]
1
2017-12-06T17:17:25.000Z
2017-12-06T17:17:25.000Z
from django.contrib.auth.models import User from django.test import TestCase from rules.predicates import (is_authenticated, is_superuser, is_staff, is_active, is_group_member) from . import TestData class SwappedUser(object): pass class PredicateTests(TestData, TestCase): de...
31.23913
71
0.666667
795e54510f13168a5a41e9da6803d24c397a8f81
8,886
py
Python
run_meson_command_tests.py
loongarch64/meson
673aff3595d04a82d431dc4903c95227481565ca
[ "Apache-2.0" ]
null
null
null
run_meson_command_tests.py
loongarch64/meson
673aff3595d04a82d431dc4903c95227481565ca
[ "Apache-2.0" ]
null
null
null
run_meson_command_tests.py
loongarch64/meson
673aff3595d04a82d431dc4903c95227481565ca
[ "Apache-2.0" ]
1
2020-12-07T15:37:35.000Z
2020-12-07T15:37:35.000Z
#!/usr/bin/env python3 # Copyright 2018 The Meson development team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
43.135922
103
0.634256
795e54dfa1e363bb6a92f080ec47772f29a13da6
811
py
Python
fastapi_react_admin/__init__.py
sqllq/fastapi-react-admin
a0384061bd36881bcd334edb54eab5ab610ebbfd
[ "MIT" ]
null
null
null
fastapi_react_admin/__init__.py
sqllq/fastapi-react-admin
a0384061bd36881bcd334edb54eab5ab610ebbfd
[ "MIT" ]
null
null
null
fastapi_react_admin/__init__.py
sqllq/fastapi-react-admin
a0384061bd36881bcd334edb54eab5ab610ebbfd
[ "MIT" ]
null
null
null
""" ______ _ _ _____ _ _ _ | ____| | | (_) | __ \ | | /\ | | (_) | |__ __ _ ___| |_ __ _ _ __ _ | |__) |___ ___| |_ / \ __| |_ __ ___ _ _ __ | __/ _` / __| __/ _` | '_ \| | | _ // _ \/ __| __| / /...
45.055556
89
0.393342
795e55885dd8e64c2326c726a92bcde90bdb0988
913
py
Python
scripts/compile.py
xiaoxiae/soc-paper-2019
508b3e23c2fe72b476efb28fde6dd866dd1951fb
[ "MIT" ]
1
2019-03-04T17:46:13.000Z
2019-03-04T17:46:13.000Z
scripts/compile.py
xiaoxiae/soc-paper-2019
508b3e23c2fe72b476efb28fde6dd866dd1951fb
[ "MIT" ]
null
null
null
scripts/compile.py
xiaoxiae/soc-paper-2019
508b3e23c2fe72b476efb28fde6dd866dd1951fb
[ "MIT" ]
null
null
null
import os import subprocess # easier to change for running the Tex commands file_dir = os.path.dirname(os.path.abspath(__file__)) os.chdir(file_dir + os.sep + "..") # this makes it so that the name of the Tex file isn't hardcoded file_name = [f for f in os.listdir(".") if f.endswith(".tex")][0][:-len(".tex")] # clea...
32.607143
80
0.703176
795e5608c0382c8561607417ebfc8453cb379bf4
7,068
py
Python
openvino2022-device-for-mqtt.py
dlod-openvino/yolov5_infer
3374f6486498616d9878cfcc5be2e9a26eefc8ab
[ "MIT" ]
null
null
null
openvino2022-device-for-mqtt.py
dlod-openvino/yolov5_infer
3374f6486498616d9878cfcc5be2e9a26eefc8ab
[ "MIT" ]
null
null
null
openvino2022-device-for-mqtt.py
dlod-openvino/yolov5_infer
3374f6486498616d9878cfcc5be2e9a26eefc8ab
[ "MIT" ]
null
null
null
#version: python 3.x 测试过 #用于模拟一个基于mqtt协议传输OpenVINO推理结果 import paho.mqtt.client as mqtt import json import time import queue as Queue import threading,random import cv2 import numpy as np import time import yaml # from openvino.inference_engine import IECore # the version of openvino <= 2021.4.2 from openvino.runtime i...
30.864629
136
0.627476
795e5872b07a1d1518591c7c100fc85c0319a777
911
py
Python
photos/migrations/0009_auto_20201012_1242.py
SheilaKamotho/my-gallery-app
3f9c1d695d5b4a8d1f8ec531de999241b8e24077
[ "Unlicense", "MIT" ]
null
null
null
photos/migrations/0009_auto_20201012_1242.py
SheilaKamotho/my-gallery-app
3f9c1d695d5b4a8d1f8ec531de999241b8e24077
[ "Unlicense", "MIT" ]
null
null
null
photos/migrations/0009_auto_20201012_1242.py
SheilaKamotho/my-gallery-app
3f9c1d695d5b4a8d1f8ec531de999241b8e24077
[ "Unlicense", "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-10-12 09:42 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('photos', '0008_auto_20201012_0731'), ] operations = [ migrations.AlterField( model_name='image', ...
27.606061
114
0.596048
795e5a82dab4b35255b54800d67e8268e0e889b9
4,558
py
Python
src/clients/python/examples/simple_grpc_v2_client.py
LittleReal/tensorrt-inference-server
f2010b1277af93a032df6979e8086bec486ed5dd
[ "BSD-3-Clause" ]
null
null
null
src/clients/python/examples/simple_grpc_v2_client.py
LittleReal/tensorrt-inference-server
f2010b1277af93a032df6979e8086bec486ed5dd
[ "BSD-3-Clause" ]
null
null
null
src/clients/python/examples/simple_grpc_v2_client.py
LittleReal/tensorrt-inference-server
f2010b1277af93a032df6979e8086bec486ed5dd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2020, NVIDIA CORPORATION. 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 code must retain the above copyright # notice, thi...
41.063063
96
0.738701
795e5aa9060c3c61cd900c126ce0b846d3699072
3,169
py
Python
twint/url.py
deeso/twint
8c6a0e66897e7a9b29c960087cfb2a5d67316735
[ "MIT" ]
2
2019-10-08T11:26:32.000Z
2019-10-08T13:19:27.000Z
twint/url.py
santakd/twint
77ec23f76d2bee011aa5e53d529e504761281a27
[ "MIT" ]
null
null
null
twint/url.py
santakd/twint
77ec23f76d2bee011aa5e53d529e504761281a27
[ "MIT" ]
1
2019-05-03T01:17:11.000Z
2019-05-03T01:17:11.000Z
import logging as logme mobile = "http://mobile.twitter.com" base = "http://twitter.com/i" def _sanitizeQuery(base,params): _serialQuery = "" for p in params: _serialQuery += p[0]+"="+p[1]+"&" _serialQuery = base + "?" + _serialQuery[:-1].replace(":", "%3A").replace(" ", "%20") return _serialQu...
27.08547
89
0.567056
795e5b1d3c7a13ba746e0c26e2310d165bf92564
10,154
py
Python
pypureclient/flasharray/FA_2_5/api/smi_s_api.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flasharray/FA_2_5/api/smi_s_api.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flasharray/FA_2_5/api/smi_s_api.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # pyth...
45.533632
671
0.645657
795e5cea5a835e6cc1afea2b7a8bee643de296b1
1,392
py
Python
metatags/migrations/0001_initial.py
skylax1/django-simple-metatags
6aa01733e60f8ad87f6bc3a8fb81c2cdfcb7a09c
[ "MIT" ]
4
2017-04-09T20:29:46.000Z
2021-05-03T23:38:17.000Z
metatags/migrations/0001_initial.py
skylax1/django-simple-metatags
6aa01733e60f8ad87f6bc3a8fb81c2cdfcb7a09c
[ "MIT" ]
6
2017-04-09T20:38:40.000Z
2022-03-03T12:28:04.000Z
metatags/migrations/0001_initial.py
skylax1/django-simple-metatags
6aa01733e60f8ad87f6bc3a8fb81c2cdfcb7a09c
[ "MIT" ]
6
2016-12-05T16:00:17.000Z
2021-01-11T11:46:39.000Z
from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ] operations = [ migrations.CreateModel( name='MetaTag', fields=...
40.941176
114
0.561782
795e5d8c702f2225dce4a50c652b456177ed9fe4
25,773
py
Python
alf/bin/train_play_test.py
hnyu/alf
7548f034e4abbd49a52fed27a01861ee5bfcc1d7
[ "Apache-2.0" ]
1
2022-02-15T07:18:32.000Z
2022-02-15T07:18:32.000Z
alf/bin/train_play_test.py
Aminullah6264/gpvi_plus_updated_adv
449cb2594a1a9ee158af19984c4caaf7d86f1e7f
[ "Apache-2.0" ]
null
null
null
alf/bin/train_play_test.py
Aminullah6264/gpvi_plus_updated_adv
449cb2594a1a9ee158af19984c4caaf7d86f1e7f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 Horizon Robotics. 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 applicab...
35.795833
105
0.67272
795e5e008ff3eab0b3468b59ea43cad07e659b0a
1,757
py
Python
submarine-sdk/pysubmarine/tests/environment/test_environment_client.py
wsk1314zwr/submarine
673c6b71012c25f80e4826aba40443cc72198e92
[ "Apache-2.0" ]
40
2019-09-19T07:00:44.000Z
2019-10-28T16:39:20.000Z
submarine-sdk/pysubmarine/tests/environment/test_environment_client.py
wsk1314zwr/submarine
673c6b71012c25f80e4826aba40443cc72198e92
[ "Apache-2.0" ]
51
2019-09-20T16:09:54.000Z
2019-10-25T15:28:08.000Z
submarine-sdk/pysubmarine/tests/environment/test_environment_client.py
wsk1314zwr/submarine
673c6b71012c25f80e4826aba40443cc72198e92
[ "Apache-2.0" ]
25
2019-09-19T11:02:54.000Z
2019-10-26T04:13:58.000Z
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use t...
40.860465
88
0.770632
795e5fe44aba958289d6ec57684b905af33a965e
9,295
py
Python
train/trainer/train.py
msnederland/candypicker
98e90dce321f52a443058723165d00d8d45a87c3
[ "Apache-2.0" ]
75
2017-02-23T12:13:03.000Z
2021-07-07T13:42:18.000Z
train/trainer/train.py
BrainPad/FindYourCandy
b705d68fbe3775d19c0ae8f49422dae894eb0cdc
[ "Apache-2.0" ]
33
2017-02-19T03:15:49.000Z
2018-04-11T03:33:48.000Z
train/trainer/train.py
msnederland/candypicker
98e90dce321f52a443058723165d00d8d45a87c3
[ "Apache-2.0" ]
17
2017-03-03T03:50:34.000Z
2020-03-08T00:32:14.000Z
# Copyright 2017 BrainPad Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
35.208333
102
0.599139
795e6001e183cf9db7e31cb7e6e838d02abf9d9e
2,765
py
Python
backend/languages/model.py
pe2mbs/example_webapp_angular
05122bbf6ad954ad8a14ead7a9f90ee6fff60871
[ "MIT" ]
null
null
null
backend/languages/model.py
pe2mbs/example_webapp_angular
05122bbf6ad954ad8a14ead7a9f90ee6fff60871
[ "MIT" ]
8
2020-12-08T07:22:58.000Z
2022-03-02T10:32:49.000Z
backend/languages/model.py
pe2mbs/example_webapp_angular
05122bbf6ad954ad8a14ead7a9f90ee6fff60871
[ "MIT" ]
null
null
null
# # Python backend and Angular frontend code generation by gencrud # Copyright (C) 2018-2021 Marc Bertens-Nguyen m.bertens@pe2mbs.nl # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Library General Public License GPL-2.0-only # as published by the Free S...
45.327869
139
0.705244
795e6083362151aa21b03d64122c24ad88228565
6,683
py
Python
8_SENet/SENet_Keras.py
VincentChen123/densenet
431885937fe5a4e7d7255c31f79d4f398a3ad2be
[ "MIT" ]
879
2017-08-05T19:53:10.000Z
2022-03-04T12:40:55.000Z
8_SENet/SENet_Keras.py
VincentChen123/densenet
431885937fe5a4e7d7255c31f79d4f398a3ad2be
[ "MIT" ]
19
2017-10-25T09:33:20.000Z
2020-06-21T01:35:43.000Z
8_SENet/SENet_Keras.py
VincentChen123/densenet
431885937fe5a4e7d7255c31f79d4f398a3ad2be
[ "MIT" ]
353
2017-08-06T14:50:41.000Z
2022-03-30T13:49:12.000Z
import keras import math import numpy as np from keras.datasets import cifar10 from keras.preprocessing.image import ImageDataGenerator from keras.layers.normalization import BatchNormalization from keras.layers import Conv2D, Dense, Input, add, Activation, GlobalAveragePooling2D, multiply, Reshape from keras.layers im...
39.779762
199
0.658686
795e60e0b90f9627db35f727b9ae1df82007bf80
940
py
Python
setup.py
DigitalCreativeApkDev/Apfloat
35fbc520fb44f55f46c6137a1f25e93efccacef2
[ "MIT" ]
null
null
null
setup.py
DigitalCreativeApkDev/Apfloat
35fbc520fb44f55f46c6137a1f25e93efccacef2
[ "MIT" ]
null
null
null
setup.py
DigitalCreativeApkDev/Apfloat
35fbc520fb44f55f46c6137a1f25e93efccacef2
[ "MIT" ]
null
null
null
from setuptools import setup def readme(): with open("README.md", "r") as fh: long_description = fh.read() return long_description setup( name='Apfloat', version='1.1', packages=['Apfloat'], url='https://github.com/DigitalCreativeApkDev/Apfloat', license='MIT', author='Di...
28.484848
104
0.651064