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
1c0decce160bf4cc938c67f7d28374323a85c7ac
11,696
py
Python
usaspending_api/awards/serializers.py
animatecitizen/usaspending-api
556511ff51fe80a8be8361daa5876fd684a04efe
[ "CC0-1.0" ]
null
null
null
usaspending_api/awards/serializers.py
animatecitizen/usaspending-api
556511ff51fe80a8be8361daa5876fd684a04efe
[ "CC0-1.0" ]
null
null
null
usaspending_api/awards/serializers.py
animatecitizen/usaspending-api
556511ff51fe80a8be8361daa5876fd684a04efe
[ "CC0-1.0" ]
null
null
null
from rest_framework import serializers from usaspending_api.accounts.serializers import TasSerializer from usaspending_api.awards.models import Award, FinancialAccountsByAwards, Subaward from usaspending_api.awards.models import TransactionNormalized, TransactionFPDS, TransactionFABS from usaspending_api.common.helper...
32.579387
116
0.531036
1c0dff2da6fdeffb450a6ee7942c63a781cdd8aa
353
py
Python
setup.py
wholewheattoast/quickshot
ef8d494f2ff2e486a270232e66fb96b48b3ee102
[ "Apache-2.0" ]
null
null
null
setup.py
wholewheattoast/quickshot
ef8d494f2ff2e486a270232e66fb96b48b3ee102
[ "Apache-2.0" ]
3
2021-02-04T01:26:00.000Z
2021-02-04T23:01:56.000Z
setup.py
wholewheattoast/quickshot
ef8d494f2ff2e486a270232e66fb96b48b3ee102
[ "Apache-2.0" ]
null
null
null
import setuptools setuptools.setup( name='Quickshot', version='1.2', author="Shawn Eisenach", author_email="shawn@wholewheattoast.com", packages=setuptools.find_packages(), description="A simple tool to visdiff two web pages.", long_description=open('README.md').read(), long_description...
27.153846
58
0.716714
1c0e47a28d53980cb81ecdb45fa3887151c4177e
8,376
py
Python
nevergrad/benchmark/test_plotting.py
juliendehos/nevergrad
b31a66bdc883e29a6c8572e341b4b56cc4157a9d
[ "MIT" ]
null
null
null
nevergrad/benchmark/test_plotting.py
juliendehos/nevergrad
b31a66bdc883e29a6c8572e341b4b56cc4157a9d
[ "MIT" ]
null
null
null
nevergrad/benchmark/test_plotting.py
juliendehos/nevergrad
b31a66bdc883e29a6c8572e341b4b56cc4157a9d
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from . import plotting # pylint: disable=wrong-import-position, wrong-import-order from unittest.mock import patch from ...
41.671642
105
0.648997
1c0e6b62373e21c7ccc45bfcc5ea79aeeaed8951
1,262
py
Python
homeassistant/components/process.py
loghound/home-assistant
48089b01ab38848b07517a4d3e847cc0f79cf435
[ "MIT" ]
1
2017-03-01T10:57:20.000Z
2017-03-01T10:57:20.000Z
homeassistant/components/process.py
loghound/home-assistant
48089b01ab38848b07517a4d3e847cc0f79cf435
[ "MIT" ]
null
null
null
homeassistant/components/process.py
loghound/home-assistant
48089b01ab38848b07517a4d3e847cc0f79cf435
[ "MIT" ]
1
2020-11-13T10:06:21.000Z
2020-11-13T10:06:21.000Z
""" homeassistant.components.process ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Provides functionality to watch for specific processes running on the host machine. Author: Markus Stenberg <fingon@iki.fi> """ import os from homeassistant.components import STATE_ON, STATE_OFF import homeassistant.util as util DOMAIN = 'proces...
25.755102
79
0.664025
1c0e81cbbc7e74e83fd07f23642c4b544b269249
2,692
py
Python
xpython/stdlib/builtins_31.py
rocky/xpython
ce4ed4329cee2af0aab94254276f5a5687dd25f9
[ "MIT" ]
1
2020-04-28T13:18:13.000Z
2020-04-28T13:18:13.000Z
xpython/stdlib/builtins_31.py
rocky/xbyterun
fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9
[ "MIT" ]
null
null
null
xpython/stdlib/builtins_31.py
rocky/xbyterun
fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9
[ "MIT" ]
null
null
null
""" A list of builtins for 3.1 """ builtins = set( [ "ArithmeticError", "AssertionError", "AttributeError", "BaseException", "BufferError", "BytesWarning", "DeprecationWarning", "EOFError", "Ellipsis", "EnvironmentError", "Excep...
19.649635
36
0.412333
1c0e97621434858a75f01d98da2fa332d9e9d28b
19,091
py
Python
data/import_sirius_scores.py
aalto-ics-kepaco/lcms2struct_exp
5baa3edd0e58d24f739efd4086031f6fbdba6ad9
[ "MIT" ]
null
null
null
data/import_sirius_scores.py
aalto-ics-kepaco/lcms2struct_exp
5baa3edd0e58d24f739efd4086031f6fbdba6ad9
[ "MIT" ]
null
null
null
data/import_sirius_scores.py
aalto-ics-kepaco/lcms2struct_exp
5baa3edd0e58d24f739efd4086031f6fbdba6ad9
[ "MIT" ]
null
null
null
#### # # The MIT License (MIT) # # Copyright 2021 Eric Bach <eric.bach@aalto.fi> # # 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...
49.716146
123
0.510817
1c0ea2ae9cded99863aeca402885bb8e82e6ceac
1,456
py
Python
src/features/build_features.py
karun-r/pumpitup
abe696f2682512c76156a5534a6e59d7941f87b1
[ "MIT" ]
1
2020-02-06T16:32:19.000Z
2020-02-06T16:32:19.000Z
src/features/build_features.py
oskinm/pumpitup
abe696f2682512c76156a5534a6e59d7941f87b1
[ "MIT" ]
null
null
null
src/features/build_features.py
oskinm/pumpitup
abe696f2682512c76156a5534a6e59d7941f87b1
[ "MIT" ]
2
2018-10-30T20:58:16.000Z
2020-02-06T16:31:36.000Z
import pandas as pd import math #import os #print(os.getcwd()) #from src.data import make_dataset def get_age_from_year(df, year_col_name): if not (isinstance(df, pd.core.frame.DataFrame)): type_rec = type(df) error_msg = str.format("Type Exception occured. Expecting a dataframe. Received {0}", typ...
48.533333
144
0.699863
1c0eaeb9c42f31db1bbcb7f74567f611c347a7ad
3,049
py
Python
AqSolDB_example.py
mcsorkun/Genetic-Selection-Cheminformatics
6f85cd26ffc0aa00b8c34c6d482a2a5f4de149ae
[ "MIT" ]
2
2020-11-18T06:26:58.000Z
2021-08-30T04:27:48.000Z
AqSolDB_example.py
mcsorkun/Genetic-Selection-Cheminformatics
6f85cd26ffc0aa00b8c34c6d482a2a5f4de149ae
[ "MIT" ]
null
null
null
AqSolDB_example.py
mcsorkun/Genetic-Selection-Cheminformatics
6f85cd26ffc0aa00b8c34c6d482a2a5f4de149ae
[ "MIT" ]
1
2021-08-14T05:48:11.000Z
2021-08-14T05:48:11.000Z
# -*- coding: utf-8 -*- """ Created on Tue May 26 18:35:38 2020 @author: Murat Cihan Sorkun Feature Selection by Genetic Algorithm: An example on AqSolDB dataset (Aqueous Solubility) """ from sklearn.model_selection import train_test_split from sklearn.neural_network import MLPRegressor import genetic f...
33.141304
156
0.716956
1c0ed49487f416afac41881644139308f44b8dda
114
py
Python
launcher.py
a2mky/boatbot
3df77c7c76027213dae26a7900a7eaf5e3b4a8dd
[ "MIT" ]
null
null
null
launcher.py
a2mky/boatbot
3df77c7c76027213dae26a7900a7eaf5e3b4a8dd
[ "MIT" ]
null
null
null
launcher.py
a2mky/boatbot
3df77c7c76027213dae26a7900a7eaf5e3b4a8dd
[ "MIT" ]
null
null
null
import assets import sys try: message('Starting Boat Bot!') start() except: error('Starting Bot') sys.exit()
11.4
30
0.701754
1c0ed6dd032c47d4892dc5b85220212a2934a039
13,428
py
Python
cogs/calculators.py
zedchance/blues_bot.py
ab2183739f04d927865d12a7f3d1c79c5fa62c8e
[ "MIT" ]
5
2020-01-05T18:53:20.000Z
2022-03-19T13:01:24.000Z
cogs/calculators.py
zedchance/blues_bot.py
ab2183739f04d927865d12a7f3d1c79c5fa62c8e
[ "MIT" ]
22
2019-10-27T00:56:30.000Z
2021-07-13T16:42:24.000Z
cogs/calculators.py
zedchance/blues_bot.py
ab2183739f04d927865d12a7f3d1c79c5fa62c8e
[ "MIT" ]
11
2020-01-05T18:53:22.000Z
2022-03-30T22:20:13.000Z
import discord from discord.ext import commands from calcs.agility import Agility from calcs.alchemy import Alchemy from calcs.experience import next_level_string from calcs.pickpocket import Pickpocket from calcs.tasks import Tasks from calcs.wines import Wines from calcs.wintertodt import Wintertodt from calcs.zeah ...
55.259259
116
0.550268
1c0eecf37b90cd99cb9410786e3a34d1d478a721
4,859
py
Python
DonkiDirector/InfoServer.py
ess-dmsc/do-ess-data-simulator
37ef0d87ad0152b092e3a636ef8d080db0711aaa
[ "BSD-2-Clause" ]
null
null
null
DonkiDirector/InfoServer.py
ess-dmsc/do-ess-data-simulator
37ef0d87ad0152b092e3a636ef8d080db0711aaa
[ "BSD-2-Clause" ]
null
null
null
DonkiDirector/InfoServer.py
ess-dmsc/do-ess-data-simulator
37ef0d87ad0152b092e3a636ef8d080db0711aaa
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import sys import os import time import threading import thread import signal from socket import * import types from tinydb import TinyDB, Query, where import traceback import select # class infoServerThread(threading.Thread): #----------------------------------------------------...
36.533835
85
0.389586
1c0f0b1d4088e36f60c07956347aee0cd68151f9
2,033
py
Python
n_utils/tests/aws_infra_util_test.py
NitorCreations/nitor-deploy-tools
93dd86d5e6586520f72dd38319f55849bf4a5bc5
[ "Apache-2.0" ]
10
2017-02-12T17:04:56.000Z
2018-11-10T16:46:57.000Z
n_utils/tests/aws_infra_util_test.py
NitorCreations/nitor-deploy-tools
93dd86d5e6586520f72dd38319f55849bf4a5bc5
[ "Apache-2.0" ]
22
2017-04-06T11:41:01.000Z
2019-09-18T05:45:03.000Z
n_utils/tests/aws_infra_util_test.py
NitorCreations/nitor-deploy-tools
93dd86d5e6586520f72dd38319f55849bf4a5bc5
[ "Apache-2.0" ]
1
2020-08-26T07:32:02.000Z
2020-08-26T07:32:02.000Z
from n_utils.aws_infra_util import yaml_to_dict def test_merge_import(mocker): result = yaml_to_dict('n_utils/tests/templates/test.yaml') assert result['Parameters']['paramTest']['Default'] == 'test2' assert result['Parameters']['paramTest3']['Default'] == 'test2' assert result['Parameters']['paramTest...
56.472222
75
0.659616
1c0f12ff25c5462bc4762eec0c238d209f51bdbd
1,475
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/ip_rule_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/ip_rule_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/ip_rule_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
35.119048
86
0.613559
1c0f6fc1a5b8d77f1b0b5a69431aed1f06f62dd9
4,629
py
Python
src/pykeen/experiments/inverse_stability.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
src/pykeen/experiments/inverse_stability.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
src/pykeen/experiments/inverse_stability.py
Rodrigo-A-Pereira/pykeen
76c5acb707faa524b5951b0d1d85ab1afe806462
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Inverse Stability Workflow. This experiment investigates the differences between """ import itertools as itt import logging from typing import Type import click import matplotlib.pyplot as plt import pandas as pd import seaborn as sns import pykeen.evaluation.evaluator from pykeen.const...
35.607692
110
0.677252
1c0facd0c53bee1dd3808a3d5074e6fb5e092e3f
4,227
py
Python
pinax/apps/tasks/tests/test_models.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:09.000Z
2019-02-12T04:45:09.000Z
pinax/apps/tasks/tests/test_models.py
alex/pinax
37e17ee2e2eb0e387d8809c12e55c20194a7118a
[ "MIT" ]
null
null
null
pinax/apps/tasks/tests/test_models.py
alex/pinax
37e17ee2e2eb0e387d8809c12e55c20194a7118a
[ "MIT" ]
1
2019-02-12T04:45:40.000Z
2019-02-12T04:45:40.000Z
# coding: utf-8 from django.test import TestCase from django.contrib.auth.models import User from tasks.models import Task, TaskHistory, Nudge class TestTask(TestCase): fixtures = ["test_tasks.json"] def setUp(self): self.task = Task.objects.get(pk__exact=1) self.other_task = Task.obje...
33.547619
93
0.610125
1c0fd3e84f2eefa1d4cf3076d418386e46b5a982
81,636
py
Python
planet/vendor/html5lib/html5parser.py
xaviershay/reader
7c713c90ff546032e4723a232a32107ebae88278
[ "CNRI-Python-GPL-Compatible" ]
1
2016-05-09T10:18:18.000Z
2016-05-09T10:18:18.000Z
planet/vendor/html5lib/html5parser.py
xaviershay/reader
7c713c90ff546032e4723a232a32107ebae88278
[ "CNRI-Python-GPL-Compatible" ]
4
2015-09-04T06:26:22.000Z
2021-09-04T12:33:32.000Z
planet/vendor/html5lib/html5parser.py
xaviershay/reader
7c713c90ff546032e4723a232a32107ebae88278
[ "CNRI-Python-GPL-Compatible" ]
3
2015-09-04T05:44:12.000Z
2018-05-11T13:06:03.000Z
# Differences from the current specification are as follows: # * Phases and insertion modes are one concept in parser.py. # * EOF handling is slightly different to make sure <html>, <head> and <body> # always exist. try: frozenset except NameError: # Import from the sets module for python 2.3 from sets ...
41.10574
136
0.602002
1c0fd40378ca9d3ebb633a906cf746f2c4bd7181
1,089
py
Python
setup.py
andreask/mailchimp-python
5823b93be8bc1d6d93c7d0e01bfa9b0be276a4b1
[ "MIT" ]
null
null
null
setup.py
andreask/mailchimp-python
5823b93be8bc1d6d93c7d0e01bfa9b0be276a4b1
[ "MIT" ]
null
null
null
setup.py
andreask/mailchimp-python
5823b93be8bc1d6d93c7d0e01bfa9b0be276a4b1
[ "MIT" ]
1
2018-02-12T18:11:04.000Z
2018-02-12T18:11:04.000Z
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='Mailchimp Python', version='0.1.12', description='A package use...
29.432432
94
0.644628
1c0fec5e72577ce2a3ca0caf08c35eab81706b52
1,084
py
Python
nonebot_plugin_illustrationrss/config.py
hexsix/nonebot_plugin_illustrationrss
e662b7e947c0428e9ce67a1d67ec2a7a870d689d
[ "WTFPL" ]
2
2021-05-15T02:40:35.000Z
2021-12-24T06:16:57.000Z
nonebot_plugin_illustrationrss/config.py
hexsix/nonebot_plugin_illustrationrss
e662b7e947c0428e9ce67a1d67ec2a7a870d689d
[ "WTFPL" ]
null
null
null
nonebot_plugin_illustrationrss/config.py
hexsix/nonebot_plugin_illustrationrss
e662b7e947c0428e9ce67a1d67ec2a7a870d689d
[ "WTFPL" ]
null
null
null
import os.path from typing import Any, List from pydantic import BaseSettings class Config(BaseSettings): plugin_setting: str = "default" superusers: List[str] = [] use_proxy: bool = False proxies: dict = {} cache_dir: str = "IllRssCacheDir" class Config: extra = "ignore" class...
27.1
71
0.609779
1c0ffc257896c69c279b61267176f55480666205
3,914
py
Python
assignments/2019/assignment1/cs231n/gradient_check.py
adrift00/cs231n-assignments-2019
38ffc935fa1aa6e26ba5cc560269650db521d3c4
[ "MIT" ]
null
null
null
assignments/2019/assignment1/cs231n/gradient_check.py
adrift00/cs231n-assignments-2019
38ffc935fa1aa6e26ba5cc560269650db521d3c4
[ "MIT" ]
19
2020-03-31T06:21:29.000Z
2022-03-11T23:58:51.000Z
assignments/2019/assignment1/cs231n/gradient_check.py
adrift00/cs231n-assignments-2019
38ffc935fa1aa6e26ba5cc560269650db521d3c4
[ "MIT" ]
1
2020-02-08T11:11:44.000Z
2020-02-08T11:11:44.000Z
from __future__ import print_function import numpy as np from random import randrange def eval_numerical_gradient(f, x, verbose=True, h=0.00001): """ a naive implementation of numerical gradient of f at x - f should be a function that takes a single argument - x is the point (numpy array) to evaluate ...
30.578125
78
0.584568
1c100012f15c22ca35e0c245bf29e48ae9ccd486
2,136
py
Python
dev_test_endpoints.py
oliver-zehentleitner/-unicorn-binance-rest-api-
de8b96a213109ed050a2b98736e0a6de099f08d8
[ "MIT" ]
18
2021-04-03T16:59:36.000Z
2021-12-30T21:12:09.000Z
dev_test_endpoints.py
oliver-zehentleitner/-unicorn-binance-rest-api-
de8b96a213109ed050a2b98736e0a6de099f08d8
[ "MIT" ]
12
2021-04-30T10:02:05.000Z
2022-01-01T19:52:18.000Z
dev_test_endpoints.py
oliver-zehentleitner/-unicorn-binance-rest-api-
de8b96a213109ed050a2b98736e0a6de099f08d8
[ "MIT" ]
7
2021-05-14T23:50:08.000Z
2021-12-16T21:38:50.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # File: example_exchange_endpoints.py # # Part of ‘UNICORN Binance REST API’ # Project website: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-rest-api # Documentation: https://lucit-systems-and-development.github.io/unicorn-binance-rest-api # PyPI: htt...
42.72
106
0.745787
1c1006e6d680900900596ba14aa92653840fb9da
459
py
Python
abc/242/D.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/242/D.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/242/D.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys sys.setrecursionlimit(10 ** 6) stdin = sys.stdin ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() def g(c, add): return chr(ord('A') + (ord(c) - ord('A') + add) % 3) def f(t, k): if t == 0: return S[k] if k == 0: ...
18.36
56
0.503268
1c100c06256275934c4f70620c12f2d1e81f06e7
22,931
py
Python
src/classification/attributeclassifier.py
lasigeBioTM/IBEnt
de7574991684de72e9b545c2b8fb5c8d95b0a83b
[ "MIT" ]
null
null
null
src/classification/attributeclassifier.py
lasigeBioTM/IBEnt
de7574991684de72e9b545c2b8fb5c8d95b0a83b
[ "MIT" ]
null
null
null
src/classification/attributeclassifier.py
lasigeBioTM/IBEnt
de7574991684de72e9b545c2b8fb5c8d95b0a83b
[ "MIT" ]
null
null
null
import re def check_between (e, window, bitmap, labels=("POS", "NEG")): # check if there is an event between the trigger word and the event in this window, according to bitmap polarityPredicted = labels[0] # start the search for events in between window_array = window.split("+") # +,+not+amenable+to+e...
54.727924
895
0.581571
1c100ec9807b916084fb76d9e569a7a62ba8962f
849
py
Python
examples/builtin_parse_action_demo.py
klahnakoski/mo-parsing
885bf3fd61430d5fa15164168b975b18988fcf9e
[ "MIT" ]
1
2021-10-30T21:18:29.000Z
2021-10-30T21:18:29.000Z
examples/builtin_parse_action_demo.py
klahnakoski/mo-parsing
885bf3fd61430d5fa15164168b975b18988fcf9e
[ "MIT" ]
22
2020-04-15T14:49:30.000Z
2021-12-22T02:49:52.000Z
examples/builtin_parse_action_demo.py
klahnakoski/mo-parsing
885bf3fd61430d5fa15164168b975b18988fcf9e
[ "MIT" ]
null
null
null
# # builtin_parse_action_demo.py # Copyright, 2012 - Paul McGuire # # Simple example of using builtin functions as parse actions. # from mo_parsing import * from mo_parsing.utils import nums integer = Word(nums).add_parse_action(lambda t: int(t[0])) # make an expression that will match a list of ints ...
27.387097
81
0.68669
1c101f276c33dc6d54089213352c4fea8a4c122f
24,209
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2021_01_01/aio/operations/_kube_environments_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2021_01_01/aio/operations/_kube_environments_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2021_01_01/aio/operations/_kube_environments_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 ...
45.505639
239
0.674295
1c10396de413354b084d4846001187e996d33ffa
2,607
py
Python
scripts/artifacts/powerlogAppinfo.py
mastenp/iLEAPP
ee40ef7505b36d0b9b04131f284a9d4d036514a5
[ "MIT" ]
1
2020-10-06T20:28:03.000Z
2020-10-06T20:28:03.000Z
scripts/artifacts/powerlogAppinfo.py
mastenp/iLEAPP
ee40ef7505b36d0b9b04131f284a9d4d036514a5
[ "MIT" ]
null
null
null
scripts/artifacts/powerlogAppinfo.py
mastenp/iLEAPP
ee40ef7505b36d0b9b04131f284a9d4d036514a5
[ "MIT" ]
null
null
null
import glob import os import pathlib import plistlib import sqlite3 import scripts.artifacts.artGlobals #use to get iOS version -> iOSversion = scripts.artifacts.artGlobals.versionf from packaging import version #use to search per version number from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapf...
39.5
175
0.614499
1c10602d963d793feaade95ca7709517c5ebdd76
1,602
py
Python
ccoin/dict_tools.py
Rustem/toychain
dafc445e66af8a18c4b007b20b15f9612b825529
[ "MIT" ]
3
2018-05-01T09:13:00.000Z
2018-06-26T03:01:07.000Z
ccoin/dict_tools.py
Rustem/toychain
dafc445e66af8a18c4b007b20b15f9612b825529
[ "MIT" ]
null
null
null
ccoin/dict_tools.py
Rustem/toychain
dafc445e66af8a18c4b007b20b15f9612b825529
[ "MIT" ]
null
null
null
import contextlib def merge_deep(source, destination): """ >>> a = { 'first' : { 'all_rows' : { 'pass' : 'dog', 'number' : '1' } } } >>> b = { 'first' : { 'all_rows' : { 'fail' : 'cat', 'number' : '5' } } } >>> merge_deep(b, a) == { 'first' : { 'all_rows' : { 'pass' : 'dog', 'fail' : 'cat', 'number' :...
26.7
109
0.533084
1c10af683acf332fd4b1c470b4dccc8737a84dd0
3,153
py
Python
rally/plugins/openstack/scenarios/glance/utils.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/scenarios/glance/utils.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/scenarios/glance/utils.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
# Copyright 2014: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
39.4125
78
0.668252
1c10cde7fed9987626548963efa3ff0ba465a8d4
3,342
py
Python
m2-modified/ims/common/agentless-system-crawler/crawler/containers.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
108
2015-07-21T10:40:36.000Z
2021-07-01T06:54:51.000Z
m2-modified/ims/common/agentless-system-crawler/crawler/containers.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
320
2015-07-21T01:33:20.000Z
2020-07-21T15:57:02.000Z
m2-modified/ims/common/agentless-system-crawler/crawler/containers.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
61
2015-07-20T18:26:37.000Z
2021-03-17T01:18:54.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import logging import container from utils import misc from dockercontainer import get_docker_containers, poll_docker_containers logger = logging.getLogger('crawlutils') def list_all_containers(user_list='ALL', host_namespace='', ignore_raw_container...
36.326087
79
0.687911
1c11546806473f8aef575c861b05ce6553d462ce
2,616
py
Python
extract_wikipedia_list.py
philsMINT/AnnotaTeX
cf893ccf31bd8ee78e15c4dd7a21d05c8c0663a7
[ "Apache-2.0" ]
3
2021-04-14T13:31:12.000Z
2022-02-13T00:33:37.000Z
extract_wikipedia_list.py
philsMINT/AnnotaTeX
cf893ccf31bd8ee78e15c4dd7a21d05c8c0663a7
[ "Apache-2.0" ]
10
2019-07-26T08:10:07.000Z
2021-06-10T17:53:43.000Z
extract_wikipedia_list.py
philsMINT/AnnoMathTeX
cf893ccf31bd8ee78e15c4dd7a21d05c8c0663a7
[ "Apache-2.0" ]
2
2020-02-21T10:35:31.000Z
2020-05-27T06:13:35.000Z
################################################################################### ################################################################################### ################################################################################### #################################### NOT USED ######################...
29.727273
103
0.444954
1c1177ecadeeef5c7385948c02639ec0ea9b8ef0
6,038
py
Python
eth2/beacon/state_machines/forks/serenity/epoch_processing.py
nrryuya/trinity
7436d9c3fdef5fbeef5d7a1123c8ed2ecd16e033
[ "MIT" ]
null
null
null
eth2/beacon/state_machines/forks/serenity/epoch_processing.py
nrryuya/trinity
7436d9c3fdef5fbeef5d7a1123c8ed2ecd16e033
[ "MIT" ]
null
null
null
eth2/beacon/state_machines/forks/serenity/epoch_processing.py
nrryuya/trinity
7436d9c3fdef5fbeef5d7a1123c8ed2ecd16e033
[ "MIT" ]
null
null
null
from typing import ( Tuple, ) from eth2._utils.numeric import ( is_power_of_two, ) from eth2._utils.tuple import ( update_tuple_item, ) from eth2.beacon._utils.hash import ( hash_eth2, ) from eth2.beacon import helpers from eth2.beacon.helpers import ( get_active_validator_indices, get_current_...
32.637838
97
0.666611
1c117ca3dcd3e6b45b16844ce4c1e6358e6e0069
7,261
py
Python
tests/unit/flow/test_flow_example_face.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
2
2021-06-30T06:56:30.000Z
2022-03-11T01:27:19.000Z
tests/unit/flow/test_flow_example_face.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
tests/unit/flow/test_flow_example_face.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
import os from jina.enums import SocketType from jina import Flow cur_dir = os.path.dirname(os.path.abspath(__file__)) def test_index(): f = Flow.load_config(os.path.join(cur_dir, '../yaml/examples/faces/flow-index.yml')) with f: node = f._pod_nodes['gateway'] assert node.head_args.socket_in...
50.776224
88
0.701832
1c11c0c146e82c558aab7022ebf7b6bf8e6eddcc
1,740
py
Python
cogs/stats.py
Machotacoz/discord-bot
b7390fac8df9a0943fcab1d49bf6a54f88d287da
[ "MIT" ]
null
null
null
cogs/stats.py
Machotacoz/discord-bot
b7390fac8df9a0943fcab1d49bf6a54f88d287da
[ "MIT" ]
null
null
null
cogs/stats.py
Machotacoz/discord-bot
b7390fac8df9a0943fcab1d49bf6a54f88d287da
[ "MIT" ]
null
null
null
import discord, os from discord.ext import commands from utils import checks, output, parsing from aiohttp import ClientSession import urllib.request import json class Stats: def __init__(self, bot: discord.ext.commands.Bot): self.bot = bot @commands.command(pass_context=True) async def stats(self...
43.5
168
0.628161
1c11ec233a98dd87fbfa62ed6fe6571685a1c1bc
30,343
py
Python
evcouplings/compare/sifts.py
thomashopf/EVcouplings-1
d3e4947d29b62537bd79215ce72b6eea18134850
[ "MIT" ]
1
2020-06-23T16:03:16.000Z
2020-06-23T16:03:16.000Z
evcouplings/compare/sifts.py
aggreen/EVcouplings
a3780dec6570ebec4facd62e9f968423f68c971d
[ "MIT" ]
null
null
null
evcouplings/compare/sifts.py
aggreen/EVcouplings
a3780dec6570ebec4facd62e9f968423f68c971d
[ "MIT" ]
2
2021-04-03T14:19:12.000Z
2021-04-05T17:34:32.000Z
""" Uniprot to PDB structure identification and index mapping using the SIFTS database (https://www.ebi.ac.uk/pdbe/docs/sifts/) This functionality is centered around the pdb_chain_uniprot.csv table available from SIFTS. (ftp://ftp.ebi.ac.uk/pub/databases/msd/sifts/flatfiles/csv/pdb_chain_uniprot.csv.gz) Authors: Th...
34.324661
104
0.577431
1c11f74f75c581b6aee4b3ac0f936ad04e71214a
4,472
py
Python
hdltools/vhdl/codegen.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
2
2020-02-28T13:02:39.000Z
2021-06-30T09:15:35.000Z
hdltools/vhdl/codegen.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
1
2020-03-22T17:32:45.000Z
2020-03-23T15:43:39.000Z
hdltools/vhdl/codegen.py
brunosmmm/hdltools
a98ca8c4d168740fa229c939a7b1f31ea73eec24
[ "MIT" ]
null
null
null
"""Generate VHDL code.""" import math from ..abshdl.codegen import HDLCodeGenerator, indent class VHDLCodeGenerator(HDLCodeGenerator): """Generate VHDL code.""" VHDL_PORT_DIRECTION = ['in', 'out', 'inout'] VHDL_SIGNAL_TYPE = ['signal'] def gen_HDLModulePort(self, element, **kwargs): """Gene...
32.882353
79
0.497317
1c11fe68be6e917ef5e9282159a288f0f86fc1ea
12,742
py
Python
docs/conf.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2022-03-27T14:37:32.000Z
2022-03-27T14:37:32.000Z
docs/conf.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
1
2021-01-22T02:29:38.000Z
2021-01-22T02:29:38.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # cadnano documentation build configuration file, originally created by # sphinx-quickstart on Sat Jul 16 12:34:36 2016. Modified by NC # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration value...
30.338095
125
0.690629
1c12180e5ef1bb4071abd2383acfb8ad4ee53f39
936
py
Python
trebelge/XMLFileProcessStrategy/CACNamespace.py
askmetoo/trebelge
bff1b13edf41d1a9afd9ddb039f5b4089cb83dd6
[ "MIT" ]
null
null
null
trebelge/XMLFileProcessStrategy/CACNamespace.py
askmetoo/trebelge
bff1b13edf41d1a9afd9ddb039f5b4089cb83dd6
[ "MIT" ]
null
null
null
trebelge/XMLFileProcessStrategy/CACNamespace.py
askmetoo/trebelge
bff1b13edf41d1a9afd9ddb039f5b4089cb83dd6
[ "MIT" ]
1
2022-03-17T21:53:07.000Z
2022-03-17T21:53:07.000Z
from trebelge.XMLFileProcessStrategy.XMLFileProcessStrategy import XMLFileProcessStrategy from trebelge.XMLFileProcessStrategy.XMLFileProcessStrategyContext import XMLFileProcessStrategyContext from trebelge.XMLFileProcessStrategy.XMLNamespaces import XMLNamespaces class CACNamespace(XMLFileProcessStrategy): """ ...
46.8
103
0.791667
1c12693ebb45529dc410f399760df3aebefc64dc
269
py
Python
src/url/requests/hook_response.py
snowdreams1006/learn-python
d224bedbb670b6462e1e9a013c0a0316be10207c
[ "MIT" ]
1
2019-12-25T04:20:19.000Z
2019-12-25T04:20:19.000Z
src/url/requests/hook_response.py
snowdreams1006/learn-python
d224bedbb670b6462e1e9a013c0a0316be10207c
[ "MIT" ]
13
2020-01-16T03:23:50.000Z
2020-11-25T11:55:29.000Z
src/url/requests/hook_response.py
snowdreams1006/learn-python
d224bedbb670b6462e1e9a013c0a0316be10207c
[ "MIT" ]
1
2020-03-28T11:46:03.000Z
2020-03-28T11:46:03.000Z
# -*- coding: utf-8 -*- import requests def get_key_info(response, *args, **kwargs): """回调函数 """ print response.headers['Content-Type'] def main(): """主程序 """ requests.get('https://api.github.com', hooks=dict(response=get_key_info)) main()
15.823529
77
0.605948
1c129513ac5d2db95072dc862ebc564ed3e93baf
18,734
py
Python
intersight/models/hyperflex_cluster_storage_policy.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/hyperflex_cluster_storage_policy.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/hyperflex_cluster_storage_policy.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class HyperflexClusterStoragePolicy(object): """ NO...
32.637631
425
0.646578
1c12d05e7c6df05ea2e5bebd355819ab056f6585
5,769
py
Python
modules/greeting.py
apertium/phenny
77f302bac05e50cd7d19bc5cc2737bb98fec0cc7
[ "EFL-2.0" ]
7
2018-10-29T18:01:47.000Z
2022-01-21T04:13:46.000Z
modules/greeting.py
apertium/phenny
77f302bac05e50cd7d19bc5cc2737bb98fec0cc7
[ "EFL-2.0" ]
225
2018-03-08T10:41:50.000Z
2021-11-01T19:51:17.000Z
modules/greeting.py
apertium/phenny
77f302bac05e50cd7d19bc5cc2737bb98fec0cc7
[ "EFL-2.0" ]
44
2018-03-19T15:30:15.000Z
2020-07-29T08:47:45.000Z
#!/usr/bin/python3 import math import os import sqlite3 import time from threading import Lock, Thread from tools import DatabaseCursor, db_path lock = Lock() users = set() def setup(self): self.greeting_count = {} self.greeting_db = db_path(self, 'greeting') connection = sqlite3.connect(self.greeting_d...
31.697802
219
0.632865
1c12d85e6d494ae341ad85721d76ccd4b28abf62
3,128
py
Python
test/test_zenodo.py
cokelaer/ngstools
53c4682a017d346b079f2127c2d747132d2bf4b9
[ "BSD-3-Clause" ]
8
2021-09-02T09:18:39.000Z
2021-12-20T22:24:15.000Z
test/test_zenodo.py
cokelaer/ngstools
53c4682a017d346b079f2127c2d747132d2bf4b9
[ "BSD-3-Clause" ]
18
2020-08-04T12:42:16.000Z
2022-01-19T17:40:41.000Z
test/test_zenodo.py
cokelaer/ngstools
53c4682a017d346b079f2127c2d747132d2bf4b9
[ "BSD-3-Clause" ]
null
null
null
import damona from damona import zenodo from . import test_dir deposit = { "conceptdoi": "10.5072/zenodo.960007", "conceptrecid": "960007", "created": "2021-11-13T20:15:42.926938+00:00", "doi": "10.5072/zenodo.960008", "doi_url": "https://doi.org/10.5072/zenodo.960008", "files": [ { ...
36.8
225
0.616368
1c12dc6eb4d4fe26ebc2cd3067e3be65c9199b83
4,062
py
Python
nnunet_ext/training/model_restore.py
camgbus/Lifelong-nnUNet
2325d74047db354cf8b6d6d8241c52678a538eaa
[ "Apache-2.0" ]
2
2021-11-22T09:16:05.000Z
2022-02-17T07:06:57.000Z
nnunet_ext/training/model_restore.py
camgbus/nnUNet_extensions
2325d74047db354cf8b6d6d8241c52678a538eaa
[ "Apache-2.0" ]
null
null
null
nnunet_ext/training/model_restore.py
camgbus/nnUNet_extensions
2325d74047db354cf8b6d6d8241c52678a538eaa
[ "Apache-2.0" ]
null
null
null
######################################################################################################### #----------This class represents the model_restore module for the nnUNet extension. Implementation------# #----------inspired by original implementation (--> model_restore), copied code is marked as such.------# ##...
58.028571
153
0.621369
1c12dcda3c2c953d206757cc9a7f2e80ea0497d7
49,222
py
Python
capstone/fabfile.py
truthiswill/capstone
61b17611ebee17a5f5e4f64ae4ccaa67ac357478
[ "MIT" ]
null
null
null
capstone/fabfile.py
truthiswill/capstone
61b17611ebee17a5f5e4f64ae4ccaa67ac357478
[ "MIT" ]
4
2021-09-02T20:54:31.000Z
2022-02-27T14:04:06.000Z
capstone/fabfile.py
whitemike889/capstone
61b17611ebee17a5f5e4f64ae4ccaa67ac357478
[ "MIT" ]
null
null
null
import csv import glob import gzip import hashlib import os import pathlib from datetime import datetime import django import json from random import randrange, randint from pathlib import Path from celery import shared_task, group from tqdm import tqdm # set up Django os.environ.setdefault('DJANGO_SETTINGS_MODULE', ...
40.478618
210
0.676344
1c1307cb7dfe6dab8b9e8dd20516064fa6cb0227
2,030
py
Python
riak/tests/test_server_test.py
dcramer/riak-python-client
15effbbcf02c035d32d4149dbaae1ec325f89450
[ "Apache-2.0" ]
2
2015-09-24T19:52:53.000Z
2015-11-06T10:22:30.000Z
riak/tests/test_server_test.py
ghuntley/riak-python-client
f101f6e8d291d716621cd51112a33f9ce07e33da
[ "Apache-2.0" ]
null
null
null
riak/tests/test_server_test.py
ghuntley/riak-python-client
f101f6e8d291d716621cd51112a33f9ce07e33da
[ "Apache-2.0" ]
null
null
null
from riak.test_server import TestServer import unittest class TestServerTestCase(unittest.TestCase): def setUp(self): self.test_server = TestServer() def tearDown(self): pass def test_options_defaults(self): self.assertEquals(self.test_server.app_config["riak_core"]["handoff_port"...
37.592593
92
0.7
1c130c4592917e2dd9094d36caeb188acc56f60c
6,159
py
Python
model.py
Kaushal28/FOTS-PyTorch
30f6180754899c7f5fb35845ab5d6f108eb1b4a8
[ "BSD-3-Clause" ]
7
2021-02-25T17:33:19.000Z
2022-02-25T08:11:12.000Z
model.py
Kaushal28/FOTS-PyTorch
30f6180754899c7f5fb35845ab5d6f108eb1b4a8
[ "BSD-3-Clause" ]
3
2021-03-09T08:36:42.000Z
2021-12-08T02:45:07.000Z
model.py
Kaushal28/FOTS-PyTorch
30f6180754899c7f5fb35845ab5d6f108eb1b4a8
[ "BSD-3-Clause" ]
1
2022-02-10T07:30:20.000Z
2022-02-10T07:30:20.000Z
import numpy as np import torch from torch import nn, optim import math import pretrainedmodels from components.shared_convolutions import SharedConvolutions from components.roi_rotate import ROIRotate from components.crnn import CRNN from utils import classes from bbox import Toolbox class FOTSModel(nn.Module):...
32.935829
106
0.608053
1c133872428e0c14df651d8399002686b281bd89
844
py
Python
Chapter06/paramiko/ssh_download_sftp.py
yangwawa0323/Learning-Python-Networking-Second-Edition
5460fe4fb6acc5d0df19bf36e52ac09e9a11eb8b
[ "MIT" ]
52
2018-12-17T19:33:06.000Z
2022-03-25T18:14:02.000Z
Chapter06/paramiko/ssh_download_sftp.py
barretthugh/Learning-Python-Networking-Second-Edition
0f00b8b20c1c85e76754e47113dff8ca9e99d5ca
[ "MIT" ]
null
null
null
Chapter06/paramiko/ssh_download_sftp.py
barretthugh/Learning-Python-Networking-Second-Edition
0f00b8b20c1c85e76754e47113dff8ca9e99d5ca
[ "MIT" ]
38
2018-12-18T09:08:43.000Z
2022-02-06T02:53:05.000Z
#!/usr/bin/env python3 import getpass import paramiko HOSTNAME = 'ssh_server' PORT = 22 FILE_PATH = '/tmp/test.txt' def sftp_download(username, password, hostname=HOSTNAME,port=PORT): ssh_transport = paramiko.Transport(hostname, port) ssh_transport.connect(username=username, password=password) sftp_session = para...
33.76
67
0.759479
1c134a3fce87486d0876f885d846def1d6bfb4d8
20,680
py
Python
tensorflow_probability/python/distributions/mixture.py
renatoviolin/probability
557351a2b79e4bd5a9025e791c81b612ab17bf38
[ "Apache-2.0" ]
1
2020-11-08T17:03:46.000Z
2020-11-08T17:03:46.000Z
tensorflow_probability/python/distributions/mixture.py
etarakci-hvl/probability
7a0ce5e5beff91051028258dfbc7bc6cf0c4998d
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/mixture.py
etarakci-hvl/probability
7a0ce5e5beff91051028258dfbc7bc6cf0c4998d
[ "Apache-2.0" ]
1
2020-05-27T19:42:06.000Z
2020-05-27T19:42:06.000Z
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
40.869565
116
0.677273
1c1357c535746c64f9fb3d084bd849508cef3d63
5,203
py
Python
sunkit_image/tests/test_asda.py
PyDL/sunkit-image
bdfe7b402f204dc204d5e78bf9ca12ad81e1e686
[ "BSD-2-Clause-NetBSD", "BSD-2-Clause" ]
null
null
null
sunkit_image/tests/test_asda.py
PyDL/sunkit-image
bdfe7b402f204dc204d5e78bf9ca12ad81e1e686
[ "BSD-2-Clause-NetBSD", "BSD-2-Clause" ]
null
null
null
sunkit_image/tests/test_asda.py
PyDL/sunkit-image
bdfe7b402f204dc204d5e78bf9ca12ad81e1e686
[ "BSD-2-Clause-NetBSD", "BSD-2-Clause" ]
null
null
null
import numpy as np import pytest from sunkit_image import asda from sunkit_image.data.test import get_test_filepath def test_asda_artificial(): """ Generate an artificial vortex using the Lamb_Oseen class in asda, then perform the vortex detection. """ # Generate an artificial vortex vmax = 2...
35.155405
105
0.620411
1c136f6034b5004144d3dec3a973631a6f25adf8
1,543
py
Python
src/training/preprocessing_divert.py
zhichul/pi-bob
b9ed7cb3614f50c51c6273665d8cd2b62dcab886
[ "MIT" ]
null
null
null
src/training/preprocessing_divert.py
zhichul/pi-bob
b9ed7cb3614f50c51c6273665d8cd2b62dcab886
[ "MIT" ]
null
null
null
src/training/preprocessing_divert.py
zhichul/pi-bob
b9ed7cb3614f50c51c6273665d8cd2b62dcab886
[ "MIT" ]
null
null
null
import sys import os import numpy as np import cv2 def parseData(path): # res = {"l":[],"r":[],"s":[]} res = {"l":[],"r":[],"s":[],"n":[],"d":[]} for file in os.listdir(path): img = cv2.imread(os.path.join(path,file),0) decision = file.split("-")[0] t = [0] # t = [0] * 4 if decision == "left": pass e...
27.553571
97
0.604018
1c1379f8163e0e26e55edadba7d1773359d09d1e
211
py
Python
JDjango/api/djangotools/__init__.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
3
2020-12-28T05:09:02.000Z
2021-06-23T10:02:03.000Z
JDjango/api/djangotools/__init__.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
JDjango/api/djangotools/__init__.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
from . import config as SCONFIGS from .app import * from .models import * from .urls import * from .views import * from .settings import * from .templates import * from .admin import * from .basetools import *
19.181818
32
0.734597
1c13953075a5289b396a62b7932ca29845e47630
1,379
py
Python
src/python/pants/engine/legacy_engine.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/engine/legacy_engine.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/engine/legacy_engine.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals from abc import abstractmethod from pants.base.exceptions import TaskError from pants.ut...
32.069767
96
0.68963
1c13bac71abff0dae2e779a588f9909b410d473c
7,254
py
Python
alipay/aop/api/domain/CmItemSkuInfo.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/CmItemSkuInfo.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/CmItemSkuInfo.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.MaterialInfo import MaterialInfo from alipay.aop.api.domain.ItemSkuPropertyInfo import ItemSkuPropertyInfo class CmItemSkuInfo(object): def __init__(self): self._gmt_...
33.739535
91
0.586711
1c13cdd6d22222ce76257dfc1a57b13e5e59f585
2,388
py
Python
.leetcode/508.most-frequent-subtree-sum.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/508.most-frequent-subtree-sum.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/508.most-frequent-subtree-sum.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=508 lang=python3 # # [508] Most Frequent Subtree Sum # # https://leetcode.com/problems/most-frequent-subtree-sum/description/ # # algorithms # Medium (60.71%) # Likes: 1104 # Dislikes: 178 # Total Accepted: 93.9K # Total Submissions: 154.2K # Testcase Example: '[5,2,-3]' # # Given the root ...
19.258065
79
0.553183
1c13df3c8acf5ffa1eb2e2d110451ca3065ef9d8
276
py
Python
lib/reportlab/pdfgen/__init__.py
jwheare/digest
963a0f46862319aa499d4cbbfdbd6380287fc5a5
[ "BSD-3-Clause" ]
5
2016-05-08T23:51:38.000Z
2021-05-02T10:09:29.000Z
lib/reportlab/pdfgen/__init__.py
jwheare/digest
963a0f46862319aa499d4cbbfdbd6380287fc5a5
[ "BSD-3-Clause" ]
null
null
null
lib/reportlab/pdfgen/__init__.py
jwheare/digest
963a0f46862319aa499d4cbbfdbd6380287fc5a5
[ "BSD-3-Clause" ]
1
2018-01-16T16:03:44.000Z
2018-01-16T16:03:44.000Z
#Copyright ReportLab Europe Ltd. 2000-2004 #see license.txt for license details #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/pdfgen/__init__.py __version__=''' $Id: __init__.py 2385 2004-06-17 15:26:05Z rgbecker $ ''' __doc__=''
55.2
108
0.76087
1c13e8a19fe86b93de6407afe598caf8d6765094
4,229
py
Python
utils/kernel_pca_pipeline.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
utils/kernel_pca_pipeline.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
utils/kernel_pca_pipeline.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
""" ========== Kernel PCA gamma parameter CV pipeline ========== Use a pipeline to find the best value for gamma parameter in the RBF kernel for kernel PCA. Adapted from: http://scikit-learn.org/stable/auto_examples/decomposition/plot_kernel_pca.html#example-decomposition-plot-kernel-pca-py http://scikit-lea...
33.299213
124
0.72925
1c140f1e7effe002ee7bcfb29c0e65f02f3c2df6
30,510
py
Python
net_benefit_ascvd/prediction_utils/pytorch_utils/group_fairness.py
som-shahlab/net_benefit_ascvd
1259692025d90618211206105d8d23bd5a90a66c
[ "MIT" ]
null
null
null
net_benefit_ascvd/prediction_utils/pytorch_utils/group_fairness.py
som-shahlab/net_benefit_ascvd
1259692025d90618211206105d8d23bd5a90a66c
[ "MIT" ]
null
null
null
net_benefit_ascvd/prediction_utils/pytorch_utils/group_fairness.py
som-shahlab/net_benefit_ascvd
1259692025d90618211206105d8d23bd5a90a66c
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F import itertools import warnings import logging from net_benefit_ascvd.prediction_utils.pytorch_utils.models import ( TorchModel, FixedWidthModel, BilevelModel, ) from net_benefit_ascvd.prediction_utils.pytorch_utils.layers import FeedforwardNet from net_benefit...
37.527675
115
0.576794
1c14344075ec8fb837ca97f21f6a247c4f2e67ae
275
py
Python
postoffice_send.py
flexo/PostOffice
ffcdb68831aae8bc610eb3ab6f700ed76008c2c0
[ "MIT" ]
2
2018-10-15T20:14:25.000Z
2019-11-10T18:27:44.000Z
postoffice_send.py
flexo/PostOffice
ffcdb68831aae8bc610eb3ab6f700ed76008c2c0
[ "MIT" ]
11
2018-10-17T19:14:46.000Z
2018-11-12T08:47:58.000Z
postoffice_send.py
flexo/PostOffice
ffcdb68831aae8bc610eb3ab6f700ed76008c2c0
[ "MIT" ]
5
2018-10-17T19:30:19.000Z
2018-10-29T21:16:43.000Z
import socket IP = "127.0.0.1" PORT = 7878 message = "Hello World" sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((IP, PORT)) sock.send(message.encode()) data = sock.recv(1024) if str(data) == "OK": print(str(data)) sock.close() sock.close
13.095238
56
0.676364
1c145e4ba3372eb05aaa2152e2b54593ade193b7
929
py
Python
dapper/mods/LotkaVolterra/__init__.py
myying/DAPPER
2f92fcb5610f9b2d44bb077ac5ed5438ac5fd6b3
[ "MIT" ]
1
2022-01-03T19:08:32.000Z
2022-01-03T19:08:32.000Z
dapper/mods/LotkaVolterra/__init__.py
myying/DAPPER
2f92fcb5610f9b2d44bb077ac5ed5438ac5fd6b3
[ "MIT" ]
null
null
null
dapper/mods/LotkaVolterra/__init__.py
myying/DAPPER
2f92fcb5610f9b2d44bb077ac5ed5438ac5fd6b3
[ "MIT" ]
null
null
null
"""The generalized predator-prey model, with settings for chaotic dynamics. Refs: [Wiki](https://en.wikipedia.org/wiki/Competitive_Lotka-Volterra_equations), `bib.vano2006chaos`. """ import numpy as np import dapper.mods as modelling from dapper.mods.integration import integrate_TLM from dapper.mods.Lorenz63 import ...
18.58
75
0.628633
1c14a964046e20e2b001d411ae890628296c94a7
2,813
py
Python
bqplot/colorschemes.py
jasongrout/bqplot
2416a146296419340b8d5998bf9d1538e6750579
[ "Apache-2.0" ]
4
2020-12-17T21:19:00.000Z
2021-09-22T04:09:11.000Z
bqplot/colorschemes.py
maartenbreddels/bqplot
cbd37f7acf94c8dddf929e9d2485d2b102ce49b9
[ "Apache-2.0" ]
2
2017-12-15T11:13:17.000Z
2017-12-15T18:13:42.000Z
bqplot/colorschemes.py
jasongrout/bqplot
2416a146296419340b8d5998bf9d1538e6750579
[ "Apache-2.0" ]
1
2021-08-29T09:38:02.000Z
2021-08-29T09:38:02.000Z
# These color schemes come from d3: http://d3js.org/ # # They are licensed under the following license: # # Copyright (c) 2010-2015, Michael Bostock # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
51.145455
80
0.672236
1c14b1e231d94b988ffeaef30a9ccec56844d6ca
2,519
py
Python
sdk/remoterendering/azure-mixedreality-remoterendering/azure/mixedreality/remoterendering/_generated/aio/_remote_rendering_rest_client_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/remoterendering/azure-mixedreality-remoterendering/azure/mixedreality/remoterendering/_generated/aio/_remote_rendering_rest_client_async.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/remoterendering/azure-mixedreality-remoterendering/azure/mixedreality/remoterendering/_generated/aio/_remote_rendering_rest_client_async.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 ...
45.8
236
0.705042
1c14bfa3eb475ddf4adba56aa2a86b8599efd2b7
2,153
py
Python
tests/test_norm.py
fakufaku/doamm
66c7124573fb2a2c705335f2f7e877378e585042
[ "MIT" ]
7
2021-06-10T00:05:03.000Z
2022-01-25T20:48:28.000Z
tests/test_norm.py
santoshmore85/doamm
66c7124573fb2a2c705335f2f7e877378e585042
[ "MIT" ]
null
null
null
tests/test_norm.py
santoshmore85/doamm
66c7124573fb2a2c705335f2f7e877378e585042
[ "MIT" ]
3
2021-06-14T09:20:15.000Z
2022-03-23T05:22:28.000Z
import numpy as np def extract_off_diagonal(X): """ Parameters ---------- X: array_like, shape (..., M, M) A multi dimensional array Returns ------- Y: array_like, shape (..., M * (M - 1) / 2) The linearized entries under the main diagonal """ # we need to format t...
26.9125
86
0.56758
1c14c4cd0a3de5e46637e09d460764a267b8c0de
13,598
py
Python
cifar/cifar.py
yanghr/Hoyer_MNIST
2a50da067ba10f2fc783624f448fb5ca91914ff6
[ "Apache-2.0" ]
27
2020-01-21T22:02:25.000Z
2022-01-18T23:16:28.000Z
cifar/cifar.py
yanghr/Hoyer_MNIST
2a50da067ba10f2fc783624f448fb5ca91914ff6
[ "Apache-2.0" ]
3
2020-03-22T08:20:05.000Z
2020-08-12T06:06:48.000Z
cifar/cifar.py
yanghr/Hoyer_MNIST
2a50da067ba10f2fc783624f448fb5ca91914ff6
[ "Apache-2.0" ]
3
2020-05-28T16:12:30.000Z
2022-02-19T03:01:38.000Z
''' Training script for CIFAR-10/100 Copyright (c) Wei YANG, 2017 ''' from __future__ import print_function import argparse import os import shutil import time import random import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim as optim import torch.utils....
38.521246
176
0.615973
1c14c6dd188ff88206e021b865e7236386fa575c
24
py
Python
python3/flags/__init__.py
CostaBru/knapsack
cdd95de759c20b0cdeef4064fbbed10df1ab76d0
[ "MIT" ]
1
2021-03-06T16:38:28.000Z
2021-03-06T16:38:28.000Z
python3/flags/__init__.py
CostaBru/knapsack
cdd95de759c20b0cdeef4064fbbed10df1ab76d0
[ "MIT" ]
null
null
null
python3/flags/__init__.py
CostaBru/knapsack
cdd95de759c20b0cdeef4064fbbed10df1ab76d0
[ "MIT" ]
null
null
null
from flags import flags
12
23
0.833333
1c14cd6b8dd40fc39659e9b9465b01bc26990325
4,710
py
Python
src/falconpy/zero_trust_assessment.py
CrowdStrike/falconpy
e7245202224647a2c8d134e72f27d2f6c667a1ce
[ "Unlicense" ]
111
2020-11-19T00:44:18.000Z
2022-03-03T21:02:32.000Z
src/falconpy/zero_trust_assessment.py
CrowdStrike/falconpy
e7245202224647a2c8d134e72f27d2f6c667a1ce
[ "Unlicense" ]
227
2020-12-05T03:02:27.000Z
2022-03-22T14:12:42.000Z
src/falconpy/zero_trust_assessment.py
CrowdStrike/falconpy
e7245202224647a2c8d134e72f27d2f6c667a1ce
[ "Unlicense" ]
47
2020-11-23T21:00:14.000Z
2022-03-28T18:30:19.000Z
"""Falcon Zero Trust Assessment API Interface Class _______ __ _______ __ __ __ | _ .----.-----.--.--.--.--| | _ | |_.----|__| |--.-----. |. 1___| _| _ | | | | _ | 1___| _| _| | <| -__| |. |___|__| |_____|________|_____|____ |____|__| |__|__|__|_____| |...
42.818182
109
0.687898
1c1528162600682d777f42504df01e5acba9cf15
24,086
py
Python
current_clamp.py
yueqiw/ephys_analysis
6b33e2e43052bcd91705411ded1256725632fcde
[ "BSD-2-Clause" ]
7
2019-01-05T08:07:33.000Z
2021-02-13T11:27:07.000Z
current_clamp.py
yueqiw/ephys_analysis
6b33e2e43052bcd91705411ded1256725632fcde
[ "BSD-2-Clause" ]
4
2021-03-18T20:31:44.000Z
2022-03-11T23:20:32.000Z
current_clamp.py
yueqiw/ephys_analysis
6b33e2e43052bcd91705411ded1256725632fcde
[ "BSD-2-Clause" ]
1
2018-04-19T04:14:41.000Z
2018-04-19T04:14:41.000Z
import os import numpy as np import pandas as pd import six from collections import OrderedDict import matplotlib.pyplot as plt import matplotlib as mpl import seaborn as sns from matplotlib import gridspec, animation from PIL import Image, ImageDraw, ImageFont import allensdk_0_14_2.ephys_features as ft # TODO: imp...
38.661316
128
0.613634
1c152bcf47de4d22404452c472e12f9e8a57ca61
867
py
Python
test/BribeNet/bribery/test_briber.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
test/BribeNet/bribery/test_briber.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
test/BribeNet/bribery/test_briber.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
import random from test.BribeNet.bribery.static.briberTestCase import BriberTestCase from BribeNet.bribery.briber import BriberyGraphAlreadySetException, BriberyGraphNotSetException from BribeNet.bribery.static.nonBriber import NonBriber class TestBriber(BriberTestCase): def setUp(self) -> None: super()...
34.68
96
0.762399
1c15410ee28cf50f3bedfb5380c9db7a904f7162
3,744
py
Python
ghwht/hooks/__init__.py
flyingdice/github-webhook-types
38edff89ec3ce809a510328463a43d7bea56ae36
[ "Apache-2.0" ]
null
null
null
ghwht/hooks/__init__.py
flyingdice/github-webhook-types
38edff89ec3ce809a510328463a43d7bea56ae36
[ "Apache-2.0" ]
null
null
null
ghwht/hooks/__init__.py
flyingdice/github-webhook-types
38edff89ec3ce809a510328463a43d7bea56ae36
[ "Apache-2.0" ]
null
null
null
""" ghwht/hooks ~~~~~~~~~~~ Contains modules for each type of webhook event. """ from typing import Dict, Type from . import (base, check_run, check_suite, code_scanning_alert, commit_comment, common, content_reference, create, delete, deploy_key, deployment, deployment_status, ...
30.439024
94
0.734509
1c15596ec6bc32ee70e8a44ce813f84eb4dc9780
4,807
py
Python
Models/unet/pretrained.py
YuyangXueEd/MRI_Recon_Tutorial
5c235e0831e30528611f492668987caa0f183f80
[ "MIT" ]
null
null
null
Models/unet/pretrained.py
YuyangXueEd/MRI_Recon_Tutorial
5c235e0831e30528611f492668987caa0f183f80
[ "MIT" ]
null
null
null
Models/unet/pretrained.py
YuyangXueEd/MRI_Recon_Tutorial
5c235e0831e30528611f492668987caa0f183f80
[ "MIT" ]
null
null
null
import argparse import time from collections import defaultdict from pathlib import Path from tqdm import tqdm import numpy as np import requests import torch import fastmri import fastmri.data.transforms as T from fastmri.data import SliceDataset from unet import Unet UNET_FOLDER = "https://dl.fbaipublicfiles.com/f...
29.67284
90
0.613272
1c1591fe80c5c4c4cb646c4c801995c84aa3d05a
14,958
py
Python
examples/vaisala/app.py
bpptkg/bpptkg-meteo
8b554c58ffa5bc41377e8bdde7434abaaae49c27
[ "MIT" ]
null
null
null
examples/vaisala/app.py
bpptkg/bpptkg-meteo
8b554c58ffa5bc41377e8bdde7434abaaae49c27
[ "MIT" ]
2
2021-11-22T03:42:28.000Z
2022-01-13T09:26:06.000Z
examples/vaisala/app.py
bpptkg/bpptkg-meteo
8b554c58ffa5bc41377e8bdde7434abaaae49c27
[ "MIT" ]
null
null
null
import argparse import csv import datetime import io import logging import logging.config import os import sys import tempfile from urllib.error import URLError from urllib.parse import urlencode from urllib.request import urlopen import numpy as np import pandas as pd import pytz import sentry_sdk from decouple impor...
28.383302
91
0.576681
1c15ee9b5e2d3f60611ae6de75d6b5932dc4dacb
580
py
Python
supriya/ugens/PV_Diffuser.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/PV_Diffuser.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/PV_Diffuser.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya.ugens.PV_ChainUGen import PV_ChainUGen class PV_Diffuser(PV_ChainUGen): """ Shifts phases randomly. :: >>> pv_chain = supriya.ugens.FFT( ... source=supriya.ugens.WhiteNoise.ar(), ... ) >>> pv_diffuser = supriya.ugens.PV_Diffuser.ne...
21.481481
88
0.560345
1c1660c84596b717e4dc291da21a02703261bf6d
2,685
py
Python
model/new_model/retinanet_res2net_pan.py
hotcouscous1/TensorBricks
94dd90dce43a455d9abd7ccf19e1e7f361da7824
[ "BSD-3-Clause" ]
null
null
null
model/new_model/retinanet_res2net_pan.py
hotcouscous1/TensorBricks
94dd90dce43a455d9abd7ccf19e1e7f361da7824
[ "BSD-3-Clause" ]
null
null
null
model/new_model/retinanet_res2net_pan.py
hotcouscous1/TensorBricks
94dd90dce43a455d9abd7ccf19e1e7f361da7824
[ "BSD-3-Clause" ]
null
null
null
from backbone.resnet import * from fpn.bifpn import Resample_FPN from fpn.pan import PAN from model.detection.retinanet import * class RetinaNet_Res2Net_PAN(RetinaNet_Frame): """ __version__ = 1.1 __date__ = Mar 23, 2022 Created by hotcouscous1. This model is RetinaNet adopting Res2Net and PAN a...
33.148148
128
0.620484
1c16665ae3f5c625445b4a1e39af2e566b546cf5
1,007
py
Python
src/scripts/visualize_data_pair.py
claudius-kienle/self-supervised-depth-denoising
4dffb30e8ef5022ef665825d26f45f67bf712cfd
[ "MIT" ]
2
2021-12-02T15:06:28.000Z
2021-12-03T09:48:32.000Z
src/scripts/visualize_data_pair.py
claudius-kienle/self-supervised-depth-denoising
4dffb30e8ef5022ef665825d26f45f67bf712cfd
[ "MIT" ]
23
2022-02-24T09:17:03.000Z
2022-03-21T16:57:58.000Z
src/scripts/visualize_data_pair.py
alr-internship/self-supervised-depth-denoising
4dffb30e8ef5022ef665825d26f45f67bf712cfd
[ "MIT" ]
null
null
null
from pathlib import Path from matplotlib import pyplot as plt from dataset.dataset_interface import DatasetInterface from utils.transformation_utils import to_rgb raw_dir = Path("resources/images/raw/ycb_video") cal_dir = Path("resources/images/calibrated/cropped/ycb_video") raw_files = DatasetInterface.get_paths_i...
31.46875
83
0.744786
1c16c2e284378ddda6dba00863726e5732e23c2a
1,278
py
Python
src/schemathesis/converter.py
charliehohenstein30/schemathesis
d4c6d48ca31666417c9259544ecc837e8694c3df
[ "MIT" ]
null
null
null
src/schemathesis/converter.py
charliehohenstein30/schemathesis
d4c6d48ca31666417c9259544ecc837e8694c3df
[ "MIT" ]
null
null
null
src/schemathesis/converter.py
charliehohenstein30/schemathesis
d4c6d48ca31666417c9259544ecc837e8694c3df
[ "MIT" ]
null
null
null
from typing import Any, Dict def to_json_schema(schema: Dict[str, Any], nullable_name: str) -> Dict[str, Any]: """Convert Open API parameters to JSON Schema.""" if schema.get(nullable_name) is True: del schema[nullable_name] if schema.get("in"): initial_type = {"type": schema["type...
39.9375
105
0.63928
1c16c9ff36ca12e18d14dd1cf170bb269abd16e9
59,792
py
Python
airflow/cli/cli_parser.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
1
2021-03-03T07:00:02.000Z
2021-03-03T07:00:02.000Z
airflow/cli/cli_parser.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
36
2021-11-26T00:08:49.000Z
2021-11-26T00:09:33.000Z
airflow/cli/cli_parser.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
3
2020-06-30T02:38:17.000Z
2022-01-19T06:14:08.000Z
#!/usr/bin/env python # # 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 # "...
34.56185
110
0.632576
1c16ef37513d6c618760b66bdb6d6503b6e4ee1f
2,061
py
Python
tests/test_connection.py
kokellab/valarpy
86b3cba301689194768814d6a136b0c93650ca25
[ "Apache-2.0" ]
null
null
null
tests/test_connection.py
kokellab/valarpy
86b3cba301689194768814d6a136b0c93650ca25
[ "Apache-2.0" ]
46
2020-09-23T19:12:43.000Z
2022-03-28T08:08:07.000Z
tests/test_connection.py
kokellab/valarpy
86b3cba301689194768814d6a136b0c93650ca25
[ "Apache-2.0" ]
null
null
null
import json import os from pathlib import Path import pytest from valarpy import * CONFIG_PATH = Path(__file__).parent / "resources" / "connection.json" CONFIG_DATA = json.loads(CONFIG_PATH.read_text(encoding="utf8")) class TestModel: def test_reconnect(self): with Valar(CONFIG_PATH) as valar: ...
30.308824
87
0.578845
1c16ef89dae7f21913becb5f5fa04c4424196c23
1,417
py
Python
alipay/aop/api/domain/AlipayMarketingRecruitEnrollQueryModel.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/AlipayMarketingRecruitEnrollQueryModel.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/AlipayMarketingRecruitEnrollQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayMarketingRecruitEnrollQueryModel(object): def __init__(self): self._enroll_id = None self._out_biz_no = None @property def enroll_id(self): return self._enr...
25.303571
71
0.597742
1c170ae5e0920803a9075cd1f1c0e82e7b4535f9
3,770
py
Python
experiments/ashvin/vae/old/td3_full_dim.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/old/td3_full_dim.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/old/td3_full_dim.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
from rlkit.envs.multitask.multitask_env import MultitaskToFlatEnv from rlkit.envs.multitask.point2d import MultitaskFullVAEPoint2DEnv from rlkit.envs.mujoco.pusher2d import Pusher2DEnv from rlkit.envs.wrappers import NormalizedBoxEnv from rlkit.exploration_strategies.base import ( PolicyWrappedWithExplorationStrate...
31.157025
100
0.654642
1c173faae3f6b2a61d981d5d9a3c2640a496607a
4,447
py
Python
deepchem/molnet/load_function/hiv_datasets.py
akihironitta/deepchem
ffad1a75997bb79360751b2a5fcf3b3405f3c44e
[ "MIT" ]
null
null
null
deepchem/molnet/load_function/hiv_datasets.py
akihironitta/deepchem
ffad1a75997bb79360751b2a5fcf3b3405f3c44e
[ "MIT" ]
null
null
null
deepchem/molnet/load_function/hiv_datasets.py
akihironitta/deepchem
ffad1a75997bb79360751b2a5fcf3b3405f3c44e
[ "MIT" ]
null
null
null
""" hiv dataset loader. """ import os import logging import deepchem logger = logging.getLogger(__name__) HIV_URL = 'http://deepchem.io.s3-website-us-west-1.amazonaws.com/datasets/HIV.csv' DEFAULT_DIR = deepchem.utils.get_data_dir() def load_hiv(featurizer='ECFP', split='index', reload=Tru...
34.472868
107
0.704745
1c17828a3ad649b4da34ef2ef39bbb76fceab017
6,244
py
Python
gmshparser/mesh.py
ahojukka5/gmshparser
add27f8ddc97fb14614432e02bc626ec61030b6d
[ "MIT" ]
10
2020-04-17T21:02:07.000Z
2021-12-21T23:11:34.000Z
gmshparser/mesh.py
ahojukka5/gmshparser
add27f8ddc97fb14614432e02bc626ec61030b6d
[ "MIT" ]
null
null
null
gmshparser/mesh.py
ahojukka5/gmshparser
add27f8ddc97fb14614432e02bc626ec61030b6d
[ "MIT" ]
1
2020-11-18T18:04:48.000Z
2020-11-18T18:04:48.000Z
from typing import List from gmshparser.node_entity import NodeEntity from gmshparser.element_entity import ElementEntity from io import StringIO class Mesh(object): """Mesh is the main class of the package.""" def __init__(self): self.name_ = "New Mesh" self.version_ = "4.1" self.as...
35.885057
79
0.64574
1c178e7f4d67db9c15d237ad6338a1aff98d2381
402
py
Python
main/links/migrations/0002_auto_20161106_0137.py
TunedMystic/url-shortener
6a6abc8ee2397c3d4626189fbc362232a60ddef2
[ "MIT" ]
null
null
null
main/links/migrations/0002_auto_20161106_0137.py
TunedMystic/url-shortener
6a6abc8ee2397c3d4626189fbc362232a60ddef2
[ "MIT" ]
null
null
null
main/links/migrations/0002_auto_20161106_0137.py
TunedMystic/url-shortener
6a6abc8ee2397c3d4626189fbc362232a60ddef2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-11-06 01:37 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('links', '0001_initial'), ] operations = [ migrations.AlterModelOptions( ...
20.1
50
0.599502
1c179c09d3001af58cd101ce5aff852951ab1050
9,836
py
Python
src/compas/utilities/itertools.py
shervinazadi/compas
a3f5a0dd59247b6b6cdac3f14a45f9ff414f44b3
[ "MIT" ]
2
2021-03-17T18:14:22.000Z
2021-09-19T13:50:02.000Z
src/compas/utilities/itertools.py
shervinazadi/compas
a3f5a0dd59247b6b6cdac3f14a45f9ff414f44b3
[ "MIT" ]
null
null
null
src/compas/utilities/itertools.py
shervinazadi/compas
a3f5a0dd59247b6b6cdac3f14a45f9ff414f44b3
[ "MIT" ]
null
null
null
# recipes with itertools # see: https://docs.python.org/3.6/library/itertools.html from __future__ import print_function from __future__ import absolute_import from __future__ import division from itertools import islice from itertools import chain from itertools import repeat from itertools import tee try: from ...
25.481865
111
0.575844
1c17b930aaeaa095505f786407505b396b7da76e
5,750
py
Python
whoville/cloudbreak/models/tags.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/tags.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
whoville/cloudbreak/models/tags.py
mikchaos/whoville
6eabaea4b74ac0b632c03db8252590131c6ce63b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Cloudbreak API Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud...
31.593407
984
0.615826
1c17d70d245f60bb4c13967f74d4d82f551cc540
1,880
py
Python
resources/data_export_script.py
Aruut/CFD-Bayesian-Optimization
b11b6389278c8cca8c7c053d10dc190618c85f00
[ "MIT" ]
8
2020-02-16T10:53:31.000Z
2022-03-28T10:09:00.000Z
resources/data_export_script.py
Aruut/CFD-Bayesian-Optimization
b11b6389278c8cca8c7c053d10dc190618c85f00
[ "MIT" ]
null
null
null
resources/data_export_script.py
Aruut/CFD-Bayesian-Optimization
b11b6389278c8cca8c7c053d10dc190618c85f00
[ "MIT" ]
6
2020-04-02T07:18:19.000Z
2021-12-20T06:29:33.000Z
f = open(GetProjectDirectory() + '\\fullDataExport.csv', 'w') f.write('# Exported Data from an ANSYS Workbench Project:\n') f.write('# ' + Project.GetProjectFile() + '\n') f.write('# Automatically generated by MATLAB-ANSYS scripting.\n') f.write('\n') designPointList = Parameters.GetAllDesignPoints() parameterList = P...
27.246377
107
0.598404
1c17f660a03c3453727f130da8e5e1a51dc4fcff
1,728
py
Python
client/PRESUBMIT.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
tools/swarming_client/PRESUBMIT.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tools/swarming_client/PRESUBMIT.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright 2012 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. """Top-level presubmit script for swarm_client. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for details on the pr...
29.793103
79
0.710648
1c1807de627546c9d58fc6b508fa09e2f003e1c2
3,509
py
Python
db/Updater/scripts/schedule_pdb.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
db/Updater/scripts/schedule_pdb.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
15
2019-06-17T16:13:39.000Z
2022-02-27T05:23:59.000Z
db/Updater/scripts/schedule_pdb.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
''' @author dnnxl Created 28 may 2020 Create a task using crontab for program pdb. It runs for each hour, depending the parameter hour. ''' import sys, argparse, os sys.path.append('../') import datetime from crontab import CronTab from classes.update import Update from connections.sql_connection import SQL_connect...
26.78626
225
0.590767
1c18144ba9f2eb6b841301c58f528b6003046910
7,525
py
Python
pytorch/aten/src/ATen/preprocess_declarations.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
pytorch/aten/src/ATen/preprocess_declarations.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
pytorch/aten/src/ATen/preprocess_declarations.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
import re from copy import deepcopy from function_wrapper import TYPE_FORMAL_GENERIC import common_with_cwrap type_map = { 'floating_point': [ 'Float', 'Double', 'Half', 'BFloat16', ], 'integral': [ 'Byte', 'Char', 'Short', 'Int', 'Lon...
35.163551
113
0.616877
1c1821eea38452e1e478e0f15e4e4d2069dc271c
1,426
py
Python
Tweet_functions.py
conradstorz/RiverBot
45580fc91488d2ed938d65753da78037f56218f8
[ "Apache-2.0" ]
null
null
null
Tweet_functions.py
conradstorz/RiverBot
45580fc91488d2ed938d65753da78037f56218f8
[ "Apache-2.0" ]
null
null
null
Tweet_functions.py
conradstorz/RiverBot
45580fc91488d2ed938d65753da78037f56218f8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Provide routines to Tweet strings to Twitter. TODO Create OOP implementation. example: obj/my_account methods: tweet,init,status(last tweet and time of tweet) """ from loguru import logger from twython import Twython, TwythonError PupDB_MRTkey = 'Most_Recent_Tw...
27.960784
112
0.674614
1c1830e85b99fcf4b619a01bf3e98726c486a2dc
396
py
Python
main.py
tmattoneill/flask_project_template
90c75f6769b0b09d608997ca62c598675cc7a3b4
[ "MIT" ]
null
null
null
main.py
tmattoneill/flask_project_template
90c75f6769b0b09d608997ca62c598675cc7a3b4
[ "MIT" ]
1
2021-06-02T00:01:17.000Z
2021-06-02T00:01:17.000Z
main.py
tmattoneill/flask_project_template
90c75f6769b0b09d608997ca62c598675cc7a3b4
[ "MIT" ]
null
null
null
import os from app import create_app app = create_app(os.getenv('FLASK_CONFIG') or 'default') print("Running FLASK_APP: {}".format(os.getenv('FLASK_APP') or __file__)) @app.shell_context_processor def make_shell_context(): return None if __name__ == '__main__': app.run(debug=True, use_debugger=...
22
73
0.689394
1c183494ca7b8373053f9fb8e384bce67aefc885
3,310
py
Python
StreamPy/TestExamplesListToStreams/test_example_list_multi_in_multi_out_stateless.py
AnomalyInc/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
2
2017-04-27T11:04:27.000Z
2019-02-07T21:03:32.000Z
StreamPy/TestExamplesListToStreams/test_example_list_multi_in_multi_out_stateless.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
StreamPy/TestExamplesListToStreams/test_example_list_multi_in_multi_out_stateless.py
StreamPy/StreamPy
94abca276b2857de48259f4f42ef95efbdf5f6d1
[ "Apache-2.0" ]
null
null
null
"""This module contains examples of stream_func where f_type is 'element' and stream_func has a list of multiple input streams, a single output stream, and the operation is stateless. These examples must have a LIST of input streams and not a single input stream. The functions on static Python data structures are of t...
29.035088
77
0.651964
1c183d465b249f881dad39838428410634a50b8e
6,468
py
Python
test/operations/PredictTest.py
LordOfTheRains/cookieJar
57838b9f5103dacad5b3bdc643905e65d576af94
[ "MIT" ]
null
null
null
test/operations/PredictTest.py
LordOfTheRains/cookieJar
57838b9f5103dacad5b3bdc643905e65d576af94
[ "MIT" ]
null
null
null
test/operations/PredictTest.py
LordOfTheRains/cookieJar
57838b9f5103dacad5b3bdc643905e65d576af94
[ "MIT" ]
null
null
null
from __future__ import absolute_import import unittest from softwareprocess.operations.predict import Predict class PredictTest(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_constructor(self): input_dict = {'body': 'BetelGeuse', 'date':...
43.12
94
0.524892
1c183faf91a437b1e69d1219aa89ef3a3fcc0f86
58,862
py
Python
theano/compile/profiling.py
jdehotin/Theano
0477d6356e4c5ceb5c3c03585e59d2e85abfcd02
[ "BSD-3-Clause" ]
null
null
null
theano/compile/profiling.py
jdehotin/Theano
0477d6356e4c5ceb5c3c03585e59d2e85abfcd02
[ "BSD-3-Clause" ]
null
null
null
theano/compile/profiling.py
jdehotin/Theano
0477d6356e4c5ceb5c3c03585e59d2e85abfcd02
[ "BSD-3-Clause" ]
null
null
null
""" ProfileStats object for runtime and memory profiling. """ # # TODO: add tip to use specify_shape (is specify_shape even in library doc?) # TODO: ensure field width for string fields makes columns line up # TODO: what to do about 'diff summary'? (ask Fred?) # from __future__ import absolute_import, print_function, ...
40.261286
112
0.500357
1c18624770b41d7010f69c656d5d8194b33992c5
1,143
py
Python
expand_rect.py
yangzhaonan18/trafficSignDetect
a84bfe4d0b74593b1671361d2aef547785ea4958
[ "MIT" ]
4
2021-04-08T09:00:32.000Z
2021-12-01T18:13:22.000Z
expand_rect.py
yangzhaonan18/trafficSignDetect
a84bfe4d0b74593b1671361d2aef547785ea4958
[ "MIT" ]
null
null
null
expand_rect.py
yangzhaonan18/trafficSignDetect
a84bfe4d0b74593b1671361d2aef547785ea4958
[ "MIT" ]
1
2020-04-10T08:37:17.000Z
2020-04-10T08:37:17.000Z
# -*- coding=utf-8 -*- # py37 import numpy as np def expand_yellow(list): list = np.array(list) print(list.shape) unite_list = [] for i in range(len(list)): if list[i][2] > 10 and list[i][3] > 10: if list[i][2] < list[i][3]: # 黄色区域的宽度 小于 高度的时候,将不变看成是 黄色施工标志进行尺寸的调整 ...
31.75
80
0.480315
1c1869ede4c0c8ae1ceff1fe94aa4069b24a7211
685
py
Python
Analytics/initdb.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
4
2018-11-21T14:42:18.000Z
2020-05-11T10:52:59.000Z
Analytics/initdb.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
60
2018-11-21T15:11:59.000Z
2019-12-02T10:46:44.000Z
Analytics/initdb.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
7
2018-11-21T14:42:44.000Z
2019-11-28T16:24:14.000Z
import os import sys sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from Analytics.app import create_app import sqlalchemy """ Initialise the Database """ app = create_app() db_uri = '%s://%s:%s@%s/' % ( app.config["'db_psql_base_uri"], app.config['db_username'], app.config[...
28.541667
79
0.693431
1c187e4e752c608921ac83f716a885527b204ffa
858
py
Python
tests/test_pyxutils.py
tflynn/pyxutils
5aeb2a9f679dcc8098491debff4e47b3d6c45331
[ "MIT" ]
null
null
null
tests/test_pyxutils.py
tflynn/pyxutils
5aeb2a9f679dcc8098491debff4e47b3d6c45331
[ "MIT" ]
null
null
null
tests/test_pyxutils.py
tflynn/pyxutils
5aeb2a9f679dcc8098491debff4e47b3d6c45331
[ "MIT" ]
null
null
null
import os from os import path import unittest from pyxutils import paths class Testpyxutils(unittest.TestCase): def test_001_guess_package(self): current_package = paths.guess_package() self.assertEqual(current_package, 'tests') def test_002_package_dir(self): # Cheat a little sin...
30.642857
88
0.699301
1c18a9187213145e75b92e2a776b8f31654f5f45
821
py
Python
mixedlayer.py
nfeldl/EBM-icy-moist-seasonal
5837373438434c400ec5ac2b05e70e3ac32abe70
[ "MIT" ]
1
2021-09-03T00:26:31.000Z
2021-09-03T00:26:31.000Z
mixedlayer.py
nfeldl/EBM-icy-moist-seasonal
5837373438434c400ec5ac2b05e70e3ac32abe70
[ "MIT" ]
null
null
null
mixedlayer.py
nfeldl/EBM-icy-moist-seasonal
5837373438434c400ec5ac2b05e70e3ac32abe70
[ "MIT" ]
1
2021-06-23T15:53:33.000Z
2021-06-23T15:53:33.000Z
#!/software/anaconda3/bin cday = 86400.0 # sec in calendar day ~ sec cyear = cday*365.25 # sec in calendar year ~ sec cpsw = 3.996e3 # specific heat of sea water ~ J/kg/K rhosw = 1.026e3 # density of sea water ~ kg/m^3 def heatcapacity(h): """ Calculate mixed-layer heat cap...
18.659091
63
0.624848
1c18de819ea1292562a9e49067055334e327dfaa
39,267
py
Python
OpenModal/gui/skeleton.py
MonashSmartStructures/OpenModal
a76a258c420954eab4a8b4ef37b487616c9f6c62
[ "CNRI-Python" ]
85
2016-12-04T10:34:08.000Z
2022-03-26T18:03:47.000Z
OpenModal/gui/skeleton.py
MonashSmartStructures/OpenModal
a76a258c420954eab4a8b4ef37b487616c9f6c62
[ "CNRI-Python" ]
55
2016-12-02T15:01:15.000Z
2022-01-07T11:10:26.000Z
OpenModal/gui/skeleton.py
gusshmn/OpenModal
a76a258c420954eab4a8b4ef37b487616c9f6c62
[ "CNRI-Python" ]
51
2016-12-30T16:33:36.000Z
2021-11-13T11:05:34.000Z
# Copyright (C) 2014-2017 Matjaž Mršnik, Miha Pirnat, Janko Slavič, Blaž Starc (in alphabetic order) # # This file is part of OpenModal. # # OpenModal is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version...
37.397143
155
0.612321
1c190204a5306b0e554e4ffaf5b6cf93a6dd2931
22,292
py
Python
src/toil/test/wdl/builtinTest.py
Hexotical/toil
312b6e1f221ee7f7f187dd6dbfce1aecffd00e09
[ "Apache-2.0" ]
516
2015-07-30T19:08:55.000Z
2018-07-03T20:53:42.000Z
src/toil/test/wdl/builtinTest.py
Hexotical/toil
312b6e1f221ee7f7f187dd6dbfce1aecffd00e09
[ "Apache-2.0" ]
1,949
2015-07-29T23:38:49.000Z
2018-07-05T12:42:04.000Z
src/toil/test/wdl/builtinTest.py
gmloose/toil
a82834073b28f66747c5c3ac99d1a678b82d2290
[ "Apache-2.0" ]
193
2015-07-31T18:52:57.000Z
2018-07-05T08:54:11.000Z
import json import os import shutil import subprocess import unittest import uuid from typing import List, Optional from toil.test import ToilTest from toil.version import exactPython from toil.wdl.wdl_functions import (WDLPair, WDLRuntimeError, c...
43.968442
117
0.586354
1c19432c31c5726b346b9656a2fe4b0401924e1f
1,930
py
Python
tensor2tensor/data_generators/audio_test.py
vohoaiviet/tensor2tensor
c2bd023ab7fc8ca0f4c4138e955845537d10ca55
[ "Apache-2.0" ]
6
2017-10-10T13:36:39.000Z
2021-02-18T07:50:00.000Z
tensor2tensor/data_generators/audio_test.py
vohoaiviet/tensor2tensor
c2bd023ab7fc8ca0f4c4138e955845537d10ca55
[ "Apache-2.0" ]
null
null
null
tensor2tensor/data_generators/audio_test.py
vohoaiviet/tensor2tensor
c2bd023ab7fc8ca0f4c4138e955845537d10ca55
[ "Apache-2.0" ]
9
2017-07-25T11:29:06.000Z
2021-06-20T14:01:58.000Z
# Copyright 2017 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
30.634921
75
0.710363
1c1948bb575829ea6a27b25d1f96c43b6f8e4bd8
8,328
py
Python
src/falconpy/__init__.py
rayheffer/falconpy
72abcd07b18f193a1491a4d41a71ce2f1c1e73e6
[ "Unlicense" ]
null
null
null
src/falconpy/__init__.py
rayheffer/falconpy
72abcd07b18f193a1491a4d41a71ce2f1c1e73e6
[ "Unlicense" ]
null
null
null
src/falconpy/__init__.py
rayheffer/falconpy
72abcd07b18f193a1491a4d41a71ce2f1c1e73e6
[ "Unlicense" ]
null
null
null
"""The CrowdStrike Falcon OAuth2 API SDK. @@@@@@@ @@@@@@@ @@@@@@ @@@ @@@ @@@ @@@@@@@ @@@@@@ @@@@@@@ @@@@@@@ @@@ @@@ @@@ @@@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@@@ @@@ @@@ @@@ @@@@@@@@ @@@@@@@ @@@@@@@ @@@@@@@@ @@@ @@@ @@@ @@@@@@@@ !@@ @@! @@@ @@! @@@ @@! @@! @@! @@! @@@ !@@ ...
53.044586
107
0.508165
1c1963dbc8f8ba79644592bd04b5ba967f65180f
128,942
py
Python
Keras_tensorflow_nightly/source2.7/keras/engine/topology.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2021-09-04T01:56:47.000Z
2021-09-04T01:56:47.000Z
Keras_tensorflow_nightly/source2.7/keras/engine/topology.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Keras_tensorflow_nightly/source2.7/keras/engine/topology.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
2
2018-07-23T06:57:42.000Z
2021-03-31T03:15:38.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import absolute_import from __future__ import division import numpy as np import json import yaml import warnings import copy import os import re from six.moves import zip from .. import backend as K from .. import initializers from ..utils...
41.433805
121
0.549262
1c1968109ca08057fa4756b2d61aed2dd5af7696
3,042
py
Python
venv/Lib/site-packages/pyrogram/raw/types/messages/affected_history.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/messages/affected_history.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/messages/affected_history.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
33.065217
104
0.614398