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
797df96987c8e8a7cb96d7f148a89f18ee0953c8
33,516
py
Python
source/NVDAHelper.py
riku22/nvdajp
66a828ea89d317e4aa0ad2aed4b3b1e08920afb6
[ "bzip2-1.0.6" ]
null
null
null
source/NVDAHelper.py
riku22/nvdajp
66a828ea89d317e4aa0ad2aed4b3b1e08920afb6
[ "bzip2-1.0.6" ]
null
null
null
source/NVDAHelper.py
riku22/nvdajp
66a828ea89d317e4aa0ad2aed4b3b1e08920afb6
[ "bzip2-1.0.6" ]
null
null
null
# A part of NonVisual Desktop Access (NVDA) # Copyright (C) 2008-2020 NV Access Limited, Peter Vagner, Davy Kager, Mozilla Corporation, Google LLC, # Leonard de Ruijter # This file is covered by the GNU General Public License. # See the file COPYING for more details. import os import sys import winreg import ...
41.225092
202
0.76999
797df9a92c3745223708d9f01201611b272b4b44
1,093
py
Python
models/example_model.py
AustinT/at-tensorflow-template
ed020f347b9a83ec721da2428c4058b8673e81a8
[ "Apache-2.0" ]
null
null
null
models/example_model.py
AustinT/at-tensorflow-template
ed020f347b9a83ec721da2428c4058b8673e81a8
[ "Apache-2.0" ]
null
null
null
models/example_model.py
AustinT/at-tensorflow-template
ed020f347b9a83ec721da2428c4058b8673e81a8
[ "Apache-2.0" ]
null
null
null
from base.base_model import BaseModel import tensorflow as tf class ExampleModel(BaseModel): def __init__(self, config): super().__init__(config) self.build_model() self.init_saver() def build_model(self): self.is_training = tf.placeholder(tf.bool) self.x = tf.placeho...
35.258065
95
0.654163
797df9df826194450b84a24a08a9dcefeccce49f
11,730
py
Python
cnn_quantization/tf_cnn_benchmarks/all_reduce_benchmark.py
MODU-FTNC/google-research
7c4f9b6e375eaacf50d8280b26f7e42a06b568aa
[ "Apache-2.0" ]
1
2020-08-14T08:11:30.000Z
2020-08-14T08:11:30.000Z
cnn_quantization/tf_cnn_benchmarks/all_reduce_benchmark.py
robot-ai-machinelearning/google-research
88481d10a87947ffb9305dc7665682e008b27391
[ "Apache-2.0" ]
12
2020-09-25T22:43:27.000Z
2022-02-10T02:21:35.000Z
cnn_quantization/tf_cnn_benchmarks/all_reduce_benchmark.py
ZachT1711/google-research
662e6837a3efa0c40b11cb4122447c4b028d2115
[ "Apache-2.0" ]
1
2020-03-05T09:24:01.000Z
2020-03-05T09:24:01.000Z
# coding=utf-8 # Copyright 2019 The Google Research 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 applicab...
40.588235
80
0.705541
797dfa67505929804f0d2aef745b8451b09338bb
9,574
py
Python
bvh_skeleton/h36m_skeleton.py
KevinLTT/video2bvh
312d18f53bf31c37adcaf07c97098b67dbf9804a
[ "MIT" ]
285
2019-08-24T14:27:52.000Z
2022-03-30T11:54:24.000Z
bvh_skeleton/h36m_skeleton.py
kronoszhang/video2bvh
312d18f53bf31c37adcaf07c97098b67dbf9804a
[ "MIT" ]
48
2019-08-25T10:05:18.000Z
2022-03-28T18:02:28.000Z
bvh_skeleton/h36m_skeleton.py
kronoszhang/video2bvh
312d18f53bf31c37adcaf07c97098b67dbf9804a
[ "MIT" ]
54
2019-07-30T11:29:50.000Z
2022-03-21T03:49:01.000Z
from . import math3d from . import bvh_helper import numpy as np class H36mSkeleton(object): def __init__(self): self.root = 'Hip' self.keypoint2index = { 'Hip': 0, 'RightHip': 1, 'RightKnee': 2, 'RightAnkle': 3, 'LeftHip': 4, ...
36.128302
83
0.48193
797dfaf212b57b312bf5c72d81de0d0a965b80dc
1,628
py
Python
qiskit/qasm/node/unaryoperator.py
romainfd/qiskit-terra
b5285ccc5cb1d17b7c73402833f2750b93652426
[ "Apache-2.0" ]
2
2020-12-26T21:12:30.000Z
2021-05-18T12:53:42.000Z
qiskit/qasm/node/unaryoperator.py
romainfd/qiskit-terra
b5285ccc5cb1d17b7c73402833f2750b93652426
[ "Apache-2.0" ]
null
null
null
qiskit/qasm/node/unaryoperator.py
romainfd/qiskit-terra
b5285ccc5cb1d17b7c73402833f2750b93652426
[ "Apache-2.0" ]
1
2020-07-13T17:56:46.000Z
2020-07-13T17:56:46.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
29.071429
97
0.639435
797dfb095bd9241ab57af72d4cf054dea4532849
190
py
Python
badlinkfinder/__init__.py
jonchun/badlinkfinder
f61c42eaad7bdebea639df69da58954924c38c20
[ "MIT" ]
1
2021-11-09T10:16:42.000Z
2021-11-09T10:16:42.000Z
badlinkfinder/__init__.py
jonchun/badlinkfinder
f61c42eaad7bdebea639df69da58954924c38c20
[ "MIT" ]
null
null
null
badlinkfinder/__init__.py
jonchun/badlinkfinder
f61c42eaad7bdebea639df69da58954924c38c20
[ "MIT" ]
null
null
null
""" BadLinkFinder - a recursive bot that scrapes a domain and finds all bad assets/links. """ #!/usr/bin/env python3 # coding: utf-8 __version__ = '1.2.0-dev' __author__ = 'Jonathan Chun'
19
85
0.705263
797dfc3696c5d01ebb4bfd1396f3713b58b74105
4,684
py
Python
dfvfs/vfs/fake_file_entry.py
jaegeral/dfvfs
606d09bf4de0b5dcf20d1dddff879dfed5c93640
[ "Apache-2.0" ]
null
null
null
dfvfs/vfs/fake_file_entry.py
jaegeral/dfvfs
606d09bf4de0b5dcf20d1dddff879dfed5c93640
[ "Apache-2.0" ]
null
null
null
dfvfs/vfs/fake_file_entry.py
jaegeral/dfvfs
606d09bf4de0b5dcf20d1dddff879dfed5c93640
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """The fake file entry implementation.""" from dfdatetime import fake_time as dfdatetime_fake_time from dfvfs.lib import definitions from dfvfs.file_io import fake_file_io from dfvfs.path import fake_path_spec from dfvfs.vfs import fake_directory from dfvfs.vfs import file_entry class FakeFi...
28.387879
80
0.695132
797dfc52d95b3f83600a2a12ee59c254e288fc57
386
py
Python
pyefun/wxefun/component/EditableListBox.py
nuo010/pyefun
c1c4dfcfd382a67df005a66958da95aa13c30686
[ "Apache-2.0" ]
94
2021-05-19T04:09:29.000Z
2022-03-27T04:02:30.000Z
pyefun/wxefun/component/EditableListBox.py
nuo010/pyefun
c1c4dfcfd382a67df005a66958da95aa13c30686
[ "Apache-2.0" ]
11
2021-05-22T06:44:19.000Z
2021-12-27T11:16:06.000Z
pyefun/wxefun/component/EditableListBox.py
nuo010/pyefun
c1c4dfcfd382a67df005a66958da95aa13c30686
[ "Apache-2.0" ]
21
2021-05-22T21:08:09.000Z
2022-02-24T02:39:06.000Z
import wx.adv import wx from .wxControl import * 组件名称 = "排序列表框" 组件创建代码 = """wx.排序列表框(self.容器, size=({宽度}, {高度}), pos=({左边}, {顶边}), name='editableListBox', label='', style=1792)""" 界面设计器使用占位符创建 = True class 排序列表框(wx.adv.EditableListBox, 公用方法): pass def 取项目列表(self): return self.GetStrings() @组件_异常...
21.444444
115
0.639896
797dfcd4e36cfafd245137875d4b6fc904ace149
1,661
py
Python
database/models.py
cubdev/problem-recommender-system
11067d211d044f0965ec18abbeaa5eae10e7d1ab
[ "MIT" ]
null
null
null
database/models.py
cubdev/problem-recommender-system
11067d211d044f0965ec18abbeaa5eae10e7d1ab
[ "MIT" ]
null
null
null
database/models.py
cubdev/problem-recommender-system
11067d211d044f0965ec18abbeaa5eae10e7d1ab
[ "MIT" ]
null
null
null
from sqlalchemy import Column, ForeignKey, MetaData from sqlalchemy import Integer, String, DateTime from sqlalchemy.schema import Sequence from sqlalchemy.dialects.mysql import INTEGER, TEXT, TINYTEXT from db_config import Base class Problems(Base): __tablename__ = 'problems' __table_args__ = { 'mysql_engine' : '...
30.2
70
0.727273
797dfd4217090df93567748343aab39dd6b56778
18,619
py
Python
event_detector/gttm/cluster_detection/cluster_handler.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
event_detector/gttm/cluster_detection/cluster_handler.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
event_detector/gttm/cluster_detection/cluster_handler.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
import os from datetime import datetime from pathlib import Path from pprint import pprint import sys from sklearn.cluster import DBSCAN import geopandas as gp import pandas as pd import numpy as np # from sklearn.cluster.optics_ import OPTICS from sklearn.feature_extraction.text import TfidfVectorizer, CountVectoriz...
44.436754
122
0.628068
797dfd4c82dd9ddce6f647b6599557b41f96cb5c
24,459
py
Python
tests/test_forms.py
ixc/django-select2
39ab326884c5bcb84f534a883aa204089c19dd53
[ "MIT" ]
1
2019-12-24T16:30:24.000Z
2019-12-24T16:30:24.000Z
tests/test_forms.py
ixc/django-select2
39ab326884c5bcb84f534a883aa204089c19dd53
[ "MIT" ]
null
null
null
tests/test_forms.py
ixc/django-select2
39ab326884c5bcb84f534a883aa204089c19dd53
[ "MIT" ]
null
null
null
import json import os from collections.abc import Iterable import pytest from django.core import signing from django.db.models import QuerySet from django.urls import reverse from django.utils import translation from django.utils.encoding import force_text from selenium.common.exceptions import NoSuchElementException ...
46.149057
119
0.68392
797dfd5450114a49f08612528fcbf9a1545069ef
822
py
Python
src/obfuscapk/obfuscators/new_alignment/new_alignment.py
AkshayJainG/Obfuscapk
6f2e791dbc06afc17d69393b3e5064cc4821a582
[ "MIT" ]
12
2020-02-24T13:40:41.000Z
2021-05-05T12:41:43.000Z
src/obfuscapk/obfuscators/new_alignment/new_alignment.py
LoraxOfficial/Obfuscapk
6f2e791dbc06afc17d69393b3e5064cc4821a582
[ "MIT" ]
null
null
null
src/obfuscapk/obfuscators/new_alignment/new_alignment.py
LoraxOfficial/Obfuscapk
6f2e791dbc06afc17d69393b3e5064cc4821a582
[ "MIT" ]
3
2020-05-15T16:44:43.000Z
2021-07-31T03:21:14.000Z
#!/usr/bin/env python3.7 # coding: utf-8 import logging from obfuscapk import obfuscator_category from obfuscapk.obfuscation import Obfuscation class NewAlignment(obfuscator_category.ITrivialObfuscator): def __init__(self): self.logger = logging.getLogger('{0}.{1}'.format(__name__, self.__class__.__nam...
30.444444
115
0.694647
797dfe09dc608dc52876a24ca9f606b3d52c9b96
1,355
py
Python
test/test_iem.py
khourhin/sequana
c56d4490b7c8edc8a0f63fd60578eb72ed64f1b5
[ "BSD-3-Clause" ]
138
2016-07-13T06:24:45.000Z
2022-03-28T13:12:03.000Z
test/test_iem.py
khourhin/sequana
c56d4490b7c8edc8a0f63fd60578eb72ed64f1b5
[ "BSD-3-Clause" ]
655
2016-03-10T17:33:40.000Z
2022-03-30T16:10:45.000Z
test/test_iem.py
khourhin/sequana
c56d4490b7c8edc8a0f63fd60578eb72ed64f1b5
[ "BSD-3-Clause" ]
39
2016-11-04T11:40:58.000Z
2022-03-15T08:12:29.000Z
from sequana.iem import IEM from sequana import sequana_data from easydev import TempFile def test_iem(): for this in ["test_expdesign_wrong.csv", "test_expdesign_miseq_illumina_1.csv", "test_expdesign_miseq_illumina2.csv"]: filename = sequana_data(this) iem = IEM(filename) ...
26.057692
89
0.628782
797dff10c3919ed9ae9e38129831c5335bd772dc
1,085
py
Python
src/pyams_utils/interfaces/traversing.py
Py-AMS/pyams-utils
65b166596a8b9f66fb092a69ce5d53ac6675685e
[ "ZPL-2.1" ]
null
null
null
src/pyams_utils/interfaces/traversing.py
Py-AMS/pyams-utils
65b166596a8b9f66fb092a69ce5d53ac6675685e
[ "ZPL-2.1" ]
null
null
null
src/pyams_utils/interfaces/traversing.py
Py-AMS/pyams-utils
65b166596a8b9f66fb092a69ce5d53ac6675685e
[ "ZPL-2.1" ]
null
null
null
# # Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
32.878788
91
0.741935
797e01cfb6d5f7c2b1d557de14a549e70950b61b
21,108
py
Python
salt/modules/parted.py
dr4Ke/salt
8ffa4903c9ed10c81e1a6c7b967dc9532f320c0b
[ "Apache-2.0" ]
1
2015-08-20T21:55:17.000Z
2015-08-20T21:55:17.000Z
salt/modules/parted.py
dr4Ke/salt
8ffa4903c9ed10c81e1a6c7b967dc9532f320c0b
[ "Apache-2.0" ]
null
null
null
salt/modules/parted.py
dr4Ke/salt
8ffa4903c9ed10c81e1a6c7b967dc9532f320c0b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Module for managing partitions on POSIX-like systems. :depends: - parted, partprobe, lsblk (usually parted and util-linux packages) Some functions may not be available, depending on your version of parted. Check the manpage for ``parted(8)`` for more information, or the online docs at: ...
27.700787
81
0.591861
797e02d1865ddd88a482c870ce0796eb55eb68f0
633
py
Python
src/storage-preview/azext_storage_preview/tests/latest/__init__.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
null
null
null
src/storage-preview/azext_storage_preview/tests/latest/__init__.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
9
2022-03-25T19:35:49.000Z
2022-03-31T06:09:47.000Z
src/storage-preview/azext_storage_preview/tests/latest/__init__.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
1
2022-03-10T22:13:02.000Z
2022-03-10T22:13:02.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
57.545455
94
0.579779
797e062f912dfaf1ff935591976ae07c19214bca
1,531
py
Python
turbinia/jobs/jenkins.py
dfjxs/turbinia
23a97d9d826cbcc51e6b5dfd50d85251506bf242
[ "Apache-2.0" ]
1
2021-02-22T11:57:06.000Z
2021-02-22T11:57:06.000Z
turbinia/jobs/jenkins.py
dfjxs/turbinia
23a97d9d826cbcc51e6b5dfd50d85251506bf242
[ "Apache-2.0" ]
null
null
null
turbinia/jobs/jenkins.py
dfjxs/turbinia
23a97d9d826cbcc51e6b5dfd50d85251506bf242
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
30.62
74
0.763553
797e0647c1ce234873a24ed9c5bc7e2bd15d8e39
1,594
py
Python
bin/lib/library_build_config.py
compiler-explorer/compiler-explorer-image
289e589a098acdcd5b30a6388d0092a13f2b155f
[ "BSD-2-Clause" ]
null
null
null
bin/lib/library_build_config.py
compiler-explorer/compiler-explorer-image
289e589a098acdcd5b30a6388d0092a13f2b155f
[ "BSD-2-Clause" ]
null
null
null
bin/lib/library_build_config.py
compiler-explorer/compiler-explorer-image
289e589a098acdcd5b30a6388d0092a13f2b155f
[ "BSD-2-Clause" ]
null
null
null
from typing import Optional, Dict, Any class LibraryBuildConfig: def __init__(self, config: Dict[str, Any]): self.config = config self.build_type = self.config_get("build_type", "") self.build_fixed_arch = self.config_get("build_fixed_arch", "") self.build_fixed_stdlib = self.config...
51.419355
80
0.659975
797e0681756b00fda3c82bc0e6e2c1d377ad3bff
4,664
py
Python
azure-mgmt-datafactory/azure/mgmt/datafactory/models/azure_data_lake_store_linked_service.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure-mgmt-datafactory/azure/mgmt/datafactory/models/azure_data_lake_store_linked_service.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure-mgmt-datafactory/azure/mgmt/datafactory/models/azure_data_lake_store_linked_service.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
52.404494
270
0.703473
797e06edffcd5c85305070cc017895f7a34debe7
394
py
Python
nablapps/interactive/migrations/0025_auto_20220403_2011.py
NablaWebkom/nablaweb
9247c5e3f7b5d965d9437c74530638f925d0e9c6
[ "MIT" ]
1
2019-10-07T13:59:19.000Z
2019-10-07T13:59:19.000Z
nablapps/interactive/migrations/0025_auto_20220403_2011.py
NablaWebkom/nablaweb
9247c5e3f7b5d965d9437c74530638f925d0e9c6
[ "MIT" ]
2
2019-10-07T14:47:37.000Z
2019-10-07T14:49:49.000Z
nablapps/interactive/migrations/0025_auto_20220403_2011.py
NablaWebkom/nablaweb
9247c5e3f7b5d965d9437c74530638f925d0e9c6
[ "MIT" ]
null
null
null
# Generated by Django 3.1.14 on 2022-04-03 20:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("interactive", "0024_result_length"), ] operations = [ migrations.AlterField( model_name="result", name="python_vers...
20.736842
50
0.606599
797e07150099b1916dab2844199cf11bb40ec0c1
1,260
py
Python
two_factor/migrations/0006_auto_20180812_1829.py
compsult/django-two-factor-auth
9bde7153d9318bd94a8083b1dfae5e2a45159b91
[ "MIT" ]
1
2018-08-20T18:39:16.000Z
2018-08-20T18:39:16.000Z
two_factor/migrations/0006_auto_20180812_1829.py
compsult/django-two-factor-auth
9bde7153d9318bd94a8083b1dfae5e2a45159b91
[ "MIT" ]
null
null
null
two_factor/migrations/0006_auto_20180812_1829.py
compsult/django-two-factor-auth
9bde7153d9318bd94a8083b1dfae5e2a45159b91
[ "MIT" ]
4
2018-08-21T22:45:22.000Z
2019-07-22T16:58:05.000Z
# Generated by Django 2.0.3 on 2018-08-12 18:29 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('otp_yubikey', '0001_initial'), migrations.swappable_dependency(settings.AUTH_USER_M...
38.181818
130
0.630159
797e07173845816a0fc1ac1720fb96d2bf7c0255
2,667
py
Python
tests/test_poll_submission.py
spapadim/canvasaio
a17e60447acd45cdbd6e4f0f24f3c9ae03a58ca8
[ "MIT" ]
null
null
null
tests/test_poll_submission.py
spapadim/canvasaio
a17e60447acd45cdbd6e4f0f24f3c9ae03a58ca8
[ "MIT" ]
null
null
null
tests/test_poll_submission.py
spapadim/canvasaio
a17e60447acd45cdbd6e4f0f24f3c9ae03a58ca8
[ "MIT" ]
null
null
null
import unittest from aioresponses import aioresponses from canvasaio.exceptions import RequiredFieldMissing from canvasaio import Canvas from canvasaio.poll_submission import PollSubmission from tests import settings from tests.util import register_uris, aioresponse_mock @aioresponse_mock class TestPollSubmission(u...
37.56338
81
0.688789
797e07704586b5fcb6e46987e7a0cbd622a6f5a4
272
py
Python
ckan/tests/model/__init__.py
ziveo/ckan
f4cfe5e28789df58b2bf7e73e5989ffda00e5c5c
[ "Apache-2.0" ]
2,805
2015-01-02T18:13:15.000Z
2022-03-31T03:35:01.000Z
ckan/tests/model/__init__.py
ziveo/ckan
f4cfe5e28789df58b2bf7e73e5989ffda00e5c5c
[ "Apache-2.0" ]
3,801
2015-01-02T11:05:36.000Z
2022-03-31T19:24:37.000Z
ckan/tests/model/__init__.py
ziveo/ckan
f4cfe5e28789df58b2bf7e73e5989ffda00e5c5c
[ "Apache-2.0" ]
1,689
2015-01-02T19:46:43.000Z
2022-03-28T14:59:43.000Z
# encoding: utf-8 """**All model methods should have tests**. .. todo:: Write the tests for one ``ckan.model`` module, figuring out the best way to write model tests. Then fill in this guidelines section, using the first set of model tests as an example. """
22.666667
78
0.691176
797e077660237959328df01cc99f36619109befd
72,845
py
Python
python/ccxt/cryptocom.py
takesi0627/ccxt
086c4af9afbe1a23e70a254b656e06906993108c
[ "MIT" ]
1
2022-01-26T04:35:56.000Z
2022-01-26T04:35:56.000Z
python/ccxt/cryptocom.py
takesi0627/ccxt
086c4af9afbe1a23e70a254b656e06906993108c
[ "MIT" ]
null
null
null
python/ccxt/cryptocom.py
takesi0627/ccxt
086c4af9afbe1a23e70a254b656e06906993108c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationError from cc...
41.864943
254
0.479264
797e079072fe56549fb37c5950a3a0eb041da46b
805
py
Python
httpbin/manage.py
baby5/Django-httpbin
cc0f8b5069958b2da4bb7ef4001f0f315a346ddd
[ "MIT" ]
null
null
null
httpbin/manage.py
baby5/Django-httpbin
cc0f8b5069958b2da4bb7ef4001f0f315a346ddd
[ "MIT" ]
null
null
null
httpbin/manage.py
baby5/Django-httpbin
cc0f8b5069958b2da4bb7ef4001f0f315a346ddd
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "httpbin.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
35
77
0.642236
797e079b6f0686eba75c9619de212a44c2cc09fb
148
py
Python
src/qecsim/error.py
dua-arpit/qecsim
70ded606a653fd96d517e07fbba15d9b755df752
[ "BSD-3-Clause" ]
35
2021-02-08T08:32:54.000Z
2022-03-22T05:35:06.000Z
src/qecsim/error.py
dua-arpit/qecsim
70ded606a653fd96d517e07fbba15d9b755df752
[ "BSD-3-Clause" ]
2
2021-08-05T06:10:35.000Z
2021-08-20T12:44:10.000Z
src/qecsim/error.py
dua-arpit/qecsim
70ded606a653fd96d517e07fbba15d9b755df752
[ "BSD-3-Clause" ]
7
2021-02-11T17:32:47.000Z
2021-11-30T12:34:41.000Z
""" This module contains error implementations. """ class QecsimError(Exception): """Indicates a qecsim internal (core or extension) error"""
18.5
63
0.722973
797e080fbce5dd9f0473240adf0417fb2ef18ad7
4,438
py
Python
hotpot_evaluate_gleu.py
KunyuYe/HOTPOTQA
f4a4b6305b96cd7bb4171a8f9ce3ef33599d00af
[ "Apache-2.0" ]
1
2019-03-10T08:06:17.000Z
2019-03-10T08:06:17.000Z
hotpot_evaluate_gleu.py
KunyuYe/HOTPOTQA
f4a4b6305b96cd7bb4171a8f9ce3ef33599d00af
[ "Apache-2.0" ]
null
null
null
hotpot_evaluate_gleu.py
KunyuYe/HOTPOTQA
f4a4b6305b96cd7bb4171a8f9ce3ef33599d00af
[ "Apache-2.0" ]
null
null
null
import sys import ujson as json import re import string from collections import Counter import pickle from nltk.translate.gleu_score import sentence_gleu def normalize_answer(s): def remove_articles(text): return re.sub(r'\b(a|an|the)\b', ' ', text) def white_space_fix(text): return ' '.join(...
32.15942
113
0.616719
797e08103f7733607f17fce0f6cb194ca7c62147
5,368
py
Python
src/quiet_syntax_highlighting.py
AnastasijaKravtsova/Quiet-Text
cfe3c61345f711f88443665f3dbb1eecbfd5a4d3
[ "MIT" ]
null
null
null
src/quiet_syntax_highlighting.py
AnastasijaKravtsova/Quiet-Text
cfe3c61345f711f88443665f3dbb1eecbfd5a4d3
[ "MIT" ]
null
null
null
src/quiet_syntax_highlighting.py
AnastasijaKravtsova/Quiet-Text
cfe3c61345f711f88443665f3dbb1eecbfd5a4d3
[ "MIT" ]
null
null
null
import tkinter as tk import math import tkinter.font as tk_font from pygments import lex from pygments.lexers import PythonLexer from quiet_zutilityfuncs import load_settings_data, load_default_syntax class PythonSyntaxHighlight(): def __init__(self, parent, text_widget, initial_content): self.settings = ...
38.070922
118
0.608234
797e089319fbba8d17bc6497e36566569b7efe6c
708
py
Python
src/important_functions.py
PORCHIX/tiktok_water_bot
1872c5e528f5b8931f7892f0e1baa78d7ea439f9
[ "MIT" ]
4
2021-06-04T10:26:21.000Z
2021-12-19T21:26:48.000Z
src/important_functions.py
PORCHIX/tiktok_water_bot
1872c5e528f5b8931f7892f0e1baa78d7ea439f9
[ "MIT" ]
null
null
null
src/important_functions.py
PORCHIX/tiktok_water_bot
1872c5e528f5b8931f7892f0e1baa78d7ea439f9
[ "MIT" ]
15
2020-11-06T10:48:16.000Z
2022-03-10T05:32:34.000Z
import json from main import users_db, bot from config import ADMIN_ID from message_strings import msg_dict async def save_user_actions(): statistics = users_db.get('STATISTICS') if statistics is None: statistic_dict = {'downloads': 0} users_db.set('STATISTICS', json.dumps(statistic_dict)) ...
28.32
70
0.730226
797e0986d257482332f46808268022f57a9d533a
2,397
py
Python
floodsystem/station.py
HaozheZhu/IAComputing-LabGroup122
25915a7ef31869609a09919ecc55dc406ff36549
[ "MIT" ]
null
null
null
floodsystem/station.py
HaozheZhu/IAComputing-LabGroup122
25915a7ef31869609a09919ecc55dc406ff36549
[ "MIT" ]
null
null
null
floodsystem/station.py
HaozheZhu/IAComputing-LabGroup122
25915a7ef31869609a09919ecc55dc406ff36549
[ "MIT" ]
1
2022-02-07T17:07:06.000Z
2022-02-07T17:07:06.000Z
# Copyright (C) 2018 Garth N. Wells # # SPDX-License-Identifier: MIT """This module provides a model for a monitoring station, and tools for manipulating/modifying station data """ class MonitoringStation: """This class represents a river level monitoring station""" def __init__(self, station_id, measure_id...
36.876923
160
0.626617
797e0a240e50939525deab14c92ffe3f02faeba1
9,212
py
Python
sdk/python/pulumi_azure_native/softwareplan/hybrid_use_benefit.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/softwareplan/hybrid_use_benefit.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/softwareplan/hybrid_use_benefit.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
40.052174
440
0.636127
797e0a93b061466bdbdb0bf9f191330a92c4d6df
3,391
py
Python
app/api/cms/stat.py
zcxyun/snack-api-lin
7b728c583f5467fcfffaf30ccf75c3e5ffefb7e5
[ "MIT" ]
1
2020-02-03T18:39:33.000Z
2020-02-03T18:39:33.000Z
app/api/cms/stat.py
zcxyun/snack-api-lin
7b728c583f5467fcfffaf30ccf75c3e5ffefb7e5
[ "MIT" ]
null
null
null
app/api/cms/stat.py
zcxyun/snack-api-lin
7b728c583f5467fcfffaf30ccf75c3e5ffefb7e5
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from flask import jsonify from lin import login_required, route_meta, group_required from lin.exception import Success from lin.redprint import Redprint from app.models.stat_all_daily import StatAllDaily from app.models.stat_member_daily import StatMemberDaily from app.models....
31.691589
98
0.749631
797e0ae18b8ec3307dc2618740672ba92def33a8
1,671
py
Python
Chapter07/01-chapter-content/thresholding_otsu.py
yaojh01/Mastering-OpenCV-4-with-Python
e8f83e314b8ed638edb6515967cfb24361b787af
[ "MIT" ]
2
2021-06-29T22:00:47.000Z
2021-06-30T02:46:19.000Z
Chapter07/01-chapter-content/thresholding_otsu.py
yaojh01/Mastering-OpenCV-4-with-Python
e8f83e314b8ed638edb6515967cfb24361b787af
[ "MIT" ]
null
null
null
Chapter07/01-chapter-content/thresholding_otsu.py
yaojh01/Mastering-OpenCV-4-with-Python
e8f83e314b8ed638edb6515967cfb24361b787af
[ "MIT" ]
1
2019-10-03T20:34:43.000Z
2019-10-03T20:34:43.000Z
""" Otsu's binarization algorithm """ # Import required packages: import cv2 from matplotlib import pyplot as plt def show_img_with_matplotlib(color_img, title, pos): """Shows an image using matplotlib capabilities""" # Convert BGR image to RGB img_RGB = color_img[:, :, ::-1] ax = plt.subplot(2, 2,...
29.315789
89
0.712747
797e0bcd3c04617ce86d4caa1491bb1bc072c805
44,603
py
Python
Lib/site-packages/tensorflow_probability/python/internal/backend/jax/gen/linear_operator_circulant.py
caiyongji/tf2.3.1-py3.7.9-full-built
ace4efcbf05b2b494388739718a18c13eab83c71
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/site-packages/tensorflow_probability/python/internal/backend/jax/gen/linear_operator_circulant.py
caiyongji/tf2.3.1-py3.7.9-full-built
ace4efcbf05b2b494388739718a18c13eab83c71
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/site-packages/tensorflow_probability/python/internal/backend/jax/gen/linear_operator_circulant.py
caiyongji/tf2.3.1-py3.7.9-full-built
ace4efcbf05b2b494388739718a18c13eab83c71
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
# Copyright 2020 The TensorFlow Probability Authors. All Rights Reserved. # @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ # THIS FILE IS AUTO-GENERATED BY `gen_linear_operators.py`. # DO NOT MODIFY DIRECTLY. # @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
39.125439
106
0.672488
797e0bdbca1e3f512b4c3b9638d4dfc5e3d2992f
2,524
py
Python
src/utils.py
nimily/roful
0b1dfca55cb64b086848a9e5b22c950cf539677d
[ "MIT" ]
null
null
null
src/utils.py
nimily/roful
0b1dfca55cb64b086848a9e5b22c950cf539677d
[ "MIT" ]
null
null
null
src/utils.py
nimily/roful
0b1dfca55cb64b086848a9e5b22c950cf539677d
[ "MIT" ]
null
null
null
import numpy as np import numpy.linalg as npl import numpy.random as npr def sqrt_sym(x): u, d, v = npl.svd(x) return u @ np.diag(d ** 0.5) @ v class DataSummary: xy: np.ndarray xx: np.ndarray _mean: np.ndarray _basis: np.ndarray _scale: np.ndarray _dirty: bool def __init__(se...
21.033333
63
0.512678
797e0bef8d13a53cedb7c42b64c87825b172fb9a
1,671
py
Python
where/estimation/parameters/slr_time_bias.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
16
2018-08-31T10:31:11.000Z
2022-03-15T16:07:24.000Z
where/estimation/parameters/slr_time_bias.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
5
2018-07-13T14:04:24.000Z
2021-06-17T02:14:44.000Z
where/estimation/parameters/slr_time_bias.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
15
2018-06-07T05:45:24.000Z
2022-03-15T16:07:27.000Z
"""Calculate the slr station dependent time bias as a constant parameter over the arc Description: ------------ Calculate the partial derivatives of the measurement with respect to the time bias. References: ----------- """ # External library imports import numpy as np # Midgard imports from midgard.dev import ...
31.528302
94
0.713944
797e0bf7afde04d5496eaf027925669ced410bcb
415
py
Python
django_image_upload/wsgi.py
dmitry-brezgunov/django_image_upload
f907ad5921f61e68e0a743159826f094038d8abc
[ "MIT" ]
null
null
null
django_image_upload/wsgi.py
dmitry-brezgunov/django_image_upload
f907ad5921f61e68e0a743159826f094038d8abc
[ "MIT" ]
null
null
null
django_image_upload/wsgi.py
dmitry-brezgunov/django_image_upload
f907ad5921f61e68e0a743159826f094038d8abc
[ "MIT" ]
1
2020-10-14T18:12:44.000Z
2020-10-14T18:12:44.000Z
""" WSGI config for django_image_upload project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('...
24.411765
79
0.79759
797e0c3a17ac06be26aa083f5e4e5717f1cbca32
6,521
py
Python
tests/grammar/factory/record/test_recording_detail.py
orenyodfat/CWR-DataApi
f3b6ba8308c901b6ab87073c155c08e30692333c
[ "MIT" ]
37
2015-04-21T15:33:53.000Z
2022-02-07T00:02:29.000Z
tests/grammar/factory/record/test_recording_detail.py
orenyodfat/CWR-DataApi
f3b6ba8308c901b6ab87073c155c08e30692333c
[ "MIT" ]
86
2015-02-01T22:26:02.000Z
2021-07-09T08:49:36.000Z
tests/grammar/factory/record/test_recording_detail.py
orenyodfat/CWR-DataApi
f3b6ba8308c901b6ab87073c155c08e30692333c
[ "MIT" ]
27
2015-01-26T16:01:09.000Z
2021-11-08T23:53:55.000Z
# -*- coding: utf-8 -*- import unittest from pyparsing import ParseException from tests.utils.grammar import get_record_grammar """ CWR Work Detail grammar tests. The following cases are tested: """ __author__ = 'Bernardo Martínez Garrido' __license__ = 'MIT' __status__ = 'Development' class TestRecordingDetailG...
49.401515
285
0.644533
797e0c54e4ff05c766dbd8db8fd1a2cac431a683
7,224
py
Python
hohos/activities/models.py
hohosInc/hohos
6c1ad8690aad3528e8e880064c59c797cccfb97b
[ "MIT" ]
2
2018-03-23T06:51:39.000Z
2018-07-01T07:45:21.000Z
hohos/activities/models.py
hohos-iA/hohos
6c1ad8690aad3528e8e880064c59c797cccfb97b
[ "MIT" ]
11
2018-10-04T20:16:07.000Z
2022-03-11T23:19:09.000Z
hohos/activities/models.py
hohosInc/hohos
6c1ad8690aad3528e8e880064c59c797cccfb97b
[ "MIT" ]
1
2018-08-29T06:00:38.000Z
2018-08-29T06:00:38.000Z
from __future__ import unicode_literals from django.contrib.auth.models import User from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.html import escape @python_2_unicode_compatible class Activity(models.Model): LIKE = 'L' LIKE_PROFILE = 'LP' W...
43.257485
146
0.602852
797e0ce599653ce4309e3dfe5187f539047a1385
50,283
py
Python
tests/test_user_mgt.py
cchamm/firebase-admin-python
473434f9cbfe872d560b80fe674f64f4c7afb6d0
[ "Apache-2.0" ]
null
null
null
tests/test_user_mgt.py
cchamm/firebase-admin-python
473434f9cbfe872d560b80fe674f64f4c7afb6d0
[ "Apache-2.0" ]
null
null
null
tests/test_user_mgt.py
cchamm/firebase-admin-python
473434f9cbfe872d560b80fe674f64f4c7afb6d0
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
43.68636
100
0.647992
797e0d437eaa9d66f343080a107538570c859e2c
660
py
Python
laby/manage.py
ashuya/RpgMaze
70ef2b959b7b572bfd7ed449ced93b81f72ef8e3
[ "MIT" ]
null
null
null
laby/manage.py
ashuya/RpgMaze
70ef2b959b7b572bfd7ed449ced93b81f72ef8e3
[ "MIT" ]
null
null
null
laby/manage.py
ashuya/RpgMaze
70ef2b959b7b572bfd7ed449ced93b81f72ef8e3
[ "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', 'laby.settings') try: from django.core.management import execute_from_command_line except ImportE...
28.695652
73
0.677273
797e0d5f07bec8b56efadd162700bd6422e229c1
513
py
Python
greedy/beginner/reverse-string.py
Jeontaeyun/python-team-notes
ca2d843c6c21972c901176f5fda34c343d5e2650
[ "MIT" ]
null
null
null
greedy/beginner/reverse-string.py
Jeontaeyun/python-team-notes
ca2d843c6c21972c901176f5fda34c343d5e2650
[ "MIT" ]
null
null
null
greedy/beginner/reverse-string.py
Jeontaeyun/python-team-notes
ca2d843c6c21972c901176f5fda34c343d5e2650
[ "MIT" ]
null
null
null
# Revers String Problem # TIme Limit 20m, Memory Limit 128MB string = str(input()) zero_line = 0 one_line = 0 previous_number = -1 for i in string: if previous_number == -1: previous_number = int(i) if int(i) == 1: one_line += 1 else: zero_line += 1 if previou...
19
36
0.549708
797e0e87dba6499ee1c6f9bc3afcaa5f55f85842
2,019
py
Python
tests/test_utils.py
RemotePixel/remotepixel-py
bd58db7a394c84651d05c4e6f83da4cd3d4c26f3
[ "BSD-2-Clause" ]
5
2017-09-29T15:21:39.000Z
2021-02-23T02:03:18.000Z
tests/test_utils.py
RemotePixel/remotepixel-py
bd58db7a394c84651d05c4e6f83da4cd3d4c26f3
[ "BSD-2-Clause" ]
3
2017-11-03T13:24:31.000Z
2018-09-18T13:55:52.000Z
tests/test_utils.py
RemotePixel/remotepixel-py
bd58db7a394c84651d05c4e6f83da4cd3d4c26f3
[ "BSD-2-Clause" ]
4
2017-10-04T10:42:45.000Z
2019-06-21T07:49:35.000Z
"""Test remotepixel.utils .""" import os import pytest from rio_toa import toa_utils from remotepixel import utils mtl_file = os.path.join( os.path.dirname(__file__), "fixtures", "LC80140352017115LGN00_MTL.txt" ) with open(mtl_file, "r") as f: meta_data = toa_utils._parse_mtl_txt(f.read()) with open(mtl_...
30.134328
87
0.668648
797e0f0fa05b76060b6450a0cbd17bdf1c4bb2f6
56,271
py
Python
PyDSTool/Generator/Radau_ODEsystem.py
yuanz271/PyDSTool
886c143cdd192aea204285f3a1cb4968c763c646
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
PyDSTool/Generator/Radau_ODEsystem.py
yuanz271/PyDSTool
886c143cdd192aea204285f3a1cb4968c763c646
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
PyDSTool/Generator/Radau_ODEsystem.py
yuanz271/PyDSTool
886c143cdd192aea204285f3a1cb4968c763c646
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
# Radau ODE system from __future__ import division, absolute_import, print_function import imp from .allimports import * from PyDSTool.Generator import ODEsystem as ODEsystem from .baseclasses import theGenSpecHelper, genDB, _pollInputs from .mixins import CompiledMixin, full_path from PyDSTool.utils import ...
48.677336
177
0.498729
797e0f52725181ec6506a92bf26b7c1d690e66b8
3,239
py
Python
cycada/data/adda_datasets.py
Luodian/MADAN
7a2918da44f5203b72652bc4cba0e70057482114
[ "MIT" ]
150
2019-10-29T01:22:31.000Z
2022-02-16T02:09:31.000Z
cycada/data/adda_datasets.py
pikachusocute/MADAN
7a2918da44f5203b72652bc4cba0e70057482114
[ "MIT" ]
6
2020-01-05T16:56:51.000Z
2021-10-13T03:25:05.000Z
cycada/data/adda_datasets.py
pikachusocute/MADAN
7a2918da44f5203b72652bc4cba0e70057482114
[ "MIT" ]
23
2019-11-04T15:46:29.000Z
2022-01-16T09:10:01.000Z
import os.path import torch.utils.data from .data_loader import get_transform_dataset from ..transforms import augment_collate class AddaDataLoader(object): def __init__(self, net_transform, dataset, rootdir, downscale, crop_size=None, resize=None, batch_size=1, shuffle=False, num_workers=2, half_cro...
39.5
141
0.688175
797e10bbf0d26affd36a853de8c105944d6e5950
673
py
Python
setup.py
PhilippRados/BirdJumpExtreme
c7675118fe769d1a17a76985fc25d61a4ba5f67a
[ "MIT" ]
3
2020-11-19T04:05:11.000Z
2020-11-19T14:17:33.000Z
setup.py
PhilippRados/BirdJumpExtreme
c7675118fe769d1a17a76985fc25d61a4ba5f67a
[ "MIT" ]
null
null
null
setup.py
PhilippRados/BirdJumpExtreme
c7675118fe769d1a17a76985fc25d61a4ba5f67a
[ "MIT" ]
null
null
null
import setuptools #with open("README.md","r") as f: # long_description = f.read() setuptools.setup( name="BirdJumpExtreme", version="0.0.1", author="Philipp Rados", author_email="phil.rados@gmail.com", description="A fun platform-jumping game for your terminal", #long_description=long_descr...
30.590909
64
0.668648
797e10d7a43dc01da274324cddfae89bb9f1cf43
1,012
py
Python
var/spack/repos/builtin/packages/libcgroup/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/libcgroup/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/libcgroup/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Libcgroup(AutotoolsPackage): """Library of control groups.""" homepage = "https://sou...
38.923077
100
0.729249
797e126f38c2e33ab71513e4fffc0645b1ddf275
16,916
py
Python
modules/unit_tests/s3/s3sync.py
arnavsharma93/eden
2e559a277c4144ba4f4cdcd108460d025923671d
[ "MIT" ]
1
2016-12-22T09:31:22.000Z
2016-12-22T09:31:22.000Z
modules/unit_tests/s3/s3sync.py
gurlinthewurld/eden
726aea55c95ee33f48dace63f76496e22e529157
[ "MIT" ]
null
null
null
modules/unit_tests/s3/s3sync.py
gurlinthewurld/eden
726aea55c95ee33f48dace63f76496e22e529157
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Sync Unit Tests # # To run this script use: # python web2py.py -S eden -M -R applications/eden/modules/unit_tests/s3/s3sync.py # import unittest from gluon import current from gluon.dal import Query from lxml import etree try: import json # try stdlib (Python 2.6) except ImportError: ...
36.300429
100
0.605581
797e133422ab5b16e8f79fca15da5e1d53e119f8
1,731
py
Python
airflow/contrib/secrets/gcp_secrets_manager.py
khilawar4/airflow
5f3f65b82517f615f31f0c8a7f8ac0facb325235
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
3
2021-01-29T20:33:56.000Z
2021-08-06T17:35:16.000Z
airflow/contrib/secrets/gcp_secrets_manager.py
khilawar4/airflow
5f3f65b82517f615f31f0c8a7f8ac0facb325235
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
210
2021-07-17T00:25:52.000Z
2021-12-29T00:44:48.000Z
airflow/contrib/secrets/gcp_secrets_manager.py
khilawar4/airflow
5f3f65b82517f615f31f0c8a7f8ac0facb325235
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-04-14T11:15:17.000Z
2021-12-15T16:58:24.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...
36.829787
109
0.740612
797e136e28004aa5e1d0b08d37921765bdbd92b5
3,516
py
Python
topics_lda.py
annaliseko/CS181_project
6460e2dd66f9d495a707c6b1eb7dea7d9a97da75
[ "MIT" ]
null
null
null
topics_lda.py
annaliseko/CS181_project
6460e2dd66f9d495a707c6b1eb7dea7d9a97da75
[ "MIT" ]
null
null
null
topics_lda.py
annaliseko/CS181_project
6460e2dd66f9d495a707c6b1eb7dea7d9a97da75
[ "MIT" ]
null
null
null
from collections import defaultdict from pyspark import SparkContext from pyspark.mllib.linalg import Vector, Vectors from pyspark.mllib.clustering import LDA, LDAModel import re num_topics = 5 # Number of topics we are looking for num_words_per_topic = 10 # Number of words to display for each topic ma...
41.364706
134
0.663538
797e13fee4fb3ecacb761e1fb74de079385e3683
3,808
py
Python
netbox/virtualization/forms/bulk_import.py
JonathonReinhart/netbox
f0588505983b4f188c474c50ff11150a14e469c1
[ "Apache-2.0" ]
1
2022-03-11T09:38:32.000Z
2022-03-11T09:38:32.000Z
netbox/virtualization/forms/bulk_import.py
JonathonReinhart/netbox
f0588505983b4f188c474c50ff11150a14e469c1
[ "Apache-2.0" ]
null
null
null
netbox/virtualization/forms/bulk_import.py
JonathonReinhart/netbox
f0588505983b4f188c474c50ff11150a14e469c1
[ "Apache-2.0" ]
null
null
null
from dcim.choices import InterfaceModeChoices from dcim.models import DeviceRole, Platform, Site from extras.forms import CustomFieldModelCSVForm from tenancy.models import Tenant from utilities.forms import CSVChoiceField, CSVModelChoiceField, SlugField from virtualization.choices import * from virtualization.models i...
27.79562
114
0.637605
797e140f9f96b1dbd398d001d34b8fb9767c70eb
3,729
py
Python
+hdsort/+noise/var_models.py
rdiggelmann/HDSort
b05d12dd5a822223020898652e22fd5088f1683e
[ "MIT" ]
null
null
null
+hdsort/+noise/var_models.py
rdiggelmann/HDSort
b05d12dd5a822223020898652e22fd5088f1683e
[ "MIT" ]
1
2021-01-29T08:17:54.000Z
2021-01-31T08:21:10.000Z
+hdsort/+noise/var_models.py
rdiggelmann/HDSort
b05d12dd5a822223020898652e22fd5088f1683e
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- ##---IMPORTS import scipy as sp from scipy import linalg as sp_la from common import TimeSeriesCovE from plot import P, mcdata from nsim.scene.noise import ArNoiseGen from database import MunkSession ##---CONSTANTS DB = MunkSession() ##---FUNCTIONS def load_cmx(): ...
29.595238
88
0.584607
797e14d175c1567b8ea0aa09179346753c9b7abb
247
py
Python
xdocker/tasks/providers/__init__.py
ZlayaZhaba/Engine
d6d56c7f670c24692d13e44bfc7c359d2912ea37
[ "Apache-2.0" ]
null
null
null
xdocker/tasks/providers/__init__.py
ZlayaZhaba/Engine
d6d56c7f670c24692d13e44bfc7c359d2912ea37
[ "Apache-2.0" ]
null
null
null
xdocker/tasks/providers/__init__.py
ZlayaZhaba/Engine
d6d56c7f670c24692d13e44bfc7c359d2912ea37
[ "Apache-2.0" ]
1
2016-09-10T17:29:04.000Z
2016-09-10T17:29:04.000Z
from .amazon import AmazonProvider from .base import registry providers = [ 'AmazonProvider' ] for pr in providers: cl = locals()[pr] registry[cl.provider_name] = cl __all__ = [ 'registry' ] + providers
15.4375
35
0.607287
797e15b4cc4399d24806ed36cf69951479f7605e
4,571
py
Python
app/retweet_graphs_v2/retweet_grapher.py
s2t2/tweet-analyzer-py
0a398fc47101a2d602d8c4116c970f1076a58f27
[ "MIT" ]
5
2020-04-02T12:03:57.000Z
2020-10-18T19:29:15.000Z
app/retweet_graphs_v2/retweet_grapher.py
s2t2/tweet-analyzer-py
0a398fc47101a2d602d8c4116c970f1076a58f27
[ "MIT" ]
22
2020-03-31T02:00:34.000Z
2021-06-30T17:59:01.000Z
app/retweet_graphs_v2/retweet_grapher.py
s2t2/tweet-analyzer-py
0a398fc47101a2d602d8c4116c970f1076a58f27
[ "MIT" ]
3
2020-04-04T16:08:08.000Z
2020-10-20T01:32:46.000Z
import os from datetime import datetime import time from memory_profiler import profile from dotenv import load_dotenv from networkx import DiGraph from conftest import compile_mock_rt_graph from app import APP_ENV, DATA_DIR, SERVER_NAME, SERVER_DASHBOARD_URL, seek_confirmation from app.decorators.number_decorators ...
36.277778
322
0.643185
797e15eef0b699bb80ccab5433a2a8f76381970e
1,493
py
Python
socket_test/clients.py
kaka8686/practise
010632e68694d9e7e0e60f8c7b8aaa8489f557c7
[ "Apache-2.0" ]
null
null
null
socket_test/clients.py
kaka8686/practise
010632e68694d9e7e0e60f8c7b8aaa8489f557c7
[ "Apache-2.0" ]
7
2019-12-26T17:33:01.000Z
2022-03-21T22:18:02.000Z
socket_test/clients.py
kaka8686/practise
010632e68694d9e7e0e60f8c7b8aaa8489f557c7
[ "Apache-2.0" ]
null
null
null
# 多任务文件下载器客户端 import socket if __name__ == '__main__': # 创建套接字 tcp_client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # 和服务端连接 server_ip = input("输入服务器IP:") tcp_client_socket.connect((server_ip, 3356)) # 发送下载文件的请求 file_name = input("请输入要下载的文件名:") # 编码 file_name_data ...
27.648148
73
0.523108
797e16603c22e6c3ebee28f92e1a42a2583a2270
13,315
py
Python
scripts/train_TD3.py
akeaveny/uwrt_arm_rl
a14195b96b2f106f9d1bd7b7ce1c8af4c679e965
[ "MIT" ]
1
2022-01-18T18:50:08.000Z
2022-01-18T18:50:08.000Z
scripts/train_TD3.py
akeaveny/uwrt-arm-rl
a14195b96b2f106f9d1bd7b7ce1c8af4c679e965
[ "MIT" ]
null
null
null
scripts/train_TD3.py
akeaveny/uwrt-arm-rl
a14195b96b2f106f9d1bd7b7ce1c8af4c679e965
[ "MIT" ]
null
null
null
import glob import os import sys ROOT_DIR = os.path.abspath('../') sys.path.append(ROOT_DIR) print("********* cwd {} *********".format(ROOT_DIR)) import argparse import gym import gym_uwrt_arm import numpy as np from gym.wrappers import FlattenObservation from gym_uwrt_arm.wrappers.discrete_to_continuous_dict_acti...
44.383333
134
0.608336
797e170af400a79afb966d26429ec313a66252aa
4,245
py
Python
examples/acoustics/vibro_acoustic3d.py
Gkdnz/SfePy
a3a39d4e087705e9e0e8884cbf63513a2ded2108
[ "BSD-3-Clause" ]
null
null
null
examples/acoustics/vibro_acoustic3d.py
Gkdnz/SfePy
a3a39d4e087705e9e0e8884cbf63513a2ded2108
[ "BSD-3-Clause" ]
null
null
null
examples/acoustics/vibro_acoustic3d.py
Gkdnz/SfePy
a3a39d4e087705e9e0e8884cbf63513a2ded2108
[ "BSD-3-Clause" ]
null
null
null
r""" Vibro-acoustic problem 3D acoustic domain with 2D perforated deforming interface. *Master problem*: defined in 3D acoustic domain (``vibro_acoustic3d.py``) *Slave subproblem*: 2D perforated interface (``vibro_acoustic3d_mid.py``) Master 3D problem - find :math:`p` (acoustic pressure) and :math:`g` (transversal...
29.479167
73
0.535453
797e1824359f8091d64ca1b61849bd990ddca5f3
4,354
py
Python
gqnlib/consistent_gqn.py
rnagumo/gqnlib
96bd8499f90c00b29817f71e6380bc622ce78479
[ "MIT" ]
1
2020-08-13T01:54:52.000Z
2020-08-13T01:54:52.000Z
gqnlib/consistent_gqn.py
rnagumo/gqnlib
96bd8499f90c00b29817f71e6380bc622ce78479
[ "MIT" ]
null
null
null
gqnlib/consistent_gqn.py
rnagumo/gqnlib
96bd8499f90c00b29817f71e6380bc622ce78479
[ "MIT" ]
1
2021-01-03T16:02:55.000Z
2021-01-03T16:02:55.000Z
"""Consistent Generative Query Network (a.k.a. JUMP). (Reference) A. Kumar et al., "Consistent Generative Query Network". http://arxiv.org/abs/1807.02033 """ from typing import Dict, Tuple, Optional from torch import Tensor from .base import BaseGQN from .renderer import DRAWRenderer from .representation import S...
33.751938
79
0.559945
797e18655e8b5977975655bf6e5006d313743b9d
922
py
Python
tests/test_result_parsing.py
standanley/fault
7418103744e3ec5b5d142e0a152f08b7feef6a1e
[ "BSD-3-Clause" ]
null
null
null
tests/test_result_parsing.py
standanley/fault
7418103744e3ec5b5d142e0a152f08b7feef6a1e
[ "BSD-3-Clause" ]
null
null
null
tests/test_result_parsing.py
standanley/fault
7418103744e3ec5b5d142e0a152f08b7feef6a1e
[ "BSD-3-Clause" ]
null
null
null
from fault.psf_parse import psf_parse from fault.nutascii_parse import nutascii_parse from math import isclose from pathlib import Path def check_spice_result(meas, expct): for t, v in expct: mint = meas(t) assert isclose(mint, v), f'Value mismatch at time {t}: {mint} vs {v}' def test_psf_parse(...
36.88
77
0.563991
797e1959c72ffe674fc7b77bd8f0361f4406d6c3
1,420
py
Python
test/functional/wallet_fallbackfee.py
paycheckcash/paycheckcash
383a1e1c42264f9c1e298867c5fbe5e795206e00
[ "MIT" ]
1
2019-05-18T19:32:50.000Z
2019-05-18T19:32:50.000Z
test/functional/wallet_fallbackfee.py
paycheckcash/paycheckcash
383a1e1c42264f9c1e298867c5fbe5e795206e00
[ "MIT" ]
null
null
null
test/functional/wallet_fallbackfee.py
paycheckcash/paycheckcash
383a1e1c42264f9c1e298867c5fbe5e795206e00
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test wallet replace-by-fee capabilities in conjunction with the fallbackfee.""" from test_framework.tes...
50.714286
178
0.733803
797e199765648e9af9f8f38c1570f42a98e5b5c1
3,011
py
Python
src/dcm/agent/tests/unit/messaging/test_alert.py
JPWKU/unix-agent
8f1278fc8c2768a8d4d54af642a881bace43652f
[ "Apache-2.0" ]
null
null
null
src/dcm/agent/tests/unit/messaging/test_alert.py
JPWKU/unix-agent
8f1278fc8c2768a8d4d54af642a881bace43652f
[ "Apache-2.0" ]
22
2015-09-15T20:52:34.000Z
2016-03-11T22:44:24.000Z
src/dcm/agent/tests/unit/messaging/test_alert.py
JPWKU/unix-agent
8f1278fc8c2768a8d4d54af642a881bace43652f
[ "Apache-2.0" ]
3
2015-09-11T20:21:33.000Z
2016-09-30T08:30:19.000Z
# # Copyright (C) 2014 Dell, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
33.455556
74
0.674195
797e19d5198adf2618188b7bbe03def17cf83066
30,602
py
Python
napari/layers/shapes/_tests/test_shapes.py
SaraLatif99/napari
b17235ee77d30e58492368a73d7c8d8189397fa4
[ "BSD-3-Clause" ]
null
null
null
napari/layers/shapes/_tests/test_shapes.py
SaraLatif99/napari
b17235ee77d30e58492368a73d7c8d8189397fa4
[ "BSD-3-Clause" ]
1
2020-06-19T21:38:50.000Z
2020-06-20T19:57:39.000Z
napari/layers/shapes/_tests/test_shapes.py
SaraLatif99/napari
b17235ee77d30e58492368a73d7c8d8189397fa4
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from xml.etree.ElementTree import Element from napari.layers import Shapes def test_empty_shapes(): shp = Shapes() assert shp.dims.ndim == 2 def test_rectangles(): """Test instantiating Shapes layer with a random 2D rectangles.""" # Test a single four corner rectangle shape = ...
31.943633
79
0.630286
797e19e45ae71cab6c9ba7ee739190e1e6e053b3
11,783
py
Python
marcottievents/lib/match.py
soccermetrics/marcotti-events
759f3a4ee130fa155fd48e216ef6197a69ee2a33
[ "MIT" ]
22
2015-12-14T20:38:32.000Z
2020-12-26T07:40:26.000Z
marcottievents/lib/match.py
soccermetrics/marcotti-events
759f3a4ee130fa155fd48e216ef6197a69ee2a33
[ "MIT" ]
null
null
null
marcottievents/lib/match.py
soccermetrics/marcotti-events
759f3a4ee130fa155fd48e216ef6197a69ee2a33
[ "MIT" ]
6
2015-12-20T05:08:57.000Z
2020-06-28T23:57:31.000Z
from numpy import mean from sqlalchemy.sql.expression import false from .base import Analytics import marcottievents.models.club as mc import marcottievents.models.common.events as mce import marcottievents.models.common.suppliers as mcs import marcottievents.models.common.enums as enums def coroutine(func): """...
41.489437
110
0.507426
797e1a1b8f0b715d8549a4e01dcf5529cc90bb6c
40
py
Python
sql_injection_test.py
Dark-Bob/mro
1bd042e3e3fabc14166420b9e87b1d3498457790
[ "MIT" ]
1
2020-03-05T11:14:31.000Z
2020-03-05T11:14:31.000Z
sql_injection_test.py
Dark-Bob/mro
1bd042e3e3fabc14166420b9e87b1d3498457790
[ "MIT" ]
2
2019-01-14T10:24:21.000Z
2019-01-16T18:18:22.000Z
sql_injection_test.py
Dark-Bob/mro
1bd042e3e3fabc14166420b9e87b1d3498457790
[ "MIT" ]
null
null
null
# reminder to add tests for this and fix
40
40
0.775
797e1a96765a8050242e05ffae76edfa0bf0fdb9
36,625
py
Python
run_project_tests.py
marxin/meson
cd12a6fc391782fc9101f71e7bef56590358f06c
[ "Apache-2.0" ]
null
null
null
run_project_tests.py
marxin/meson
cd12a6fc391782fc9101f71e7bef56590358f06c
[ "Apache-2.0" ]
null
null
null
run_project_tests.py
marxin/meson
cd12a6fc391782fc9101f71e7bef56590358f06c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2012-2016 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...
40.469613
164
0.610567
797e1a973066a20ea6b494a1ea001be037885507
9,279
py
Python
mybic/labs/migrations/0021_auto__del_field_project_markdown.py
chop-dbhi/mybic
c6c99c002dacc9c181b640e62a1943943b396561
[ "BSD-2-Clause" ]
1
2016-09-19T15:55:00.000Z
2016-09-19T15:55:00.000Z
mybic/labs/migrations/0021_auto__del_field_project_markdown.py
chop-dbhi/mybic
c6c99c002dacc9c181b640e62a1943943b396561
[ "BSD-2-Clause" ]
null
null
null
mybic/labs/migrations/0021_auto__del_field_project_markdown.py
chop-dbhi/mybic
c6c99c002dacc9c181b640e62a1943943b396561
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'Project.markdown' db.delete_column(u'labs_project', 'mar...
66.278571
119
0.527212
797e1a9e19bee983fe6fad11d923a712556191ad
2,108
py
Python
revolver/model/backbone.py
Global19/revolver
200082798d862516de6d9aa18e863a5968127a3f
[ "BSD-2-Clause" ]
151
2018-05-28T02:27:38.000Z
2022-03-10T06:50:55.000Z
revolver/model/backbone.py
Global19/revolver
200082798d862516de6d9aa18e863a5968127a3f
[ "BSD-2-Clause" ]
14
2018-08-03T03:39:13.000Z
2021-09-08T00:51:29.000Z
revolver/model/backbone.py
rickyHong/Few-Shot-segmentation-repl
74fc12afff8a8747224d9e7098fe97542f81cea0
[ "BSD-2-Clause" ]
29
2018-08-11T01:33:33.000Z
2022-01-10T08:08:01.000Z
from collections import OrderedDict import torch import torch.nn as nn from torch.utils import model_zoo from torchvision import models from .fcn import convolutionalize def vgg16(is_caffe=True): """ Load the VGG-16 net for use as a fully convolutional backbone. - cast to fully convolutional by convert...
42.16
82
0.648482
797e1a9f2ce34bfa7bd721e8d0157b4c1f4c459d
808
py
Python
Assets/main.py
davidxianggao/splunk-gcp-functions
80b4792369e45e0e241bb137c97e3b2f4501b62d
[ "MIT" ]
null
null
null
Assets/main.py
davidxianggao/splunk-gcp-functions
80b4792369e45e0e241bb137c97e3b2f4501b62d
[ "MIT" ]
null
null
null
Assets/main.py
davidxianggao/splunk-gcp-functions
80b4792369e45e0e241bb137c97e3b2f4501b62d
[ "MIT" ]
null
null
null
# Assets 1.0 # Called from PubSub Topic # Create CRON schedule to send a PubSub to call the Function to refresh the asset inventory # Use GCS function template to read from GCS into HEC import os import time def hello_pubsub(event, context): from google.cloud import asset_v1 parent_id = os.environ['...
26.933333
91
0.678218
797e1b74af3ef23096ab2edf20c9d0edbed356b4
3,096
py
Python
ambari-agent/src/test/python/ambari_agent/TestShell.py
kennyballou/ambari
8985bcf11296d540a861a8634c17d6b9b1accd5a
[ "Apache-2.0" ]
null
null
null
ambari-agent/src/test/python/ambari_agent/TestShell.py
kennyballou/ambari
8985bcf11296d540a861a8634c17d6b9b1accd5a
[ "Apache-2.0" ]
null
null
null
ambari-agent/src/test/python/ambari_agent/TestShell.py
kennyballou/ambari
8985bcf11296d540a861a8634c17d6b9b1accd5a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' 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, Ver...
38.222222
107
0.734173
797e1b779018d13d08c296fe6799fbca1c254e75
5,535
py
Python
src/datadog_api_client/v1/model/host_map_widget_definition_requests.py
DataDog/datadog-api-client-python
de2fc57dbde9acf4b8c8eef94ac29911227a62a2
[ "Apache-2.0" ]
32
2021-01-07T15:09:56.000Z
2022-01-30T05:49:23.000Z
src/datadog_api_client/v1/model/host_map_widget_definition_requests.py
DataDog/datadog-api-client-python
de2fc57dbde9acf4b8c8eef94ac29911227a62a2
[ "Apache-2.0" ]
228
2020-09-03T14:03:54.000Z
2022-03-31T20:16:12.000Z
src/datadog_api_client/v1/model/host_map_widget_definition_requests.py
DataDog/datadog-api-client-python
de2fc57dbde9acf4b8c8eef94ac29911227a62a2
[ "Apache-2.0" ]
12
2020-09-15T21:36:03.000Z
2022-03-31T17:13:17.000Z
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from datadog_api_client.v1.model_utils import ( # noqa: F401 ApiTypeError, Mo...
40.108696
108
0.595303
797e1c7371d0989fbab0b9084c9e202cfab000e9
5,148
py
Python
broker/service/api/__init__.py
bigsea-ufcg/bigsea-manager
73235298308f55ae287a595fc1f056fbcc022b12
[ "Apache-2.0" ]
3
2017-03-21T20:03:53.000Z
2018-05-03T16:27:32.000Z
broker/service/api/__init__.py
bigsea-ufcg/bigsea-manager
73235298308f55ae287a595fc1f056fbcc022b12
[ "Apache-2.0" ]
7
2017-07-17T10:34:34.000Z
2018-05-16T14:04:57.000Z
broker/service/api/__init__.py
bigsea-ufcg/bigsea-manager
73235298308f55ae287a595fc1f056fbcc022b12
[ "Apache-2.0" ]
10
2017-04-17T14:30:27.000Z
2018-09-04T14:55:11.000Z
# Copyright (c) 2017 UFGG-LSD. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
46.8
86
0.672494
797e1c8ea745b0e5e7369fd91ec98fe15b4c17a1
9,357
py
Python
test/test_failover_integration.py
vasily-novikov/kafka-python
09fbeadfb6a1ef00416e42a1d49f4d441a61c592
[ "Apache-2.0" ]
1
2020-07-28T15:45:38.000Z
2020-07-28T15:45:38.000Z
test/test_failover_integration.py
vasily-novikov/kafka-python
09fbeadfb6a1ef00416e42a1d49f4d441a61c592
[ "Apache-2.0" ]
null
null
null
test/test_failover_integration.py
vasily-novikov/kafka-python
09fbeadfb6a1ef00416e42a1d49f4d441a61c592
[ "Apache-2.0" ]
null
null
null
import logging import os import time from kafka import SimpleClient, SimpleConsumer, KeyedProducer from kafka.errors import ( FailedPayloadsError, ConnectionError, RequestTimedOutError, NotLeaderForPartitionError) from kafka.producer.base import Producer from kafka.structs import TopicPartition from test.fixt...
38.825726
117
0.60575
797e1c9b1ef16a68a349254570ce6b89e5d6e0c8
7,734
py
Python
lbrynet/lbry_file/client/EncryptedFileDownloader.py
ttkopec/lbry
03415415ed397730e6f691f527f51b429a834ed5
[ "MIT" ]
null
null
null
lbrynet/lbry_file/client/EncryptedFileDownloader.py
ttkopec/lbry
03415415ed397730e6f691f527f51b429a834ed5
[ "MIT" ]
110
2018-11-26T05:41:35.000Z
2021-08-03T15:37:20.000Z
lbrynet/lbry_file/client/EncryptedFileDownloader.py
ttkopec/lbry
03415415ed397730e6f691f527f51b429a834ed5
[ "MIT" ]
1
2018-09-20T22:15:59.000Z
2018-09-20T22:15:59.000Z
import os import logging import traceback from binascii import hexlify, unhexlify from lbrynet.core.StreamDescriptor import save_sd_info from lbrynet.cryptstream.client.CryptStreamDownloader import CryptStreamDownloader from lbrynet.core.client.StreamProgressManager import FullStreamProgressManager from lbrynet.lbry_f...
39.060606
116
0.671321
797e1d301decaf88948aa36d747857d88fc49fac
2,117
py
Python
tkinter/timer-using-after/clock-widget.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
tkinter/timer-using-after/clock-widget.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
tkinter/timer-using-after/clock-widget.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
#!/usr/bin/env python #import sys # #if sys.version_info.major == 2: # import Tkinter as tk #else: # import tkinter as try: import Tkinter as tk # Python 2.x except: import tkinter as tk # Python 3.x from datetime import datetime, timedelta # --- constants --- # empty # --- classes --- ...
24.056818
75
0.576287
797e1ddd5a958d77c6216ea34abb0130963d52fa
260
py
Python
Python/13 - Regex and Parsing/Validating Roman Numerals.py
sohammanjrekar/HackerRank
1f5010133a1ac1e765e855a086053c97d9e958be
[ "MIT" ]
null
null
null
Python/13 - Regex and Parsing/Validating Roman Numerals.py
sohammanjrekar/HackerRank
1f5010133a1ac1e765e855a086053c97d9e958be
[ "MIT" ]
null
null
null
Python/13 - Regex and Parsing/Validating Roman Numerals.py
sohammanjrekar/HackerRank
1f5010133a1ac1e765e855a086053c97d9e958be
[ "MIT" ]
null
null
null
thousand = "M{0,3}" hundred = "(C[MD]|D?C{0,3})" ten = "(X[CL]|L?X{0,3})" digit = "(I[VX]|V?I{0,3})" regex_pattern = r"%s%s%s%s$" % (thousand, hundred, ten, digit) # Do not delete 'r'. import re print(str(bool(re.match(regex_pattern, input()))))
23.636364
85
0.557692
797e1fea973f479c048ae12ce4016e6f8850c608
8,267
py
Python
code/1_GEX/07_velocity/1_scvelo.py
egarren/scSLE
0d91f460e987d4be5b453b1d4e250d478653f690
[ "MIT" ]
null
null
null
code/1_GEX/07_velocity/1_scvelo.py
egarren/scSLE
0d91f460e987d4be5b453b1d4e250d478653f690
[ "MIT" ]
null
null
null
code/1_GEX/07_velocity/1_scvelo.py
egarren/scSLE
0d91f460e987d4be5b453b1d4e250d478653f690
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import os, sys import matplotlib.pyplot as pl from matplotlib import rcParams import scanpy as sc import rpy2.robjects as robjects import anndata2ri import scvelo as scv import re import anndata as adata1 import glob import pickle from IPython.display import display scv.settings....
44.446237
151
0.744405
797e1fec17d7e17e14f820b716d8865604b0b70e
23,078
py
Python
zproject/prod_settings_template.py
Nikhil-Vats/zulip
c51b8b455201fb40ad1ea1f15dbbde4c9699fdcb
[ "Apache-2.0" ]
1
2019-01-26T17:18:30.000Z
2019-01-26T17:18:30.000Z
zproject/prod_settings_template.py
TheCelestial25/zulip
4f2c9f46bdd33271f566bbc00b853f59c51f83b4
[ "Apache-2.0" ]
null
null
null
zproject/prod_settings_template.py
TheCelestial25/zulip
4f2c9f46bdd33271f566bbc00b853f59c51f83b4
[ "Apache-2.0" ]
null
null
null
from typing import Optional ################################################################ # Zulip Server settings. # # This file controls settings that affect the whole Zulip server. # See our documentation at: # https://zulip.readthedocs.io/en/latest/production/settings.html # # For developer documentation on th...
41.96
102
0.759208
797e205ecf34ea5b06ad88aa590c35ec992d55a6
1,875
py
Python
Algorithms/PCA/plotting.py
abefrandsen/numerical_computing
90559f7c4f387885eb44ea7b1fa19bb602f496cb
[ "CC-BY-3.0" ]
null
null
null
Algorithms/PCA/plotting.py
abefrandsen/numerical_computing
90559f7c4f387885eb44ea7b1fa19bb602f496cb
[ "CC-BY-3.0" ]
null
null
null
Algorithms/PCA/plotting.py
abefrandsen/numerical_computing
90559f7c4f387885eb44ea7b1fa19bb602f496cb
[ "CC-BY-3.0" ]
null
null
null
import matplotlib matplotlib.rcParams = matplotlib.rc_params_from_file('../../matplotlibrc') import numpy as np import matplotlib.pyplot as plt from sklearn import datasets from sklearn import decomposition iris = datasets.load_iris() def iris_base(): fig = plt.figure(figsize=(10, 10)) ax = fig.add_subplot(1...
29.761905
90
0.610667
797e20a429f74b2a25eb70032c0312862a1d7e93
498
py
Python
MathStuff.py
NotRichardStandard/firstrepo
42c025d49772f273d2843b69af69f0e2a4e02a58
[ "CC0-1.0" ]
null
null
null
MathStuff.py
NotRichardStandard/firstrepo
42c025d49772f273d2843b69af69f0e2a4e02a58
[ "CC0-1.0" ]
null
null
null
MathStuff.py
NotRichardStandard/firstrepo
42c025d49772f273d2843b69af69f0e2a4e02a58
[ "CC0-1.0" ]
null
null
null
# A function that looks if a is a factor of b then returns True or False def is_factor(a, b): if b % a == 0: return True else: return False # A function that prints all positive factors of b def factors(b): for i in range(1, b+1): if b % i == 0: print(i) a = input('Enter your first number: ') b = input('E...
19.153846
72
0.646586
797e21163d6a6660a3514a65b04445bdbeef981c
2,718
py
Python
test/integration/ggrc/services/test_search.py
trevordonnelly/ggrc-core
499cf0d3cce70737b080991b12c203ec22015cea
[ "ECL-2.0", "Apache-2.0" ]
1
2018-03-30T11:28:48.000Z
2018-03-30T11:28:48.000Z
test/integration/ggrc/services/test_search.py
trevordonnelly/ggrc-core
499cf0d3cce70737b080991b12c203ec22015cea
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc/services/test_search.py
trevordonnelly/ggrc-core
499cf0d3cce70737b080991b12c203ec22015cea
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ Test /search REST API """ from ggrc.models import Control from integration.ggrc import TestCase from integration.ggrc.api_helper import Api from integration.ggrc.generator import ObjectGenerator class...
33.555556
78
0.639441
797e22d0eb7844195866459c60068f12470edf4a
2,574
py
Python
scripts/ib_status.py
webclinic017/mmr
9c385c027fcf8cf365e41726c7c5d2064f33c202
[ "Apache-2.0" ]
1
2021-09-05T23:26:14.000Z
2021-09-05T23:26:14.000Z
scripts/ib_status.py
webclinic017/mmr
9c385c027fcf8cf365e41726c7c5d2064f33c202
[ "Apache-2.0" ]
null
null
null
scripts/ib_status.py
webclinic017/mmr
9c385c027fcf8cf365e41726c7c5d2064f33c202
[ "Apache-2.0" ]
null
null
null
import sys import os import datetime as dt import pytz # in order to get __main__ to work, we follow: https://stackoverflow.com/questions/16981921/relative-imports-in-python-3 PACKAGE_PARENT = '../' SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__)))) sys.path.append(...
33
125
0.648796
797e2379b509ba0983f204f71441bd9b051f4f0b
1,181
py
Python
loss.py
edui/U-2-Net
3fef5ff26212a2bfcc91e36d30caeec758161a25
[ "Apache-2.0" ]
null
null
null
loss.py
edui/U-2-Net
3fef5ff26212a2bfcc91e36d30caeec758161a25
[ "Apache-2.0" ]
null
null
null
loss.py
edui/U-2-Net
3fef5ff26212a2bfcc91e36d30caeec758161a25
[ "Apache-2.0" ]
null
null
null
import torch """ The Sorensen–Dice coefficient (Soft Implementation) to evaluate intersection between segmentation mask and target mask. Input parameters: input_: Output mask with size [Batch Size, 2, Height, Width]. target: Target mask with size [Batch Size, 2, Height, Width]. ch: Selecte...
33.742857
108
0.652837
797e258967f9a2f1a7e6c9b205846b7d583bbd39
1,965
py
Python
mcenter_client/tests/mcenter_server_api/controllers/pipeline_profiles_controller.py
lisapm/mlpiper
74ad5ae343d364682cc2f8aaa007f2e8a1d84929
[ "Apache-2.0" ]
7
2019-04-08T02:31:55.000Z
2021-11-15T14:40:49.000Z
mcenter_client/tests/mcenter_server_api/controllers/pipeline_profiles_controller.py
lisapm/mlpiper
74ad5ae343d364682cc2f8aaa007f2e8a1d84929
[ "Apache-2.0" ]
31
2019-02-22T22:23:26.000Z
2021-08-02T17:17:06.000Z
mcenter_client/tests/mcenter_server_api/controllers/pipeline_profiles_controller.py
lisapm/mlpiper
74ad5ae343d364682cc2f8aaa007f2e8a1d84929
[ "Apache-2.0" ]
8
2019-03-15T23:46:08.000Z
2020-02-06T09:16:02.000Z
import connexion import six from mcenter_server_api.models.pipeline_profile import PipelineProfile # noqa: E501 from mcenter_server_api import util def onboarding_pipeline_profiles_get(): # noqa: E501 """Get list of all pipeline profiles # noqa: E501 :rtype: List[PipelineProfile] """ return...
26.2
110
0.731298
797e26fc490d3f951bd110a2de2cc2f1869ea890
1,128
py
Python
client.py
seatbelts/test-sockets
cf0e776bed40e97ba967eeb3d85ddffd2ee4a49e
[ "MIT" ]
1
2015-03-27T16:39:02.000Z
2015-03-27T16:39:02.000Z
client.py
seatbelts/test-sockets
cf0e776bed40e97ba967eeb3d85ddffd2ee4a49e
[ "MIT" ]
null
null
null
client.py
seatbelts/test-sockets
cf0e776bed40e97ba967eeb3d85ddffd2ee4a49e
[ "MIT" ]
null
null
null
from __future__ import print_function from collections import OrderedDict, namedtuple import urllib2 import socket import platform as pl def meminfo(): meminfo = OrderedDict() with open('/proc/meminfo') as f: for line in f: meminfo[line.split(':')[0]] = line.split(':')[1].strip() return meminfo def inet(): ...
24
67
0.651596
797e27ed1614aa84259fffb3867c02f9cd509b10
2,554
py
Python
SchemaCollaboration/management/forms.py
Swiss-Polar-Institute/schema-collaboration-arctic-century
e02b598c7b11b26815be6e9811ff355757263995
[ "MIT" ]
15
2020-07-09T01:15:59.000Z
2021-09-24T14:47:12.000Z
SchemaCollaboration/management/forms.py
Swiss-Polar-Institute/schema-collaboration-arctic-century
e02b598c7b11b26815be6e9811ff355757263995
[ "MIT" ]
21
2020-10-27T11:33:57.000Z
2022-02-27T11:03:38.000Z
SchemaCollaboration/management/forms.py
Swiss-Polar-Institute/schema-collaboration-arctic-century
e02b598c7b11b26815be6e9811ff355757263995
[ "MIT" ]
3
2020-08-12T09:33:17.000Z
2021-07-12T09:31:33.000Z
from crispy_forms.bootstrap import FormActions from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Div, Submit from django import forms from django.forms import RadioSelect from django.urls import reverse from core.models import Person, Datapackage from core.utils import cancel_button ...
34.986301
236
0.605717
797e28a694582790e05d6b9d13b4d0f2d97d98c9
2,084
py
Python
resttools/dao_implementation/live.py
mattjmuw/iam-resttools
9062656b0341c5d13999bdf812ae3b1962e1d4dc
[ "Apache-2.0" ]
null
null
null
resttools/dao_implementation/live.py
mattjmuw/iam-resttools
9062656b0341c5d13999bdf812ae3b1962e1d4dc
[ "Apache-2.0" ]
null
null
null
resttools/dao_implementation/live.py
mattjmuw/iam-resttools
9062656b0341c5d13999bdf812ae3b1962e1d4dc
[ "Apache-2.0" ]
null
null
null
""" Provides access to the http connection pools and connections for live data from a web service """ import logging import ssl import time import socket from urlparse import urlparse from urllib3 import connection_from_url import urllib3 # temporary during testing urllib3.disable_warnings() logging.captureWarnings(...
26.717949
106
0.610845
797e291aebbb08f34f6f4e056d3ffbef5bec31b2
5,405
py
Python
attacker/exp-server.py
jhseceng/se-cwp-demo
726dedfc96fd8b98d0934ce120b86e419d78c67f
[ "MIT" ]
1
2021-12-23T22:49:58.000Z
2021-12-23T22:49:58.000Z
attacker/exp-server.py
jhseceng/se-cwp-demo
726dedfc96fd8b98d0934ce120b86e419d78c67f
[ "MIT" ]
null
null
null
attacker/exp-server.py
jhseceng/se-cwp-demo
726dedfc96fd8b98d0934ce120b86e419d78c67f
[ "MIT" ]
null
null
null
import pexpect from flask import Flask from flask import request import os import time app = Flask(__name__) @app.route("/") def hello(): return "Good Day!" @app.route("/launch", methods=['POST']) def launch_sploit(): """ Accepts a JSON payload with the following structure: { "target": "n...
34.426752
101
0.574653
797e29e3a5535149a00388cff13c2e288a7af07f
11,184
py
Python
source/winKernel.py
asaranprasad/nvda
e9609694acbfb06398eb6552067a0dcd532d67af
[ "bzip2-1.0.6" ]
2
2020-08-24T17:41:45.000Z
2020-08-25T16:48:52.000Z
source/winKernel.py
asaranprasad/nvda
e9609694acbfb06398eb6552067a0dcd532d67af
[ "bzip2-1.0.6" ]
3
2017-09-29T17:14:18.000Z
2019-05-20T16:13:39.000Z
source/winKernel.py
asaranprasad/nvda
e9609694acbfb06398eb6552067a0dcd532d67af
[ "bzip2-1.0.6" ]
1
2017-09-29T08:53:52.000Z
2017-09-29T08:53:52.000Z
#winKernel.py #A part of NonVisual Desktop Access (NVDA) #Copyright (C) 2006-2007 NVDA Contributors <http://www.nvda-project.org/> #This file is covered by the GNU General Public License. #See the file COPYING for more details. import ctypes import ctypes.wintypes from ctypes import * from ctypes.wintypes imp...
33.890909
239
0.758405
797e2a71d9c103c3d1d531cc323fa89b2a13ca8c
751
py
Python
dltk/utils/logging.py
lqf96/dltk
5e8c6f8ea6675618760ad68f8cd394d584e13ba7
[ "MIT" ]
null
null
null
dltk/utils/logging.py
lqf96/dltk
5e8c6f8ea6675618760ad68f8cd394d584e13ba7
[ "MIT" ]
null
null
null
dltk/utils/logging.py
lqf96/dltk
5e8c6f8ea6675618760ad68f8cd394d584e13ba7
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import TYPE_CHECKING import logging from logging import Formatter, StreamHandler if TYPE_CHECKING: from typing import Optional from logging import Handler __all__ = ( "DEFAULT_LOG_FORMAT", "setup_log_handler" ) # Default logging format DEFAULT_LOG_FORM...
24.225806
94
0.745672
797e2a8a46f795ae998b5855df09955df9f6d8b1
2,830
py
Python
app/app.py
timhklim/tl-test
6a6c54303c5ae5a44cb9a1fbbcfca0692a8b3df7
[ "MIT" ]
null
null
null
app/app.py
timhklim/tl-test
6a6c54303c5ae5a44cb9a1fbbcfca0692a8b3df7
[ "MIT" ]
null
null
null
app/app.py
timhklim/tl-test
6a6c54303c5ae5a44cb9a1fbbcfca0692a8b3df7
[ "MIT" ]
null
null
null
#coding: utf-8 """ ANZ ECP Test Author: Tim Lim """ from flask import Flask, jsonify, g, request, make_response import os # added for strcuture request logs import datetime import time import logging from rfc3339 import rfc3339 # Extract the required environment variables # Guarantee minimum setting for this app t...
25.495495
76
0.628622
797e2aa0e9d3f486e12bdcf6e2e555410d1d284c
2,174
py
Python
bin/bin_LinearTheory/plt_pk_xi_linear.py
JohanComparat/nbody-npt-functions
a034db4e5a9b2f87dc42eeb6059c4dd280589e4a
[ "CC0-1.0" ]
4
2017-11-07T02:15:46.000Z
2022-03-03T01:35:53.000Z
bin/bin_LinearTheory/plt_pk_xi_linear.py
JohanComparat/nbody-npt-functions
a034db4e5a9b2f87dc42eeb6059c4dd280589e4a
[ "CC0-1.0" ]
null
null
null
bin/bin_LinearTheory/plt_pk_xi_linear.py
JohanComparat/nbody-npt-functions
a034db4e5a9b2f87dc42eeb6059c4dd280589e4a
[ "CC0-1.0" ]
2
2020-08-12T14:26:38.000Z
2021-09-14T06:08:58.000Z
import astropy.units as uu import astropy.cosmology as co aa = co.Planck13 from scipy.interpolate import interp1d import numpy as n import matplotlib matplotlib.rcParams['font.size']=12 import matplotlib.pyplot as p import glob import sys from os.path import join from scipy.optimize import minimize zmin = 0. zmax = 3....
27.175
165
0.665133
797e2ae5b32eef2aa600e259ebab973493ed4ca5
2,285
py
Python
broadlink2mqtt/play.py
makiolo/broadlink2mqtt
dd57cd4e2cd328e3b21f9ecfe444d79672952daa
[ "MIT" ]
null
null
null
broadlink2mqtt/play.py
makiolo/broadlink2mqtt
dd57cd4e2cd328e3b21f9ecfe444d79672952daa
[ "MIT" ]
null
null
null
broadlink2mqtt/play.py
makiolo/broadlink2mqtt
dd57cd4e2cd328e3b21f9ecfe444d79672952daa
[ "MIT" ]
null
null
null
import os import time import ConfigParser from broadlink2mqtt.record import get_broadlink_rm from broadlink2mqtt.record import execute_command here = os.path.abspath(os.path.dirname(__file__)) def put_on_humificator(device, config): # precondition: humificador esta apagado execute_command(device, config, 'hum...
40.087719
70
0.67965
797e2bb0745fc970449019baaba5a767f7169efa
12,201
py
Python
Assignment 3/part2/ocr.py
Chirag-Galani/B551-Elements-Of-Artificial-Intelligence
6e6d04bf17522768c176145e86ccc31e8ea903b4
[ "MIT" ]
null
null
null
Assignment 3/part2/ocr.py
Chirag-Galani/B551-Elements-Of-Artificial-Intelligence
6e6d04bf17522768c176145e86ccc31e8ea903b4
[ "MIT" ]
null
null
null
Assignment 3/part2/ocr.py
Chirag-Galani/B551-Elements-Of-Artificial-Intelligence
6e6d04bf17522768c176145e86ccc31e8ea903b4
[ "MIT" ]
2
2021-12-01T20:38:02.000Z
2021-12-01T22:42:38.000Z
#!/usr/bin/python # # ./ocr.py : Perform optical character recognition, usage: # ./ocr.py train-image-file.png train-text.txt test-image-file.png # # Authors: Chirag Galani, Shreejit Panicker, Khushboo Sah # (based on skeleton code by D. Crandall, Oct 2017) # #Citations =============================================...
35.99115
229
0.649701
797e2bb551d91a0c0c0844f3674225190cfc48e5
4,927
py
Python
colour/io/luts/tests/test__init__.py
rift-labs-developer/colour
15112dbe824aab0f21447e0db4a046a28a06f43a
[ "BSD-3-Clause" ]
1,380
2015-01-10T12:30:33.000Z
2022-03-30T10:19:57.000Z
colour/io/luts/tests/test__init__.py
rift-labs-developer/colour
15112dbe824aab0f21447e0db4a046a28a06f43a
[ "BSD-3-Clause" ]
638
2015-01-02T10:49:05.000Z
2022-03-29T10:16:22.000Z
colour/io/luts/tests/test__init__.py
rift-labs-developer/colour
15112dbe824aab0f21447e0db4a046a28a06f43a
[ "BSD-3-Clause" ]
250
2015-01-21T15:27:19.000Z
2022-03-30T10:23:58.000Z
# -*- coding: utf-8 -*- """ Defines the unit tests for the :mod:`colour.io.luts.__init__` module. """ import numpy as np import os import shutil import tempfile import unittest from colour.io import LUTSequence, read_LUT, write_LUT __author__ = 'Colour Developers' __copyright__ = 'Copyright (C) 2013-2021 - Colour De...
31.787097
79
0.59042
797e2c4c097c3214abf34965fbf7ebd7ac8dc774
3,434
py
Python
move_subpages.py
legoktm/pywikipedia-scripts
a7cac4a13225c30b2c58b6ab65da03ee646a0e50
[ "MIT" ]
7
2015-01-27T17:29:56.000Z
2022-02-14T17:26:37.000Z
move_subpages.py
legoktm/pywikipedia-scripts
a7cac4a13225c30b2c58b6ab65da03ee646a0e50
[ "MIT" ]
1
2015-09-10T17:39:43.000Z
2015-09-10T17:39:43.000Z
move_subpages.py
legoktm/pywikipedia-scripts
a7cac4a13225c30b2c58b6ab65da03ee646a0e50
[ "MIT" ]
5
2015-06-07T08:01:35.000Z
2020-05-20T19:38:26.000Z
#!/usr/bin/env python """ Copyright (C) 2012 Legoktm, Earwig 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, merg...
39.471264
137
0.654921
797e2d1d60e70b3d2465b9002b5d63d8bd922130
136
py
Python
Portfolio/__init__.py
zhhrozhh/Robinhood_Portfolio
b3f7ccd4555b67c4bc498c845230e06a1a35db60
[ "MIT" ]
6
2018-01-23T12:06:37.000Z
2021-04-29T10:46:49.000Z
Portfolio/__init__.py
zhhrozhh/Robinhood_Portfolio
b3f7ccd4555b67c4bc498c845230e06a1a35db60
[ "MIT" ]
null
null
null
Portfolio/__init__.py
zhhrozhh/Robinhood_Portfolio
b3f7ccd4555b67c4bc498c845230e06a1a35db60
[ "MIT" ]
2
2018-01-23T12:06:38.000Z
2018-01-28T16:51:52.000Z
from Portfolio.Portfolio import Portfolio from Portfolio.PortfolioMgr import PortfolioMgr from Portfolio.SIconverter import SIconverter
34
47
0.889706
797e2d299947769ae6e96701886243d0c07d9741
3,961
py
Python
backend/coreapp/sandbox.py
gamestabled/decomp.me
8e74bf89216cac1ee4f3475b0203057fdc88cc90
[ "MIT" ]
18
2021-07-02T07:58:24.000Z
2021-10-09T18:40:20.000Z
backend/coreapp/sandbox.py
gamestabled/decomp.me
8e74bf89216cac1ee4f3475b0203057fdc88cc90
[ "MIT" ]
102
2021-07-02T07:23:03.000Z
2021-10-17T17:15:34.000Z
backend/coreapp/sandbox.py
gamestabled/decomp.me
8e74bf89216cac1ee4f3475b0203057fdc88cc90
[ "MIT" ]
10
2021-07-02T07:58:29.000Z
2021-10-09T00:09:08.000Z
from typing import Dict, Optional, List, Union from django.conf import settings import logging import os from pathlib import Path import shlex import subprocess from tempfile import TemporaryDirectory import contextlib logger = logging.getLogger(__name__) class Sandbox(contextlib.AbstractContextManager["Sandbox"]): ...
33.008333
84
0.562484
797e2da12b7a1cd59d876c919f4f471186dcf190
8,294
py
Python
libs/datasets/combined_datasets.py
PanditPranav/covid-data-model
dde5299dca09a178e1a1163ee856b5407f6ac503
[ "MIT" ]
null
null
null
libs/datasets/combined_datasets.py
PanditPranav/covid-data-model
dde5299dca09a178e1a1163ee856b5407f6ac503
[ "MIT" ]
null
null
null
libs/datasets/combined_datasets.py
PanditPranav/covid-data-model
dde5299dca09a178e1a1163ee856b5407f6ac503
[ "MIT" ]
null
null
null
from typing import Dict, Type, List, NewType import logging import functools import pandas as pd import structlog from libs.datasets import dataset_utils from libs.datasets import dataset_base from libs.datasets import data_source from libs.datasets.sources.test_and_trace import TestAndTraceData from libs.datasets.tim...
44.117021
100
0.784061
797e2df80e74a4408cc3cafd6bf67454d42c9908
2,390
py
Python
pipasic_src/inspect/Score.py
duocang/pipasic
28baf6f56cc33ed8663d238cb5bd9c9fb4f8e142
[ "BSD-3-Clause" ]
null
null
null
pipasic_src/inspect/Score.py
duocang/pipasic
28baf6f56cc33ed8663d238cb5bd9c9fb4f8e142
[ "BSD-3-Clause" ]
null
null
null
pipasic_src/inspect/Score.py
duocang/pipasic
28baf6f56cc33ed8663d238cb5bd9c9fb4f8e142
[ "BSD-3-Clause" ]
null
null
null
#Title: Score.py #Author: Stephen Tanner, Samuel Payne, Natalie Castellana, Pavel Pevzner, Vineet Bafna #Created: 2005 # Copyright 2007,2008,2009 The Regents of the University of California # All Rights Reserved # # Permission to use, copy, modify and distribute any part of this # program for ed...
38.548387
94
0.738075
797e2e9a3d78f4a6f76bfc77a31d65b2ee6ad974
13,539
py
Python
digits/model/forms.py
cgerum/DIGITS
896b05fe91979b3fbd7e458234218515afc4baa7
[ "BSD-3-Clause" ]
null
null
null
digits/model/forms.py
cgerum/DIGITS
896b05fe91979b3fbd7e458234218515afc4baa7
[ "BSD-3-Clause" ]
null
null
null
digits/model/forms.py
cgerum/DIGITS
896b05fe91979b3fbd7e458234218515afc4baa7
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. import os import flask from flask.ext.wtf import Form import wtforms from wtforms import validators from digits.config import config_value from digits.device_query import get_device, get_nvml_info from digits import utils from digits.utils import s...
35.349869
119
0.576926