hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
6251bb907e12df1816fa1e8e15ed400403ee0986
616
py
Python
dev-utils/_windows/astyle/astyle.py
wrobelda/craft-blueprints-kde
366f460cecd5baebdf3a695696767c8c0e5e7c7e
[ "BSD-2-Clause" ]
14
2017-09-04T09:01:03.000Z
2022-01-04T20:09:00.000Z
dev-utils/_windows/astyle/astyle.py
wrobelda/craft-blueprints-kde
366f460cecd5baebdf3a695696767c8c0e5e7c7e
[ "BSD-2-Clause" ]
14
2017-12-15T08:11:22.000Z
2020-12-29T19:11:13.000Z
dev-utils/_windows/astyle/astyle.py
wrobelda/craft-blueprints-kde
366f460cecd5baebdf3a695696767c8c0e5e7c7e
[ "BSD-2-Clause" ]
19
2017-09-05T19:16:21.000Z
2020-10-18T12:46:06.000Z
import info class subinfo(info.infoclass): def setTargets(self): self.targets["2.0.4"] = "http://downloads.sourceforge.net/sourceforge/astyle/AStyle_2.04_windows.zip" self.targetInstSrc["2.0.4"] = "AStyle" self.targetInstallPath["2.0.4"] = "dev-utils" self.targetDigests['2.0.4'] = ...
30.8
113
0.694805
a1d2c518dbad9c49e155e00f8537560f2d5d55fb
1,546
py
Python
widgets/temp.py
alberand/lemonbar
baa479edb422b6595794794dcd434a3ab65ae747
[ "MIT" ]
null
null
null
widgets/temp.py
alberand/lemonbar
baa479edb422b6595794794dcd434a3ab65ae747
[ "MIT" ]
null
null
null
widgets/temp.py
alberand/lemonbar
baa479edb422b6595794794dcd434a3ab65ae747
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re import sys import datetime import subprocess from widgets.widget import Widget from widgets.config import colors, icons class temp(Widget): ''' Abstrac class for all lemonbar widgets. ''' def __init__(self, value=''): ''' Params: bg: backg...
24.539683
71
0.549159
7562e8bafb0b3cfd915294f82155f70026e01845
1,006
py
Python
houses/migrations/0002_auto_20160614_1547.py
Totalboy/sputnik_blog
154ddbea4bd8f089476f6b6fb25f82d1e5de0b31
[ "MIT" ]
null
null
null
houses/migrations/0002_auto_20160614_1547.py
Totalboy/sputnik_blog
154ddbea4bd8f089476f6b6fb25f82d1e5de0b31
[ "MIT" ]
null
null
null
houses/migrations/0002_auto_20160614_1547.py
Totalboy/sputnik_blog
154ddbea4bd8f089476f6b6fb25f82d1e5de0b31
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-14 15:47 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('houses', '0001_initial'), ] op...
30.484848
143
0.611332
da972610635311a4251fd63b637d73ec3a969609
17,676
py
Python
scripts/patrol.py
nizz009/pywikibot
fcf860fee8477852c33980fd1f612637c52d42de
[ "MIT" ]
null
null
null
scripts/patrol.py
nizz009/pywikibot
fcf860fee8477852c33980fd1f612637c52d42de
[ "MIT" ]
null
null
null
scripts/patrol.py
nizz009/pywikibot
fcf860fee8477852c33980fd1f612637c52d42de
[ "MIT" ]
null
null
null
#!/usr/bin/python """ The bot is meant to mark the edits based on info obtained by whitelist. This bot obtains a list of recent changes and newpages and marks the edits as patrolled based on a whitelist. Whitelist Format ~~~~~~~~~~~~~~~~ The whitelist is formatted as a number of list entries. Any links outside of li...
37.056604
79
0.57513
257abfb6585915e8ca0989c5651bdf1becc67dd8
1,518
py
Python
ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/files/validateKnoxStatus.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
25
2019-12-04T03:09:55.000Z
2022-03-08T10:52:06.000Z
ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/files/validateKnoxStatus.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
29
2019-12-04T03:00:39.000Z
2022-03-02T06:25:44.000Z
ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/files/validateKnoxStatus.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
33
2019-12-04T02:51:30.000Z
2022-03-24T02:47:38.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 "License");...
34.5
99
0.738472
8a6e2487c7ad18542240347d7e6e76f96b18ec84
956
py
Python
basic_skills/views_ex/views_messages.py
bluebamus/django_miscellaneous_book
22e0851b3a07aeef94bb723b334f036ed5c17f72
[ "MIT" ]
null
null
null
basic_skills/views_ex/views_messages.py
bluebamus/django_miscellaneous_book
22e0851b3a07aeef94bb723b334f036ed5c17f72
[ "MIT" ]
null
null
null
basic_skills/views_ex/views_messages.py
bluebamus/django_miscellaneous_book
22e0851b3a07aeef94bb723b334f036ed5c17f72
[ "MIT" ]
null
null
null
from django.contrib import messages from django.shortcuts import render from django.http import HttpResponse ''' Level Constant Tag Value DEBUG debug 10 INFO info 20 SUCCESS success 25 WARNING warning 30 ERROR error 40 ''' def MessageBasicView(request): # there ar...
29.875
89
0.692469
e9a5b2560dfaf7dd57851d906e2f367a8b75b460
489
py
Python
Python/positions-of-large-groups.py
paperfactory/LeetCode-Solution
d29ef5358cae592b63952c3d293897a176fb75e1
[ "MIT" ]
1
2021-09-07T16:36:07.000Z
2021-09-07T16:36:07.000Z
Python/positions-of-large-groups.py
se77enn/LeetCode-Solution
d29ef5358cae592b63952c3d293897a176fb75e1
[ "MIT" ]
null
null
null
Python/positions-of-large-groups.py
se77enn/LeetCode-Solution
d29ef5358cae592b63952c3d293897a176fb75e1
[ "MIT" ]
1
2021-03-22T18:58:23.000Z
2021-03-22T18:58:23.000Z
# Time: O(n) # Space: O(1) try: xrange # Python 2 except NameError: xrange = range # Python 3 class Solution(object): def largeGroupPositions(self, S): """ :type S: str :rtype: List[List[int]] """ result = [] i = 0 for j in xrange(len(S)):...
20.375
47
0.421268
14dcd76492d27d9c52e50f5490950bbef1265e4f
17,846
py
Python
mrcnn/samples/nucleus.py
jacky10001/Mask_RCNN-tf2
8ac9bb8170428e35bd07431135a82a19a8090556
[ "MIT" ]
1
2020-12-11T14:34:03.000Z
2020-12-11T14:34:03.000Z
mrcnn/samples/nucleus.py
jacky10001/Mask_RCNN-tf2
8ac9bb8170428e35bd07431135a82a19a8090556
[ "MIT" ]
null
null
null
mrcnn/samples/nucleus.py
jacky10001/Mask_RCNN-tf2
8ac9bb8170428e35bd07431135a82a19a8090556
[ "MIT" ]
null
null
null
""" Mask R-CNN Train on the nuclei segmentation dataset from the Kaggle 2018 Data Science Bowl https://www.kaggle.com/c/data-science-bowl-2018/ Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla ------------------------------------------------------------ Usage: import the module (see...
38.378495
111
0.625014
69970b38e5b5ecec5da31a4f774d395602976cef
611
py
Python
pyleveltsd/reader.py
InMobi/level-tsd
fc042a555c98f7dff275a4550435bdf56d090f36
[ "Apache-2.0" ]
24
2015-01-06T09:14:09.000Z
2022-02-10T16:52:31.000Z
pyleveltsd/reader.py
InMobi/level-tsd
fc042a555c98f7dff275a4550435bdf56d090f36
[ "Apache-2.0" ]
null
null
null
pyleveltsd/reader.py
InMobi/level-tsd
fc042a555c98f7dff275a4550435bdf56d090f36
[ "Apache-2.0" ]
3
2015-02-02T17:33:56.000Z
2022-02-21T09:43:20.000Z
class LevelTsdReader(object): def __init__(self, cluster): self._ltb = cluster def get_child_nodes(self, parent_path): return self._ltb.dir_db.get_children(parent_path) def is_node_leaf(self, path): try: children = self._ltb.dir_db.get_children(path) retur...
29.095238
89
0.646481
c182a5848fc6f77c0fb0852fd431f8e7ee4bd9d2
11,805
py
Python
bregman/classifier.py
ttm/BregmanToolkit
f71cdc6db3173c19b10c69c829ee22fc0fe7d090
[ "MIT" ]
1
2020-02-27T22:47:49.000Z
2020-02-27T22:47:49.000Z
bregman/classifier.py
ctlabvn/BregmanToolkit
cc5efa05074e37a99c791982fcf21f10b0bef8d1
[ "MIT" ]
null
null
null
bregman/classifier.py
ctlabvn/BregmanToolkit
cc5efa05074e37a99c791982fcf21f10b0bef8d1
[ "MIT" ]
null
null
null
# classifier - classification algorithms for Bregman toolkit __version__ = '1.0' __author__ = 'Michael A. Casey' __copyright__ = "Copyright (C) 2010 Michael Casey, Dartmouth College, All Rights Reserved" __license__ = "GPL Version 2.0 or Higher" __email__ = 'mcasey@dartmouth.edu' import numpy as N import scipy.linal...
35.990854
140
0.589835
699af7a2ac7448affb518c2c242e7413cc2f2044
423
py
Python
workon/templatetags/workon_compress.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2018-01-19T16:08:54.000Z
2018-01-19T16:08:54.000Z
workon/templatetags/workon_compress.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2020-07-06T08:35:18.000Z
2020-07-06T08:35:18.000Z
workon/templatetags/workon_compress.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
4
2020-04-08T06:14:46.000Z
2020-12-11T14:28:06.000Z
from django.conf import settings __all__ = ['lazy_register'] def lazy_register(register): if "compressor" in settings.INSTALLED_APPS: @register.tag def compress(parser, token): from compressor.templatetags.compress import compress return compress(parser, token) else: try: @reg...
20.142857
62
0.685579
b0d49a990678a0c15b8525dfb04bac76134e6d51
1,006
py
Python
CMPT-120-201-22S/JupyterNotebooks/Labs/Lab 6/leap_year.py
NicholasJackson61/CMPT-120L-201-22S
f2c30999deec0adf528acd4139e16be6d77ea1b7
[ "MIT" ]
1
2022-02-19T17:57:57.000Z
2022-02-19T17:57:57.000Z
CMPT-120-201-22S/JupyterNotebooks/Labs/Lab 6/leap_year.py
NicholasJackson61/CMPT-120L-201-22S
f2c30999deec0adf528acd4139e16be6d77ea1b7
[ "MIT" ]
null
null
null
CMPT-120-201-22S/JupyterNotebooks/Labs/Lab 6/leap_year.py
NicholasJackson61/CMPT-120L-201-22S
f2c30999deec0adf528acd4139e16be6d77ea1b7
[ "MIT" ]
null
null
null
def leap_year(year): """ - Add code in the defined function to figure out whether or not the given year is a leap year or not. - Every year that is exactly divisible by four is a leap year, except for years that are exactly divisible by 100, but these centurial years are leap years if they are exactly...
28.742857
306
0.631213
f986bca713e85214fed640caed5a976e21e198b4
17,332
py
Python
django/contrib/admin/filters.py
doordash/django
2f0e0eee450775a71ac3eb42707dcd970ede42c8
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/contrib/admin/filters.py
doordash/django
2f0e0eee450775a71ac3eb42707dcd970ede42c8
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/contrib/admin/filters.py
doordash/django
2f0e0eee450775a71ac3eb42707dcd970ede42c8
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
""" This encapsulates the logic for displaying filters in the Django admin. Filters are specified in models with the "list_filter" option. Each filter subclass knows how to display a filter for a field that passes a certain test -- e.g. being a DateField or ForeignKey. """ import datetime from django.contrib.admin.op...
40.685446
111
0.625779
16cb7a8b047336b71bfce320d6f2e6c2c98d323c
273
py
Python
Input/main.py
tatonkoduje/pythonforbegginers
1fec11ecd6788c91833d06dfabbb0b1319ff8e68
[ "Apache-2.0" ]
null
null
null
Input/main.py
tatonkoduje/pythonforbegginers
1fec11ecd6788c91833d06dfabbb0b1319ff8e68
[ "Apache-2.0" ]
null
null
null
Input/main.py
tatonkoduje/pythonforbegginers
1fec11ecd6788c91833d06dfabbb0b1319ff8e68
[ "Apache-2.0" ]
null
null
null
input() print(input()) name = input("Jak mas zna imię? ") age = int(input("Ile masz lat? ")) weight = float(input("Ile ważysz? ")) print('---------------------------------') print("Witaj " + name) print("Masz " + str(age) + " lat!") print("Ważysz " + str(weight) + "kg")
22.75
42
0.520147
259b7f3662d1e0d4f0388a60323a9455428a2f8b
17,436
py
Python
tests/interfaces/test_tape_torch.py
jsmz97/pennylane
de7b7c0b452c8d59867d11f84b9c332a36e08ab1
[ "Apache-2.0" ]
3
2022-01-19T13:41:52.000Z
2022-01-22T03:38:58.000Z
tests/interfaces/test_tape_torch.py
jsmz97/pennylane
de7b7c0b452c8d59867d11f84b9c332a36e08ab1
[ "Apache-2.0" ]
1
2021-05-18T07:38:21.000Z
2021-05-18T07:38:21.000Z
tests/interfaces/test_tape_torch.py
jsmz97/pennylane
de7b7c0b452c8d59867d11f84b9c332a36e08ab1
[ "Apache-2.0" ]
1
2021-12-07T17:18:36.000Z
2021-12-07T17:18:36.000Z
# Copyright 2018-2020 Xanadu Quantum Technologies 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 applicabl...
35.082495
100
0.546857
d059547280519eee5b5bf6517d97e6ed5c773518
4,323
py
Python
backend/tests/baserow/ws/test_ws_pages.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
1
2022-01-24T15:12:02.000Z
2022-01-24T15:12:02.000Z
backend/tests/baserow/ws/test_ws_pages.py
rasata/baserow
c6e1d7842c53f801e1c96b49f1377da2a06afaa9
[ "MIT" ]
null
null
null
backend/tests/baserow/ws/test_ws_pages.py
rasata/baserow
c6e1d7842c53f801e1c96b49f1377da2a06afaa9
[ "MIT" ]
null
null
null
import pytest from channels.testing import WebsocketCommunicator from baserow.config.asgi import application from baserow.ws.auth import ANONYMOUS_USER_TOKEN @pytest.mark.run(order=3) @pytest.mark.asyncio @pytest.mark.django_db(transaction=True) async def test_join_page(data_fixture): user_1, token_1 = data_fix...
38.598214
88
0.718251
0d4810865e6ff16aa177059582297bebdeae19d9
2,416
py
Python
tests/system/fixtures/__init__.py
acidburn0zzz/marathon
3539856caa666a44702a1cbf41a285c9a321d014
[ "Apache-2.0" ]
null
null
null
tests/system/fixtures/__init__.py
acidburn0zzz/marathon
3539856caa666a44702a1cbf41a285c9a321d014
[ "Apache-2.0" ]
1
2022-02-26T11:07:50.000Z
2022-02-26T11:07:50.000Z
tests/system/fixtures/__init__.py
acidburn0zzz/marathon
3539856caa666a44702a1cbf41a285c9a321d014
[ "Apache-2.0" ]
null
null
null
import aiohttp import common import json import os.path import pytest import shakedown from datetime import timedelta from sseclient.async import SSEClient from urllib.parse import urljoin def fixtures_dir(): return os.path.dirname(os.path.abspath(__file__)) @pytest.fixture(scope="function") def wait_for_marath...
38.349206
113
0.737997
9d22a36e497e187cb5e05215deef45adc6f59aaa
2,485
py
Python
src/doc/en/reference/conf_sub.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
src/doc/en/reference/conf_sub.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
src/doc/en/reference/conf_sub.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
null
null
null
# nodoctest # Sage documentation build configuration file, created by # sphinx-quickstart on Thu Aug 21 20:15:55 2008. # # This file is execfile()d with the current directory set to its containing dir. # # The contents of this file are pickled, so don't put values in the namespace # that aren't pickleable (module impor...
32.272727
82
0.739235
337078b20fc1de50a27e819439ec6a2131cf79da
3,874
py
Python
lcclassifier/results/utils.py
oscarpimentel/astro-lightcurves-classifier
f697b43e22bd8c92c1b9df514be8565c736dd7cc
[ "MIT" ]
1
2021-12-31T18:00:08.000Z
2021-12-31T18:00:08.000Z
lcclassifier/results/utils.py
oscarpimentel/astro-lightcurves-classifier
f697b43e22bd8c92c1b9df514be8565c736dd7cc
[ "MIT" ]
null
null
null
lcclassifier/results/utils.py
oscarpimentel/astro-lightcurves-classifier
f697b43e22bd8c92c1b9df514be8565c736dd7cc
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import division from . import _C import fuzzytools.strings as strings import fuzzytools.matplotlib.colors as ftc import numpy as np import fuzzytools.files as ftfiles INVALID_MODEL_KEYS = [ 'dummy_seft', 'enc_emb', 'dec_emb', 'input_dims', 'kernel_size', 'b'...
30.265625
147
0.58699
0120707b9d54d17f5104d0ebf41a2fb65d377eb0
4,617
py
Python
scripts/configure.py
DaelonSuzuka/XC8-Toolchain
aaf2bca7ba471cf05875902beb6a46f9eb3086ea
[ "MIT" ]
6
2020-06-08T03:06:35.000Z
2021-12-15T03:09:23.000Z
scripts/configure.py
DaelonSuzuka/XC8-Toolchain
aaf2bca7ba471cf05875902beb6a46f9eb3086ea
[ "MIT" ]
2
2020-06-13T18:23:19.000Z
2020-06-13T19:23:30.000Z
scripts/configure.py
DaelonSuzuka/Easy-XC8
dcb5da0c6561236f533fb014655f3296d64bd17b
[ "MIT" ]
1
2020-06-08T02:48:03.000Z
2020-06-08T02:48:03.000Z
import yaml import json from pathlib import Path from PyInquirer import prompt, print_json, Separator processors = { 'K42': [ '18F24K42 - 20 pins, 1K RAM, 16K ROM', '18F25K42 - 20 pins, 2K RAM, 32K ROM', '18F26K42 - 20 pins, 4K RAM, 64K ROM', '18F27K42 - 20 pins, 8K RAM, 128K ROM',...
30.576159
81
0.549058
e3ac6fbe755f60307764ee0d5889ddbebc3b9a8a
11,061
py
Python
routes.py
zcomx/zco.mx
70a7372af5787c2e4dea14b25bab0bbb2b959881
[ "BSD-3-Clause" ]
null
null
null
routes.py
zcomx/zco.mx
70a7372af5787c2e4dea14b25bab0bbb2b959881
[ "BSD-3-Clause" ]
null
null
null
routes.py
zcomx/zco.mx
70a7372af5787c2e4dea14b25bab0bbb2b959881
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # default_application, default_controller, default_function # are used when the respective element is missing from the # (possibly rewritten) incoming URL # default_application = 'zcomx' # ordinarily set in base routes.py default_controller = 'default' # ordinarily set in app-specific route...
41.426966
164
0.626164
59f28ba7f88748a3f1e9dc3f9c929644cd0911eb
1,588
py
Python
tests/bugs/gh_6874_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2022-02-05T11:37:13.000Z
2022-02-05T11:37:13.000Z
tests/bugs/gh_6874_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-09-03T11:47:00.000Z
2021-09-03T12:42:10.000Z
tests/bugs/gh_6874_test.py
FirebirdSQL/firebird-qa
96af2def7f905a06f178e2a80a2c8be4a4b44782
[ "MIT" ]
1
2021-06-30T14:14:16.000Z
2021-06-30T14:14:16.000Z
#coding:utf-8 # # id: bugs.gh_6874 # title: Literal 65536 (interpreted as int) can not be multiplied by itself w/o cast if result more than 2^63-1 # decription: # https://github.com/FirebirdSQL/firebird/issues/6874 # # Confirmed need to explicitly c...
31.76
126
0.63665
dff5a22fcf1de17e4708072cdc7aec96f99ee727
229
py
Python
{{cookiecutter.project_slug}}/pkg/{{cookiecutter.project_slug}}/test_{{cookiecutter.project_slug}}.py
asecurityteam/template-python-service
4abaa8d91246f75fd0f66453fabedc0d9f6825b7
[ "Apache-2.0" ]
null
null
null
{{cookiecutter.project_slug}}/pkg/{{cookiecutter.project_slug}}/test_{{cookiecutter.project_slug}}.py
asecurityteam/template-python-service
4abaa8d91246f75fd0f66453fabedc0d9f6825b7
[ "Apache-2.0" ]
null
null
null
{{cookiecutter.project_slug}}/pkg/{{cookiecutter.project_slug}}/test_{{cookiecutter.project_slug}}.py
asecurityteam/template-python-service
4abaa8d91246f75fd0f66453fabedc0d9f6825b7
[ "Apache-2.0" ]
null
null
null
'''Runs unit tests on {{cookiecutter.project_slug}}''' from pkg.{{cookiecutter.project_slug}}.{{cookiecutter.project_slug}} import {{cookiecutter.project_slug}} def test_init(): assert {{cookiecutter.project_slug}}() is None
45.8
105
0.751092
7e543588bfd26710ce4f8d5b59ca432b8b90c428
2,073
py
Python
main.py
Sciguymjm/LinkDetector
47b3754cd7df723ce2490b5746bf9080e7e69956
[ "MIT" ]
null
null
null
main.py
Sciguymjm/LinkDetector
47b3754cd7df723ce2490b5746bf9080e7e69956
[ "MIT" ]
null
null
null
main.py
Sciguymjm/LinkDetector
47b3754cd7df723ce2490b5746bf9080e7e69956
[ "MIT" ]
null
null
null
from datetime import datetime import sys from BeautifulSoup import BeautifulSoup import requests from urlparse import urlparse import argparse GOOD_CODES = [302, 200, 301] def log(msg, level="VERB"): if (VERBOSE and level == "VERB") or level != "VERB": print "{} - {}: {}".format(datetime.now().strftime(...
33.435484
128
0.642065
4bd0da51650afbd19ee5bd3b068f840ce6734ddb
1,781
py
Python
app.py
BuildWeek-ft-airbnb-6/AirBnB-FrontEnd
d8f5d60f3b05a38d651ae1dfc2b6c4c52c0e98a7
[ "MIT" ]
2
2021-08-29T03:37:23.000Z
2021-08-29T03:37:25.000Z
app.py
BuildWeek-ft-airbnb-6/AirBnB-FrontEnd
d8f5d60f3b05a38d651ae1dfc2b6c4c52c0e98a7
[ "MIT" ]
null
null
null
app.py
BuildWeek-ft-airbnb-6/AirBnB-FrontEnd
d8f5d60f3b05a38d651ae1dfc2b6c4c52c0e98a7
[ "MIT" ]
1
2021-05-26T22:42:06.000Z
2021-05-26T22:42:06.000Z
import dash import dash_bootstrap_components as dbc """ https://github.com/facultyai/dash-bootstrap-components dash-bootstrap-components provides Bootstrap components. Plotly Dash is great! However, creating the initial layout can require a lot of boilerplate. dash-bootstrap-components reduces this boilerp...
29.683333
89
0.763054
c81d92063a588af00e40208491cd8fe09e51d5dc
125,010
py
Python
Tests/Marketplace/marketplace_services.py
ryantoddtq/content
50027658da7189e37e9514fc03057d1c1bc3209f
[ "MIT" ]
null
null
null
Tests/Marketplace/marketplace_services.py
ryantoddtq/content
50027658da7189e37e9514fc03057d1c1bc3209f
[ "MIT" ]
30
2022-03-16T14:07:34.000Z
2022-03-31T17:37:51.000Z
Tests/Marketplace/marketplace_services.py
ryantoddtq/content
50027658da7189e37e9514fc03057d1c1bc3209f
[ "MIT" ]
1
2022-01-23T17:30:09.000Z
2022-01-23T17:30:09.000Z
import json import os import stat import subprocess import fnmatch import re import glob import git import sys import shutil import yaml import google.auth from google.cloud import storage import base64 import urllib.parse import logging import warnings from distutils.util import strtobool from distutils.version import...
47.191393
127
0.637245
eb6073b6183b4d10c5ab5309816702edf97aea8a
9,944
py
Python
django_extras/core/types.py
gem/django-extras
d692e87891fe4cb79726437d3185628c1a9e2f33
[ "BSD-3-Clause" ]
18
2015-08-22T08:59:48.000Z
2020-10-08T17:15:23.000Z
django_extras/core/types.py
gem/django-extras
d692e87891fe4cb79726437d3185628c1a9e2f33
[ "BSD-3-Clause" ]
4
2018-01-06T23:19:20.000Z
2020-10-09T02:22:45.000Z
django_extras/core/types.py
gem/django-extras
d692e87891fe4cb79726437d3185628c1a9e2f33
[ "BSD-3-Clause" ]
9
2015-06-15T17:28:03.000Z
2021-08-29T07:26:50.000Z
# -*- coding: UTF-8 -*- import decimal import math NO_CURRENCY_CODE = 'XXX' NO_CURRENCY_NUMBER = 999 class Currency(object): """ Definition of a currency. This object uses values from the ISO_4217 list of currency names, codes. See http://en.wikipedia.org/wiki/ISO_4217 """ __slots__ = ('cod...
28.411429
102
0.585579
947863bd1f98b3be13d9b40b9fc9f7016b29bd9e
590
py
Python
web3/middleware/names.py
bhardwajRahul/web3.py
efecadcdea64f9481fcace558a8ea103462e2923
[ "MIT" ]
3,041
2017-11-22T16:23:46.000Z
2022-03-31T15:19:39.000Z
web3/middleware/names.py
bhardwajRahul/web3.py
efecadcdea64f9481fcace558a8ea103462e2923
[ "MIT" ]
1,506
2017-11-22T15:44:34.000Z
2022-03-31T18:40:05.000Z
web3/middleware/names.py
bhardwajRahul/web3.py
efecadcdea64f9481fcace558a8ea103462e2923
[ "MIT" ]
1,095
2017-11-22T18:20:22.000Z
2022-03-31T13:05:31.000Z
from typing import ( TYPE_CHECKING, ) from web3._utils.normalizers import ( abi_ens_resolver, ) from web3._utils.rpc_abi import ( RPC_ABIS, abi_request_formatters, ) from web3.types import ( Middleware, ) from .formatting import ( construct_formatting_middleware, ) if TYPE_CHECKING: from ...
19.032258
72
0.718644
7aa9701ed612d34e4559747a664219168c5dfdbb
9,244
py
Python
osf/models/comment.py
shun-nakazawa/RDM-osf.io
cdf0101426e3a3637f76bd7f477897947f163366
[ "Apache-2.0" ]
null
null
null
osf/models/comment.py
shun-nakazawa/RDM-osf.io
cdf0101426e3a3637f76bd7f477897947f163366
[ "Apache-2.0" ]
8
2018-11-09T05:57:09.000Z
2019-07-25T10:27:55.000Z
osf/models/comment.py
shun-nakazawa/RDM-osf.io
cdf0101426e3a3637f76bd7f477897947f163366
[ "Apache-2.0" ]
null
null
null
import pytz from django.db import models from django.db.models import Q from django.utils import timezone from osf.models import Node from osf.models import NodeLog from osf.models.base import GuidMixin, Guid, BaseModel from osf.models.mixins import CommentableMixin from osf.models.spam import SpamMixin from osf.model...
36.828685
110
0.614777
679f7afc3d3cce5205bf6c703f764e8dec033330
3,371
py
Python
homeassistant/components/totalconnect/__init__.py
GuyKh/core
859bcb6eb4dbb9a8b87b6e4e888e074502db5df1
[ "Apache-2.0" ]
6
2020-07-07T21:51:24.000Z
2022-02-11T14:27:44.000Z
homeassistant/components/totalconnect/__init__.py
GuyKh/core
859bcb6eb4dbb9a8b87b6e4e888e074502db5df1
[ "Apache-2.0" ]
100
2020-06-17T22:22:41.000Z
2022-03-31T06:24:19.000Z
homeassistant/components/totalconnect/__init__.py
marecabo/home-assistant
e33774a61e7fcc88aff752dfa4618dd26a746872
[ "Apache-2.0" ]
8
2020-09-15T02:33:39.000Z
2021-09-25T20:25:30.000Z
"""The totalconnect component.""" from datetime import timedelta import logging from total_connect_client.client import TotalConnectClient from total_connect_client.exceptions import AuthenticationError, TotalConnectError from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_PASSW...
36.641304
88
0.738357
d0a2619cf97d010d61b063e7d4e71e7c0ad8a839
463
py
Python
wagtail_graphql/query_mixins/__init__.py
yatesrates/wagtail-graphql-api
8183c3c69340c9a48e2c352fc398e8bd255efa96
[ "BSD-3-Clause" ]
4
2019-07-19T21:17:02.000Z
2020-08-30T05:15:07.000Z
wagtail_graphql/query_mixins/__init__.py
yatesrates/wagtail-graphql-api
8183c3c69340c9a48e2c352fc398e8bd255efa96
[ "BSD-3-Clause" ]
1
2019-11-06T03:44:42.000Z
2019-11-06T03:44:42.000Z
wagtail_graphql/query_mixins/__init__.py
yatesrates/wagtail-graphql-api
8183c3c69340c9a48e2c352fc398e8bd255efa96
[ "BSD-3-Clause" ]
3
2019-07-19T21:17:06.000Z
2019-10-31T03:34:44.000Z
from wagtail_graphql.query_mixins.documents import DocumentQueryMixin from wagtail_graphql.query_mixins.images import ImageQueryMixin from wagtail_graphql.query_mixins.pages import PageQueryMixin from wagtail_graphql.query_mixins.sites import CurrentSiteMixin from wagtail_graphql.query_mixins.snippets import SnippetQue...
33.071429
69
0.831533
defdeb52055620fe83b000d216c69dd543c795c4
10,205
py
Python
keras_retinanet/preprocessing/fake_drones_generator_rand.py
alpha358/keras-retinanet
a6ba70cf07c2b5e84338b39833bab75cde526dc6
[ "Apache-2.0" ]
null
null
null
keras_retinanet/preprocessing/fake_drones_generator_rand.py
alpha358/keras-retinanet
a6ba70cf07c2b5e84338b39833bab75cde526dc6
[ "Apache-2.0" ]
null
null
null
keras_retinanet/preprocessing/fake_drones_generator_rand.py
alpha358/keras-retinanet
a6ba70cf07c2b5e84338b39833bab75cde526dc6
[ "Apache-2.0" ]
null
null
null
""" Copyright 2017-2018 yhenon (https://github.com/yhenon/) Copyright 2017-2018 Fizyr (https://fizyr.com) 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-...
31.496914
131
0.585399
03ef74a8cd587952637ecb2d0b89c785aa75b829
3,608
py
Python
assignment1/cs231n/gradient_check.py
Hamifthi/CS231.n-programming-assignment
6620de7b5cb2c2fa7db0cfe4f4801adfe77c3356
[ "MIT" ]
22
2019-07-15T08:26:31.000Z
2022-01-17T06:29:17.000Z
assignment1/cs231n/gradient_check.py
Hamifthi/CS231.n-programming-assignment
6620de7b5cb2c2fa7db0cfe4f4801adfe77c3356
[ "MIT" ]
115
2020-01-28T22:21:35.000Z
2022-03-11T23:42:46.000Z
assignment1/cs231n/gradient_check.py
Hamifthi/CS231.n-programming-assignment
6620de7b5cb2c2fa7db0cfe4f4801adfe77c3356
[ "MIT" ]
8
2019-07-17T09:13:11.000Z
2021-04-16T11:20:51.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 the gr...
28.409449
104
0.636364
141a131b4ff2ebbcde2d373224ea2167766560d3
1,017
py
Python
a10sdk/core/cgnv6/cgnv6_stateful_firewall_endpoint_independent_filtering.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
16
2015-05-20T07:26:30.000Z
2021-01-23T11:56:57.000Z
a10sdk/core/cgnv6/cgnv6_stateful_firewall_endpoint_independent_filtering.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
6
2015-03-24T22:07:11.000Z
2017-03-28T21:31:18.000Z
a10sdk/core/cgnv6/cgnv6_stateful_firewall_endpoint_independent_filtering.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
23
2015-03-29T15:43:01.000Z
2021-06-02T17:12:01.000Z
from a10sdk.common.A10BaseClass import A10BaseClass class EndpointIndependentFiltering(A10BaseClass): """Class Description:: Configure Endpoint-Independent-Filtering Behavior . Class endpoint-independent-filtering supports CRUD Operations and inherits from `common/A10BaseClass`. This class is th...
28.25
116
0.6765
44f9dc68b0202724f2ae043d81b38728e15c7ade
2,429
py
Python
src/waldur_openstack/openstack_tenant/tests/test_openstack_floating_ips.py
opennode/waldur-openstack
8a4170c09bdb8367493441016ef06081250fddb8
[ "MIT" ]
1
2017-11-07T19:53:57.000Z
2017-11-07T19:53:57.000Z
src/waldur_openstack/openstack_tenant/tests/test_openstack_floating_ips.py
opennode/waldur-openstack
8a4170c09bdb8367493441016ef06081250fddb8
[ "MIT" ]
null
null
null
src/waldur_openstack/openstack_tenant/tests/test_openstack_floating_ips.py
opennode/waldur-openstack
8a4170c09bdb8367493441016ef06081250fddb8
[ "MIT" ]
3
2017-09-24T03:11:19.000Z
2018-08-12T07:43:13.000Z
from rest_framework import test, status from waldur_openstack.openstack.tests import factories as openstack_factories from . import fixtures class OpenStackFloatingIPGetTest(test.APITransactionTestCase): def setUp(self): self.fixture = fixtures.OpenStackTenantFixture() self.client.force_authent...
47.627451
93
0.733224
ed0e25ce4b677f46ce53f1f5ecbe94571692721f
9,423
py
Python
RecSearch/Config/ConfigGenMeta.py
matthew-kimm/RecSearch
9bdff005e934e0cc238746f3929d340205d7429d
[ "MIT" ]
null
null
null
RecSearch/Config/ConfigGenMeta.py
matthew-kimm/RecSearch
9bdff005e934e0cc238746f3929d340205d7429d
[ "MIT" ]
null
null
null
RecSearch/Config/ConfigGenMeta.py
matthew-kimm/RecSearch
9bdff005e934e0cc238746f3929d340205d7429d
[ "MIT" ]
null
null
null
""" Finds DataWorkers/DataInterfaces from file directory structure and stores the configurations (see ./ConfigManagement.py for a description) in a central location. """ import glob import importlib from string import ascii_lowercase, ascii_uppercase from RecSearch.DataInterfaces.Factory import InterfaceFactory from ...
40.969565
116
0.633662
02b57e56374e8e2f88822e257a06243f94d47f15
266
py
Python
test/src/lib/idol/py/codegen/tests/basic/literal_three_o.py
lyric-com/idol
285005e9ddaa92b2284b7e9c28cd12f1e34746ec
[ "MIT" ]
null
null
null
test/src/lib/idol/py/codegen/tests/basic/literal_three_o.py
lyric-com/idol
285005e9ddaa92b2284b7e9c28cd12f1e34746ec
[ "MIT" ]
2
2020-03-24T18:03:10.000Z
2020-03-31T10:41:56.000Z
test/src/lib/idol/py/codegen/tests/basic/literal_three_o.py
lyric-com/idol
285005e9ddaa92b2284b7e9c28cd12f1e34746ec
[ "MIT" ]
null
null
null
# DO NOT EDIT # This file was generated by idol_py, any changes will be lost when idol_py is rerun again from ...__idol__ import Literal TestsBasicLiteralThreeO = float TestsBasicLiteralThreeO = Literal.of(3.0) locals()["TestsBasicLiteralThreeO"] = Literal.of(3.0)
33.25
90
0.781955
faee965181bcaed48d82c3ce40ecb271cf7557e7
7,947
py
Python
mint/run/core/s3select/csv.py
lioupayphone/minio
cbb7a0937669b58f82f2661db0c71db479656fbd
[ "Apache-2.0" ]
3
2020-06-27T03:42:27.000Z
2021-08-23T14:06:18.000Z
mint/run/core/s3select/csv.py
lioupayphone/minio
cbb7a0937669b58f82f2661db0c71db479656fbd
[ "Apache-2.0" ]
6
2018-02-16T17:20:29.000Z
2018-07-10T06:34:31.000Z
mint/run/core/s3select/csv.py
lioupayphone/minio
cbb7a0937669b58f82f2661db0c71db479656fbd
[ "Apache-2.0" ]
1
2019-02-20T09:02:20.000Z
2019-02-20T09:02:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # MinIO Python Library for Amazon S3 Compatible Cloud Storage, # (C) 2015-2020 MinIO, 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 # # ...
45.936416
129
0.493771
143815be6cd4767eea6b2f64c8f2d1d605851ad5
9,971
py
Python
sphinx_material/__init__.py
DEWETRON/sphinx-material
9af3dd6cf90096c5c63317c5a1c5c3e22c64024c
[ "MIT" ]
null
null
null
sphinx_material/__init__.py
DEWETRON/sphinx-material
9af3dd6cf90096c5c63317c5a1c5c3e22c64024c
[ "MIT" ]
null
null
null
sphinx_material/__init__.py
DEWETRON/sphinx-material
9af3dd6cf90096c5c63317c5a1c5c3e22c64024c
[ "MIT" ]
null
null
null
"""Sphinx Material theme.""" import hashlib import inspect import os import re import sys from multiprocessing import Manager from typing import List, Optional from xml.etree import ElementTree import bs4 import slugify from bs4 import BeautifulSoup from sphinx.util import console, logging from ._version import get_...
32.691803
84
0.631632
bdab03181ff09b275e04435025cccacb6ae1e367
4,140
py
Python
rustici_software_cloud_v2/models/setting_valid_value.py
RusticiSoftware/scormcloud-api-v2-client-python
04e2cce304a336caf492c3330c706840815c4abe
[ "Apache-2.0" ]
2
2020-07-21T10:33:39.000Z
2021-08-17T21:40:13.000Z
rustici_software_cloud_v2/models/setting_valid_value.py
RusticiSoftware/scormcloud-api-v2-client-python
04e2cce304a336caf492c3330c706840815c4abe
[ "Apache-2.0" ]
2
2020-10-22T20:58:19.000Z
2020-10-27T17:25:28.000Z
rustici_software_cloud_v2/models/setting_valid_value.py
RusticiSoftware/scormcloud-api-v2-client-python
04e2cce304a336caf492c3330c706840815c4abe
[ "Apache-2.0" ]
1
2020-10-15T17:11:15.000Z
2020-10-15T17:11:15.000Z
# coding: utf-8 """ SCORM Cloud Rest API REST API used for SCORM Cloud integrations. # noqa: E501 OpenAPI spec version: 2.0 Contact: systems@rusticisoftware.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class Settin...
29.15493
109
0.586473
5c2e8e9b825a314e2f8888755bb34d23d795bcac
2,340
py
Python
tests/option_merge_tests/test_value_at.py
delfick/delfick_project
4b49209639dd10cff6f48b4f5617cb7874481aaa
[ "MIT" ]
1
2020-12-01T21:11:24.000Z
2020-12-01T21:11:24.000Z
tests/option_merge_tests/test_value_at.py
delfick/delfick_project
4b49209639dd10cff6f48b4f5617cb7874481aaa
[ "MIT" ]
2
2019-11-18T05:28:19.000Z
2019-11-18T07:12:24.000Z
tests/option_merge_tests/test_value_at.py
delfick/delfick_project
4b49209639dd10cff6f48b4f5617cb7874481aaa
[ "MIT" ]
2
2019-11-18T05:35:39.000Z
2021-01-06T18:48:37.000Z
# coding: spec from delfick_project.option_merge import NotFound, MergedOptions from delfick_project.option_merge.value_at import value_at from delfick_project.option_merge.path import Path from delfick_project.errors_pytest import assertRaises from unittest import mock describe "value_at": it "returns as is i...
35.454545
94
0.579915
22082ec7159c2439cb80e018c5f80cc2678f71de
1,155
py
Python
run_logger/params.py
run-tracker/run-logger
0be4d4e144dd54f459d2d91245730c985fd4e62d
[ "MIT" ]
null
null
null
run_logger/params.py
run-tracker/run-logger
0be4d4e144dd54f459d2d91245730c985fd4e62d
[ "MIT" ]
null
null
null
run_logger/params.py
run-tracker/run-logger
0be4d4e144dd54f459d2d91245730c985fd4e62d
[ "MIT" ]
null
null
null
from enum import Enum, auto from typing import Any, Iterable, Mapping, Tuple import numpy as np ParamChoice = Tuple[str, Iterable] def param_generator(params: Any): if isinstance(params, Mapping): if tuple(params.keys()) == ("",): yield from param_generator(params[""]) return ...
31.216216
68
0.601732
9491c9cb8786b9c6f0ba52b907cdc4d8bd439a3b
1,092
py
Python
honorary-degrees-gender-breakdown/over_time.py
dailypenn/data
f946385724dceffb7771eefd6267a1cdec3a5ffc
[ "CC-BY-4.0", "MIT" ]
2
2019-05-11T04:28:51.000Z
2020-07-17T03:30:07.000Z
honorary-degrees-gender-breakdown/over_time.py
dailypenn/crime-data
35ddd3be4924fac00b851bd629c80712062806b5
[ "CC-BY-4.0", "MIT" ]
null
null
null
honorary-degrees-gender-breakdown/over_time.py
dailypenn/crime-data
35ddd3be4924fac00b851bd629c80712062806b5
[ "CC-BY-4.0", "MIT" ]
null
null
null
import csv, sys if len(sys.argv) < 2: sys.exit('Please enter a school name! Try Penn or Brown.') school = sys.argv[1] with open('data/genders_' + school + '_clean.csv', 'rb') as genders, open('data/over_time_' + school + '.csv', 'wb') as out: r = csv.reader(genders) w = csv.writer(out) header = True ...
27.3
124
0.56685
61c82c247737ecd5dcab15ae9864e4ded62b04b4
2,026
py
Python
hqca/opts/simplex/lagarias.py
damazz/HQCA
b013ba68f86e42350913c4abc2e1c91695a429b7
[ "Apache-2.0" ]
null
null
null
hqca/opts/simplex/lagarias.py
damazz/HQCA
b013ba68f86e42350913c4abc2e1c91695a429b7
[ "Apache-2.0" ]
null
null
null
hqca/opts/simplex/lagarias.py
damazz/HQCA
b013ba68f86e42350913c4abc2e1c91695a429b7
[ "Apache-2.0" ]
1
2021-08-10T00:20:09.000Z
2021-08-10T00:20:09.000Z
from hqca.opts.core import * from hqca.opts.simplex.neldermead import * import numpy as np from math import pi from random import random as r class NelderMeadLagarias(NelderMead): def _contract_inner(self): self.C_x = self.M_x+self.gamma*(self.R_x-self.M_x) self.C_f = self.f(self.C_x) self...
33.766667
71
0.54541
ff63da74701343ea3b515b85f908b44f87e171b7
34,708
py
Python
sympy/series/formal.py
staaker/sympy
946be880abad6186c74eb3a10d608bebbcaf0851
[ "BSD-3-Clause" ]
null
null
null
sympy/series/formal.py
staaker/sympy
946be880abad6186c74eb3a10d608bebbcaf0851
[ "BSD-3-Clause" ]
null
null
null
sympy/series/formal.py
staaker/sympy
946be880abad6186c74eb3a10d608bebbcaf0851
[ "BSD-3-Clause" ]
null
null
null
"""Formal Power Series""" from __future__ import print_function, division from collections import defaultdict from sympy import oo, zoo, nan from sympy.core.add import Add from sympy.core.compatibility import iterable from sympy.core.expr import Expr from sympy.core.function import Derivative, Function from sympy.co...
27.567911
80
0.529503
8f12d90f57425ad6faad9a648193db3fbcf666cd
6,176
py
Python
cogs/Gfycat.py
noahkw/botw-bot
8d8c9515a177c52270093fb64abf34d111535d16
[ "MIT" ]
1
2020-11-29T23:00:27.000Z
2020-11-29T23:00:27.000Z
cogs/Gfycat.py
noahkw/botw-bot
8d8c9515a177c52270093fb64abf34d111535d16
[ "MIT" ]
18
2020-08-05T11:59:31.000Z
2022-03-15T03:48:40.000Z
cogs/Gfycat.py
noahkw/botw-bot
8d8c9515a177c52270093fb64abf34d111535d16
[ "MIT" ]
null
null
null
import asyncio import logging import typing from io import BytesIO import discord import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from discord.ext import commands from discord.ext.menus import MenuPages from gfypy import AsyncGfypy from gfypy.const import GFYCAT_URL from cogs import CustomCo...
30.574257
86
0.583387
58efd8cc7e98864a4ff45265084c79486b9a5510
5,373
py
Python
AnalysisScriptv2.py
lucassett/research
34b4d6d0437296c8ad5a17ce1054c65ac7d4673a
[ "CC0-1.0" ]
null
null
null
AnalysisScriptv2.py
lucassett/research
34b4d6d0437296c8ad5a17ce1054c65ac7d4673a
[ "CC0-1.0" ]
null
null
null
AnalysisScriptv2.py
lucassett/research
34b4d6d0437296c8ad5a17ce1054c65ac7d4673a
[ "CC0-1.0" ]
null
null
null
import argparse, glob, math, os, re from operator import itemgetter # EXTRACT DATA FROM DIRECTORY OF SUBJECT DATA FILES parser = argparse.ArgumentParser("Parse a directory of files") # Command line control of file locations parser.add_argument('directory', type=str, help='File locations') # Command line control of a...
33.58125
138
0.445747
01d0a4561916d06de62661fed62dd3e92377fccc
4,184
py
Python
submissions/available/Johnson-CausalTesting/Holmes/fuzzers/Peach/Generators/unicode.py
brittjay0104/rose6icse
7b24743b7a805b9ed094b67e4a08bad7894f0e84
[ "Unlicense" ]
null
null
null
submissions/available/Johnson-CausalTesting/Holmes/fuzzers/Peach/Generators/unicode.py
brittjay0104/rose6icse
7b24743b7a805b9ed094b67e4a08bad7894f0e84
[ "Unlicense" ]
null
null
null
submissions/available/Johnson-CausalTesting/Holmes/fuzzers/Peach/Generators/unicode.py
brittjay0104/rose6icse
7b24743b7a805b9ed094b67e4a08bad7894f0e84
[ "Unlicense" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from Peach import generator from Peach.Generators.dictionary import * from Peach.Generators.static import * class GoodU...
29.885714
82
0.544216
fc99d27f1a7a0c86b712867e76754434514b32d6
25,069
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_06_01_preview/operations/_export_pipelines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_06_01_preview/operations/_export_pipelines_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2021_06_01_preview/operations/_export_pipelines_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 ...
44.369912
225
0.678727
bfd3e8081d1fca1c45c518f1ead85755ae847d76
2,219
py
Python
renku/core/commands/format/datasets.py
tcchrist/renku-python
47d2b5f36b74d0d3d435e3f78373e52361361139
[ "Apache-2.0" ]
null
null
null
renku/core/commands/format/datasets.py
tcchrist/renku-python
47d2b5f36b74d0d3d435e3f78373e52361361139
[ "Apache-2.0" ]
null
null
null
renku/core/commands/format/datasets.py
tcchrist/renku-python
47d2b5f36b74d0d3d435e3f78373e52361361139
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2020 - Swiss Data Science Center (SDSC) # A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and # Eidgenössische Technische Hochschule Zürich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compli...
32.632353
104
0.699414
a116bb052923507e3bcb00511fe4e3874c042d67
1,468
py
Python
pike/pike/proxy/urls.py
onap/multicloud-openstack
d0e41eb1b1a1cb79365836da728908ed26253db4
[ "CC-BY-4.0" ]
4
2018-10-24T15:20:14.000Z
2020-03-09T06:29:11.000Z
pike/pike/proxy/urls.py
onap/multicloud-openstack
d0e41eb1b1a1cb79365836da728908ed26253db4
[ "CC-BY-4.0" ]
null
null
null
pike/pike/proxy/urls.py
onap/multicloud-openstack
d0e41eb1b1a1cb79365836da728908ed26253db4
[ "CC-BY-4.0" ]
2
2020-08-03T13:45:44.000Z
2021-09-15T21:10:26.000Z
# Copyright (c) 2018 Intel Corporation. # # 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 ...
36.7
76
0.703678
e6c7abae9c7206bcbeb4f0f59ec5f10985543f9e
210
py
Python
examples/backup/commands/jobs/summary.py
fmenabe/python-clg-splitup
a3e159ca66f03ac619d44c6a0a077b13092fc809
[ "MIT" ]
1
2017-05-12T11:29:29.000Z
2017-05-12T11:29:29.000Z
examples/backup/commands/jobs/summary.py
fmenabe/python-clg-splitup
a3e159ca66f03ac619d44c6a0a077b13092fc809
[ "MIT" ]
1
2022-03-12T13:32:04.000Z
2022-03-12T13:33:14.000Z
examples/backup/commands/jobs/summary.py
fmenabe/python-clif
7d74b344337567f7951046406510a980afd7ee97
[ "MIT" ]
null
null
null
# coding: utf-8 """Command for listing a summary of jobs that have run the last hours.""" import clif.conf as conf import clif.logger as logger from pprint import pformat def main(args): conf.init(args)
19.090909
73
0.733333
ca01d3cd63b2d62356459ef39bfc7dde8c8f5a6b
1,560
py
Python
airflow/api_connexion/security.py
daemon-demon/airflow
6f96e81f0123b30750fb68ec496246023bf63f35
[ "Apache-2.0" ]
1
2020-09-15T02:32:55.000Z
2020-09-15T02:32:55.000Z
airflow/api_connexion/security.py
daemon-demon/airflow
6f96e81f0123b30750fb68ec496246023bf63f35
[ "Apache-2.0" ]
20
2021-01-23T12:33:08.000Z
2021-12-07T22:30:37.000Z
airflow/api_connexion/security.py
daemon-demon/airflow
6f96e81f0123b30750fb68ec496246023bf63f35
[ "Apache-2.0" ]
1
2020-09-10T09:51:46.000Z
2020-09-10T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.04878
79
0.746154
8d448bd2c158d17737095dd507ecd22ab44984d3
9,186
py
Python
xt/algorithm/dqn/dqn_infoflw_alg.py
TianQi-777/xingtian
9b1678ad6ff12f00c2826a7ec7f42d5350b83b31
[ "MIT" ]
240
2020-08-15T15:11:49.000Z
2022-03-28T07:26:23.000Z
xt/algorithm/dqn/dqn_infoflw_alg.py
TianQi-777/xingtian
9b1678ad6ff12f00c2826a7ec7f42d5350b83b31
[ "MIT" ]
20
2020-08-29T06:18:21.000Z
2022-03-21T04:35:57.000Z
xt/algorithm/dqn/dqn_infoflw_alg.py
TianQi-777/xingtian
9b1678ad6ff12f00c2826a7ec7f42d5350b83b31
[ "MIT" ]
69
2020-08-15T15:41:53.000Z
2022-03-16T08:27:47.000Z
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # 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 us...
37.802469
90
0.626497
971b02516267c9cee0d18f4947622685e3025b3b
7,315
py
Python
BSSN/ADM_Exact_Spherical_or_Cartesian_to_BSSNCurvilinear.py
leowerneck/NRPyIGM
f483d6123424fb3e6860dfac4325dd232b223005
[ "BSD-2-Clause" ]
null
null
null
BSSN/ADM_Exact_Spherical_or_Cartesian_to_BSSNCurvilinear.py
leowerneck/NRPyIGM
f483d6123424fb3e6860dfac4325dd232b223005
[ "BSD-2-Clause" ]
null
null
null
BSSN/ADM_Exact_Spherical_or_Cartesian_to_BSSNCurvilinear.py
leowerneck/NRPyIGM
f483d6123424fb3e6860dfac4325dd232b223005
[ "BSD-2-Clause" ]
2
2019-11-14T03:31:18.000Z
2019-12-12T13:42:52.000Z
# This module performs the conversion between ADM # spacetime variables in Spherical or Cartesian coordinates # given as *exact* SymPy expressions (i.e., direct functions # of r,th,ph or x,y,z), to rescaled BSSN-in-curvilinear # coordinate quantities, as defined in BSSN_RHSs.py # Author: Zachariah B. Etienne # ...
53.007246
121
0.679563
9fee8948f5f90396830975d1969bf5afcf510e49
3,545
py
Python
run_video_face_detect_onnx.py
ajinkya933/Ultra-Light-Fast-Generic-Face-Detector-1MB
6567fa2b3792de6627a8640a265e651bea407867
[ "MIT" ]
6
2019-12-06T10:49:43.000Z
2021-01-27T02:45:10.000Z
run_video_face_detect_onnx.py
vivounicorn/Ultra-Light-Fast-Generic-Face-Detector-1MB
752f722dbf6b7dd19834df1f436baa7222c8af8b
[ "MIT" ]
null
null
null
run_video_face_detect_onnx.py
vivounicorn/Ultra-Light-Fast-Generic-Face-Detector-1MB
752f722dbf6b7dd19834df1f436baa7222c8af8b
[ "MIT" ]
1
2020-04-04T16:06:19.000Z
2020-04-04T16:06:19.000Z
""" This code uses the onnx model to detect faces from live video or cameras. """ import time import cv2 import numpy as np import onnx import vision.utils.box_utils_numpy as box_utils from caffe2.python.onnx import backend # onnx runtime import onnxruntime as ort def predict(width, height, confidences, boxes, prob...
35.09901
107
0.629337
432d2078b1b3d46cbd0cd64715810d71a9166995
229
py
Python
src/boip/__init__.py
InTack2/boip
99a2c1cf7116dc4a28453d44ac9768446241174d
[ "MIT" ]
null
null
null
src/boip/__init__.py
InTack2/boip
99a2c1cf7116dc4a28453d44ac9768446241174d
[ "MIT" ]
1
2020-09-28T15:26:02.000Z
2020-09-28T15:26:02.000Z
src/boip/__init__.py
InTack2/boip
99a2c1cf7116dc4a28453d44ac9768446241174d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import from __future__ import generators from __future__ import division __version__ = '0.0.3'
28.625
39
0.816594
a238885462ffd1fda5c41e05f618671221304432
22,678
py
Python
keystone/assignment/backends/ldap.py
maestro-hybrid-cloud/keystone
a597a86b854215835a4d54885daeb161d7b0efb8
[ "Apache-2.0" ]
null
null
null
keystone/assignment/backends/ldap.py
maestro-hybrid-cloud/keystone
a597a86b854215835a4d54885daeb161d7b0efb8
[ "Apache-2.0" ]
null
null
null
keystone/assignment/backends/ldap.py
maestro-hybrid-cloud/keystone
a597a86b854215835a4d54885daeb161d7b0efb8
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2013 OpenStack Foundation # # 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 ...
42.468165
79
0.590308
8673a5e58a82bbec71104b3f56593a55d25d0e5e
5,448
py
Python
postprocessing/save_discriminator.py
LeHenschel/DeepFCD
494c92dfd80b55aa2369095853bfea84b770acdc
[ "MIT" ]
3
2020-03-24T11:16:50.000Z
2022-01-21T14:50:41.000Z
postprocessing/save_discriminator.py
LeHenschel/DeepFCD
494c92dfd80b55aa2369095853bfea84b770acdc
[ "MIT" ]
null
null
null
postprocessing/save_discriminator.py
LeHenschel/DeepFCD
494c92dfd80b55aa2369095853bfea84b770acdc
[ "MIT" ]
3
2022-01-07T10:53:45.000Z
2022-03-02T15:31:29.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Apr 22 15:51:52 2020 Script to save trained generator as tf.keras.model. Pre-trained ckpt's not provided due to file size. If you do not want to train your own network, ignore this script and just use the compiled models provided using the create_synthe...
32.622754
92
0.640602
9c3b8c19d6586a678952cebc025dba5ddcc9d38b
2,335
py
Python
crosshair/test_util.py
saulshanabrook/CrossHair
e61f1adfb3c1bb21c4c932656e1d5ca2b3df0c93
[ "MIT" ]
null
null
null
crosshair/test_util.py
saulshanabrook/CrossHair
e61f1adfb3c1bb21c4c932656e1d5ca2b3df0c93
[ "MIT" ]
null
null
null
crosshair/test_util.py
saulshanabrook/CrossHair
e61f1adfb3c1bb21c4c932656e1d5ca2b3df0c93
[ "MIT" ]
null
null
null
from dataclasses import replace import types from crosshair.core import analyze_function from crosshair.core import AnalysisMessage from crosshair.core import AnalysisOptions from crosshair.core import MessageType from typing import * ComparableLists = Tuple[List, List] def check_fail(fn: Callable, options: Optional...
39.576271
99
0.689507
0f36f62b04e727cd9b8a4916923340f3ba9e1601
55,436
py
Python
unicom-task/tenscf_rely/Cryptodome/SelfTest/PublicKey/test_import_ECC.py
Charles-Hello/myScripts
07f2d0fe51ab3581d812de64c57110bcad6219cd
[ "MIT" ]
3
2021-12-06T15:35:58.000Z
2021-12-06T15:57:18.000Z
unicom-task/tenscf_rely/Cryptodome/SelfTest/PublicKey/test_import_ECC.py
Charles-Hello/myScripts
07f2d0fe51ab3581d812de64c57110bcad6219cd
[ "MIT" ]
null
null
null
unicom-task/tenscf_rely/Cryptodome/SelfTest/PublicKey/test_import_ECC.py
Charles-Hello/myScripts
07f2d0fe51ab3581d812de64c57110bcad6219cd
[ "MIT" ]
2
2022-02-09T19:03:34.000Z
2022-03-27T03:34:19.000Z
# =================================================================== # # Copyright (c) 2015, Legrandin <helderijs@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributio...
38.577592
103
0.646132
560b6904fb7ed5747f963058a13793d7d42ed75f
1,568
py
Python
bot/move_arms.py
jluckenbaugh2/Deepcut
68b739578b1ca8d7e453eb02a2cebdd09aabb227
[ "Apache-2.0" ]
1
2021-11-18T22:36:55.000Z
2021-11-18T22:36:55.000Z
bot/move_arms.py
jluckenbaugh2/Deepcut
68b739578b1ca8d7e453eb02a2cebdd09aabb227
[ "Apache-2.0" ]
11
2020-10-20T07:04:03.000Z
2021-03-16T23:02:33.000Z
bot/move_arms.py
jluckenbaugh2/Deepcut
68b739578b1ca8d7e453eb02a2cebdd09aabb227
[ "Apache-2.0" ]
1
2020-10-29T18:47:05.000Z
2020-10-29T18:47:05.000Z
# Simple demo of of the PCA9685 PWM servo/LED controller library. # This will move channel 0 from min to max position repeatedly. # Author: Tony DiCola # License: Public Domain from __future__ import division import time import numpy as np import sys import Adafruit_PCA9685 if __name__ == "__main__": dur = float(...
31.36
81
0.661352
9bbec49d80db0d18e5a186d867b45574c920c46e
6,134
py
Python
monet/plots/taylordiagram.py
barronh/MONET
acd72487c7aeff66d89f87fa663a9c96fa9b7bb0
[ "MIT" ]
1
2019-07-09T19:50:59.000Z
2019-07-09T19:50:59.000Z
monet/plots/taylordiagram.py
barronh/MONET
acd72487c7aeff66d89f87fa663a9c96fa9b7bb0
[ "MIT" ]
null
null
null
monet/plots/taylordiagram.py
barronh/MONET
acd72487c7aeff66d89f87fa663a9c96fa9b7bb0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright: This document has been placed in the public domain. """ Taylor diagram (Taylor, 2001) test implementation. http://www-pcmdi.llnl.gov/about/staff/Taylor/CV/Taylor_diagram_primer.htm """ from __future__ import division from __future__ import print_function from builtins import zip fro...
36.082353
90
0.594392
ac82f58804ced11d52d74ef3741b2562bf04424e
1,769
py
Python
scripts/hash.py
liuxinren456852/polylidar
0ef2731241f522f502d566e913835fd64521294a
[ "MIT" ]
1
2021-05-24T16:34:59.000Z
2021-05-24T16:34:59.000Z
scripts/hash.py
liuxinren456852/polylidar
0ef2731241f522f502d566e913835fd64521294a
[ "MIT" ]
null
null
null
scripts/hash.py
liuxinren456852/polylidar
0ef2731241f522f502d566e913835fd64521294a
[ "MIT" ]
null
null
null
import math import numpy as np from polylidar import extractPlanesAndPolygons, extractPolygonsAndTimings import pandas as pd import matplotlib.pyplot as plt import seaborn as sns def gen_points(xmin=0, xmax=10, xstep=1, ymin=0, ymax=10, ystep=1): X, Y = np.mgrid[xmin:xmax:xstep, ymin:ymax:ystep] positions = np...
36.854167
115
0.661391
7dcb9b40934475b9e8b90c97f7e05ec128f8c74f
1,199
py
Python
pytest_cases/tests/pytest_extension/fixtures/test_hook.py
AnesBenmerzoug/python-pytest-cases
8febdeeb52f6dcfcb54aa1e8e7d966427d030ad5
[ "BSD-3-Clause" ]
null
null
null
pytest_cases/tests/pytest_extension/fixtures/test_hook.py
AnesBenmerzoug/python-pytest-cases
8febdeeb52f6dcfcb54aa1e8e7d966427d030ad5
[ "BSD-3-Clause" ]
null
null
null
pytest_cases/tests/pytest_extension/fixtures/test_hook.py
AnesBenmerzoug/python-pytest-cases
8febdeeb52f6dcfcb54aa1e8e7d966427d030ad5
[ "BSD-3-Clause" ]
null
null
null
# Authors: Sylvain MARIE <sylvain.marie@se.com> # + All contributors to <https://github.com/smarie/python-pytest-cases> # # License: 3-clause BSD, <https://github.com/smarie/python-pytest-cases/blob/master/LICENSE> from pytest_cases import unpack_fixture, fixture_plus, param_fixture, param_fixtures, fixture_un...
25.510638
120
0.655546
a6f09be1cd211a448e48b82e409eb77bca4777e5
582
py
Python
options/TestOptions.py
taivu1998/GANime
a1d1569a1797f3fc50159475de2e3d47697abfed
[ "MIT" ]
24
2020-03-20T05:43:16.000Z
2022-03-23T22:09:35.000Z
options/TestOptions.py
bobyang9/GANime
c4e98274cc8ecddda0d6273c5d2670a8d356648f
[ "MIT" ]
null
null
null
options/TestOptions.py
bobyang9/GANime
c4e98274cc8ecddda0d6273c5d2670a8d356648f
[ "MIT" ]
2
2020-05-24T23:07:08.000Z
2021-04-02T11:33:35.000Z
''' This program implements a class for model testing command line options. ''' from __future__ import absolute_import, division, print_function, unicode_literals import os, sys import argparse from BaseOptions import BaseOptions class TestOptions(BaseOptions): ''' A class for model testing command line optio...
23.28
82
0.697595
f4da7f486f6c20549ea44cc3ade308ab7a022eb3
1,913
py
Python
transcrypt/development/automated_tests/transcrypt/control_structures/__init__.py
bitwiseman/Transcrypt
c77fb8064f0466a33469df9a2f38a4fb9c6eaa51
[ "Apache-2.0" ]
1
2021-08-23T21:06:32.000Z
2021-08-23T21:06:32.000Z
transcrypt/development/automated_tests/transcrypt/control_structures/__init__.py
bitwiseman/Transcrypt
c77fb8064f0466a33469df9a2f38a4fb9c6eaa51
[ "Apache-2.0" ]
null
null
null
transcrypt/development/automated_tests/transcrypt/control_structures/__init__.py
bitwiseman/Transcrypt
c77fb8064f0466a33469df9a2f38a4fb9c6eaa51
[ "Apache-2.0" ]
null
null
null
def run (autoTester): for index in range (10): autoTester.check (index) for index in range (8, 16): autoTester.check (index) for index in range (8, 16, 2): autoTester.check (index) for index in range (10, 0, -1): autoTester.check (index) for index in range (16, 8, -2): autoTeste...
26.569444
72
0.584945
7bef5bf501a8151e607a7d268fabc347be742c9e
7,835
py
Python
tools/install_venv_common.py
cuiwow/quantum
ce11b62046a0501e9fcd8442524d3c151d315dfb
[ "Apache-2.0" ]
1
2019-04-11T10:27:47.000Z
2019-04-11T10:27:47.000Z
tools/install_venv_common.py
cuiwow/quantum
ce11b62046a0501e9fcd8442524d3c151d315dfb
[ "Apache-2.0" ]
null
null
null
tools/install_venv_common.py
cuiwow/quantum
ce11b62046a0501e9fcd8442524d3c151d315dfb
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 OpenStack, LLC # Copyright 2013 IBM Corp. # # 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....
34.668142
79
0.593108
015efce5668935ba49a6d66e0ae0a0402fb1d0df
2,313
py
Python
doc/conf.py
stfc/pre-commit-hooks
0800a0faadd3116688e0fd506f3d627cdcc904db
[ "MIT" ]
3
2022-01-14T08:58:31.000Z
2022-03-29T19:28:18.000Z
doc/conf.py
stfc/pre-commit-hooks
0800a0faadd3116688e0fd506f3d627cdcc904db
[ "MIT" ]
1
2022-03-15T17:01:56.000Z
2022-03-26T13:47:20.000Z
doc/conf.py
stfc/pre-commit-hooks
0800a0faadd3116688e0fd506f3d627cdcc904db
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- import o...
35.045455
78
0.679637
8854f94cda707c1ac8905dec729f8f799121d059
5,235
py
Python
isochrones/priors.py
joelczinn/isochrones
4927dc4634e5653852ee5ef1e9aa10c6e03bbed9
[ "MIT" ]
null
null
null
isochrones/priors.py
joelczinn/isochrones
4927dc4634e5653852ee5ef1e9aa10c6e03bbed9
[ "MIT" ]
null
null
null
isochrones/priors.py
joelczinn/isochrones
4927dc4634e5653852ee5ef1e9aa10c6e03bbed9
[ "MIT" ]
1
2018-11-15T16:02:37.000Z
2018-11-15T16:02:37.000Z
from __future__ import print_function, division import logging from .config import on_rtd if not on_rtd: import numpy as np from scipy.stats import uniform from scipy.integrate import quad import matplotlib.pyplot as plt class Prior(object): def __call__(self, x, **kwargs): return self...
30.086207
98
0.542884
103cdfa157ee2add110878ff4d9884bf802c220a
2,222
py
Python
tests/test_food.py
jerjou/recipe-scrapers
8a7ce26259c35553b66d46a91f2768a451a25865
[ "MIT" ]
1
2020-08-18T16:45:17.000Z
2020-08-18T16:45:17.000Z
tests/test_food.py
jerjou/recipe-scrapers
8a7ce26259c35553b66d46a91f2768a451a25865
[ "MIT" ]
null
null
null
tests/test_food.py
jerjou/recipe-scrapers
8a7ce26259c35553b66d46a91f2768a451a25865
[ "MIT" ]
null
null
null
from tests import ScraperTest from recipe_scrapers.food import Food class TestFoodScraper(ScraperTest): scraper_class = Food def test_host(self): self.assertEqual( 'food.com', self.harvester_class.host() ) def test_title(self): self.assertEqual( ...
35.83871
585
0.605311
ae651deb493301c42e8046ec6cd4ba6658d3dde9
1,881
py
Python
src/peering/azext_peering/vendored_sdks/peering/operations/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/peering/azext_peering/vendored_sdks/peering/operations/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/peering/azext_peering/vendored_sdks/peering/operations/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.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 ...
47.025
94
0.780968
eb731f78b9ed975ba4f8c853c0e6adf57e3b5d08
9,422
py
Python
dspy/bstree.py
ademyanchuk/dspy
923efb32df75cac452d8be5f93f0c09f3eb68b6e
[ "Apache-2.0" ]
null
null
null
dspy/bstree.py
ademyanchuk/dspy
923efb32df75cac452d8be5f93f0c09f3eb68b6e
[ "Apache-2.0" ]
null
null
null
dspy/bstree.py
ademyanchuk/dspy
923efb32df75cac452d8be5f93f0c09f3eb68b6e
[ "Apache-2.0" ]
null
null
null
"""Binary Search Tree Implementation""" import queue from typing import Any, List, Optional # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class BSTree: def __init__(self, valu...
28.90184
110
0.543303
e79450be598640f8ae60908a6da35914d8b90fe4
132
py
Python
startmicro/script/start_micro.py
munisisazade/startmicro
4c74f41a31a6bef9aaa09586628e8427a7d68851
[ "MIT" ]
1
2019-09-27T10:23:24.000Z
2019-09-27T10:23:24.000Z
startmicro/script/start_micro.py
munisisazade/startmicro
4c74f41a31a6bef9aaa09586628e8427a7d68851
[ "MIT" ]
1
2020-09-01T06:50:19.000Z
2020-09-01T06:50:19.000Z
startmicro/script/start_micro.py
munisisazade/startmicro
4c74f41a31a6bef9aaa09586628e8427a7d68851
[ "MIT" ]
null
null
null
#!/usr/bin/env python from startmicro.core import management if __name__ == "__main__": management.execute_from_command_line()
22
42
0.772727
030ca70e0485a4e8213180dea85a74b8184927a4
4,711
py
Python
fable/fable_sources/libtbx/auto_build/create_windows_exe.py
hickerson/bbn
17ef63ad1717553ab2abb50592f8de79228c8523
[ "MIT" ]
4
2016-09-30T15:03:39.000Z
2021-03-25T13:27:08.000Z
fable/fable_sources/libtbx/auto_build/create_windows_exe.py
hickerson/bbn
17ef63ad1717553ab2abb50592f8de79228c8523
[ "MIT" ]
1
2018-04-18T14:41:18.000Z
2018-04-20T19:33:52.000Z
fable/fable_sources/libtbx/auto_build/create_windows_exe.py
hickerson/bbn
17ef63ad1717553ab2abb50592f8de79228c8523
[ "MIT" ]
3
2016-04-19T18:20:30.000Z
2019-04-03T14:54:29.000Z
# XXX like the Mac equivalent, this module is designed to be run independently # of the rest of CCTBX if necessary, although it will use installed resources # if found from __future__ import division try : import libtbx.load_env libtbx_env = libtbx.env except ImportError, e : libtbx_env = None import optparse i...
34.137681
142
0.669285
bfae3b9bb09fd39f60ceaeaf046ee0d6c2b712a9
6,285
py
Python
03-stream-ingestion/02-stu-structured-streaming/unsolved/structured-streaming.py
cuusoo-labs/databricks-bootcamp
5adcf006ea956796adae18a39726d4a041812f3d
[ "MIT" ]
5
2021-11-24T16:11:50.000Z
2022-03-02T14:22:32.000Z
03-stream-ingestion/02-stu-structured-streaming/unsolved/structured-streaming.py
cuusoo-labs/databricks-bootcamp
5adcf006ea956796adae18a39726d4a041812f3d
[ "MIT" ]
2
2021-11-22T07:35:59.000Z
2021-11-25T09:38:10.000Z
03-stream-ingestion/02-stu-structured-streaming/unsolved/structured-streaming.py
cuusoo-labs/databricks-bootcamp
5adcf006ea956796adae18a39726d4a041812f3d
[ "MIT" ]
1
2021-11-25T04:29:34.000Z
2021-11-25T04:29:34.000Z
# Databricks notebook source # MAGIC %md # MAGIC ## Part 1: Set up the environment # MAGIC # MAGIC Run the cells below up to part 2 to setup files used for this exercise. # COMMAND ---------- setup_responses = dbutils.notebook.run("../../../includes/Setup-Streaming-GDrive", 0).split() checkpoint_stream1_path = se...
26.974249
336
0.707399
720bd24cc22bc91528013f3e2882fe495cefc4ce
2,149
py
Python
conftest.py
Ensembl/tark-dc
f97f6b9263dadbcb153e9a60907371c7bc9e737c
[ "Apache-2.0" ]
null
null
null
conftest.py
Ensembl/tark-dc
f97f6b9263dadbcb153e9a60907371c7bc9e737c
[ "Apache-2.0" ]
null
null
null
conftest.py
Ensembl/tark-dc
f97f6b9263dadbcb153e9a60907371c7bc9e737c
[ "Apache-2.0" ]
null
null
null
""" .. See the NOTICE file distributed with this work for additional information regarding copyright ownership. 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....
27.202532
79
0.680316
8b6636ffbf8c737cedb00d1b4467c394d568fa51
1,884
py
Python
.history/my_classes/ScopesClosuresAndDecorators/nonLocalScopes_20210710221934.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/ScopesClosuresAndDecorators/nonLocalScopes_20210710221934.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/ScopesClosuresAndDecorators/nonLocalScopes_20210710221934.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
""" NonLocal Scopes Inner Functions We can define functions from inside another function: """ def outer_func(): # some code # this is an example of a nested function def inner_func(): # some code inner_func() outer_func() """ Both functions have access to the global a...
18.84
101
0.680467
1caadef642722d4e446f9e48fe516b5cee9f29cd
989
py
Python
examples/plot_dis_example.py
gmrandazzo/scikit-optobj
2abe404073fb5e12c82a0d9071149c49d4e1ac39
[ "BSD-3-Clause" ]
null
null
null
examples/plot_dis_example.py
gmrandazzo/scikit-optobj
2abe404073fb5e12c82a0d9071149c49d4e1ac39
[ "BSD-3-Clause" ]
null
null
null
examples/plot_dis_example.py
gmrandazzo/scikit-optobj
2abe404073fb5e12c82a0d9071149c49d4e1ac39
[ "BSD-3-Clause" ]
null
null
null
#/usr/bin/env python """ Example of Most Descriptive compound selection. Code Source: Giuseppe Marco Randazzo License: BSD 3 clausole """ import os import sys path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) if not path in sys.path: sys.path.insert(1, path) del path import numpy as np imp...
17.660714
69
0.668352
71e17515b3156fd359c3ac29bd66d6fc33bfede8
2,773
py
Python
mains/faster_rcnnNoC_tester.py
mmr12/DeepLearning18
3e683c570ea8f5e224767a41a0e152267cfd08e7
[ "Apache-2.0" ]
null
null
null
mains/faster_rcnnNoC_tester.py
mmr12/DeepLearning18
3e683c570ea8f5e224767a41a0e152267cfd08e7
[ "Apache-2.0" ]
5
2018-12-21T09:58:40.000Z
2019-01-19T19:34:40.000Z
mains/faster_rcnnNoC_tester.py
mmr12/DeepLearning18
3e683c570ea8f5e224767a41a0e152267cfd08e7
[ "Apache-2.0" ]
1
2019-02-28T09:18:50.000Z
2019-02-28T09:18:50.000Z
import tensorflow as tf import os import sys import json import numpy as np # To import from sibling directory ../utils sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../") from data_loader.faster_rcnn_test_loader import DataGenerator from models.faster_rcnn_noC_model import FasterRcnnModelNoC from uti...
33.409639
111
0.658132
8200d7b2ab0fe816b25c35488a048b06c0fb72f4
974
py
Python
rosters/tests/test_models.py
Drazerr/roster-wizard
600dc5a196dc6c11e879f3cec86b2bbee6e0bf36
[ "MIT" ]
null
null
null
rosters/tests/test_models.py
Drazerr/roster-wizard
600dc5a196dc6c11e879f3cec86b2bbee6e0bf36
[ "MIT" ]
null
null
null
rosters/tests/test_models.py
Drazerr/roster-wizard
600dc5a196dc6c11e879f3cec86b2bbee6e0bf36
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import reverse from django.contrib.auth import get_user_model from ..models import Day class ModelTests(TestCase): def setUp(self): self.user = get_user_model().objects.create_user( username='temporary', password='temporary', ...
30.4375
69
0.660164
f29f93f74ffa1066e615a0af2264e0975d10349f
19,294
py
Python
cinder/api/contrib/quotas.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
11
2015-08-25T13:11:18.000Z
2020-10-15T11:29:20.000Z
cinder/api/contrib/quotas.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
null
null
null
cinder/api/contrib/quotas.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
8
2015-08-12T09:47:05.000Z
2020-04-21T01:30:58.000Z
# 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.apache.org/licenses/LICENSE-2.0 # # Unless requ...
43.750567
79
0.618845
d5b45825e80765f52a0efde6ea0f411eee9b3456
807
py
Python
main.py
aidan-fitz/PennApps17-backend
0e402f79263a4034e4e1bba4641a00a90111e8e8
[ "MIT" ]
null
null
null
main.py
aidan-fitz/PennApps17-backend
0e402f79263a4034e4e1bba4641a00a90111e8e8
[ "MIT" ]
null
null
null
main.py
aidan-fitz/PennApps17-backend
0e402f79263a4034e4e1bba4641a00a90111e8e8
[ "MIT" ]
null
null
null
from flask import Flask, jsonify from models import get_user, User from database import db_session app = Flask(__name__) @app.route("/") def hello(): return "Hello World!" @app.route("/user/<username>", methods=['GET']) def view_status(username): user = get_user(username) return jsonify(user.to_json()) ...
20.692308
47
0.671623
d005533232b257578afc4d502ee0d9ab75f938f4
8,668
py
Python
pymatgen/io/cp2k/utils.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
null
null
null
pymatgen/io/cp2k/utils.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
null
null
null
pymatgen/io/cp2k/utils.py
exenGT/pymatgen
a8ffb820ab8fc3f60251099e38c8888f45eae618
[ "MIT" ]
null
null
null
""" Utility functions for assisting with cp2k IO """ import os import re from pathlib import Path from ruamel.yaml import YAML import numpy as np from monty.io import zopen from monty.serialization import loadfn from pymatgen.core import SETTINGS MODULE_DIR = Path(__file__).resolve().parent def _postprocessor(s):...
34.672
112
0.58814
ee8962565946d2f66c23e307ce6167e409e51967
353
py
Python
UI/DeviceItem.py
mjbogusz/BTSerial
141d37caaab860ba420c9584a2844c63bce401e3
[ "MIT" ]
null
null
null
UI/DeviceItem.py
mjbogusz/BTSerial
141d37caaab860ba420c9584a2844c63bce401e3
[ "MIT" ]
null
null
null
UI/DeviceItem.py
mjbogusz/BTSerial
141d37caaab860ba420c9584a2844c63bce401e3
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QListWidgetItem class DeviceItem(QListWidgetItem): deviceAddress = None deviceName = None def __init__(self, parent = None, address = None, name = None): QListWidgetItem.__init__(self) self.deviceAddress = address self.deviceName = name self.setText("%s [%s]" % (str(self.device...
27.153846
75
0.745042
eccdf8165a4df6ae8a800774f286e17482b3ab80
6,452
py
Python
rosidl_generator_objc/rosidl_generator_objc/__init__.py
esteve/ros2_objc
d5dac8ab069075859a5c1a25136bbfd4548d09c8
[ "Apache-2.0" ]
18
2017-04-20T18:58:05.000Z
2021-05-30T14:47:52.000Z
libs/python3.7/site-packages/rosidl_generator_objc/__init__.py
mintforpeople/ros2-remote-control-pod
6bcbe813c250084815c14db3fc49496822effe81
[ "Apache-2.0" ]
8
2017-10-22T14:40:22.000Z
2022-01-03T19:49:23.000Z
libs/python3.7/site-packages/rosidl_generator_objc/__init__.py
mintforpeople/ros2-remote-control-pod
6bcbe813c250084815c14db3fc49496822effe81
[ "Apache-2.0" ]
7
2018-02-01T22:01:22.000Z
2022-02-18T07:57:36.000Z
# Copyright 2016 Esteve Fernandez <esteve@apache.org> # # 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 ...
34.502674
98
0.649566
9080fff4007a44065ddc56a2f54697e557d744b4
9,489
py
Python
pretrained-model/tts/fastpitch/fastpitch-haqkiem.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
111
2020-08-31T04:58:54.000Z
2022-03-29T15:44:18.000Z
pretrained-model/tts/fastpitch/fastpitch-haqkiem.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
14
2020-12-16T07:27:22.000Z
2022-03-15T17:39:01.000Z
pretrained-model/tts/fastpitch/fastpitch-haqkiem.py
ishine/malaya-speech
fd34afc7107af1656dff4b3201fa51dda54fde18
[ "MIT" ]
29
2021-02-09T08:57:15.000Z
2022-03-12T14:09:19.000Z
import os os.environ['CUDA_VISIBLE_DEVICES'] = '3' import tensorflow as tf import numpy as np from glob import glob from itertools import cycle import tensorflow as tf import malaya_speech import malaya_speech.train import malaya_speech.config import malaya_speech.train as train from malaya_speech.train.model import ...
30.219745
79
0.582042
fe37df3973eff69714606cd1050c1ce52e4e592b
27,403
py
Python
Packs/ANYRUN/Integrations/ANYRUN/ANYRUN.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ANYRUN/Integrations/ANYRUN/ANYRUN.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ANYRUN/Integrations/ANYRUN/ANYRUN.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * from typing import Optional ''' IMPORTS ''' import re import os import json import requests from base64 import b64encode ''' GLOBAL VARS / INSTANCE CONFIGURATION ''' PARAMS = demisto.params() USERNAME = PARAMS.get('c...
29.560949
106
0.603985
692dcb6c1e4ec12731399449ae3a7f28d7664c89
1,047
py
Python
manage.py
morwen1/talana_prueba
8ab206bac7cd50e3f85914978fb9e7701c51a008
[ "MIT" ]
null
null
null
manage.py
morwen1/talana_prueba
8ab206bac7cd50e3f85914978fb9e7701c51a008
[ "MIT" ]
2
2021-05-12T06:21:45.000Z
2022-03-02T02:16:23.000Z
manage.py
morwen1/talana_prueba
8ab206bac7cd50e3f85914978fb9e7701c51a008
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys from pathlib import Path if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some...
32.71875
77
0.660936
4225a75e0fe56217fa48e451634fc30479610494
1,855
py
Python
examples/so_gaal_example.py
GBR-613/pyod
bfbb297ac067c47488bcade77669c99de5a4838a
[ "BSD-2-Clause" ]
5,126
2018-11-09T06:05:38.000Z
2022-03-31T14:25:14.000Z
examples/so_gaal_example.py
durgeshsamariya/pyod
dfafc57f74dc3d49d0166f21ab2ddb97e3d1d898
[ "BSD-2-Clause" ]
325
2018-11-14T20:02:39.000Z
2022-03-30T22:49:38.000Z
examples/so_gaal_example.py
durgeshsamariya/pyod
dfafc57f74dc3d49d0166f21ab2ddb97e3d1d898
[ "BSD-2-Clause" ]
1,049
2018-11-09T06:12:12.000Z
2022-03-31T06:21:28.000Z
# -*- coding: utf-8 -*- """Example of using Single-Objective Generative Adversarial Active Learning (SO_GAAL) for outlier detection """ # Author: Winston Li <jk_zhengli@hotmail.com> # License: BSD 2 clause from __future__ import division from __future__ import print_function import os import sys # temporary solution...
33.727273
73
0.69973
30bacf3a9fc76886b13de682097345d248efef76
4,918
py
Python
accounts/views.py
satyamtiwari1004/incognito-beta
b0e2200b425dfe11e219bff8b4952acc9cc90c69
[ "MIT" ]
null
null
null
accounts/views.py
satyamtiwari1004/incognito-beta
b0e2200b425dfe11e219bff8b4952acc9cc90c69
[ "MIT" ]
null
null
null
accounts/views.py
satyamtiwari1004/incognito-beta
b0e2200b425dfe11e219bff8b4952acc9cc90c69
[ "MIT" ]
null
null
null
from django.shortcuts import render,HttpResponse,redirect,get_object_or_404 from django.http import JsonResponse from django.contrib.auth.models import User from django.contrib.auth import login,authenticate,logout from django.contrib import messages from sqlite3 import IntegrityError from django.db.utils import Integr...
47.288462
119
0.608174
8859c612dbf029646a499bb168ab94a6ec013f08
12,451
py
Python
zmon_worker_monitor/builtins/plugins/http.py
antban/zmon-worker
4bf08b6a8a5418d3fd8487b3aee19f71f2412882
[ "Apache-2.0" ]
null
null
null
zmon_worker_monitor/builtins/plugins/http.py
antban/zmon-worker
4bf08b6a8a5418d3fd8487b3aee19f71f2412882
[ "Apache-2.0" ]
null
null
null
zmon_worker_monitor/builtins/plugins/http.py
antban/zmon-worker
4bf08b6a8a5418d3fd8487b3aee19f71f2412882
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import requests import sys import urllib import urlparse import json import ssl import socket import time import tokens from collections import defaultdict from prometheus_client.parser import text_string_to_metric_families from zmon_worker_monitor.zmon_...
35.676218
119
0.594651
3ee27d21420ac577835c8b93aec58d9279d85e22
4,446
py
Python
egs2/voice_conversion/vc1/exp1/train.py
victor45664/espnet
0ccacc32d25feddec5270cb3f8e08c24183755d8
[ "Apache-2.0" ]
4
2021-12-24T03:27:46.000Z
2022-02-26T13:21:09.000Z
egs2/voice_conversion/vc1/exp1/train.py
victor45664/espnet
0ccacc32d25feddec5270cb3f8e08c24183755d8
[ "Apache-2.0" ]
null
null
null
egs2/voice_conversion/vc1/exp1/train.py
victor45664/espnet
0ccacc32d25feddec5270cb3f8e08c24183755d8
[ "Apache-2.0" ]
2
2021-12-24T03:33:01.000Z
2022-02-26T03:54:17.000Z
# -*- coding: utf-8 -*- import sys sys.path.append('') from espnet2.VC_SRC.During_training.dataset_parallel_vc import parallel_dataset_Genrnal,infinite_dataloader,infinite_seqlength_optmized_dataloader from espnet2.VC_SRC.During_training.load_model import load_model_from_cpd import time import os from espnet2.VC_SRC.Mo...
36.743802
175
0.74224
77300159dd2ed95605a3241324cc80393403f6e6
2,100
py
Python
magic_clock/main.py
RonaldHiemstra/micropython
98a63e06933dafa9f456faf326b1bae739192310
[ "MIT" ]
null
null
null
magic_clock/main.py
RonaldHiemstra/micropython
98a63e06933dafa9f456faf326b1bae739192310
[ "MIT" ]
null
null
null
magic_clock/main.py
RonaldHiemstra/micropython
98a63e06933dafa9f456faf326b1bae739192310
[ "MIT" ]
null
null
null
import utime # pylint: disable=import-error import display from local_time import LocalTime import mqtt_client from magic_clock import MagicClock import syslog log = syslog.UDPClient(ip='192.168.1.9') log.info('MAGIC Clock is running') dt = LocalTime() lastUpdate = dt.now() clock = MagicClock(now=lastUpdate, reve...
33.333333
103
0.650476
669f024aa4b8d49ab5085ebf5063ac0d164a53d7
2,336
py
Python
tests/python/unittest/test_recordio.py
leeesangwon/incubator-mxnet
0514233103baff5e1581cf2057f561f7a36616c2
[ "Apache-2.0" ]
211
2016-06-06T08:32:36.000Z
2021-07-03T16:50:16.000Z
tests/python/unittest/test_recordio.py
leeesangwon/incubator-mxnet
0514233103baff5e1581cf2057f561f7a36616c2
[ "Apache-2.0" ]
42
2017-01-05T02:45:13.000Z
2020-08-11T23:45:27.000Z
tests/python/unittest/test_recordio.py
leeesangwon/incubator-mxnet
0514233103baff5e1581cf2057f561f7a36616c2
[ "Apache-2.0" ]
58
2016-10-27T07:37:08.000Z
2021-07-03T16:50:17.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.371429
102
0.655822
40cdffef76232765191b6322c0e188aa66eca2b7
449
py
Python
GPSVI/test/testplot.py
AlchemicalChest/gaussian-process-svi
56111e9a125cdd322473685b1b7ef875d584653e
[ "MIT" ]
null
null
null
GPSVI/test/testplot.py
AlchemicalChest/gaussian-process-svi
56111e9a125cdd322473685b1b7ef875d584653e
[ "MIT" ]
null
null
null
GPSVI/test/testplot.py
AlchemicalChest/gaussian-process-svi
56111e9a125cdd322473685b1b7ef875d584653e
[ "MIT" ]
1
2017-02-08T03:45:25.000Z
2017-02-08T03:45:25.000Z
import time import numpy as np from matplotlib import pyplot as plt plt.ion() # set plot to animated ydata = [0]*50 # make plot line, = plt.plot(ydata) plt.ylim([10,40]) # start data collection while True: y = np.random.rand() plt.ylim([0, np.max(y)+5]) ydata.append(y) del ydata[0] line.set...
19.521739
44
0.641425
31d77473e4ca33379879e83a00a5f6cbf564798e
395
py
Python
kwat/dataframe/sync.py
KwatME/ccal
d96dfa811482eee067f346386a2181ec514625f4
[ "MIT" ]
5
2017-05-05T17:50:28.000Z
2019-01-30T19:23:02.000Z
kwat/dataframe/sync.py
KwatME/ccal
d96dfa811482eee067f346386a2181ec514625f4
[ "MIT" ]
5
2017-05-05T01:52:31.000Z
2019-04-20T21:06:05.000Z
kwat/dataframe/sync.py
KwatME/ccal
d96dfa811482eee067f346386a2181ec514625f4
[ "MIT" ]
5
2017-07-17T18:55:54.000Z
2019-02-02T04:46:19.000Z
def _print_shape(na, da_): print(na) for da in da_: print("\t{}".format(da.shape)) def sync(da_, ax): _print_shape("Before syncing:", da_) la_ = da_[0].axes[ax] for da in da_[1:]: la_ = la_.intersection(da.axes[ax]) la_ = sorted(la_) das_ = [da.reindex(labels=la_, ...
14.62963
58
0.574684
e7ff1c284e16f82c770954ba15f107705494728d
9,222
py
Python
google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/base.py
sararob/python-aiplatform
e64cd5588848a4dcd9117ff905e9569576541b69
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/base.py
sararob/python-aiplatform
e64cd5588848a4dcd9117ff905e9569576541b69
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/base.py
sararob/python-aiplatform
e64cd5588848a4dcd9117ff905e9569576541b69
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
33.904412
101
0.656799
310f88bd24ef463ee38ac8c714c329d31bc2a2f6
2,970
py
Python
sugaroid/brain/imitate.py
TheDarkDrake/sugaroid
ab4b1777bfaae491e80549ea0ba3f8d627b6de5c
[ "MIT" ]
1
2021-01-23T09:12:30.000Z
2021-01-23T09:12:30.000Z
sugaroid/brain/imitate.py
TheDarkDrake/sugaroid
ab4b1777bfaae491e80549ea0ba3f8d627b6de5c
[ "MIT" ]
null
null
null
sugaroid/brain/imitate.py
TheDarkDrake/sugaroid
ab4b1777bfaae491e80549ea0ba3f8d627b6de5c
[ "MIT" ]
null
null
null
""" MIT License Sugaroid Artificial Intelligence Chatbot Core Copyright (c) 2020-2021 Srevin Saju Copyright (c) 2021 The Sugaroid Project 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 r...
40.135135
119
0.718182
38cf5e96f2495ceb40602969ba25951d8ead3db0
1,734
py
Python
sample_usage.py
centrify/centrify-hparcsight-integration-sample
d18f2d35fba13a7941cc10a4c9790f071f49864f
[ "Apache-2.0" ]
1
2021-03-17T16:42:46.000Z
2021-03-17T16:42:46.000Z
sample_usage.py
centrify/centrify-hparcsight-integration-sample
d18f2d35fba13a7941cc10a4c9790f071f49864f
[ "Apache-2.0" ]
null
null
null
sample_usage.py
centrify/centrify-hparcsight-integration-sample
d18f2d35fba13a7941cc10a4c9790f071f49864f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Centrify Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
43.35
83
0.61707