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
dd2613e06414a18ce93d700b09413476e05e1287
408
py
Python
Ch_14_Databases/hidden.py
romitpatel/learn_python
42230d04be5af5576ac2cfc4b1d2a9413a1e777a
[ "MIT" ]
1
2021-02-24T11:40:05.000Z
2021-02-24T11:40:05.000Z
Ch_14_Databases/hidden.py
Chatak1/learn_python
198333e56557301aeff95af321f4daa29834c61e
[ "MIT" ]
null
null
null
Ch_14_Databases/hidden.py
Chatak1/learn_python
198333e56557301aeff95af321f4daa29834c61e
[ "MIT" ]
2
2020-10-02T17:08:42.000Z
2021-02-24T11:40:12.000Z
# Keep this file separate # https://apps.twitter.com/ # Create new App and get the four strings def oauth(): return {"consumer_key": "LUDJ5tVqzOcGUsnCXYhNQJvYD", "consumer_secret": "CEWGWvKk61UHG80cT6M75aOl1mztxsSFLUWg1ED5WXYdQHdCZh", "token_key": "548360554-4FMLvdbJYBrQKj0lYHDR7qyUDLD4iYB...
40.8
84
0.740196
db170c9dc1e074c9e51ae15e324e9d4c8bb686db
11,146
py
Python
sdk/python/pulumi_azure_nextgen/network/v20181101/get_load_balancer.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20181101/get_load_balancer.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20181101/get_load_balancer.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
42.060377
572
0.67504
6541a1f5dd06abb049ba90813c456f7f889f142c
2,123
py
Python
Mars-Craters/code.py
arshee2403/ga-learner-dsmp-repo
f79d26ceaf38952e975404984f7d14d585727c15
[ "MIT" ]
2
2019-10-12T16:05:04.000Z
2020-01-22T16:41:58.000Z
Mars-Craters/code.py
arshee2403/ga-learner-dsmp-repo
f79d26ceaf38952e975404984f7d14d585727c15
[ "MIT" ]
null
null
null
Mars-Craters/code.py
arshee2403/ga-learner-dsmp-repo
f79d26ceaf38952e975404984f7d14d585727c15
[ "MIT" ]
null
null
null
# -------------- from sklearn.model_selection import train_test_split from sklearn.preprocessing import MinMaxScaler import pandas as pd # Code starts here df = pd.read_csv(path) print(df.head()) X = df.drop(['attr1089'],1) y = df['attr1089'] X_train,X_test,y_train,y_test = train_test_split(X,y,test_size = 0.3,random_...
23.588889
122
0.766368
2733e87e2c8d947dc61ba3b35d5ca560692123d6
141
py
Python
archive_for_wyko/Pyro-3.6/examples/agent2/serv/objects/tv.py
ArcetriAdaptiveOptics/plico_interferometer_server
e14e240229c802333b2aa5bf6458a079dc950bd2
[ "MIT" ]
null
null
null
archive_for_wyko/Pyro-3.6/examples/agent2/serv/objects/tv.py
ArcetriAdaptiveOptics/plico_interferometer_server
e14e240229c802333b2aa5bf6458a079dc950bd2
[ "MIT" ]
3
2022-01-16T01:05:01.000Z
2022-02-23T14:05:28.000Z
archive_for_wyko/Pyro-3.6/examples/agent2/serv/objects/tv.py
ArcetriAdaptiveOptics/plico_interferometer_server
e14e240229c802333b2aa5bf6458a079dc950bd2
[ "MIT" ]
1
2022-01-14T14:04:07.000Z
2022-01-14T14:04:07.000Z
class tv: def __init__(self): pass def getName(self): return "TV" def getDescription(self): return "Wide-screen stereo television"
15.666667
40
0.716312
de6f09e7635e4436962c270ef022c99462ca8ac8
25,310
py
Python
test/functional/test_runner.py
crosswand52/swand
8e412a4db513c332c73108457d1317e5f1c4a7a6
[ "MIT" ]
null
null
null
test/functional/test_runner.py
crosswand52/swand
8e412a4db513c332c73108457d1317e5f1c4a7a6
[ "MIT" ]
null
null
null
test/functional/test_runner.py
crosswand52/swand
8e412a4db513c332c73108457d1317e5f1c4a7a6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Run regression test suite. This module calls down into individual test cases via subprocess. It will f...
38.878648
205
0.632201
27dffaf07c5232f21c6fa14cca4503a7f038a054
5,239
py
Python
setup.py
bear8421/thumbor
00a0c44d44b8fa5f06c38deee7123793addda404
[ "MIT" ]
null
null
null
setup.py
bear8421/thumbor
00a0c44d44b8fa5f06c38deee7123793addda404
[ "MIT" ]
null
null
null
setup.py
bear8421/thumbor
00a0c44d44b8fa5f06c38deee7123793addda404
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/thumbor/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com thumbor@googlegroups.com import glob import logging import os from setuptools import Extensi...
31
119
0.576828
1b02d8385911c28a85c9f9a8028935b34ed0583b
656
py
Python
alano/bullet/visualize.py
zren96/alano
afd412ea37d8d4844cf1c8c9d53ff419b206a878
[ "MIT" ]
null
null
null
alano/bullet/visualize.py
zren96/alano
afd412ea37d8d4844cf1c8c9d53ff419b206a878
[ "MIT" ]
null
null
null
alano/bullet/visualize.py
zren96/alano
afd412ea37d8d4844cf1c8c9d53ff419b206a878
[ "MIT" ]
null
null
null
import numpy as np import pybullet as p from ..geometry.transform import quat2rot def plot_frame_pb(pos, orn=np.array([0., 0., 0., 1.]), w_first=False): rot = quat2rot(orn, w_first) endPos = pos + 0.1 * rot[:, 0] p.addUserDebugLine(pos, endPos, lineColorRGB=[1, 0, 0], lineWidth=5) endPos = pos + 0.1 *...
36.444444
78
0.667683
df587f5fe975c1ae1466b0251d8dd5c71f1dc18a
120,615
py
Python
webresume/frontend/views.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-manweile
d932acffac20464dba773950a1abbb33ecbf7e6b
[ "MIT" ]
null
null
null
webresume/frontend/views.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-manweile
d932acffac20464dba773950a1abbb33ecbf7e6b
[ "MIT" ]
4
2018-10-08T23:35:44.000Z
2021-06-10T20:50:42.000Z
webresume/frontend/views.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-manweile
d932acffac20464dba773950a1abbb33ecbf7e6b
[ "MIT" ]
1
2018-11-02T19:34:16.000Z
2018-11-02T19:34:16.000Z
from django.shortcuts import render from django.http import HttpResponse import base64 def index(request): return render(request, 'index.html', {}) # Example for returning a file from an endpoint def text_file(request): return HttpResponse("Hello World", content_type="text/plain") def image_file(request): r...
5,244.130435
60,032
0.970435
c9c53678ef7e8d410bb7a429f092f1e537a6db9e
10,853
py
Python
flagsmith/flagsmith.py
SolidStateGroup/bullet-train-python-client
31a27d0887e1cde8182bd7d0963ee74ccc104b98
[ "BSD-3-Clause" ]
2
2018-07-10T00:19:14.000Z
2018-12-18T16:59:50.000Z
flagsmith/flagsmith.py
SolidStateGroup/bullet-train-python-client
31a27d0887e1cde8182bd7d0963ee74ccc104b98
[ "BSD-3-Clause" ]
2
2020-04-21T11:04:45.000Z
2020-05-15T08:39:37.000Z
flagsmith/flagsmith.py
BulletTrainHQ/bullet-train-python-client
ae5c50266d25925aa9551901480623d57a8bfbf9
[ "BSD-3-Clause" ]
3
2020-05-15T07:14:23.000Z
2020-09-18T17:07:21.000Z
import logging import typing from json import JSONDecodeError import requests from flag_engine import engine from flag_engine.environments.builders import build_environment_model from flag_engine.environments.models import EnvironmentModel from flag_engine.identities.models import IdentityModel, TraitModel from flag_e...
41.903475
88
0.664885
2e30a268969753b5763b9c230b821aa7d8f72b17
1,065
py
Python
cms_articles/utils/placeholder.py
snegovick/django-cms-articles
f7397bd5e303be6ed50bc53b71e27e40f4087f94
[ "BSD-3-Clause" ]
9
2016-04-18T15:59:50.000Z
2019-09-12T07:11:15.000Z
cms_articles/utils/placeholder.py
snegovick/django-cms-articles
f7397bd5e303be6ed50bc53b71e27e40f4087f94
[ "BSD-3-Clause" ]
6
2019-01-22T17:53:48.000Z
2020-07-19T17:35:31.000Z
cms_articles/utils/placeholder.py
snegovick/django-cms-articles
f7397bd5e303be6ed50bc53b71e27e40f4087f94
[ "BSD-3-Clause" ]
4
2017-02-10T17:19:30.000Z
2020-02-02T16:58:20.000Z
# -*- coding: utf-8 -*- import warnings from cms.exceptions import DuplicatePlaceholderWarning from cms.utils.placeholder import ( _get_nodelist, _scan_placeholders, validate_placeholder_name, ) from django.template.loader import get_template def get_placeholders(template): from ..templatetags.cms_articles i...
31.323529
84
0.664789
23c51474b8f2f6d632946e259a72cf2c49c7f875
8,884
py
Python
src/sas/sasgui/plottools/plottable_interactor.py
opendatafit/sasview
c470220eecfc9f6d8a0e27e2ea8919dcb1b38e39
[ "BSD-3-Clause" ]
null
null
null
src/sas/sasgui/plottools/plottable_interactor.py
opendatafit/sasview
c470220eecfc9f6d8a0e27e2ea8919dcb1b38e39
[ "BSD-3-Clause" ]
1
2021-09-20T13:20:35.000Z
2021-09-20T13:20:35.000Z
src/sas/sasgui/plottools/plottable_interactor.py
opendatafit/sasview
c470220eecfc9f6d8a0e27e2ea8919dcb1b38e39
[ "BSD-3-Clause" ]
null
null
null
""" This module allows more interaction with the plot """ from __future__ import print_function from .BaseInteractor import _BaseInteractor class PointInteractor(_BaseInteractor): """ """ def __init__(self, base, axes, color='black', zorder=3, id=''): """ """ _BaseInteractor._...
37.804255
80
0.463417
3789005f2802aa738a444f140cd336513d5afddb
436
py
Python
04.100 Python Exercises Evaluate and Improve Your Skills - AS/Exercise 76-100/exercise92.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
3
2020-06-01T04:17:18.000Z
2020-12-18T03:05:55.000Z
04.100 Python Exercises Evaluate and Improve Your Skills - AS/Exercise 76-100/exercise92.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
1
2020-04-25T08:01:59.000Z
2020-04-25T08:01:59.000Z
04.100 Python Exercises Evaluate and Improve Your Skills - AS/Exercise 76-100/exercise92.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
7
2020-04-26T10:02:36.000Z
2021-06-08T05:12:46.000Z
# download the attached ZIP file and extract its files in a folder. # Then, write a script that counts and prints out the number of .py files in that folder. import pathlib count = 0; for path in pathlib.Path('./92_files').iterdir(): if path.is_file() and path.suffix == '.py': count += 1; print(f'Number ...
25.647059
89
0.68578
b034e8a07cb3f8c844975bb53c6d5bb190c885c8
18,603
py
Python
gamestonk_terminal/cryptocurrency/discovery/discovery_controller.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
gamestonk_terminal/cryptocurrency/discovery/discovery_controller.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
gamestonk_terminal/cryptocurrency/discovery/discovery_controller.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
"""Cryptocurrency Discovery Controller""" __docformat__ = "numpy" # pylint: disable=R0904, C0302, W0622, C0201 import argparse from typing import List from prompt_toolkit.completion import NestedCompleter from gamestonk_terminal.rich_config import console from gamestonk_terminal.parent_classes import BaseController fr...
32.984043
118
0.535344
65025a5ac1793e09f299bc562cd35aaaf3eb7382
884
py
Python
IVTp/2014/Lyach_A_A/Task_4_12.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Lyach_A_A/Task_4_12.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Lyach_A_A/Task_4_12.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 12. # Напишите программу, которая выводит имя, под которым скрывается Лариса Петровна Косач-Квитка # Лях.А.А. # 22.05.2016 real_name = 'Лариса Петровна Косач-Квитка' p_name = 'Леся Украинка ' interests = ('поэзия, лирика, эпос, драма') born_place = 'Новоград-Волынский ' born_year = 187...
35.36
167
0.671946
5465be2d11b813626b0ea8a8c1e573e5aa2beac5
4,300
py
Python
sk_classification_NaiveBayes/naive_bayes.py
AccessibleAI/ailibrary
f283f7c1608f5998694efc3cdbd0a29ebf3239c2
[ "Apache-2.0" ]
5
2020-11-09T21:50:10.000Z
2021-07-09T00:22:16.000Z
sk_classification_NaiveBayes/naive_bayes.py
AccessibleAI/ailibrary
f283f7c1608f5998694efc3cdbd0a29ebf3239c2
[ "Apache-2.0" ]
14
2019-12-03T06:08:07.000Z
2021-11-21T11:56:13.000Z
sk_classification_NaiveBayes/naive_bayes.py
AccessibleAI/ailibrary
f283f7c1608f5998694efc3cdbd0a29ebf3239c2
[ "Apache-2.0" ]
2
2020-01-07T15:35:43.000Z
2021-08-19T15:41:16.000Z
""" All rights reserved to cnvrg.io http://www.cnvrg.io cnvrg.io - AI library Written by: Michal Ettudgi Last update: Oct 06, 2019 Updated by: Omer Liberman logistic_regression.py ============================================================================== """ import argparse import pandas as pd from SKTrai...
36.752137
150
0.667209
af73f760a08d0142bb00fe4fef708b1b8c0674d3
335
py
Python
unileaks/task12.py
zahessi/unileaks
3ed2462e11f8e3decc64ed8faceee42438ec06ff
[ "MIT" ]
null
null
null
unileaks/task12.py
zahessi/unileaks
3ed2462e11f8e3decc64ed8faceee42438ec06ff
[ "MIT" ]
null
null
null
unileaks/task12.py
zahessi/unileaks
3ed2462e11f8e3decc64ed8faceee42438ec06ff
[ "MIT" ]
null
null
null
# Задача: Дан числовой массив. Проверить, есть ли такие два числа в массиве, # перемножив которые мы получим заданное число X. def find(arr, x): u = [e for e in arr for m in arr if e*m == x] return len([e for e in arr for m in arr if e*m == x]) >= 2 assert find([1, 2, 3], 17) == False assert find([23, 4, 1, ...
37.222222
77
0.626866
6eb742f1304eff0228b46bf60a876899bba407f5
4,334
py
Python
sdmetrics/timeseries/efficacy/base.py
ppeddada97/SDMetrics
3b83f25577292b24099668d0273f3282b61d7542
[ "MIT" ]
66
2020-04-09T02:51:00.000Z
2022-03-07T20:18:09.000Z
sdmetrics/timeseries/efficacy/base.py
ppeddada97/SDMetrics
3b83f25577292b24099668d0273f3282b61d7542
[ "MIT" ]
68
2020-03-23T00:48:14.000Z
2022-03-10T10:47:34.000Z
sdmetrics/timeseries/efficacy/base.py
ppeddada97/SDMetrics
3b83f25577292b24099668d0273f3282b61d7542
[ "MIT" ]
21
2020-04-23T14:22:42.000Z
2022-03-10T09:29:50.000Z
"""Base class for Machine Learning Efficacy based metrics for Time Series.""" import numpy as np import pandas as pd import rdt from sklearn.model_selection import train_test_split from sdmetrics.goal import Goal from sdmetrics.timeseries.base import TimeSeriesMetric class TimeSeriesEfficacyMetric(TimeSeriesMetric)...
39.4
97
0.659437
e2ad93b2ecda24d3faf110e03deafef3e0dfec71
1,312
py
Python
seq_predictor/util/infolog.py
zlijingtao/Neurobfuscator
39fc8eaa1819bdaba4a64ca86cd5a340343ac94a
[ "Apache-2.0" ]
3
2021-07-20T21:01:43.000Z
2022-01-02T03:33:05.000Z
seq_predictor/util/infolog.py
zlijingtao/Neurobfuscator
39fc8eaa1819bdaba4a64ca86cd5a340343ac94a
[ "Apache-2.0" ]
null
null
null
seq_predictor/util/infolog.py
zlijingtao/Neurobfuscator
39fc8eaa1819bdaba4a64ca86cd5a340343ac94a
[ "Apache-2.0" ]
1
2021-12-10T03:15:52.000Z
2021-12-10T03:15:52.000Z
import atexit from datetime import datetime import json from threading import Thread from urllib.request import Request, urlopen _format = '%Y-%m-%d %H:%M:%S.%f' _file = None _run_name = None _slack_url = None def init(filename, run_name, slack_url=None): global _file, _run_name, _slack_url _close_logfile()...
25.230769
88
0.571646
5745a1d7fb1ef15914df12085010ef696cb9f4ba
4,522
py
Python
benchmark/startQiskit_QC3182.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC3182.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC3182.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=43 import cirq import qiskit from qiskit import IBMQ from qiskit.providers.ibmq import least_busy from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from ma...
35.606299
165
0.656568
32ac321cb26bede0238f2c59c142591c360f2dbf
299
py
Python
module/{{cookiecutter.project}}/{{cookiecutter.package_dir}}/{{cookiecutter.module}}.py
chhsiao1981/cc_flask_template
cbd7d5f3775176f88002490877f7607973dca958
[ "MIT" ]
null
null
null
module/{{cookiecutter.project}}/{{cookiecutter.package_dir}}/{{cookiecutter.module}}.py
chhsiao1981/cc_flask_template
cbd7d5f3775176f88002490877f7607973dca958
[ "MIT" ]
null
null
null
module/{{cookiecutter.project}}/{{cookiecutter.package_dir}}/{{cookiecutter.module}}.py
chhsiao1981/cc_flask_template
cbd7d5f3775176f88002490877f7607973dca958
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import ujson as json import re from {{cookiecutter.project_name}}.constants import * from {{cookiecutter.project_name}} import cfg from {{cookiecutter.project_name}} import util from {{cookiecutter.project_name}}.util import Error def {{cookiecutter.module}}(): pass
21.357143
53
0.73913
33d34fc9ea8ddc7bccce47dec956c90c132f00df
1,491
py
Python
lib-src/lv2/suil/waflib/Tools/suncc.py
joshrose/audacity
e2b1a2be6b92661628bbb054f915bc50b211c020
[ "CC-BY-3.0" ]
7,892
2015-03-31T09:24:05.000Z
2022-03-31T12:30:32.000Z
lib-src/lv2/suil/waflib/Tools/suncc.py
joshrose/audacity
e2b1a2be6b92661628bbb054f915bc50b211c020
[ "CC-BY-3.0" ]
2,050
2015-04-03T13:27:52.000Z
2022-03-31T19:14:10.000Z
lib-src/lv2/suil/waflib/Tools/suncc.py
joshrose/audacity
e2b1a2be6b92661628bbb054f915bc50b211c020
[ "CC-BY-3.0" ]
2,613
2015-03-26T11:28:10.000Z
2022-03-30T13:17:03.000Z
#!/usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2006-2018 (ita) # Ralf Habacker, 2006 (rh) from waflib import Errors from waflib.Tools import ccroot, ar from waflib.Configure import conf @conf def find_scc(conf): """ Detects the Sun C compiler """ v = conf.env cc = conf.find_program('cc', var='CC') try: ...
21.926471
62
0.594232
cd1f8653fd781dff837b1a1594582eed5be6a53c
6,064
py
Python
sdk/python/pulumi_azure_native/hybridcompute/private_endpoint_connection.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/hybridcompute/private_endpoint_connection.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/hybridcompute/private_endpoint_connection.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
45.253731
504
0.670844
8f02dc5d991629be695eb3dd0042f067e4e1795f
6,874
py
Python
tests/unit/states/test_boto_kinesis.py
velom/salt
f5d4334178c50d0dfcd205d5a7fb9cfb27fd369e
[ "Apache-2.0" ]
1
2021-04-05T19:46:35.000Z
2021-04-05T19:46:35.000Z
tests/unit/states/test_boto_kinesis.py
dv-trading/salt
f5d4334178c50d0dfcd205d5a7fb9cfb27fd369e
[ "Apache-2.0" ]
null
null
null
tests/unit/states/test_boto_kinesis.py
dv-trading/salt
f5d4334178c50d0dfcd205d5a7fb9cfb27fd369e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Import Python libs from __future__ import absolute_import # Import Salt Testing Libs from tests.support.unit import skipIf, TestCase from tests.support.mock import ( NO_MOCK, NO_MOCK_REASON, MagicMock, patch) # Import Salt Libs from salt.states import boto_kinesis boto_kines...
48.06993
119
0.561682
3f82312af42ed7edfa2d479bff37b33799bd1046
241
py
Python
setup.py
XiaolinLiu1998/pbpe
5cc29805cc26dfc7e1aa49399c2425964b6e6614
[ "BSD-2-Clause" ]
null
null
null
setup.py
XiaolinLiu1998/pbpe
5cc29805cc26dfc7e1aa49399c2425964b6e6614
[ "BSD-2-Clause" ]
null
null
null
setup.py
XiaolinLiu1998/pbpe
5cc29805cc26dfc7e1aa49399c2425964b6e6614
[ "BSD-2-Clause" ]
null
null
null
from distutils.core import setup from Cython.Build import cythonize import os import numpy os.environ['CFLAGS'] = '-O3 -Wall -ffast-math -fopenmp' setup( ext_modules = cythonize("src/*.pyx"), include_dirs = [numpy.get_include()] )
20.083333
55
0.717842
6f33b3510dadbfe0040ef34cf5d8e049ea25b86b
2,391
py
Python
psydac/utilities/quadratures.py
mayuri-dhote/psydac
01ddbe2d049a599684c45060912d01c2658160a3
[ "MIT" ]
20
2019-07-30T12:37:57.000Z
2022-03-09T11:35:04.000Z
psydac/utilities/quadratures.py
mayuri-dhote/psydac
01ddbe2d049a599684c45060912d01c2658160a3
[ "MIT" ]
98
2019-04-01T16:32:27.000Z
2022-03-21T19:30:35.000Z
psydac/utilities/quadratures.py
mayuri-dhote/psydac
01ddbe2d049a599684c45060912d01c2658160a3
[ "MIT" ]
7
2019-10-03T03:49:47.000Z
2022-03-01T09:11:49.000Z
# -*- coding: UTF-8 -*- #! /usr/bin/python """ This module contains some routines to generate quadrature points in 1D it has also a routine uniform, which generates uniform points with weights equal to 1 """ import numpy as np # .... def gauss_legendre(ordergl,tol=10e-14): """ Returns nodal abscissas {x} an...
27.170455
87
0.49519
a06c32ce09a5fd0c2b04b4602f3e77724574d587
938
py
Python
spamclib/spamc_body.py
wevsty/spamclib
4e844f9644ecdf4f9dfadbe1e3a784dc7d273a31
[ "MIT" ]
1
2019-12-06T09:00:43.000Z
2019-12-06T09:00:43.000Z
spamclib/spamc_body.py
wevsty/spamclib
4e844f9644ecdf4f9dfadbe1e3a784dc7d273a31
[ "MIT" ]
null
null
null
spamclib/spamc_body.py
wevsty/spamclib
4e844f9644ecdf4f9dfadbe1e3a784dc7d273a31
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from .type_convert import anything_to_string from .type_convert import anything_to_bytes import zlib class SpamcBody(object): _body = b'' # _compressed_body = b'' def __init__(self): self._body = b'' # self._compressed_body = b'' @stati...
20.844444
51
0.634328
c89761a02d3f18321cfb4b9046f3b674f5a2bc64
5,913
py
Python
dqn/exercise/dqn_agent.py
aopina1/DRLND-Course
1140e101221cfcee16a24d146b4f86cd79d53832
[ "MIT" ]
null
null
null
dqn/exercise/dqn_agent.py
aopina1/DRLND-Course
1140e101221cfcee16a24d146b4f86cd79d53832
[ "MIT" ]
7
2019-12-16T22:13:37.000Z
2022-02-10T01:05:42.000Z
dqn/exercise/dqn_agent.py
aopina1/DRLND-Course
1140e101221cfcee16a24d146b4f86cd79d53832
[ "MIT" ]
null
null
null
import numpy as np import random from collections import namedtuple, deque from model import QNetwork import torch import torch.nn.functional as F import torch.optim as optim BUFFER_SIZE = int(1e5) # replay buffer size BATCH_SIZE = 64 # minibatch size GAMMA = 0.99 # discount factor T...
40.5
128
0.604769
36ef4dc32466dc2a08770a6884f4b81c18d4fa72
1,097
py
Python
testdb.py
bradneuman/BlameOverTime
a41ea352d6d0a5ab91af45160da7fe937b7a6e2d
[ "MIT" ]
null
null
null
testdb.py
bradneuman/BlameOverTime
a41ea352d6d0a5ab91af45160da7fe937b7a6e2d
[ "MIT" ]
null
null
null
testdb.py
bradneuman/BlameOverTime
a41ea352d6d0a5ab91af45160da7fe937b7a6e2d
[ "MIT" ]
null
null
null
import blameDBQuery as query import sqlite3 db_filename = 'blame.db' def showCurrBlame(conn): blame = query.GetCurrentBlame(conn.cursor()) filenameLength = max(max([len(row[0]) for row in blame]), len('filename')) authorLength = max(max([len(row[1]) for row in blame]), len('author')) linesLength = 6...
26.119048
90
0.642662
2c938af8ad78e733327b307f8098deff1fb5631a
8,919
py
Python
maya/plug-ins/heimer.py
cedricB/circeCharacterWorksTools
cf7d793239c291a8a8aec5c60ede1250415581d9
[ "MIT" ]
34
2015-03-13T08:40:02.000Z
2022-03-31T12:30:48.000Z
maya/plug-ins/heimer.py
cedricB/circeCharacterWorksTools
cf7d793239c291a8a8aec5c60ede1250415581d9
[ "MIT" ]
null
null
null
maya/plug-ins/heimer.py
cedricB/circeCharacterWorksTools
cf7d793239c291a8a8aec5c60ede1250415581d9
[ "MIT" ]
9
2015-03-13T08:40:04.000Z
2020-11-06T09:15:45.000Z
''' ######################################################################## # # # heimer.py # # # # Email: ced...
43.935961
124
0.679448
58922f9eedd9439c635600f11327b3c334723a89
6,969
py
Python
samples/feature-tools/ftools.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
samples/feature-tools/ftools.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
samples/feature-tools/ftools.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Oct 11 08:05:00 2019 @author: ascalet / lladeira Feature Tools implementation utilizing feature tools Data Science Machine """ import io import os import numpy as np import pandas as pd import warnings import featuretools as ft import featuretools.variable_types as vtypes...
31.96789
142
0.52834
2fe5b6bac0bab9fa0485fd2074bd54722cef47b1
1,686
py
Python
monitoring/prober/test_isa_expiry.py
jgrossmac/dss
48360fd43fe09c2df511ef16a506e22085ac07e1
[ "Apache-2.0" ]
1
2019-08-21T20:18:09.000Z
2019-08-21T20:18:09.000Z
monitoring/prober/test_isa_expiry.py
BenjaminPelletier/dss
042e42c318c9d9ee2a50c7c9952581a185f1e660
[ "Apache-2.0" ]
null
null
null
monitoring/prober/test_isa_expiry.py
BenjaminPelletier/dss
042e42c318c9d9ee2a50c7c9952581a185f1e660
[ "Apache-2.0" ]
1
2019-08-21T20:25:36.000Z
2019-08-21T20:25:36.000Z
"""Test ISAs aren't returned after they expire.""" import datetime import time import common def test_create(session, isa1_uuid): time_start = datetime.datetime.utcnow() time_end = time_start + datetime.timedelta(seconds=5) resp = session.put( '/identification_service_areas/{}'.format(isa1_uuid), ...
30.107143
77
0.643535
a24648df6ba7ab9bc4ab1f3a4349beb14fc545b6
16,859
py
Python
joblib/test/test_pool.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
3
2019-04-01T11:03:04.000Z
2019-12-31T02:17:15.000Z
joblib/test/test_pool.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2021-04-15T18:46:45.000Z
2021-04-15T18:46:45.000Z
joblib/test/test_pool.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2015-11-25T15:38:53.000Z
2015-11-25T15:38:53.000Z
import os import mmap from joblib.test.common import with_numpy, np from joblib.test.common import setup_autokill from joblib.test.common import teardown_autokill from joblib.test.common import with_multiprocessing from joblib.test.common import with_dev_shm from joblib.testing import raises from joblib.backports impo...
35.049896
78
0.67329
1b5a788e2ef607aaf7284cc651fe58993a2d60db
1,305
py
Python
app/__init__.py
MutuaFranklin/BlogPool
d5781a62a1ad6e5242392dad28e41f536377a4a6
[ "MIT" ]
null
null
null
app/__init__.py
MutuaFranklin/BlogPool
d5781a62a1ad6e5242392dad28e41f536377a4a6
[ "MIT" ]
null
null
null
app/__init__.py
MutuaFranklin/BlogPool
d5781a62a1ad6e5242392dad28e41f536377a4a6
[ "MIT" ]
null
null
null
from flask import Flask from config import config_options from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_mail import Mail from flask_uploads import UploadSet,configure_uploads,IMAGES from flask_simplemde import SimpleMDE from flask_bootstrap import Bootstrap login_manager = Lo...
23.303571
63
0.76705
4e6bf252971bf6e34f349e543347de8755d0c98c
2,303
py
Python
tests/test_observable/test_startwith.py
Affirm/RxPY
7c23939ea497761c85b382257f9f0954998ab91e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_observable/test_startwith.py
Affirm/RxPY
7c23939ea497761c85b382257f9f0954998ab91e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_observable/test_startwith.py
Affirm/RxPY
7c23939ea497761c85b382257f9f0954998ab91e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import unittest from rx.core import Scheduler from rx.testing import TestScheduler, ReactiveTest on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = ReactiveTest.disposed created = R...
38.383333
97
0.700391
d9f086bae6565c46edc4268cef8b9114e809ec70
10,899
py
Python
tests/test_assembler.py
andypalmer9669/74_series_computer
0b8a4776b49a2380a51863634b48bcc441bf74ec
[ "MIT" ]
null
null
null
tests/test_assembler.py
andypalmer9669/74_series_computer
0b8a4776b49a2380a51863634b48bcc441bf74ec
[ "MIT" ]
46
2019-02-22T16:46:02.000Z
2020-03-08T20:26:37.000Z
tests/test_assembler.py
andypalmer9669/74_series_computer
0b8a4776b49a2380a51863634b48bcc441bf74ec
[ "MIT" ]
null
null
null
import pytest from copy import deepcopy from eight_bit_computer import assembler from eight_bit_computer.data_structures import ( get_assembly_line_template, get_machine_code_byte_template ) from eight_bit_computer.exceptions import LineProcessingError, AssemblyError @pytest.mark.parametrize("test_input,variable...
31.229226
77
0.681622
e3834bff75166bfbfdcb80ce2ff1da812d2be01f
814
py
Python
examples/vhdl/vivado/run.py
olafvandenberg/vunit
4f78fc4fa0f10b4cf50a6d377793d374ae19df64
[ "Artistic-2.0", "Apache-2.0" ]
null
null
null
examples/vhdl/vivado/run.py
olafvandenberg/vunit
4f78fc4fa0f10b4cf50a6d377793d374ae19df64
[ "Artistic-2.0", "Apache-2.0" ]
1
2021-09-05T19:34:01.000Z
2021-09-05T19:34:01.000Z
examples/vhdl/vivado/run.py
olafvandenberg/vunit
4f78fc4fa0f10b4cf50a6d377793d374ae19df64
[ "Artistic-2.0", "Apache-2.0" ]
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/. # # Copyright (c) 2014-2022, Lars Asplund lars.anders.asplund@gmail.com """ Vivado IP --------- Demonstrates compiling ...
23.941176
75
0.719902
8441276cf28ea59ef762dc64c81fbe452672041b
6,263
py
Python
adafruit_sgp30.py
kattni/Adafruit_CircuitPython_SGP30
c204720d889b5c0cb9d034d5022d751b72dac134
[ "MIT" ]
null
null
null
adafruit_sgp30.py
kattni/Adafruit_CircuitPython_SGP30
c204720d889b5c0cb9d034d5022d751b72dac134
[ "MIT" ]
null
null
null
adafruit_sgp30.py
kattni/Adafruit_CircuitPython_SGP30
c204720d889b5c0cb9d034d5022d751b72dac134
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2017 ladyada for Adafruit Industries # # 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 #...
35.384181
93
0.640109
48ad652ea0741c283d5c36bfb55544f66b509641
78,186
py
Python
mesonbuild/mesonlib/universal.py
mscofield0/meson
007c4659c2154755fc1f57d415afc8a736f81af2
[ "Apache-2.0" ]
null
null
null
mesonbuild/mesonlib/universal.py
mscofield0/meson
007c4659c2154755fc1f57d415afc8a736f81af2
[ "Apache-2.0" ]
null
null
null
mesonbuild/mesonlib/universal.py
mscofield0/meson
007c4659c2154755fc1f57d415afc8a736f81af2
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2020 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agree...
35.29842
152
0.605006
7755e6ba3b1155e42300f6f4eaf873559545f7ef
229
py
Python
motif/minibatch.py
NThande/matched-motif
3d5338a5db8c8ae69d42c3141d81a8812cd82bd7
[ "MIT" ]
1
2019-11-06T00:53:58.000Z
2019-11-06T00:53:58.000Z
motif/minibatch.py
NThande/matched-motif
3d5338a5db8c8ae69d42c3141d81a8812cd82bd7
[ "MIT" ]
null
null
null
motif/minibatch.py
NThande/matched-motif
3d5338a5db8c8ae69d42c3141d81a8812cd82bd7
[ "MIT" ]
null
null
null
## FUTURE WORK # Split the audio into disjoint 30-second super-segments # Analyze each segment separately # Merge the final labels def run_minibatch(): return def main(): return if __name__ == '__main__': main()
15.266667
56
0.69869
1d073f994ce8378a7818af00ba4f5af039ded11a
12,855
py
Python
test/test_make_bdv.py
martinschorb/pybdv
4c28b13ebc306f8dba77e7ec964cee485c9c4b6b
[ "MIT" ]
null
null
null
test/test_make_bdv.py
martinschorb/pybdv
4c28b13ebc306f8dba77e7ec964cee485c9c4b6b
[ "MIT" ]
null
null
null
test/test_make_bdv.py
martinschorb/pybdv
4c28b13ebc306f8dba77e7ec964cee485c9c4b6b
[ "MIT" ]
null
null
null
import os import unittest from abc import ABC from shutil import rmtree import numpy as np from pybdv import has_dask, make_bdv, make_bdv_from_dask_array from pybdv.util import get_key, open_file, n5_file if has_dask: import dask class MakeBdvTestMixin(ABC): tmp_folder = './tmp' xml_path = './tmp/test.x...
36.211268
100
0.572229
dd1ee76999e1b94eb8b854a6330b861170ccf515
4,686
py
Python
dev_tools/notebooks/utils.py
a3ahmad/Cirq-cupy
2d7641b8baf3ff7e506f02202b46ee0203dca190
[ "Apache-2.0" ]
null
null
null
dev_tools/notebooks/utils.py
a3ahmad/Cirq-cupy
2d7641b8baf3ff7e506f02202b46ee0203dca190
[ "Apache-2.0" ]
null
null
null
dev_tools/notebooks/utils.py
a3ahmad/Cirq-cupy
2d7641b8baf3ff7e506f02202b46ee0203dca190
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
37.790323
99
0.671362
56400b69480cdfca91868932b5be74d18b69ff30
20,831
py
Python
nova/network/model.py
bopopescu/nova-rocky-system-reader-role
50a9d96f117b3c90aec214d1732f63fc6a1b98ea
[ "Apache-2.0" ]
null
null
null
nova/network/model.py
bopopescu/nova-rocky-system-reader-role
50a9d96f117b3c90aec214d1732f63fc6a1b98ea
[ "Apache-2.0" ]
2
2021-03-31T19:25:14.000Z
2021-12-13T20:15:06.000Z
nova/network/model.py
bopopescu/nova-rocky-system-reader-role
50a9d96f117b3c90aec214d1732f63fc6a1b98ea
[ "Apache-2.0" ]
1
2020-07-22T22:15:29.000Z
2020-07-22T22:15:29.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...
33.92671
79
0.640104
90e6c536bb9cc834777969a6050e7db1ba03dd97
24,104
py
Python
calvin/runtime/south/transports/tests/test_calvin_transport.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
334
2015-06-04T15:14:28.000Z
2022-02-09T11:14:17.000Z
calvin/runtime/south/transports/tests/test_calvin_transport.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
89
2015-06-13T19:15:35.000Z
2019-12-03T19:23:20.000Z
calvin/runtime/south/transports/tests/test_calvin_transport.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
112
2015-06-06T19:16:54.000Z
2020-10-19T01:27:55.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015 Ericsson AB # # 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 ...
35.188321
130
0.524685
e0649066f1167ce5a9748348c77ed0edcb1c7b53
2,787
py
Python
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Notify/Nsca/Nsca.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
282
2016-06-16T14:41:44.000Z
2022-03-02T03:43:02.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Notify/Nsca/Nsca.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
146
2016-06-16T08:55:45.000Z
2020-09-08T10:37:32.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Notify/Nsca/Nsca.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
94
2016-06-16T10:49:07.000Z
2022-03-28T09:14:03.000Z
import logging import sys from pynsca import NSCANotifier from mongodb_consistent_backup.Errors import NotifyError, OperationError from mongodb_consistent_backup.Pipeline import Task class Nsca(Task): def __init__(self, manager, config, timer, base_dir, backup_dir, **kwargs): super(Nsca, self).__init__(...
39.253521
152
0.598134
f37b8be56905dfbc3c7c439c95b415df337a1aae
1,027
py
Python
code/preprocessing.py
smmspiers/Feed-ForwardNN-CFAR-10
de8d75b13e1a7a1955532064c49ced16a5b8f4a2
[ "MIT" ]
null
null
null
code/preprocessing.py
smmspiers/Feed-ForwardNN-CFAR-10
de8d75b13e1a7a1955532064c49ced16a5b8f4a2
[ "MIT" ]
null
null
null
code/preprocessing.py
smmspiers/Feed-ForwardNN-CFAR-10
de8d75b13e1a7a1955532064c49ced16a5b8f4a2
[ "MIT" ]
null
null
null
import numpy as np def minmax_initialisation(data): return (data - np.min(data)) / (np.max(data) - np.min(data)) def get_pca_matrix(data, pov=0.9): # Compute covariance matrix covariance = np.cov(data, rowvar=False) # Calculate eigen values and vectors eigen_vals, eigen_vecs = np.linalg.eig(cova...
33.129032
66
0.714703
3c35ce6641cb567cbed262c84fb617531f61b8ce
6,704
py
Python
networkapi/api_environment/facade.py
juanaugusto/Serializer-Training-GloboNetworkAPI
7ca9e176262551c4fda7275623af781276cc3f4a
[ "Apache-2.0" ]
null
null
null
networkapi/api_environment/facade.py
juanaugusto/Serializer-Training-GloboNetworkAPI
7ca9e176262551c4fda7275623af781276cc3f4a
[ "Apache-2.0" ]
3
2020-06-05T18:41:53.000Z
2021-06-10T20:37:56.000Z
networkapi/api_environment/facade.py
juanaugusto/Serializer-Training-GloboNetworkAPI
7ca9e176262551c4fda7275623af781276cc3f4a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import logging from django.core.exceptions import FieldError from django.db.models import Q from networkapi.equipamento.models import Equipamento from networkapi.ambiente.models import Ambiente from networkapi.ambiente.models import AmbienteError from networkapi.ambiente.models import Ambiente...
30.334842
79
0.682578
88dae23b9f17a6f4f6ee7197c84672fe5772f719
1,462
py
Python
questionary/constants.py
heeplr/questionary
90af7c4cd345315c6ce424a5941f50054a6b68c3
[ "MIT" ]
null
null
null
questionary/constants.py
heeplr/questionary
90af7c4cd345315c6ce424a5941f50054a6b68c3
[ "MIT" ]
null
null
null
questionary/constants.py
heeplr/questionary
90af7c4cd345315c6ce424a5941f50054a6b68c3
[ "MIT" ]
null
null
null
from prompt_toolkit.styles import Style # Value to display as an answer when "affirming" a confirmation question YES = "Yes" # Value to display as an answer when "denying" a confirmation question NO = "No" # Instruction text for a confirmation question (yes is default) YES_OR_NO = "(Y/n)" # Instruction text for a c...
32.488889
83
0.699042
f7bf8446d8ee34ab9565c17809b772320ad73a96
1,952
py
Python
testbench/controller_test.py
DEFAULTTEXHAPb/SampleRateConverter
880555ac486b5cf85a46118f3dc6c3c02ffc80c9
[ "MIT" ]
null
null
null
testbench/controller_test.py
DEFAULTTEXHAPb/SampleRateConverter
880555ac486b5cf85a46118f3dc6c3c02ffc80c9
[ "MIT" ]
null
null
null
testbench/controller_test.py
DEFAULTTEXHAPb/SampleRateConverter
880555ac486b5cf85a46118f3dc6c3c02ffc80c9
[ "MIT" ]
null
null
null
import os import os.path as path import pytest import cocotb as ctb import cocotb_test.simulator as tester class TB(object): pass class MicroBlaze(): pass @ctb.test() def controller_test(dut): pass tests_dir = path.dirname(__file__) hdl_dir = path.abspath(path.join(tests_dir, '..', 'hdl')) ...
19.326733
79
0.623975
5a7c2367766c61aa47db7a2eff21c936f2299ab1
981
py
Python
gen3_replicator/config_helper.py
ohsu-comp-bio/gen3-etl-lite
c91093e6c7b269db5baca41619a93356a68c4e97
[ "MIT" ]
null
null
null
gen3_replicator/config_helper.py
ohsu-comp-bio/gen3-etl-lite
c91093e6c7b269db5baca41619a93356a68c4e97
[ "MIT" ]
1
2021-03-25T22:26:08.000Z
2021-03-25T22:26:08.000Z
gen3_replicator/config_helper.py
ohsu-comp-bio/gen3-etl-lite
c91093e6c7b269db5baca41619a93356a68c4e97
[ "MIT" ]
null
null
null
"""Useful helpers.""" import json import os from datetime import date, datetime def json_serial(obj): """JSON serializer for objects not serializable by default json code""" if isinstance(obj, (datetime, date)): return obj.isoformat() raise TypeError ("Type %s not serializable" % type(obj)) def ...
28.028571
85
0.641182
c3afd4e434bb58b14b5ca290b358c1941385a141
1,054
py
Python
setup.py
yoratoni/python-logger
d23e871ec8a44c4220d21f15fecd10b77de8b3db
[ "BSD-3-Clause" ]
1
2022-03-13T23:51:25.000Z
2022-03-13T23:51:25.000Z
setup.py
yoratoni/pyostra
d23e871ec8a44c4220d21f15fecd10b77de8b3db
[ "BSD-3-Clause" ]
null
null
null
setup.py
yoratoni/pyostra
d23e871ec8a44c4220d21f15fecd10b77de8b3db
[ "BSD-3-Clause" ]
null
null
null
try: from setuptools import setup except ImportError: from distutils.core import setup NAME = 'pyostra' VERSION = '0.1.4' DESCRIPTION = 'THe internal Python package used for the Ostra projects such as the advanced NFTs generator.' LONG_DESCRIPTION = open('README.md').read() + '\n\n' + open('CHANGELOG.md').rea...
27.736842
108
0.669829
c1f393c8b94cc7e5842409be6d0e7043f9d4b4e5
6,468
py
Python
test/functional/nulldummy.py
RossClelland/uscbuild
db77df86e94ba4362040d5bedf1c71e5b4f01654
[ "MIT" ]
null
null
null
test/functional/nulldummy.py
RossClelland/uscbuild
db77df86e94ba4362040d5bedf1c71e5b4f01654
[ "MIT" ]
null
null
null
test/functional/nulldummy.py
RossClelland/uscbuild
db77df86e94ba4362040d5bedf1c71e5b4f01654
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016 The Uscoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test NULLDUMMY softfork. Connect to a single node. Generate 2 blocks (save the coinbases for later). Generat...
49
145
0.700989
e21658e6d5c89d18bb9c7e6d4017d96d9cc23431
6,792
py
Python
mnist_qkeras3.py
filipemlins/nas-hls4ml
b35afc4f684d803d352776c40f3a6cbbf47c4b1c
[ "MIT" ]
null
null
null
mnist_qkeras3.py
filipemlins/nas-hls4ml
b35afc4f684d803d352776c40f3a6cbbf47c4b1c
[ "MIT" ]
null
null
null
mnist_qkeras3.py
filipemlins/nas-hls4ml
b35afc4f684d803d352776c40f3a6cbbf47c4b1c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jul 2 19:57:08 2020 @author: filipe """ #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jul 1 16:44:49 2020 @author: filipe """ #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jul 1 15:05:57 2020 @author: fil...
36.913043
128
0.727915
95afc7c4f2518cad2f62a0ffd2f953374558d713
279
py
Python
src/napari_live_recording/common/common.py
jethro33/napari-live-recording
6c3fcc33bd18cd090e3f89971b630d1800e29e4d
[ "MIT" ]
7
2021-10-11T17:45:33.000Z
2022-02-07T16:10:42.000Z
src/napari_live_recording/common/common.py
jethro33/napari-live-recording
6c3fcc33bd18cd090e3f89971b630d1800e29e4d
[ "MIT" ]
2
2021-11-01T09:00:11.000Z
2022-01-24T16:21:05.000Z
src/napari_live_recording/common/common.py
jethro33/napari-live-recording
6c3fcc33bd18cd090e3f89971b630d1800e29e4d
[ "MIT" ]
null
null
null
from dataclasses import dataclass @dataclass class ROI: """Dataclass for ROI settings. """ offset_x: int = 0 offset_y: int = 0 height: int = 0 width: int = 0 ofs_x_step: int = 1 ofs_y_step: int = 1 width_step: int = 1 height_step: int = 1
19.928571
34
0.609319
fdd8ec53840cd3d076b869005edbbfedc70e6a57
185
py
Python
tests/parser/aggregates.count.grounding.5.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
tests/parser/aggregates.count.grounding.5.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
tests/parser/aggregates.count.grounding.5.test.py
veltri/DLV2
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
[ "Apache-2.0" ]
null
null
null
input = """ b(1). c(a). a(A,B) | na(A,B) :- c(A), b(B). :- 1 < #count{A:a(A,B)}, b(B). """ output = """ b(1). c(a). a(A,B) | na(A,B) :- c(A), b(B). :- 1 < #count{A:a(A,B)}, b(B). """
12.333333
31
0.351351
849127de739f0a24c7da77f54f2f52a4c287b9c7
164
py
Python
kattis/mixedfractions.py
terror/Solutions
1ad33daec95b565a38ac4730261593bcf249ac86
[ "CC0-1.0" ]
2
2021-04-05T14:26:37.000Z
2021-06-10T04:22:01.000Z
kattis/mixedfractions.py
terror/Solutions
1ad33daec95b565a38ac4730261593bcf249ac86
[ "CC0-1.0" ]
null
null
null
kattis/mixedfractions.py
terror/Solutions
1ad33daec95b565a38ac4730261593bcf249ac86
[ "CC0-1.0" ]
null
null
null
import sys for i in sys.stdin: n1, n2 = list(map(int, i.split())) if n1 == 0: break a = n1 // n2 b = n1 % n2 print("{0} {1} / {2}".format(a, b, n2))
16.4
41
0.493902
f0eedc0fde6a63c53a8dde9ca5f2c6c80e9cf44d
4,099
py
Python
pyglet/media/codecs/__init__.py
AnantTiwari-Naman/pyglet
4774f2889057da95a78785a69372112931e6a620
[ "BSD-3-Clause" ]
1
2021-07-30T17:36:39.000Z
2021-07-30T17:36:39.000Z
pyglet/media/codecs/__init__.py
AnantTiwari-Naman/pyglet
4774f2889057da95a78785a69372112931e6a620
[ "BSD-3-Clause" ]
null
null
null
pyglet/media/codecs/__init__.py
AnantTiwari-Naman/pyglet
4774f2889057da95a78785a69372112931e6a620
[ "BSD-3-Clause" ]
1
2021-09-16T20:47:07.000Z
2021-09-16T20:47:07.000Z
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # Copyright (c) 2008-2021 pyglet contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the follo...
32.275591
78
0.664552
4b605742a04ef96398c1b781fdbf7144f3aa1a93
2,670
py
Python
yt_dlp/extractor/gab.py
tameiki000/ytdl-patched
feba3d336892845cef553436818170554cfa5228
[ "Unlicense" ]
80
2021-05-25T11:33:49.000Z
2022-03-29T20:36:53.000Z
yt_dlp/extractor/gab.py
tameiki000/ytdl-patched
feba3d336892845cef553436818170554cfa5228
[ "Unlicense" ]
22
2021-05-08T13:44:12.000Z
2022-03-30T01:27:23.000Z
yt_dlp/extractor/gab.py
tameiki000/ytdl-patched
feba3d336892845cef553436818170554cfa5228
[ "Unlicense" ]
22
2021-05-07T05:01:27.000Z
2022-03-26T19:10:54.000Z
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( clean_html, str_to_int, ) class GabTVIE(InfoExtractor): _VALID_URL = r'https?://tv\.gab\.com/channel/[^/]+/view/(?P<id>[a-z0-9-]+)' _TESTS = [{ 'url': 'https://tv.gab.com...
39.850746
120
0.55206
3d28b49bdc9507aa2f5ccac1f0a213d1b9e6d522
3,552
py
Python
SentyectorAPI/SentyectorAPI/settings.py
vaibhavarora102/Sentyector
c9023fe38e3517bd39b932a3282f5aebe5e84fbf
[ "MIT" ]
null
null
null
SentyectorAPI/SentyectorAPI/settings.py
vaibhavarora102/Sentyector
c9023fe38e3517bd39b932a3282f5aebe5e84fbf
[ "MIT" ]
null
null
null
SentyectorAPI/SentyectorAPI/settings.py
vaibhavarora102/Sentyector
c9023fe38e3517bd39b932a3282f5aebe5e84fbf
[ "MIT" ]
3
2021-04-10T06:33:07.000Z
2021-04-10T12:04:19.000Z
""" Django settings for SentyectorAPI project. Generated by 'django-admin startproject' using Django 3.0.8. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import...
26.311111
91
0.69848
61e6c850d206ef7715fe38c40388c7e2451d3689
2,291
py
Python
sources/main.py
guillaumelamirand/manga-downloader
7d93b0dd4b44f865b8e0511f17f5a4e5ac470a8b
[ "MIT" ]
null
null
null
sources/main.py
guillaumelamirand/manga-downloader
7d93b0dd4b44f865b8e0511f17f5a4e5ac470a8b
[ "MIT" ]
null
null
null
sources/main.py
guillaumelamirand/manga-downloader
7d93b0dd4b44f865b8e0511f17f5a4e5ac470a8b
[ "MIT" ]
null
null
null
import logging from setup import config from models import Sources, Mangas, CalibreApi, Notification, HomeAssistant # Load datas Sources.load_items(config) Mangas.load_items(config) # Init calibre client calibre_api = CalibreApi(config) # Init home assistant client notifications = [] home_assistant = HomeAssistant(...
33.691176
165
0.721955
9e54ae6e84db3e95e7d925ba08e55467da2a62ee
16,541
py
Python
ravendb/documents/indexes/index_creation.py
ravendb/RavenDB-Python-Client
6286b459b501e755fe8e8591a48acf8616605ccd
[ "MIT" ]
8
2016-10-08T17:45:44.000Z
2018-05-29T12:16:43.000Z
ravendb/documents/indexes/index_creation.py
ravendb/RavenDB-Python-Client
6286b459b501e755fe8e8591a48acf8616605ccd
[ "MIT" ]
5
2017-02-12T15:50:53.000Z
2017-09-18T12:25:01.000Z
ravendb/documents/indexes/index_creation.py
ravendb/RavenDB-Python-Client
6286b459b501e755fe8e8591a48acf8616605ccd
[ "MIT" ]
8
2016-07-03T07:59:12.000Z
2017-09-18T11:22:23.000Z
import logging from abc import abstractmethod, ABC from typing import Generic, TypeVar, Union, Dict, Set, Callable, Optional, List, Collection from ravendb import constants from ravendb.documents.conventions.document_conventions import DocumentConventions from ravendb.documents.store.definition import DocumentStore, D...
41.560302
117
0.703162
d9bf3e6653b7deccba603eafbb06b05e748d56b1
2,542
py
Python
PyBank/main.py
palolo02/Python-Challenge
ab7b2a7be34bcd2de1b569904113e746730f22e2
[ "ADSL" ]
null
null
null
PyBank/main.py
palolo02/Python-Challenge
ab7b2a7be34bcd2de1b569904113e746730f22e2
[ "ADSL" ]
null
null
null
PyBank/main.py
palolo02/Python-Challenge
ab7b2a7be34bcd2de1b569904113e746730f22e2
[ "ADSL" ]
null
null
null
# =============================================== # Paolo Vega # Bootcamp Data Analytics # Version 1.0.0 03/02/2020 # 1.0.1 03/04/2020 # 1.0.2 03/05/2020 # 1.0.3 03/06/2020 # File to run the PyBank analysis of the financial records of our company # =======================================...
31.382716
85
0.678206
48bfae94a1fb650370c10c7ce22111b37b29f4c4
382
py
Python
park_management/park_management/report/item_wise_purchase_register_simple/item_wise_purchase_register_simple.py
iRaySpace/park_management
e4b95043fd2410c057f6353e5e8a65f51550033c
[ "MIT" ]
null
null
null
park_management/park_management/report/item_wise_purchase_register_simple/item_wise_purchase_register_simple.py
iRaySpace/park_management
e4b95043fd2410c057f6353e5e8a65f51550033c
[ "MIT" ]
null
null
null
park_management/park_management/report/item_wise_purchase_register_simple/item_wise_purchase_register_simple.py
iRaySpace/park_management
e4b95043fd2410c057f6353e5e8a65f51550033c
[ "MIT" ]
null
null
null
# Copyright (c) 2013, 9t9it and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe def execute(filters=None): from park_management.park_management.report.item_wise_sales_register_simple.item_wise_sales_register_simple import ( execute, ...
27.285714
120
0.790576
f75ba048348160d9a556d711adf79144a574bf0a
6,099
py
Python
tools/lib/uobjnew.py
mrks/bcc
321c9c979889abce48d0844b3d539ec9a01e6f3c
[ "Apache-2.0" ]
2
2020-08-14T16:41:10.000Z
2021-07-07T15:10:33.000Z
tools/lib/uobjnew.py
mrks/bcc
321c9c979889abce48d0844b3d539ec9a01e6f3c
[ "Apache-2.0" ]
9
2021-07-29T21:15:28.000Z
2022-02-16T18:17:49.000Z
tools/lib/uobjnew.py
mrks/bcc
321c9c979889abce48d0844b3d539ec9a01e6f3c
[ "Apache-2.0" ]
3
2016-09-16T12:09:38.000Z
2022-03-26T22:45:56.000Z
#!/usr/bin/python # @lint-avoid-python-3-compatibility-imports # # uobjnew Summarize object allocations in high-level languages. # For Linux, uses BCC, eBPF. # # USAGE: uobjnew [-h] [-T TOP] [-v] {c,java,ruby,tcl} pid [interval] # # Copyright 2016 Sasha Goldshtein # Licensed under the Apache License, Version ...
28.905213
78
0.627152
7417a99b41340623450e661369cbd40a37294af9
5,248
py
Python
pepdb/core/templatetags/jinja_filters.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
7
2015-12-21T03:52:46.000Z
2020-07-24T19:17:23.000Z
pepdb/core/templatetags/jinja_filters.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
12
2016-03-05T18:11:05.000Z
2021-06-17T20:20:03.000Z
pepdb/core/templatetags/jinja_filters.py
dchaplinsky/pep.org.ua
8633a65fb657d7f04dbdb12eb8ae705fa6be67e3
[ "MIT" ]
4
2016-07-17T20:19:38.000Z
2021-03-23T12:47:20.000Z
# coding: utf-8 from __future__ import unicode_literals from itertools import groupby from urlparse import urlsplit, urlunsplit from urllib import unquote_plus from decimal import Decimal, InvalidOperation from django.utils.safestring import mark_safe from django_markdown.utils import markdown as _markdown from djang...
28.835165
107
0.635671
c0f8c117a0475d7b6f508713cf62dbbd9a62b092
2,289
py
Python
setup.py
Dresdn/python-semantic-release
772573f6636f0a93c617cff29297e98edcb240df
[ "MIT" ]
null
null
null
setup.py
Dresdn/python-semantic-release
772573f6636f0a93c617cff29297e98edcb240df
[ "MIT" ]
null
null
null
setup.py
Dresdn/python-semantic-release
772573f6636f0a93c617cff29297e98edcb240df
[ "MIT" ]
null
null
null
import re import sys from setuptools import find_packages, setup def _read_long_description(): try: with open("readme.rst") as fd: return fd.read() except Exception: return None with open("semantic_release/__init__.py", "r") as fd: version = re.search( r'^__version__...
28.259259
76
0.558759
e2927691a186ca1d1e943dfbfcce71404b43afe5
963
py
Python
dags/exercise2.py
cg-mihabatic/airflow-training-skeleton
dd57da610815f494269380f935c4ca26a5e8f5cc
[ "Apache-2.0" ]
null
null
null
dags/exercise2.py
cg-mihabatic/airflow-training-skeleton
dd57da610815f494269380f935c4ca26a5e8f5cc
[ "Apache-2.0" ]
null
null
null
dags/exercise2.py
cg-mihabatic/airflow-training-skeleton
dd57da610815f494269380f935c4ca26a5e8f5cc
[ "Apache-2.0" ]
null
null
null
import airflow from airflow.models import DAG from airflow.operators.python_operator import PythonOperator from airflow.operators.bash_operator import BashOperator from airflow.operators.dummy_operator import DummyOperator from datetime import datetime args = { 'owner': 'Miha', 'start_date': datetime(2019,11,17), ...
24.075
71
0.739356
92d7db132e9ab90f5e6d4fceb6453a89ab784dc4
674
py
Python
vendor-local/lib/python/djcelery/__init__.py
Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c
f80e7c0cff97a1e9b301aa04015db983c7645778
[ "BSD-3-Clause" ]
4
2015-05-08T16:58:53.000Z
2019-09-06T05:30:59.000Z
vendor-local/lib/python/djcelery/__init__.py
Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c
f80e7c0cff97a1e9b301aa04015db983c7645778
[ "BSD-3-Clause" ]
2
2019-02-17T17:44:53.000Z
2019-03-28T03:54:39.000Z
vendor-local/lib/python/djcelery/__init__.py
Mozilla-GitHub-Standards/54c69db06ef83bda60e995a6c34ecfd168ca028994e40ce817295415bb409f0c
f80e7c0cff97a1e9b301aa04015db983c7645778
[ "BSD-3-Clause" ]
7
2015-05-21T15:38:29.000Z
2019-10-28T23:39:06.000Z
"""Django Celery Integration.""" # :copyright: (c) 2009 - 2012 by Ask Solem. # :license: BSD, see LICENSE for more details. from __future__ import absolute_import import os VERSION = (2, 5, 3) __version__ = ".".join(map(str, VERSION[0:3])) + "".join(VERSION[3:]) __author__ = "Ask Solem" __contact__ = "ask@celerypro...
25.923077
75
0.725519
e75200729f106399ca87e01a27cc41b6b3d13ac5
4,249
py
Python
Lib/site-packages/pygments/lexers/_vbscript_builtins.py
nemarugommula/ecommerce
60185e79655fbaf0fcad9e877a886fe9eb3c4451
[ "bzip2-1.0.6" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
Lib/site-packages/pygments/lexers/_vbscript_builtins.py
nemarugommula/ecommerce
60185e79655fbaf0fcad9e877a886fe9eb3c4451
[ "bzip2-1.0.6" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
Lib/site-packages/pygments/lexers/_vbscript_builtins.py
nemarugommula/ecommerce
60185e79655fbaf0fcad9e877a886fe9eb3c4451
[ "bzip2-1.0.6" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
# -*- coding: utf-8 -*- """ pygments.lexers._vbscript_builtins ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ These are manually translated lists from http://www.indusoft.com/pdf/VBScript%20Reference.pdf. :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for det...
15.120996
70
0.480348
1e81afe73e3a2ef5f01de51e47bc7e230019d41d
1,586
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_association.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_association.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_association.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "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 ...
38.682927
78
0.626734
cf00777d2380cb59d5bb2ebe1d771c0e79f85eaa
106,368
py
Python
neutron/tests/unit/agent/linux/test_dhcp.py
lhyzxj314/neutron
5600261f782f10c2dd04cdc2ea6a64287499c8ad
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/agent/linux/test_dhcp.py
lhyzxj314/neutron
5600261f782f10c2dd04cdc2ea6a64287499c8ad
[ "Apache-2.0" ]
1
2019-08-16T14:02:19.000Z
2019-08-16T14:02:19.000Z
neutron/tests/unit/agent/linux/test_dhcp.py
MrCocoaCat/Neutron_Ocata
d7d8e0278cfaa91801083f476d5dd3520ad5d0bd
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 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...
42.855761
79
0.590967
d5f6c4f994788655aa9059e8ae3b7784f29200ca
694
py
Python
tests/conftest.py
epkanol/pytest-bdd
2026dec01e3ab68114fb08f466ae72a992adda03
[ "MIT" ]
944
2015-02-28T20:13:01.000Z
2022-03-29T16:04:58.000Z
tests/conftest.py
epkanol/pytest-bdd
2026dec01e3ab68114fb08f466ae72a992adda03
[ "MIT" ]
393
2015-03-02T21:01:12.000Z
2022-03-30T13:04:04.000Z
tests/conftest.py
epkanol/pytest-bdd
2026dec01e3ab68114fb08f466ae72a992adda03
[ "MIT" ]
178
2015-03-12T21:46:51.000Z
2022-03-24T11:46:15.000Z
import pytest from tests.utils import PYTEST_6 pytest_plugins = "pytester" def pytest_generate_tests(metafunc): if "pytest_params" in metafunc.fixturenames: if PYTEST_6: parametrizations = [ pytest.param([], id="no-import-mode"), pytest.param(["--import-mode=p...
30.173913
88
0.566282
c4d3c61571f5a9b854b663a6503b576f192eab87
889
py
Python
sync.py
fieldmaps/edge-matcher
d5aac4b1fbd5da3518b5a33fb6ddbe4e936af3bd
[ "MIT" ]
1
2021-11-10T12:59:01.000Z
2021-11-10T12:59:01.000Z
sync.py
fieldmaps/admin-boundaries
6ec585174656cdc1d209c5ccd31087b7aa6d9929
[ "MIT" ]
null
null
null
sync.py
fieldmaps/admin-boundaries
6ec585174656cdc1d209c5ccd31087b7aa6d9929
[ "MIT" ]
null
null
null
import subprocess from pathlib import Path cwd = Path(__file__).parent srcs = { 'edge-matched': ['humanitarian', 'open'], 'cod': ['extended', 'originals'], 'geoboundaries': ['extended', 'originals'], } exts = ['json', 'csv', 'xlsx'] if __name__ == '__main__': for src in srcs: for grp in srcs[s...
28.677419
54
0.446569
d8f13aecfa0741ff375ed956c3760694922630f8
13,248
py
Python
tests/ignite/contrib/metrics/test_cohen_kappa.py
aniezurawski/ignite
f584e8a9660dede63c3f9717ad4cb861e9cebd7b
[ "BSD-3-Clause" ]
null
null
null
tests/ignite/contrib/metrics/test_cohen_kappa.py
aniezurawski/ignite
f584e8a9660dede63c3f9717ad4cb861e9cebd7b
[ "BSD-3-Clause" ]
null
null
null
tests/ignite/contrib/metrics/test_cohen_kappa.py
aniezurawski/ignite
f584e8a9660dede63c3f9717ad4cb861e9cebd7b
[ "BSD-3-Clause" ]
null
null
null
import os from unittest.mock import patch import pytest import sklearn import torch from sklearn.metrics import cohen_kappa_score import ignite.distributed as idist from ignite.contrib.metrics import CohenKappa from ignite.engine import Engine from ignite.exceptions import NotComputableError torch.manual_seed(12) ...
37.109244
107
0.646815
33b11e0369b27892deb45008b3be2b486ca61156
1,392
py
Python
tests/pdk/finfet/test_transistor.py
mabrains/ALIGN-public
9a6c14310de13df369a8340f465911b629f15a3f
[ "BSD-3-Clause" ]
null
null
null
tests/pdk/finfet/test_transistor.py
mabrains/ALIGN-public
9a6c14310de13df369a8340f465911b629f15a3f
[ "BSD-3-Clause" ]
null
null
null
tests/pdk/finfet/test_transistor.py
mabrains/ALIGN-public
9a6c14310de13df369a8340f465911b629f15a3f
[ "BSD-3-Clause" ]
null
null
null
from align.pdk.finfet import CanvasPDK, mos, tap from align.schema.transistor import Transistor from .helper import * def test_one(): tx = Transistor(model_name='n', nf=2, nfin=4, device_type='stack') data = mos(CanvasPDK, tx, track_pattern={'G':[6], 'D':[4], 'S':[2]}) fn = "test_transistor_1" compare...
30.26087
73
0.647989
6a547bbe83283bedc605fd94efcf5b99a6167fbd
1,152
py
Python
peewee_aio/databases.py
klen/peewee-aio
723c5f5333f5a814fefe682b175faadb9e86f747
[ "MIT" ]
5
2021-09-07T13:39:47.000Z
2022-01-14T16:01:26.000Z
peewee_aio/databases.py
klen/peewee-aio
723c5f5333f5a814fefe682b175faadb9e86f747
[ "MIT" ]
1
2021-11-01T06:28:12.000Z
2021-11-01T12:05:50.000Z
peewee_aio/databases.py
klen/peewee-aio
723c5f5333f5a814fefe682b175faadb9e86f747
[ "MIT" ]
null
null
null
from typing import Dict, Type import aio_databases as aiodb import peewee as pw from playhouse import db_url class Database(pw.Database): enabled: bool = False def execute(self, *args, **kwargs): if not self.enabled: raise RuntimeError( "Sync operations are not available...
24
88
0.684028
2d1e2adcd467090621ea506e8509d9887ad3876f
346
py
Python
test_call.py
chris-hld/SAFpy
4ccae1a92dddd1f5726679792eee58cafa806385
[ "MIT" ]
2
2020-08-05T15:54:28.000Z
2021-07-12T08:43:45.000Z
test_call.py
chris-hld/SAFpy
4ccae1a92dddd1f5726679792eee58cafa806385
[ "MIT" ]
null
null
null
test_call.py
chris-hld/SAFpy
4ccae1a92dddd1f5726679792eee58cafa806385
[ "MIT" ]
null
null
null
import numpy as np import safpy safpy.wrapit.whoami() print(safpy.wrapit.factorial(3)) print(safpy.sh.getSHreal(1, [0, 0])) print(safpy.sh.getSHcomplex(1, [0, 0])) print(safpy.vbap.generateVBAPgainTable3D(np.reshape(np.arange(10), (5, 2)), 1, 1, 0, 0, 0)) h = safpy.afstft.AfST...
24.714286
75
0.615607
81c5f5684cf9b3da0fcab6b865a28e4a394e93ab
86,043
py
Python
tests/functional/transactions/test_read_consist_sttm_restart_max_limit.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/functional/transactions/test_read_consist_sttm_restart_max_limit.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/functional/transactions/test_read_consist_sttm_restart_max_limit.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: functional.transactions.read_consist_sttm_restart_max_limit # title: READ CONSISTENCY. Maximal number of statement-level restarts must be 10. # decription: # Initial article for reading: # https://asktom.oracle.com/pls/asktom/f?p=100:11:::::P...
80.943556
266
0.591425
4a426ab84ee0d0305cb15f73517664d18921a819
2,944
py
Python
src/scripts/sfh_vs_fb.py
rodluger/hush
f77f4783864e9f0dd86eedf01ae300d041747ba4
[ "MIT" ]
null
null
null
src/scripts/sfh_vs_fb.py
rodluger/hush
f77f4783864e9f0dd86eedf01ae300d041747ba4
[ "MIT" ]
null
null
null
src/scripts/sfh_vs_fb.py
rodluger/hush
f77f4783864e9f0dd86eedf01ae300d041747ba4
[ "MIT" ]
null
null
null
""" Generate figure 1 of the paper based on galaxy m12i and the Moe+19 metallicity-dependent binary fraction """ import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib import rcParams import paths def get_FeH_from_Z(Z, Z_sun=0.02): """ Converts from Z to FeH under the assumpti...
25.6
104
0.636549
bb8db686bcdac461c7ef2053153583571c9d2b04
19,108
py
Python
src/document/icr_processor.py
gregbugaj/marie-ai
f51a74f19ab5d7231c9f8a426284feff1671b974
[ "MIT" ]
4
2021-09-23T22:38:48.000Z
2022-01-19T12:03:02.000Z
src/document/icr_processor.py
gregbugaj/marie-icr
f51a74f19ab5d7231c9f8a426284feff1671b974
[ "MIT" ]
17
2021-12-22T16:37:21.000Z
2022-03-16T16:07:34.000Z
src/document/icr_processor.py
gregbugaj/marie-ai
f51a74f19ab5d7231c9f8a426284feff1671b974
[ "MIT" ]
null
null
null
# Add parent to the search path, so we can reference the modules(craft, pix2pix) here without throwing and exception import os import sys from models.icr.dataset import AlignCollate, RawDataset from models.icr.memory_dataset import MemoryDataset from models.icr.model import Model from models.icr.utils import CTCLabelC...
39.479339
158
0.554689
ef70bf0c0028a9c50ca05e16fcdc750d4b6c0d58
2,200
py
Python
typhos/tests/test_plot.py
ZLLentz/typhos
1fb321c1f1c222ac02552ecb9c86d37d5ddf3274
[ "BSD-3-Clause-LBNL" ]
9
2017-11-05T17:22:23.000Z
2019-10-18T14:21:24.000Z
typhos/tests/test_plot.py
ZLLentz/typhos
1fb321c1f1c222ac02552ecb9c86d37d5ddf3274
[ "BSD-3-Clause-LBNL" ]
244
2020-01-09T22:13:29.000Z
2022-02-24T21:40:16.000Z
typhos/tests/test_plot.py
ZLLentz/typhos
1fb321c1f1c222ac02552ecb9c86d37d5ddf3274
[ "BSD-3-Clause-LBNL" ]
11
2020-05-20T19:08:37.000Z
2022-02-08T19:20:35.000Z
""" Tests for the plot tool. """ import pytest from ophyd import EpicsSignal, Signal from typhos import register_signal from typhos.tools.plot import TyphosTimePlot from typhos.utils import channel_from_signal @pytest.fixture(scope='session') def sim_signal(): sim_sig = Signal(name='tst_this_2') sim_sig.put(...
31.884058
69
0.725
a5d301867fc0909eb8bc01dab2f140df8d9fed54
483
py
Python
accounts/admin.py
YaroslavChyhryn/Djangogram
2de402eedbc9a77d6bd2ba06cc8b7ad966adff2c
[ "MIT" ]
null
null
null
accounts/admin.py
YaroslavChyhryn/Djangogram
2de402eedbc9a77d6bd2ba06cc8b7ad966adff2c
[ "MIT" ]
null
null
null
accounts/admin.py
YaroslavChyhryn/Djangogram
2de402eedbc9a77d6bd2ba06cc8b7ad966adff2c
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.models import User from .models import UserProfile class UserProfileInline(admin.StackedInline): """ Display user profile fields inline with django-user model """ model = UserProf...
23
64
0.770186
f47d09e7703ecb2829bf34fa754841476cb20785
1,463
py
Python
scons/preprocessor_filter.py
uw-midsun/fwxv
e1ad75607304d6e95420417d8996897e38501503
[ "MIT" ]
4
2022-01-15T17:49:00.000Z
2022-02-14T05:23:59.000Z
scons/preprocessor_filter.py
uw-midsun/fwxv
e1ad75607304d6e95420417d8996897e38501503
[ "MIT" ]
11
2022-01-22T23:15:15.000Z
2022-03-12T21:30:20.000Z
scons/preprocessor_filter.py
uw-midsun/fwxv
e1ad75607304d6e95420417d8996897e38501503
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os def preprocessor_filter(filename, source_file): """ A SCons builder that filters preprocessor output to strip out #include'd file content. We also strip out the linemarkers output by the C preprocessor. `filename` is the name of the base file whose content we want to pr...
38.5
90
0.611757
9a07833d6aaa5314b379d86b7f265b80cca755f1
964
py
Python
pystratum_common/wrapper/Singleton0Wrapper.py
DatabaseStratum/py-stratum-common
27bbbc7af8eeefed966c1e955b69cd345fefb7af
[ "MIT" ]
null
null
null
pystratum_common/wrapper/Singleton0Wrapper.py
DatabaseStratum/py-stratum-common
27bbbc7af8eeefed966c1e955b69cd345fefb7af
[ "MIT" ]
null
null
null
pystratum_common/wrapper/Singleton0Wrapper.py
DatabaseStratum/py-stratum-common
27bbbc7af8eeefed966c1e955b69cd345fefb7af
[ "MIT" ]
null
null
null
from abc import ABC from pystratum_common.wrapper.Wrapper import Wrapper class Singleton0Wrapper(Wrapper, ABC): """ Wrapper method generator for stored procedures that are selecting 0 or 1 row with one column only. """ # -------------------------------------------------------------------------------...
32.133333
120
0.387967
28e2575f8d09fa88c27c0859235b7f0c1468e571
532
py
Python
src/middleware.py
FloatingComet62/EzServer
7ae40a28e1f69344faa21cb1887c23b70e4837a2
[ "MIT" ]
2
2022-02-02T07:32:10.000Z
2022-02-02T07:39:31.000Z
src/middleware.py
FloatingComet62/EzServer
7ae40a28e1f69344faa21cb1887c23b70e4837a2
[ "MIT" ]
null
null
null
src/middleware.py
FloatingComet62/EzServer
7ae40a28e1f69344faa21cb1887c23b70e4837a2
[ "MIT" ]
1
2022-02-02T18:01:20.000Z
2022-02-02T18:01:20.000Z
# def NAME(self, query): # do stuff # return htmlFileIndex def homePage(self, query): if query: if query["auth"]: if query["auth"]=="69": return 0 else: return 1 else: return 1 else: return 1 def exitPage(self, qu...
19
36
0.422932
66eac7a614ebf5d4ad7514ce38a805afa7e8c6c9
4,439
py
Python
dynamic_db_router/router.py
yetercatikkas/django-dynamic-db-router
6496f7d27c5a6d5c67eea6c29581f969b35df123
[ "MIT" ]
1
2020-01-24T08:51:36.000Z
2020-01-24T08:51:36.000Z
dynamic_db_router/router.py
voltlines/django-dynamic-db-router
6496f7d27c5a6d5c67eea6c29581f969b35df123
[ "MIT" ]
null
null
null
dynamic_db_router/router.py
voltlines/django-dynamic-db-router
6496f7d27c5a6d5c67eea6c29581f969b35df123
[ "MIT" ]
null
null
null
import threading from functools import wraps from uuid import uuid4 from django.db import connections THREAD_LOCAL = threading.local() NON_DECLARED_DB = [None] class DynamicDbRouter(object): """A router that decides what db to read from based on a variable local to the current thread. """ def db_fo...
34.410853
86
0.655553
7c22163640c3f4b4446079bf506eaa8423a88d9f
12,002
py
Python
4. stacking_test.py
galgodon/auroral_lines
9c322a93c6d95c672a89a420cc72c52e71663e09
[ "MIT" ]
null
null
null
4. stacking_test.py
galgodon/auroral_lines
9c322a93c6d95c672a89a420cc72c52e71663e09
[ "MIT" ]
null
null
null
4. stacking_test.py
galgodon/auroral_lines
9c322a93c6d95c672a89a420cc72c52e71663e09
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Mar 8 12:46:05 2019 @author: Gerome Algodon """ #%% # ============================================================================= # Import data # ============================================================================= from astropy.io import fits import num...
36.591463
167
0.605316
e698d04e2b0e670d43ec5ea1904a6fd8af54d667
1,504
py
Python
src/util/paths.py
cfloressuazo/spike-challenge
b060747431fad60e502af7e8604513597b45fb18
[ "MIT" ]
null
null
null
src/util/paths.py
cfloressuazo/spike-challenge
b060747431fad60e502af7e8604513597b45fb18
[ "MIT" ]
null
null
null
src/util/paths.py
cfloressuazo/spike-challenge
b060747431fad60e502af7e8604513597b45fb18
[ "MIT" ]
null
null
null
import os def get_root_path(root_dir_name: str, max_parent_directories: int = 10) -> str: current_path = os.path.abspath(os.path.dirname(__file__)) for i in range(max_parent_directories): if os.path.basename(current_path) == root_dir_name: return current_path current_path = os.path...
39.578947
106
0.792553
8c844a5a6314208efcfe34de767528bf93b992b2
8,809
py
Python
docs/discord/update.py
nishantkr18/webots
6ab631adb2e69906fc251cc77d690e67195de222
[ "Apache-2.0" ]
null
null
null
docs/discord/update.py
nishantkr18/webots
6ab631adb2e69906fc251cc77d690e67195de222
[ "Apache-2.0" ]
null
null
null
docs/discord/update.py
nishantkr18/webots
6ab631adb2e69906fc251cc77d690e67195de222
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 1996-2020 Cyberbotics Ltd. # # 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 # # U...
52.748503
125
0.473266
18d130131aa4d3f7a05f6de3198a021a99e43193
9,401
py
Python
qc_tests/odd_cluster.py
rjhd2/HadISD_v3
420ebb3c965b61ad394f15b0f71a37b73985a97d
[ "BSD-3-Clause" ]
3
2020-05-27T10:54:15.000Z
2021-01-13T08:40:27.000Z
qc_tests/odd_cluster.py
rjhd2/HadISD_v3
420ebb3c965b61ad394f15b0f71a37b73985a97d
[ "BSD-3-Clause" ]
null
null
null
qc_tests/odd_cluster.py
rjhd2/HadISD_v3
420ebb3c965b61ad394f15b0f71a37b73985a97d
[ "BSD-3-Clause" ]
1
2021-01-13T08:40:34.000Z
2021-01-13T08:40:34.000Z
#!/usr/local/sci/bin/python #***************************** # # QC checks. # # #************************************************************************ # SVN Info #$Rev:: 219 $: Revision of last commit #$Author:: rdunn $:...
31.441472
133
0.588235
17ce9c17400aa36654a27c7f1200ef022e6682a0
1,095
py
Python
ml/rl/preprocessing/sparse_to_dense.py
mikepsinn/Horizon
4ce123062320c0297b80135e0b63759c02bf5699
[ "BSD-3-Clause" ]
2
2020-07-07T07:12:25.000Z
2021-06-29T01:47:25.000Z
ml/rl/preprocessing/sparse_to_dense.py
weiddeng/Horizon
0e7fe9d742c408e1b42803b42e104efbc56bae5b
[ "BSD-3-Clause" ]
1
2021-08-25T16:13:32.000Z
2021-08-25T16:13:32.000Z
ml/rl/preprocessing/sparse_to_dense.py
weiddeng/Horizon
0e7fe9d742c408e1b42803b42e104efbc56bae5b
[ "BSD-3-Clause" ]
1
2019-09-20T02:36:30.000Z
2019-09-20T02:36:30.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import logging from typing import List, Tuple import numpy as np from caffe2.python import workspace from ml.rl.caffe_utils import C2 from ml.rl.preprocessing.normalization import MISSING_VALUE logger = logging.getLogger...
29.594595
84
0.743379
7f8153ef10603484549fb52bb1bdd673f43fd73a
4,186
py
Python
rastervision2/core/evaluation/semantic_segmentation_evaluator.py
sinhmd/raster-vision
c617c49c2446b4d97281895ae953a5630e439e94
[ "Apache-2.0" ]
1
2020-05-27T07:07:58.000Z
2020-05-27T07:07:58.000Z
rastervision2/core/evaluation/semantic_segmentation_evaluator.py
sinhmd/raster-vision
c617c49c2446b4d97281895ae953a5630e439e94
[ "Apache-2.0" ]
null
null
null
rastervision2/core/evaluation/semantic_segmentation_evaluator.py
sinhmd/raster-vision
c617c49c2446b4d97281895ae953a5630e439e94
[ "Apache-2.0" ]
null
null
null
import logging from shapely.geometry import shape, mapping from shapely.strtree import STRtree from rastervision2.core.data import ActivateMixin from rastervision2.core.data.vector_source import GeoJSONVectorSourceConfig from rastervision2.core.evaluation import (ClassificationEvaluator, ...
42.714286
88
0.625179
e20ba461d050825d8906aa12860e0e28d1843345
15,312
py
Python
flask_restful/__init__.py
DisruptiveLabs/flask-restful
4695d18478154209c3f638bd44a5cfb114a4ad18
[ "BSD-3-Clause" ]
null
null
null
flask_restful/__init__.py
DisruptiveLabs/flask-restful
4695d18478154209c3f638bd44a5cfb114a4ad18
[ "BSD-3-Clause" ]
null
null
null
flask_restful/__init__.py
DisruptiveLabs/flask-restful
4695d18478154209c3f638bd44a5cfb114a4ad18
[ "BSD-3-Clause" ]
1
2021-03-29T03:48:25.000Z
2021-03-29T03:48:25.000Z
import difflib from functools import wraps, partial import re from flask import request, Response, url_for from flask import abort as original_flask_abort from flask.views import MethodView from flask.signals import got_request_exception from werkzeug.exceptions import HTTPException, MethodNotAllowed, NotFound from wer...
36.457143
129
0.622453
c3cde15b1a0058271963f467309796825eff460d
586
py
Python
Dataset/Leetcode/train/46/421.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/46/421.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/46/421.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, nums: List[int]) -> List[List[int]]: def rt_help(ls,first): if first >= n: return_ls.append(ls) << -- this line for i in range(n): if marked[i] != 1: ls.append(nums[i]) marked[i] =...
24.416667
54
0.389078
d0ee58a9f00edac9bdf78e05b69ae0adbd7d92ca
22,006
py
Python
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_system_resource_limits.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_system_resource_limits.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_system_resource_limits.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019-2020 Fortinet, Inc. # # This program 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, either version 3 of th...
31.663309
144
0.478279
afde8423eebd5e128ea1494edbff04690480bd81
51,055
py
Python
Python/firms/tpfuncs.py
lnsongxf/OG-USA
9e92129e67f4aea5f3a6b8da4110bf67b99ce88a
[ "CC0-1.0" ]
1
2017-05-23T13:57:53.000Z
2017-05-23T13:57:53.000Z
Python/firms/tpfuncs.py
lnsongxf/OG-USA
9e92129e67f4aea5f3a6b8da4110bf67b99ce88a
[ "CC0-1.0" ]
null
null
null
Python/firms/tpfuncs.py
lnsongxf/OG-USA
9e92129e67f4aea5f3a6b8da4110bf67b99ce88a
[ "CC0-1.0" ]
1
2021-06-03T19:06:24.000Z
2021-06-03T19:06:24.000Z
''' ------------------------------------------------------------------------ This file contains the functions specific to solving for the time path of the OG model with S-period lived agents, exogenous labor, and M industries and I goods. These functions include: get_p_path get_p_tilde_path get_cbepath ...
43.048061
148
0.57916
c72fc1e801c0745013ef239e9d4b49f2f6d085c9
1,978
py
Python
cogs/images.py
L3NNY0969/DogeBot
fe37cac06b739088aa563f35a1b8af5ba53607c7
[ "MIT" ]
null
null
null
cogs/images.py
L3NNY0969/DogeBot
fe37cac06b739088aa563f35a1b8af5ba53607c7
[ "MIT" ]
null
null
null
cogs/images.py
L3NNY0969/DogeBot
fe37cac06b739088aa563f35a1b8af5ba53607c7
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from PIL import Image from PIL import ImageDraw from PIL import ImageFont class images(): def __init__(self, bot): self.bot = bot @commands.command() async def rip(self, ctx, user:discord.Member = None): """Rip dat user""" ...
36.62963
85
0.566229
41028f46de3042b3ee5827a7343ddb35a18c18f1
40
py
Python
hello-world.py
tsaipavant/first_project
dac3cc5413f1ac54dac43029e2589fed005c6013
[ "Apache-2.0" ]
null
null
null
hello-world.py
tsaipavant/first_project
dac3cc5413f1ac54dac43029e2589fed005c6013
[ "Apache-2.0" ]
null
null
null
hello-world.py
tsaipavant/first_project
dac3cc5413f1ac54dac43029e2589fed005c6013
[ "Apache-2.0" ]
null
null
null
print("Om Sairam") print("Hello World")
13.333333
20
0.7
4c174e301add0292787e7a151af91af1c40b9b14
40,580
py
Python
salt/modules/junos.py
edusperoni/salt
c9bfb00c2a81a9d4734fa7d1aa80e893d5ef790b
[ "Apache-2.0" ]
12
2015-01-21T00:18:25.000Z
2021-07-11T07:35:26.000Z
salt/modules/junos.py
edusperoni/salt
c9bfb00c2a81a9d4734fa7d1aa80e893d5ef790b
[ "Apache-2.0" ]
1
2015-10-05T22:03:10.000Z
2015-10-05T22:03:10.000Z
salt/modules/junos.py
edusperoni/salt
c9bfb00c2a81a9d4734fa7d1aa80e893d5ef790b
[ "Apache-2.0" ]
12
2015-01-05T09:50:42.000Z
2019-08-19T01:43:40.000Z
# -*- coding: utf-8 -*- ''' Module to interact with Junos devices. :maturity: new :dependencies: junos-eznc, jxmlease .. note:: Those who wish to use junos-eznc (PyEZ) version >= 2.1.0, must use the latest salt code from github until the next release. Refer to :mod:`junos <salt.proxy.junos>` for information...
30.906321
154
0.577329
d31a6700cb4eecdbb14a0a072083a241e602970d
13,043
py
Python
project/pro1-hog/hog.py
zltshadow/CS61A-2019-summer
0f5dd0be5f51927364aec1bc974526837328b695
[ "MIT" ]
3
2021-11-21T06:09:39.000Z
2022-03-12T08:05:27.000Z
project/pro1-hog/hog.py
zltshadow/CS61A-2019-summer
0f5dd0be5f51927364aec1bc974526837328b695
[ "MIT" ]
null
null
null
project/pro1-hog/hog.py
zltshadow/CS61A-2019-summer
0f5dd0be5f51927364aec1bc974526837328b695
[ "MIT" ]
null
null
null
"""CS 61A Presents The Game of Hog.""" from dice import six_sided, four_sided, make_test_dice from ucb import main, trace, interact GOAL_SCORE = 100 # The goal of Hog is to score 100 points. ###################### # Phase 1: Simulator # ###################### def roll_dice(num_rolls, dice=six_sided): """Simul...
33.272959
117
0.644714
311f00ed580668136220f98a4a4c8ae1c71c2f2a
116
py
Python
answers/Problem_1/Problem_1.py
luciengaitskell/Project-Euler-Answers
2ff221171072ece97379579d77a75daacfa7fcbf
[ "Unlicense" ]
null
null
null
answers/Problem_1/Problem_1.py
luciengaitskell/Project-Euler-Answers
2ff221171072ece97379579d77a75daacfa7fcbf
[ "Unlicense" ]
null
null
null
answers/Problem_1/Problem_1.py
luciengaitskell/Project-Euler-Answers
2ff221171072ece97379579d77a75daacfa7fcbf
[ "Unlicense" ]
null
null
null
totalSum=0 for ii in range(1,1000): if ii % 3 == 0 or ii % 5 == 0: totalSum=totalSum+ii print(totalSum)
19.333333
34
0.594828