hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
796c10b42c88bc4f4d5422ad6d1779894b157de4
1,514
py
Python
tests/postgres_tests/test_introspection.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/postgres_tests/test_introspection.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/postgres_tests/test_introspection.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from io import StringIO from django.core.management import call_command from django.test.utils import modify_settings from . import PostgreSQLTestCase @modify_settings(INSTALLED_APPS={'append': 'django.contrib.postgres'}) class InspectDBTests(PostgreSQLTestCase): def assertFieldsInModel(self, model, f...
38.820513
105
0.638705
796c11226df4e1b5650a73d905ac679b173c061b
1,237
py
Python
Payload_Types/leviathan/mythic/agent_functions/inject.py
xorrior/Mythic
ea348b66e1d96e88e0e7fbabff182945cbdf12b6
[ "BSD-3-Clause" ]
2
2021-01-28T19:35:46.000Z
2021-04-08T12:01:48.000Z
Payload_Types/leviathan/mythic/agent_functions/inject.py
xorrior/Mythic
ea348b66e1d96e88e0e7fbabff182945cbdf12b6
[ "BSD-3-Clause" ]
null
null
null
Payload_Types/leviathan/mythic/agent_functions/inject.py
xorrior/Mythic
ea348b66e1d96e88e0e7fbabff182945cbdf12b6
[ "BSD-3-Clause" ]
2
2021-06-23T18:59:18.000Z
2021-08-20T00:06:49.000Z
from CommandBase import * import json class InjectArguments(TaskArguments): def __init__(self, command_line): super().__init__(command_line) self.args = { "tabid": CommandParameter(name="tabid", type=ParameterType.Number), "javascript": CommandParameter( nam...
28.767442
79
0.64996
796c113dd19412570fdbfc07664de4ff06981eb8
8,353
py
Python
obsolete_scripts.dir/convert_shapefile_single_tiles.py
yaramohajerani/GL_learning
aa8d644024e48ba3e68398050f259b61d0660a2e
[ "MIT" ]
7
2021-03-04T15:43:21.000Z
2021-07-08T08:42:23.000Z
obsolete_scripts.dir/convert_shapefile_single_tiles.py
yaramohajerani/GL_learning
aa8d644024e48ba3e68398050f259b61d0660a2e
[ "MIT" ]
null
null
null
obsolete_scripts.dir/convert_shapefile_single_tiles.py
yaramohajerani/GL_learning
aa8d644024e48ba3e68398050f259b61d0660a2e
[ "MIT" ]
2
2021-03-11T12:04:42.000Z
2021-04-20T16:33:31.000Z
#!/usr/bin/env python u""" convert_shapefile_single_tiles.py Yara Mohajerani Read output predictions before they're stitched together and the corresponding labels and convert to shapefile lines """ import os import sys import rasterio import numpy as np import fiona import imageio import skimage import getopt import ...
38.141553
126
0.654855
796c119f4aacb64ea864d8633478693d83033d4f
10,898
py
Python
processing/NSBL_excel_rosters_GoogleSheets.py
Connor-R/NSBL
16615990d058d171fab4790f937846fd1f0b2ee9
[ "MIT" ]
1
2020-11-19T23:20:19.000Z
2020-11-19T23:20:19.000Z
processing/NSBL_excel_rosters_GoogleSheets.py
Connor-R/NSBL
16615990d058d171fab4790f937846fd1f0b2ee9
[ "MIT" ]
null
null
null
processing/NSBL_excel_rosters_GoogleSheets.py
Connor-R/NSBL
16615990d058d171fab4790f937846fd1f0b2ee9
[ "MIT" ]
null
null
null
import pickle import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request import logging logging.getLogger('googleapicliet.discovery_cache').setLevel(logging.ERROR) from py_db import db import argparse import NSB...
31.958944
193
0.508442
796c1362410a81a9dacff7e15907d68e91e8dae7
5,855
py
Python
airbyte-integrations/connectors/source-delighted/source_delighted/source.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
2
2022-03-02T13:46:05.000Z
2022-03-05T12:31:28.000Z
airbyte-integrations/connectors/source-delighted/source_delighted/source.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
5
2022-02-22T14:49:48.000Z
2022-03-19T10:43:08.000Z
airbyte-integrations/connectors/source-delighted/source_delighted/source.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
1
2022-03-11T06:21:24.000Z
2022-03-11T06:21:24.000Z
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # import base64 from abc import ABC from typing import Any, Iterable, List, Mapping, MutableMapping, Optional, Tuple from urllib.parse import parse_qsl, urlparse import requests from airbyte_cdk.models import SyncMode from airbyte_cdk.sources import Abstract...
33.079096
140
0.66234
796c137bd867e134b839eb8fa2b5ccd90cb01958
9,613
py
Python
pyatv/scripts/atvscript.py
evanreichard/pyatv
d41bd749bbf8f8a9365e7fd36c1164543e334565
[ "MIT" ]
null
null
null
pyatv/scripts/atvscript.py
evanreichard/pyatv
d41bd749bbf8f8a9365e7fd36c1164543e334565
[ "MIT" ]
128
2020-04-24T06:42:29.000Z
2021-02-19T11:34:20.000Z
pyatv/scripts/atvscript.py
postlund/pyatv_playground
e17ab551b9b69043e163a212aee6ceb4bd63ee63
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Tool modelled to be used for scripting.""" import sys import json import asyncio import logging import argparse import datetime import traceback from enum import Enum from pyatv import connect, const, scan from pyatv.const import Protocol from pyatv.interface import ( App, Playing, ...
29.48773
88
0.627692
796c13f725588809b9dfd894c217b8051803ca06
5,556
py
Python
support_alignment/experiment_registry/exp_visda17_resnet50.py
timgaripov/asa
221a26176dfce3bf270951866faa2cdf52300750
[ "MIT" ]
null
null
null
support_alignment/experiment_registry/exp_visda17_resnet50.py
timgaripov/asa
221a26176dfce3bf270951866faa2cdf52300750
[ "MIT" ]
null
null
null
support_alignment/experiment_registry/exp_visda17_resnet50.py
timgaripov/asa
221a26176dfce3bf270951866faa2cdf52300750
[ "MIT" ]
null
null
null
"""Configs for VisDA17 experiments.""" def get_weighting_config_class_pareto(alpha, reverse, seed): return { 'name': 'class_pareto', 'kwargs': { 'alpha': alpha, 'reverse': reverse, 'seed': seed }, } def get_dataset_config_visda17_pareto_target_imba...
31.039106
120
0.460223
796c15673d335fa6d4463da2dc1d3f61ead8286a
119
py
Python
bitmovin_api_sdk/analytics/metrics/max_concurrentviewers/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
11
2019-07-03T10:41:16.000Z
2022-02-25T21:48:06.000Z
bitmovin_api_sdk/analytics/metrics/max_concurrentviewers/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
8
2019-11-23T00:01:25.000Z
2021-04-29T12:30:31.000Z
bitmovin_api_sdk/analytics/metrics/max_concurrentviewers/__init__.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
13
2020-01-02T14:58:18.000Z
2022-03-26T12:10:30.000Z
from bitmovin_api_sdk.analytics.metrics.max_concurrentviewers.max_concurrentviewers_api import MaxConcurrentviewersApi
59.5
118
0.932773
796c1621eb7b481fada433543854a0999f3a21dd
6,652
py
Python
Python Files/pokemon_water.py
AnaLopezP/pokemon
12aa635b99d4ff5ba85f5b81ff662a0f34caaea1
[ "Apache-2.0" ]
null
null
null
Python Files/pokemon_water.py
AnaLopezP/pokemon
12aa635b99d4ff5ba85f5b81ff662a0f34caaea1
[ "Apache-2.0" ]
null
null
null
Python Files/pokemon_water.py
AnaLopezP/pokemon
12aa635b99d4ff5ba85f5b81ff662a0f34caaea1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This Python module contains not only the class Pokemon, but also the test of this Python class. @contents : This module contains not only a single Python class, but also the test cases to probe its functionality. @project : N/A @program : N/A @file : ...
34.28866
99
0.570204
796c16d4765554b411b9aaa2b1a2c87fcefaa540
64,329
py
Python
Lib/yp_test/test_bytes.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/yp_test/test_bytes.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/yp_test/test_bytes.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
"""Unit tests for the bytes and bytearray types. XXX This is a mess. Common tests should be moved to buffer_tests.py, which itself ought to be unified with string_tests.py (and the latter should be modernized). """ from yp import * import os import random import re import sys import copy import functools import pick...
39.906328
765
0.591926
796c17ec42070459f17d5eadbf17647c3e4f2471
35,074
py
Python
lib/sqlalchemy/orm/strategy_options.py
jmagnusson/sqlalchemy
0e7904e730c3d2b0d3a394ad60010158ee29050c
[ "MIT" ]
null
null
null
lib/sqlalchemy/orm/strategy_options.py
jmagnusson/sqlalchemy
0e7904e730c3d2b0d3a394ad60010158ee29050c
[ "MIT" ]
null
null
null
lib/sqlalchemy/orm/strategy_options.py
jmagnusson/sqlalchemy
0e7904e730c3d2b0d3a394ad60010158ee29050c
[ "MIT" ]
null
null
null
# Copyright (C) 2005-2016 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ """ from .interfaces import MapperOption, PropComparator from .. import util from ..sql.base imp...
32.964286
84
0.610167
796c1841d9973744603f416fd8055d3d8d7cfca2
3,080
py
Python
streamlit_gui/elements/query_box.py
ndrewwang/liiondb
c9a30e818843dadbdc00f2334a38e49126a64d12
[ "MIT" ]
4
2021-09-17T16:51:47.000Z
2022-01-23T22:47:12.000Z
streamlit_gui/elements/query_box.py
ndrewwang/liiondb
c9a30e818843dadbdc00f2334a38e49126a64d12
[ "MIT" ]
11
2021-09-17T16:40:53.000Z
2021-12-13T13:28:22.000Z
streamlit_gui/elements/query_box.py
ndrewwang/liiondb
c9a30e818843dadbdc00f2334a38e49126a64d12
[ "MIT" ]
1
2021-09-17T16:51:49.000Z
2021-09-17T16:51:49.000Z
import streamlit as st import psycopg2 import inspect import sys import os import importlib import functions.fn_db as fn_db import functions.fn_plot as fn_plot import pandas as pd import numpy as np import webbrowser import markdown import base64 # DASHBOARD PAGE ==================== # @st.cache(suppress_st_warning=Tr...
32.421053
203
0.682143
796c18d2987627515c40e8849aa7e97848603511
18,929
py
Python
nova/tests/api/openstack/compute/contrib/test_simple_tenant_usage.py
x-ion-de/nova
2e2174e3831a543d052c75a2715cb6032447f964
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/compute/contrib/test_simple_tenant_usage.py
x-ion-de/nova
2e2174e3831a543d052c75a2715cb6032447f964
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/compute/contrib/test_simple_tenant_usage.py
x-ion-de/nova
2e2174e3831a543d052c75a2715cb6032447f964
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apach...
40.18896
79
0.53912
796c19ec5ef2ca19e0c952377f596c0ed18f6e7d
261
py
Python
src/HDWallet.py
arnonhongklay/wallet
d2d04ffc92261e715a88f461886080ac70ba96c6
[ "BSD-2-Clause" ]
null
null
null
src/HDWallet.py
arnonhongklay/wallet
d2d04ffc92261e715a88f461886080ac70ba96c6
[ "BSD-2-Clause" ]
null
null
null
src/HDWallet.py
arnonhongklay/wallet
d2d04ffc92261e715a88f461886080ac70ba96c6
[ "BSD-2-Clause" ]
null
null
null
from bitcoinlib.wallets import HDWallet, wallet_delete from bitcoinlib.mnemonic import Mnemonic w = HDWallet.create('Wallet3') key1 = w.get_key() key1.address print(key1) w.scan() w.info() t = w.send_to('12ooWd8Xag7hsgP9PBPnmyGe36VeUrpMSH', 100000) t.info
16.3125
59
0.773946
796c1cb65b598cee06df755abbf1cbabc1856838
5,016
py
Python
src/dataset/dataset_creator.py
hoel-bagard/MNIST-TensorFlow
9b21d2655eb8fd40b56881fa4b72170a75468465
[ "MIT" ]
null
null
null
src/dataset/dataset_creator.py
hoel-bagard/MNIST-TensorFlow
9b21d2655eb8fd40b56881fa4b72170a75468465
[ "MIT" ]
3
2020-03-09T10:33:03.000Z
2020-03-13T09:29:00.000Z
src/dataset/dataset_creator.py
hoel-bagard/Classification-TensorFlow2
cc3ac86d80dc7bdd726a9c7d14a006fb22b8f967
[ "MIT" ]
null
null
null
import os import tensorflow as tf import numpy as np from src.dataset.mnist import load_mnist from src.dataset.cat_vs_dog import load_cat_vs_dog from src.dataset.fashion_mnist import load_fashion_mnist from src.dataset.data_augmentation import color_augment class DatasetCreator: def __init__(self, data_path: st...
42.151261
112
0.627193
796c1cc19c8c508d03d5e2172ad30a264de3fac2
5,993
py
Python
examples/spiral00.py
iavr/pynet
09f3500e12a72c63699c74c34573539bfdc3ea12
[ "BSD-2-Clause" ]
3
2019-12-11T15:09:58.000Z
2020-12-29T05:54:40.000Z
examples/spiral00.py
iavr/pynet
09f3500e12a72c63699c74c34573539bfdc3ea12
[ "BSD-2-Clause" ]
null
null
null
examples/spiral00.py
iavr/pynet
09f3500e12a72c63699c74c34573539bfdc3ea12
[ "BSD-2-Clause" ]
null
null
null
import sys import numpy as np import matplotlib.pyplot as plt # minimal 2d toy example adapted from # http://cs231n.github.io/neural-networks-case-study/ # train a linear classifier def linear(X, y, K, plot=True, save=False): # number of points, dimensions, ground truth N, D = X.shape Y = one_hot(y, K) # initia...
27.365297
74
0.63741
796c1d35424dc0ed90a92b53cb12be3ac1c9d4d8
1,257
py
Python
venv/lib/python2.7/site-packages/ansible/modules/windows/win_group.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
venv/lib/python2.7/site-packages/ansible/modules/windows/win_group.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
venv/lib/python2.7/site-packages/ansible/modules/windows/win_group.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2014, Chris Hoffman <choffman@chathamfinancial.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # this is a windows documentation stub. actual code lives in the .ps1 # file of the same name ANSIBLE_METADATA =...
23.716981
92
0.659507
796c1e01a6620b941971b1fe6d1cc998b0bf912b
1,306
py
Python
Parser/tools/tabler.py
MBkkt/Analys_11x11
3ea8c4ab8da2632b42e40bbff2002ad42b520e2b
[ "MIT" ]
2
2018-09-26T17:46:08.000Z
2018-09-26T17:46:09.000Z
Parser/tools/tabler.py
MBkkt/Analys_11x11
3ea8c4ab8da2632b42e40bbff2002ad42b520e2b
[ "MIT" ]
null
null
null
Parser/tools/tabler.py
MBkkt/Analys_11x11
3ea8c4ab8da2632b42e40bbff2002ad42b520e2b
[ "MIT" ]
null
null
null
import re def table_create(arr): """Разбираем HTML таблицу""" ans = [] a = re.findall(r'Спарринг-Бот', str(arr[1])) b = re.findall(r'Спарринг-Бот', str(arr[2])) if a and b: return ans # бот-бот elif a or b: ans.append(0) # пве else: ans.append(1) ...
32.65
120
0.575038
796c1f021f076e78dbfbbf73ae5f5d0c54050e33
33,985
py
Python
bot/exts/moderation/modlog.py
MaskDuck/bot
1942c9d97a0965c46d03d3143cc835aca829ab43
[ "MIT", "BSD-3-Clause" ]
null
null
null
bot/exts/moderation/modlog.py
MaskDuck/bot
1942c9d97a0965c46d03d3143cc835aca829ab43
[ "MIT", "BSD-3-Clause" ]
null
null
null
bot/exts/moderation/modlog.py
MaskDuck/bot
1942c9d97a0965c46d03d3143cc835aca829ab43
[ "MIT", "BSD-3-Clause" ]
null
null
null
import asyncio import difflib import itertools import typing as t from datetime import datetime, timezone from itertools import zip_longest import discord from dateutil.relativedelta import relativedelta from deepdiff import DeepDiff from discord import Colour, Message, Thread from discord.abc import GuildChannel from...
36.077495
116
0.57393
796c1f033fb2ccd2e8133d5e41ff0bf886e0df3f
7,809
py
Python
examples/sem_seg_dense/config.py
Hermine2015/deep_gcns_torch
69524a2a5de2ba4c3adb0fea0a090b3e9b4510d4
[ "MIT" ]
1
2020-07-05T07:48:03.000Z
2020-07-05T07:48:03.000Z
examples/sem_seg_dense/config.py
iamani/deep_gcns_torch
cb0bfaded1e75aecd0e9d7061317c7a28eebcf47
[ "MIT" ]
null
null
null
examples/sem_seg_dense/config.py
iamani/deep_gcns_torch
cb0bfaded1e75aecd0e9d7061317c7a28eebcf47
[ "MIT" ]
null
null
null
import os import datetime import argparse import shutil import random import numpy as np import torch from utils.tf_logger import TfLogger import logging import logging.config import pathlib import glob import time import uuid import sys class OptInit: def __init__(self): parser = argparse.ArgumentParser(...
48.203704
119
0.642464
796c1fa65821de7b20dc56df25b620ec3164f301
15,136
py
Python
qa/rpc-tests/rest.py
proteanx/DeVault-Core
b866989b33f64fa462e0516933fecc681fa57f92
[ "MIT" ]
null
null
null
qa/rpc-tests/rest.py
proteanx/DeVault-Core
b866989b33f64fa462e0516933fecc681fa57f92
[ "MIT" ]
null
null
null
qa/rpc-tests/rest.py
proteanx/DeVault-Core
b866989b33f64fa462e0516933fecc681fa57f92
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test REST interface # from test_framework.test_framework import DeVaultTestFramework from test_fram...
45.047619
134
0.641913
796c1fd70d0aaa570c30a66d02a862312d7752ea
472
py
Python
net/email/first_email.py
hanwhhanwh/python-test
ac97ae83fc9eac3157ff7dc39d6295bc5b15d589
[ "MIT" ]
null
null
null
net/email/first_email.py
hanwhhanwh/python-test
ac97ae83fc9eac3157ff7dc39d6295bc5b15d589
[ "MIT" ]
null
null
null
net/email/first_email.py
hanwhhanwh/python-test
ac97ae83fc9eac3157ff7dc39d6295bc5b15d589
[ "MIT" ]
null
null
null
import smtplib from email.mime.text import MIMEText smtp = smtplib.SMTP('mail.smtp-server.kr', 25) smtp.ehlo() # say Hello #smtp.starttls() # TLS 사용시 필요 smtp.login('sender@smtp-server.kr', 'pasword@2!') msg = MIMEText('Mail contents test<br />test.. test..') msg['From'] = 'sender@smtp-server.kr' msg['To'] = '...
31.466667
77
0.680085
796c208b5ef0105c3a346b49387aabac0584232a
5,937
py
Python
soc-tools/reporting/report_splitter.py
michalk68/soc-tools
8d4c8fd53624817c1126c72d757878f305151446
[ "MIT" ]
null
null
null
soc-tools/reporting/report_splitter.py
michalk68/soc-tools
8d4c8fd53624817c1126c72d757878f305151446
[ "MIT" ]
null
null
null
soc-tools/reporting/report_splitter.py
michalk68/soc-tools
8d4c8fd53624817c1126c72d757878f305151446
[ "MIT" ]
1
2020-01-25T08:55:41.000Z
2020-01-25T08:55:41.000Z
import csv import argparse import os class ReportSplitter: def __init__(self, values, columns, file, output_folder=None, verbose=False, case_insensitive=True, contains_value=False): self.values = values self.columns = columns self.file = file self.output_folder = o...
41.229167
120
0.561732
796c20a4c8ab7bf6e17d14446b687d8705d844aa
257
py
Python
club_crm/club_crm/doctype/order_type/order_type.py
VivekChamp/clubcrm
82036360d867d3dc5406bc71445a98841b5bffbf
[ "MIT" ]
null
null
null
club_crm/club_crm/doctype/order_type/order_type.py
VivekChamp/clubcrm
82036360d867d3dc5406bc71445a98841b5bffbf
[ "MIT" ]
null
null
null
club_crm/club_crm/doctype/order_type/order_type.py
VivekChamp/clubcrm
82036360d867d3dc5406bc71445a98841b5bffbf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Blue Lynx and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class OrderType(Document): pass
23.363636
49
0.770428
796c21c11a09043472c2daaa7837bc08e0437887
650
py
Python
enaml/layout/linear_symbolic.py
xtuzy/enaml
a1b5c0df71c665b6ef7f61d21260db92d77d9a46
[ "BSD-3-Clause-Clear" ]
1,080
2015-01-04T14:29:34.000Z
2022-03-29T05:44:51.000Z
enaml/layout/linear_symbolic.py
xtuzy/enaml
a1b5c0df71c665b6ef7f61d21260db92d77d9a46
[ "BSD-3-Clause-Clear" ]
308
2015-01-05T22:44:13.000Z
2022-03-30T21:19:18.000Z
enaml/layout/linear_symbolic.py
xtuzy/enaml
a1b5c0df71c665b6ef7f61d21260db92d77d9a46
[ "BSD-3-Clause-Clear" ]
123
2015-01-25T16:33:48.000Z
2022-02-25T19:57:10.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2013-2018, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. #------------------------------------------------...
29.545455
79
0.587692
796c2227ef4f641cfae29adecacac9d37a16170d
1,262
bzl
Python
maistra/vendor/kafka_pip3/requirements.bzl
multi-arch/proxy
7cde59ac39b7685e19567fba426da46b3e3b1e69
[ "Apache-2.0" ]
null
null
null
maistra/vendor/kafka_pip3/requirements.bzl
multi-arch/proxy
7cde59ac39b7685e19567fba426da46b3e3b1e69
[ "Apache-2.0" ]
null
null
null
maistra/vendor/kafka_pip3/requirements.bzl
multi-arch/proxy
7cde59ac39b7685e19567fba426da46b3e3b1e69
[ "Apache-2.0" ]
null
null
null
# Install pip requirements. # # Generated from /tmp/tmp.z85K0Ls9Cn/external/envoy/source/extensions/filters/network/kafka/requirements.txt load("@rules_python//python:whl.bzl", "whl_library") def pip_install(): if "kafka_pip3_pypi__Jinja2_2_11_3" not in native.existing_rules(): whl_library( name = "k...
33.210526
108
0.697306
796c2306c5c193cf6881ea7b8bca0276b09285dc
1,494
py
Python
setup.py
a232319779/mmts
64bad37b8eba526a22fcd30756bd29292d633cc9
[ "MIT" ]
1
2021-05-08T06:36:24.000Z
2021-05-08T06:36:24.000Z
setup.py
a232319779/mmts
64bad37b8eba526a22fcd30756bd29292d633cc9
[ "MIT" ]
null
null
null
setup.py
a232319779/mmts
64bad37b8eba526a22fcd30756bd29292d633cc9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021/01/08 11:10:58 # @Author : ddvv # @Site : https://ddvvmmzz.github.io # @File : setup.py # @Software: Visual Studio Code # @Desc : None import os import setuptools def do_setup(**kwargs): try: setuptools.setup(**kwargs) except (SystemExi...
25.758621
74
0.617805
796c2521c89ba72f1d68c25232db3ac9c9c38c35
10,312
py
Python
Scripts/Prism_AfterEffects_Integration.py
kapellan2000/AfterEffects
789845103c85abccc41c66d9844a1e94272f63c3
[ "MIT" ]
1
2022-02-06T06:35:50.000Z
2022-02-06T06:35:50.000Z
Scripts/Prism_AfterEffects_Integration.py
kapellan2000/AfterEffects
789845103c85abccc41c66d9844a1e94272f63c3
[ "MIT" ]
1
2022-03-17T10:07:14.000Z
2022-03-17T10:07:14.000Z
Scripts/Prism_AfterEffects_Integration.py
kapellan2000/AfterEffects
789845103c85abccc41c66d9844a1e94272f63c3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # #################################################### # # PRISM - Pipeline for animation and VFX projects # # www.prism-pipeline.com # # contact: contact@prism-pipeline.com # #################################################### # # # Copyright (C) 2016-2020 Richard Frangenberg # # Licensed unde...
36.055944
146
0.527735
796c258bfd1b5414ce2d3846cbd9df2f0f499cdb
6,509
py
Python
simulation/utils/road/renderer/tile.py
LeonardII/KitCarFork
b2802c5b08cc8250446ce3731cb622af064db4ca
[ "MIT" ]
null
null
null
simulation/utils/road/renderer/tile.py
LeonardII/KitCarFork
b2802c5b08cc8250446ce3731cb622af064db4ca
[ "MIT" ]
null
null
null
simulation/utils/road/renderer/tile.py
LeonardII/KitCarFork
b2802c5b08cc8250446ce3731cb622af064db4ca
[ "MIT" ]
null
null
null
import errno import hashlib import os from dataclasses import dataclass, field from typing import Dict, Tuple import cairo import simulation.utils.road.renderer.surface_markings as render_surface_markings import simulation.utils.road.renderer.utils as utils from simulation.utils.geometry import Polygon, Transform, Ve...
32.545
91
0.541097
796c267f2bc3045096694b60ae0d109094526405
32,973
py
Python
bin/data_classes.py
phyletica/gekgo
e0a08516a9e5bec9786327eec40c95d88d73819a
[ "CC-BY-4.0" ]
1
2022-01-25T12:35:14.000Z
2022-01-25T12:35:14.000Z
bin/data_classes.py
phyletica/gekgo
e0a08516a9e5bec9786327eec40c95d88d73819a
[ "CC-BY-4.0" ]
null
null
null
bin/data_classes.py
phyletica/gekgo
e0a08516a9e5bec9786327eec40c95d88d73819a
[ "CC-BY-4.0" ]
null
null
null
#! /usr/bin/env python import os import sys import logging import re import datetime import copy try: import cPickle as pickle except ImportError: import pickle import gekgo_util from gekgo_util import RunLogger _LOG = RunLogger(name=__file__, log_to_stderr=True, log_to_file=False) def my_st...
34.311134
124
0.529524
796c27d949bc090bb2b10572e2a76e72980a3ed6
704
py
Python
M1/binary_search.py
DouglasCarvalhoPereira/course_debug
07a1c98d711767480f223c67890c9c3469928345
[ "MIT" ]
null
null
null
M1/binary_search.py
DouglasCarvalhoPereira/course_debug
07a1c98d711767480f223c67890c9c3469928345
[ "MIT" ]
null
null
null
M1/binary_search.py
DouglasCarvalhoPereira/course_debug
07a1c98d711767480f223c67890c9c3469928345
[ "MIT" ]
null
null
null
# Pesquisa Linear def linear_search(list, key): """If key is in the list returns its position in the list, otherwise returns -1.""" for i, item in enumerate(list): if item == key: return i return -1 #Pesquisa Binária def binary_search(list, key): """Returns the position of ...
22.709677
70
0.541193
796c29578ea08d2b25993052b42e5af4d7bcd0df
598
py
Python
examples/operators/ncem_reader/run.py
cclauss/oremda
b04e58fbb8c9c08a928f876ae1358462f3ef311d
[ "BSD-3-Clause" ]
null
null
null
examples/operators/ncem_reader/run.py
cclauss/oremda
b04e58fbb8c9c08a928f876ae1358462f3ef311d
[ "BSD-3-Clause" ]
null
null
null
examples/operators/ncem_reader/run.py
cclauss/oremda
b04e58fbb8c9c08a928f876ae1358462f3ef311d
[ "BSD-3-Clause" ]
null
null
null
from typing import Dict from pathlib import Path import ncempy.io as nio from oremda import operator from oremda.typing import JSONType, PortKey, RawPort @operator def ncem_reader( _inputs: Dict[PortKey, RawPort], parameters: JSONType ) -> Dict[PortKey, RawPort]: filename = parameters.get("filename", "") ...
19.933333
57
0.655518
796c29d95f40f541efc11b3af0d093682a2be22a
12,336
py
Python
Code/licenses/tests/test_views.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
2
2021-12-15T21:58:43.000Z
2021-12-15T22:17:26.000Z
Code/licenses/tests/test_views.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
null
null
null
Code/licenses/tests/test_views.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
1
2021-12-19T17:02:02.000Z
2021-12-19T17:02:02.000Z
#SPDX-License-Identifier: BSD-3-Clause ''' test_views.py (C) Copyright 2020 Friedrich Luetze GmbH, J. Luelsdorf <lsd@luetze.de> ''' from django.test import TestCase, Client, override_settings from django.urls import reverse from django.contrib.auth.models import User from licenses.models import License from software.m...
44.215054
116
0.601329
796c2ac452abe8daf1bc853b7d8404d13ac8273d
16,981
py
Python
recbole/config/configurator.py
ghazalehnt/RecBole
f1219847005e2c8d72b8c3cd5c49a138fe83276d
[ "MIT" ]
null
null
null
recbole/config/configurator.py
ghazalehnt/RecBole
f1219847005e2c8d72b8c3cd5c49a138fe83276d
[ "MIT" ]
null
null
null
recbole/config/configurator.py
ghazalehnt/RecBole
f1219847005e2c8d72b8c3cd5c49a138fe83276d
[ "MIT" ]
null
null
null
# @Time : 2020/6/28 # @Author : Zihan Lin # @Email : linzihan.super@foxmail.com # UPDATE # @Time : 2020/10/04, 2021/3/2, 2021/2/17 # @Author : Shanlei Mu, Yupeng Hou, Jiawei Guan # @Email : slmu@ruc.edu.cn, houyupeng@ruc.edu.cn, Guanjw@ruc.edu.cn """ recbole.config.configurator ################################ ...
46.651099
138
0.630705
796c2ac84850e86f99bc553a66f197a902a6f400
1,187
py
Python
code/random_screen_animation/random_screen.py
rbaltrusch/pygame_examples
0654b066d571bca75da161010f114c5d8f0f78b5
[ "MIT" ]
3
2022-01-22T14:52:03.000Z
2022-03-16T09:23:17.000Z
code/random_screen_animation/random_screen.py
rbaltrusch/pygame_examples
0654b066d571bca75da161010f114c5d8f0f78b5
[ "MIT" ]
2
2021-12-31T19:28:02.000Z
2022-01-31T07:32:55.000Z
code/random_screen_animation/random_screen.py
rbaltrusch/pygame_examples
0654b066d571bca75da161010f114c5d8f0f78b5
[ "MIT" ]
5
2021-06-21T15:59:25.000Z
2022-02-22T04:28:02.000Z
# -*- coding: utf-8 -*- """ Created on Wed Jan 1 02:31:32 2020 Draws a random starry sky. Press ENTER to save the generated screen. @author: Korean_Crimson """ import random import pygame # pylint: disable=no-member def rand_screen(screen, colour): """Spawns a white 1x1 rect at a random screen location""" ...
23.27451
71
0.620051
796c2b28c5b88ba83ee5dfffdd19df5d74f584b8
26
py
Python
processors/__init__.py
UB-Dortmund/mms
39dbb4bee68ee951ee0a5324c684b86a76d0ab6d
[ "Unlicense" ]
null
null
null
processors/__init__.py
UB-Dortmund/mms
39dbb4bee68ee951ee0a5324c684b86a76d0ab6d
[ "Unlicense" ]
7
2016-04-09T07:28:02.000Z
2021-03-31T18:34:08.000Z
processors/__init__.py
UB-Dortmund/mms
39dbb4bee68ee951ee0a5324c684b86a76d0ab6d
[ "Unlicense" ]
3
2016-03-02T11:02:05.000Z
2016-03-23T11:17:54.000Z
__author__ = 'hagenbruch'
13
25
0.769231
796c2b695a94fb1b7a6eea713c2d0456d99e0442
3,256
py
Python
dags/mapping_dag.py
nsutton00/starthinker
e597d679a95ca85a21af9cf4df3ff935ca34abf8
[ "Apache-2.0" ]
null
null
null
dags/mapping_dag.py
nsutton00/starthinker
e597d679a95ca85a21af9cf4df3ff935ca34abf8
[ "Apache-2.0" ]
null
null
null
dags/mapping_dag.py
nsutton00/starthinker
e597d679a95ca85a21af9cf4df3ff935ca34abf8
[ "Apache-2.0" ]
null
null
null
########################################################################### # # Copyright 2019 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org...
25.24031
87
0.510442
796c2bdf5bf1dc485caeeb8199faecbea63365fd
933
py
Python
gpu_tests/pytorch_cuda_test.py
brando90/Does-MAML-Only-Work-via-Feature-Re-use-A-Data-Set-Centric-Perspective
45c4fabf35d6d8d19e49092e84e8ac9fa55aee8d
[ "MIT" ]
null
null
null
gpu_tests/pytorch_cuda_test.py
brando90/Does-MAML-Only-Work-via-Feature-Re-use-A-Data-Set-Centric-Perspective
45c4fabf35d6d8d19e49092e84e8ac9fa55aee8d
[ "MIT" ]
null
null
null
gpu_tests/pytorch_cuda_test.py
brando90/Does-MAML-Only-Work-via-Feature-Re-use-A-Data-Set-Centric-Perspective
45c4fabf35d6d8d19e49092e84e8ac9fa55aee8d
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from collections import OrderedDict # import torchvision.transforms as transforms # from torch.models.custom_layers import Flatten class Flatten(nn.Module): def forward(self, input): batch_size = input.size(0) out = input.view(batch_size,-1) return out ...
23.923077
91
0.694534
796c2be18d533ba0fc9b82edad8e4972ec3346ed
4,518
py
Python
client/python/createImageData.py
XavierXinweiWang/UnrealCV_Ubuntu
4fdbb32f2096a4c95c0912d018ff4adb4801fb8b
[ "MIT" ]
null
null
null
client/python/createImageData.py
XavierXinweiWang/UnrealCV_Ubuntu
4fdbb32f2096a4c95c0912d018ff4adb4801fb8b
[ "MIT" ]
null
null
null
client/python/createImageData.py
XavierXinweiWang/UnrealCV_Ubuntu
4fdbb32f2096a4c95c0912d018ff4adb4801fb8b
[ "MIT" ]
null
null
null
from __future__ import division, absolute_import, print_function import os, sys, time, re, json import numpy as np import matplotlib.pyplot as plt from unrealcv import client import PIL.Image imread = plt.imread # TODO: replace this with a better implementation class Color(object): ''' A utility class to parse c...
33.466667
90
0.601815
796c2c1e4204950f75b549bfc044e9dc07d97982
10,640
py
Python
test/color/test_hls.py
ChristophReich1996/kornia
35f955b46e8015da1cb9faa28c6943ec2b09cc2a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/color/test_hls.py
ChristophReich1996/kornia
35f955b46e8015da1cb9faa28c6943ec2b09cc2a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/color/test_hls.py
ChristophReich1996/kornia
35f955b46e8015da1cb9faa28c6943ec2b09cc2a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import math import pytest import torch from torch.autograd import gradcheck from torch.testing import assert_allclose import kornia from kornia.testing import BaseTester class TestRgbToHls(BaseTester): def test_smoke(self, device, dtype): C, H, W = 3, 4, 5 img = torch.rand(C, H, W, device=devic...
42.222222
92
0.520583
796c2d9eb36e86551731516d89a2446641df4b91
4,574
py
Python
data_render.py
Joshi-Hiroshi/Covaware_Website--Flask
c336a7b6edc43de1cf4b8e6f9d859f9f114755dc
[ "MIT" ]
null
null
null
data_render.py
Joshi-Hiroshi/Covaware_Website--Flask
c336a7b6edc43de1cf4b8e6f9d859f9f114755dc
[ "MIT" ]
null
null
null
data_render.py
Joshi-Hiroshi/Covaware_Website--Flask
c336a7b6edc43de1cf4b8e6f9d859f9f114755dc
[ "MIT" ]
null
null
null
import requests def daywise_data_world(): day_wise = requests.get("https://corona.lmao.ninja/v2/all") global_data = day_wise.json() #print(day_wise_data) new_confirmed = global_data['todayCases'] print(new_confirmed) total_confirmed = global_data['cases'] new_deaths = global_data['todayDea...
38.436975
354
0.676213
796c2e0e212fb889e4fc0c86b56f78054bb9af2a
1,258
py
Python
common/heuristics.py
ValRat/SummerSnake2021
eb30c76324af5d26791b5b841d07b05f374f372f
[ "MIT" ]
null
null
null
common/heuristics.py
ValRat/SummerSnake2021
eb30c76324af5d26791b5b841d07b05f374f372f
[ "MIT" ]
null
null
null
common/heuristics.py
ValRat/SummerSnake2021
eb30c76324af5d26791b5b841d07b05f374f372f
[ "MIT" ]
null
null
null
from typing import List, Tuple from common.game_objects import Board, Snake from common.point_utils import get_all_neighbours ''' This class accumulates various heuristics usable with the board state this is so they may be used across different algos ''' def is_edge(coordinate: Tuple[int, int], board: Board) -> boo...
41.933333
136
0.751192
796c2e235099dcaf1876bb45d5562d8186045a31
27,979
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_10_01/aio/operations/_virtual_network_taps_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_10_01/aio/operations/_virtual_network_taps_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_10_01/aio/operations/_virtual_network_taps_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.322971
191
0.664713
796c2e75b1ed203747c1bbc9ea28ccf446d11c98
1,078
py
Python
parseSDF.py
sunghunbae/pubchem
451735781e7b6529b40c1379b3c223f47996f75a
[ "MIT" ]
null
null
null
parseSDF.py
sunghunbae/pubchem
451735781e7b6529b40c1379b3c223f47996f75a
[ "MIT" ]
null
null
null
parseSDF.py
sunghunbae/pubchem
451735781e7b6529b40c1379b3c223f47996f75a
[ "MIT" ]
null
null
null
#!/usr/bin/env python from rdkit import Chem from rdkit.Chem import Descriptors, rdMolDescriptors def parseSDF ( filename ): obj={} with open(filename,'r') as f: num=0 previousLine='$$$$' block='' for line in f: if previousLine.startswith('$$$$'): num += 1 obj[num]={'title': ...
28.368421
80
0.552876
796c2f1381f71edfa3c308a99d0cb29fed4fbc9f
220
py
Python
djcelery_email/conf.py
philipn/django-celery-email
8d5c613c221275258582fc960e80d96117fe31bb
[ "BSD-3-Clause" ]
3
2015-02-10T14:00:50.000Z
2015-02-16T00:16:55.000Z
djcelery_email/conf.py
philipn/django-celery-email
8d5c613c221275258582fc960e80d96117fe31bb
[ "BSD-3-Clause" ]
null
null
null
djcelery_email/conf.py
philipn/django-celery-email
8d5c613c221275258582fc960e80d96117fe31bb
[ "BSD-3-Clause" ]
null
null
null
from appconf import AppConf class DjangoCeleryEmailAppConf(AppConf): class Meta: prefix = 'CELERY_EMAIL' TASK_CONFIG = {} BACKEND = 'django.core.mail.backends.smtp.EmailBackend' CHUNK_SIZE = 10
22
59
0.704545
796c3020bbee969944856a907866c9cf6da7f74a
4,881
py
Python
lr_scheduler.py
x-zho14/Swin-Transformer
577cac5b94281dcf773e8f4ea97fd2162f1ed060
[ "MIT" ]
null
null
null
lr_scheduler.py
x-zho14/Swin-Transformer
577cac5b94281dcf773e8f4ea97fd2162f1ed060
[ "MIT" ]
null
null
null
lr_scheduler.py
x-zho14/Swin-Transformer
577cac5b94281dcf773e8f4ea97fd2162f1ed060
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Swin Transformer # Copyright (c) 2021 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ze Liu # -------------------------------------------------------- import torch from timm.scheduler.cosine_lr import CosineLRScheduler from...
36.155556
105
0.559721
796c30bfb3c086aef68e3be2333d1111dfc08b7b
582
py
Python
setup.py
yonromai/snooze
6183c759a59d59b2fe6f6ba6f54cfa422a3ecb6e
[ "MIT" ]
null
null
null
setup.py
yonromai/snooze
6183c759a59d59b2fe6f6ba6f54cfa422a3ecb6e
[ "MIT" ]
8
2020-04-14T00:08:30.000Z
2021-06-02T01:28:26.000Z
setup.py
yonromai/snooze
6183c759a59d59b2fe6f6ba6f54cfa422a3ecb6e
[ "MIT" ]
null
null
null
import sys from setuptools import setup assert sys.version_info >= (3, 5, 0), "Snooze requires Python 3.5+" setup( use_scm_version={ "write_to": "snooze/__version__.py", "write_to_template": 'version = "{version}"\n', }, # Keep this in sync with Pipfile / packages install_requires=["...
27.714286
86
0.632302
796c3171e4c8d79a6d527eaca77c3f96d11e1b08
10,938
py
Python
erfnet/lane_detection.py
deltaautonomy/delta_perception
7b40f005b9753464016207d142969890ff6ec031
[ "BSD-3-Clause" ]
1
2021-05-15T13:05:09.000Z
2021-05-15T13:05:09.000Z
erfnet/lane_detection.py
deltaautonomy/delta_perception
7b40f005b9753464016207d142969890ff6ec031
[ "BSD-3-Clause" ]
null
null
null
erfnet/lane_detection.py
deltaautonomy/delta_perception
7b40f005b9753464016207d142969890ff6ec031
[ "BSD-3-Clause" ]
3
2020-02-20T21:59:02.000Z
2021-05-15T13:05:10.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Author : Heethesh Vhavle Email : heethesh@cmu.edu Version : 1.0.0 Date : Sep 18, 2019 ''' # Python 2/3 compatibility from __future__ import print_function, absolute_import, division # Standalone if __name__ == '__main__': import sys sys.path.append('..'...
38.787234
108
0.620132
796c325296f8896a08c777464294abd9d9a045b0
400
py
Python
examples/issues/issue316.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
666
2016-11-14T18:17:40.000Z
2022-03-29T03:53:22.000Z
examples/issues/issue316.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
598
2016-10-20T21:04:09.000Z
2022-03-15T22:44:49.000Z
examples/issues/issue316.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
95
2017-01-19T12:23:58.000Z
2022-03-06T18:16:21.000Z
import sys sys.path.append("../../") from appJar import gui def press(btn): print(btn) app = gui() app.addButton("PRESS", press) app.addButton("IMG", press) app.setButtonImage("IMG", "img2.gif", "right") app.addIconButton("OPEN", press, "OPEN", align="top") app.addImageButton("About", press, "bStar.png", align="...
22.222222
62
0.6775
796c344744669c3f288e539be10687c40b3506fb
262
py
Python
weeehire/config/environment.py
ZubatZeta/WEEEhire
ab76462dbe4203209e4b9076da9868b833dc14d9
[ "MIT" ]
null
null
null
weeehire/config/environment.py
ZubatZeta/WEEEhire
ab76462dbe4203209e4b9076da9868b833dc14d9
[ "MIT" ]
null
null
null
weeehire/config/environment.py
ZubatZeta/WEEEhire
ab76462dbe4203209e4b9076da9868b833dc14d9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """WSGI environment setup for weeehire.""" from weeehire.config.app_cfg import base_config __all__ = ['load_environment'] # Use base_config to setup the environment loader function load_environment = base_config.make_load_environment()
29.111111
58
0.774809
796c35ede1da7089391388eabff0c2b05cc5f75a
2,606
py
Python
treasure_image/__init__.py
FatinShadab/TRREASURE_IMAGE
1f26e023353ecc2e375e1ce098ce27ab05bdc38b
[ "MIT" ]
3
2021-09-28T16:16:53.000Z
2021-10-01T07:03:44.000Z
treasure_image/__init__.py
FatinShadab/TRREASURE_IMAGE
1f26e023353ecc2e375e1ce098ce27ab05bdc38b
[ "MIT" ]
null
null
null
treasure_image/__init__.py
FatinShadab/TRREASURE_IMAGE
1f26e023353ecc2e375e1ce098ce27ab05bdc38b
[ "MIT" ]
1
2021-09-28T16:18:07.000Z
2021-09-28T16:18:07.000Z
""" _________________________________________________________ |_________________________________________________________| | | * __________ * __________ * * | | ...
63.560976
142
0.351497
796c36e5ed78d4d2f22e512e2f7aad11e0c69eec
2,211
py
Python
test/MSVC/pdb-VariantDir-path.py
azverkan/scons
704ddb9270e14c7771d0c58c04c7afa7bc009603
[ "MIT" ]
1
2015-11-04T22:22:10.000Z
2015-11-04T22:22:10.000Z
test/MSVC/pdb-VariantDir-path.py
azverkan/scons
704ddb9270e14c7771d0c58c04c7afa7bc009603
[ "MIT" ]
null
null
null
test/MSVC/pdb-VariantDir-path.py
azverkan/scons
704ddb9270e14c7771d0c58c04c7afa7bc009603
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, ...
26.638554
84
0.710991
796c3870e69cbbbd2a0052f90aa3af32f539dd41
118
py
Python
pythonProject1/guical.py
Arghadeep2021/Codes
367a6f8bde6aa68d58476b6fcc9a473c52ceaae3
[ "MIT" ]
null
null
null
pythonProject1/guical.py
Arghadeep2021/Codes
367a6f8bde6aa68d58476b6fcc9a473c52ceaae3
[ "MIT" ]
null
null
null
pythonProject1/guical.py
Arghadeep2021/Codes
367a6f8bde6aa68d58476b6fcc9a473c52ceaae3
[ "MIT" ]
null
null
null
from tkinter import * windows=Tk() windows.geometry('500x500+150+300') windows.title("Hello World") windows.mainloop()
23.6
35
0.771186
796c3948a26813af8b9887b4c5480754126b1748
94,969
py
Python
pandas/core/generic.py
rgbkrk/pandas
67229f084751fdfeb440878609c92f601bc72df3
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/core/generic.py
rgbkrk/pandas
67229f084751fdfeb440878609c92f601bc72df3
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
pandas/core/generic.py
rgbkrk/pandas
67229f084751fdfeb440878609c92f601bc72df3
[ "PSF-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# pylint: disable=W0231,E1101 import warnings import operator import weakref import numpy as np import pandas.lib as lib from pandas.core.base import PandasObject from pandas.core.index import Index, MultiIndex, _ensure_index import pandas.core.indexing as indexing from pandas.core.indexing import _maybe_convert_indic...
35.370205
135
0.542609
796c3b0e2df6ec5fe45f6c64f56a50945ac58b83
13,437
py
Python
pool_ball_world_physics_visual.py
harvardschoolofmouse/HSOM_PoolBallWorld
c0afdc85091f3ca77e3ac00324f6509208a18bf7
[ "MIT" ]
null
null
null
pool_ball_world_physics_visual.py
harvardschoolofmouse/HSOM_PoolBallWorld
c0afdc85091f3ca77e3ac00324f6509208a18bf7
[ "MIT" ]
null
null
null
pool_ball_world_physics_visual.py
harvardschoolofmouse/HSOM_PoolBallWorld
c0afdc85091f3ca77e3ac00324f6509208a18bf7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jan 12 08:39:41 2021 @author: ahamilos (ahamilos [at] g.harvard.edu) """ """ Visual simulation of Pool Ball World Physics. Built from example from Pymunk """ __version__ = "$Id:$" __docformat__ = "reStructuredText" # Python imports import random impo...
38.723343
260
0.582198
796c3bb8a5dd452f202130aedad00062ddf1f1c4
11,947
py
Python
cryptoapis/model/create_automatic_tokens_forwarding_rb_data.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
5
2021-05-17T04:45:03.000Z
2022-03-23T12:51:46.000Z
cryptoapis/model/create_automatic_tokens_forwarding_rb_data.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
null
null
null
cryptoapis/model/create_automatic_tokens_forwarding_rb_data.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
2
2021-06-02T07:32:26.000Z
2022-02-12T02:36:23.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
44.412639
484
0.589186
796c3c3624ef74f96902d460928dca8cb758c0cf
4,265
py
Python
lib/environment.py
greymistcube/flappy_bird_ai
faa2681a3c8d2c6f493ab9636f68b2353b622d47
[ "MIT" ]
null
null
null
lib/environment.py
greymistcube/flappy_bird_ai
faa2681a3c8d2c6f493ab9636f68b2353b622d47
[ "MIT" ]
null
null
null
lib/environment.py
greymistcube/flappy_bird_ai
faa2681a3c8d2c6f493ab9636f68b2353b622d47
[ "MIT" ]
null
null
null
import random import pygame from lib.settings import Settings from lib.objects import Ball, Wall, Buildings, Cloud from lib.constants import RESOLUTION, WIDTH, HEIGHT from lib.constants import HOLE_Y_VARIANCE from lib.constants import SKY_BLUE pygame.init() settings = Settings() # maybe these functions should be ins...
30.464286
79
0.603751
796c3c6c8a79ac9e9f78db70f874ab786cbb96c9
2,699
py
Python
src/GL/fit/qlp_ml_rand_opt.py
kylmcgr/RL-RNN-SURF
5d6db3e6ff4534003f2a7e832f221b5e529775d5
[ "Apache-2.0" ]
2
2021-03-12T11:12:23.000Z
2021-05-19T08:32:47.000Z
src/GL/fit/qlp_ml_rand_opt.py
kylmcgr/RL-RNN-SURF
5d6db3e6ff4534003f2a7e832f221b5e529775d5
[ "Apache-2.0" ]
6
2019-12-16T21:54:13.000Z
2022-02-10T00:16:08.000Z
src/GL/fit/qlp_ml_rand_opt.py
kylmcgr/RL-RNN-SURF
5d6db3e6ff4534003f2a7e832f221b5e529775d5
[ "Apache-2.0" ]
3
2019-11-07T22:44:21.000Z
2021-02-22T05:51:59.000Z
# This file optimises QLP, but fits a separate model to each subject (instead of fitting a single model to # the whole group). import sys from multiprocessing.pool import Pool from actionflow.data.data_process import DataProcess from actionflow.qrl.opt_ml import OptML from actionflow.qrl.ql import QL from actionflow.u...
32.914634
106
0.640237
796c3c891b6751ff25e08bce358243f7ae8eb29e
815
py
Python
Http/Request.py
Cottin/BrowserREPL-for-Sublime
d5784561932617abc2b6b4513f8034cc9d129916
[ "MIT" ]
32
2016-07-05T08:43:18.000Z
2021-02-05T23:37:29.000Z
Http/Request.py
Cottin/BrowserREPL-for-Sublime
d5784561932617abc2b6b4513f8034cc9d129916
[ "MIT" ]
null
null
null
Http/Request.py
Cottin/BrowserREPL-for-Sublime
d5784561932617abc2b6b4513f8034cc9d129916
[ "MIT" ]
7
2016-04-10T06:47:26.000Z
2021-08-15T07:21:56.000Z
class Request(): """ HTTP request. """ def __init__(self, method, uri, version, headers, data): self._method = method self._uri = uri self._version = version self._headers = headers self._data = data def get_method(self): """ Gets the reque...
18.953488
60
0.500613
796c3d7fc8a22f733ef2d0f6128b2173bd7689cb
1,061
py
Python
.history/ClassFiles/Python301/ObjectOrientatedProgramming/ErrorCatching/ErrorsExceptions_20210216172020.py
minefarmer/CompletePython
6de46e7ee29d9e4eaada60352c193f552afd6f15
[ "Unlicense" ]
null
null
null
.history/ClassFiles/Python301/ObjectOrientatedProgramming/ErrorCatching/ErrorsExceptions_20210216172020.py
minefarmer/CompletePython
6de46e7ee29d9e4eaada60352c193f552afd6f15
[ "Unlicense" ]
null
null
null
.history/ClassFiles/Python301/ObjectOrientatedProgramming/ErrorCatching/ErrorsExceptions_20210216172020.py
minefarmer/CompletePython
6de46e7ee29d9e4eaada60352c193f552afd6f15
[ "Unlicense" ]
null
null
null
# try: # total = 1/0 # # this will not execute # except Exception: # total = 0 # print(total) # 0 # try: # total = 1/0 # print("This will not show up.") # except Exception: # print("Exception was caught") # Exception was caught # total = 0 # print(total) # 0 # num = input("What is a...
25.261905
166
0.604147
796c3e14b22cb925eb8b375b01d488dc04005392
1,682
py
Python
flexget/plugins/operate/sequence.py
signe/Flexget
dfe92d03415aab8254c5cf4827e06ad13da10504
[ "MIT" ]
null
null
null
flexget/plugins/operate/sequence.py
signe/Flexget
dfe92d03415aab8254c5cf4827e06ad13da10504
[ "MIT" ]
null
null
null
flexget/plugins/operate/sequence.py
signe/Flexget
dfe92d03415aab8254c5cf4827e06ad13da10504
[ "MIT" ]
null
null
null
import itertools from loguru import logger from flexget import plugin from flexget.event import event logger = logger.bind(name='sequence') class PluginSequence: """ Allows the same plugin to be configured multiple times in a task. Example: sequence: - rss: http://feeda.com - rss: http://f...
33.64
98
0.600476
796c3ed95d6a1938d97046e7acf4caa43e8e17d2
77
py
Python
WEEKS/wk17/CodeSignal-Solutions/Core_006_-_circleOfNumbers.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/wk17/CodeSignal-Solutions/Core_006_-_circleOfNumbers.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/wk17/CodeSignal-Solutions/Core_006_-_circleOfNumbers.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
def circleOfNumbers(n, firstNumber): return (firstNumber + (n // 2)) % n
25.666667
39
0.649351
796c400aec961a039d579cc4d2e241ff50d35298
825
py
Python
beer/protocols/shared_protocol.py
petrus-hanks/flax-blockchain
6e180dc84ca24c757555c9947f44bd724b1af3eb
[ "Apache-2.0" ]
8
2021-07-08T00:11:49.000Z
2022-02-09T04:28:40.000Z
beer/protocols/shared_protocol.py
petrus-hanks/flax-blockchain
6e180dc84ca24c757555c9947f44bd724b1af3eb
[ "Apache-2.0" ]
15
2021-07-29T06:37:42.000Z
2021-08-29T17:26:08.000Z
beer/protocols/shared_protocol.py
petrus-hanks/flax-blockchain
6e180dc84ca24c757555c9947f44bd724b1af3eb
[ "Apache-2.0" ]
3
2021-10-04T17:51:04.000Z
2022-03-01T04:23:01.000Z
from dataclasses import dataclass from enum import IntEnum from typing import List, Tuple from beer.util.ints import uint8, uint16 from beer.util.streamable import Streamable, streamable protocol_version = "0.0.32" """ Handshake when establishing a connection between two servers. Note: When changing this file, also ...
26.612903
83
0.774545
796c4067e062db739f690c455fc35c95a20e85e6
1,179
py
Python
images.py
kdorst/hsqc-hemi
799409eaaca622cd18100441e9bbc17dfa694d88
[ "MIT" ]
null
null
null
images.py
kdorst/hsqc-hemi
799409eaaca622cd18100441e9bbc17dfa694d88
[ "MIT" ]
null
null
null
images.py
kdorst/hsqc-hemi
799409eaaca622cd18100441e9bbc17dfa694d88
[ "MIT" ]
1
2021-06-10T11:59:45.000Z
2021-06-10T11:59:45.000Z
from PIL import Image import numpy as np import pathlib value_names = ['glc', 'man', 'gal', 'ara', 'xyl'] pred_names = ['glc_pred', 'man_pred', 'gal_pred', 'ara_pred', 'xyl_pred'] target_width = 224 target_height = 224 channels = 3 def get_data_files(): files = [] for subdir in pathlib.Path('trainingset').g...
28.756098
94
0.661578
796c4107ba956f4c8f87e9bb3f82d63fb83da72f
1,331
py
Python
rabbitmq_provider/sensors/rabbitmq.py
tes/airflow-provider-rabbitmq
fa6db29bf3660465f06c4903553662e2b4ab7619
[ "Apache-2.0" ]
1
2022-03-31T12:35:24.000Z
2022-03-31T12:35:24.000Z
rabbitmq_provider/sensors/rabbitmq.py
tes/airflow-provider-rabbitmq
fa6db29bf3660465f06c4903553662e2b4ab7619
[ "Apache-2.0" ]
1
2021-12-16T15:50:35.000Z
2021-12-16T15:50:35.000Z
rabbitmq_provider/sensors/rabbitmq.py
tes/airflow-provider-rabbitmq
fa6db29bf3660465f06c4903553662e2b4ab7619
[ "Apache-2.0" ]
null
null
null
from airflow.sensors.base import BaseSensorOperator from airflow.utils.decorators import apply_defaults from rabbitmq_provider.hooks.rabbitmq import RabbitMQHook class RabbitMQSensor(BaseSensorOperator): """RabbitMQ sensor that monitors a queue for any messages. :param queue_name: The name of the queue to m...
30.953488
86
0.682194
796c4240200e4d215821e867c04748a07547c75b
531
py
Python
Week_1/String variables/code_challenge.py
StephenXie/ACLSummerCoding
c0f17ea80edeb1f7891bd426acd419016e02b40e
[ "MIT" ]
2
2021-07-08T02:10:50.000Z
2021-07-08T02:13:46.000Z
Week_1/String variables/code_challenge.py
StephenXie/ACLSummerCoding
c0f17ea80edeb1f7891bd426acd419016e02b40e
[ "MIT" ]
null
null
null
Week_1/String variables/code_challenge.py
StephenXie/ACLSummerCoding
c0f17ea80edeb1f7891bd426acd419016e02b40e
[ "MIT" ]
null
null
null
# ask a user to enter their first name and store it in a variable # ask a user to enter their last name and store it in a variable # print their full name # Make sure you have a space between first and last name # Make sure the first letter of first name and last name is uppercase # Make sure the rest of the name is lo...
33.1875
69
0.751412
796c424e152d91316a467de1d50647988b958b2e
31,670
py
Python
pkgs/nltk-3.2-py27_0/lib/python2.7/site-packages/nltk/corpus/reader/util.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/nltk-3.2-py27_0/lib/python2.7/site-packages/nltk/corpus/reader/util.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/nltk-3.2-py27_0/lib/python2.7/site-packages/nltk/corpus/reader/util.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# Natural Language Toolkit: Corpus Reader Utilities # # Copyright (C) 2001-2015 NLTK Project # Author: Steven Bird <stevenbird1@gmail.com> # Edward Loper <edloper@gmail.com> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT import os import bisect import re import tempfile from f...
39.538077
85
0.580613
796c43da9935ab3e8e528a213cda01b95a917922
1,630
py
Python
data_structures/graphs/dag_longest_path.py
ruler30cm/python-ds
f84605c5b746ea1d46de3d00b86f5fba399445c7
[ "MIT" ]
1,723
2019-07-30T07:06:22.000Z
2022-03-31T15:22:22.000Z
data_structures/graphs/dag_longest_path.py
crazyguitar/python-ds
2fc7e45577c53d103e90e1fb5de631126e157445
[ "MIT" ]
213
2019-10-06T08:07:47.000Z
2021-10-04T15:38:36.000Z
data_structures/graphs/dag_longest_path.py
crazyguitar/python-ds
2fc7e45577c53d103e90e1fb5de631126e157445
[ "MIT" ]
628
2019-10-06T10:26:25.000Z
2022-03-31T01:41:00.000Z
""" The idea is similar to DAG Shortest Path. Only the comparision part changes """ from collections import defaultdict class Graph: def __init__(self, vertices): self.graph = defaultdict(list) self.vertices = vertices def add_edge(self, u, v, w): self.graph[u].appen...
22.957746
76
0.546012
796c440bffa9668b0c1dd8bb793090f1ee2cc74b
4,921
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/network_interface_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/network_interface_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/network_interface_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.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 ...
47.776699
372
0.675066
796c448d5d5c8348f5f90e506eccbe994fa4ac39
1,437
py
Python
src/TestScaleIntervals.py
ytyaru/Python.MusicTheory.ScaleIntervals.NameJA.201709241518
2f139fc467a6ce4591ec5fefe2e41c50ac98dfe1
[ "CC0-1.0" ]
null
null
null
src/TestScaleIntervals.py
ytyaru/Python.MusicTheory.ScaleIntervals.NameJA.201709241518
2f139fc467a6ce4591ec5fefe2e41c50ac98dfe1
[ "CC0-1.0" ]
null
null
null
src/TestScaleIntervals.py
ytyaru/Python.MusicTheory.ScaleIntervals.NameJA.201709241518
2f139fc467a6ce4591ec5fefe2e41c50ac98dfe1
[ "CC0-1.0" ]
null
null
null
#!python3.6 import unittest import math from MusicTheory.scale.ScaleIntervals import ScaleIntervals """ ScaleIntervalsのテスト。というよりenumの試用テスト。 """ class TestScaleIntervals(unittest.TestCase): def test_reference(self): print(ScaleIntervals) print(dir(ScaleIntervals)) print(ScaleIntervals.Major) ...
39.916667
92
0.715379
796c44f57b58c2e5d396c235adb214994dd1e1d2
15,125
py
Python
python_modules/dagster/dagster_tests/core_tests/config_types_tests/evaluator_tests/test_composite_descent.py
mcoleman-sain/dagster
97ec16d58e68a3a6f3c87010a4906fc34c35befb
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/config_types_tests/evaluator_tests/test_composite_descent.py
mcoleman-sain/dagster
97ec16d58e68a3a6f3c87010a4906fc34c35befb
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/core_tests/config_types_tests/evaluator_tests/test_composite_descent.py
mcoleman-sain/dagster
97ec16d58e68a3a6f3c87010a4906fc34c35befb
[ "Apache-2.0" ]
null
null
null
import pytest from dagster import ( DagsterInvalidConfigError, Enum, EnumValue, Field, InputDefinition, Output, String, composite_solid, execute_pipeline, lambda_solid, pipeline, solid, ) from dagster.core.system_config.composite_descent import composite_descent def te...
28.864504
100
0.62876
796c466a2e861908792843178176bbab967f723c
3,546
py
Python
django_messages_framework/api.py
none-da/zeshare
6c13cd3bd9d82d89f53d4a8b287fe2c30f1d3779
[ "BSD-3-Clause" ]
null
null
null
django_messages_framework/api.py
none-da/zeshare
6c13cd3bd9d82d89f53d4a8b287fe2c30f1d3779
[ "BSD-3-Clause" ]
null
null
null
django_messages_framework/api.py
none-da/zeshare
6c13cd3bd9d82d89f53d4a8b287fe2c30f1d3779
[ "BSD-3-Clause" ]
1
2021-04-12T11:43:38.000Z
2021-04-12T11:43:38.000Z
from django_messages_framework import constants from django_messages_framework.storage import default_storage from django.utils.functional import lazy, memoize __all__ = ( 'add_message', 'get_messages', 'debug', 'info', 'success', 'warning', 'error', ) class MessageFailure(Exception): pass def add_mess...
31.105263
78
0.666949
796c466fc54e47fdee96601c273790ea0ce42298
9,742
py
Python
train.py
SilverSulfide/glow-tts
f517d003c703da26341bb4468f6ba432bff1749f
[ "MIT" ]
null
null
null
train.py
SilverSulfide/glow-tts
f517d003c703da26341bb4468f6ba432bff1749f
[ "MIT" ]
null
null
null
train.py
SilverSulfide/glow-tts
f517d003c703da26341bb4468f6ba432bff1749f
[ "MIT" ]
1
2020-09-23T07:57:25.000Z
2020-09-23T07:57:25.000Z
import os import json import argparse import math import torch from torch import nn, optim from torch.nn import functional as F from torch.utils.data import DataLoader from torch.utils.tensorboard import SummaryWriter import torch.multiprocessing as mp import torch.distributed as dist from apex.parallel import Distribu...
45.95283
120
0.593307
796c481a65c4c6589561023a4cdd3ef6777df74b
42,625
py
Python
test/functional/test_framework/messages.py
kodxana/F44RedCoin
a6948cb0328c0962fa87224a4dcc3138febbf3be
[ "MIT" ]
null
null
null
test/functional/test_framework/messages.py
kodxana/F44RedCoin
a6948cb0328c0962fa87224a4dcc3138febbf3be
[ "MIT" ]
null
null
null
test/functional/test_framework/messages.py
kodxana/F44RedCoin
a6948cb0328c0962fa87224a4dcc3138febbf3be
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2010 ArtForz -- public domain half-a-node # Copyright (c) 2012 Jeff Garzik # Copyright (c) 2010-2019 The F44RedCoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """F44RedCoi...
28.416667
262
0.599437
796c48b9fb9ccd99db59e45d36390e2652895b89
887
py
Python
backend/api/urls.py
corporacion-verde/cverde
7a15dfe7b4cda4c013e29f7125e57d99e3d05980
[ "MIT" ]
null
null
null
backend/api/urls.py
corporacion-verde/cverde
7a15dfe7b4cda4c013e29f7125e57d99e3d05980
[ "MIT" ]
4
2021-04-08T19:56:11.000Z
2021-09-22T18:47:54.000Z
backend/api/urls.py
corporacion-verde/cverde
7a15dfe7b4cda4c013e29f7125e57d99e3d05980
[ "MIT" ]
null
null
null
"""api URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
36.958333
82
0.711387
796c4a468f497c71f9327e25abab66561c090258
22,393
py
Python
tables/scripts/ptrepack.py
mingwandroid/PyTables
c8198548f124b08727783fa14e5b7d7257c0fae2
[ "BSD-3-Clause" ]
8
2017-08-10T03:42:27.000Z
2021-06-01T16:41:57.000Z
tables/scripts/ptrepack.py
mingwandroid/PyTables
c8198548f124b08727783fa14e5b7d7257c0fae2
[ "BSD-3-Clause" ]
null
null
null
tables/scripts/ptrepack.py
mingwandroid/PyTables
c8198548f124b08727783fa14e5b7d7257c0fae2
[ "BSD-3-Clause" ]
9
2018-09-14T02:42:36.000Z
2021-07-12T02:37:45.000Z
# -*- coding: utf-8 -*- ######################################################################## # # License: BSD # Created: February 10, 2004 # Author: Francesc Alted - faltet@pytables.com # # $Id$ # ######################################################################## """This utility lets you repack your data f...
38.944348
81
0.592953
796c4a6cbc48007047757261bc6c234a0e0e4b4c
1,671
py
Python
python/http_client/v1/setup.py
mouradmourafiq/polyaxon-client
5fc32b9decc7305161561d404b0127f3e900c64a
[ "Apache-2.0" ]
null
null
null
python/http_client/v1/setup.py
mouradmourafiq/polyaxon-client
5fc32b9decc7305161561d404b0127f3e900c64a
[ "Apache-2.0" ]
null
null
null
python/http_client/v1/setup.py
mouradmourafiq/polyaxon-client
5fc32b9decc7305161561d404b0127f3e900c64a
[ "Apache-2.0" ]
1
2021-12-03T07:12:03.000Z
2021-12-03T07:12:03.000Z
#!/usr/bin/python # # Copyright 2018-2022 Polyaxon, 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 ...
28.810345
91
0.712148
796c4ac3d3a75cce6dbf0792c66568bf9fc980ef
5,928
py
Python
dojo/home/views.py
eaguade-bodas/django-DefectDojo
6a6353367c289710f8f0be0ab8742bc64439195c
[ "BSD-3-Clause" ]
1
2020-09-10T02:26:49.000Z
2020-09-10T02:26:49.000Z
dojo/home/views.py
eaguade-bodas/django-DefectDojo
6a6353367c289710f8f0be0ab8742bc64439195c
[ "BSD-3-Clause" ]
51
2020-06-06T00:29:00.000Z
2022-03-10T23:14:37.000Z
dojo/home/views.py
eaguade-bodas/django-DefectDojo
6a6353367c289710f8f0be0ab8742bc64439195c
[ "BSD-3-Clause" ]
1
2020-11-06T10:54:46.000Z
2020-11-06T10:54:46.000Z
# # dojo home pages import logging from calendar import monthrange from datetime import datetime, timedelta from math import ceil from dateutil.relativedelta import relativedelta from django.contrib.auth.decorators import user_passes_test from django.urls import reverse from django.http import HttpResponseRedirect fr...
43.270073
116
0.520918
796c4c1fc2a9918526b76fbc64c4ffcc102e7c3d
401
py
Python
server/models/groups.py
rsanting/PlanarAlly
8eccfdedd3e44241b4e8c54665b7bdb1da95c71f
[ "MIT" ]
null
null
null
server/models/groups.py
rsanting/PlanarAlly
8eccfdedd3e44241b4e8c54665b7bdb1da95c71f
[ "MIT" ]
null
null
null
server/models/groups.py
rsanting/PlanarAlly
8eccfdedd3e44241b4e8c54665b7bdb1da95c71f
[ "MIT" ]
null
null
null
from uuid import uuid4 from peewee import TextField from .base import BaseModel class Group(BaseModel): uuid = TextField(primary_key=True) character_set = TextField(default="0,1,2,3,4,5,6,7,8,9") creation_order = TextField(default="incrementing") def make_copy(self): return Group.create(uui...
26.733333
111
0.745636
796c4c6e8c7af780973033a79ff1bfba84d7c4aa
445
py
Python
Latest/venv/Scripts/pip3-script.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-01-09T20:04:31.000Z
2022-01-09T20:04:31.000Z
Latest/venv/Scripts/pip3-script.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-02-15T12:01:57.000Z
2022-03-24T19:48:47.000Z
Latest/venv/Scripts/pip3-script.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
null
null
null
#!"C:\Users\adzs3\OneDrive\Documents\Computer Science\Coursework\Client\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-scrip...
34.230769
96
0.680899
796c4c75d542a44f631cdfa31d536a1a52d7f570
136
py
Python
tests/classification/digits/ws_digits_DummyClassifier_mysql_code_gen.py
antoinecarme/sklearn2sql_heroku
d680db10683daa419324461eeea851dd8b103ad5
[ "BSD-3-Clause" ]
1
2019-07-09T14:45:18.000Z
2019-07-09T14:45:18.000Z
tests/classification/digits/ws_digits_DummyClassifier_mysql_code_gen.py
antoinecarme/sklearn2sql_heroku
d680db10683daa419324461eeea851dd8b103ad5
[ "BSD-3-Clause" ]
5
2017-11-13T13:35:37.000Z
2021-11-11T12:57:20.000Z
tests/classification/digits/ws_digits_DummyClassifier_mysql_code_gen.py
antoinecarme/sklearn2sql_heroku
d680db10683daa419324461eeea851dd8b103ad5
[ "BSD-3-Clause" ]
1
2021-09-19T15:05:33.000Z
2021-09-19T15:05:33.000Z
from sklearn2sql_heroku.tests.classification import generic as class_gen class_gen.test_model("DummyClassifier" , "digits" , "mysql")
27.2
72
0.808824
796c4d9c0bacf7cb742b1d7093c1f0645b844bad
388
py
Python
env/Lib/site-packages/plotly/validators/candlestick/_xsrc.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/candlestick/_xsrc.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/candlestick/_xsrc.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__(self, plotly_name="xsrc", parent_name="candlestick", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_t...
32.333333
80
0.667526
796c4dbe26b41845b46dc75ee548caed5c179870
1,705
py
Python
setup.py
gthb/python-pptx
c4c6815b19310b73f4a312b42620b82395a2c5d1
[ "BSD-2-Clause" ]
null
null
null
setup.py
gthb/python-pptx
c4c6815b19310b73f4a312b42620b82395a2c5d1
[ "BSD-2-Clause" ]
null
null
null
setup.py
gthb/python-pptx
c4c6815b19310b73f4a312b42620b82395a2c5d1
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import os from setuptools import setup from glob import glob from pptx import __version__ NAME = 'python-pptx' VERSION = __version__ DESCRIPTION = 'Generate and manipulate Open XML PowerPoint (.pptx) files' AUTHOR = 'Steve Canny' AUTHOR_EMAIL = 'python.pptx@librelist.com' U...
28.416667
74
0.603519
796c4e8554fb93d8a0dc880925448611b22f8c27
16,388
py
Python
allWHITE_random_2.py
AUFinalProject/Phase5-withRandom
6b97da2b9d362efb6669715234a9833b6dfa1c47
[ "MIT" ]
null
null
null
allWHITE_random_2.py
AUFinalProject/Phase5-withRandom
6b97da2b9d362efb6669715234a9833b6dfa1c47
[ "MIT" ]
null
null
null
allWHITE_random_2.py
AUFinalProject/Phase5-withRandom
6b97da2b9d362efb6669715234a9833b6dfa1c47
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------------------------------------------------------------------------------------- # Main, three machines (image - KMC, text - Logistic Regression, features - RF) and all white pdfs files # @Authors: Alexey Titov and Shir Bentabou # @Version:...
42.566234
159
0.653405
796c4f0cd41a178fe9721e7fe2603a71be8ae1ab
1,363
py
Python
tests/unit/repositories/test_user_education_repo.py
Maxcutex/pm_api
de1e1a07feecd1be7bb86a87b4ffed012a05aec0
[ "MIT" ]
null
null
null
tests/unit/repositories/test_user_education_repo.py
Maxcutex/pm_api
de1e1a07feecd1be7bb86a87b4ffed012a05aec0
[ "MIT" ]
null
null
null
tests/unit/repositories/test_user_education_repo.py
Maxcutex/pm_api
de1e1a07feecd1be7bb86a87b4ffed012a05aec0
[ "MIT" ]
null
null
null
from app.models import UserEducation from tests.base_test_case import BaseTestCase from factories.user_education_factory import UserEducationFactoryFake from factories.user_factory import UserFactory from app.repositories.user_education_repo import UserEducationRepo class TestUserEducationRepo(BaseTestCase): def ...
41.30303
83
0.74248
796c4f9d23043460271032fd73d387d7f0b368bf
145
py
Python
days/day072/exercises/117/round_even.py
alex-vegan/100daysofcode-with-python-course
b6c12316abe18274b7963371b8f0ed2fd549ef07
[ "MIT" ]
2
2018-10-28T17:12:37.000Z
2018-10-28T17:12:39.000Z
days/day072/exercises/117/round_even.py
alex-vegan/100daysofcode-with-python-course
b6c12316abe18274b7963371b8f0ed2fd549ef07
[ "MIT" ]
3
2018-10-28T17:11:04.000Z
2018-10-29T22:36:36.000Z
days/day072/exercises/117/round_even.py
alex-vegan/100daysofcode-with-python-course
b6c12316abe18274b7963371b8f0ed2fd549ef07
[ "MIT" ]
null
null
null
from decimal import Decimal def round_even(number): """Takes a number and returns it rounded even""" return round(Decimal(number))
24.166667
53
0.703448
796c50a931d5ec1438868daa9b9de189a5c8d2ab
22,777
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/route_filter_rules_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/route_filter_rules_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/route_filter_rules_operations.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.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 ...
48.154334
196
0.679589
796c50e699b741a825d9b3a65f978bf2d01ff112
13,927
py
Python
qiskit/transpiler/passmanager.py
904194705/Qiskit-RIKEN-project-
fae93bc413e5f62b756d58e81d215f1c342bc848
[ "Apache-2.0" ]
null
null
null
qiskit/transpiler/passmanager.py
904194705/Qiskit-RIKEN-project-
fae93bc413e5f62b756d58e81d215f1c342bc848
[ "Apache-2.0" ]
null
null
null
qiskit/transpiler/passmanager.py
904194705/Qiskit-RIKEN-project-
fae93bc413e5f62b756d58e81d215f1c342bc848
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any ...
37.742547
99
0.629425
796c5163bebc34de2d130ebf079c47a77ddae1e2
2,190
py
Python
tensorflow_imp_char/couplets_utils.py
CoderSLZhang/-LTSM-
c163d53d5177d59e18b88ae5f05b0cf3a8aecf6a
[ "MIT" ]
4
2019-10-08T14:03:02.000Z
2021-01-28T12:14:58.000Z
tensorflow_imp_char/couplets_utils.py
CoderSLZhang/-LTSM-
c163d53d5177d59e18b88ae5f05b0cf3a8aecf6a
[ "MIT" ]
null
null
null
tensorflow_imp_char/couplets_utils.py
CoderSLZhang/-LTSM-
c163d53d5177d59e18b88ae5f05b0cf3a8aecf6a
[ "MIT" ]
2
2018-06-15T09:55:12.000Z
2018-06-20T08:16:19.000Z
# Author: zhangshulin # Email: zhangslwork@yeah.net # Date: 2018-04-30 # Last Modified by: zhangshulin FILF_PATH = './datasets/all_couplets.txt' from datasets_creator import Datasets_creator from batch_generator import Batch_generator import numpy as np def load_datasets(max_vocabs_size=5000, max_len=30, dev_t...
26.385542
85
0.689954
796c51de7a95db7edb76c66288e907b14127987a
1,788
py
Python
venidium/util/cached_bls.py
Venidium-Network/venidium-blockchain
600af545018e2cc03c808315239d57c74cffd57d
[ "Apache-2.0" ]
7
2021-06-29T22:23:55.000Z
2022-02-09T04:32:46.000Z
venidium/util/cached_bls.py
Venidium-Network/venidium-blockchain
600af545018e2cc03c808315239d57c74cffd57d
[ "Apache-2.0" ]
2
2021-09-13T03:23:59.000Z
2022-01-12T20:20:27.000Z
venidium/util/cached_bls.py
Venidium-Network/venidium-blockchain
600af545018e2cc03c808315239d57c74cffd57d
[ "Apache-2.0" ]
null
null
null
import functools from typing import List, Optional from blspy import AugSchemeMPL, G1Element, G2Element, GTElement from venidium.util.hash import std_hash from venidium.util.lru_cache import LRUCache def get_pairings(cache: LRUCache, pks: List[G1Element], msgs: List[bytes], force_cache: bool) -> List[GTElement]: ...
35.76
117
0.658277
796c5205cb413284eb9757b603714cb36c9f2cb1
10,298
py
Python
pytest_bdd/steps.py
Prisma-Saas-Dev/public-repo1
f7850807e7302effe6b654e2b3fecf2851d8dfca
[ "MIT" ]
1
2015-11-21T17:46:49.000Z
2015-11-21T17:46:49.000Z
pytest_bdd/steps.py
The-Compiler/pytest-bdd
30076d478c34afc67c41460a2956b430f15e7f90
[ "MIT" ]
null
null
null
pytest_bdd/steps.py
The-Compiler/pytest-bdd
30076d478c34afc67c41460a2956b430f15e7f90
[ "MIT" ]
null
null
null
"""Step decorators. Example: @given("I have an article") def article(author): return create_test_article(author=author) @when("I go to the article page") def go_to_the_article_page(browser, article): browser.visit(urljoin(browser.url, "/articles/{0}/".format(article.id))) @then("I should not see the error...
31.588957
117
0.679452
796c526b4b7c6fa5420ea6acadb8eb4ee8b1e8d2
616
py
Python
desktop/core/ext-py/pyasn1-0.1.8/test/codec/ber/suite.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
8
2016-02-08T11:59:31.000Z
2020-05-31T15:19:54.000Z
desktop/core/ext-py/pyasn1-0.1.8/test/codec/ber/suite.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
4
2021-03-11T04:02:00.000Z
2022-03-27T08:31:56.000Z
desktop/core/ext-py/pyasn1-0.1.8/test/codec/ber/suite.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
7
2016-02-09T09:28:14.000Z
2020-07-25T19:03:36.000Z
from sys import path, version_info from os.path import sep path.insert(1, path[0]+sep+'ber') import test_encoder, test_decoder from pyasn1.error import PyAsn1Error if version_info[0:2] < (2, 7) or \ version_info[0:2] in ( (3, 0), (3, 1) ): try: import unittest2 as unittest except ImportError: ...
26.782609
63
0.714286
796c5535d5b1e25901dd03e5b4addbc989f4c3f3
4,903
py
Python
codes/models/arch/generator_resnet.py
chaosink/AdvMCDenoise
e316c5882d450175cf3e3a1be6825451d273af34
[ "MIT" ]
35
2019-11-04T06:49:39.000Z
2022-01-13T07:53:37.000Z
codes/models/arch/generator_resnet.py
qbhan/Adversarial_MCdenoising
a99bf312baf2430d750d70a79270aca0720532aa
[ "MIT" ]
1
2019-11-28T22:33:11.000Z
2019-11-28T22:33:11.000Z
codes/models/arch/generator_resnet.py
qbhan/Adversarial_MCdenoising
a99bf312baf2430d750d70a79270aca0720532aa
[ "MIT" ]
8
2019-11-08T04:58:08.000Z
2020-11-03T07:49:58.000Z
import math import torch import torch.nn as nn import torchvision from . import block as B import functools import torch.nn.functional as F class ResNet(nn.Module): def __init__(self, in_nc, out_nc, nf, nb, norm_type='batch', act_type='relu', \ mode='NAC', res_scale=1): super(DENOISEDResNet, s...
32.686667
122
0.538446
796c5589ef6cddb945fbae7e3320201ba0a537d5
8,313
py
Python
twisted/logger/test/test_flatten.py
jMyles/twisted
a5108c0db829847bbfd4bf427868eb0b13da0465
[ "Unlicense", "MIT" ]
1
2015-08-18T06:57:28.000Z
2015-08-18T06:57:28.000Z
twisted/logger/test/test_flatten.py
jMyles/twisted
a5108c0db829847bbfd4bf427868eb0b13da0465
[ "Unlicense", "MIT" ]
1
2022-03-04T17:40:22.000Z
2022-03-04T17:40:22.000Z
twisted/logger/test/test_flatten.py
jMyles/twisted
a5108c0db829847bbfd4bf427868eb0b13da0465
[ "Unlicense", "MIT" ]
1
2020-11-01T20:40:01.000Z
2020-11-01T20:40:01.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Test cases for L{twisted.logger._format}. """ import sys from itertools import count import json try: from time import tzset # We should upgrade to a version of pyflakes that does not require this. tzset except ImportError: t...
28.469178
79
0.542764
796c55eddee019f97ef19b2f05f8aec92cab44af
422
py
Python
test_pyntp.py
sruizr/pysntp
4adb33c85e4b7839ea7e8df1a8e45b9987644848
[ "MIT" ]
null
null
null
test_pyntp.py
sruizr/pysntp
4adb33c85e4b7839ea7e8df1a8e45b9987644848
[ "MIT" ]
null
null
null
test_pyntp.py
sruizr/pysntp
4adb33c85e4b7839ea7e8df1a8e45b9987644848
[ "MIT" ]
null
null
null
from ntpserver import NTPServer import ntplib import time from unittest.mock import Mock def test_ntp_server(): what_time_is_it = Mock() what_time_is_it.return_value = 1584358705.860036 server = NTPServer('127.0.0.1', 1234, what_time_is_it) server.start() client = ntplib.NTPClient() response...
24.823529
64
0.727488
796c56abcfb17657b7bf35bea50f55c9607ea20e
1,558
py
Python
features/steps/files_with_certs_steps.py
alphagov/expired-cert-finder
c77843dab36a12f82cba9cdf18d85dfc5dd5e7c5
[ "MIT" ]
1
2021-01-30T18:45:02.000Z
2021-01-30T18:45:02.000Z
features/steps/files_with_certs_steps.py
alphagov/expired-cert-finder
c77843dab36a12f82cba9cdf18d85dfc5dd5e7c5
[ "MIT" ]
null
null
null
features/steps/files_with_certs_steps.py
alphagov/expired-cert-finder
c77843dab36a12f82cba9cdf18d85dfc5dd5e7c5
[ "MIT" ]
2
2021-01-31T00:07:09.000Z
2021-04-10T20:17:57.000Z
from os import walk from subprocess import run from features.steps.shared.cert_creator import create_certs @given(u'a file exists with a certificate with expiry of "{days}" days') def create_cert_files(context, days): create_certs(days) @when(u'certificate checker is run') def run_cert_checker(context): cer...
28.327273
150
0.737484
796c5735e9b2e062f112e8a424b3d7bfb191b0b0
203
py
Python
__init__.py
NeonDaniel/skill-osm-test
06fabb262077d80c32ffd12ed1092bb914658067
[ "BSD-3-Clause" ]
null
null
null
__init__.py
NeonDaniel/skill-osm-test
06fabb262077d80c32ffd12ed1092bb914658067
[ "BSD-3-Clause" ]
null
null
null
__init__.py
NeonDaniel/skill-osm-test
06fabb262077d80c32ffd12ed1092bb914658067
[ "BSD-3-Clause" ]
1
2021-08-31T22:21:40.000Z
2021-08-31T22:21:40.000Z
class OVOSTestSkill(OVOSSkill): def __init__(self): super(OVOSTestSkill, self).__init__(name="OVOSTestSkill") self.is_a_skill = False def create_skill(): return OVOSTestSkill()
22.555556
65
0.699507
796c57b33d2773aa4a7b1db1ac1dcc51316a600e
392
py
Python
surfemb/scripts/misc/compact_model.py
rasmushaugaard/surfemb
53e1852433a3b2b84fedc7a3a01674fe1b6189cc
[ "MIT" ]
1
2022-03-30T13:42:26.000Z
2022-03-30T13:42:26.000Z
surfemb/scripts/misc/compact_model.py
RasmusHaugaard/surfemb
53e1852433a3b2b84fedc7a3a01674fe1b6189cc
[ "MIT" ]
1
2022-03-31T08:23:55.000Z
2022-03-31T08:23:55.000Z
surfemb/scripts/misc/compact_model.py
RasmusHaugaard/surfemb
53e1852433a3b2b84fedc7a3a01674fe1b6189cc
[ "MIT" ]
null
null
null
""" By default, the optimizer parameters are also saved with the model. """ import argparse import torch parser = argparse.ArgumentParser() parser.add_argument('model_path') args = parser.parse_args() ckpt = torch.load(args.model_path) torch.save(dict( state_dict=ckpt['state_dict'], hyper_parameters=ckpt['hy...
23.058824
67
0.744898
796c588524c196678b67f0522ac532e85793fbc0
6,927
py
Python
ai_flow_plugins/tests/it_workflows/workflows/test_action_on_event/test_action_on_event.py
ideax-business/ai-flow
0a7797a093beddf827f68cad7a11e0babf1b5059
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-11-17T02:31:48.000Z
2021-11-17T02:31:48.000Z
ai_flow_plugins/tests/it_workflows/workflows/test_action_on_event/test_action_on_event.py
lee0528123/ai-flow
fccd6c3ae4aa782745fba897acc0c928d6d8df98
[ "Apache-2.0" ]
null
null
null
ai_flow_plugins/tests/it_workflows/workflows/test_action_on_event/test_action_on_event.py
lee0528123/ai-flow
fccd6c3ae4aa782745fba897acc0c928d6d8df98
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
44.403846
119
0.668976
796c58a22ab1aa92f20f78e8689abb991eeabb21
6,355
py
Python
circus/tests/test_stats_collector.py
sphuber/circus
da45a601001954082ed270d130922d9ce46b983c
[ "Apache-2.0" ]
1
2015-10-15T00:16:37.000Z
2015-10-15T00:16:37.000Z
circus/tests/test_stats_collector.py
sphuber/circus
da45a601001954082ed270d130922d9ce46b983c
[ "Apache-2.0" ]
1
2016-06-20T22:11:35.000Z
2016-06-20T22:11:35.000Z
circus/tests/test_stats_collector.py
sphuber/circus
da45a601001954082ed270d130922d9ce46b983c
[ "Apache-2.0" ]
2
2019-01-15T10:38:19.000Z
2020-09-14T14:07:50.000Z
import socket import time from collections import defaultdict from circus.fixed_threading import Thread from zmq.eventloop import ioloop from circus.stats import collector as collector_module from circus.stats.collector import SocketStatsCollector, WatcherStatsCollector from circus.tests.support import TestCase, Easy...
32.09596
78
0.533124