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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
330730fc553fcd3beb68d5d98dc4b2e1c76c6dc1 | 2,781 | py | Python | linux/rest/usefules/setupthingwin.py | petergyorgy/virtue | 3b4dbfbdf9f5e121d9c9887d675fdd3065ecdd3b | [
"BSD-3-Clause"
] | null | null | null | linux/rest/usefules/setupthingwin.py | petergyorgy/virtue | 3b4dbfbdf9f5e121d9c9887d675fdd3065ecdd3b | [
"BSD-3-Clause"
] | null | null | null | linux/rest/usefules/setupthingwin.py | petergyorgy/virtue | 3b4dbfbdf9f5e121d9c9887d675fdd3065ecdd3b | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python3
import urllib.request, urllib.parse
import pprint
import json
import sys
import time
from pathlib import Path
#for ignoring invalid certs
#https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error
import ssl
gcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1) # Only for ... | 35.653846 | 307 | 0.716649 |
330750206fc59c2cb178feb2a9be9497e186f293 | 2,714 | py | Python | alipay/aop/api/domain/AlipayFinancialnetAuthCommoditySyncModel.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/AlipayFinancialnetAuthCommoditySyncModel.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/AlipayFinancialnetAuthCommoditySyncModel.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 *
from alipay.aop.api.domain.CommodityInfoList import CommodityInfoList
class AlipayFinancialnetAuthCommoditySyncModel(object):
def __init__(self):
self._commodity_infos = None
self._out_... | 32.698795 | 87 | 0.610906 |
33075613ff19137e06ec6a392622d6c91842ac14 | 2,769 | py | Python | doc/source/conf.py | ooneko/masakari-monitors-icmp-plugin | b57309a2590fa5436b197275a77da7f34f691a2e | [
"Apache-2.0"
] | null | null | null | doc/source/conf.py | ooneko/masakari-monitors-icmp-plugin | b57309a2590fa5436b197275a77da7f34f691a2e | [
"Apache-2.0"
] | null | null | null | doc/source/conf.py | ooneko/masakari-monitors-icmp-plugin | b57309a2590fa5436b197275a77da7f34f691a2e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software... | 33.361446 | 91 | 0.704586 |
3307889dd81c429afb34662aab83ef07b3322925 | 3,015 | py | Python | flexget/plugins/cli/performance.py | sillygreen89/Flexget | 60f24ab0dda7b94c87ba43451921c50c3cef391f | [
"MIT"
] | 1 | 2018-05-02T21:14:50.000Z | 2018-05-02T21:14:50.000Z | flexget/plugins/cli/performance.py | sillygreen89/Flexget | 60f24ab0dda7b94c87ba43451921c50c3cef391f | [
"MIT"
] | null | null | null | flexget/plugins/cli/performance.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 logging
import time
from argparse import SUPPRESS
from flexget import options
from flexget.event import event, add_event_handler, remove_event_handler
from sqlalchemy.e... | 31.736842 | 117 | 0.682919 |
33079b1362463fed408ef0a0df83129924df0577 | 1,357 | py | Python | test/language/optional_members/python/OptionalArrayTest.py | PeachOS/zserio | ea01f6906c125a6baab7e8ed865eeb08cd46c37c | [
"BSD-3-Clause"
] | null | null | null | test/language/optional_members/python/OptionalArrayTest.py | PeachOS/zserio | ea01f6906c125a6baab7e8ed865eeb08cd46c37c | [
"BSD-3-Clause"
] | null | null | null | test/language/optional_members/python/OptionalArrayTest.py | PeachOS/zserio | ea01f6906c125a6baab7e8ed865eeb08cd46c37c | [
"BSD-3-Clause"
] | null | null | null | import unittest
from testutils import getZserioApi
class OptionalArrayTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.api = getZserioApi(__file__, "optional_members.zs").optional_array
def testData8(self):
numElements = 4
test = self.api.TestStruct()
test.se... | 34.794872 | 85 | 0.666912 |
3307a3c9c61a5937dc266c14f9247d423881ba39 | 1,338 | py | Python | sdk/cosmos/azure-cosmos/test/cleanup.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-01-24T08:54:57.000Z | 2022-01-24T08:54:57.000Z | sdk/cosmos/azure-cosmos/test/cleanup.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/cosmos/azure-cosmos/test/cleanup.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | def delete_database(database_id):
import azure.cosmos.cosmos_client as cosmos_client
import azure.cosmos.exceptions as exceptions
import test_config
print("Cleaning up test resources.")
config = test_config._test_config
host = config.host
masterKey = config.masterKey
connectionPolicy = ... | 36.162162 | 107 | 0.687593 |
3307cce19a829c246f40353b262d121b6d393cc9 | 2,109 | py | Python | examples/multiclass_linear_svm.py | mblondel/jaxopt | b76db8d8015cddc4afb5e2e0e45d6918373e7652 | [
"Apache-2.0"
] | null | null | null | examples/multiclass_linear_svm.py | mblondel/jaxopt | b76db8d8015cddc4afb5e2e0e45d6918373e7652 | [
"Apache-2.0"
] | null | null | null | examples/multiclass_linear_svm.py | mblondel/jaxopt | b76db8d8015cddc4afb5e2e0e45d6918373e7652 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 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/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 31.477612 | 76 | 0.703651 |
3307ec074d47dbb21d8bb1de145d6e29e9f0dd43 | 4,641 | py | Python | publication/simulations/valve_closure.py | gandresr/ptsnet | 46444385b684a1c76e9b4b74e003a57340157625 | [
"Unlicense"
] | 1 | 2022-01-24T20:02:14.000Z | 2022-01-24T20:02:14.000Z | publication/simulations/valve_closure.py | gandresr/ptsnet | 46444385b684a1c76e9b4b74e003a57340157625 | [
"Unlicense"
] | null | null | null | publication/simulations/valve_closure.py | gandresr/ptsnet | 46444385b684a1c76e9b4b74e003a57340157625 | [
"Unlicense"
] | null | null | null | # Imports
import sys
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
from time import time
matplotlib.rcParams['mathtext.fontset'] = 'stix'
matplotlib.rcParams['font.family'] = 'STIXGeneral'
matplotlib.rcParams['font.size'] = 22
assert len(sys.argv) > 1
inpfile = '/home/gandresr/Documents/GitHub... | 44.2 | 115 | 0.60418 |
3308345426a25808085e72e153e8d72a95cdeaca | 1,357 | py | Python | diameter/AVP_Integer64.py | netch80/i1dk-PythonDiameter | ddc6cf76269379105f260c2ecab2c6930d7f32cf | [
"Zlib"
] | null | null | null | diameter/AVP_Integer64.py | netch80/i1dk-PythonDiameter | ddc6cf76269379105f260c2ecab2c6930d7f32cf | [
"Zlib"
] | null | null | null | diameter/AVP_Integer64.py | netch80/i1dk-PythonDiameter | ddc6cf76269379105f260c2ecab2c6930d7f32cf | [
"Zlib"
] | null | null | null | from diameter.AVP import AVP
from diameter.Error import InvalidAVPLengthError
import struct
class AVP_Integer64(AVP):
"""64-bit signed integer AVP."""
def __init__(self,code,value,vendor_id=0):
AVP.__init__(self,code,struct.pack("!Q",value),vendor_id)
def queryValue(self):
"""Returns the ... | 27.693878 | 68 | 0.622697 |
330836d60d4744968bce4ae7cae875e3d12f0611 | 1,379 | py | Python | src/7/inlining_callback_functions/example.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 14 | 2017-05-20T04:06:46.000Z | 2022-01-23T06:48:45.000Z | src/7/inlining_callback_functions/example.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 1 | 2021-06-10T20:17:55.000Z | 2021-06-10T20:17:55.000Z | src/7/inlining_callback_functions/example.py | tuanavu/python-gitbook | 948a05e065b0f40afbfd22f697dff16238163cde | [
"MIT"
] | 15 | 2017-03-29T17:57:33.000Z | 2021-08-24T02:20:08.000Z | # Example of implementing an inlined-callback function
# Sample function to illustrate callback control flow
def apply_async(func, args, *, callback):
# Compute the result
result = func(*args)
# Invoke the callback with the result
callback(result)
# Inlined callback implementation
from queue import ... | 22.241935 | 70 | 0.600435 |
33083b6cde44b379d33f9937d15989b9a7c7e4f9 | 2,882 | py | Python | sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_topic.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2021-09-07T18:39:05.000Z | 2021-09-07T18:39:05.000Z | sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_topic.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_topic.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | #!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... | 36.025 | 101 | 0.723456 |
33083d6889eec45272685f5373cd1f70809216d3 | 2,142 | py | Python | furnace/utils/init_func.py | fywalter/TorchSeg | 729eb22d8c5d607466055552fd82e0819d5f29e2 | [
"MIT"
] | 1,439 | 2019-01-23T08:40:57.000Z | 2022-03-31T14:02:22.000Z | furnace/utils/init_func.py | happog/TorchSeg | c5d370778349d9438ed8c854f267d3ba11ffd72f | [
"MIT"
] | 112 | 2019-01-25T02:31:26.000Z | 2021-09-23T08:42:37.000Z | furnace/utils/init_func.py | happog/TorchSeg | c5d370778349d9438ed8c854f267d3ba11ffd72f | [
"MIT"
] | 287 | 2019-01-23T10:39:37.000Z | 2022-03-17T13:31:16.000Z | #!/usr/bin/env python3
# encoding: utf-8
# @Time : 2018/9/28 下午12:13
# @Author : yuchangqian
# @Contact : changqian_yu@163.com
# @File : init_func.py.py
import torch
import torch.nn as nn
def __init_weight(feature, conv_init, norm_layer, bn_eps, bn_momentum,
**kwargs):
for name, m in feat... | 36.931034 | 78 | 0.619048 |
33084e122e557ebef73cd4d48b2f2eadca1a4c85 | 5,634 | py | Python | spikeextractors/extractors/mea1krecordingextractor/mea1krecordingextractor.py | bendichter/spikeextractors | 762ec791b2a353ddcf95e200bab7d165b1743d06 | [
"MIT"
] | null | null | null | spikeextractors/extractors/mea1krecordingextractor/mea1krecordingextractor.py | bendichter/spikeextractors | 762ec791b2a353ddcf95e200bab7d165b1743d06 | [
"MIT"
] | 1 | 2019-08-07T21:35:22.000Z | 2019-08-07T21:35:22.000Z | spikeextractors/extractors/mea1krecordingextractor/mea1krecordingextractor.py | bendichter/spikeextractors | 762ec791b2a353ddcf95e200bab7d165b1743d06 | [
"MIT"
] | null | null | null | from spikeextractors import RecordingExtractor
from pathlib import Path
import numpy as np
from spikeextractors.extraction_tools import check_get_traces_args
try:
import h5py
HAVE_MEA1k = True
except ImportError:
HAVE_MEA1k = False
class Mea1kRecordingExtractor(RecordingExtractor):
extractor_name = '... | 42.360902 | 136 | 0.609514 |
3308514bf2ac67af44a75d883d3a91e860ff7c7e | 386 | py | Python | python/math/1523_count_odd_numbers_in_an_interval_range.py | linshaoyong/leetcode | ea052fad68a2fe0cbfa5469398508ec2b776654f | [
"MIT"
] | 6 | 2019-07-15T13:23:57.000Z | 2020-01-22T03:12:01.000Z | python/math/1523_count_odd_numbers_in_an_interval_range.py | linshaoyong/leetcode | ea052fad68a2fe0cbfa5469398508ec2b776654f | [
"MIT"
] | null | null | null | python/math/1523_count_odd_numbers_in_an_interval_range.py | linshaoyong/leetcode | ea052fad68a2fe0cbfa5469398508ec2b776654f | [
"MIT"
] | 1 | 2019-07-24T02:15:31.000Z | 2019-07-24T02:15:31.000Z | class Solution(object):
def countOdds(self, low, high):
"""
:type low: int
:type high: int
:rtype: int
"""
n = high - low + 1
return n // 2 if low % 2 == 0 else 1 + (n - 1) // 2
def test_countOdds():
s = Solution()
assert 3 == s.countOdds(3, 7)
a... | 22.705882 | 59 | 0.489637 |
33086a562a6812914f9fa60b58339fb931fe1656 | 1,286 | py | Python | setup.py | pombredanne/normality | 1dd875354d007562d3bb0214d036f7ab01dd6078 | [
"MIT"
] | null | null | null | setup.py | pombredanne/normality | 1dd875354d007562d3bb0214d036f7ab01dd6078 | [
"MIT"
] | null | null | null | setup.py | pombredanne/normality | 1dd875354d007562d3bb0214d036f7ab01dd6078 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages # type: ignore
with open("README.md") as f:
long_description = f.read()
setup(
name="normality",
version="2.2.2",
description="Micro-library to normalize text strings",
long_description=long_description,
long_description_content_type="text/markdown"... | 32.15 | 69 | 0.615086 |
3308e5362a9546d4c96f71728fddb923dd92fac5 | 119 | py | Python | src/data_curation/pre_processing/__init__.py | NovaSBE-DSKC/predict-campaing-sucess-rate | fec339aee7c883f55d64130eb69e490f765ee27d | [
"MIT"
] | null | null | null | src/data_curation/pre_processing/__init__.py | NovaSBE-DSKC/predict-campaing-sucess-rate | fec339aee7c883f55d64130eb69e490f765ee27d | [
"MIT"
] | null | null | null | src/data_curation/pre_processing/__init__.py | NovaSBE-DSKC/predict-campaing-sucess-rate | fec339aee7c883f55d64130eb69e490f765ee27d | [
"MIT"
] | null | null | null | from .rewards import *
from .projects import *
from .pledges import *
from .merged import *
from .country import *
| 11.9 | 23 | 0.714286 |
3308f2de31e58770b2793ac54a1ac4fb508ba9e6 | 2,211 | py | Python | third_party/ATE/results_writer.py | icannistraci/nerfmm | 514ae420f41ba5b6447be853f73e37beca136f85 | [
"MIT"
] | 266 | 2021-04-19T10:27:52.000Z | 2022-03-31T13:20:30.000Z | third_party/ATE/results_writer.py | icannistraci/nerfmm | 514ae420f41ba5b6447be853f73e37beca136f85 | [
"MIT"
] | 22 | 2021-04-20T15:15:59.000Z | 2022-01-20T01:19:44.000Z | third_party/ATE/results_writer.py | icannistraci/nerfmm | 514ae420f41ba5b6447be853f73e37beca136f85 | [
"MIT"
] | 35 | 2021-04-20T05:54:15.000Z | 2022-03-21T10:13:22.000Z | #!/usr/bin/env python2
import os
# import yaml
import numpy as np
def compute_statistics(data_vec):
stats = dict()
if len(data_vec) > 0:
stats['rmse'] = float(
np.sqrt(np.dot(data_vec, data_vec) / len(data_vec)))
stats['mean'] = float(np.mean(data_vec))
stats['median'] = fl... | 29.092105 | 79 | 0.568069 |
3308f905848cd8c0dd81a2b8b4aeaab4bb64e86e | 1,005 | py | Python | doc/python_study_code/selenium_remote_firefox.py | beiliwenxiao/vimrc | eb38fc769f3f5f78000060dac674b5c49d63c24c | [
"MIT"
] | null | null | null | doc/python_study_code/selenium_remote_firefox.py | beiliwenxiao/vimrc | eb38fc769f3f5f78000060dac674b5c49d63c24c | [
"MIT"
] | null | null | null | doc/python_study_code/selenium_remote_firefox.py | beiliwenxiao/vimrc | eb38fc769f3f5f78000060dac674b5c49d63c24c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
#remote chrome localIP
#java -jar selenium-server-standalone-2.43.1.jar -port 44444 -Dwebdriver.chrome.driver=/home/softs/selenium/chromedriver
import os
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from time import sleep
from selenium import webdriver
from selenium.webd... | 26.447368 | 120 | 0.752239 |
330914cf7bafa097a6494c8f0107a7139cbaa0fb | 6,686 | py | Python | access_control/models/credentials_create.py | hedleyroos/core-management-layer | 2a25bf5fb44fd511b8b2626ec09a4bc05098334c | [
"BSD-3-Clause"
] | null | null | null | access_control/models/credentials_create.py | hedleyroos/core-management-layer | 2a25bf5fb44fd511b8b2626ec09a4bc05098334c | [
"BSD-3-Clause"
] | 90 | 2018-01-23T10:30:01.000Z | 2019-01-31T10:53:42.000Z | access_control/models/credentials_create.py | hedleyroos/core-management-layer | 2a25bf5fb44fd511b8b2626ec09a4bc05098334c | [
"BSD-3-Clause"
] | 1 | 2021-08-17T14:16:23.000Z | 2021-08-17T14:16:23.000Z | # coding: utf-8
"""
Access Control API
# The Access Control API ## Overview The Access Control API is an API exposed to other core components. It uses an API Key in an HTTP header to perform authentication and authorisation. Most of the API calls facilitates CRUD of the entities defined in the Access Contro... | 32.935961 | 449 | 0.612175 |
33094ca4eedeaeac6e966d761b8f68d8c1c5260d | 513 | py | Python | missioncontrol/home/migrations/0010_pass_script.py | fleetspace/missioncontrol | d7116569b689875f5d149273150c3ce4c1319cd0 | [
"Apache-2.0"
] | 7 | 2019-03-29T06:05:08.000Z | 2021-07-29T07:49:49.000Z | missioncontrol/home/migrations/0010_pass_script.py | fleetspace/missioncontrol | d7116569b689875f5d149273150c3ce4c1319cd0 | [
"Apache-2.0"
] | 18 | 2019-02-19T05:59:34.000Z | 2021-05-18T03:05:30.000Z | missioncontrol/home/migrations/0010_pass_script.py | fleetspace/missioncontrol | d7116569b689875f5d149273150c3ce4c1319cd0 | [
"Apache-2.0"
] | 3 | 2019-01-31T02:07:38.000Z | 2019-08-04T14:52:02.000Z | # Generated by Django 2.1.4 on 2019-01-02 02:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("home", "0009_pass_external_id")]
operations = [
migrations.AddField(
model_name="pass",
name="script",
field=models.T... | 23.318182 | 66 | 0.54191 |
330968b3a20dd50ec3acfe9d6eb10b1c3b5fabe8 | 10,141 | py | Python | gammapy/maps/wcs/core.py | isu-veritas/gammapy | 715b041d7d3925bd51109dc9534634263a2f2d12 | [
"BSD-3-Clause"
] | null | null | null | gammapy/maps/wcs/core.py | isu-veritas/gammapy | 715b041d7d3925bd51109dc9534634263a2f2d12 | [
"BSD-3-Clause"
] | null | null | null | gammapy/maps/wcs/core.py | isu-veritas/gammapy | 715b041d7d3925bd51109dc9534634263a2f2d12 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import json
import numpy as np
from astropy.io import fits
import astropy.units as u
from ..core import Map
from ..io import JsonQuantityEncoder, find_bands_hdu, find_hdu
from .geom import WcsGeom
from .io import identify_wcs_format
__all__ = ["WcsMap"]
... | 33.358553 | 108 | 0.546199 |
330969a51edbf626435ea2ce83c929b09479e6b6 | 18,392 | py | Python | mathics/builtin/assignments/information.py | rebcabin/mathics-core | 0cbf808fb9fb91e0a32d0aa9d1af1477d0258f41 | [
"Apache-2.0"
] | null | null | null | mathics/builtin/assignments/information.py | rebcabin/mathics-core | 0cbf808fb9fb91e0a32d0aa9d1af1477d0258f41 | [
"Apache-2.0"
] | null | null | null | mathics/builtin/assignments/information.py | rebcabin/mathics-core | 0cbf808fb9fb91e0a32d0aa9d1af1477d0258f41 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Information about Assignments
"""
from mathics.builtin.base import Builtin, PrefixOperator
from mathics.core.rules import Rule
from mathics.core.expression import Expression
from mathics.core.symbols import Symbol, SymbolNull
from mathics.core.atoms import String
from mathics.builtin.as... | 31.875217 | 110 | 0.527947 |
3309815cec57a60768b9e577cf4731b67876bcf1 | 2,048 | py | Python | two1/commands/util/wallet.py | febuiles/two1-python | 88704487dba7715f97a0980781d4c0efb2ea7fc4 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2016-09-10T18:14:33.000Z | 2016-09-10T18:14:33.000Z | two1/commands/util/wallet.py | febuiles/two1-python | 88704487dba7715f97a0980781d4c0efb2ea7fc4 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | two1/commands/util/wallet.py | febuiles/two1-python | 88704487dba7715f97a0980781d4c0efb2ea7fc4 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2020-11-04T05:01:17.000Z | 2020-11-04T05:01:17.000Z | """Utility functions for user wallets."""
# standard python imports
import json
import os
import logging
# 3rd party imports
import click
# two1 imports
import two1
import two1.wallet as wallet
import two1.wallet.daemonizer as daemonizer
import two1.wallet.exceptions as exceptions
import two1.commands.util.uxstring a... | 33.032258 | 103 | 0.740234 |
3309acab4b72f7e65bfbbcfaae02e3c87d07b86a | 892 | py | Python | src/infi/instruct/string_macros.py | jasonjorge/infi.asi | 78a4c34a421102f99b959a659cf7303804627d9b | [
"BSD-3-Clause"
] | 2 | 2015-01-12T21:16:06.000Z | 2019-12-12T05:59:56.000Z | src/infi/instruct/string_macros.py | jasonjorge/infi.asi | 78a4c34a421102f99b959a659cf7303804627d9b | [
"BSD-3-Clause"
] | 4 | 2015-02-24T09:18:00.000Z | 2021-06-16T12:55:19.000Z | src/infi/instruct/string_macros.py | jasonjorge/infi.asi | 78a4c34a421102f99b959a659cf7303804627d9b | [
"BSD-3-Clause"
] | 4 | 2015-01-07T12:37:54.000Z | 2018-02-08T15:07:17.000Z | from .string import *
from .struct import Field
def PaddedString(name, size, padding=b"\x00", padding_direction=PADDING_DIRECTION_RIGHT, default=None):
if default is not None and isinstance(size, int):
assert len(default) <= size
return Field(name, PaddedStringMarshal(size, padding, padding_direction),... | 40.545455 | 111 | 0.7713 |
3309c67132f9776a12305a729e5e63b6d4c106a3 | 405 | py | Python | opcalendar/migrations/0021_eventhost_logo_url.py | buahaha/allianceauth-opcalendar | 44e50e06eac4b5c0e6b809e5ca2638af5e49145f | [
"MIT"
] | null | null | null | opcalendar/migrations/0021_eventhost_logo_url.py | buahaha/allianceauth-opcalendar | 44e50e06eac4b5c0e6b809e5ca2638af5e49145f | [
"MIT"
] | null | null | null | opcalendar/migrations/0021_eventhost_logo_url.py | buahaha/allianceauth-opcalendar | 44e50e06eac4b5c0e6b809e5ca2638af5e49145f | [
"MIT"
] | null | null | null | # Generated by Django 3.1.6 on 2021-02-22 12:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("opcalendar", "0020_auto_20210125_1007"),
]
operations = [
migrations.AddField(
model_name="eventhost",
name="logo_ur... | 21.315789 | 63 | 0.609877 |
3309d5e458bb2575d12aded1297d00ea5baf63da | 5,369 | py | Python | database/fm_database/paginate.py | nstoik/farm_monitor | 592ab281e6ed364396c1db702f72a81d28080004 | [
"Apache-2.0"
] | 1 | 2017-10-22T03:15:58.000Z | 2017-10-22T03:15:58.000Z | database/fm_database/paginate.py | nstoik/farm_monitor | 592ab281e6ed364396c1db702f72a81d28080004 | [
"Apache-2.0"
] | 33 | 2016-06-20T19:43:47.000Z | 2022-01-21T23:19:11.000Z | database/fm_database/paginate.py | nstoik/farm_monitor | 592ab281e6ed364396c1db702f72a81d28080004 | [
"Apache-2.0"
] | null | null | null | """Module to add pagination to the database.
Taken from https://github.com/pallets/flask-sqlalchemy/blob/main/src/flask_sqlalchemy/__init__.py#L342
"""
from math import ceil
from sqlalchemy.orm import Query
class Pagination:
"""Internal helper class returned by :meth:`BaseQuery.paginate`.
You can also cons... | 33.767296 | 102 | 0.566586 |
3309e687da1cecafce835a4f6b52a0285f8af75b | 1,784 | py | Python | python/linked_list/0025_reverse_nodes_in_k_group.py | linshaoyong/leetcode | ea052fad68a2fe0cbfa5469398508ec2b776654f | [
"MIT"
] | 6 | 2019-07-15T13:23:57.000Z | 2020-01-22T03:12:01.000Z | python/linked_list/0025_reverse_nodes_in_k_group.py | linshaoyong/leetcode | ea052fad68a2fe0cbfa5469398508ec2b776654f | [
"MIT"
] | null | null | null | python/linked_list/0025_reverse_nodes_in_k_group.py | linshaoyong/leetcode | ea052fad68a2fe0cbfa5469398508ec2b776654f | [
"MIT"
] | 1 | 2019-07-24T02:15:31.000Z | 2019-07-24T02:15:31.000Z | # Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def reverseKGroup(self, head, k):
"""
:type head: ListNode
:type k: int
:rtype: ListNode
"""
curr = head
... | 21.756098 | 46 | 0.527466 |
3309e947a5754b40cd7837ed114c3a435605ce88 | 2,536 | py | Python | appengine/components/components/prpc/discovery/service_test.py | stefb965/luci-py | e0a8a5640c4104e5c90781d833168aa8a8d1f24d | [
"Apache-2.0"
] | null | null | null | appengine/components/components/prpc/discovery/service_test.py | stefb965/luci-py | e0a8a5640c4104e5c90781d833168aa8a8d1f24d | [
"Apache-2.0"
] | null | null | null | appengine/components/components/prpc/discovery/service_test.py | stefb965/luci-py | e0a8a5640c4104e5c90781d833168aa8a8d1f24d | [
"Apache-2.0"
] | 1 | 2020-07-05T19:54:40.000Z | 2020-07-05T19:54:40.000Z | #!/usr/bin/env python
# Copyright 2018 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
import sys
import unittest
from test_support import test_env
test_env.setup_test_env()
from google.protobuf import descrip... | 23.054545 | 75 | 0.698344 |
330a15d6945cfb28b2d90ea495a1e9a52c8c51f5 | 590 | py | Python | app/__init__.py | vincentouma/News_booletins | b96260075971fa2f4621df2c2186981e66e06ebe | [
"Unlicense"
] | null | null | null | app/__init__.py | vincentouma/News_booletins | b96260075971fa2f4621df2c2186981e66e06ebe | [
"Unlicense"
] | null | null | null | app/__init__.py | vincentouma/News_booletins | b96260075971fa2f4621df2c2186981e66e06ebe | [
"Unlicense"
] | 1 | 2019-11-27T08:06:19.000Z | 2019-11-27T08:06:19.000Z | from flask import Flask
from flask import Flask
from flask_bootstrap import Bootstrap
from config import config_options
bootstrap = Bootstrap()
def create_app(config_name):
app = Flask(__name__)
# create the app configurations
app.config.from_object(config_options[config_name])
# Initializing flas... | 21.071429 | 55 | 0.759322 |
330a23d218b7a1881c40004c3f7539ac4db9ca07 | 6,303 | py | Python | tuna/parts/storage/tests/testfilestorage.py | russellnakamura/thetuna | 0e445baf780fb65e1d92fe1344ebdf21bf81573c | [
"MIT"
] | null | null | null | tuna/parts/storage/tests/testfilestorage.py | russellnakamura/thetuna | 0e445baf780fb65e1d92fe1344ebdf21bf81573c | [
"MIT"
] | null | null | null | tuna/parts/storage/tests/testfilestorage.py | russellnakamura/thetuna | 0e445baf780fb65e1d92fe1344ebdf21bf81573c | [
"MIT"
] | null | null | null |
# python standard library
import unittest
import shutil
import os
# third party
try:
from mock import MagicMock, mock_open, patch
except ImportError:
pass
# this package
from ape.parts.storage.filestorage import FileStorage, AMBIGUOUS
from ape.commoncode.errors import ApeError
PATH = 'ape/call'
class T... | 32.158163 | 77 | 0.57433 |
330a2e557261b04e8a6e3fac6a11f87129c9c79a | 7,184 | py | Python | lib/CloudReset.py | joshuapwalton/cloud-reset | 0589f04185998e4094c319a2b5a01925401ab7f2 | [
"MIT"
] | 3 | 2020-02-02T18:48:24.000Z | 2020-09-18T19:00:45.000Z | lib/CloudReset.py | joshuapwalton/cloud-reset | 0589f04185998e4094c319a2b5a01925401ab7f2 | [
"MIT"
] | null | null | null | lib/CloudReset.py | joshuapwalton/cloud-reset | 0589f04185998e4094c319a2b5a01925401ab7f2 | [
"MIT"
] | 1 | 2020-07-20T15:29:08.000Z | 2020-07-20T15:29:08.000Z | """
Reset an AWS account by deleting all resources specified
in a YAML configuration file
"""
import functools
import importlib
import os
import yaml
import boto3
import re
import sys
import warnings
from pprint import pprint
class CloudReset:
""" Reset an AWS account by deleting all resources specified
in a ... | 35.389163 | 106 | 0.60941 |
330a8e751ae9d28405a0bea1f7dd02300f030b7a | 1,599 | py | Python | setup.py | Geeks-Trident-LLC/regexapp | a9d7576834859bb53b5c7b0e60c5b2089b105183 | [
"BSD-3-Clause"
] | null | null | null | setup.py | Geeks-Trident-LLC/regexapp | a9d7576834859bb53b5c7b0e60c5b2089b105183 | [
"BSD-3-Clause"
] | null | null | null | setup.py | Geeks-Trident-LLC/regexapp | a9d7576834859bb53b5c7b0e60c5b2089b105183 | [
"BSD-3-Clause"
] | null | null | null | """Packaging regexapp."""
from setuptools import setup, find_packages
setup(
name='regexapp',
version='0.3.1',
license='BSD-3-Clause',
license_files=['LICENSE'],
description='The application to generate regex pattern.',
long_description=open('README.md').read(),
long_description_content_t... | 32.632653 | 71 | 0.601001 |
330af9360c1adfb5232f939f9f6dbf1ab6e13a8b | 6,760 | py | Python | src/flowrect/simulations/pdes/FR.py | jokteur/ASMA | 25ac8a0455c680232d56c18d31de62c3188b7153 | [
"MIT"
] | 2 | 2021-11-01T09:13:17.000Z | 2022-03-08T14:34:16.000Z | src/flowrect/simulations/pdes/FR.py | jokteur/ASMA | 25ac8a0455c680232d56c18d31de62c3188b7153 | [
"MIT"
] | null | null | null | src/flowrect/simulations/pdes/FR.py | jokteur/ASMA | 25ac8a0455c680232d56c18d31de62c3188b7153 | [
"MIT"
] | null | null | null | import numpy as np
import time
from numba import jit, prange
from ..util import f_SRM
# Not used
# @jit(nopython=True, cache=True)
def _fast_pde(
time_end,
dt,
a_grid,
a_grid_size,
exp_a,
Gamma,
c,
Delta,
theta,
lambda_kappa,
I_ext,
I_ext_time,
interaction,
m_t0... | 23.719298 | 96 | 0.523964 |
330b03be1c962b64a17123cba7a37b3319d6f0b7 | 19,614 | py | Python | sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_service_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-01-24T08:54:57.000Z | 2022-01-24T08:54:57.000Z | sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_service_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 9 | 2022-03-25T19:35:49.000Z | 2022-03-31T06:09:47.000Z | sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_service_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-02-14T21:43:29.000Z | 2022-02-14T21:43:29.000Z | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | 44.986239 | 209 | 0.663914 |
330b2166a1dc70dbef7a69c3b7a5286a082287ea | 924 | py | Python | annotypes/_compat.py | thomascobb/annotypes | 3dac2e2970a67f667b707b0d248f58ac9a06551b | [
"Apache-2.0"
] | 2 | 2019-08-16T11:40:21.000Z | 2019-10-25T12:43:48.000Z | annotypes/_compat.py | thomascobb/annotypes | 3dac2e2970a67f667b707b0d248f58ac9a06551b | [
"Apache-2.0"
] | 3 | 2019-03-12T11:03:23.000Z | 2019-07-02T10:24:28.000Z | annotypes/_compat.py | thomascobb/annotypes | 3dac2e2970a67f667b707b0d248f58ac9a06551b | [
"Apache-2.0"
] | 1 | 2020-08-14T13:52:01.000Z | 2020-08-14T13:52:01.000Z | import inspect
import sys
# Taken from six
def add_metaclass(metaclass):
"""Class decorator for creating a class with a metaclass."""
def wrapper(cls):
orig_vars = cls.__dict__.copy()
orig_vars.pop('__dict__', None)
orig_vars.pop('__weakref__', None)
return metaclass(cls.__name... | 24.972973 | 73 | 0.656926 |
330b6df07690a25b4a564c803b66067e7303a25f | 2,866 | py | Python | chapter3/transfic/transfic/command/obo_to_map.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | 1 | 2015-12-22T00:53:18.000Z | 2015-12-22T00:53:18.000Z | chapter3/transfic/transfic/command/obo_to_map.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | chapter3/transfic/transfic/command/obo_to_map.py | chris-zen/phd-thesis | 1eefdff8e7ca1910304e27ae42551dc64496b101 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
import os
import argparse
import logging
from bgcore import tsv
from bgcore import obo
from bgcore import logging as bglogging
def main():
parser = argparse.ArgumentParser(
description="Create a tree for the terms with the relation is_a in an OBO ontology")
parser.add_argument("obo_path", ... | 28.949495 | 86 | 0.673064 |
330b87db0dd124e2f51f6569b4a23450f2421a47 | 1,017 | py | Python | src/ggrc_basic_permissions/migrations/versions/20130923130503_3148b80be376_role_scopes_for_ui_h.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2018-03-30T11:28:48.000Z | 2018-03-30T11:28:48.000Z | src/ggrc_basic_permissions/migrations/versions/20130923130503_3148b80be376_role_scopes_for_ui_h.py | trevordonnelly/ggrc-core | 499cf0d3cce70737b080991b12c203ec22015cea | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2018-07-06T00:04:23.000Z | 2021-02-26T21:13:20.000Z | src/ggrc_basic_permissions/migrations/versions/20130923130503_3148b80be376_role_scopes_for_ui_h.py | zidarsk8/ggrc-core | 2509c989eddf434249d3bef50c21e08dbf56c1a4 | [
"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>
"""Role scopes for UI hinting.
Revision ID: 3148b80be376
Revises: 5b33357784a
Create Date: 2013-09-23 13:05:03.158064
"""
# revision identifiers, used by Alembic.
revision = '3148b80be376'
down_revision =... | 26.076923 | 78 | 0.684366 |
330ba6605f42fd25463246474a41171dd3d85de9 | 1,918 | py | Python | pylonsapp/pylonsapp/controllers/couchdb.py | coredumperror/formalchemy | 6d89bb3ac19248e114684df17bbf3885dc26de3e | [
"MIT"
] | 20 | 2015-01-25T13:54:08.000Z | 2021-03-09T16:54:53.000Z | pylonsapp/pylonsapp/controllers/couchdb.py | coredumperror/formalchemy | 6d89bb3ac19248e114684df17bbf3885dc26de3e | [
"MIT"
] | 11 | 2015-02-05T16:36:19.000Z | 2020-11-13T11:41:19.000Z | pylonsapp/pylonsapp/controllers/couchdb.py | coredumperror/formalchemy | 6d89bb3ac19248e114684df17bbf3885dc26de3e | [
"MIT"
] | 12 | 2015-02-19T14:06:21.000Z | 2021-07-30T08:44:45.000Z | __doc__ = """This is an example on ow to setup a CRUD UI with couchdb as
backend"""
import os
import logging
import pylonsapp
from couchdbkit import *
from webhelpers.paginate import Page
from pylonsapp.lib.base import BaseController, render
from couchdbkit.loaders import FileSystemDocsLoader
from formalchemy.ext impor... | 31.442623 | 123 | 0.735141 |
330bac057a27893bada3ac0d185f96a95e7baaa4 | 246 | py | Python | dnac_config.py | CiscoDevNet/DNAC-Subscription | fcc360f80fa60a7995abefd9131758f2ac0e7783 | [
"MIT"
] | 3 | 2020-02-13T19:51:32.000Z | 2020-07-23T20:02:06.000Z | dnac_config.py | CiscoDevNet/DNAC-Subscription | fcc360f80fa60a7995abefd9131758f2ac0e7783 | [
"MIT"
] | null | null | null | dnac_config.py | CiscoDevNet/DNAC-Subscription | fcc360f80fa60a7995abefd9131758f2ac0e7783 | [
"MIT"
] | 1 | 2020-06-27T06:39:44.000Z | 2020-06-27T06:39:44.000Z | import os
DNA_CENTER_BASE_URL= os.getenv("DNA_CENTER_BASE_URL") or "https://sandboxdnac2.cisco.com:8080"
DNA_CENTER_USERNAME= os.getenv("DNA_CENTER_USERNAME") or "devnetuser"
DNA_CENTER_PASSWORD= os.getenv("DNA_CENTER_PASSWORD") or "Cisco123!"
| 35.142857 | 94 | 0.808943 |
330bad26f6dcee8da212885d7cb122df3505900c | 17,407 | py | Python | parl/remote/worker.py | tanzeyy/PARL | c9be73a87b6618e5a3b2c945327478f365caab74 | [
"Apache-2.0"
] | 1 | 2020-12-24T06:23:08.000Z | 2020-12-24T06:23:08.000Z | parl/remote/worker.py | Wangding-han/PARL | b966fa787db2bd8ccfcc8f7afe49e53f633f217c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | parl/remote/worker.py | Wangding-han/PARL | b966fa787db2bd8ccfcc8f7afe49e53f633f217c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright (c) 2019 PaddlePaddle 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 app... | 40.957647 | 122 | 0.619866 |
330bd9f3b909827eea5aaf1547b215e42c5088c8 | 2,532 | py | Python | sdk/compute/azure-mgmt-compute/setup.py | jkeech/azure-sdk-for-python | ab2b0ea3ef7528900a2f2e27cc7deda440b53f70 | [
"MIT"
] | null | null | null | sdk/compute/azure-mgmt-compute/setup.py | jkeech/azure-sdk-for-python | ab2b0ea3ef7528900a2f2e27cc7deda440b53f70 | [
"MIT"
] | null | null | null | sdk/compute/azure-mgmt-compute/setup.py | jkeech/azure-sdk-for-python | ab2b0ea3ef7528900a2f2e27cc7deda440b53f70 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#----------------------------------------------------------------... | 34.216216 | 91 | 0.60624 |
330c0e72cd8f8b57f4919dd9dfa75f52afccbd40 | 20 | py | Python | btd6_memory_info/generated/RSG/Promises/promises.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | btd6_memory_info/generated/RSG/Promises/promises.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | btd6_memory_info/generated/RSG/Promises/promises.py | 56kyle/bloons_auto | 419d55b51d1cddc49099593970adf1c67985b389 | [
"MIT"
] | null | null | null | class Promises: pass | 20 | 20 | 0.85 |
330c216fef8b02535deb35e8276d80e3c60c2b12 | 8,478 | py | Python | sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/aio/operations/_quota_by_counter_keys_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2021-09-07T18:39:05.000Z | 2021-09-07T18:39:05.000Z | sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/aio/operations/_quota_by_counter_keys_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/aio/operations/_quota_by_counter_keys_operations.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 48.724138 | 205 | 0.704293 |
330c283730c1852361a54278e842daf27cefd052 | 3,113 | py | Python | amrtotext.py | lbda1/OpenNMT-py-AMR-to-text | b59347246fb330feff4139b677014554e8b9aad0 | [
"MIT"
] | 26 | 2019-03-29T07:52:43.000Z | 2021-12-29T02:41:31.000Z | amrtotext.py | lbda1/OpenNMT-py-AMR-to-text | b59347246fb330feff4139b677014554e8b9aad0 | [
"MIT"
] | 1 | 2020-02-15T10:31:58.000Z | 2020-02-17T14:19:26.000Z | amrtotext.py | lbda1/OpenNMT-py-AMR-to-text | b59347246fb330feff4139b677014554e8b9aad0 | [
"MIT"
] | 5 | 2019-06-30T19:57:46.000Z | 2021-04-01T07:56:53.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, unicode_literals
import argparse
import hashlib
import time
import os
import subprocess
from onmt.translate.translator import build_translator
import onmt.inputters
import onmt.translate
import onmt
import onmt.model_builder
import onmt.mo... | 31.765306 | 188 | 0.647286 |
330c83588c210bcd2f8844929ce9262c40b3378e | 9,152 | py | Python | txmongo/_gridfs/__init__.py | twisted/txmongo | 5cbfca62f70c0413b3ece40a20fc965878e3f7ed | [
"Apache-2.0"
] | 122 | 2015-03-20T13:30:53.000Z | 2021-08-18T07:04:20.000Z | txmongo/_gridfs/__init__.py | guotengx/txmongo | 5cbfca62f70c0413b3ece40a20fc965878e3f7ed | [
"Apache-2.0"
] | 191 | 2015-04-14T07:58:58.000Z | 2021-09-08T07:38:01.000Z | txmongo/_gridfs/__init__.py | guotengx/txmongo | 5cbfca62f70c0413b3ece40a20fc965878e3f7ed | [
"Apache-2.0"
] | 54 | 2015-04-21T07:56:02.000Z | 2021-12-22T08:40:26.000Z | # Copyright 2009-2010 10gen, 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,... | 37.355102 | 100 | 0.620629 |
330c9c94632b959e44b582810138773e332ffd15 | 2,208 | py | Python | tests/db/__init__.py | a-wakeel/Device-Registration-Subsystem | dd9fa387e2087a6ccea9676303debe640bd99422 | [
"Unlicense"
] | 6 | 2018-11-07T12:41:30.000Z | 2020-04-12T18:07:03.000Z | tests/db/__init__.py | a-wakeel/Device-Registration-Subsystem | dd9fa387e2087a6ccea9676303debe640bd99422 | [
"Unlicense"
] | 1 | 2020-10-20T12:33:18.000Z | 2020-10-20T12:33:18.000Z | tests/db/__init__.py | a-wakeel/Device-Registration-Subsystem | dd9fa387e2087a6ccea9676303debe640bd99422 | [
"Unlicense"
] | 10 | 2018-11-12T06:15:19.000Z | 2021-11-18T05:45:12.000Z | """
DRS Package for DB unit tests
Copyright (c) 2018-2021 Qualcomm Technologies, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met:
Redistribut... | 129.882353 | 844 | 0.807518 |
330cb29f713cfaa3220bba2ece2a8a6fe2c64293 | 1,151 | py | Python | toontown/coghq/CashbotMintLavaRoomFoyer_Battle00_Cogs.py | LittleNed/toontown-stride | 1252a8f9a8816c1810106006d09c8bdfe6ad1e57 | [
"Apache-2.0"
] | 3 | 2020-01-02T08:43:36.000Z | 2020-07-05T08:59:02.000Z | toontown/coghq/CashbotMintLavaRoomFoyer_Battle00_Cogs.py | NoraTT/Historical-Commits-Project-Altis-Source | fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179 | [
"Apache-2.0"
] | null | null | null | toontown/coghq/CashbotMintLavaRoomFoyer_Battle00_Cogs.py | NoraTT/Historical-Commits-Project-Altis-Source | fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179 | [
"Apache-2.0"
] | 4 | 2019-06-20T23:45:23.000Z | 2020-10-14T20:30:15.000Z | from toontown.coghq.SpecImports import *
from toontown.toonbase import ToontownGlobals
CogParent = 10000
BattleParent = 10005
BattleCellId = 0
BattleCells = {BattleCellId: {'parentEntId': BattleParent,
'pos': Point3(0, 0, 0)}}
CogData = [{'parentEntId': CogParent,
'boss': 0,
'level': ToontownGlobals... | 25.577778 | 58 | 0.648132 |
330cb47420dc3faa02d70fa2cfb23d0a2e0541c3 | 8,583 | py | Python | posetta/lib/plugins.py | gahjelle/posetta | 6e052c19a64b0bbdd0b9a7d3ac703000e615d53e | [
"MIT"
] | 2 | 2018-05-15T00:50:34.000Z | 2019-02-25T11:08:27.000Z | posetta/lib/plugins.py | gahjelle/posetta | 6e052c19a64b0bbdd0b9a7d3ac703000e615d53e | [
"MIT"
] | 13 | 2018-07-06T08:52:52.000Z | 2018-12-07T13:49:34.000Z | posetta/lib/plugins.py | gahjelle/posetta | 6e052c19a64b0bbdd0b9a7d3ac703000e615d53e | [
"MIT"
] | 2 | 2018-04-28T14:31:40.000Z | 2018-05-14T21:19:27.000Z | """Set up a simple plug-in architecture for Posetta
Description:
------------
In order to be able to add readers and writers etc without needing to hardcode
names, but rather pick them from the command line or similar, we use a simple
plug-in architecture. The plug-in mechanism is based on the different plug-ins
regi... | 30.43617 | 88 | 0.669113 |
330cd479c534342127a01d898e0a31b01ab3b7e7 | 7,729 | py | Python | acq4/devices/PVCam/PVCam.py | tropp/ACQ4 | 792e05e99cedfc175593d200aeabecd6fa6304ce | [
"MIT"
] | null | null | null | acq4/devices/PVCam/PVCam.py | tropp/ACQ4 | 792e05e99cedfc175593d200aeabecd6fa6304ce | [
"MIT"
] | null | null | null | acq4/devices/PVCam/PVCam.py | tropp/ACQ4 | 792e05e99cedfc175593d200aeabecd6fa6304ce | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import with_statement
from acq4.devices.Camera import Camera, CameraTask
from acq4.drivers.pvcam import PVCam as PVCDriver
from PyQt4 import QtCore
import time, sys, traceback
from numpy import *
from acq4.util.metaarray import *
import acq4.util.ptime as ptime
from acq4.util.Mut... | 35.948837 | 150 | 0.551818 |
330cdd8a67ad4226fb0c510b82cd45019b06b064 | 2,306 | py | Python | tools/giws/datatypes/CharBufferDataGiws.py | sguazt/prometheus | 03cdf3ccb283ed69c6fb84f18d89118abf95f837 | [
"Apache-2.0"
] | null | null | null | tools/giws/datatypes/CharBufferDataGiws.py | sguazt/prometheus | 03cdf3ccb283ed69c6fb84f18d89118abf95f837 | [
"Apache-2.0"
] | null | null | null | tools/giws/datatypes/CharBufferDataGiws.py | sguazt/prometheus | 03cdf3ccb283ed69c6fb84f18d89118abf95f837 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python -u
# Copyright or Copr. INRIA/Scilab - Sylvestre LEDRU
#
# Sylvestre LEDRU - <sylvestre.ledru@scilab.org> <sylvestre@ledru.info>
#
# This software is a computer program whose purpose is to generate C++ wrapper
# for Java objects/methods.
#
# This software is governed by the CeCILL license under Fr... | 38.433333 | 79 | 0.753252 |
330cdf3133f09cfca9ebd27c913ecc442d135d5d | 7,576 | py | Python | pandaserver/test/datasetCallbackListener.py | virthead/panda-server | d2b65f788c4539dc103641ca2a8052cb18729d44 | [
"Apache-2.0"
] | 7 | 2015-03-30T14:15:35.000Z | 2021-12-22T06:48:22.000Z | pandaserver/test/datasetCallbackListener.py | virthead/panda-server | d2b65f788c4539dc103641ca2a8052cb18729d44 | [
"Apache-2.0"
] | 16 | 2015-06-01T13:48:01.000Z | 2022-02-08T15:03:32.000Z | pandaserver/test/datasetCallbackListener.py | virthead/panda-server | d2b65f788c4539dc103641ca2a8052cb18729d44 | [
"Apache-2.0"
] | 15 | 2015-03-02T08:57:35.000Z | 2022-03-01T09:48:45.000Z | import os
import re
import sys
import ssl
import time
import signal
import socket
import optparse
import datetime
import stomp
from pandaserver.config import panda_config
from pandaserver.brokerage.SiteMapper import SiteMapper
from pandaserver.dataservice import DataServiceUtils
from pandaserver.dataservice.DDMHandler... | 36.599034 | 120 | 0.594773 |
330ce0a7aa4629e33abfc9df53b6e81fd4534049 | 2,795 | py | Python | python/pymei/Modules/midi.py | Breakend/libmei | c031be79a2775e8bb9b47e1057e1398232d4b293 | [
"MIT"
] | null | null | null | python/pymei/Modules/midi.py | Breakend/libmei | c031be79a2775e8bb9b47e1057e1398232d4b293 | [
"MIT"
] | null | null | null | python/pymei/Modules/midi.py | Breakend/libmei | c031be79a2775e8bb9b47e1057e1398232d4b293 | [
"MIT"
] | 1 | 2021-02-23T21:13:47.000Z | 2021-02-23T21:13:47.000Z |
"""
Copyright (c) 2012 Andrew Hankinson
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, ... | 27.135922 | 74 | 0.677639 |
330ce11a080b338e88617837d445b28f0f51ea59 | 6,817 | py | Python | benchmark_dashboard/deployments/forms.py | tcpcloud/horizon-rally-dashboard | f1fe7c6437bc04f1dfec66d1688f849239eb1dcf | [
"Apache-2.0"
] | 6 | 2015-09-10T07:18:05.000Z | 2017-09-07T05:27:15.000Z | benchmark_dashboard/deployments/forms.py | michaelkuty/horizon-benchmark-dashboard | f1fe7c6437bc04f1dfec66d1688f849239eb1dcf | [
"Apache-2.0"
] | 3 | 2016-08-14T07:49:26.000Z | 2017-04-25T08:07:04.000Z | benchmark_dashboard/deployments/forms.py | michaelkuty/horizon-benchmark-dashboard | f1fe7c6437bc04f1dfec66d1688f849239eb1dcf | [
"Apache-2.0"
] | null | null | null | import json
import logging
import yaml
import six
from django.utils.translation import ugettext_lazy as _
from django.views.decorators.debug import sensitive_variables # noqa
from django.conf import settings
from horizon import exceptions
from horizon import forms
from horizon import messages
from oslo.utils import st... | 36.068783 | 97 | 0.607599 |
330cea3d0068b5869b614c871bbe9d4d811e805b | 4,072 | py | Python | tools/init3d/artsrequests.py | DaAwesomeP/ARENA-py | 876a6b0c6800d7c2b1a592fd5f25529b9c140efc | [
"BSD-3-Clause"
] | 4 | 2021-01-22T23:49:52.000Z | 2022-03-04T06:01:18.000Z | tools/init3d/artsrequests.py | DaAwesomeP/ARENA-py | 876a6b0c6800d7c2b1a592fd5f25529b9c140efc | [
"BSD-3-Clause"
] | 50 | 2020-08-14T22:24:36.000Z | 2022-03-18T20:41:12.000Z | tools/init3d/artsrequests.py | DaAwesomeP/ARENA-py | 876a6b0c6800d7c2b1a592fd5f25529b9c140efc | [
"BSD-3-Clause"
] | 10 | 2019-10-28T20:15:18.000Z | 2021-06-29T18:02:06.000Z | import json
import uuid
import requests
class Type():
rt = 'runtime'
mod = 'module'
class Result():
ok = 'ok'
err = 'error'
class Action():
create = 'create'
delete = 'delete'
update = 'update'
class FileType():
WA = 'WA'
PY = 'PY'
class ARTSResponseMsg(dict):
def __in... | 32.062992 | 127 | 0.418959 |
330cf681264632f69cf544dc27e34ad1153ecaa7 | 4,033 | py | Python | langs.py | Kerrigan29a/cryptosystems-study | 52eb9da3ad42e9d28046cabd6f418f6fbf4ade86 | [
"BSD-3-Clause"
] | 1 | 2016-01-24T17:56:52.000Z | 2016-01-24T17:56:52.000Z | langs.py | Kerrigan29a/cryptosystems-study | 52eb9da3ad42e9d28046cabd6f418f6fbf4ade86 | [
"BSD-3-Clause"
] | null | null | null | langs.py | Kerrigan29a/cryptosystems-study | 52eb9da3ad42e9d28046cabd6f418f6fbf4ade86 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module that manages information about the language through a JSON file
-----
Copyright (c) 2011 Javier Escalada Gómez
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following cond... | 30.78626 | 78 | 0.641706 |
330d07bd3ee9c52e5981ac9ecb3f017f7ca2fe27 | 384 | py | Python | xhistogram/test/fixtures.py | gjoseph92/xhistogram | fe1b3faf6c968f0fa1818a2d2377101c92ebaa4c | [
"MIT"
] | null | null | null | xhistogram/test/fixtures.py | gjoseph92/xhistogram | fe1b3faf6c968f0fa1818a2d2377101c92ebaa4c | [
"MIT"
] | null | null | null | xhistogram/test/fixtures.py | gjoseph92/xhistogram | fe1b3faf6c968f0fa1818a2d2377101c92ebaa4c | [
"MIT"
] | null | null | null | import dask
import dask.array as dsa
def empty_dask_array(shape, dtype=float, chunks=None):
# a dask array that errors if you try to comput it
def raise_if_computed():
raise ValueError("Triggered forbidden computation")
a = dsa.from_delayed(dask.delayed(raise_if_computed)(), shape, dtype)
if ... | 25.6 | 73 | 0.700521 |
330d222dbf70fcfa02ffd47261c0513d9dd6e0e9 | 1,719 | py | Python | tensorflow/contrib/kfac/python/ops/utils_lib.py | tianyapiaozi/tensorflow | fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a | [
"Apache-2.0"
] | 71 | 2017-05-25T16:02:15.000Z | 2021-06-09T16:08:08.000Z | tensorflow/contrib/kfac/python/ops/utils_lib.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 133 | 2017-04-26T16:49:49.000Z | 2019-10-15T11:39:26.000Z | tensorflow/contrib/kfac/python/ops/utils_lib.py | shrikunjsarda/tensorflow | 7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae | [
"Apache-2.0"
] | 31 | 2018-09-11T02:17:17.000Z | 2021-12-15T10:33:35.000Z | # Copyright 2017 The TensorFlow 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 applica... | 33.705882 | 80 | 0.726585 |
330d2d0bf9ff05758dbed4d7cd54ca45d3dde861 | 339 | py | Python | contrib/setup.py | joodo/loser-fan | ad6be4fb171ee7a8ca1fa8da572acaf11a1548b9 | [
"MIT"
] | null | null | null | contrib/setup.py | joodo/loser-fan | ad6be4fb171ee7a8ca1fa8da572acaf11a1548b9 | [
"MIT"
] | null | null | null | contrib/setup.py | joodo/loser-fan | ad6be4fb171ee7a8ca1fa8da572acaf11a1548b9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(name='fanfouapi',
version='0.1.0',
description='Python django api',
author='Zeng Ke',
author_email='zengke@fanfou.com',
packages=['fanfouapi', 'fanfouapi.management', 'fanfouapi.management.commands... | 24.214286 | 92 | 0.587021 |
330d68062249a12008b22c6e95655ce3b813b9e9 | 4,715 | py | Python | Rannan_configs/splunk_apps_indexes/apps_configs.tgz_fixed/Splunk_TA_kafka/bin/splunktalib/rest.py | mhassan2/datafabric_splunk | b4a1ba77ad7e1ab84d22cb40da6ff12e6bf16d1e | [
"Apache-2.0"
] | 14 | 2017-12-21T00:17:04.000Z | 2020-07-15T19:00:31.000Z | Rannan_configs/splunk_apps_indexes/apps_configs.tgz_fixed/Splunk_TA_kafka/bin/splunktalib/rest.py | mhassan2/datafabric_splunk | b4a1ba77ad7e1ab84d22cb40da6ff12e6bf16d1e | [
"Apache-2.0"
] | null | null | null | Rannan_configs/splunk_apps_indexes/apps_configs.tgz_fixed/Splunk_TA_kafka/bin/splunktalib/rest.py | mhassan2/datafabric_splunk | b4a1ba77ad7e1ab84d22cb40da6ff12e6bf16d1e | [
"Apache-2.0"
] | 5 | 2018-01-18T17:34:48.000Z | 2019-03-27T09:32:05.000Z | import urllib
import json
from traceback import format_exc
import sys
import os.path as op
sys.path.insert(0, op.dirname(op.abspath(__file__)))
import splunktalib.common.util as scu
import splunktalib.common.log as log
logger = log.Logs().get_logger("util")
from httplib2 import (socks, ProxyInfo, Http)
def splunk... | 36.835938 | 78 | 0.591092 |
330d79ddaaad91d272f5d64ad6b1a892eb0201fa | 2,101 | py | Python | sportsbetting/non_regression_test.py | chokybar/Sports-betting | 8e43bb7b0c4961eb8bc3f4cf4f02780ec0410c76 | [
"MIT"
] | null | null | null | sportsbetting/non_regression_test.py | chokybar/Sports-betting | 8e43bb7b0c4961eb8bc3f4cf4f02780ec0410c76 | [
"MIT"
] | null | null | null | sportsbetting/non_regression_test.py | chokybar/Sports-betting | 8e43bb7b0c4961eb8bc3f4cf4f02780ec0410c76 | [
"MIT"
] | null | null | null | import difflib
import os
import sportsbetting as sb
import sys
from sportsbetting.auxiliary_functions import load_odds
from sportsbetting.user_functions import best_match_under_conditions
def are_identical_files(filename1, filename2):
lines1 = []
lines2 = []
with open(filename1, encoding="utf-8") as f:
... | 41.196078 | 106 | 0.704426 |
330daa3a9fc1164d7a3e41da5401cee188bbedde | 1,239 | py | Python | linked_list/234_palindrome_linked_list.py | shawlu95/Algorithm-Toolbox | b6c7b2228d8e70e0842e0bad607533a2c8322cf0 | [
"MIT"
] | null | null | null | linked_list/234_palindrome_linked_list.py | shawlu95/Algorithm-Toolbox | b6c7b2228d8e70e0842e0bad607533a2c8322cf0 | [
"MIT"
] | null | null | null | linked_list/234_palindrome_linked_list.py | shawlu95/Algorithm-Toolbox | b6c7b2228d8e70e0842e0bad607533a2c8322cf0 | [
"MIT"
] | 2 | 2020-02-07T20:49:02.000Z | 2020-02-11T06:01:55.000Z | class Solution(object):
def isPalindrome(self, head):
"""
:type head: ListNode
:rtype: bool
"""
n = self.length(head)
if n < 2:
return True
lhead = head # pointer to the head of the left half
mid = self.getMiddleLink(head, n)
if... | 23.826923 | 85 | 0.485876 |
330de93720717a22a60b497329e697154da874a5 | 1,016 | py | Python | weallcode/views/careers.py | WeAllCode/coderdojochi | 895e6079d55d0d5822033ff19da014dca578b31d | [
"MIT"
] | 15 | 2019-05-04T00:24:00.000Z | 2021-08-21T16:34:05.000Z | weallcode/views/careers.py | WeAllCode/coderdojochi | 895e6079d55d0d5822033ff19da014dca578b31d | [
"MIT"
] | 73 | 2019-04-24T15:53:42.000Z | 2021-08-06T20:41:41.000Z | weallcode/views/careers.py | WeAllCode/coderdojochi | 895e6079d55d0d5822033ff19da014dca578b31d | [
"MIT"
] | 20 | 2019-04-26T20:13:08.000Z | 2021-06-21T14:53:21.000Z | from django.urls import reverse_lazy
from django.views.generic import TemplateView
from .common import DefaultMetaTags
class CareersView(DefaultMetaTags, TemplateView):
template_name = "weallcode/careers/careers.html"
url = reverse_lazy("weallcode-careers")
title = f"Careers | We All Code"
class Caree... | 30.787879 | 67 | 0.761811 |
330e00b128d047cbe347cf11543e34258f842753 | 4,008 | py | Python | experiments/murtaza/multiworld/camera_ready/pusher/offline_vae.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | null | null | null | experiments/murtaza/multiworld/camera_ready/pusher/offline_vae.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | null | null | null | experiments/murtaza/multiworld/camera_ready/pusher/offline_vae.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | null | null | null | import rlkit.misc.hyperparameter as hyp
from multiworld.envs.mujoco.cameras import sawyer_pusher_camera_upright_v1
from rlkit.launchers.launcher_util import run_experiment
from rlkit.torch.grill.launcher import grill_her_td3_full_experiment
from rlkit.torch.vae.conv_vae import imsize48_default_architecture, \
imsiz... | 33.4 | 134 | 0.537425 |
330e016c852f48bcaf44d290b286cc61afc6c5dd | 3,232 | py | Python | src/Application/PythonScriptModule/samplescripts/chatbot.py | antont/tundra | 5c9b0a3957071f08ab425dff701cdbb34f9e1868 | [
"Apache-2.0"
] | 1 | 2018-04-02T15:38:10.000Z | 2018-04-02T15:38:10.000Z | src/Application/PythonScriptModule/samplescripts/chatbot.py | antont/tundra | 5c9b0a3957071f08ab425dff701cdbb34f9e1868 | [
"Apache-2.0"
] | null | null | null | src/Application/PythonScriptModule/samplescripts/chatbot.py | antont/tundra | 5c9b0a3957071f08ab425dff701cdbb34f9e1868 | [
"Apache-2.0"
] | 1 | 2021-09-04T12:37:34.000Z | 2021-09-04T12:37:34.000Z | """
This is a server-side script,
to act as a counterpart for testing client side scripts.
Now sends chat message periodically and the client side handler
is expected to get them (that works), and respond (working on that now).
"""
import rxactor
import rxavatar
import sys
import clr
asm = clr.LoadAssemblyByName('Op... | 32.32 | 144 | 0.570235 |
330e3a78b9b073add591cb42611ff06e45a54c1d | 9,077 | py | Python | salt/modules/linux_lvm.py | skrobul/salt | ef7fb71082cce7a9783e00b9c65062fefae09263 | [
"Apache-2.0"
] | 1 | 2018-02-03T17:30:56.000Z | 2018-02-03T17:30:56.000Z | salt/modules/linux_lvm.py | skrobul/salt | ef7fb71082cce7a9783e00b9c65062fefae09263 | [
"Apache-2.0"
] | null | null | null | salt/modules/linux_lvm.py | skrobul/salt | ef7fb71082cce7a9783e00b9c65062fefae09263 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Support for Linux LVM2
'''
# Import salt libs
import salt.utils
# Define the module's virtual name
__virtualname__ = 'lvm'
def __virtual__():
'''
Only load the module if lvm is installed
'''
if salt.utils.which('lvm'):
return __virtualname__
return False
def... | 28.454545 | 86 | 0.559877 |
330e55948ae6819e5258b9ea9f2233a6082798cd | 1,096 | py | Python | app/main/views.py | edumorris/pomodoro | cde372be1d5c37dd8221ebd40b684d07fbb472b5 | [
"MIT"
] | null | null | null | app/main/views.py | edumorris/pomodoro | cde372be1d5c37dd8221ebd40b684d07fbb472b5 | [
"MIT"
] | null | null | null | app/main/views.py | edumorris/pomodoro | cde372be1d5c37dd8221ebd40b684d07fbb472b5 | [
"MIT"
] | null | null | null | from flask import render_template, request, redirect, url_for, abort
from . import main
from ..models import Comment, User, Pitch
from flask_login import login_required
from .forms import PitchForm, CommentForm
from .. import db
# Main page
@main.route('/')
def index():
'''
Homepage
'''
return render_... | 24.909091 | 76 | 0.67062 |
330e7e59a6112816ae6d2a99634574a47d05613d | 2,751 | py | Python | roles/openshift_logging/filter_plugins/openshift_logging.py | Ravichandramanupati/openshift | 1720af442f0b02359ce4cc70d32adca15d9d26ab | [
"Apache-2.0"
] | 1 | 2017-11-01T05:46:27.000Z | 2017-11-01T05:46:27.000Z | roles/openshift_logging/filter_plugins/openshift_logging.py | gloria-sentinella/openshift-ansible | e03493f33073965ddf8c49256df80143059a2a51 | [
"Apache-2.0"
] | 3 | 2016-12-01T23:01:36.000Z | 2016-12-02T00:16:48.000Z | roles/openshift_logging/filter_plugins/openshift_logging.py | gloria-sentinella/openshift-ansible | e03493f33073965ddf8c49256df80143059a2a51 | [
"Apache-2.0"
] | 1 | 2018-01-30T05:44:59.000Z | 2018-01-30T05:44:59.000Z | '''
Openshift Logging class that provides useful filters used in Logging
'''
import random
def es_storage(os_logging_facts, dc_name, pvc_claim, root='elasticsearch'):
'''Return a hash with the desired storage for the given ES instance'''
deploy_config = os_logging_facts[root]['deploymentconfigs'].get(dc_nam... | 35.269231 | 119 | 0.659033 |
330e8af566aa5fbd69ade9c8f94f19597ed4d70b | 4,997 | py | Python | lhvqt/variational.py | cwitkowitz/LHVQT | 19e803f9c9d75620ecace8ea760c7e2e097a49bb | [
"MIT"
] | 11 | 2019-11-11T08:07:41.000Z | 2021-03-21T19:45:45.000Z | lhvqt/variational.py | mjhydri/lhvqt | 19e803f9c9d75620ecace8ea760c7e2e097a49bb | [
"MIT"
] | null | null | null | lhvqt/variational.py | mjhydri/lhvqt | 19e803f9c9d75620ecace8ea760c7e2e097a49bb | [
"MIT"
] | 1 | 2019-11-27T09:05:44.000Z | 2019-11-27T09:05:44.000Z | # Author: Frank Cwitkowitz <fcwitkow@ur.rochester.edu>
# My imports
from .utils import *
# Regular imports
from torch.autograd import Variable
from torch.nn.parameter import Parameter
import torch.nn.functional as F
import torch.nn as nn
import torch
import math
class VariationalDropoutConv1d(nn.Conv1d):
"""
... | 37.856061 | 114 | 0.628977 |
330e9e068389cd4ca8f31a9a9a7cec58a30df2e2 | 5,651 | py | Python | pycalc/MAVProxy/modules/mavproxy_terrain.py | joakimzhang/python-electron | 79bc174a14c5286ca739bb7d8ce6522fdc6e9e80 | [
"CC0-1.0"
] | null | null | null | pycalc/MAVProxy/modules/mavproxy_terrain.py | joakimzhang/python-electron | 79bc174a14c5286ca739bb7d8ce6522fdc6e9e80 | [
"CC0-1.0"
] | 8 | 2021-01-28T19:26:22.000Z | 2022-03-24T18:07:24.000Z | pycalc/MAVProxy/modules/mavproxy_terrain.py | joakimzhang/python-electron | 79bc174a14c5286ca739bb7d8ce6522fdc6e9e80 | [
"CC0-1.0"
] | null | null | null | """
MAVProxy terrain handling module
"""
import time
from MAVProxy.modules.mavproxy_map import mp_elevation
from MAVProxy.modules.lib import mp_util
from MAVProxy.modules.lib import mp_module
from MAVProxy.modules.lib import mp_settings
class TerrainModule(mp_module.MPModule):
def __init__(self, mpstate):
... | 38.705479 | 97 | 0.524155 |
330eb7b89ffe27c12468c0ab7f70e3eb2f91d99f | 171 | py | Python | flask_dynamo/errors.py | dcosson/flask-dynamo | 5b0099831b6edc5eb669180831e629ad7ecb9a0e | [
"Unlicense"
] | 124 | 2015-01-15T00:30:54.000Z | 2022-01-23T12:43:02.000Z | flask_dynamo/errors.py | dcosson/flask-dynamo | 5b0099831b6edc5eb669180831e629ad7ecb9a0e | [
"Unlicense"
] | 30 | 2015-01-29T23:13:53.000Z | 2020-10-09T17:57:11.000Z | flask_dynamo/errors.py | dcosson/flask-dynamo | 5b0099831b6edc5eb669180831e629ad7ecb9a0e | [
"Unlicense"
] | 45 | 2015-01-06T20:58:01.000Z | 2022-03-17T15:58:06.000Z | """Custom errors."""
class ConfigurationError(Exception):
"""
This exception is raised if the user hasn't properly configured
Flask-Dynamo.
"""
pass
| 17.1 | 67 | 0.654971 |
330ed60d0177b0d4452b4097531c03fb9caebfda | 32 | py | Python | lcls_live/bmad/__init__.py | jacquelinegarrahan/lcls-live | f413cbc1e077b88109958e816f903dbdc3893b04 | [
"Apache-2.0"
] | null | null | null | lcls_live/bmad/__init__.py | jacquelinegarrahan/lcls-live | f413cbc1e077b88109958e816f903dbdc3893b04 | [
"Apache-2.0"
] | null | null | null | lcls_live/bmad/__init__.py | jacquelinegarrahan/lcls-live | f413cbc1e077b88109958e816f903dbdc3893b04 | [
"Apache-2.0"
] | null | null | null | from .models import LCLSTaoModel | 32 | 32 | 0.875 |
330ef945e9ca6e21a2607306e4ad98400dcc283a | 5,845 | py | Python | plugins/Course/bannerScraper.py | dmimukto/Automata | 86c989bae510c082a47001241e2a513ed3d1fe40 | [
"MIT"
] | null | null | null | plugins/Course/bannerScraper.py | dmimukto/Automata | 86c989bae510c082a47001241e2a513ed3d1fe40 | [
"MIT"
] | null | null | null | plugins/Course/bannerScraper.py | dmimukto/Automata | 86c989bae510c082a47001241e2a513ed3d1fe40 | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
import asyncio
from datetime import datetime
from Globals import mongo_client
# The stuff between these lines was taken from https://github.com/jackharrhy/muntrunk/blob/master/muntrunk/scrape.py
# Full credit to Jack for this stuff
# ---------------------------------------... | 38.453947 | 116 | 0.529855 |
330f223792f0534bfe5e20aba49982b10a478562 | 34,951 | py | Python | oscar/lib/python2.7/site-packages/requests/models.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/requests/models.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | oscar/lib/python2.7/site-packages/requests/models.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
requests.models
~~~~~~~~~~~~~~~
This module contains the primary objects that power Requests.
"""
import collections
import datetime
import sys
# Import encoding now, to avoid implicit import later.
# Implicit import within threads may cause LookupError when standard librar... | 36.829294 | 120 | 0.577895 |
330f23e54b8a49a9ce86d102548e87ea6ef79c94 | 1,448 | py | Python | leetcode/medium/454-4Sum_II.py | shubhamoli/practice | 5a24fdeb6e5f43b821ef0510fe3b343ddda18f22 | [
"MIT"
] | 1 | 2020-02-25T10:32:27.000Z | 2020-02-25T10:32:27.000Z | leetcode/medium/454-4Sum_II.py | shubhamoli/practice | 5a24fdeb6e5f43b821ef0510fe3b343ddda18f22 | [
"MIT"
] | null | null | null | leetcode/medium/454-4Sum_II.py | shubhamoli/practice | 5a24fdeb6e5f43b821ef0510fe3b343ddda18f22 | [
"MIT"
] | null | null | null | """
Leetcode #454
"""
from typing import List
from collections import Counter
class Solution:
# O(N^3)
def fourSumCount_BRUTE(self, A: List[int], B: List[int], C: List[int], D: List[int]) -> int:
if len(A) == len(B) == len(C) == len(D) == 0:
return
D_set = set(D)
co... | 24.542373 | 96 | 0.468923 |
330f26934bb3d0682954269be654c66bc405391e | 145 | py | Python | es_user/apps.py | adam-iris/es-example-django | 012a30bd3ba3f47f86c59cc73773dae79f88379d | [
"MIT"
] | null | null | null | es_user/apps.py | adam-iris/es-example-django | 012a30bd3ba3f47f86c59cc73773dae79f88379d | [
"MIT"
] | null | null | null | es_user/apps.py | adam-iris/es-example-django | 012a30bd3ba3f47f86c59cc73773dae79f88379d | [
"MIT"
] | 2 | 2021-08-05T18:19:34.000Z | 2021-08-12T19:42:18.000Z | from django.apps import AppConfig
class EsUserConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'es_user'
| 20.714286 | 56 | 0.758621 |
330f272dacd0e5211c6f65996cd434f31c12a5ca | 2,160 | py | Python | sdk/python/tests/test_stores.py | david30907d/feast | 84280d956791b510e0ba0ebaeeb35faab582c295 | [
"Apache-2.0"
] | null | null | null | sdk/python/tests/test_stores.py | david30907d/feast | 84280d956791b510e0ba0ebaeeb35faab582c295 | [
"Apache-2.0"
] | null | null | null | sdk/python/tests/test_stores.py | david30907d/feast | 84280d956791b510e0ba0ebaeeb35faab582c295 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The Feast 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 35.409836 | 75 | 0.673611 |
330f5b9a6e791c91467242068737ffd0e9a5fd52 | 820 | py | Python | aries_cloudagent/protocols/connections/message_types.py | dhiway/aries-cloudagent-python | f08b7d65e404c8274c6606328c959a865a22c706 | [
"Apache-2.0"
] | 2 | 2020-02-26T14:22:44.000Z | 2021-05-06T20:13:36.000Z | aries_cloudagent/protocols/connections/message_types.py | dhiway/aries-cloudagent-python | f08b7d65e404c8274c6606328c959a865a22c706 | [
"Apache-2.0"
] | 6 | 2021-03-10T20:05:19.000Z | 2022-02-27T05:41:09.000Z | aries_cloudagent/protocols/connections/message_types.py | dhiway/aries-cloudagent-python | f08b7d65e404c8274c6606328c959a865a22c706 | [
"Apache-2.0"
] | 4 | 2020-02-19T23:02:11.000Z | 2021-11-18T11:33:43.000Z | """Message type identifiers for Connections."""
PROTOCOL_URI = "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0"
CONNECTION_INVITATION = f"{PROTOCOL_URI}/invitation"
CONNECTION_REQUEST = f"{PROTOCOL_URI}/request"
CONNECTION_RESPONSE = f"{PROTOCOL_URI}/response"
PROBLEM_REPORT = f"{PROTOCOL_URI}/problem_report"
P... | 34.166667 | 81 | 0.771951 |
330f6429614a5a06f7d9bb94a80f5778469582aa | 8,000 | py | Python | fltk/orchestrator.py | iiacoban42/fltk-testbed | 40b6acd26c4449b45b6f0435bd58cb97d095b983 | [
"BSD-2-Clause"
] | 2 | 2021-10-15T18:22:48.000Z | 2021-11-20T21:24:49.000Z | fltk/orchestrator.py | iiacoban42/fltk-testbed | 40b6acd26c4449b45b6f0435bd58cb97d095b983 | [
"BSD-2-Clause"
] | null | null | null | fltk/orchestrator.py | iiacoban42/fltk-testbed | 40b6acd26c4449b45b6f0435bd58cb97d095b983 | [
"BSD-2-Clause"
] | null | null | null | import datetime
import logging
import time
import uuid
from queue import PriorityQueue
from typing import List
from kubeflow.pytorchjob import PyTorchJobClient
from kubeflow.pytorchjob.constants.constants import PYTORCHJOB_GROUP, PYTORCHJOB_VERSION, PYTORCHJOB_PLURAL
from kubernetes import client
from fltk.util.clust... | 44.94382 | 141 | 0.617625 |
330f65fe10c8e92dce9ac4a99ed766af262497a7 | 140 | py | Python | src/onevision/datasets/iec/__init__.py | phlong3105/onevision | 90552b64df7213e7fbe23c80ffd8a89583289433 | [
"MIT"
] | 2 | 2022-03-28T09:46:38.000Z | 2022-03-28T14:12:32.000Z | src/onevision/datasets/iec/__init__.py | phlong3105/onevision | 90552b64df7213e7fbe23c80ffd8a89583289433 | [
"MIT"
] | null | null | null | src/onevision/datasets/iec/__init__.py | phlong3105/onevision | 90552b64df7213e7fbe23c80ffd8a89583289433 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
from __future__ import annotations
from .iec22 import *
from .iec22fusion import *
| 12.727273 | 34 | 0.657143 |
330f7142edf48e72f52038ce3b864fdbc7278f1a | 1,235 | py | Python | test/test_pivot_list_response_schedule_response.py | jlk/qualys-cs-python-client | e2e39fd64d41fd6671d45343843ef36fa3ab59a4 | [
"Apache-2.0"
] | null | null | null | test/test_pivot_list_response_schedule_response.py | jlk/qualys-cs-python-client | e2e39fd64d41fd6671d45343843ef36fa3ab59a4 | [
"Apache-2.0"
] | null | null | null | test/test_pivot_list_response_schedule_response.py | jlk/qualys-cs-python-client | e2e39fd64d41fd6671d45343843ef36fa3ab59a4 | [
"Apache-2.0"
] | 1 | 2020-05-15T04:20:48.000Z | 2020-05-15T04:20:48.000Z | # coding: utf-8
"""
Container Security APIs
All features of the Container Security are available through REST APIs.<br/>Access support information at www.qualys.com/support/<br/><br/><b>Permissions:</b><br/>User must have the Container module enabled<br/>User must have API ACCESS permission # noqa: E501
... | 30.875 | 265 | 0.756275 |
330f8a4ce5a009717ce12182d36270641d04bf88 | 2,521 | py | Python | JumpScale9AYS/clients/sync_client/AYSRunListing.py | Jumpscale/ays9 | 63bd414ff06372ba885c55eec528f427e63bcbe1 | [
"Apache-2.0"
] | 4 | 2017-06-07T08:10:06.000Z | 2017-11-10T02:20:38.000Z | JumpScale9AYS/clients/sync_client/AYSRunListing.py | Jumpscale/ays9 | 63bd414ff06372ba885c55eec528f427e63bcbe1 | [
"Apache-2.0"
] | 242 | 2017-05-18T10:51:48.000Z | 2019-09-18T15:09:47.000Z | JumpScale9AYS/clients/sync_client/AYSRunListing.py | Jumpscale/ays9 | 63bd414ff06372ba885c55eec528f427e63bcbe1 | [
"Apache-2.0"
] | 5 | 2017-06-16T15:43:25.000Z | 2017-09-29T12:48:06.000Z | """
Auto-generated class for AYSRunListing
"""
from .EnumAYSRunListingState import EnumAYSRunListingState
from . import client_support
class AYSRunListing(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(epoch, key, state):
"""
:type epoch: int
:type... | 31.5125 | 107 | 0.606902 |
330f8b72e24312770de0dcf944fd1aefaaa2ee48 | 19,697 | py | Python | psi.py | kyodaisuu/psi | 48db2f9869665d1b25f2efc2bdb85880eab83e39 | [
"MIT"
] | 2 | 2020-08-03T10:01:29.000Z | 2022-02-03T13:05:22.000Z | psi.py | kyodaisuu/psi | 48db2f9869665d1b25f2efc2bdb85880eab83e39 | [
"MIT"
] | null | null | null | psi.py | kyodaisuu/psi | 48db2f9869665d1b25f2efc2bdb85880eab83e39 | [
"MIT"
] | 1 | 2020-08-02T14:34:41.000Z | 2020-08-02T14:34:41.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Buchholz ψ analyzer
# written by Fish
#
# When environmental variable SCRIPT_NAME is set, it runs as a CGI program.
# Otherwise it runs as a commandline program.
#
# Buchholz, W. (1986): A New System of Proof-Theoretic Ordinal Function.
# Annals of Pure and Applied Logi... | 31.215531 | 84 | 0.483982 |
330fa432a447104d7b76db8dd707db896415f9a9 | 25,494 | py | Python | pycalc/MAVProxy/modules/mavproxy_map/__init__.py | joakimzhang/python-electron | 79bc174a14c5286ca739bb7d8ce6522fdc6e9e80 | [
"CC0-1.0"
] | null | null | null | pycalc/MAVProxy/modules/mavproxy_map/__init__.py | joakimzhang/python-electron | 79bc174a14c5286ca739bb7d8ce6522fdc6e9e80 | [
"CC0-1.0"
] | 8 | 2021-01-28T19:26:22.000Z | 2022-03-24T18:07:24.000Z | pycalc/MAVProxy/modules/mavproxy_map/__init__.py | joakimzhang/python-electron | 79bc174a14c5286ca739bb7d8ce6522fdc6e9e80 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
'''
map display module
Andrew Tridgell
June 2012
'''
import sys, os, math
import functools
import time
from MAVProxy.modules.mavproxy_map import mp_elevation
from MAVProxy.modules.lib import mp_util
from MAVProxy.modules.lib import mp_settings
from MAVProxy.modules.lib import mp_module
from MAVPr... | 47.741573 | 185 | 0.577822 |
330fda1e75bc3d728400612f986cefa4e71c8a1f | 6,759 | py | Python | stock/migrations/0001_initial.py | machinalis/inventor | 63732c77122364956a5df37c2df126e8781e49e5 | [
"BSD-3-Clause"
] | 2 | 2015-09-21T02:07:55.000Z | 2018-04-06T05:07:20.000Z | stock/migrations/0001_initial.py | machinalis/inventor | 63732c77122364956a5df37c2df126e8781e49e5 | [
"BSD-3-Clause"
] | null | null | null | stock/migrations/0001_initial.py | machinalis/inventor | 63732c77122364956a5df37c2df126e8781e49e5 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Brand'
db.create_table('stock_brand', (
('id', self.gf('django.db.models.fields.... | 53.220472 | 158 | 0.589732 |
330fe1328aa334dad514d757cd73c86320301b98 | 91,690 | py | Python | Glyph Making/makeGlyph.py | protimient/Glyphs-Scripts | 0481ea01153844667cff8cfa3fad97c33af09956 | [
"Apache-2.0"
] | 2 | 2021-02-12T20:36:29.000Z | 2021-11-03T08:04:01.000Z | Glyph Making/makeGlyph.py | protimient/Glyphs-Scripts | 0481ea01153844667cff8cfa3fad97c33af09956 | [
"Apache-2.0"
] | null | null | null | Glyph Making/makeGlyph.py | protimient/Glyphs-Scripts | 0481ea01153844667cff8cfa3fad97c33af09956 | [
"Apache-2.0"
] | null | null | null | # MenuTitle: Make Glyphs
# Author: Ben Jones
__doc__ = """
Adds ingredients/components to the currently selected glyph(s).
"""
import math
from collections import defaultdict
the_font = Glyphs.font
force_build = 0
Glyphs.clearLog()
# Glyphs.showMacroWindow()
class recipesLister:
class recipeList:
class ... | 60.883134 | 143 | 0.753485 |
330fe93396245dc5ffde016018478cc0f9921e8d | 5,952 | py | Python | phenotype/Func/Map.py | kamalm87/phenotype | 92ff1c3ec6b21cd540caf10880ef532270d85110 | [
"MIT"
] | null | null | null | phenotype/Func/Map.py | kamalm87/phenotype | 92ff1c3ec6b21cd540caf10880ef532270d85110 | [
"MIT"
] | null | null | null | phenotype/Func/Map.py | kamalm87/phenotype | 92ff1c3ec6b21cd540caf10880ef532270d85110 | [
"MIT"
] | null | null | null | from collections.abc import Callable
from functools import reduce as __ft_reduce__
from phenotype.Access.Item import ( Names, Items )
from phenotype.Assignment.Assignment import IfElse
from phenotype.Core.Auxiliary import Apply
from phenotype.Core.Components import Executer
from phenotype.Func.Partia... | 33.818182 | 105 | 0.576949 |
330ff9d34e67cf3522b3ffbf4f1b5d549d228b48 | 771 | py | Python | configs/selfsup/_test_/models/simsiam_logmin.py | dungdinhanh/mmselfsup | 67fc764f4f5512701f93e8e1fa39e09ee008a54a | [
"Apache-2.0"
] | null | null | null | configs/selfsup/_test_/models/simsiam_logmin.py | dungdinhanh/mmselfsup | 67fc764f4f5512701f93e8e1fa39e09ee008a54a | [
"Apache-2.0"
] | null | null | null | configs/selfsup/_test_/models/simsiam_logmin.py | dungdinhanh/mmselfsup | 67fc764f4f5512701f93e8e1fa39e09ee008a54a | [
"Apache-2.0"
] | 1 | 2022-03-15T11:31:48.000Z | 2022-03-15T11:31:48.000Z | # model settings
model = dict(
type='SimSiamLogMin',
backbone=dict(
type='ResNet',
depth=50,
in_channels=3,
out_indices=[4], # 0: conv-1, x: stage-x
norm_cfg=dict(type='SyncBN'),
zero_init_residual=True),
neck=dict(
type='NonLinearNeck',
in_ch... | 26.586207 | 49 | 0.559014 |
33102a8e2db5b53dad3540e1586e90b67347baa0 | 9,861 | py | Python | gitapi/gitapi.py | hoangpt2991/gitapi | 26dfef45987a73aff5b71bbec6b85f039a0b7be7 | [
"MIT",
"Unlicense"
] | 1 | 2017-07-31T09:43:14.000Z | 2017-07-31T09:43:14.000Z | gitapi/gitapi.py | hoangpt2991/gitapi | 26dfef45987a73aff5b71bbec6b85f039a0b7be7 | [
"MIT",
"Unlicense"
] | null | null | null | gitapi/gitapi.py | hoangpt2991/gitapi | 26dfef45987a73aff5b71bbec6b85f039a0b7be7 | [
"MIT",
"Unlicense"
] | 1 | 2020-12-09T08:46:11.000Z | 2020-12-09T08:46:11.000Z | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals, with_statement
from subprocess import Popen, STDOUT, PIPE
try:
from urllib import unquote
except: #python 3
from urllib.parse import unquote
import re
import os.path
try:
import json #for reading logs
except:
im... | 34.968085 | 106 | 0.551871 |
3310867796c2156c43b9f146d5c6329882832b67 | 4,510 | py | Python | libs/applibs/compendium/c21volunteeractivities.py | olom70/kutpMD | 2502ce151a0170504b7aa9581d081c755848f060 | [
"MIT"
] | null | null | null | libs/applibs/compendium/c21volunteeractivities.py | olom70/kutpMD | 2502ce151a0170504b7aa9581d081c755848f060 | [
"MIT"
] | 4 | 2021-06-08T21:33:38.000Z | 2022-03-12T00:29:28.000Z | libs/applibs/compendium/c21volunteeractivities.py | olom70/kutpMD | 2502ce151a0170504b7aa9581d081c755848f060 | [
"MIT"
] | null | null | null | import os
import sys
import libs.applibs.compendium.abstractcompendium as abstractcompendium
class VolunteerActivities(abstractcompendium.Compendium):
def __init__(self):
super().__init__()
self.metValue = {21000 : 1.5
,21005 : 1.5
,21010 : 2.5
,21015 : 2.3... | 51.83908 | 194 | 0.610865 |
3310c65da39827904a3e1f91c73c9ddb44f05eb3 | 14,254 | py | Python | miniworld/rpc/zeromq/ZeroMQProtoClient.py | miniworld-project/miniworld_core | c591bad232b78eae99e8f55cb1b907c1e228484b | [
"MIT"
] | 5 | 2019-05-11T14:57:15.000Z | 2021-07-05T00:35:25.000Z | miniworld/rpc/zeromq/ZeroMQProtoClient.py | miniworld-project/miniworld_core | c591bad232b78eae99e8f55cb1b907c1e228484b | [
"MIT"
] | 27 | 2017-03-17T07:11:02.000Z | 2019-05-26T23:36:56.000Z | miniworld/rpc/zeromq/ZeroMQProtoClient.py | miniworld-project/miniworld_core | c591bad232b78eae99e8f55cb1b907c1e228484b | [
"MIT"
] | 6 | 2017-05-03T12:11:33.000Z | 2020-04-03T11:44:27.000Z | #!/usr/bin/env python3
import argparse
import json
from pprint import pformat
import netifaces
import zmq
import miniworld
from miniworld.Config import config
from miniworld.Scenario import scenario_config
from miniworld.log import log
from miniworld.management import ServerScore
from miniworld.model.collections imp... | 31.054466 | 129 | 0.562509 |
3310fbe967f3f5baa017a98f2025edb30bb15666 | 20,323 | py | Python | frappe/utils/__init__.py | abhishekbalam/frappe | 75326b2f23e433f356b699c4f7aa954d329150c5 | [
"MIT"
] | null | null | null | frappe/utils/__init__.py | abhishekbalam/frappe | 75326b2f23e433f356b699c4f7aa954d329150c5 | [
"MIT"
] | null | null | null | frappe/utils/__init__.py | abhishekbalam/frappe | 75326b2f23e433f356b699c4f7aa954d329150c5 | [
"MIT"
] | null | null | null | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
# util __init__.py
from __future__ import unicode_literals, print_function
from werkzeug.test import Client
import os, re, sys, json, hashlib, requests, traceback
import functools
from .html_utils import sanitize_html
... | 27.575305 | 234 | 0.697879 |
33117496a688d2159f35978ebb523da71a5e2848 | 3,530 | py | Python | test/integration/sagemaker/test_mnist.py | laurenyu/sagemaker-chainer-container | d784cc0c0c27eacc2fc76b4aa048f31c44f71e78 | [
"Apache-2.0"
] | 17 | 2018-06-02T05:27:06.000Z | 2021-10-21T23:45:37.000Z | test/integration/sagemaker/test_mnist.py | laurenyu/sagemaker-chainer-container | d784cc0c0c27eacc2fc76b4aa048f31c44f71e78 | [
"Apache-2.0"
] | 38 | 2018-07-02T18:55:58.000Z | 2020-04-03T21:57:22.000Z | test/integration/sagemaker/test_mnist.py | laurenyu/sagemaker-chainer-container | d784cc0c0c27eacc2fc76b4aa048f31c44f71e78 | [
"Apache-2.0"
] | 28 | 2018-06-10T10:42:56.000Z | 2021-10-21T23:45:28.000Z | # Copyright 2018-2020 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://www.apache.org/licenses/LICENSE-2.0
#
# or in the "li... | 38.369565 | 106 | 0.717564 |
33119508261829df1bfbce4e189703021df07bd6 | 156 | py | Python | virtual/bin/django-admin.py | kelvin-wahome/Neighborhood | 5ac24393224d10f6d35524e6e8ec7f6fa8dd28f7 | [
"Unlicense"
] | null | null | null | virtual/bin/django-admin.py | kelvin-wahome/Neighborhood | 5ac24393224d10f6d35524e6e8ec7f6fa8dd28f7 | [
"Unlicense"
] | null | null | null | virtual/bin/django-admin.py | kelvin-wahome/Neighborhood | 5ac24393224d10f6d35524e6e8ec7f6fa8dd28f7 | [
"Unlicense"
] | null | null | null | #!/home/blackrose/Neighborhood/virtual/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 26 | 49 | 0.794872 |
3311d5f2453a53fd24257cdb0b12ef30919466e5 | 2,521 | py | Python | test/unit/gen_libs/del_not_in_list.py | deepcoder42/python-lib | 249f456fdd41a6883206fea8e19c9e098cc969e5 | [
"MIT"
] | null | null | null | test/unit/gen_libs/del_not_in_list.py | deepcoder42/python-lib | 249f456fdd41a6883206fea8e19c9e098cc969e5 | [
"MIT"
] | null | null | null | test/unit/gen_libs/del_not_in_list.py | deepcoder42/python-lib | 249f456fdd41a6883206fea8e19c9e098cc969e5 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Classification (U)
"""Program: del_not_in_list.py
Description: Unit testing of del_not_in_list in gen_libs.py.
Usage:
test/unit/gen_libs/del_not_in_list.py
Arguments:
"""
# Libraries and Global Variables
# Standard
import sys
import os
if sys.version_info < (2, 7):
... | 17.753521 | 75 | 0.604125 |
33120ac156b3a0fb951830bd83cfd1b3529cc4d0 | 19,983 | py | Python | src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_custom_vm_commands.py | v-Ajnava/azure-cli | febec631d79bfca151e84267b5b409594bad598e | [
"MIT"
] | null | null | null | src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_custom_vm_commands.py | v-Ajnava/azure-cli | febec631d79bfca151e84267b5b409594bad598e | [
"MIT"
] | 3 | 2021-03-26T00:48:20.000Z | 2022-03-29T22:05:39.000Z | src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_custom_vm_commands.py | v-Ajnava/azure-cli | febec631d79bfca151e84267b5b409594bad598e | [
"MIT"
] | 1 | 2017-12-28T04:51:44.000Z | 2017-12-28T04:51:44.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 48.151807 | 184 | 0.661062 |
33121f126d2828ec785ffd60c7a5a8f30d135d08 | 18,960 | py | Python | cheetah.py | traveaston/cheetah | 535f33f2bdaa36c3e672a0270a8afdd5e2406505 | [
"MIT"
] | null | null | null | cheetah.py | traveaston/cheetah | 535f33f2bdaa36c3e672a0270a8afdd5e2406505 | [
"MIT"
] | null | null | null | cheetah.py | traveaston/cheetah | 535f33f2bdaa36c3e672a0270a8afdd5e2406505 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import os
import re as regex
import shutil
import sys
import logging
import mutagen
from pydub import AudioSegment
NAME = 'cheetah'
VERSION = '2.1.7'
DESCRIPTION = 'Audio transcoding tool'
AUTHOR = 'Trav Easton'
AUTHOR_EMAIL = 'travzdevil69@hotmail.com'
... | 31.919192 | 159 | 0.58866 |
331222a357740e8403c06e65124b3c5471523147 | 8,917 | py | Python | case_studies/utils.py | rwiddhic96/apotoma | 4636d6bf72673471b0c022aa4354170fc7b03ac4 | [
"MIT"
] | null | null | null | case_studies/utils.py | rwiddhic96/apotoma | 4636d6bf72673471b0c022aa4354170fc7b03ac4 | [
"MIT"
] | null | null | null | case_studies/utils.py | rwiddhic96/apotoma | 4636d6bf72673471b0c022aa4354170fc7b03ac4 | [
"MIT"
] | null | null | null | import os
import pickle
import time
from typing import Dict, Tuple, List
import numpy as np
from dataclasses import dataclass
from sklearn import metrics
from apotoma.smart_dsa_by_lsa import DSAbyLSA
from apotoma.smart_dsa_diffnorms import DiffOfNormsSelectiveDSA
from apotoma.smart_dsa_normdiffs import NormOfDiffsSel... | 45.263959 | 162 | 0.659639 |
331224498dddee0f811d4f522c4e28e6903f2eb6 | 17,060 | py | Python | rasa/nlu/featurizers/dense_featurizer/convert_featurizer.py | venushong667/rasa | dc0af420818e263fb4ef97c0d7f1c65e1da83bd1 | [
"Apache-2.0"
] | null | null | null | rasa/nlu/featurizers/dense_featurizer/convert_featurizer.py | venushong667/rasa | dc0af420818e263fb4ef97c0d7f1c65e1da83bd1 | [
"Apache-2.0"
] | null | null | null | rasa/nlu/featurizers/dense_featurizer/convert_featurizer.py | venushong667/rasa | dc0af420818e263fb4ef97c0d7f1c65e1da83bd1 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
import logging
import os
from typing import Any, Dict, List, NoReturn, Optional, Text, Tuple
from tensorflow.python.eager.wrap_function import WrappedFunction
from tqdm import tqdm
import numpy as np
import tensorflow as tf
from rasa.engine.graph import GraphComponent, ExecutionCont... | 38.080357 | 88 | 0.634701 |
331236bf025179ad8fb05774d59ee14dd9d772b4 | 181 | py | Python | tests/test_dwd.py | corneliusroemer/unwetter | 9e27d0382483ba4f238db555c4ec4742f8ce08ae | [
"MIT"
] | 1 | 2020-06-27T09:59:09.000Z | 2020-06-27T09:59:09.000Z | tests/test_dwd.py | corneliusroemer/unwetter | 9e27d0382483ba4f238db555c4ec4742f8ce08ae | [
"MIT"
] | null | null | null | tests/test_dwd.py | corneliusroemer/unwetter | 9e27d0382483ba4f238db555c4ec4742f8ce08ae | [
"MIT"
] | null | null | null | from unwetter import dwd
from .assets import xmls, alert_1
def test_parse_xml_alert_simple():
expected = alert_1.event
assert dwd.parse_xml(xmls['alert_1']) == expected
| 18.1 | 53 | 0.745856 |
331242aa5806995dfd16870aa092e7fd130af813 | 6,896 | py | Python | catalyst/contrib/utils/tools/tests/test_tensorboard.py | balakhonoff/catalyst | 82d904aee97045efbaef3963e36c2ce5173ddac4 | [
"Apache-2.0"
] | null | null | null | catalyst/contrib/utils/tools/tests/test_tensorboard.py | balakhonoff/catalyst | 82d904aee97045efbaef3963e36c2ce5173ddac4 | [
"Apache-2.0"
] | null | null | null | catalyst/contrib/utils/tools/tests/test_tensorboard.py | balakhonoff/catalyst | 82d904aee97045efbaef3963e36c2ce5173ddac4 | [
"Apache-2.0"
] | 1 | 2018-12-21T15:56:21.000Z | 2018-12-21T15:56:21.000Z | # flake8: noqa
from io import BytesIO
from pathlib import Path
from unittest.mock import patch
import cv2
import numpy as np
import pytest
from catalyst.contrib.utils.tools.tensorboard import (
EventReadingException,
EventsFileReader,
SummaryReader,
)
def _get_test_data():
"""Test events file
... | 33.639024 | 79 | 0.598463 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.