hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79c15159d943357617ee189923153acbd04c5c51
26
py
Python
lib/django/django/__init__.py
vin/gerbilcount
fdffe648c3e9ad2667a6edfe0e19d4446c522395
[ "Apache-2.0" ]
2
2016-05-08T08:57:01.000Z
2020-02-08T07:39:48.000Z
lib/django/django/__init__.py
Arachnid/google_appengine
2e950619f5027f414131fafc3cc253af4875a0fe
[ "Apache-2.0" ]
null
null
null
lib/django/django/__init__.py
Arachnid/google_appengine
2e950619f5027f414131fafc3cc253af4875a0fe
[ "Apache-2.0" ]
null
null
null
VERSION = (0, 96.1, None)
13
25
0.576923
79c17158bbb64bfcf8a6d1d6a60845fa93d1a0bb
11,741
py
Python
examples/tqt/shiftadder/retrain.py
PannenetsF/QuantizationPool
504d7cfa70ba08e9ab3c314527526c5ba5003dda
[ "BSD-3-Clause" ]
4
2021-06-04T03:10:18.000Z
2021-10-30T11:43:07.000Z
examples/tqt/shiftadder/retrain.py
PannenetsF/QuantizationPool
504d7cfa70ba08e9ab3c314527526c5ba5003dda
[ "BSD-3-Clause" ]
null
null
null
examples/tqt/shiftadder/retrain.py
PannenetsF/QuantizationPool
504d7cfa70ba08e9ab3c314527526c5ba5003dda
[ "BSD-3-Clause" ]
null
null
null
import argparse import os, time import torch import shutil import numpy as np import torch.nn as nn import torchvision.transforms as transforms import torchvision.datasets as datasets import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable import torch.backends.cudnn as cudnn im...
36.015337
79
0.526361
79c1a60d662493540c3fad3776fd113128bbb6e9
1,504
py
Python
alipay/aop/api/domain/MybankCreditLoanapplyBlockchainOpenSendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/MybankCreditLoanapplyBlockchainOpenSendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/MybankCreditLoanapplyBlockchainOpenSendModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class MybankCreditLoanapplyBlockchainOpenSendModel(object): def __init__(self): self._business_type = None self._data_object = None @property def business_type(self): r...
26.857143
77
0.621011
79c1c9cc4f8cda1986918de2f8959b3ca8ec4f49
12,158
py
Python
tests/unit/task/test_context.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
tests/unit/task/test_context.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
tests/unit/task/test_context.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
1
2015-02-07T09:44:47.000Z
2015-02-07T09:44:47.000Z
# Copyright 2014: Mirantis 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 b...
35.138728
79
0.580688
79c1d51f4760844fd33b868115c0ccb7140b5b0f
11,071
py
Python
justap_server_sdk_python/models/v1_extra_alipay_ext_user_info.py
justapnet/justap-server-sdk-python
2d3110c6447833334fa2f7e93ffa63e06913df17
[ "Apache-2.0" ]
null
null
null
justap_server_sdk_python/models/v1_extra_alipay_ext_user_info.py
justapnet/justap-server-sdk-python
2d3110c6447833334fa2f7e93ffa63e06913df17
[ "Apache-2.0" ]
null
null
null
justap_server_sdk_python/models/v1_extra_alipay_ext_user_info.py
justapnet/justap-server-sdk-python
2d3110c6447833334fa2f7e93ffa63e06913df17
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Justap API 欢迎阅读 Justap Api 文档 Justap 是为移动端应用和PC端应用打造的下一代聚合支付SAAS服务平台,通过一个 SDK 即可快速的支持各种形式的应用,并且一次接口完成多个不同支付渠道的接入。平台除了支持服务商子商户模式,同时还对商家自有商户(即自己前往微信、支付宝等机构开户)提供了完整的支持。 感谢您的支持,我们将不断探索,为您提供更优质的服务!如需技术支持可前往商户中心提交工单,支持工程师会尽快与您取得联系! # 文档说明 采用 REST 风格设计。所有接口请求地址都是可预期的以及面向资源的。使用规范的 HTTP 响应代码来表示请...
39.539286
3,404
0.650077
79c20126ae51eae0b8d9a89923a20214c7dea812
528
py
Python
test/math/test_euler.py
Devansh3712/PyAlgo
83521de25ff5dbf40f92c9ffc47a9f351c8e01e3
[ "MIT" ]
9
2021-02-01T06:12:38.000Z
2022-02-17T07:32:44.000Z
test/math/test_euler.py
Devansh3712/PyAlgo
83521de25ff5dbf40f92c9ffc47a9f351c8e01e3
[ "MIT" ]
23
2021-02-02T07:53:22.000Z
2022-03-14T06:16:37.000Z
test/math/test_euler.py
Devansh3712/PyAlgo
83521de25ff5dbf40f92c9ffc47a9f351c8e01e3
[ "MIT" ]
4
2021-02-02T06:41:14.000Z
2021-06-07T04:15:02.000Z
import unittest import pyalgo.math.euler class TestEuler(unittest.TestCase): def test_gcd(self): result = pyalgo.math.euler.gcd(16, 72) answer = 8 self.assertEqual(result, answer) def test_lcm(self): result = pyalgo.math.euler.lcm(16, 72) answer = 144 self.asse...
22.956522
46
0.632576
79c2026b4590b1617a524b7c8d0742b502a67207
1,512
py
Python
var/spack/repos/builtin/packages/r-tidyr/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/r-tidyr/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2021-01-08T22:23:53.000Z
2022-03-30T11:08:17.000Z
var/spack/repos/builtin/packages/r-tidyr/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RTidyr(RPackage): """An evolution of 'reshape2'. It's designed specifically for data tidyi...
45.818182
95
0.698413
79c22451cba4c4ba1579901643c45fb0536f6ca2
23,767
py
Python
pyslip/examples/test_image_placement.py
DoppleGangster/pySlip
cb351a55ac989e2f681f903db91328ee3ada2535
[ "MIT" ]
null
null
null
pyslip/examples/test_image_placement.py
DoppleGangster/pySlip
cb351a55ac989e2f681f903db91328ee3ada2535
[ "MIT" ]
null
null
null
pyslip/examples/test_image_placement.py
DoppleGangster/pySlip
cb351a55ac989e2f681f903db91328ee3ada2535
[ "MIT" ]
null
null
null
""" Program to test image map-relative and view-relative placement. Select which to show and experiment with placement parameters. Usage: test_image_placement.py [-h|--help] [-d] [(-t|--tiles) (GMT|OSM)] """ import os import sys import wx import pyslip import pyslip.tkinter_error as tkinter_error import pyslip.log a...
32.074224
80
0.564101
79c23a108e53afb671ab137be7789f6cb9d742f2
28
py
Python
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/Coop/CoopSyncingPopup/coop_syncing_popup.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/Coop/CoopSyncingPopup/coop_syncing_popup.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/Coop/CoopSyncingPopup/coop_syncing_popup.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class CoopSyncingPopup: pass
28
28
0.892857
79c287ff6ec1993daf8299e452c30c62f30abf84
537
py
Python
gui/maindisplay/maindisplay.py
a-bombarda/mvm-gui
e00c3fe39cf25c6fb2d2725891610da8885d1d76
[ "MIT" ]
null
null
null
gui/maindisplay/maindisplay.py
a-bombarda/mvm-gui
e00c3fe39cf25c6fb2d2725891610da8885d1d76
[ "MIT" ]
null
null
null
gui/maindisplay/maindisplay.py
a-bombarda/mvm-gui
e00c3fe39cf25c6fb2d2725891610da8885d1d76
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Main window helper """ import os from PyQt5 import QtWidgets, uic class MainDisplay(QtWidgets.QWidget): """ Main window class """ def __init__(self, *args): """ Initialize the MainDisplay container widget. Provides a passthrough to underlying widge...
19.888889
53
0.607076
79c29ae59a3db436927af79fe0225c80dda59d06
228,864
py
Python
juliet/fit.py
JonasKemmer/juliet
867084ba4b407a44c73ee533315560b5868f671f
[ "MIT" ]
null
null
null
juliet/fit.py
JonasKemmer/juliet
867084ba4b407a44c73ee533315560b5868f671f
[ "MIT" ]
null
null
null
juliet/fit.py
JonasKemmer/juliet
867084ba4b407a44c73ee533315560b5868f671f
[ "MIT" ]
null
null
null
# Import batman, for lightcurve models: import batman # Try to import catwoman: try: import catwoman have_catwoman = True except: have_catwoman = False # Import radvel, for RV models: import radvel # Import george for detrending: try: import george except: print( 'Warning: no george install...
56.691603
518
0.523136
79c2cc42caae17fb960998edf04151a5604047c7
949
py
Python
alipay/aop/api/domain/AlipayDataBillBalanceQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayDataBillBalanceQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayDataBillBalanceQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayDataBillBalanceQueryModel(object): def __init__(self): self._bill_user_id = None @property def bill_user_id(self): return self._bill_user_id @bill_user_id.sett...
23.146341
75
0.618546
79c2d0d3f3af4b471debb44de8da4fff1deb9326
3,485
py
Python
src/pywriter/test/import_export_test.py
peter88213/yWrestler
32a152e8b814983ecaef6e9861df1d6b7008568d
[ "MIT" ]
null
null
null
src/pywriter/test/import_export_test.py
peter88213/yWrestler
32a152e8b814983ecaef6e9861df1d6b7008568d
[ "MIT" ]
null
null
null
src/pywriter/test/import_export_test.py
peter88213/yWrestler
32a152e8b814983ecaef6e9861df1d6b7008568d
[ "MIT" ]
null
null
null
"""Provide an abstract test case class for yWriter import and export. Import/export standard test routines used for regression tests. For further information see https://github.com/peter88213/PyWriter Published under the MIT License (https://opensource.org/licenses/mit-license.php) """ import os from shutil i...
44.113924
121
0.688666
79c2f0d843cf756c9f77337726a719ebcf829bc0
3,693
py
Python
venv/lib/python3.8/site-packages/dateparser/data/date_translation_data/zh-Hans.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/date_translation_data/zh-Hans.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/zh-Hans.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "name": "zh-Hans", "date_order": "YMD", "january": [ "一月", "1月" ], "february": [ "二月", "2月" ], "march": [ "三月", "3月" ], "april": [ "四月", "4月" ], "may": [ "五月", "5月...
15.849785
33
0.220417
79c2fc3394e6e5c4fc695efe8193ffb5e1a6277d
719
py
Python
yanghui/278.firstBadvision.py
technologyMz/ALL_IN_ML
bb63fdd9b98adead316c7f6d8e57742bd0a469df
[ "Apache-2.0" ]
3
2021-01-04T13:08:13.000Z
2021-08-12T13:08:23.000Z
yanghui/278.firstBadvision.py
technologyMz/ALL_IN_ML
bb63fdd9b98adead316c7f6d8e57742bd0a469df
[ "Apache-2.0" ]
null
null
null
yanghui/278.firstBadvision.py
technologyMz/ALL_IN_ML
bb63fdd9b98adead316c7f6d8e57742bd0a469df
[ "Apache-2.0" ]
1
2021-01-04T13:13:14.000Z
2021-01-04T13:13:14.000Z
# The isBadVersion API is already defined for you. # @param version, an integer # @return an integer def isBadVersion(version): return True if version>=5 else False class Solution: def firstBadVersion(self, n): """ :type n: int :rtype: int """ good_index = 0 bad_ind...
27.653846
71
0.589708
79c3527853b3ca8978fe1901f0e0f3a1199bbc61
3,329
py
Python
csgm/celebA_dcgan/ops.py
zbaoye/progressive_growing_of_gans_tensorflow
7eefe325e40c7af4462d53836d0cf11511c58c41
[ "MIT" ]
213
2017-03-22T03:39:08.000Z
2022-03-07T17:59:52.000Z
celebA_dcgan/ops.py
wenxiang2333/csgm
0f77d9c749dd31ce03b104dc2d355267e3ced038
[ "MIT" ]
13
2017-03-24T07:27:10.000Z
2020-10-11T14:25:02.000Z
celebA_dcgan/ops.py
wenxiang2333/csgm
0f77d9c749dd31ce03b104dc2d355267e3ced038
[ "MIT" ]
80
2017-03-23T15:34:14.000Z
2022-03-04T13:13:33.000Z
"""Ops used in the DCGAN model File based on : https://github.com/carpedm20/DCGAN-tensorflow/blob/master/ops.py It comes with the following license: https://github.com/carpedm20/DCGAN-tensorflow/blob/master/LICENSE """ # pylint: disable = C0103, C0111, C0301, R0913, R0903 import tensorflow as tf class batch_norm(obje...
43.802632
107
0.590267
79c3721a043f6bf8790bcaa9a6815011d88a4fe3
5,478
py
Python
toontown/coghq/boardbothq/DistributedBoardOfficeElevatorExt.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2018-06-16T23:06:38.000Z
2018-06-16T23:06:38.000Z
toontown/coghq/boardbothq/DistributedBoardOfficeElevatorExt.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/coghq/boardbothq/DistributedBoardOfficeElevatorExt.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.distributed.ClockDelta import * from direct.interval.IntervalGlobal import * from toontown.building.ElevatorConstants import * from toontown.building.ElevatorUtils import * from toontown.building import DistributedElevatorExt from toontown.building import DistributedElevator from toontown.toonbase import To...
43.47619
251
0.678897
79c3b80b74a46e5085b7b07a23afaf9dd15f4472
8,316
py
Python
sunpy/util/tests/test_xml.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/util/tests/test_xml.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/util/tests/test_xml.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function from xml.parsers.expat import ExpatError from xml.dom.minidom import Document from xml.dom.minidom import parseString import pytest from sunpy.util import xml def test_xml_to_dict1(): """ should return dict of xml string """ source_xm...
26.484076
100
0.604978
79c3c83967a928d4a2261a995acf6314962eaafb
1,303
py
Python
marqeta/response_models/transaction_options.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/transaction_options.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/transaction_options.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models import datetime_object import json import re class TransactionOptions(object): def __init__(self, json_response): self.json_response = json_response def __str__(self): return json.dumps(self.json_response, default=self.json_seri...
27.145833
99
0.716807
79c3f11d5b3642ef0990b4f18e1c0ee9276ce9cf
10,584
py
Python
src/unittest/python/cli_tests.py
IVFSTEST/pybuilder
2006a2da7b1f990d2cc981bebb88870ac9c2725b
[ "Apache-2.0" ]
1
2020-04-17T01:02:10.000Z
2020-04-17T01:02:10.000Z
src/unittest/python/cli_tests.py
IVFSTEST/pybuilder
2006a2da7b1f990d2cc981bebb88870ac9c2725b
[ "Apache-2.0" ]
null
null
null
src/unittest/python/cli_tests.py
IVFSTEST/pybuilder
2006a2da7b1f990d2cc981bebb88870ac9c2725b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of PyBuilder # # Copyright 2011-2020 PyBuilder 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/l...
42.167331
117
0.66506
79c4096c20965aad8f2152ed656549a19a8bc2ca
2,746
py
Python
Tools/Scripts/webkitpy/benchmark_runner/browser_driver/linux_chrome_driver.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/benchmark_runner/browser_driver/linux_chrome_driver.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/benchmark_runner/browser_driver/linux_chrome_driver.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2016 Igalia S.L. 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, this list of conditions and the ...
48.175439
97
0.743627
79c41dc248ddb6652748d3c1bdf586b72a071fc9
16,922
py
Python
proxyclient/openstack/common/apiclient/base.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
proxyclient/openstack/common/apiclient/base.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
proxyclient/openstack/common/apiclient/base.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 Jacob Kaplan-Moss # Copyright 2011 OpenStack Foundation # Copyright 2012 Grid Dynamics # Copyright 2013 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...
32.731141
79
0.59272
79c49951890b72dce5348402f6cedae93fad4956
3,476
py
Python
dev utils/classLNC.py
brayo-pip/Spotdl
261faae2b23d00e3b0705be9120ebac91a70d2db
[ "MIT" ]
null
null
null
dev utils/classLNC.py
brayo-pip/Spotdl
261faae2b23d00e3b0705be9120ebac91a70d2db
[ "MIT" ]
null
null
null
dev utils/classLNC.py
brayo-pip/Spotdl
261faae2b23d00e3b0705be9120ebac91a70d2db
[ "MIT" ]
null
null
null
from os.path import join from os import walk from sys import argv as CLIARGS rootdir = CLIARGS[1] if "-e" in CLIARGS or "--only-errors" in CLIARGS: onlyErrors = True else: onlyErrors = False if "-f" or "--fuzz" in CLIARGS: fuzzIndex = None if "-f" in CLIARGS: fuzzIndex = CLIARGS.index("-f") ...
26.738462
84
0.42664
79c4bc7411a8ceae834135ef0832c81c48a8f427
5,528
py
Python
transforms.py
amitkumarj441/TGS_Kaggle
a4f613046cc36f3f6dbec28adb35f97a63c2a994
[ "MIT" ]
1
2019-03-20T07:10:08.000Z
2019-03-20T07:10:08.000Z
transforms.py
amitkumarj441/TGS_Kaggle
a4f613046cc36f3f6dbec28adb35f97a63c2a994
[ "MIT" ]
null
null
null
transforms.py
amitkumarj441/TGS_Kaggle
a4f613046cc36f3f6dbec28adb35f97a63c2a994
[ "MIT" ]
null
null
null
import cv2 import numpy as np from scipy.ndimage.filters import gaussian_filter from scipy.ndimage.interpolation import map_coordinates def upsample(image, image_size_target): padding0 = (image_size_target - image.shape[0]) / 2 padding1 = (image_size_target - image.shape[1]) / 2 padding_start0 = int(np.ce...
38.929577
120
0.680174
79c4c96260f712ba666e5fcd4e88f78eb0b8bfc4
4,486
py
Python
src/python/ecc/ecc_train.py
cvai-repo/eccentricity
33efe402c2521f7bc0366e5ca66d4d3205d7c515
[ "Apache-2.0" ]
9
2017-06-28T21:35:22.000Z
2019-03-09T20:34:24.000Z
src/python/ecc/ecc_train.py
sailor01/eccentricity
b8a4570635320aad4e6e48712104b56cf3f67291
[ "Apache-2.0" ]
10
2020-09-26T00:50:00.000Z
2022-03-12T00:19:58.000Z
src/python/ecc/ecc_train.py
sailor01/eccentricity
b8a4570635320aad4e6e48712104b56cf3f67291
[ "Apache-2.0" ]
8
2017-11-09T01:31:53.000Z
2020-10-06T13:25:46.000Z
#!/usr/bin/env python3 """ Train the eccentricity model """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from datetime import datetime import os.path import time import numpy as np np.random.seed(seed=1) from six.moves import xrange # pylint: disable=r...
32.507246
143
0.659608
79c4fc6381f6a6469a16d12664e4b7f0bacb6043
9,933
py
Python
StreamPy/StreamPy-UI/src/root/nested/MakeParallelNetwork2.py
AnomalyInc/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
2
2017-04-27T11:04:27.000Z
2019-02-07T21:03:32.000Z
StreamPy/StreamPy-UI/src/root/nested/MakeParallelNetwork2.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
StreamPy/StreamPy-UI/src/root/nested/MakeParallelNetwork2.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
from Stream import Stream from Stream import _no_value, _multivalue from Agent import Agent from Operators import stream_agent from MakeNetworkNew import make_network, network_data_structures from multiprocessing import Process, Queue from components_test import * def make_input_manager(input_queue, input_stream_dict...
41.911392
116
0.492802
79c53ae8ce399402fa84255fa72d10697b0332d3
33,552
py
Python
metabase_api/metabase_api.py
vitoravancini/metabase_api_python
f148fb986c3f235bac4ba6bf4ce6fe559de7707f
[ "MIT" ]
null
null
null
metabase_api/metabase_api.py
vitoravancini/metabase_api_python
f148fb986c3f235bac4ba6bf4ce6fe559de7707f
[ "MIT" ]
null
null
null
metabase_api/metabase_api.py
vitoravancini/metabase_api_python
f148fb986c3f235bac4ba6bf4ce6fe559de7707f
[ "MIT" ]
null
null
null
import requests import getpass class Metabase_API(): def __init__(self, domain, email, password=None): self.domain = domain self.email = email self.password = getpass.getpass(prompt='Please enter your password: ') if password is None else password self.session_id = None self.header = None...
47.524079
120
0.629381
79c544b034c0183bd0fdbb1a48c7204643d97624
1,205
py
Python
.travis/complementary/basic_example_syntax.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
.travis/complementary/basic_example_syntax.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
.travis/complementary/basic_example_syntax.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
""" This is a basic example which checks syntax. """ from PyFunceble import ipv4_syntax_check as PyFuncebleIPv4Syntax from PyFunceble import is_ipv4_range, is_subdomain from PyFunceble import syntax_check as PyFuncebleDomainSyntax from PyFunceble import url_syntax_check as PyFuncebleURLSyntax print("Start of basic ex...
41.551724
76
0.762656
79c57b3086ff70954c985ce1f7aad6cb7cff8b3b
5,157
py
Python
data_scripts/For_UMLS/umls_mrconso_with_CUI_and_STY.py
KRR-Oxford/DeepOnto
9262e372e2e404c907fe47e4964c75c492a278d9
[ "Apache-2.0" ]
6
2021-12-19T18:00:34.000Z
2022-03-28T22:53:44.000Z
data_scripts/For_UMLS/umls_mrconso_with_CUI_and_STY.py
KRR-Oxford/Onto-PLM
e2e0bb8a5b6d2aa320222b4f829eb741c67c6774
[ "Apache-2.0" ]
null
null
null
data_scripts/For_UMLS/umls_mrconso_with_CUI_and_STY.py
KRR-Oxford/Onto-PLM
e2e0bb8a5b6d2aa320222b4f829eb741c67c6774
[ "Apache-2.0" ]
null
null
null
# get mappings based on MRCONSO in UMLS with CUI and STY from tqdm import tqdm from collections import defaultdict, Counter from owlready2 import * MRCONSO_FILE = '/mnt/datashare/UMLS/MRCONSO.RRF' MRSTY_FILE = '/mnt/datashare/UMLS/MRSTY.RRF' SNOMEDCT_onto_file = '/mnt/datashare/UMLS-processed/ontos/snomed.owl' # the...
42.270492
155
0.699825
79c58a6d14b30562a1d53ab943e288e8de55c424
7,217
py
Python
devito/finite_differences/tools.py
cc-a/devito
24ede9131473f69c1e44ba3b852f8654d3fd953e
[ "MIT" ]
null
null
null
devito/finite_differences/tools.py
cc-a/devito
24ede9131473f69c1e44ba3b852f8654d3fd953e
[ "MIT" ]
null
null
null
devito/finite_differences/tools.py
cc-a/devito
24ede9131473f69c1e44ba3b852f8654d3fd953e
[ "MIT" ]
1
2020-01-13T01:17:24.000Z
2020-01-13T01:17:24.000Z
from functools import wraps, partial from itertools import product import numpy as np from sympy import S from devito.tools import Tag, as_tuple from devito.finite_differences import Differentiable class Transpose(Tag): """ Utility class to change the sign of a derivative. This is only needed for odd or...
34.366667
88
0.57226
79c5b2b680e81ba1a4c285341c8a66d6d101492d
10,316
py
Python
common/markdown_helper.py
daniel-fudge/DRL-Portfolio-Optimization
bcefaeb3e85b94cfd2d576fc21f9762c14da46e8
[ "MIT" ]
3
2021-04-23T07:51:44.000Z
2022-02-28T16:52:36.000Z
common/markdown_helper.py
daniel-fudge/DRL-Portfolio-Optimization
bcefaeb3e85b94cfd2d576fc21f9762c14da46e8
[ "MIT" ]
2
2019-09-29T16:16:52.000Z
2019-09-29T17:47:37.000Z
common/markdown_helper.py
daniel-fudge/DRL-Portfolio-Optimization
bcefaeb3e85b94cfd2d576fc21f9762c14da46e8
[ "MIT" ]
4
2020-11-04T04:24:03.000Z
2022-03-20T03:58:56.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" ...
45.646018
122
0.557387
79c5b8c0fb98bc2cb14338a4aa23f74e2f9de1ef
3,218
py
Python
experiments/ashvin/icml2020/murtaza/pusher/demo_state.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/murtaza/pusher/demo_state.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/murtaza/pusher/demo_state.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in from rlkit.launchers.launcher_util import run_experiment import rlkit.misc.hyperparameter as hyp from rlkit.launchers.experiments.murtaza.rfeatures_rl import state_td3bc_experiment from rlkit.launchers.arglauncher import run_variants if __name__ ...
32.505051
93
0.616221
79c5bfe06e3f66af3823cd61c68a4d9e387b4db4
873
py
Python
tests/chemistry/test_smiles2mol.py
fireddd/pyjanitor
e76db2c619527e9f0b63d9aefcde11e3225937b8
[ "MIT" ]
1
2021-03-25T22:49:10.000Z
2021-03-25T22:49:10.000Z
tests/chemistry/test_smiles2mol.py
bcottman/pyjanitor
1f2e45694ca7ab8be982d723ff078ca0a20bee3a
[ "MIT" ]
null
null
null
tests/chemistry/test_smiles2mol.py
bcottman/pyjanitor
1f2e45694ca7ab8be982d723ff078ca0a20bee3a
[ "MIT" ]
null
null
null
import importlib import pytest from helpers import running_on_ci # Skip all tests if rdkit not installed pytestmark = pytest.mark.skipif( (importlib.util.find_spec("rdkit") is None) & ~running_on_ci(), reason="rdkit tests only required for CI", ) @pytest.mark.parametrize("progressbar", [None, "terminal", "...
29.1
71
0.718213
79c60a20d64ec070326c949a7df27a954beb1741
2,363
py
Python
ws_auth/auth.py
newvicx/ws_auth
4632390cab94ec7d33ce45466a9f94c1d1c768d0
[ "MIT" ]
null
null
null
ws_auth/auth.py
newvicx/ws_auth
4632390cab94ec7d33ce45466a9f94c1d1c768d0
[ "MIT" ]
null
null
null
ws_auth/auth.py
newvicx/ws_auth
4632390cab94ec7d33ce45466a9f94c1d1c768d0
[ "MIT" ]
null
null
null
""" A near carbon copy of httpx.Auth adapted to work in the framework of websockets.legacy.WebsocketClientProtocol HTTPX Auth Source (Credit encode) https://github.com/encode/httpx/blob/master/httpx/_auth.py """ from typing import AsyncGenerator, Generator from .types import Request, Response class Auth: ...
37.507937
92
0.648752
79c60a2952a3e056d912aa40b6394eceb1117ca1
261
py
Python
apps/ingest/migrations/0008_auto_20210309_1840.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
18
2017-06-12T09:58:02.000Z
2021-10-01T11:14:34.000Z
apps/ingest/migrations/0008_auto_20210309_1840.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
276
2019-04-26T20:13:01.000Z
2022-03-31T10:26:28.000Z
apps/ingest/migrations/0008_auto_20210309_1840.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
7
2018-03-13T23:44:26.000Z
2021-09-15T17:54:55.000Z
# Generated by Django 2.2.10 on 2021-03-09 18:40 import apps.ingest.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ingest', '0007_merge_20210208_2009'), ] operations = [ ]
16.3125
48
0.67433
79c6515554fe9c8724ecb75a0635fc2c92fbe5b4
2,678
py
Python
flexget/plugins/metainfo/subtitles_check.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/plugins/metainfo/subtitles_check.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/metainfo/subtitles_check.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import os import logging import tempfile from flexget import plugin from flexget.event import event log = logging.getLogger('check_subtitles') class MetainfoSubs(object): ...
39.970149
116
0.634802
79c67a4b3f8e7be585046105ca5031d364245f6e
58,410
py
Python
toontown/toon/ToonHead.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2018-06-16T23:06:38.000Z
2018-06-16T23:06:38.000Z
toontown/toon/ToonHead.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/toon/ToonHead.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.actor import Actor from direct.task import Task from toontown.toonbase import ToontownGlobals import string import random from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from direct.fsm.ClassicFSM import ClassicFSM from direct.fsm.State import State from direct.directnotify im...
40.006849
428
0.553844
79c67c300864d2979c29bb9401390b3059d100e3
1,097
py
Python
openpype/hosts/houdini/plugins/publish/validate_bypass.py
yosuperdope/OpenPype
0c90df97ddb8cda291a4f66d35da58b3deb94a71
[ "MIT" ]
44
2019-03-19T04:56:35.000Z
2021-04-23T12:05:08.000Z
openpype/hosts/houdini/plugins/publish/validate_bypass.py
jrsndl/pype
f9d80ef2c0663921291c5f47d24bea51fc43bac7
[ "MIT" ]
655
2020-03-17T15:10:21.000Z
2021-04-23T18:22:52.000Z
openpype/hosts/houdini/plugins/publish/validate_bypass.py
jrsndl/pype
f9d80ef2c0663921291c5f47d24bea51fc43bac7
[ "MIT" ]
21
2019-03-19T04:56:38.000Z
2021-04-23T09:10:59.000Z
import pyblish.api import openpype.api class ValidateBypassed(pyblish.api.InstancePlugin): """Validate all primitives build hierarchy from attribute when enabled. The name of the attribute must exist on the prims and have the same name as Build Hierarchy from Attribute's `Path Attribute` value on the Ale...
27.425
77
0.618049
79c69010c86b449e7ad28a5504be1a0d102befd7
618
py
Python
client/verta/verta/_swagger/_public/modeldb/model/ModeldbAddProjectTagsResponse.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
835
2017-02-08T20:14:24.000Z
2020-03-12T17:37:49.000Z
client/verta/verta/_swagger/_public/modeldb/model/ModeldbAddProjectTagsResponse.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
client/verta/verta/_swagger/_public/modeldb/model/ModeldbAddProjectTagsResponse.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
170
2017-02-13T14:49:22.000Z
2020-02-19T17:59:12.000Z
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType class ModeldbAddProjectTagsResponse(BaseType): def __init__(self, project=None): required = { "project": False, } self.project = project for k, v in required.items(): if self[k] is None and v: ...
24.72
62
0.68123
79c6a1deebcd9d7f444082b3c548fd2c1c54402f
2,308
py
Python
autotools/modelparser/excelpubliccompparser.py
LMiceOrg/Modelingtools
f372336d7c356dcf754db755f62165ba6961727a
[ "MIT" ]
1
2016-01-08T10:54:02.000Z
2016-01-08T10:54:02.000Z
autotools/modelparser/excelpubliccompparser.py
LMiceOrg/Modelingtools
f372336d7c356dcf754db755f62165ba6961727a
[ "MIT" ]
null
null
null
autotools/modelparser/excelpubliccompparser.py
LMiceOrg/Modelingtools
f372336d7c356dcf754db755f62165ba6961727a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Excel PublicComp表单解析器基类, 由公共数据类型定义文件生成复合结构类型 ExcelPublicCompParser Sheet struct: (复合结构数据类型名称 ns 数据类型描述 数据项名称 ns1 数据项中文名称 数据项数据类型 粒度 单位 默认值 最小值 最大值 数据项描述) """ import excelsheetparser class ExcelPublicCompParser(excelsheetparser.ExcelSheet...
40.491228
137
0.561958
79c6b39d55da07e8f2e598369d67a26f464e6a4a
38,598
py
Python
osim/env/osim.py
cversteeg/osim-rl
0702c2b8d99e40e4a27a4b5ce8891fc8f1788944
[ "MIT" ]
null
null
null
osim/env/osim.py
cversteeg/osim-rl
0702c2b8d99e40e4a27a4b5ce8891fc8f1788944
[ "MIT" ]
null
null
null
osim/env/osim.py
cversteeg/osim-rl
0702c2b8d99e40e4a27a4b5ce8891fc8f1788944
[ "MIT" ]
1
2020-07-03T03:56:52.000Z
2020-07-03T03:56:52.000Z
import math import numpy as np import os from .utils.mygym import convert_to_gym import gym import opensim import random import akro ## OpenSim interface # The amin purpose of this class is to provide wrap all # the necessery elements of OpenSim in one place # The actual RL environment then only needs to: # - open a ...
43.078125
190
0.595342
79c6cdf4920b1814d757eba60056963df6bcd656
1,945
py
Python
services/search/search.py
JohannesPertl/vreddit-download-bot
c5a092a76df7cb1447b887632ba4ff234d7099f8
[ "MIT" ]
300
2019-05-26T09:58:32.000Z
2020-10-15T16:43:14.000Z
services/search/search.py
JohannesPertl/vreddit-downloader
c5a092a76df7cb1447b887632ba4ff234d7099f8
[ "MIT" ]
14
2019-07-13T17:35:18.000Z
2020-10-15T04:18:42.000Z
services/search/search.py
JohannesPertl/vreddit-downloader
c5a092a76df7cb1447b887632ba4ff234d7099f8
[ "MIT" ]
41
2019-06-01T08:41:58.000Z
2020-10-05T22:35:56.000Z
#!/usr/bin/env python3 import json import logging import os import sys import redis import shared.util as util from shared.exceptions import AlreadyProcessed, CurrentlyProcessing def main(): for message in reddit.inbox.stream(): search(message) def search(message): bot_mention = util.contains_user...
27.394366
143
0.662211
79c72554315d540fa771e2b943a78e3027482cb9
8,662
py
Python
models/VariationalEncoderDecoder.py
gamerDecathlete/NormalizingFlowsNMT
5bff15058cad26c52002c026daa906b5aa8b894b
[ "MIT" ]
null
null
null
models/VariationalEncoderDecoder.py
gamerDecathlete/NormalizingFlowsNMT
5bff15058cad26c52002c026daa906b5aa8b894b
[ "MIT" ]
null
null
null
models/VariationalEncoderDecoder.py
gamerDecathlete/NormalizingFlowsNMT
5bff15058cad26c52002c026daa906b5aa8b894b
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from models.NormalizingFlowsEncoderDecoder import NormalizingFlowsEncoderDecoder from models.layers.GaussianLayer import GaussLayer import pyro from pyro.distributions import Normal, Categorical, Bernoulli from pyro.nn import AutoRegressiveNN from pyro import poutine class Variation...
50.069364
139
0.643616
79c736ea4423ad2b5e5bfa5ab4e5ededa4253ce1
1,158
py
Python
django_extensions/management/commands/update_permissions.py
KolibriDev/django-extensions
60010e29dd7b7778fff4eb01acdd80a40e925a42
[ "MIT" ]
285
2019-12-23T09:50:21.000Z
2021-12-08T09:08:49.000Z
django_extensions/management/commands/update_permissions.py
KolibriDev/django-extensions
60010e29dd7b7778fff4eb01acdd80a40e925a42
[ "MIT" ]
null
null
null
django_extensions/management/commands/update_permissions.py
KolibriDev/django-extensions
60010e29dd7b7778fff4eb01acdd80a40e925a42
[ "MIT" ]
9
2019-12-23T12:59:25.000Z
2022-03-15T05:12:11.000Z
from django.core.management.base import BaseCommand from django.contrib.auth.management import create_permissions as _create_permissions try: from django.apps import apps as django_apps get_models = lambda: None get_app = django_apps.get_app_config get_all_apps = django_apps.get_app_configs def cr...
29.692308
89
0.665803
79c737f12954e175718f22f9aebc25ac85f9ba00
3,998
py
Python
examples/mpc_cifar/launcher.py
knarflin/CrypTen
6a06dc8cd52200f40a9fc520be0066bd0dea6b14
[ "MIT" ]
1,074
2019-10-09T20:30:48.000Z
2022-03-31T04:06:55.000Z
examples/mpc_cifar/launcher.py
knarflin/CrypTen
6a06dc8cd52200f40a9fc520be0066bd0dea6b14
[ "MIT" ]
335
2019-10-10T22:25:18.000Z
2022-03-30T20:52:03.000Z
examples/mpc_cifar/launcher.py
knarflin/CrypTen
6a06dc8cd52200f40a9fc520be0066bd0dea6b14
[ "MIT" ]
196
2019-10-10T19:28:57.000Z
2022-03-31T01:32:04.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ To run mpc_cifar example in multiprocess mode: $ python3 examples/mpc_cifar/launcher.py \ --evaluate \ --...
23.94012
88
0.650575
79c73975c31b8eff54a36b547721f1863a5d8f3e
3,222
py
Python
linked_list.py
kabilasudhannc/DataStructures_in_Python
37ab8164d2e5f54671beba7f5888ecc92718a565
[ "MIT" ]
1
2021-05-16T17:34:23.000Z
2021-05-16T17:34:23.000Z
linked_list.py
kabilasudhannc/DataStructures_in_Python
37ab8164d2e5f54671beba7f5888ecc92718a565
[ "MIT" ]
null
null
null
linked_list.py
kabilasudhannc/DataStructures_in_Python
37ab8164d2e5f54671beba7f5888ecc92718a565
[ "MIT" ]
null
null
null
class Node(object): def __init__(self, value): self.value = value self.next = None class LinkedList(object): def __init__(self, first=None, last=None): self.first = first self.last = last self.size = 0 def addFirst(self, new_node): current = se...
23.518248
70
0.468343
79c742ed18f844d00868fab18a93b1709c912fa2
161
py
Python
algorithms/hamming/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
algorithms/hamming/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
algorithms/hamming/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
def distance(strand1: str, strand2: str) -> int: count = 0 for x, y in zip(strand1, strand2): if x != y: count += 1 return count
23
48
0.52795
79c7e3a280ed0e65c556fd8c2f54c5561db421d4
1,349
py
Python
Leetcode/medium/shortest-unsorted-continuous-subarray.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
6
2021-07-29T03:26:20.000Z
2022-01-28T15:11:45.000Z
Leetcode/medium/shortest-unsorted-continuous-subarray.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
2
2021-09-30T09:47:23.000Z
2022-01-31T03:08:24.000Z
Leetcode/medium/shortest-unsorted-continuous-subarray.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
5
2021-08-10T06:41:11.000Z
2022-01-29T17:50:20.000Z
""" # SHORTEST UNSORTED CONTINUOUS SUBARRAY Given an integer array nums, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole array will be sorted in ascending order. Return the shortest such subarray and output its length. Example 1: Input: nums = [2,6,4,...
22.114754
181
0.510749
79c7f1587f805a2011b729c5c0c86abd7be91c40
2,666
py
Python
dberta_large_config.py
mkingopng/NBME_score_clinical_patient_notes
4ca9816be2665d7585ab0d168376a340aa800088
[ "MIT" ]
1
2022-03-27T12:47:25.000Z
2022-03-27T12:47:25.000Z
dberta_large_config.py
mkingopng/NBME_score_clinical_patient_notes
4ca9816be2665d7585ab0d168376a340aa800088
[ "MIT" ]
null
null
null
dberta_large_config.py
mkingopng/NBME_score_clinical_patient_notes
4ca9816be2665d7585ab0d168376a340aa800088
[ "MIT" ]
null
null
null
""" libraries """ import os import gc import re import ast import sys import copy import json import time import math import string import pickle import random import joblib import itertools import warnings from IPython.core.display_functions import display import scipy as sp import numpy as np import pandas as pd from...
22.59322
93
0.715304
79c80da0c18279f9d22244baf83eed8176405273
9,784
py
Python
amieclient/test/test_packet.py
pauldalewilliams/amieclient
b96c3bc759b240dbaece5df8d0aa6b7130887dfb
[ "Apache-2.0" ]
null
null
null
amieclient/test/test_packet.py
pauldalewilliams/amieclient
b96c3bc759b240dbaece5df8d0aa6b7130887dfb
[ "Apache-2.0" ]
null
null
null
amieclient/test/test_packet.py
pauldalewilliams/amieclient
b96c3bc759b240dbaece5df8d0aa6b7130887dfb
[ "Apache-2.0" ]
null
null
null
import pytest from ..packet import (Packet, RequestAccountCreate, Packet, PacketInvalidData, NotifyAccountCreate, NotifyPersonDuplicate, NotifyUserModify, RequestUserModify) from .fixtures import DEMO_JSON_PKT_1, DEMO_JSON_PKT_2 class TestClient: """ Test packet cr...
41.991416
96
0.634096
79c84d7c502d07ca3e8ba456f00d7b662254a6c5
7,871
py
Python
backend/tests/baserow/contrib/database/ws/test_ws_view_signals.py
ericderace/baserow
7b35e81f75166d914d07ef4ad0c30c625b6bb396
[ "MIT" ]
1
2021-04-13T16:27:58.000Z
2021-04-13T16:27:58.000Z
backend/tests/baserow/contrib/database/ws/test_ws_view_signals.py
jacklicn/baserow
978d9462ededbaa96674a6653028ba19876ea273
[ "MIT" ]
6
2021-04-08T22:03:06.000Z
2022-01-13T03:38:17.000Z
backend/tests/baserow/contrib/database/ws/test_ws_view_signals.py
jacklicn/baserow
978d9462ededbaa96674a6653028ba19876ea273
[ "MIT" ]
null
null
null
import pytest from unittest.mock import patch from baserow.contrib.database.views.handler import ViewHandler @pytest.mark.django_db(transaction=True) @patch('baserow.ws.registries.broadcast_to_channel_group') def test_view_created(mock_broadcast_to_channel_group, data_fixture): user = data_fixture.create_user()...
43.972067
88
0.730276
79c877d7241a982bf6dec9b5d53093d399613b66
47,364
py
Python
src/pymusepipe/combine.py
emsellem/pymusepipe
8d06597ef21f2690921ea08148e223f914a79559
[ "MIT" ]
5
2018-04-01T22:56:30.000Z
2020-06-16T12:18:22.000Z
src/pymusepipe/combine.py
emsellem/pymusepipe
8d06597ef21f2690921ea08148e223f914a79559
[ "MIT" ]
1
2019-09-30T00:02:49.000Z
2019-09-30T10:04:15.000Z
src/pymusepipe/combine.py
emsellem/pymusepipe
8d06597ef21f2690921ea08148e223f914a79559
[ "MIT" ]
6
2019-01-17T15:20:19.000Z
2021-10-15T12:24:48.000Z
# Licensed under a MIT license - see LICENSE """MUSE-PHANGS combine module """ __authors__ = "Eric Emsellem" __copyright__ = "(c) 2017-2019, ESO + CRAL" __license__ = "MIT License" __contact__ = " <eric.emsellem@eso.org>" # Importing modules import numpy as np import os from os.path import join as joinpath import gl...
41.583845
111
0.581433
79c87b7ae96a54cae90fc19f0482eef051c43971
1,436
py
Python
Aula17/exercicio/Resolucao/exercicio6.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
Aula17/exercicio/Resolucao/exercicio6.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
Aula17/exercicio/Resolucao/exercicio6.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
# Criar um programa para o cadastro do cliente # Para cadastro de clientes deve pedir os seguintes dados: # Codigo do cliente, CPF, Nome completo, # data de nascimento, Estado, Cidade, cep, bairro, rua, # numero da casa, complemento. # cod_Cliente = input('Codigo de cliente: ') # cpf = input('CPF cliente: ') def ...
31.217391
80
0.612813
79c88b09098e159c2ce8be695db29e6e76f2b3bc
12,541
py
Python
pcb_operator.py
shoaibkamil/OLD-kdt-specializer
85074ec1990df980d25096ea8c55dd81350e531e
[ "BSD-3-Clause" ]
1
2021-11-15T02:11:33.000Z
2021-11-15T02:11:33.000Z
pcb_operator.py
shoaibkamil/OLD-kdt-specializer
85074ec1990df980d25096ea8c55dd81350e531e
[ "BSD-3-Clause" ]
null
null
null
pcb_operator.py
shoaibkamil/OLD-kdt-specializer
85074ec1990df980d25096ea8c55dd81350e531e
[ "BSD-3-Clause" ]
null
null
null
import inspect import asp.codegen.python_ast as ast import asp.codegen.cpp_ast as cpp_ast import asp.codegen.ast_tools as ast_tools import codepy.cgen import asp.jit.asp_module as asp_module from collections import namedtuple class IfNotDefined(cpp_ast.Generable): """ A generable AST node for the 'if not defi...
38.234756
120
0.615421
79c8e6f70830edf973cb13b3d46f0247583428b4
9,472
py
Python
src/sardana/util/parser.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
src/sardana/util/parser.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
src/sardana/util/parser.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and/or modify # it under th...
34.569343
80
0.577386
79c8f2b7bc7e801c18f41ce9d7571ff2167b8dca
582
py
Python
cursoemvideoPy/Mundo2/ex071.py
BrCarlini/exPython
3bed986e5bfa5eae191b6b18306448926aed48fd
[ "MIT" ]
null
null
null
cursoemvideoPy/Mundo2/ex071.py
BrCarlini/exPython
3bed986e5bfa5eae191b6b18306448926aed48fd
[ "MIT" ]
null
null
null
cursoemvideoPy/Mundo2/ex071.py
BrCarlini/exPython
3bed986e5bfa5eae191b6b18306448926aed48fd
[ "MIT" ]
null
null
null
print('=' * 30) print('{:^30}'.format('BANCO CEV')) print('=' * 30) valor = int(input('Que valor você quer sacar? R$')) total = valor ced = 50 totced = 0 while True: if total >= ced: total -= ced totced += 1 else: if totced > 0: print(f'Total de {totced} cédulas de R${ced}')...
22.384615
58
0.474227
79c93e8539d17a3e777820ee6794023631108e42
4,921
py
Python
app/catalog/forms.py
yayunl/llfselfhelp
55994003ad51e1664a733c84ed6afcb9f28b6499
[ "MIT" ]
null
null
null
app/catalog/forms.py
yayunl/llfselfhelp
55994003ad51e1664a733c84ed6afcb9f28b6499
[ "MIT" ]
4
2021-04-08T21:37:08.000Z
2021-09-22T19:31:17.000Z
app/catalog/forms.py
yayunl/llfselfhelp
55994003ad51e1664a733c84ed6afcb9f28b6499
[ "MIT" ]
null
null
null
from django.forms import ModelForm, formset_factory from django.forms.models import inlineformset_factory from django import forms from bootstrap_datepicker_plus import DatePickerInput from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Field, Fieldset, Div, HTML, ButtonHolder, Submit f...
31.343949
111
0.601707
79c94ad24f3dde71e453e2de6c00d8d310eb486a
65,813
py
Python
SCRAPE/Lib/site-packages/twisted/test/test_tcp.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
4,612
2015-01-01T12:57:23.000Z
2022-03-30T01:08:23.000Z
SCRAPE/Lib/site-packages/twisted/test/test_tcp.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,243
2015-01-23T17:23:59.000Z
2022-03-28T13:46:17.000Z
SCRAPE/Lib/site-packages/twisted/test/test_tcp.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
1,236
2015-01-13T14:41:26.000Z
2022-03-17T07:12:36.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for implementations of L{IReactorTCP}. """ import errno import random import socket from functools import wraps from typing import Callable, Optional from unittest import skipIf from zope.interface import implementer import hamcrest ...
35.100267
88
0.635513
79c9630d95f5a90ed720312c920d3adcd02b9cd5
369
py
Python
test/test_selenium.py
villoro/devops_test
128f5702cf32e41604194daab6e9fbb0528510f0
[ "MIT" ]
2
2018-09-27T17:05:16.000Z
2020-04-08T04:30:26.000Z
test/test_selenium.py
villoro/devops
128f5702cf32e41604194daab6e9fbb0528510f0
[ "MIT" ]
null
null
null
test/test_selenium.py
villoro/devops
128f5702cf32e41604194daab6e9fbb0528510f0
[ "MIT" ]
null
null
null
""" Tests the dash app works """ import unittest from test.selenium_utils import open_dash class TestApp(unittest.TestCase): """ Tests the dash app works """ driver = open_dash() def test_title(self): """ Test that the app is able to load """ self.assertEqual("Dash", self.driver.title) ...
19.421053
51
0.653117
79c990b4f8ae5da1848b8cf09984f42bf5f968b4
4,521
py
Python
test/TestRulesCollection.py
xlab-steampunk/ansible-lint
443b2dcad2b9fd7bea63c8d9378f3fea13b57e7d
[ "MIT" ]
null
null
null
test/TestRulesCollection.py
xlab-steampunk/ansible-lint
443b2dcad2b9fd7bea63c8d9378f3fea13b57e7d
[ "MIT" ]
48
2021-03-08T21:13:17.000Z
2022-02-13T12:05:41.000Z
test/TestRulesCollection.py
xlab-steampunk/ansible-lint
443b2dcad2b9fd7bea63c8d9378f3fea13b57e7d
[ "MIT" ]
null
null
null
# Copyright (c) 2013-2014 Will Thames <will@thames.id.au> # # 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...
39.657895
86
0.753373
79c9967fd756e93a0724cb9a2d94def17162d583
3,336
py
Python
app/main/views.py
Ras-Kwesi/pitch
296033267cefcbe6cb607e8d61b111088a2f0298
[ "MIT" ]
null
null
null
app/main/views.py
Ras-Kwesi/pitch
296033267cefcbe6cb607e8d61b111088a2f0298
[ "MIT" ]
null
null
null
app/main/views.py
Ras-Kwesi/pitch
296033267cefcbe6cb607e8d61b111088a2f0298
[ "MIT" ]
null
null
null
from flask import render_template,request,redirect,url_for,abort,flash from . import main from ..models import User,Comments,Pitches from .. import db,photos from .forms import UpdateProfile ,NewPitch, NewComment from flask_login import login_required import markdown2 # Views for our templates @main.route('/') def ind...
26.903226
108
0.681355
79c9bb75c0fc700fbdcc79e57036e54fd7ed90b0
4,691
py
Python
core/controllers/topic_viewer_test.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
null
null
null
core/controllers/topic_viewer_test.py
yashdusing/oppia
c0218e13ba29f9bc25cc5ec6f7f13108ee4fdb9a
[ "Apache-2.0" ]
4
2019-08-15T10:49:21.000Z
2022-03-02T05:10:20.000Z
core/controllers/topic_viewer_test.py
grishamjindal/oppia
3a29329a446e30b3b70641cf0286e23fad85418f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
40.791304
80
0.671499
79c9cc3e2e987f279d0bbd4d35a175ec0d72719e
692
py
Python
src2/intro_oop/car_inheritance.py
unica-isde/isde
a9603d8b8d1a347447cec483108132aa1e8457eb
[ "Apache-2.0" ]
7
2021-01-20T09:11:53.000Z
2022-03-15T12:19:06.000Z
src2/intro_oop/car_inheritance.py
unica-isde/isde
a9603d8b8d1a347447cec483108132aa1e8457eb
[ "Apache-2.0" ]
null
null
null
src2/intro_oop/car_inheritance.py
unica-isde/isde
a9603d8b8d1a347447cec483108132aa1e8457eb
[ "Apache-2.0" ]
10
2020-11-01T09:47:02.000Z
2021-11-02T12:59:50.000Z
class Engine(): def __init__(self, displacement=1000): self.displacement = displacement class EngineWithWheels(Engine): def __init__(self, displacement=1000, nWheels=4, pressure=100): super().__init__(displacement) self.nWheels = nWheels self.wheels_pressure = pressure class C...
30.086957
77
0.683526
79c9ce15efd3de1d39ebba9687892b29bfa475a7
5,394
py
Python
tests/test_aws_stacks_vpc.py
ibejohn818/stackformation
7ab5b29b584c64cea31add470c4f6df847d19c1c
[ "MIT" ]
null
null
null
tests/test_aws_stacks_vpc.py
ibejohn818/stackformation
7ab5b29b584c64cea31add470c4f6df847d19c1c
[ "MIT" ]
1,396
2017-12-24T18:25:05.000Z
2022-03-31T15:05:19.000Z
tests/test_aws_stacks_vpc.py
ibejohn818/stackformation
7ab5b29b584c64cea31add470c4f6df847d19c1c
[ "MIT" ]
null
null
null
import pytest from stackformation.aws.stacks import (vpc, eip) from stackformation import Infra import troposphere @pytest.fixture def prod_infra(): infra = Infra("test") prod_infra = infra.create_sub_infra("prod") return (infra, prod_infra) def test_vpc_stack(prod_infra): infra = prod_infra[0] ...
29.315217
84
0.711531
79c9d7b55f32b0eb60f5bc572da24eb916515042
4,213
py
Python
issue_to_impact_app/settings.py
elnelson575/issue_to_impact2
239c30c670c29323879d70bdc2b941d73992998b
[ "MIT" ]
null
null
null
issue_to_impact_app/settings.py
elnelson575/issue_to_impact2
239c30c670c29323879d70bdc2b941d73992998b
[ "MIT" ]
null
null
null
issue_to_impact_app/settings.py
elnelson575/issue_to_impact2
239c30c670c29323879d70bdc2b941d73992998b
[ "MIT" ]
null
null
null
""" Django settings for issue_to_impact_app project on Heroku. For more info, see: https://github.com/heroku/heroku-django-template For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/re...
30.309353
91
0.720389
79c9dd905d8d1d229eb47ac58ef6bfc73300a0dd
10,829
py
Python
google-cloud-sdk/.install/.backup/lib/surface/compute/backend_services/update.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/compute/backend_services/update.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/compute/backend_services/update.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
34.597444
79
0.717795
79ca2afa6d7b4c82363679e4caa0d9a7f0ce846b
223
py
Python
src/ggrc/query/exceptions.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/query/exceptions.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc/query/exceptions.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """This module contains a class for handling request queries.""" class BadQueryException(Exception): pass
24.777778
78
0.748879
79ca34a656138c243e9e6eb457d14dc472446ffd
1,440
py
Python
Recommender/download_data.py
TusharSharma16/Tsukuyomi
aa62b7bad4ea91e33ac901a6b64c0bbd0615162b
[ "MIT" ]
2
2019-02-24T08:18:37.000Z
2019-10-11T05:35:27.000Z
Recommender/download_data.py
TusharSharma16/Tsukuyomi
aa62b7bad4ea91e33ac901a6b64c0bbd0615162b
[ "MIT" ]
null
null
null
Recommender/download_data.py
TusharSharma16/Tsukuyomi
aa62b7bad4ea91e33ac901a6b64c0bbd0615162b
[ "MIT" ]
1
2019-02-07T18:57:22.000Z
2019-02-07T18:57:22.000Z
#!/usr/bin/env python # # Downloads datasets for sample projects. # from os import path import urllib import zipfile def download(url, target_file): """Download a file from the url to the given target filename.""" def report(blocks, block_size, total_size): percent = (100 * blocks * block_size) / total_size l...
33.488372
131
0.725694
79ca6c8a289e5b33b370f383dc7c63e8b659a336
80,039
py
Python
python/ray/_private/services.py
RaphaelCS/ray
5f4d9085d2452186bff563fb2856e643c4c82095
[ "Apache-2.0" ]
null
null
null
python/ray/_private/services.py
RaphaelCS/ray
5f4d9085d2452186bff563fb2856e643c4c82095
[ "Apache-2.0" ]
null
null
null
python/ray/_private/services.py
RaphaelCS/ray
5f4d9085d2452186bff563fb2856e643c4c82095
[ "Apache-2.0" ]
1
2021-09-17T16:56:41.000Z
2021-09-17T16:56:41.000Z
import base64 import collections import errno import io import json import logging import multiprocessing import os from pathlib import Path import mmap import random import shutil import signal import socket import subprocess import sys import time from typing import Optional # Ray modules import ray import ray.ray_c...
41.686979
92
0.627831
79ca6e01241cc1df99a79848bde15cd210321dc2
5,786
py
Python
hubspot3/deals.py
kevin2357/hubspot3
488f6ff4195034317d99431439087443bca1469f
[ "MIT" ]
1
2019-02-25T01:09:51.000Z
2019-02-25T01:09:51.000Z
hubspot3/deals.py
kevin2357/hubspot3
488f6ff4195034317d99431439087443bca1469f
[ "MIT" ]
null
null
null
hubspot3/deals.py
kevin2357/hubspot3
488f6ff4195034317d99431439087443bca1469f
[ "MIT" ]
null
null
null
""" hubspot deals api """ from hubspot3 import logging_helper from hubspot3.base import BaseClient from hubspot3.utils import prettify import urllib.parse DEALS_API_VERSION = "1" class DealsClient(BaseClient): """ The hubspot3 Deals client uses the _make_request method to call the API for data. It retu...
31.107527
97
0.515209
79caaf4d79e9dba4d6961641d87d9b775fee1929
789
py
Python
scapy/scapy/layers/tls/crypto/ciphers.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
scapy/scapy/layers/tls/crypto/ciphers.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
scapy/scapy/layers/tls/crypto/ciphers.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
# This file is part of Scapy # Copyright (C) 2007, 2008, 2009 Arnaud Ebalard # 2015, 2016 Maxence Tury # This program is published under a GPLv2 license """ TLS ciphers. """ class CipherError(Exception): """ Raised when .decrypt() or .auth_decrypt() fails. """ pass # We have to keep ...
27.206897
73
0.7782
79cad45daf5ea4a191b96a4f389a81ba91215d7c
30
py
Python
contrib/diggext/__init__.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
216
2015-01-10T17:03:25.000Z
2022-03-24T07:23:41.000Z
contrib/diggext/__init__.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
23
2015-01-08T16:51:22.000Z
2021-03-13T12:56:04.000Z
contrib/diggext/__init__.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
49
2015-01-08T00:13:17.000Z
2021-09-22T02:01:20.000Z
from diggext.drivers import *
15
29
0.8
79cae941d4426f4102015b439c12f13c9a3b986d
17,526
py
Python
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/5crop_1024/train1_ur.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/5crop_1024/train1_ur.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/5crop_1024/train1_ur.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
import os, sys #os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="1" import numpy as np import pandas as pd import matplotlib.pyplot as plt import skimage.io from skimage.transform import resize from imgaug import augmenters as iaa from tqdm import tqdm import PIL from PIL import Image...
35.913934
123
0.660504
79cb1ba753434af4a8db97488d63cee6057bf8df
7,808
py
Python
dags/sdf_to_bigquery_dag.py
danieldjewell/starthinker
3327d5874f01d7563603b8a82c1ecd6615b9768d
[ "Apache-2.0" ]
1
2020-12-04T17:13:35.000Z
2020-12-04T17:13:35.000Z
dags/sdf_to_bigquery_dag.py
hgrias/starthinker
b9ed33e23b4ffd72565a31ebb8a8041d346bfca2
[ "Apache-2.0" ]
null
null
null
dags/sdf_to_bigquery_dag.py
hgrias/starthinker
b9ed33e23b4ffd72565a31ebb8a8041d346bfca2
[ "Apache-2.0" ]
null
null
null
########################################################################### # # 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 # # https://www.apache.org/l...
33.655172
176
0.534452
79cb67ac30854691d00439d5f161ae806879d452
2,015
py
Python
stm/configuration.py
matematik7/STM
876a7065d66318007bca1dffc94e51028c6eda01
[ "MIT" ]
1
2015-05-29T12:53:00.000Z
2015-05-29T12:53:00.000Z
stm/configuration.py
matematik7/STM
876a7065d66318007bca1dffc94e51028c6eda01
[ "MIT" ]
null
null
null
stm/configuration.py
matematik7/STM
876a7065d66318007bca1dffc94e51028c6eda01
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # ---------------------------------------------------------------- # stm/configuration.py # # Holds configuration values. # ---------------------------------------------------------------- # copyright (c) 2015 - Domen Ipavec # Distributed under The MIT License, see LICENS...
28.785714
78
0.507692
79cb98cf9dfcbdc218a340ca9aae9d2134d5efa3
928
py
Python
setup.py
wahlflo/eml_analyzer
a96999bdce210d7be7a43504a8954fabedecdde0
[ "MIT" ]
4
2021-01-24T13:37:33.000Z
2022-01-26T15:43:42.000Z
setup.py
wahlflo/eml_analyzer
a96999bdce210d7be7a43504a8954fabedecdde0
[ "MIT" ]
2
2021-01-24T13:43:00.000Z
2021-07-04T09:03:14.000Z
setup.py
wahlflo/eml_analyzer
a96999bdce210d7be7a43504a8954fabedecdde0
[ "MIT" ]
3
2021-01-24T13:37:37.000Z
2021-04-14T14:52:37.000Z
import setuptools with open('README.md', mode='r', encoding='utf-8') as readme_file: long_description = readme_file.read() setuptools.setup( name="eml-analyzer", version="1.0.3", author="Florian Wahl", author_email="florian.wahl.developer@gmail.com", description="A cli script to analyze an E-...
30.933333
122
0.659483
79cbdc10e093f8ca96f842d9f489f382c49a8029
4,589
py
Python
day11/day11.py
freag/aoc2015
8ae62fb13edd8f8962e9cf1f7a3f7548372d3e9f
[ "Unlicense" ]
null
null
null
day11/day11.py
freag/aoc2015
8ae62fb13edd8f8962e9cf1f7a3f7548372d3e9f
[ "Unlicense" ]
null
null
null
day11/day11.py
freag/aoc2015
8ae62fb13edd8f8962e9cf1f7a3f7548372d3e9f
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python """Day 11: Corporate Policy -- Advent of Code 2015""" from typing import List, Iterable, TypeVar T = TypeVar('T') ALPHABET = 'abcdefghijklmnopqrstuvwxyz' ALPHABET_SIZE = len(ALPHABET) def next_valid_password(data: str) -> str: """The next valid password, starting from data.""" passwor...
33.49635
77
0.673567
79cbe10396bf347f704f262cfdce24a6f3ac35f5
3,247
py
Python
venv/Lib/site-packages/pyrogram/raw/types/auth/authorization.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/auth/authorization.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/auth/authorization.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
36.077778
103
0.626116
79cbf5859ea879ad9d9442a09a841f095566e24c
8,028
py
Python
zerver/views/webhooks/pivotal.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2021-02-13T20:43:29.000Z
2021-02-13T20:43:29.000Z
zerver/views/webhooks/pivotal.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
9
2021-02-08T20:22:39.000Z
2022-02-11T03:40:19.000Z
zerver/views/webhooks/pivotal.py
tobby2002/zulip
66e7c455759f9368bae16b9a604cf63f8e3524cd
[ "Apache-2.0" ]
1
2021-04-09T05:50:23.000Z
2021-04-09T05:50:23.000Z
"""Webhooks for external integrations.""" from __future__ import absolute_import from django.http import HttpRequest, HttpResponse from django.utils.translation import ugettext as _ from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error from zerver.decorator import ...
43.394595
112
0.611111
79cc20428eb4f957b3ed6484388ad319bef557ab
9,416
py
Python
blueprints/liveview.py
VMAJSTER/openstreamingplatform
f002246db922dab9a3f019f46001f3901326feaf
[ "MIT" ]
null
null
null
blueprints/liveview.py
VMAJSTER/openstreamingplatform
f002246db922dab9a3f019f46001f3901326feaf
[ "MIT" ]
null
null
null
blueprints/liveview.py
VMAJSTER/openstreamingplatform
f002246db922dab9a3f019f46001f3901326feaf
[ "MIT" ]
null
null
null
from flask import Blueprint, request, url_for, render_template, redirect, flash from flask_security import current_user, login_required from sqlalchemy.sql.expression import func import hashlib from classes.shared import db from classes import settings from classes import RecordedVideo from classes import subscription...
47.316583
241
0.62277
79cc2c179623da8e20451d272a03dc969b7ffa89
7,822
py
Python
suitcase/msgpack/__init__.py
bluesky/suitcase-msgpack
2553f5d2ccfb31e5ad5380b43f2c835b0b017d1c
[ "BSD-3-Clause" ]
null
null
null
suitcase/msgpack/__init__.py
bluesky/suitcase-msgpack
2553f5d2ccfb31e5ad5380b43f2c835b0b017d1c
[ "BSD-3-Clause" ]
7
2019-05-10T21:46:37.000Z
2020-12-02T16:34:42.000Z
suitcase/msgpack/__init__.py
bluesky/suitcase-msgpack
2553f5d2ccfb31e5ad5380b43f2c835b0b017d1c
[ "BSD-3-Clause" ]
5
2019-05-10T21:48:36.000Z
2020-04-01T16:01:18.000Z
# Suitcase subpackages should follow strict naming and interface conventions. # The public API must include Serializer and should include export if it is # intended to be user-facing. They should accept the parameters sketched here, # but may also accpet additional required or optional keyword arguments, as # needed. i...
36.046083
78
0.654692
79cc42cf3fa9e1bd2af5ba6f547af710944a2ea2
5,093
py
Python
diskimage_builder/block_device/level0/localloop.py
june-yang/diskimage-builder
0b15d2186727b122af4dae1847de8ebcdefc4b4f
[ "Apache-2.0" ]
1
2017-08-30T16:58:33.000Z
2017-08-30T16:58:33.000Z
diskimage_builder/block_device/level0/localloop.py
june-yang/diskimage-builder
0b15d2186727b122af4dae1847de8ebcdefc4b4f
[ "Apache-2.0" ]
null
null
null
diskimage_builder/block_device/level0/localloop.py
june-yang/diskimage-builder
0b15d2186727b122af4dae1847de8ebcdefc4b4f
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Andreas Florath (andreas@florath.net) # # 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...
36.378571
75
0.6183
79cc4e005cc10b929837af34ddc7f99dc4b8bf9f
883
py
Python
web/app/core/urls.py
n1kko777/moneycontrol-app-api
8db7a999747c3eaed7157abc836af603a5638c0f
[ "MIT" ]
null
null
null
web/app/core/urls.py
n1kko777/moneycontrol-app-api
8db7a999747c3eaed7157abc836af603a5638c0f
[ "MIT" ]
1
2020-08-13T19:19:58.000Z
2020-08-13T19:19:58.000Z
web/app/core/urls.py
n1kko777/moneycontrol-app-api
8db7a999747c3eaed7157abc836af603a5638c0f
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework import routers from . import views app_name = 'core' router = routers.DefaultRouter() router.register("tag", views.TagViewSet) router.register("action", views.ActionViewSet) router.register("category", views.CategoryViewSet) router.register("transfer", views...
32.703704
75
0.759909
79cc56ae44d2821cf950290a12c04233b0829c4f
2,769
py
Python
myenv/lib/python3.7/site-packages/google/protobuf/internal/import_test_package/outer_pb2.py
theCydonian/AudioEyes
3dece4529b31e6c63771c4358457962999bda3b4
[ "MIT" ]
4,768
2015-01-08T04:45:33.000Z
2022-03-28T07:32:59.000Z
myenv/lib/python3.7/site-packages/google/protobuf/internal/import_test_package/outer_pb2.py
theCydonian/AudioEyes
3dece4529b31e6c63771c4358457962999bda3b4
[ "MIT" ]
2,599
2015-01-06T21:51:28.000Z
2022-03-30T12:40:09.000Z
venv/Lib/site-packages/google/protobuf/internal/import_test_package/outer_pb2.py
Ammar-Raneez/Craigslist_Scraper
4d8ef7d65f6cb4bbc7a461828ab02ec9e3006f71
[ "MIT" ]
878
2015-01-10T00:03:30.000Z
2022-03-31T22:54:15.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/protobuf/internal/import_test_package/outer.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.p...
37.418919
312
0.804984
79cc5960935ea7fbba4fb0eb6555e1ecb03c2fbf
1,562
py
Python
mints/args/typed.py
candy-kingdom/mints
e68a2351cf3ff6823e978bc6a4b740bd2a974ca3
[ "MIT" ]
4
2020-05-09T11:01:32.000Z
2020-06-03T14:44:06.000Z
mints/args/typed.py
candy-kingdom/cli
e68a2351cf3ff6823e978bc6a4b740bd2a974ca3
[ "MIT" ]
43
2020-01-27T21:14:16.000Z
2020-06-18T17:57:20.000Z
mints/args/typed.py
candy-kingdom/mints
e68a2351cf3ff6823e978bc6a4b740bd2a974ca3
[ "MIT" ]
null
null
null
from typing import Type, Any class Typed: """A typed command line argument. A typed command line argument is used for specifying the type to convert the value to. For example, consider the following code: @cli def double(number: Opt[int]('A number to double.')): print(number ...
31.877551
78
0.587068
79cc5b411c782a01a799e655bb514c79eed7f041
16,592
py
Python
Bio/Alphabet/__init__.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
null
null
null
Bio/Alphabet/__init__.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
null
null
null
Bio/Alphabet/__init__.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2000-2002 by Andrew Dalke. # Revisions copyright 2007-2010 by Peter Cock. # All rights reserved. # # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause License". # Please see the LICENSE file that should have been included ...
33.655172
85
0.629942
79cc62fb618d8ed51748d20734245cc1d3cd6f3f
18,189
py
Python
zarr/creation.py
eddienko/zarr
7431e4762ba28eefdfec5b5961cac97b6049c83a
[ "MIT" ]
null
null
null
zarr/creation.py
eddienko/zarr
7431e4762ba28eefdfec5b5961cac97b6049c83a
[ "MIT" ]
null
null
null
zarr/creation.py
eddienko/zarr
7431e4762ba28eefdfec5b5961cac97b6049c83a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, division from warnings import warn import numpy as np from zarr.core import Array from zarr.storage import (DirectoryStore, init_array, contains_array, contains_group, default_compressor, normalize_storage_path...
33.435662
90
0.629226
79cc6b886c3336baf8c2da4d4c048a42dc863e01
593
py
Python
dipy/reconst/tests/test_cache.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
2
2018-07-25T14:04:20.000Z
2021-02-10T07:10:10.000Z
dipy/reconst/tests/test_cache.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
null
null
null
dipy/reconst/tests/test_cache.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
2
2018-07-24T21:20:54.000Z
2018-08-27T04:08:24.000Z
from dipy.reconst.cache import Cache from dipy.core.sphere import Sphere from numpy.testing import assert_, assert_equal, run_module_suite class TestModel(Cache): def __init__(self): pass def test_basic_cache(): t = TestModel() s = Sphere(theta=[0], phi=[0]) assert_(t.cache_get("design_mat...
20.448276
65
0.669477
79cc6c29b40c6ba74ea7dcbbc8d536cad9e1754a
15,796
py
Python
ripley/test/python/run_readWriteOnRipley.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
ripley/test/python/run_readWriteOnRipley.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
1
2019-01-14T03:07:43.000Z
2019-01-14T03:07:43.000Z
ripley/test/python/run_readWriteOnRipley.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2018 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unt...
38.246973
98
0.614206
79cc9a580ec3018ee2b051975f8fab4c80d953e9
1,015
py
Python
voteapp/migrations/0026_auto_20170312_1629.py
dmm34/voteapp
cfa4ba31ff491bffbdf119746a7aa6a7e6a575f0
[ "MIT" ]
null
null
null
voteapp/migrations/0026_auto_20170312_1629.py
dmm34/voteapp
cfa4ba31ff491bffbdf119746a7aa6a7e6a575f0
[ "MIT" ]
null
null
null
voteapp/migrations/0026_auto_20170312_1629.py
dmm34/voteapp
cfa4ba31ff491bffbdf119746a7aa6a7e6a575f0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-12 23:29 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('voteapp', '0025_auto_20170312_1618'), ] operations...
31.71875
146
0.630542
79cccd9dba1a62a9c57743627c06ca8018673b32
270
py
Python
tracker/view/__init__.py
remyoudompheng/arch-security-tracker
8451b618d74c9b322e163da5444452f25f0585cc
[ "MIT" ]
80
2017-10-09T13:39:34.000Z
2022-03-30T08:28:25.000Z
tracker/view/__init__.py
remyoudompheng/arch-security-tracker
8451b618d74c9b322e163da5444452f25f0585cc
[ "MIT" ]
103
2017-07-20T23:01:23.000Z
2022-03-29T15:45:44.000Z
tracker/view/__init__.py
remyoudompheng/arch-security-tracker
8451b618d74c9b322e163da5444452f25f0585cc
[ "MIT" ]
28
2017-10-18T17:03:42.000Z
2022-03-18T17:36:48.000Z
from .add import * from .admin import * from .advisory import * from .copy import * from .delete import * from .edit import * from .error import * from .index import * from .login import * from .show import * from .stats import * from .todo import * from .user import *
19.285714
23
0.711111
79cce77e2dad391156041e94a6454154334f2f82
17,369
py
Python
program_synthesis/algolisp/dataset/dataset.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
123
2018-06-09T00:49:39.000Z
2022-03-09T05:41:20.000Z
program_synthesis/algolisp/dataset/dataset.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
9
2018-06-12T01:01:17.000Z
2022-03-18T09:06:39.000Z
program_synthesis/algolisp/dataset/dataset.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
24
2018-06-09T00:42:46.000Z
2021-09-29T08:23:32.000Z
import argparse import collections import multiprocessing import os import numpy as np import six if six.PY2: import cPickle as pickle else: import pickle import gzip import random import json import time import torch.utils.data from program_synthesis.algolisp.dataset import data Schema = collections.named...
37.352688
138
0.583568
79ccefa37dd6e9261af1b11fc4d940f44043a3ec
618
py
Python
app/main.py
jaime-cespedes-sisniega/drift-detection
85a0a6cc9d8bd08153d52d283c817e5759be9ea8
[ "MIT" ]
null
null
null
app/main.py
jaime-cespedes-sisniega/drift-detection
85a0a6cc9d8bd08153d52d283c817e5759be9ea8
[ "MIT" ]
null
null
null
app/main.py
jaime-cespedes-sisniega/drift-detection
85a0a6cc9d8bd08153d52d283c817e5759be9ea8
[ "MIT" ]
null
null
null
from app.api import api_router from app.config import settings from app.metrics import metrics_router from fastapi import FastAPI from starlette_prometheus import PrometheusMiddleware app = FastAPI(title=settings.PROJECT_NAME, openapi_url=f'{settings.API_V1_STR}/openapi.json', docs_url=f'{...
28.090909
64
0.70712
79ccefe2a03ed9bdf694898fb051f52df263366a
7,699
py
Python
exp8/exp8g_none.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
null
null
null
exp8/exp8g_none.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
5
2017-05-22T20:32:07.000Z
2017-06-02T21:06:23.000Z
exp8/exp8g_none.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import h5py from sklearn.preprocessing import OneHotEncoder import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import time import scipy.io # Functions for initializing neural nets parameters def weight_variable(shape, var_name): initial = ...
32.761702
98
0.675153
79cd514535f207208180a0919ea6055666d97f78
390
py
Python
terrascript/provider/external.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/provider/external.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/provider/external.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/provider/external.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:16:09 UTC) # # For imports without namespace, e.g. # # >>> import terrascript.provider.external # # instead of # # >>> import terrascript.provider.hashicorp.external # # This is only available for 'official' and 'partn...
26
73
0.751282
79cd613abf1179e5025e0c17f57e1e971581d262
15,251
py
Python
ngcccbase/blockchain.py
F483/ngcccbase
db837fe07b9bcfe2117483efe8c69c4216d9074d
[ "MIT" ]
null
null
null
ngcccbase/blockchain.py
F483/ngcccbase
db837fe07b9bcfe2117483efe8c69c4216d9074d
[ "MIT" ]
null
null
null
ngcccbase/blockchain.py
F483/ngcccbase
db837fe07b9bcfe2117483efe8c69c4216d9074d
[ "MIT" ]
null
null
null
import os, sys, threading, Queue, time import traceback import abc import hashlib from coloredcoinlib import BlockchainStateBase from coloredcoinlib.store import DataStore class BaseStore(object): __metaclass__ = abc.ABCMeta def _rev_hex(self, s): return s.decode('hex')[::-1].encode('hex') def ...
31.839248
129
0.549997
79cdd8c926af068905ba9d83ad1672b73f0806a6
601
py
Python
python/70-reverse_a_string.py
kevinbeirne1/udemy_master_coding_interview
44f082d4bb5e65a5f39347b82df97859b79cf8cc
[ "MIT" ]
null
null
null
python/70-reverse_a_string.py
kevinbeirne1/udemy_master_coding_interview
44f082d4bb5e65a5f39347b82df97859b79cf8cc
[ "MIT" ]
null
null
null
python/70-reverse_a_string.py
kevinbeirne1/udemy_master_coding_interview
44f082d4bb5e65a5f39347b82df97859b79cf8cc
[ "MIT" ]
null
null
null
""" Create a function that reverses a string: 'Hi My name is Andrei' should be: 'ierdnA si eman yM iH' """ import unittest def reverse_string(string): # Check input if not isinstance(string, str) or len(string) < 2: return "Hmmm there seems to be a problem" split_string = list(string) new_str...
22.259259
54
0.693844
79cdef007fce64a0db54023bef339e673f442e6f
1,950
py
Python
nlproar/explain/importance_measures/input_times_gradient.py
AndreasMadsen/nlp-roar-interpretability
ad30f756cd744dfb05d1b57de744c5ff60d9f20c
[ "MIT" ]
17
2021-11-04T02:15:30.000Z
2021-12-26T16:31:27.000Z
nlproar/explain/importance_measures/input_times_gradient.py
AndreasMadsen/nlp-roar-interpretability
ad30f756cd744dfb05d1b57de744c5ff60d9f20c
[ "MIT" ]
null
null
null
nlproar/explain/importance_measures/input_times_gradient.py
AndreasMadsen/nlp-roar-interpretability
ad30f756cd744dfb05d1b57de744c5ff60d9f20c
[ "MIT" ]
1
2021-11-04T10:45:25.000Z
2021-11-04T10:45:25.000Z
import torch from ...dataset import SequenceBatch from ._abstract import ImportanceMeasureModule class InputTimesGradientImportanceMeasure(ImportanceMeasureModule): def forward(self, batch: SequenceBatch) -> torch.Tensor: # Prepear a compact embedding matrix for doing sum(x * dy/dz @ W.T) efficently. ...
47.560976
91
0.605641
79cdf1ac4611d28a79a88ac492c1348fba899866
50,679
py
Python
src/transformers/models/layoutlm/modeling_layoutlm.py
norabelrose/transformers
0639f72ebcc008dac59757bc5c38d6f074301491
[ "Apache-2.0" ]
15
2020-12-02T07:56:38.000Z
2021-12-15T06:16:01.000Z
src/transformers/models/layoutlm/modeling_layoutlm.py
norabelrose/transformers
0639f72ebcc008dac59757bc5c38d6f074301491
[ "Apache-2.0" ]
null
null
null
src/transformers/models/layoutlm/modeling_layoutlm.py
norabelrose/transformers
0639f72ebcc008dac59757bc5c38d6f074301491
[ "Apache-2.0" ]
8
2020-12-12T09:03:46.000Z
2021-12-10T04:50:49.000Z
# coding=utf-8 # Copyright 2018 The Microsoft Research Asia LayoutLM Team Authors and the HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/...
42.659091
159
0.658359
79ce078a4b36f7f719d3f3c1ce29f48c9ec1cf7b
3,956
py
Python
yearn/yearn.py
0xean/yearn-exporter
4afe6cd8d2342bf63e0e9a6a45f6f4531b46903c
[ "MIT" ]
64
2021-03-14T22:10:08.000Z
2022-03-30T17:41:11.000Z
yearn/yearn.py
mariuspod/yearn-exporter
9140038ef8c208f409ad83358e2e1ba395cc5094
[ "MIT" ]
130
2021-03-03T17:11:51.000Z
2022-03-30T22:51:17.000Z
yearn/yearn.py
mariuspod/yearn-exporter
9140038ef8c208f409ad83358e2e1ba395cc5094
[ "MIT" ]
74
2021-03-03T17:06:39.000Z
2022-03-30T11:28:09.000Z
import logging from collections import Counter from time import time from brownie import chain from joblib import Parallel, delayed import yearn.iearn import yearn.ironbank from yearn.outputs.describers.registry import RegistryWalletDescriber import yearn.special import yearn.v1.registry import yearn.v2.registry from...
37.320755
132
0.612487