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
3484f66a7c223f33327a11f7a1ebb9ff9ad95c13
13,912
py
Python
python/test/test_async.py
born2net/ccxt
9995e50ca28513b9a68f774a3517f2c396cc0001
[ "MIT" ]
null
null
null
python/test/test_async.py
born2net/ccxt
9995e50ca28513b9a68f774a3517f2c396cc0001
[ "MIT" ]
null
null
null
python/test/test_async.py
born2net/ccxt
9995e50ca28513b9a68f774a3517f2c396cc0001
[ "MIT" ]
1
2018-08-09T18:11:13.000Z
2018-08-09T18:11:13.000Z
# -*- coding: utf-8 -*- import argparse import asyncio import os import sys import json import time from os import _exit from traceback import format_tb # ------------------------------------------------------------------------------ root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(...
32.580796
119
0.560667
0bdaf7ad8e77b0f06918e0d8a2f8249fee45818a
940
py
Python
cards/urls.py
introbig/srs
7388027eaf7d015705a4d30f88aa0957fd8aa7d2
[ "MIT" ]
null
null
null
cards/urls.py
introbig/srs
7388027eaf7d015705a4d30f88aa0957fd8aa7d2
[ "MIT" ]
null
null
null
cards/urls.py
introbig/srs
7388027eaf7d015705a4d30f88aa0957fd8aa7d2
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from . import views urlpatterns = [ # url('^card_template/(?P<id>\d+)/$', views.card_view, name="card"), url('^decks_template', views.decks_view, name="decks"), url('^edit_cards_template/(?P<id>\d+)?/?$', views.edit_cards_view, name="edit_cards"), url('^delete_card_tem...
47
125
0.678723
3ad9a553c7d8d0c8d3410211b0ae248f9d81c3e2
147
py
Python
swcms_social/text_pages/apps.py
ivanff/swcms
20d121003243abcc26e41409bc44f1c0ef3c6c2a
[ "MIT" ]
null
null
null
swcms_social/text_pages/apps.py
ivanff/swcms
20d121003243abcc26e41409bc44f1c0ef3c6c2a
[ "MIT" ]
1
2019-06-25T11:17:35.000Z
2019-06-25T11:17:54.000Z
swcms_social/text_pages/apps.py
ivanff/swcms-social
20d121003243abcc26e41409bc44f1c0ef3c6c2a
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TextPagesConfig(AppConfig): name = 'swcms_social.text_pages' verbose_name = 'Текстовые страницы'
21
39
0.768707
c2a8f194b36eb1f8c223be627bf3427150d645a6
6,263
py
Python
src/cltk/nlp.py
yelircaasi/cltk
1583aa24682543a1f33434a21918f039ca27d60c
[ "MIT" ]
1
2017-03-27T18:49:18.000Z
2017-03-27T18:49:18.000Z
src/cltk/nlp.py
yelircaasi/cltk
1583aa24682543a1f33434a21918f039ca27d60c
[ "MIT" ]
1
2021-08-30T16:45:46.000Z
2021-08-30T16:45:46.000Z
src/cltk/nlp.py
yelircaasi/cltk
1583aa24682543a1f33434a21918f039ca27d60c
[ "MIT" ]
null
null
null
"""Primary module for CLTK pipeline.""" from threading import Lock from typing import Type import cltk from cltk.core.data_types import Doc, Language, Pipeline, Process from cltk.core.exceptions import UnimplementedAlgorithmError from cltk.languages.pipelines import ( AkkadianPipeline, ArabicPipeline, Ara...
36.625731
468
0.646495
be6f73b1f8fbd53863e1631da4ed568e8a1e9b72
7,392
py
Python
custom_components/winix/device_wrapper.py
sandervalstar/winix
ef89726da75cd37a10c295c6be3eb35b1faa3751
[ "MIT" ]
null
null
null
custom_components/winix/device_wrapper.py
sandervalstar/winix
ef89726da75cd37a10c295c6be3eb35b1faa3751
[ "MIT" ]
null
null
null
custom_components/winix/device_wrapper.py
sandervalstar/winix
ef89726da75cd37a10c295c6be3eb35b1faa3751
[ "MIT" ]
null
null
null
"""The Winix C545 Air Purifier component.""" from typing import Dict import aiohttp from custom_components.winix.driver import WinixDriver from winix import WinixDeviceStub from .const import ( AIRFLOW_LOW, AIRFLOW_SLEEP, ATTR_AIRFLOW, ATTR_MODE, ATTR_PLASMA, ATTR_POWER, MODE_AUTO, ...
30.545455
98
0.595915
7841c0f6fbd127809ff2a2e57ec92a69734de98c
1,805
py
Python
build/lib/Iris_heureka_code/StaticHandler.py
heureka-code/Iris-heureka-code
47cb4f0c0375ed59fc6e146f3ddf71f24f1b4adf
[ "MIT" ]
null
null
null
build/lib/Iris_heureka_code/StaticHandler.py
heureka-code/Iris-heureka-code
47cb4f0c0375ed59fc6e146f3ddf71f24f1b4adf
[ "MIT" ]
null
null
null
build/lib/Iris_heureka_code/StaticHandler.py
heureka-code/Iris-heureka-code
47cb4f0c0375ed59fc6e146f3ddf71f24f1b4adf
[ "MIT" ]
null
null
null
try: from .Event import Event from .TypeEvent import TypeEvent except ImportError: from Event import Event from TypeEvent import TypeEvent from inspect import getmembers class StaticHandler: def __init__(self, event_names: list[str] = None): """ Oberklasse von der abgeleitet werden...
31.12069
118
0.612742
d04e92e2a5d17a71c37a5280bf5e1999ea8723d6
4,934
py
Python
src/more/babel_i18n/app.py
edemocracy/more.babel_i18n
7ff495596b6bc0a39af3af549efc9948dddc7c0c
[ "BSD-3-Clause" ]
null
null
null
src/more/babel_i18n/app.py
edemocracy/more.babel_i18n
7ff495596b6bc0a39af3af549efc9948dddc7c0c
[ "BSD-3-Clause" ]
null
null
null
src/more/babel_i18n/app.py
edemocracy/more.babel_i18n
7ff495596b6bc0a39af3af549efc9948dddc7c0c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ more.babel_i18n.core ~~~~~~~~~~~~~~~~~~~~ App with Babel support. :copyright: (c) 2017 by Tobias dpausp (c) 2013 by Armin Ronacher, Daniel Neuhäuser and contributors. :license: BSD, see LICENSE for more details. """ import os import sys from babel import...
33.564626
102
0.65302
d5aad2e1840f33253ac9335632cdaf0739bdd119
372
py
Python
apps/vmware/migrations/0007_auto_20200603_1842.py
death-finger/get2unix
1ff6f729f076040d6493251471cc0ee9cdcdc661
[ "MIT" ]
null
null
null
apps/vmware/migrations/0007_auto_20200603_1842.py
death-finger/get2unix
1ff6f729f076040d6493251471cc0ee9cdcdc661
[ "MIT" ]
null
null
null
apps/vmware/migrations/0007_auto_20200603_1842.py
death-finger/get2unix
1ff6f729f076040d6493251471cc0ee9cdcdc661
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-06-03 10:42 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('vmware', '0006_auto_20200603_1346'), ] operations = [ migrations.RenameField( model_name='deploylists', old_name='vm_name', ...
19.578947
47
0.594086
e824680a670e221f460c3bb3180a7bc57d1a940f
1,129
py
Python
setup.py
guilload/pyelf
4781f1d9b22ba389cc0440113e1817d54a041fe3
[ "MIT" ]
3
2018-04-16T12:08:56.000Z
2020-04-11T14:20:57.000Z
setup.py
guilload/pyelf
4781f1d9b22ba389cc0440113e1817d54a041fe3
[ "MIT" ]
null
null
null
setup.py
guilload/pyelf
4781f1d9b22ba389cc0440113e1817d54a041fe3
[ "MIT" ]
5
2020-04-11T14:21:19.000Z
2020-09-29T09:23:40.000Z
import codecs import os from setuptools import find_packages, setup here = os.path.abspath(os.path.dirname(__file__)) with codecs.open(os.path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() with open(os.path.join(here, 'requirements.txt')) as f: requirements = [line.strip() fo...
31.361111
73
0.596988
24807d02ef81e3f785fd113e8d1862d15d578687
328
py
Python
JavPy/main.py
Mico4/JavPy
4561139c29967a264c64a3f045b0d3531add2ef6
[ "MIT" ]
null
null
null
JavPy/main.py
Mico4/JavPy
4561139c29967a264c64a3f045b0d3531add2ef6
[ "MIT" ]
null
null
null
JavPy/main.py
Mico4/JavPy
4561139c29967a264c64a3f045b0d3531add2ef6
[ "MIT" ]
null
null
null
# encoding: utf-8 from __future__ import absolute_import, print_function, unicode_literals from JavPy.app.webserver import app if __name__ == "__main__": # start node.js subprocess # Node.start_node() # # run telegram bot service # run() # run web server app.app.run("0.0.0.0", 8081, threade...
20.5
72
0.685976
2bc13fbdf44190f040c6e725ceaaa861bda97149
8,091
py
Python
homeassistant/helpers/storage.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
4
2016-06-22T12:00:41.000Z
2018-06-11T20:31:25.000Z
homeassistant/helpers/storage.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
58
2020-08-03T07:33:02.000Z
2022-03-31T06:02:05.000Z
homeassistant/helpers/storage.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
6
2019-07-06T00:43:13.000Z
2021-01-16T13:27:06.000Z
"""Helper to help store data.""" import asyncio from json import JSONEncoder import logging import os from typing import Any, Callable, Dict, List, Optional, Type, Union from homeassistant.const import EVENT_HOMEASSISTANT_FINAL_WRITE from homeassistant.core import CALLBACK_TYPE, CoreState, HomeAssistant, callback from...
32.625
88
0.632184
73d874c2f12351846f5c8dcebcee9085b77744ef
43,472
py
Python
tests/protocol/test_hostplugin.py
johanburati/WALinuxAgent
6884f7c0f548186bbf387c01e474237f73597e00
[ "Apache-2.0" ]
null
null
null
tests/protocol/test_hostplugin.py
johanburati/WALinuxAgent
6884f7c0f548186bbf387c01e474237f73597e00
[ "Apache-2.0" ]
7
2021-11-05T10:25:09.000Z
2021-11-25T15:35:09.000Z
tests/protocol/test_hostplugin.py
johanburati/WALinuxAgent
6884f7c0f548186bbf387c01e474237f73597e00
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Microsoft 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...
50.082949
150
0.628059
32aa6d47b4ec9d239bf1c5ef09e6fd34e34d3f41
1,215
py
Python
run.py
ftc-team-8813/robot-client
21e925c4bfc80af7af78e8d40cd66e5008cc6824
[ "MIT" ]
null
null
null
run.py
ftc-team-8813/robot-client
21e925c4bfc80af7af78e8d40cd66e5008cc6824
[ "MIT" ]
null
null
null
run.py
ftc-team-8813/robot-client
21e925c4bfc80af7af78e8d40cd66e5008cc6824
[ "MIT" ]
null
null
null
from client import Connection from freight_frenzy.plot import Plot from freight_frenzy.odo_draw import OdoDraw from freight_frenzy.captsone_detector import CapstoneDetector def capstone_detector(): directory = 'freight_frenzy/test_imgs/' filename = 'vision_img.png' detector = CapstoneDetector(directory +...
24.795918
68
0.647737
d6d09ec63c692ad265d7f0141170b86b6a450019
2,761
py
Python
adspygoogle/dfp/zsi/v201004/ReportService_services.py
hockeyprincess/google-api-dfp-python
efa82a8d85cbdc90f030db9d168790c55bd8b12a
[ "Apache-2.0" ]
null
null
null
adspygoogle/dfp/zsi/v201004/ReportService_services.py
hockeyprincess/google-api-dfp-python
efa82a8d85cbdc90f030db9d168790c55bd8b12a
[ "Apache-2.0" ]
null
null
null
adspygoogle/dfp/zsi/v201004/ReportService_services.py
hockeyprincess/google-api-dfp-python
efa82a8d85cbdc90f030db9d168790c55bd8b12a
[ "Apache-2.0" ]
null
null
null
################################################## # ReportService_services.py # generated by ZSI.generate.wsdl2python ################################################## from ReportService_services_types import * import urlparse, types from ZSI.TCcompound import ComplexType, Struct from ZSI import client import ZSI...
37.310811
109
0.690692
82405998bd7a3388eb9eeae91544824c72dfb178
1,927
py
Python
test/functional/rpc_signmessage.py
cibadmin/GLBTC
52a0c8bfcb7abce8f97412dd1fd817335657896b
[ "MIT" ]
null
null
null
test/functional/rpc_signmessage.py
cibadmin/GLBTC
52a0c8bfcb7abce8f97412dd1fd817335657896b
[ "MIT" ]
null
null
null
test/functional/rpc_signmessage.py
cibadmin/GLBTC
52a0c8bfcb7abce8f97412dd1fd817335657896b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-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. """Test RPC commands for signing and verifying messages.""" from test_framework.test_framework import Glo...
44.813953
119
0.734302
7b0160e992895eeb35abe7f968bac5e3bce88d54
26,237
py
Python
taco/wallet/rl_wallet/rl_wallet.py
fugginoob/taco-blockchain
bee7b5d2ba555728438f7d13cd80f7f8ca3bd353
[ "Apache-2.0" ]
null
null
null
taco/wallet/rl_wallet/rl_wallet.py
fugginoob/taco-blockchain
bee7b5d2ba555728438f7d13cd80f7f8ca3bd353
[ "Apache-2.0" ]
null
null
null
taco/wallet/rl_wallet/rl_wallet.py
fugginoob/taco-blockchain
bee7b5d2ba555728438f7d13cd80f7f8ca3bd353
[ "Apache-2.0" ]
null
null
null
# RLWallet is subclass of Wallet import asyncio import json import time from dataclasses import dataclass from secrets import token_bytes from typing import Any, List, Optional, Tuple from blspy import AugSchemeMPL, G1Element, PrivateKey from taco.types.blockchain_format.coin import Coin from taco.types.blockchain_fo...
37.860029
120
0.652742
a06e95f76a4b23002ec976f31cd03a223ca17245
1,482
py
Python
steapy/tangential_vel.py
Sparsh-Sharma/SteaPy
d6f3bee7eb1385c83f65f345d466ef740db4ed3b
[ "MIT" ]
1
2017-04-28T13:05:13.000Z
2017-04-28T13:05:13.000Z
steapy/tangential_vel.py
Sparsh-Sharma/SteaPy
d6f3bee7eb1385c83f65f345d466ef740db4ed3b
[ "MIT" ]
null
null
null
steapy/tangential_vel.py
Sparsh-Sharma/SteaPy
d6f3bee7eb1385c83f65f345d466ef740db4ed3b
[ "MIT" ]
null
null
null
import os import numpy from numpy import * import math from scipy import integrate, linalg from matplotlib import pyplot from pylab import * def compute_tangential_velocity(panels, freestream, gamma, A_source, B_vortex): """ Computes the tangential surface velocity. Parameters ---------- ...
31.531915
79
0.672065
170879eec0e3587b712293bb1b6010c09c793682
1,494
py
Python
common/repositories.py
OptimalBPM/optimalbpm
4c65cd43a36e3318a49de7cd598069ea0623dc69
[ "RSA-MD" ]
2
2016-05-02T14:16:07.000Z
2020-06-25T19:24:29.000Z
common/repositories.py
OptimalBPM/optimalbpm
4c65cd43a36e3318a49de7cd598069ea0623dc69
[ "RSA-MD" ]
null
null
null
common/repositories.py
OptimalBPM/optimalbpm
4c65cd43a36e3318a49de7cd598069ea0623dc69
[ "RSA-MD" ]
1
2020-06-25T19:24:31.000Z
2020-06-25T19:24:31.000Z
""" This module contains the Optimal Framework Repositories API NOTE: Neither this or the git-module is implemented yet. Created on Jan 22, 2016 @author: Nicklas Boerjesson """ import os from bson.objectid import ObjectId __author__ = 'nibo' from dulwich.repo import Repo class Repositories(): """ Re...
22.984615
153
0.609772
7fffcac7635fb5d146b9fff2f6d9bed348356ea6
1,082
py
Python
src/pycounts_vf/pycounts_vf.py
Vikiano/pycounts_vf
6f7c6ce990d7eaa751419ca7b4d5e960038e5c36
[ "MIT" ]
null
null
null
src/pycounts_vf/pycounts_vf.py
Vikiano/pycounts_vf
6f7c6ce990d7eaa751419ca7b4d5e960038e5c36
[ "MIT" ]
null
null
null
src/pycounts_vf/pycounts_vf.py
Vikiano/pycounts_vf
6f7c6ce990d7eaa751419ca7b4d5e960038e5c36
[ "MIT" ]
null
null
null
from collections import Counter from string import punctuation def load_text(input_file): """Load text from a text file and return as a string. Parameters ---------- input_file : str Path to text file. Returns ------- str Text file contents. Examples -------- ...
20.037037
65
0.574861
8e8197de763996543af714bb3b13c49b91554224
523
py
Python
djangoProject/academics/urls.py
swasthikcnayak/team-sankalp-scl-maxo
4b8d66e5866ac954cbc6434da4c68d3e08a146c5
[ "MIT" ]
1
2020-12-27T15:12:06.000Z
2020-12-27T15:12:06.000Z
djangoProject/academics/urls.py
swasthikcnayak/team-sankalp-scl-maxo
4b8d66e5866ac954cbc6434da4c68d3e08a146c5
[ "MIT" ]
3
2020-12-12T18:00:45.000Z
2021-01-06T09:52:32.000Z
djangoProject/academics/urls.py
swasthikcnayak/team-sankalp-scl-maxo
4b8d66e5866ac954cbc6434da4c68d3e08a146c5
[ "MIT" ]
4
2020-12-10T13:01:53.000Z
2020-12-29T19:14:09.000Z
from django.urls import path import academics.views as academics_view urlpatterns = [ path('notes/', academics_view.view_list, name="view-notes-subject-list"), # list available subjects path('notes/<int:subjectId>', academics_view.view_notes, name="view-notes"), # list the notes of selected subject path(...
52.3
118
0.739962
977f7f6ec77c2bd671592db5754077f1845a215b
8,609
py
Python
zerver/webhooks/sentry/tests.py
Pulkit007/zulip
8a5f6f8d95baa55c4b28972cfc5a498f5f388e0f
[ "Apache-2.0" ]
17,004
2015-09-25T18:27:24.000Z
2022-03-31T22:02:32.000Z
zerver/webhooks/sentry/tests.py
Pulkit007/zulip
8a5f6f8d95baa55c4b28972cfc5a498f5f388e0f
[ "Apache-2.0" ]
20,344
2015-09-25T19:02:42.000Z
2022-03-31T23:54:40.000Z
zerver/webhooks/sentry/tests.py
Pulkit007/zulip
8a5f6f8d95baa55c4b28972cfc5a498f5f388e0f
[ "Apache-2.0" ]
7,271
2015-09-25T18:48:39.000Z
2022-03-31T21:06:11.000Z
from zerver.lib.test_classes import WebhookTestCase class SentryHookTests(WebhookTestCase): STREAM_NAME = "sentry" URL_TEMPLATE = "/api/v1/external/sentry?&api_key={api_key}&stream={stream}" WEBHOOK_DIR_NAME = "sentry" def test_event_for_exception_golang(self) -> None: expected_topic = '*url....
40.41784
201
0.700081
70ffd18dd40d0aaad8f54cd8b8f74e3e2ea14bf4
4,254
py
Python
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/docker_build_step_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/docker_build_step_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/docker_build_step_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
46.747253
229
0.673014
b1b86654dde7aa0db8690070efd4519beece1b18
816
py
Python
sandbox/execution.py
daviddoret/pyxag
6884c7e100d28c3ce6273248caa40eaeab920bc5
[ "MIT" ]
1
2019-10-27T15:56:27.000Z
2019-10-27T15:56:27.000Z
sandbox/execution.py
daviddoret/pynag
6884c7e100d28c3ce6273248caa40eaeab920bc5
[ "MIT" ]
11
2019-11-04T18:21:16.000Z
2019-11-07T03:22:41.000Z
sandbox/execution.py
daviddoret/pynag
6884c7e100d28c3ce6273248caa40eaeab920bc5
[ "MIT" ]
null
null
null
from classes.nag import Nag from functions.get_nag_vertex_type import get_nag_vertex_type from functions.get_nag_vertex_number import get_nag_vertex_number from functions.plot_nag import plot_nag from functions.substitute_nag_function import substitute_nag_vertex nag = Nag('Test') nag.set_nand('i1', 'i1', 'n10') nag.s...
37.090909
67
0.783088
36c2b969db12f77296c5d70b1903a1d98079f440
39,107
py
Python
django/db/models/expressions.py
Dragon2zhao/Study
397b3705c5f762b359cdb494f9447c8a60685adf
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/db/models/expressions.py
Dragon2zhao/Study
397b3705c5f762b359cdb494f9447c8a60685adf
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/db/models/expressions.py
Dragon2zhao/Study
397b3705c5f762b359cdb494f9447c8a60685adf
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
import copy import datetime from django.core.exceptions import EmptyResultSet, FieldError from django.db.backends import utils as backend_utils from django.db.models import fields from django.db.models.query_utils import Q from django.utils import six from django.utils.functional import cached_property class Combina...
35.714155
114
0.637737
db56b86268674ec2693d8e62e7d945fb238822e9
539
py
Python
Exercises/Exercise 12/WebForm1/server.py
javkoh/Materials
7f94ad4f623362904fdc178dba2c341627a4a0de
[ "MIT" ]
11
2021-03-02T00:25:59.000Z
2022-02-09T03:28:46.000Z
Exercises/Exercise 12/WebForm1/server.py
javkoh/Materials
7f94ad4f623362904fdc178dba2c341627a4a0de
[ "MIT" ]
1
2021-03-09T08:09:55.000Z
2021-03-09T08:12:17.000Z
Exercises/Exercise 12/WebForm1/server.py
javkoh/Materials
7f94ad4f623362904fdc178dba2c341627a4a0de
[ "MIT" ]
15
2021-02-08T00:36:19.000Z
2021-02-20T05:40:27.000Z
from flask import Flask from flask import render_template from flask import request app=Flask(__name__) @app.route("/") #decorator function def root(): return render_template("form1.html") @app.route("/submit",methods=["POST",'GET']) # def calculate(): # output= 'Hello Worlds' # return output def calcul...
24.5
91
0.705009
05b4c0f635d746ed94e3af92fe5f36ae98ae83a9
28,793
py
Python
tests/test_helpers.py
code-review-doctor/django-axes
9d391841792e817f38a6924320cb2d0439656153
[ "MIT" ]
831
2016-07-28T08:57:31.000Z
2022-03-28T20:52:22.000Z
tests/test_helpers.py
code-review-doctor/django-axes
9d391841792e817f38a6924320cb2d0439656153
[ "MIT" ]
620
2016-07-27T21:57:42.000Z
2022-03-29T12:11:48.000Z
tests/test_helpers.py
code-review-doctor/django-axes
9d391841792e817f38a6924320cb2d0439656153
[ "MIT" ]
219
2016-08-05T15:55:31.000Z
2022-03-25T04:03:13.000Z
from datetime import timedelta from hashlib import md5 from unittest.mock import patch from django.contrib.auth import get_user_model from django.http import JsonResponse, HttpResponseRedirect, HttpResponse, HttpRequest from django.test import override_settings, RequestFactory from axes.apps import AppConfig from axe...
36.866837
134
0.689404
21816e036b57d77c1df9f4e40510a587728cdefc
126
py
Python
__init__.py
tmizu23/mapproxy_plugin
1388fae3d59094d804aad4c7ea5583a436f139cf
[ "MIT" ]
4
2015-02-03T09:31:47.000Z
2021-02-26T13:33:32.000Z
__init__.py
tmizu23/mapproxy_plugin
1388fae3d59094d804aad4c7ea5583a436f139cf
[ "MIT" ]
null
null
null
__init__.py
tmizu23/mapproxy_plugin
1388fae3d59094d804aad4c7ea5583a436f139cf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- def classFactory(iface): from mapproxy_plugin import MapProxyPlugin return MapProxyPlugin(iface)
21
44
0.746032
fc5bfcff88791ee493899727edbe7edbd4bc612e
3,792
py
Python
towerdashboard/github.py
jainnikhil30/tower-dashboard
f56b212bbaedd2cac6422faca1a33ddbf96e6566
[ "Apache-2.0" ]
null
null
null
towerdashboard/github.py
jainnikhil30/tower-dashboard
f56b212bbaedd2cac6422faca1a33ddbf96e6566
[ "Apache-2.0" ]
null
null
null
towerdashboard/github.py
jainnikhil30/tower-dashboard
f56b212bbaedd2cac6422faca1a33ddbf96e6566
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 Red Hat, 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 requir...
35.773585
128
0.638186
28f62bb143d4c21a005486ce9efbca80d375f830
21,397
py
Python
libraries/wabt/third_party/gtest/googletest/test/gtest_filter_unittest.py
inery-blockchain/inery
2823539f76a0debae22b6783781b1374c63a59d8
[ "MIT" ]
null
null
null
libraries/wabt/third_party/gtest/googletest/test/gtest_filter_unittest.py
inery-blockchain/inery
2823539f76a0debae22b6783781b1374c63a59d8
[ "MIT" ]
null
null
null
libraries/wabt/third_party/gtest/googletest/test/gtest_filter_unittest.py
inery-blockchain/inery
2823539f76a0debae22b6783781b1374c63a59d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright 2005 Google Inc. All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of...
33.485133
80
0.682432
555e1ec031fe4f58513b68972de11c75e1bf672f
15,057
py
Python
animals/arthropods/marine_arthropods/marine_arthropods.py
milo-lab/biomass_distribution
36cf0a80ec94deb73cb560b66cbd9fa190f528ce
[ "MIT" ]
21
2018-05-22T12:09:11.000Z
2021-11-04T21:04:43.000Z
animals/arthropods/marine_arthropods/marine_arthropods.py
milo-lab/biomass_distribution
36cf0a80ec94deb73cb560b66cbd9fa190f528ce
[ "MIT" ]
null
null
null
animals/arthropods/marine_arthropods/marine_arthropods.py
milo-lab/biomass_distribution
36cf0a80ec94deb73cb560b66cbd9fa190f528ce
[ "MIT" ]
4
2019-03-12T08:56:36.000Z
2020-11-02T14:13:03.000Z
# coding: utf-8 # In[1]: # Load dependencies import pandas as pd import matplotlib.pyplot as plt import numpy as np from scipy.stats import gmean import sys sys.path.insert(0, '../../../statistics_helper/') from fraction_helper import * from excel_utils import * # Define function that runs a jypyter notebook and sa...
74.539604
1,719
0.780567
a2e4f963b94a3bfd9e1c89841bd6efdc8aac17c8
15,705
py
Python
pywps/app/Process.py
huard/pywps
00305c03136037557227485f77154e69cb137cf7
[ "MIT" ]
1
2017-06-14T14:50:16.000Z
2017-06-14T14:50:16.000Z
pywps/app/Process.py
huard/pywps
00305c03136037557227485f77154e69cb137cf7
[ "MIT" ]
null
null
null
pywps/app/Process.py
huard/pywps
00305c03136037557227485f77154e69cb137cf7
[ "MIT" ]
1
2017-06-14T14:21:54.000Z
2017-06-14T14:21:54.000Z
################################################################## # Copyright 2016 OSGeo Foundation, # # represented by PyWPS Project Steering Committee, # # licensed under MIT, Please consult LICENSE.txt for details # ####################################################...
39.860406
119
0.590003
919fe0cf12bbcf4da06ae39405bb44b242ef034c
568
py
Python
src/teams/migrations/0028_auto_20180331_1416.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
src/teams/migrations/0028_auto_20180331_1416.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
src/teams/migrations/0028_auto_20180331_1416.py
pwelzel/bornhack-website
af794e6a2fba06e09626259c7768feb30ff394be
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2018-03-31 12:16 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('teams', '0027_fixup_teams'), ] operations = [ ...
25.818182
147
0.649648
7a3ef8899de9f17cf3bf506bc8d769821e7af671
706
py
Python
jascobin/command.py
lowlandresearch/jascobin
f793213cd574093757b228306af03341d37dfeb0
[ "MIT" ]
null
null
null
jascobin/command.py
lowlandresearch/jascobin
f793213cd574093757b228306af03341d37dfeb0
[ "MIT" ]
null
null
null
jascobin/command.py
lowlandresearch/jascobin
f793213cd574093757b228306af03341d37dfeb0
[ "MIT" ]
null
null
null
import csv import io from pathlib import Path import click from . import jws def print_csv(data): columns = ['x'] + [f'y{i + 1}' for i in range(data.header.channels)] buf = io.StringIO() writer = csv.writer(buf) writer.writerow(columns) writer.writerows(zip(data.x, *data.y)) print(buf.getvalu...
18.578947
72
0.637394
1cb9bb710ec9622bb097ed77b249f058034577dc
2,324
py
Python
Message_Sender_GUI.py
JHP4911/pi-Projects
c7d13f595c1e5f5c7a56c1a726559b7a4473d1da
[ "Apache-2.0" ]
6
2021-02-04T10:45:15.000Z
2021-12-15T07:38:06.000Z
Message_Sender_GUI.py
JHP4911/pi-Projects
c7d13f595c1e5f5c7a56c1a726559b7a4473d1da
[ "Apache-2.0" ]
null
null
null
Message_Sender_GUI.py
JHP4911/pi-Projects
c7d13f595c1e5f5c7a56c1a726559b7a4473d1da
[ "Apache-2.0" ]
2
2021-02-08T19:07:07.000Z
2021-02-15T09:28:20.000Z
''' Our Task is to create a GUI using which we can send SMS to different mobile numbers. Tech: API, Tkinter Process: 1. Create an account on any free bulk SMS provider(fast2sms, Twillo) and go to their API or developer section and copy the Python code for sending messages. 2. Create a GUI Using which we can get mo...
34.686567
174
0.685026
67993034957318ca760ad813c75639cfc06d50c8
8,671
py
Python
saleor/lib/python3.7/site-packages/faker/providers/company/nl_NL/__init__.py
cxsper/saleor
5566ddcdaf8f72ba872eca869798e66eb9cdae44
[ "BSD-3-Clause" ]
null
null
null
saleor/lib/python3.7/site-packages/faker/providers/company/nl_NL/__init__.py
cxsper/saleor
5566ddcdaf8f72ba872eca869798e66eb9cdae44
[ "BSD-3-Clause" ]
null
null
null
saleor/lib/python3.7/site-packages/faker/providers/company/nl_NL/__init__.py
cxsper/saleor
5566ddcdaf8f72ba872eca869798e66eb9cdae44
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from .. import Provider as CompanyProvider class Provider(CompanyProvider): formats = ( '{{last_name}} {{company_suffix}}', '{{last_name}} & {{last_name}}', '{{company_prefix}} {{last_name}}', '{{large_company}}',...
78.827273
121
0.618729
1ab3cd6f20fc1090534c6b28a2ef0c5026458bce
5,213
py
Python
libraries/edge/elasticsearch/opensearch/granuleatomresponse.py
apache/incubator-sdap-edge
c725dad1098096048faed9a42a56f3cfc5c25bc5
[ "Apache-2.0" ]
6
2017-11-16T07:34:47.000Z
2021-11-10T19:20:10.000Z
libraries/edge/elasticsearch/opensearch/granuleatomresponse.py
apache/incubator-sdap-edge
c725dad1098096048faed9a42a56f3cfc5c25bc5
[ "Apache-2.0" ]
5
2019-02-11T23:46:22.000Z
2019-12-02T21:47:31.000Z
libraries/edge/elasticsearch/opensearch/granuleatomresponse.py
apache/incubator-sdap-edge
c725dad1098096048faed9a42a56f3cfc5c25bc5
[ "Apache-2.0" ]
9
2017-11-16T07:34:54.000Z
2021-11-10T19:20:02.000Z
import datetime import urllib.request, urllib.parse, urllib.error from edge.elasticsearch.opensearch.atomresponsebyelasticsearch import AtomResponseByElasticsearch from edge.dateutility import DateUtility class GranuleAtomResponse(AtomResponseByElasticsearch): def __init__(self, linkToGranule, host, url): ...
65.987342
397
0.60752
f4b4da7bfca80ba52bd045ec49a976d338aabe84
1,844
py
Python
services/transaction.py
vulpemventures/gdk-ocean
5691e61f1cee99ae23203d069ac6043f1a18f96a
[ "MIT" ]
null
null
null
services/transaction.py
vulpemventures/gdk-ocean
5691e61f1cee99ae23203d069ac6043f1a18f96a
[ "MIT" ]
null
null
null
services/transaction.py
vulpemventures/gdk-ocean
5691e61f1cee99ae23203d069ac6043f1a18f96a
[ "MIT" ]
1
2022-02-07T08:45:27.000Z
2022-02-07T08:45:27.000Z
import logging from typing import List, Tuple from domain import block_details from domain.receiver import Receiver from domain.utxo import CoinSelectionResult import greenaddress as gdk from ocean.v1alpha.types_pb2 import BlockDetails from services.wallet import WalletService class TransactionService: def __init_...
37.632653
93
0.693059
f084f8609f40acc1655a53a65a389b6db74bf55e
2,835
py
Python
rootfs/api/tests/test_tls.py
deiscc/controller
034be59c2f8860369f2dc8a96a553264aed0ec11
[ "MIT" ]
null
null
null
rootfs/api/tests/test_tls.py
deiscc/controller
034be59c2f8860369f2dc8a96a553264aed0ec11
[ "MIT" ]
null
null
null
rootfs/api/tests/test_tls.py
deiscc/controller
034be59c2f8860369f2dc8a96a553264aed0ec11
[ "MIT" ]
null
null
null
import requests_mock from django.core.cache import cache from django.contrib.auth.models import User from rest_framework.authtoken.models import Token from api.models import App from api.tests import adapter, DeisTransactionTestCase @requests_mock.Mocker(real_http=True, adapter=adapter) class TestTLS(DeisTransactio...
37.8
84
0.657848
ce3aaa8a058b0d4edc493fb66c0646c4d1549ccf
87,037
py
Python
tensorflow/python/tpu/tpu.py
Diva-Pant/tensorflow
f926d8c10efb07176ae559d0e098cdfdb4d03219
[ "Apache-2.0" ]
1
2020-06-24T06:41:27.000Z
2020-06-24T06:41:27.000Z
tensorflow/python/tpu/tpu.py
Diva-Pant/tensorflow
f926d8c10efb07176ae559d0e098cdfdb4d03219
[ "Apache-2.0" ]
2
2021-11-10T20:08:14.000Z
2022-02-10T02:44:26.000Z
tensorflow/python/tpu/tpu.py
Diva-Pant/tensorflow
f926d8c10efb07176ae559d0e098cdfdb4d03219
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.465936
104
0.706228
81897f756b04ca8416e1df95987644a514628c3f
1,884
py
Python
pyrs/clike.py
mahmoudimus/py2many
cd6fb703dbac5a64416d3de875d37b542e08b930
[ "MIT" ]
1
2021-05-14T00:37:55.000Z
2021-05-14T00:37:55.000Z
pyrs/clike.py
mahmoudimus/py2many
cd6fb703dbac5a64416d3de875d37b542e08b930
[ "MIT" ]
null
null
null
pyrs/clike.py
mahmoudimus/py2many
cd6fb703dbac5a64416d3de875d37b542e08b930
[ "MIT" ]
null
null
null
import ast from common.clike import CLikeTranspiler as CommonCLikeTranspiler rust_type_map = { "int": "i32", "float": "f32", "bytes": "&[u8]", "str": "&str", "c_int8": "i8", "c_int16": "i16", "c_int32": "i32", "c_int64": "i64", "c_uint8": "u8", "c_uint16": "u16", "c_uint32...
25.12
106
0.536624
b6e27e0c537b84c4699c1875b7cb44fc95d2264d
411
py
Python
core/timer.py
ramkj/xman
8ab14b0754e0ef3c44c27259c0df7c10697d3502
[ "Apache-2.0" ]
null
null
null
core/timer.py
ramkj/xman
8ab14b0754e0ef3c44c27259c0df7c10697d3502
[ "Apache-2.0" ]
null
null
null
core/timer.py
ramkj/xman
8ab14b0754e0ef3c44c27259c0df7c10697d3502
[ "Apache-2.0" ]
null
null
null
import time class Timer: def __init__( self, fname : str ): self.fname = fname def __enter__( self ) -> int : self.start_time = int(time.time()) return self.start_time def __exit__(self, exc_type, exc_value, exc_trace) -> None: self.end_time = int(time.time()) ...
29.357143
96
0.615572
b5b9506b8bfa8f496da2d6e7f4754240dccb4769
55,836
py
Python
raiden/tests/unit/transfer/mediated_transfer/test_initiatorstate.py
yahgwai/raiden
a76809872468890d7f2a66b293876aff93b6ea97
[ "MIT" ]
null
null
null
raiden/tests/unit/transfer/mediated_transfer/test_initiatorstate.py
yahgwai/raiden
a76809872468890d7f2a66b293876aff93b6ea97
[ "MIT" ]
null
null
null
raiden/tests/unit/transfer/mediated_transfer/test_initiatorstate.py
yahgwai/raiden
a76809872468890d7f2a66b293876aff93b6ea97
[ "MIT" ]
null
null
null
# pylint: disable=invalid-name,too-few-public-methods,too-many-arguments,too-many-locals import random from copy import deepcopy from typing import NamedTuple import pytest from raiden.constants import EMPTY_HASH, EMPTY_MERKLE_ROOT, MAXIMUM_PENDING_TRANSFERS from raiden.tests.utils import factories from raiden.tests....
33.963504
98
0.726986
fc7854b1a6404741c475fdbf57e0050c2e7107f2
257
py
Python
test/webdnn_test/graph_test/operators_test/clipped_relu_test.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
1
2021-04-09T15:55:35.000Z
2021-04-09T15:55:35.000Z
test/webdnn_test/graph_test/operators_test/clipped_relu_test.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
null
null
null
test/webdnn_test/graph_test/operators_test/clipped_relu_test.py
steerapi/webdnn
1df51cc094e5a528cfd3452c264905708eadb491
[ "MIT" ]
null
null
null
from test.webdnn_test.graph_test.operators_test.util import template_test_unary_operator from webdnn.graph.operators.clipped_relu import ClippedRelu def template(): template_test_unary_operator(ClippedRelu, {"cap": 10.0}) def test(): template()
23.363636
88
0.797665
b8765877c19a629d974cadd50c5484b6d6d261a8
2,734
py
Python
ecache/hook.py
MrKiven/ECache
44b97f425585972bc8b6b2a399186e88bb843dcd
[ "MIT" ]
32
2016-11-10T13:06:06.000Z
2021-06-25T02:59:51.000Z
ecache/hook.py
MrKiven/ECache
44b97f425585972bc8b6b2a399186e88bb843dcd
[ "MIT" ]
3
2017-11-03T17:00:57.000Z
2019-06-12T09:04:07.000Z
ecache/hook.py
MrKiven/ECache
44b97f425585972bc8b6b2a399186e88bb843dcd
[ "MIT" ]
8
2016-11-12T09:41:55.000Z
2022-01-18T03:45:41.000Z
# -*- coding: utf-8 -*- import logging import itertools try: from meepo.signals import signal except ImportError: from blinker import signal import warning warning.warn(""" You should checkout meepo develop branch to install !!! See: https://github.com/eleme/meepo. """, DeprecationWarning) from meepo....
30.043956
78
0.649963
ef06f3cdac59f8a68574c73480a4e5cee956551f
1,584
py
Python
Models/RE2/modules/connection.py
hxlnwpu/Sentence_pair_modeling
e0324711e27694ad22e070a118697184d23bca58
[ "Apache-2.0" ]
49
2020-12-06T15:57:01.000Z
2022-03-29T07:43:55.000Z
Models/RE2/modules/connection.py
hxlnwpu/Sentence_pair_modeling
e0324711e27694ad22e070a118697184d23bca58
[ "Apache-2.0" ]
1
2021-06-14T23:20:45.000Z
2021-06-14T23:20:45.000Z
Models/RE2/modules/connection.py
hxlnwpu/Sentence_pair_modeling
e0324711e27694ad22e070a118697184d23bca58
[ "Apache-2.0" ]
11
2020-12-14T16:30:17.000Z
2021-11-17T06:18:24.000Z
# coding=utf-8 # Copyright (C) 2019 Alibaba Group Holding Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
29.886792
97
0.67298
4d39ae7f37f64b3618e09179a1f462c10db781f2
2,362
py
Python
docs/_ext/dataTables.py
WelbornGroup/ELECTRIC
87d44774206d9b7a781a037f0a04e63e20ff6415
[ "BSD-3-Clause" ]
8
2020-09-25T13:49:08.000Z
2022-02-14T01:51:04.000Z
docs/_ext/dataTables.py
WelbornGroup/ELECTRIC
87d44774206d9b7a781a037f0a04e63e20ff6415
[ "BSD-3-Clause" ]
15
2020-07-01T15:58:09.000Z
2021-12-17T13:37:21.000Z
docs/_ext/dataTables.py
WelbornGroup/ELECTRIC
87d44774206d9b7a781a037f0a04e63e20ff6415
[ "BSD-3-Clause" ]
5
2020-08-04T12:25:28.000Z
2020-11-10T19:46:11.000Z
""" Directive for using datatables javascript library """ import csv from docutils import nodes from docutils.parsers.rst import Directive from sphinx.util.docutils import SphinxDirective class data_table(nodes.General, nodes.Element): pass class DataTable(SphinxDirective): has_content = True def r...
22.932039
89
0.566469
8e90b4c53dd63924809ac843a5e9039f6337fc8b
2,359
py
Python
poetry/console/commands/script.py
colour-science/poetry
f0855d984d9b0b38657c8b8522d3cfa36280b47c
[ "MIT" ]
null
null
null
poetry/console/commands/script.py
colour-science/poetry
f0855d984d9b0b38657c8b8522d3cfa36280b47c
[ "MIT" ]
null
null
null
poetry/console/commands/script.py
colour-science/poetry
f0855d984d9b0b38657c8b8522d3cfa36280b47c
[ "MIT" ]
null
null
null
from .env_command import EnvCommand class ScriptCommand(EnvCommand): """ Executes a script defined in the <comment>pyproject.toml</comment> file. (<error>Deprecated</error>) script { script-name : The name of the script to execute. } { args?* : The command and arguments/options to pass to...
31.878378
104
0.604917
0cdec876f221f22621eddfee6e5d0ffe6f17dbb4
320
py
Python
setup.py
frc1418/2020-robot
027a7b7f02bd48ade79a18c6b2a48d165cd4017c
[ "MIT" ]
3
2020-07-14T23:28:30.000Z
2020-07-14T23:28:35.000Z
setup.py
AndrewLester/2020-robot
f3c03e72bcf106f5752e443b7a3a6eb87bc0bff2
[ "MIT" ]
2
2020-03-14T19:13:25.000Z
2020-10-19T16:29:32.000Z
setup.py
frc1418/2020-robot
027a7b7f02bd48ade79a18c6b2a48d165cd4017c
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='robot_1418', version='1.0.0', packages=['entry_points'], package_dir={'': 'src'}, install_requires=['wpilib'], entry_points={ 'robotpy': [ 'generate=entry_points.trajectory_generator:TrajectoryGenerate' ] } )
22.857143
73
0.625
826fd9d3d225594759e22e693c5cceeb58549355
49,819
py
Python
src/azure-cli-core/azure/cli/core/commands/arm.py
NMijat1024/azure-cli
7170896081537db35167cc09f99bdf3269c37640
[ "MIT" ]
null
null
null
src/azure-cli-core/azure/cli/core/commands/arm.py
NMijat1024/azure-cli
7170896081537db35167cc09f99bdf3269c37640
[ "MIT" ]
null
null
null
src/azure-cli-core/azure/cli/core/commands/arm.py
NMijat1024/azure-cli
7170896081537db35167cc09f99bdf3269c37640
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
43.32087
169
0.627251
a3391de90b25837efd99beb9af63605ff77dd74b
6,211
py
Python
tests/pixel_tests.py
guanyilun/pixell
007770a7630b159510c04c18ca993489b433c26e
[ "BSD-3-Clause" ]
null
null
null
tests/pixel_tests.py
guanyilun/pixell
007770a7630b159510c04c18ca993489b433c26e
[ "BSD-3-Clause" ]
null
null
null
tests/pixel_tests.py
guanyilun/pixell
007770a7630b159510c04c18ca993489b433c26e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import matplotlib matplotlib.use('Agg') from pixell import enmap,curvedsky,wcsutils,reproject import numpy as np import itertools,yaml,pickle,os,sys import matplotlib.pyplot as plt """ This script generates a set of reference values against which pixell tests will be done. """ ...
33.037234
162
0.617936
e44035aada40aa4c592ca9ca5f57d88a362a85e4
5,233
py
Python
slate/objects/filters/filter.py
Axelancerr/slate
885692ae53846416ebb7e927047bcdbbdaa5564e
[ "MIT" ]
1
2021-10-03T11:39:25.000Z
2021-10-03T11:39:25.000Z
slate/objects/filters/filter.py
Axelancerr/slate
885692ae53846416ebb7e927047bcdbbdaa5564e
[ "MIT" ]
1
2021-09-30T08:31:02.000Z
2021-09-30T08:31:02.000Z
slate/objects/filters/filter.py
Axelancerr/slate
885692ae53846416ebb7e927047bcdbbdaa5564e
[ "MIT" ]
null
null
null
# Future from __future__ import annotations # Standard Library from typing import TypedDict # Local from ..enums import Provider from .channel_mix import ChannelMix, LavalinkChannelMixData, ObsidianChannelMixData from .distortion import Distortion, LavalinkDistortionData, ObsidianDistortionData from .equalizer import...
33.76129
129
0.681062
a8da6c4cee00835af7495f13905496428040b62c
1,745
py
Python
sourcer/expressions/seq.py
jvs/peg
5e818db22a15f295551c15d525d26679cabb1cbd
[ "MIT" ]
null
null
null
sourcer/expressions/seq.py
jvs/peg
5e818db22a15f295551c15d525d26679cabb1cbd
[ "MIT" ]
null
null
null
sourcer/expressions/seq.py
jvs/peg
5e818db22a15f295551c15d525d26679cabb1cbd
[ "MIT" ]
1
2016-12-01T21:34:04.000Z
2016-12-01T21:34:04.000Z
from outsourcer import Code from . import utils from .base import Expression from .constants import BREAK, POS, RESULT class Seq(Expression): is_commented = False num_blocks = 2 def __init__(self, *exprs, names=None, constructor=None, constructor_args=None): if isinstance(constructor, type): ...
31.727273
84
0.589112
319a0c59d325ce6feb00a74525ab963758c2845d
1,307
py
Python
tests/unit/v0x01/test_asynchronous/test_flow_removed.py
josemauro/python-openflow
0537c626f3aeb4c53995b65e0783f09ad5e63101
[ "MIT" ]
48
2016-06-09T14:36:22.000Z
2021-11-11T16:05:19.000Z
tests/unit/v0x01/test_asynchronous/test_flow_removed.py
josemauro/python-openflow
0537c626f3aeb4c53995b65e0783f09ad5e63101
[ "MIT" ]
338
2016-05-06T18:42:36.000Z
2021-04-29T17:57:09.000Z
tests/unit/v0x01/test_asynchronous/test_flow_removed.py
josemauro/python-openflow
0537c626f3aeb4c53995b65e0783f09ad5e63101
[ "MIT" ]
46
2016-05-24T15:32:56.000Z
2021-06-01T12:16:17.000Z
"""Testing FlowRemoved message.""" from pyof.foundation.basic_types import HWAddress, IPAddress from pyof.v0x01.asynchronous.flow_removed import FlowRemoved, FlowRemovedReason from pyof.v0x01.common.flow_match import Match from tests.unit.test_struct import TestStruct class TestFlowRemoved(TestStruct): """Test th...
43.566667
79
0.590666
b836daef88abd65ed04f53bdd8caf7ea9d6baeff
1,408
py
Python
livebot/migrations/0021_webhooknotification.py
bsquidwrd/Live-Bot
f28f028ddc371b86e19df6f603aa3b14bab93533
[ "MIT" ]
1
2019-02-27T10:38:46.000Z
2019-02-27T10:38:46.000Z
livebot/migrations/0021_webhooknotification.py
bsquidwrd/Live-Bot
f28f028ddc371b86e19df6f603aa3b14bab93533
[ "MIT" ]
21
2017-08-03T01:01:31.000Z
2020-06-05T18:02:20.000Z
livebot/migrations/0021_webhooknotification.py
bsquidwrd/Live-Bot
f28f028ddc371b86e19df6f603aa3b14bab93533
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-12-16 19:55 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('livebot', '0020_auto_20170819_1135'), ] operations...
41.411765
142
0.614347
1d404a1818fd7f5414ba114556f9bfd76181c491
3,591
py
Python
sudoku/sudoku_solver/tests/test_sudoku.py
jaygel179/puzzles
67685867d779c06790cac1c523ae6a525407313a
[ "MIT" ]
null
null
null
sudoku/sudoku_solver/tests/test_sudoku.py
jaygel179/puzzles
67685867d779c06790cac1c523ae6a525407313a
[ "MIT" ]
null
null
null
sudoku/sudoku_solver/tests/test_sudoku.py
jaygel179/puzzles
67685867d779c06790cac1c523ae6a525407313a
[ "MIT" ]
null
null
null
from unittest import TestCase from sudoku_solver.sudoku import SudokuSolver class TestSudokuSolver(TestCase): def test_empty_board(self): expected_output = [ [1, 2, 3, 4, 5, 6, 7, 8, 9], [4, 5, 6, 7, 8, 9, 1, 2, 3], [7, 8, 9, 1, 2, 3, 4, 5, 6], [2, 1, 4, 3,...
31.226087
45
0.316903
13631f8d34edc1d96f57ddc83b67cbbe2a429cd5
1,756
py
Python
packages/amuse-ph4/setup.py
silviatoonen/amuse
8ba3409a2755ddf7e981ab8e86c7537e555f2dba
[ "Apache-2.0" ]
131
2015-06-04T09:06:57.000Z
2022-02-01T12:11:29.000Z
packages/amuse-ph4/setup.py
silviatoonen/amuse
8ba3409a2755ddf7e981ab8e86c7537e555f2dba
[ "Apache-2.0" ]
690
2015-10-17T12:18:08.000Z
2022-03-31T16:15:58.000Z
packages/amuse-ph4/setup.py
rieder/amuse
3ac3b6b8f922643657279ddee5c8ab3fc0440d5e
[ "Apache-2.0" ]
102
2015-01-22T10:00:29.000Z
2022-02-09T13:29:43.000Z
#!/usr/bin/env python3 from support.classifiers import classifiers from setuptools import setup import support support.use("system") from support.setup_codes import setup_commands name = 'amuse-ph4' author = 'The AMUSE team' author_email = 'info@amusecode.org' license_ = "Apache License 2.0" url = 'http://www.amusec...
24.054795
73
0.721526
07eba2d07cbee235298f657b6038510e68da9525
983
py
Python
Portfolio/urls.py
Uomar7/UmarNgare
7c3887598597ca77f9398c7b15544f7d54ea9bec
[ "Apache-2.0" ]
null
null
null
Portfolio/urls.py
Uomar7/UmarNgare
7c3887598597ca77f9398c7b15544f7d54ea9bec
[ "Apache-2.0" ]
7
2020-06-05T20:43:45.000Z
2021-09-22T18:29:26.000Z
Portfolio/urls.py
Uomar7/UmarNgare
7c3887598597ca77f9398c7b15544f7d54ea9bec
[ "Apache-2.0" ]
null
null
null
"""Portfolio URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
35.107143
81
0.724313
3bf02e1bd2405db9404df011bfce2489abed7887
24,057
py
Python
model.py
iamxpy/seq2seq-summarizer
f6b3de3f179d56537d5badff6d3f950a41eff423
[ "MIT" ]
356
2018-07-19T23:18:26.000Z
2022-03-31T15:17:07.000Z
model.py
zhenpingli/seq2seq-summarizer
f6b3de3f179d56537d5badff6d3f950a41eff423
[ "MIT" ]
20
2018-11-03T01:52:06.000Z
2022-03-18T18:47:34.000Z
model.py
zhenpingli/seq2seq-summarizer
f6b3de3f179d56537d5badff6d3f950a41eff423
[ "MIT" ]
80
2018-09-03T09:08:02.000Z
2022-03-23T02:23:46.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence import random from params import Params from utils import Vocab, Hypothesis, word_detector from typing import Union, List DEVICE = torch.device("cuda" if torch.cuda.is_available()...
47.732143
104
0.680384
1413ed3220c25f827f964cd87fb6df34a848f73a
12,354
py
Python
clients/client/python/ory_client/model/ui_container.py
tobbbles/sdk
017ca2fd46019bafd1853913b6c0f2b0fe687621
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/model/ui_container.py
tobbbles/sdk
017ca2fd46019bafd1853913b6c0f2b0fe687621
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/model/ui_container.py
tobbbles/sdk
017ca2fd46019bafd1853913b6c0f2b0fe687621
[ "Apache-2.0" ]
null
null
null
""" Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 The version of the OpenAPI document: v0.0.1-alpha.19 Contact: support@ory.sh Generated by: htt...
43.045296
194
0.570342
e5a659cea2d949d85f85e4eeda0e7dc475edc6ee
510
py
Python
Random/ex24.py
matewszz/Python
18b7fc96d3ed294d2002ed484941a0ee8cf18108
[ "MIT" ]
null
null
null
Random/ex24.py
matewszz/Python
18b7fc96d3ed294d2002ed484941a0ee8cf18108
[ "MIT" ]
null
null
null
Random/ex24.py
matewszz/Python
18b7fc96d3ed294d2002ed484941a0ee8cf18108
[ "MIT" ]
null
null
null
dados = {} dados['Nome'] = str(input('Nome: ')) dados['Nascimento'] = int(input('Ano de nascimento: ')) dados['Carteira'] = int(input('Carteira de trabalho (0 não tem): ')) if dados['Carteira'] != 0: dados['Contratação'] = int(input('Ano de contratação: ')) dados['Salario'] = float(input('Salario: ')) dados['I...
34
74
0.617647
0fb68c05497d9fcc69e922ec2139b67b8bdb3cd6
4,665
py
Python
source/casual/make/platform/cygwin.py
casualcore/casual-make
935392bc54d2e1fb86a20406f668774de63a7cb1
[ "MIT" ]
null
null
null
source/casual/make/platform/cygwin.py
casualcore/casual-make
935392bc54d2e1fb86a20406f668774de63a7cb1
[ "MIT" ]
null
null
null
source/casual/make/platform/cygwin.py
casualcore/casual-make
935392bc54d2e1fb86a20406f668774de63a7cb1
[ "MIT" ]
null
null
null
import os import casual.make.platform.common as common import casual.make.platform.selector as selector import casual.make.tools.executor as executor import casual.make.tools.environment as environment import casual.make.entity.state as state import sys import re def compose_paths(*args): paths = '' root_path...
29.525316
126
0.688746
f58be3af55cd9056e408e13a5dce34ea7d252a9e
8,113
py
Python
tests/scenario_tests_async/test_app_using_methods_in_class.py
pdontha/bolt-python
01894d78d8378690b4f5777846bb0a186aba8d92
[ "MIT" ]
null
null
null
tests/scenario_tests_async/test_app_using_methods_in_class.py
pdontha/bolt-python
01894d78d8378690b4f5777846bb0a186aba8d92
[ "MIT" ]
null
null
null
tests/scenario_tests_async/test_app_using_methods_in_class.py
pdontha/bolt-python
01894d78d8378690b4f5777846bb0a186aba8d92
[ "MIT" ]
1
2022-03-26T12:13:53.000Z
2022-03-26T12:13:53.000Z
import asyncio import inspect import json from time import time from typing import Callable import pytest from slack_sdk.signature import SignatureVerifier from slack_sdk.web.async_client import AsyncWebClient from slack_bolt.context.async_context import AsyncBoltContext from slack_bolt.app.async_app import AsyncApp ...
33.804167
85
0.597806
5ca331f8d7177d1d81f00bb4060c385704edba2f
7,292
py
Python
real/gripper140.py
chao0716/learn_dig_grasp_site
d4d4c43c1bb1f41ebfe01eb1f8f56aeddd62f8f5
[ "Apache-2.0" ]
null
null
null
real/gripper140.py
chao0716/learn_dig_grasp_site
d4d4c43c1bb1f41ebfe01eb1f8f56aeddd62f8f5
[ "Apache-2.0" ]
null
null
null
real/gripper140.py
chao0716/learn_dig_grasp_site
d4d4c43c1bb1f41ebfe01eb1f8f56aeddd62f8f5
[ "Apache-2.0" ]
2
2021-09-01T08:57:42.000Z
2021-09-01T08:59:05.000Z
#! /usr/bin/env python """ Python library to control Robotiq Two Finger Gripper connected to UR robot via Python-URX Tested using a UR5 Version CB3 and Robotiq 2-Finger Gripper Version 85 SETUP You must install the driver first and then power on the gripper from the gripper UI. The driver can be found here: http:/...
29.403226
86
0.645228
3e37d83447c9cc8800294b020b16f2e4be6caa66
1,580
py
Python
moodtracker/mood/urls.py
danielvinson/mood-tracker
39c694b2bff977155f5f3ed8083601da9da3723b
[ "Apache-2.0" ]
1
2018-01-24T18:53:02.000Z
2018-01-24T18:53:02.000Z
moodtracker/mood/urls.py
danielvinson/mood-tracker
39c694b2bff977155f5f3ed8083601da9da3723b
[ "Apache-2.0" ]
2
2020-02-11T23:40:40.000Z
2020-06-05T17:36:02.000Z
moodtracker/mood/urls.py
danielvinson/mood-tracker
39c694b2bff977155f5f3ed8083601da9da3723b
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from django.contrib.auth import views as auth_views from . import views urlpatterns = [ # Front-end views url(r'^$', views.index, name='index'), url(r'^profile/(?P<username>[0-9A-Z-a-z]+)/$', views.profile, name='profile'), url(r'^settings/(?P<username>[0-9A-Z-a-z]+)/$'...
56.428571
161
0.687975
0202a8a828e7578bbc0de4afef5bbe0c7728975a
467
py
Python
test_package/conanfile.py
amarburg/fips-CLI11
c111aa069d21eeb717bb3ae6d978e712f1cfba3f
[ "BSD-3-Clause" ]
9
2019-07-05T02:16:04.000Z
2021-03-02T07:34:56.000Z
thirdparty/CLI11/test_package/conanfile.py
ParikaGoel/orb-slam
6eb93da00ef3e29ca7c4addd92941ccf95746b48
[ "BSD-3-Clause" ]
1
2021-03-08T07:18:06.000Z
2021-03-08T07:18:06.000Z
thirdparty/CLI11/test_package/conanfile.py
ParikaGoel/orb-slam
6eb93da00ef3e29ca7c4addd92941ccf95746b48
[ "BSD-3-Clause" ]
4
2019-07-23T04:52:35.000Z
2021-03-02T07:37:42.000Z
from conans import ConanFile, CMake import os class HelloTestConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake" def build(self): cmake = CMake(self) cmake.configure() cmake.build() def imports(self): self.copy("*.dll", dst="bin", s...
23.35
53
0.569593
f87ff2608fda6fcdd3062c745b3b932607c1df77
352
py
Python
shepherd/api/requests.py
iterait/shepherd
0847c9885584378dd68a48c40d03f9bb02b2b57c
[ "MIT" ]
5
2018-10-13T19:03:07.000Z
2019-02-25T06:44:27.000Z
shepherd/api/requests.py
iterait/shepherd
0847c9885584378dd68a48c40d03f9bb02b2b57c
[ "MIT" ]
62
2018-09-13T08:03:39.000Z
2022-01-03T09:05:54.000Z
shepherd/api/requests.py
iterait/shepherd
0847c9885584378dd68a48c40d03f9bb02b2b57c
[ "MIT" ]
null
null
null
from schematics import Model from schematics.types import StringType, ModelType from shepherd.api.models import ModelModel class StartJobRequest(Model): job_id: str = StringType(required=True) sheep_id: str = StringType(default=None) model: ModelModel = ModelType(ModelModel, required=True) payload: s...
29.333333
60
0.775568
d77eb09f517b3ea5ced21e2e582c56e6ad3d66b8
3,926
py
Python
src/pr_plot.py
topologyYDM/dectree_QSO
3008ad7eb8ac9ba13b7182cb063aa41af05818fe
[ "MIT" ]
3
2019-03-05T14:02:21.000Z
2019-03-30T02:13:40.000Z
src/pr_plot.py
topologyYDM/dectree_QSO
3008ad7eb8ac9ba13b7182cb063aa41af05818fe
[ "MIT" ]
15
2019-03-25T02:17:50.000Z
2019-04-12T03:41:29.000Z
src/pr_plot.py
topologyYDM/dectree_QSO
3008ad7eb8ac9ba13b7182cb063aa41af05818fe
[ "MIT" ]
1
2019-03-03T08:13:12.000Z
2019-03-03T08:13:12.000Z
# -*- coding: utf-8 -*- # # plot precision-recall curve # author: topol @ USTC # last modified: 2019/3/26 # import matplotlib.pyplot as plt import numpy as np from scipy.interpolate import spline def read_score(filename, n1, n2): # n1是对于一个比例跑了多少个不同的随机数 # n2是共有多少个测试集比例 with open(filename) as f: l...
50.987013
123
0.745288
e4665c2de1d7fb48db1eb79ead59061ba77a235f
1,154
py
Python
jsonschematests.py
galamdring/mkdocs-json-schema-plugin
843311b65b2eb4ca5158ba8609d0ad3394d28040
[ "MIT" ]
null
null
null
jsonschematests.py
galamdring/mkdocs-json-schema-plugin
843311b65b2eb4ca5158ba8609d0ad3394d28040
[ "MIT" ]
null
null
null
jsonschematests.py
galamdring/mkdocs-json-schema-plugin
843311b65b2eb4ca5158ba8609d0ad3394d28040
[ "MIT" ]
null
null
null
import unittest from mkdocs_json_schema_plugin import markdown class JsonSchemaTests(unittest.TestCase): # def test_plugin_config_defaults(self): # expected = { # 'json_schema': "" # } # plugin = jsonschema.JsonSchema() # errors, warnings = plugin.load_config({}) #...
30.368421
84
0.615251
21fb2dcd28eaf4d32a09e74199789dd06b82b221
3,427
py
Python
oo/carro.py
amandakarolline/pythonbirds
fdbadb724ee58d64fd37f4a4c0dd95ab89aa286d
[ "MIT" ]
null
null
null
oo/carro.py
amandakarolline/pythonbirds
fdbadb724ee58d64fd37f4a4c0dd95ab89aa286d
[ "MIT" ]
null
null
null
oo/carro.py
amandakarolline/pythonbirds
fdbadb724ee58d64fd37f4a4c0dd95ab89aa286d
[ "MIT" ]
null
null
null
""" Você deve criar uma classe carro que vai possuir dois atributos compostos por outras duas classes: 1) Motor 2) Direção O motor terá a responsabilidade de controlar a velocidade. Ele oferece os seguintes atributos: 1) Atributo de dado velocidade 2) Método acelerar que deverá incrementar a velocidade de uma unidade...
22.546053
98
0.626495
315acd8c8a374e57447d7f66a0875ad70c6b1646
2,822
py
Python
datahub/activity_feed/views.py
reupen/data-hub-api
d854188f4c45da0e89075add132a15bb1227ff79
[ "MIT" ]
null
null
null
datahub/activity_feed/views.py
reupen/data-hub-api
d854188f4c45da0e89075add132a15bb1227ff79
[ "MIT" ]
16
2020-04-01T15:25:35.000Z
2020-04-14T14:07:30.000Z
datahub/activity_feed/views.py
reupen/data-hub-api
d854188f4c45da0e89075add132a15bb1227ff79
[ "MIT" ]
null
null
null
from django.conf import settings from django.http import HttpResponse, JsonResponse from django.utils.decorators import method_decorator from oauth2_provider.contrib.rest_framework.permissions import IsAuthenticatedOrTokenHasScope from rest_framework import status from rest_framework.views import APIView from datahub....
35.275
93
0.65769
6702c3923cf38278fd2f88873dabd561f74d0d40
48
py
Python
monailabel/utils/activelearning/__init__.py
finalelement/MONAILabel
3f63ffd4f49161076e77b7c74c733f6ce5cce78c
[ "Apache-2.0" ]
1
2021-07-27T12:45:36.000Z
2021-07-27T12:45:36.000Z
monailabel/utils/activelearning/__init__.py
finalelement/MONAILabel
3f63ffd4f49161076e77b7c74c733f6ce5cce78c
[ "Apache-2.0" ]
null
null
null
monailabel/utils/activelearning/__init__.py
finalelement/MONAILabel
3f63ffd4f49161076e77b7c74c733f6ce5cce78c
[ "Apache-2.0" ]
1
2021-07-27T12:45:38.000Z
2021-07-27T12:45:38.000Z
from .random import Random from .tta import TTA
16
26
0.791667
9a6da06779884fd892a52bee436286da2678461d
871
py
Python
gdesk/__main__.py
thocoo/gamma-desk
9cb63a65fe23e30e155b3beca862f369b7fa1b7e
[ "Apache-2.0" ]
null
null
null
gdesk/__main__.py
thocoo/gamma-desk
9cb63a65fe23e30e155b3beca862f369b7fa1b7e
[ "Apache-2.0" ]
8
2021-04-09T11:31:43.000Z
2021-06-09T09:07:18.000Z
gdesk/__main__.py
thocoo/gamma-desk
9cb63a65fe23e30e155b3beca862f369b7fa1b7e
[ "Apache-2.0" ]
null
null
null
#------------------------------------------------------------------------------- # Copyright 2021 Thomas Cools # # 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/li...
39.590909
80
0.6062
566cc920c4cfd1c90f115543017b17bae67b2bbd
2,961
py
Python
custom_components/cisco_imc/imc_device.py
ecoen66/cisco_imc
88d2b832d13fa7f52d5cf9b781fa5034fafa197b
[ "MIT" ]
5
2022-02-22T17:57:25.000Z
2022-02-28T14:30:20.000Z
custom_components/cisco_imc/imc_device.py
ecoen66/cisco_imc
88d2b832d13fa7f52d5cf9b781fa5034fafa197b
[ "MIT" ]
null
null
null
custom_components/cisco_imc/imc_device.py
ecoen66/cisco_imc
88d2b832d13fa7f52d5cf9b781fa5034fafa197b
[ "MIT" ]
null
null
null
"""Support for Cisco UCS server IMCs.""" from functools import wraps import logging from typing import Any, Optional from homeassistant.const import ATTR_BATTERY_CHARGING, ATTR_BATTERY_LEVEL from homeassistant.core import callback from homeassistant.helpers.entity_registry import async_get_registry from homeassistant....
35.25
87
0.606214
e9821787a890deb014753241118f05acf36f7f24
5,083
py
Python
setup.py
mcara/subpixal
e219b62689302f4f8437e5c6fc5c1558b7e52929
[ "BSD-3-Clause" ]
6
2018-06-28T18:19:09.000Z
2021-09-01T06:27:22.000Z
setup.py
mcara/subpixal
e219b62689302f4f8437e5c6fc5c1558b7e52929
[ "BSD-3-Clause" ]
2
2018-06-20T20:44:48.000Z
2018-09-25T08:12:35.000Z
setup.py
mcara/subpixal
e219b62689302f4f8437e5c6fc5c1558b7e52929
[ "BSD-3-Clause" ]
2
2018-04-06T18:54:08.000Z
2019-10-17T17:42:37.000Z
#!/usr/bin/env python import sys import os import shutil import inspect import pkgutil import importlib from subprocess import check_call, CalledProcessError from configparser import ConfigParser from setuptools import setup, find_packages, Extension, _install_setup_requires from setuptools.command.install import insta...
28.880682
87
0.644895
611246a756c365ecb7aec4966c13981cdadb8218
2,467
py
Python
data/p4VQE/R1/benchmark/startQiskit_noisy175.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R1/benchmark/startQiskit_noisy175.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R1/benchmark/startQiskit_noisy175.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=12 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
27.10989
118
0.631536
0e7ac5ec4f3ac866bc3010b5af4161201f040afe
601
py
Python
tests/unit/dataactcore/factories/user.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
1
2018-10-29T12:54:44.000Z
2018-10-29T12:54:44.000Z
tests/unit/dataactcore/factories/user.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
null
null
null
tests/unit/dataactcore/factories/user.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
null
null
null
import factory from factory import fuzzy from dataactcore.models import userModel from dataactcore.models.lookups import PERMISSION_TYPE_DICT class UserFactory(factory.Factory): class Meta: model = userModel.User username = fuzzy.FuzzyText() email = fuzzy.FuzzyText() name = fuzzy.FuzzyText() ...
28.619048
114
0.71381
079fca968e46a926e3a5bbac827926e535e33ed7
1,841
py
Python
test/utilities.py
ConnectionMaster/qgis-earthengine-plugin
dfb7cbaeca856e03ca3560bb52454a1c17ce347a
[ "MIT" ]
307
2018-04-28T02:50:27.000Z
2022-03-31T09:39:25.000Z
test/utilities.py
europlanet-gmap/circle-craters
62881f7fa7f032c8377dee130598ec7a93ccdae3
[ "BSD-3-Clause" ]
72
2019-09-18T00:03:00.000Z
2022-01-26T17:33:55.000Z
test/utilities.py
europlanet-gmap/circle-craters
62881f7fa7f032c8377dee130598ec7a93ccdae3
[ "BSD-3-Clause" ]
95
2018-05-21T04:12:53.000Z
2022-03-24T11:52:46.000Z
# coding=utf-8 """Common functionality used by regression tests.""" from __future__ import absolute_import import sys import logging LOGGER = logging.getLogger('QGIS') QGIS_APP = None # Static variable used to hold hand to running QGIS app CANVAS = None PARENT = None IFACE = None def get_qgis_app(): """ Start...
29.222222
77
0.680608
f8926c290a2db0a0c248273d77a9163c08ac85fa
2,119
py
Python
labby/client.py
luizribeiro/tdklambda
94f0920da9eb2a58ef201864826b656158894dd6
[ "MIT" ]
null
null
null
labby/client.py
luizribeiro/tdklambda
94f0920da9eb2a58ef201864826b656158894dd6
[ "MIT" ]
99
2020-08-09T15:46:19.000Z
2022-03-26T15:30:26.000Z
labby/client.py
luizribeiro/tdklambda
94f0920da9eb2a58ef201864826b656158894dd6
[ "MIT" ]
1
2020-10-30T20:46:43.000Z
2020-10-30T20:46:43.000Z
from typing import cast from pynng import Req0 from labby.server import ServerRequest, TNonOptionalResponse from labby.server.requests.device_info import DeviceInfoRequest, DeviceInfoResponse from labby.server.requests.experiment_status import ( ExperimentStatusRequest, ExperimentStatusResponse, ) from labby....
32.106061
86
0.70505
07a9090be004329b475c0f31aa0efbbb8b30b442
24,682
py
Python
ExtensionStats/ExtensionStats.py
sjh26/SlicerDeveloperToolsForExtensions
502c5e450c8020bd94e5ee404e0ee995116d1bcb
[ "Apache-2.0" ]
null
null
null
ExtensionStats/ExtensionStats.py
sjh26/SlicerDeveloperToolsForExtensions
502c5e450c8020bd94e5ee404e0ee995116d1bcb
[ "Apache-2.0" ]
null
null
null
ExtensionStats/ExtensionStats.py
sjh26/SlicerDeveloperToolsForExtensions
502c5e450c8020bd94e5ee404e0ee995116d1bcb
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import vtk, qt, ctk, slicer from slicer.ScriptedLoadableModule import * import collections import json import logging import sys import time try: from urllib.request import urlopen from urllib.parse import urlencode from urllib.error import URLError except ImportError: f...
35.26
205
0.641763
46618efd03464ad51f6514707faa8c6054d79626
6,638
py
Python
src/pages/ChooseIntervalPage.py
deeplearningunb/NextValue
50c04ea55fa3141009d1f018197e02344fdda327
[ "MIT" ]
null
null
null
src/pages/ChooseIntervalPage.py
deeplearningunb/NextValue
50c04ea55fa3141009d1f018197e02344fdda327
[ "MIT" ]
9
2021-04-10T22:33:36.000Z
2021-05-13T01:47:04.000Z
src/pages/ChooseIntervalPage.py
deeplearningunb/NextValue
50c04ea55fa3141009d1f018197e02344fdda327
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter import filedialog import page_list from tkcalendar import Calendar from datetime import date from matplotlib.figure import Figure from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg import datetime import matplotlib.pyplot as plt import pandas as pd class ChooseIntervalPag...
36.877778
160
0.627448
0572081eaa13e4ab83b1d9cd43666930de79cb12
2,856
py
Python
CRAFT/file_utils.py
PaddleEdu/OCR-models-PaddlePaddle
1a62dcf4b647310b505fa5e4a18bbd8d27c39dfd
[ "Apache-2.0" ]
12
2021-05-10T13:47:32.000Z
2021-07-30T08:59:53.000Z
CRAFT/file_utils.py
maxpark/OCR-models-PaddlePaddle
1a62dcf4b647310b505fa5e4a18bbd8d27c39dfd
[ "Apache-2.0" ]
4
2021-05-16T11:28:32.000Z
2021-07-23T07:41:44.000Z
CRAFT/file_utils.py
maxpark/OCR-models-PaddlePaddle
1a62dcf4b647310b505fa5e4a18bbd8d27c39dfd
[ "Apache-2.0" ]
4
2021-05-12T16:32:03.000Z
2021-11-17T23:18:39.000Z
# -*- coding: utf-8 -*- import os import numpy as np import cv2 # borrowed from https://github.com/lengstrom/fast-style-transfer/blob/master/src/utils.py def get_files(img_dir): imgs, masks, xmls = list_files(img_dir) return imgs, masks, xmls def list_files(in_path): img_files = [] mask_files = [] ...
37.090909
131
0.533613
1d1698a8ec31671403eb80d8fb227ed3c2aad2d4
5,329
py
Python
seq2seq/util/checkpoint.py
natalymr/pytorch-seq2seq
4ecd2ead02cfb2d131c5c4fa60186da5034a0432
[ "Apache-2.0" ]
null
null
null
seq2seq/util/checkpoint.py
natalymr/pytorch-seq2seq
4ecd2ead02cfb2d131c5c4fa60186da5034a0432
[ "Apache-2.0" ]
null
null
null
seq2seq/util/checkpoint.py
natalymr/pytorch-seq2seq
4ecd2ead02cfb2d131c5c4fa60186da5034a0432
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os import time import shutil import torch import dill class Checkpoint(object): """ The Checkpoint class manages the saving and loading of a model during training. It allows training to be suspended and resumed at a later time (e.g. when running on a cluster u...
41.310078
129
0.647776
5593a0379f2b94bd8cbd42ffe0b7fa4703436f5f
391
py
Python
ZeeboVO/wsgi.py
relativelyIntuitive/ZeeboVO
498f538f2e47b15e129502eebe729b673e308086
[ "BSD-Source-Code" ]
1
2021-02-15T08:18:35.000Z
2021-02-15T08:18:35.000Z
ZeeboVO/wsgi.py
relativelyIntuitive/ZeeboVO
498f538f2e47b15e129502eebe729b673e308086
[ "BSD-Source-Code" ]
null
null
null
ZeeboVO/wsgi.py
relativelyIntuitive/ZeeboVO
498f538f2e47b15e129502eebe729b673e308086
[ "BSD-Source-Code" ]
null
null
null
""" WSGI config for ZeeboVO project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTI...
23
78
0.785166
36acca0cf2cf15c0d9a09411bedeb4b0bc9cb379
187
py
Python
helpers/__init__.py
CONABIO/Sipecam-Kobo-a-Zendro
59eae83ac64348021c78d5014bbfd6920a134019
[ "Apache-2.0" ]
null
null
null
helpers/__init__.py
CONABIO/Sipecam-Kobo-a-Zendro
59eae83ac64348021c78d5014bbfd6920a134019
[ "Apache-2.0" ]
null
null
null
helpers/__init__.py
CONABIO/Sipecam-Kobo-a-Zendro
59eae83ac64348021c78d5014bbfd6920a134019
[ "Apache-2.0" ]
null
null
null
from .inverse_haversine import inverse_haversine from .parse_to_utc import parse_to_utc from .add_attachments import add_attachments from .validate_coordinates import validate_coordinates
46.75
54
0.898396
2272aa630e246f9dea4a949eec5929351670310b
1,392
py
Python
var/spack/repos/builtin/packages/subread/package.py
whitfin/spack
aabd2be31a511d0e00c1017f7311a421659319d9
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2016-01-12T20:14:40.000Z
2017-06-16T07:03:46.000Z
var/spack/repos/builtin/packages/subread/package.py
whitfin/spack
aabd2be31a511d0e00c1017f7311a421659319d9
[ "ECL-2.0", "Apache-2.0", "MIT" ]
75
2016-07-27T11:43:00.000Z
2020-12-08T15:56:53.000Z
var/spack/repos/builtin/packages/subread/package.py
whitfin/spack
aabd2be31a511d0e00c1017f7311a421659319d9
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2015-10-16T13:51:49.000Z
2021-10-18T13:58:03.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * import sys class Subread(MakefilePackage): """The Subread software package is a tool kit for pro...
33.95122
108
0.594828
37c708490e14c5cc8a28ea26f47ed390ced90b3b
1,294
py
Python
common/src/stack/command/stack/commands/list/host/attr/__init__.py
knutsonchris/stacki
33087dd5fa311984a66ccecfeee6f9c2c25f665d
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/command/stack/commands/list/host/attr/__init__.py
knutsonchris/stacki
33087dd5fa311984a66ccecfeee6f9c2c25f665d
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/command/stack/commands/list/host/attr/__init__.py
knutsonchris/stacki
33087dd5fa311984a66ccecfeee6f9c2c25f665d
[ "BSD-3-Clause" ]
null
null
null
# @copyright@ # Copyright (c) 2006 - 2019 Teradata # All rights reserved. Stacki(r) v5.x stacki.com # https://github.com/Teradata/stacki/blob/master/LICENSE.txt # @copyright@ # # @rocks@ # Copyright (c) 2000 - 2010 The Regents of the University of California # All rights reserved. Rocks(r) v5.4 www.rocksclusters.org # ...
24.884615
72
0.723338
17377f769536a012ce1c5d65dd0694a29495c47d
2,545
py
Python
model/GCS_N.py
TuChuck/LearnTrajDep
962b1bec30de91225af064d185a8d0658631f217
[ "MIT" ]
null
null
null
model/GCS_N.py
TuChuck/LearnTrajDep
962b1bec30de91225af064d185a8d0658631f217
[ "MIT" ]
null
null
null
model/GCS_N.py
TuChuck/LearnTrajDep
962b1bec30de91225af064d185a8d0658631f217
[ "MIT" ]
null
null
null
import torch.nn as nn import torch from torch.nn.parameter import Parameter import GraphConvolution import GC_module import itertools class GCS_N(nn.Module): def __init__(self, input_feature, hidden_feature, p_dropout, n_separate = 2,num_stage = 1, node_n=48): """ Define GCS_N(Graph Convolution Se...
34.391892
106
0.559528
795f2313119d8110a56102da7509404a2cb61813
616
py
Python
objax/util/__init__.py
parmarsuraj99/objax
111cd78960f5812885505b5ec02552b98a789973
[ "Apache-2.0" ]
2
2021-02-23T18:23:40.000Z
2022-03-09T09:38:37.000Z
objax/util/__init__.py
parmarsuraj99/objax
111cd78960f5812885505b5ec02552b98a789973
[ "Apache-2.0" ]
null
null
null
objax/util/__init__.py
parmarsuraj99/objax
111cd78960f5812885505b5ec02552b98a789973
[ "Apache-2.0" ]
1
2020-09-20T23:56:29.000Z
2020-09-20T23:56:29.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.235294
74
0.75974
051f2c0d3b3194583c814ac409911ed906e433c6
5,954
py
Python
elit/transform/tsv.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
9
2021-07-12T22:05:47.000Z
2022-02-22T03:10:14.000Z
elit/transform/tsv.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
4
2021-08-31T08:28:37.000Z
2022-03-28T05:52:14.000Z
elit/transform/tsv.py
emorynlp/levi-graph-amr-parser
f71f1056c13181b8db31d6136451fb8d57114819
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2019-06-13 21:15 import functools from abc import ABC from typing import Tuple, Union, Optional, Iterable, List import tensorflow as tf from elit.common.structure import SerializableDict from elit.common.transform_tf import Transform from elit.common.vocab_tf import Vo...
39.171053
120
0.631508
2c2fc4823f162c6397dee8766b31e5ea2c414644
3,310
py
Python
script/ard.py
ms860309/AutomatedReactionMechanismDiscovery
7749afd60e828638bf0bf013bb04d33304735764
[ "MIT" ]
1
2022-02-09T20:08:17.000Z
2022-02-09T20:08:17.000Z
script/ard.py
ms860309/ARMD
7749afd60e828638bf0bf013bb04d33304735764
[ "MIT" ]
3
2021-04-28T15:03:45.000Z
2021-05-13T03:10:47.000Z
script/ard.py
ms860309/AutomatedReactionMechanismDiscovery
7749afd60e828638bf0bf013bb04d33304735764
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- if __name__ == '__main__': # standard library imports import sys import os from os import path sys.path.append(path.join(path.dirname(path.dirname(path.abspath(__file__))), 'code/ard')) sys.path.append(path.join(path.dirname(path.dirname(path.absp...
38.941176
204
0.665861
61e96b574565b5092836804556e751aceb3cd817
1,852
py
Python
app/user/serializers.py
ahanaf-islam/recipe-app-api
68e4998350943d0b35d09814224e014b1801054c
[ "MIT" ]
null
null
null
app/user/serializers.py
ahanaf-islam/recipe-app-api
68e4998350943d0b35d09814224e014b1801054c
[ "MIT" ]
null
null
null
app/user/serializers.py
ahanaf-islam/recipe-app-api
68e4998350943d0b35d09814224e014b1801054c
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model, authenticate from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers class UserSerializer(serializers.ModelSerializer): """Serializer for the users object""" class Meta: model = get_user_model() fields = (...
29.870968
73
0.616091
18215bebd4adb092ab36d8d7dcf02f310ec77adb
287
py
Python
argbind.py
raviqqe/argbind.py
11bbb9364910ddda0b537a1cf6b20d580cacf988
[ "Unlicense" ]
null
null
null
argbind.py
raviqqe/argbind.py
11bbb9364910ddda0b537a1cf6b20d580cacf988
[ "Unlicense" ]
null
null
null
argbind.py
raviqqe/argbind.py
11bbb9364910ddda0b537a1cf6b20d580cacf988
[ "Unlicense" ]
null
null
null
import functools import inspect def bind(func, *args, **kwargs): return functools.partial( func, *args, **{arg_name : kwargs[arg_name] for arg_name in _arg_names(func) if arg_name in kwargs}) def _arg_names(func): return inspect.getargspec(func).args
17.9375
69
0.675958
44b465b6f02b96423fa0685bb9586f8f6c38def5
4,884
py
Python
Backend/auth_server/models.py
cybriant/WeaveVPN
0e729d1f4e7849c755fa0213fa8dfd46dd621376
[ "Apache-2.0" ]
1
2020-04-19T02:50:26.000Z
2020-04-19T02:50:26.000Z
Backend/auth_server/models.py
cybriant/WeaveVPN
0e729d1f4e7849c755fa0213fa8dfd46dd621376
[ "Apache-2.0" ]
6
2020-04-30T16:04:39.000Z
2022-02-27T03:15:17.000Z
Backend/auth_server/models.py
cybriant/WeaveVPN
0e729d1f4e7849c755fa0213fa8dfd46dd621376
[ "Apache-2.0" ]
null
null
null
import time from flask_sqlalchemy import SQLAlchemy from werkzeug.security import check_password_hash db = SQLAlchemy() class User(db.Model): id = db.Column(db.String(100), primary_key=True) first_name = db.Column(db.String(55)) last_name = db.Column(db.String(55)) password = db.Column(db.String(100)...
25.978723
65
0.625307
53cb10ba9fc5e7547b4c66e32c7ddcd71045fcee
1,051
py
Python
pandas/tests/arithmetic/test_array_ops.py
CJL89/pandas
6210077d32a9e9675526ea896e6d1f9189629d4a
[ "BSD-3-Clause" ]
603
2020-12-23T13:49:32.000Z
2022-03-31T23:38:03.000Z
pandas/tests/arithmetic/test_array_ops.py
CJL89/pandas
6210077d32a9e9675526ea896e6d1f9189629d4a
[ "BSD-3-Clause" ]
387
2020-12-15T14:54:04.000Z
2022-03-31T07:00:21.000Z
pandas/tests/arithmetic/test_array_ops.py
CJL89/pandas
6210077d32a9e9675526ea896e6d1f9189629d4a
[ "BSD-3-Clause" ]
60
2020-07-22T14:53:10.000Z
2022-03-23T10:17:59.000Z
import operator import numpy as np import pytest import pandas._testing as tm from pandas.core.ops.array_ops import comparison_op, na_logical_op def test_na_logical_op_2d(): left = np.arange(8).reshape(4, 2) right = left.astype(object) right[0, 0] = np.nan # Check that we fall back to the vec_binop...
28.405405
68
0.719315
3148767e79676c61fd2bc8073e25277dcb837de0
117,903
py
Python
sklearn/utils/estimator_checks.py
ryuwd/scikit-learn
da562b4fa58bdce4a7f3470f733f33d728747a66
[ "BSD-3-Clause" ]
2
2020-12-03T12:54:19.000Z
2020-12-11T05:28:54.000Z
sklearn/utils/estimator_checks.py
ryuwd/scikit-learn
da562b4fa58bdce4a7f3470f733f33d728747a66
[ "BSD-3-Clause" ]
null
null
null
sklearn/utils/estimator_checks.py
ryuwd/scikit-learn
da562b4fa58bdce4a7f3470f733f33d728747a66
[ "BSD-3-Clause" ]
null
null
null
import types import warnings import pickle import re from copy import deepcopy from functools import partial, wraps from inspect import signature import numpy as np from scipy import sparse from scipy.stats import rankdata import joblib from . import IS_PYPY from .. import config_context from ._testing import _get_ar...
37.429524
112
0.638788
1035e02df02cb8357fc290dc2aba63b6c1ba4281
1,640
py
Python
backend/utils/id_generator.py
methodpark/digitaleswarten
024c0b88df54e9727925b202e139b3c5b2ce73d6
[ "Apache-2.0" ]
10
2020-03-20T19:14:43.000Z
2020-10-29T21:31:40.000Z
backend/utils/id_generator.py
methodpark/digitaleswarten
024c0b88df54e9727925b202e139b3c5b2ce73d6
[ "Apache-2.0" ]
41
2020-03-20T20:27:55.000Z
2020-03-24T21:49:37.000Z
backend/utils/id_generator.py
methodpark/digitaleswarten
024c0b88df54e9727925b202e139b3c5b2ce73d6
[ "Apache-2.0" ]
1
2020-03-21T09:31:51.000Z
2020-03-21T09:31:51.000Z
import random import time from hashlib import sha1 random.seed() WORDLIST = { 'adjective': [ 'angenehm', 'attraktiv', 'aufmerksam', 'bunt', 'blau', 'charmant', 'dankbar', 'edel', 'frei', 'gelb', 'glatt', 'hell', 'ideal', 'jung', 'leicht', 'lieb', 'luftig', 'mutig', 'nah', 'neu', 'offen', '...
33.469388
79
0.54939
5fcd4cea9a26a8641cf6cb2ba0a5ceb59f7ac3c6
295
py
Python
iso4217/utils.py
xheuz/snatsch-iso4217
a1bec59c68dc9ce93e62e2187ceddf08c56aea28
[ "MIT" ]
1
2021-09-17T02:10:55.000Z
2021-09-17T02:10:55.000Z
iso4217/utils.py
xheuz/snatsch-iso4217
a1bec59c68dc9ce93e62e2187ceddf08c56aea28
[ "MIT" ]
null
null
null
iso4217/utils.py
xheuz/snatsch-iso4217
a1bec59c68dc9ce93e62e2187ceddf08c56aea28
[ "MIT" ]
1
2021-09-11T17:33:15.000Z
2021-09-11T17:33:15.000Z
from .main import currencies def get_currency(alphabetic_code): return currencies.get(alphabetic_code) def is_valid_currency(alphabetic_code): currency = get_currency(alphabetic_code) return currency is not None def get_list_of_currencies(): return list(currencies.keys())
19.666667
44
0.779661
c6498f72cbbdacc971a0678474d18c699ee098e0
1,297
py
Python
pyaz/vmss/diagnostics/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/vmss/diagnostics/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/vmss/diagnostics/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
''' Configure the Azure Virtual Machine Scale Set diagnostics extension. ''' from ... pyaz_utils import _call_az def set(resource_group, settings, vmss_name, no_auto_upgrade_minor_version=None, protected_settings=None, version=None): ''' Enable diagnostics on a VMSS. Required Parameters: - resource_gr...
40.53125
173
0.737857
234fa6bd3c3bb17788c0b6213c72fa17a4ab270c
4,348
py
Python
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Aerodynamics/AERODAS/post_stall_coefficients.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Aerodynamics/AERODAS/post_stall_coefficients.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
SUAVE/SUAVE-2.5.0/trunk/SUAVE/Methods/Aerodynamics/AERODAS/post_stall_coefficients.py
Vinicius-Tanigawa/Undergraduate-Research-Project
e92372f07882484b127d7affe305eeec2238b8a9
[ "MIT" ]
null
null
null
## @ingroup Methods-Aerodynamics-AERODAS # post_stall_coefficients.py # # Created: Feb 2016, E. Botero # Modified: Jun 2017, E. Botero # ---------------------------------------------------------------------- # Imports # ---------------------------------------------------------------------- import numpy as np from ...
36.233333
119
0.566237
56323f5238a9cd37d30788684558ef0569a053b9
2,496
py
Python
mock_server/tests/test_restapi.py
sridhar75/mock-server
f575ee9c6d0c4b01be6bb86af590f2307f47e36c
[ "Apache-2.0" ]
208
2015-01-20T15:34:41.000Z
2022-03-11T11:14:43.000Z
mock_server/tests/test_restapi.py
sridhar75/mock-server
f575ee9c6d0c4b01be6bb86af590f2307f47e36c
[ "Apache-2.0" ]
19
2015-02-04T11:49:25.000Z
2021-05-06T21:29:45.000Z
mock_server/tests/test_restapi.py
sridhar75/mock-server
f575ee9c6d0c4b01be6bb86af590f2307f47e36c
[ "Apache-2.0" ]
87
2015-03-20T05:24:43.000Z
2022-03-23T14:03:43.000Z
# -*- coding: utf-8 -*- import os import subprocess import time import tornado.testing from mock_server.application import Application class TestRestApi(tornado.testing.AsyncHTTPTestCase): def setUp(self): super(TestRestApi, self).setUp() self._upstream_server = subprocess.Popen( "m...
30.814815
76
0.628606