hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
9ea23dcade069280d50e6a5fe4990118a430ebc0
5,398
py
Python
stellarlab/spectrum/__init__.py
wangleon/stella
3942f8e687065bb96760140596747cbbe6dad04b
[ "Apache-2.0" ]
null
null
null
stellarlab/spectrum/__init__.py
wangleon/stella
3942f8e687065bb96760140596747cbbe6dad04b
[ "Apache-2.0" ]
null
null
null
stellarlab/spectrum/__init__.py
wangleon/stella
3942f8e687065bb96760140596747cbbe6dad04b
[ "Apache-2.0" ]
1
2021-10-02T02:18:28.000Z
2021-10-02T02:18:28.000Z
from . import specwcs from .speclib import get_phoenix_r10kspec, get_phoenix_hires def wl_vac_to_air(wl_vac, unit='Angstrom' ,ref='Ciddor1996'): """ Convert vacuum wavelength to air wavelength. Args: wl_vac (float): Vacuum wavelength in unit of Angstrom ref (str): Reference. Returns: ...
29.336957
75
0.517229
9ea263bbc1b32e2f26c083bb6b0ed889cd1a800c
26,158
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_proximity_placement_groups_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_proximity_placement_groups_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/operations/_proximity_placement_groups_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.122383
208
0.685947
9ea26b8c551da384c170e79eec26a6a83dffaa1d
89
py
Python
simulation/__init__.py
wfreinhart/composite_geometry
745f58ca6ba52e5b2fe4f643f97561e8777c18b6
[ "MIT" ]
null
null
null
simulation/__init__.py
wfreinhart/composite_geometry
745f58ca6ba52e5b2fe4f643f97561e8777c18b6
[ "MIT" ]
null
null
null
simulation/__init__.py
wfreinhart/composite_geometry
745f58ca6ba52e5b2fe4f643f97561e8777c18b6
[ "MIT" ]
null
null
null
name = "simulation" __version__ = '0.0.1' from . import models from . import scenarios
12.714286
23
0.707865
9ea289b0e31edc12340133f55886482074e62fa5
8,555
py
Python
incomepropertyevaluator/incomepropertyevaluator/settings.py
MikaSoftware/django-incomepropertyevaluator
d30dc9ba38dc2c2cb8ad858e9e7cfec17a45e73b
[ "BSD-2-Clause" ]
2
2019-02-22T23:34:59.000Z
2022-03-22T06:10:21.000Z
incomepropertyevaluator/incomepropertyevaluator/settings.py
MikaSoftware/django-incomepropertyevaluator
d30dc9ba38dc2c2cb8ad858e9e7cfec17a45e73b
[ "BSD-2-Clause" ]
6
2020-02-11T23:57:35.000Z
2022-03-11T23:17:44.000Z
incomepropertyevaluator/incomepropertyevaluator/settings.py
MikaSoftware/django-incomepropertyevaluator
d30dc9ba38dc2c2cb8ad858e9e7cfec17a45e73b
[ "BSD-2-Clause" ]
null
null
null
""" Django settings for incomepropertyevaluator project. Generated by 'django-admin startproject' using Django 1.11.8. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings...
27.596774
143
0.699825
9ea29136354b594af6e03c3e8bd283e62cb87857
2,162
py
Python
website/models.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
1
2015-10-02T18:35:53.000Z
2015-10-02T18:35:53.000Z
website/models.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
4
2016-05-13T14:24:16.000Z
2017-03-30T15:28:31.000Z
website/models.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Consolidates all necessary models from the framework and website packages. """ from framework.auth.core import User from framework.guid.model import Guid, BlacklistGuid from framework.sessions.model import Session from website.project.model import ( Node, NodeLog, Tag, WatchConfig, ...
37.275862
94
0.810361
9ea2ce5808b207d53df17170e240f4aec68904a7
2,412
py
Python
docs/conf.py
kwonhur/nevergrad
7821ff2ddf46ed7ece61529449f770d32179433c
[ "MIT" ]
2
2021-02-17T20:50:44.000Z
2021-08-21T12:27:58.000Z
docs/conf.py
kwonhur/nevergrad
7821ff2ddf46ed7ece61529449f770d32179433c
[ "MIT" ]
null
null
null
docs/conf.py
kwonhur/nevergrad
7821ff2ddf46ed7ece61529449f770d32179433c
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common opt...
33.971831
79
0.649254
9ea2d014754cb41ab5ccc3e21dc98562480df2d8
915
py
Python
toontown/hood/PetShopFishAnimatedProp.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/hood/PetShopFishAnimatedProp.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/hood/PetShopFishAnimatedProp.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from toontown.hood import AnimatedProp from direct.actor import Actor from direct.interval.IntervalGlobal import * class PetShopFishAnimatedProp(AnimatedProp.AnimatedProp): def __init__(self, node): AnimatedProp.AnimatedProp.__init__(self, node) parent = node.getParent() self.fish = Actor....
30.5
79
0.668852
9ea2d8027eb60e62e857db521dfeee62b75f07c1
5,847
py
Python
conv/layer.py
kekeblom/sghmc_dgp
19c5850516121a826c0f3c8a009a250889ff0ba0
[ "MIT" ]
null
null
null
conv/layer.py
kekeblom/sghmc_dgp
19c5850516121a826c0f3c8a009a250889ff0ba0
[ "MIT" ]
null
null
null
conv/layer.py
kekeblom/sghmc_dgp
19c5850516121a826c0f3c8a009a250889ff0ba0
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from sghmc_dgp import Layer import conditionals jitter = 1e-3 class PatchExtractor(object): """Extracts patches including color channels from images.""" def __init__(self, input_size, filter_size, feature_maps, stride=1): self.input_size = list(input_size) ...
36.773585
122
0.639473
9ea2d9aedd875e612544309fba1f0a9c162e09c7
166
py
Python
dataminer/__init__.py
Bmbus/DiscordAnalytica
663ebbe83789432804e45929fdea136b957a6237
[ "MIT" ]
1
2019-09-15T14:31:05.000Z
2019-09-15T14:31:05.000Z
dataminer/__init__.py
Bmbus/DiscordAnalytica
663ebbe83789432804e45929fdea136b957a6237
[ "MIT" ]
null
null
null
dataminer/__init__.py
Bmbus/DiscordAnalytica
663ebbe83789432804e45929fdea136b957a6237
[ "MIT" ]
null
null
null
""" IN THIS FOLLDER IS EVERY SCRIPT FOR COLLECTING DATA & PUSH IT TO THE DB """ from datetime import datetime utcnow = datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S")
33.2
71
0.698795
9ea3016ed8ba174153921656f4d1573090db0922
1,343
py
Python
archive/scripts/Color_Lookup/do_colorTab1.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
4
2022-01-04T18:24:56.000Z
2022-01-27T08:23:37.000Z
archive/scripts/Color_Lookup/do_colorTab1.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
null
null
null
archive/scripts/Color_Lookup/do_colorTab1.py
benw1/WINGS
32d4bfd073da0b86d2340cde25a5601d0a1ec95e
[ "RSA-MD" ]
null
null
null
#! /usr/bin/env python ''' Produce a blackbody curve color (mag1-mag2) look-up table ''' import numpy as np from astropy.io import ascii from astropy.table import Table from astropy import constants as const c = const.c.cgs.value h = const.h.cgs.value k = const.k_B.cgs.value def DoAll(): # HST UVIS-1/IR zero poin...
25.339623
87
0.584512
9ea312c7d7cda869b475bb939db668d2a335b61b
9,538
py
Python
make_simulations/make_simulation.py
maroniea/xsede-spm
d272c62ecce7df9f6923b456e54d59cd0738e6c6
[ "MIT" ]
2
2021-10-04T22:22:40.000Z
2021-10-04T22:44:46.000Z
make_simulations/make_simulation.py
maroniea/xsede-spm
d272c62ecce7df9f6923b456e54d59cd0738e6c6
[ "MIT" ]
1
2021-07-27T02:00:38.000Z
2021-07-27T02:00:38.000Z
make_simulations/make_simulation.py
maroniea/xsede-spm
d272c62ecce7df9f6923b456e54d59cd0738e6c6
[ "MIT" ]
null
null
null
# Make CapSol Simulations # Use a Terminal / Powershell to run this file using streamlit with the command: # streamlit run make_simulation.py # Imports go at the top... from re import T import streamlit as st import numpy as np import os import copy import glob import itertools import capsol.capsol as cap import Sess...
35.722846
225
0.632418
9ea319a6089ca281f0ead8511367c20b47f605ea
7,402
py
Python
python/ray/tests/test_projects.py
gfmartins/ray
0d911b8f05ce80bdc14e740afdaa74a29c27a278
[ "Apache-2.0" ]
1
2019-08-21T08:31:10.000Z
2019-08-21T08:31:10.000Z
python/ray/tests/test_projects.py
GitAlanWong/ray
c852213b8349b6b9e9e7353573e2259a1b9ef925
[ "Apache-2.0" ]
null
null
null
python/ray/tests/test_projects.py
GitAlanWong/ray
c852213b8349b6b9e9e7353573e2259a1b9ef925
[ "Apache-2.0" ]
2
2019-09-04T13:27:51.000Z
2019-09-17T04:20:38.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import jsonschema import os import pytest import subprocess import yaml from click.testing import CliRunner import sys from contextlib import contextmanager from ray.projects.scripts import start import ray ...
34.268519
78
0.666036
9ea3268b0af6a09e22e776d8cb88f53e13925d24
4,564
py
Python
homecontrol/modules/chromecast/module.py
jaipradeesh/HomeControl
79ffe8a403fb53e3faf91f55f66d912bb62b4f5f
[ "MIT" ]
null
null
null
homecontrol/modules/chromecast/module.py
jaipradeesh/HomeControl
79ffe8a403fb53e3faf91f55f66d912bb62b4f5f
[ "MIT" ]
null
null
null
homecontrol/modules/chromecast/module.py
jaipradeesh/HomeControl
79ffe8a403fb53e3faf91f55f66d912bb62b4f5f
[ "MIT" ]
null
null
null
"Chromecast module" import pychromecast from homecontrol.dependencies.entity_types import Item class Chromecast(Item): """The Chromecast item""" last_time_jump = 0 async def init(self) -> None: """Initialises the Chromecast item""" try: self.chromecast = pychromecast.Chromec...
34.315789
72
0.618536
9ea33d1d1bc7d3a3329c95418efb8c303b258616
2,239
py
Python
joj/horse/tests/apis/test_misc.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
6
2020-12-28T07:05:52.000Z
2022-01-16T04:44:02.000Z
joj/horse/tests/apis/test_misc.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
56
2021-02-02T02:21:52.000Z
2022-03-13T02:39:05.000Z
joj/horse/tests/apis/test_misc.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
3
2021-01-28T17:52:58.000Z
2021-12-17T17:42:42.000Z
import jwt import pytest from httpx import AsyncClient from pytest_lazyfixture import lazy_fixture from joj.horse import models from joj.horse.app import app from joj.horse.config import settings from joj.horse.tests.utils.utils import do_api_request, user_access_tokens from joj.horse.utils.version import get_git_vers...
34.446154
81
0.61188
9ea3a505a0e77ef03d79412ab3ad985cd704c64a
20,947
py
Python
uclahedp/tools/dataset.py
uclahedp/uclahedp
122ecb180cc58c3aadb47de016427a46094cc8fa
[ "MIT" ]
2
2019-04-30T22:21:44.000Z
2021-06-09T02:35:37.000Z
uclahedp/tools/dataset.py
phyzicist/uclahedp
122ecb180cc58c3aadb47de016427a46094cc8fa
[ "MIT" ]
23
2019-02-11T23:05:02.000Z
2020-09-18T01:17:19.000Z
uclahedp/tools/dataset.py
phyzicist/uclahedp
122ecb180cc58c3aadb47de016427a46094cc8fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Feb 13 09:20:38 2019 @author: peter The dataset tools package contains functions for manupulating datasets that follow the UCLA HEDP dataset format (defined in the validDataset function). **Useful dataset functions** validDataset -> Check whether a gro...
38.085455
121
0.60992
9ea3af4e038ac54961a4e53353d8a9b704d50764
2,432
py
Python
tests/test_interface.py
trp07/messages
f2df7f545ddd2788a2000e02c30836f0c8f934cd
[ "MIT" ]
32
2018-01-27T13:48:41.000Z
2021-04-18T20:18:23.000Z
tests/test_interface.py
HomeMadePy/messages
f2df7f545ddd2788a2000e02c30836f0c8f934cd
[ "MIT" ]
27
2018-01-26T01:20:30.000Z
2021-08-28T01:08:05.000Z
tests/test_interface.py
trp07/messages
f2df7f545ddd2788a2000e02c30836f0c8f934cd
[ "MIT" ]
13
2018-02-25T17:36:17.000Z
2021-02-21T17:17:44.000Z
"""messages._interface tests.""" import pytest import messages._interface from messages._interface import Message ############################################################################## # FIXTURES ############################################################################## class MsgGood(Message): """G...
27.636364
78
0.474507
9ea3d126c251deff84d84ef1c62985a65757422a
2,159
py
Python
src/draw_learning_curve.py
jerrylsu/TC-Bot
7b2a4aaebcbb791cce6f3ab53b06bd54df8a7aa9
[ "MIT" ]
null
null
null
src/draw_learning_curve.py
jerrylsu/TC-Bot
7b2a4aaebcbb791cce6f3ab53b06bd54df8a7aa9
[ "MIT" ]
null
null
null
src/draw_learning_curve.py
jerrylsu/TC-Bot
7b2a4aaebcbb791cce6f3ab53b06bd54df8a7aa9
[ "MIT" ]
null
null
null
''' Created on Nov 3, 2016 draw a learning curve @author: xiul ''' import argparse, json import matplotlib.pyplot as plt def read_performance_records(path): """ load the performance score (.json) file """ data = json.load(open(path, 'rb')) for key in data['success_rate'].keys(): ...
29.986111
195
0.59333
9ea475e2ccfc0b24631364f9707359ed84b7cb3d
14,009
py
Python
swagger_client/api/project_api.py
radon-h2020/radon-ctt-cli
3120b748c73e99d81d0cac5037e393229577d640
[ "Apache-2.0" ]
null
null
null
swagger_client/api/project_api.py
radon-h2020/radon-ctt-cli
3120b748c73e99d81d0cac5037e393229577d640
[ "Apache-2.0" ]
null
null
null
swagger_client/api/project_api.py
radon-h2020/radon-ctt-cli
3120b748c73e99d81d0cac5037e393229577d640
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ RADON CTT Server API This is API of the RADON Continuous Testing Tool (CTT) Server: <a href=\"https://github.com/radon-h2020/radon-ctt\">https://github.com/radon-h2020/radon-ctt<a/> # noqa: E501 OpenAPI spec version: 1.0.0-oas3 Generated by: https://github.com/swagger-api/sw...
35.920513
178
0.602113
9ea47ba47a04a698b7d6dc7d6cdff1441a5952ba
2,030
py
Python
migrations/versions/0021_add_delivered_failed_counts.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
migrations/versions/0021_add_delivered_failed_counts.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
migrations/versions/0021_add_delivered_failed_counts.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
"""empty message Revision ID: 0021_add_delivered_failed_counts Revises: 0020_template_history_fix Create Date: 2016-05-23 15:05:25.109346 """ # revision identifiers, used by Alembic. revision = "0021_add_delivered_failed_counts" down_revision = "0020_template_history_fix" import sqlalchemy as sa from alembic import...
38.301887
107
0.65468
9ea48272a35e386f5447385b4b91610605d03be5
18,846
py
Python
oscar/lib/python2.7/site-packages/IPython/testing/iptestcontroller.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/testing/iptestcontroller.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/testing/iptestcontroller.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """IPython Test Process Controller This module runs one or more subprocesses which will actually run the IPython test suite. """ # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from __future__ import print_function import arg...
35.358349
99
0.586756
9ea4980312c833537693538ded0ed351558b4f1e
2,660
py
Python
tests/test_adam.py
tao-harald/geoopt
d6fea4d44f146877c5a430e9fd6ba0fb7e821b92
[ "Apache-2.0" ]
438
2019-03-05T11:24:03.000Z
2022-03-31T14:46:42.000Z
tests/test_adam.py
tao-harald/geoopt
d6fea4d44f146877c5a430e9fd6ba0fb7e821b92
[ "Apache-2.0" ]
98
2019-03-07T21:38:24.000Z
2022-03-25T10:48:45.000Z
tests/test_adam.py
tao-harald/geoopt
d6fea4d44f146877c5a430e9fd6ba0fb7e821b92
[ "Apache-2.0" ]
58
2019-04-13T04:52:16.000Z
2022-03-14T09:26:00.000Z
import geoopt import torch import numpy as np import pytest @pytest.mark.parametrize("params", [dict(lr=1e-2), dict(lr=1, amsgrad=True)]) def test_adam_lorentz(params): lorentz = geoopt.manifolds.Lorentz(k=torch.Tensor([1.0])) torch.manual_seed(42) with torch.no_grad(): X = geoopt.ManifoldParamete...
32.048193
85
0.637594
9ea4b8c56ee03c2cb9e06f5f48ceb102b8861758
489
py
Python
homeassistant/components/launch_library/const.py
GPDixon/core
c28574362145d808e4f882473f4b9b0c445a8f00
[ "Apache-2.0" ]
null
null
null
homeassistant/components/launch_library/const.py
GPDixon/core
c28574362145d808e4f882473f4b9b0c445a8f00
[ "Apache-2.0" ]
7
2022-01-27T06:32:08.000Z
2022-03-31T06:29:00.000Z
homeassistant/components/launch_library/const.py
ebfio/home-assistant
5a1e5e1cef3cdcc9b876b768be99bd6844646365
[ "Apache-2.0" ]
null
null
null
"""Constants for launch_library.""" DOMAIN = "launch_library" ATTR_LAUNCH_FACILITY = "facility" ATTR_STREAM_LIVE = "stream_live" ATTR_LAUNCH_PAD = "pad" ATTR_LAUNCH_PAD_COUNTRY_CODE = "provider_country_code" ATTR_LAUNCH_PROVIDER = "provider" ATTR_WINDOW_START = "window_start" ATTR_WINDOW_END = "window_end" ATTRIBUTI...
24.45
54
0.797546
9ea4e49026a1a80df0b66242235bff44f5b6a1dc
33,950
py
Python
hotsos/core/plugins/storage/ceph.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
null
null
null
hotsos/core/plugins/storage/ceph.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
null
null
null
hotsos/core/plugins/storage/ceph.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
null
null
null
import os import re import subprocess from hotsos.core import ( host_helpers, utils, ) from hotsos.core.config import HotSOSConfig from hotsos.core.ycheck.events import YEventCheckerBase from hotsos.core.host_helpers.cli import get_ps_axo_flags_available from hotsos.core.plugins.storage import StorageBase from...
31.937912
79
0.558351
9ea4ea25f72af4f90ac1dd03c61753aa16b9b515
169
py
Python
cmsc_210/examples/lecture_21/cheeseshop/cheeseshop/views.py
mazelife/cmsc-210
dbaa1604ef49bcfe5a70e09c17fbd243a8b80220
[ "MIT" ]
null
null
null
cmsc_210/examples/lecture_21/cheeseshop/cheeseshop/views.py
mazelife/cmsc-210
dbaa1604ef49bcfe5a70e09c17fbd243a8b80220
[ "MIT" ]
5
2022-01-16T23:30:12.000Z
2022-01-30T23:03:21.000Z
cmsc_210/examples/lecture_22/cheeseshop/cheeseshop/views.py
mazelife/cmsc-210
dbaa1604ef49bcfe5a70e09c17fbd243a8b80220
[ "MIT" ]
null
null
null
from datetime import datetime from django.shortcuts import render def index(request): now = datetime.now() return render(request, "index.html", {"now": now})
18.777778
54
0.710059
9ea540f9061bd36b195a2004aa2955a66312d168
69,099
py
Python
holoviews/core/spaces.py
jsignell/holoviews
4f9fd27367f23c3d067d176f638ec82e4b9ec8f0
[ "BSD-3-Clause" ]
null
null
null
holoviews/core/spaces.py
jsignell/holoviews
4f9fd27367f23c3d067d176f638ec82e4b9ec8f0
[ "BSD-3-Clause" ]
null
null
null
holoviews/core/spaces.py
jsignell/holoviews
4f9fd27367f23c3d067d176f638ec82e4b9ec8f0
[ "BSD-3-Clause" ]
null
null
null
import itertools import types from numbers import Number from itertools import groupby from functools import partial from collections import defaultdict from contextlib import contextmanager from inspect import ArgSpec import numpy as np import param from . import traversal, util from .dimension import OrderedDict, D...
41.852816
102
0.590182
9ea55ab6502a06d0b4042e59809941e2c33b2c96
2,610
py
Python
medical/interpolate_transformer/dataloader_monai.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
1
2018-06-18T12:09:33.000Z
2018-06-18T12:09:33.000Z
medical/interpolate_transformer/dataloader_monai.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
null
null
null
medical/interpolate_transformer/dataloader_monai.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
1
2018-06-18T12:13:21.000Z
2018-06-18T12:13:21.000Z
import torch import numpy as np import os import monai from monai.data import ArrayDataset, create_test_image_2d from monai.inferers import sliding_window_inference from monai.metrics import DiceMetric from monai.transforms import Activations, AddChannel, AsDiscrete, Compose, LoadImage, RandRotate90, RandSpatialCrop, S...
35.753425
163
0.723755
9ea57bd6b1a67598b583ba7deec097323d97383e
1,771
py
Python
Aula21/exercicios/exercicio1.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
Aula21/exercicios/exercicio1.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
Aula21/exercicios/exercicio1.py
diegocolombo1989/Trabalho-Python
4603117bebfb6e801c3289e108b4e8f29442ab6f
[ "MIT" ]
null
null
null
# Aula 21 - 06-12-2019 # Como Tratar e Trabalhar Erros!!! # 1 - Crie um arquivo que leia 2 números inteiros e imprima a soma, # multiplicação, divisão e subtração com uma f-string. # 2 - Crie um while que pergunte se deseja continuar. Se digitar 's' o # programa termina. #################### até aqui tudo bem! ####...
25.666667
77
0.594015
9ea5b4a654259e8921840520900a635561058c4c
2,226
py
Python
psak_src/psak_src/exploit_modules/internal_utils/arp_exploits.py
Syslog777/psak
da9fd58a2e90adf8882019a04ddbdc2eede872cd
[ "BSD-3-Clause" ]
28
2017-12-12T12:16:13.000Z
2022-02-23T04:34:35.000Z
psak_src/psak_src/exploit_modules/internal_utils/arp_exploits.py
Syslog777/psak
da9fd58a2e90adf8882019a04ddbdc2eede872cd
[ "BSD-3-Clause" ]
7
2017-12-12T11:53:20.000Z
2020-01-25T10:13:40.000Z
psak_src/psak_src/exploit_modules/internal_utils/arp_exploits.py
Syslog777/psak
da9fd58a2e90adf8882019a04ddbdc2eede872cd
[ "BSD-3-Clause" ]
10
2018-01-02T20:30:07.000Z
2020-05-06T20:26:08.000Z
""" Copyright (c) 2017, Syslog777 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 conditions and...
41.222222
88
0.725517
9ea5bdaddcf7a6235a0f958de3852e3f0f54265f
7,658
py
Python
sfepy/discrete/iga/domain.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
sfepy/discrete/iga/domain.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
sfepy/discrete/iga/domain.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
""" Computational domain for isogeometric analysis. """ from __future__ import absolute_import import os.path as op import numpy as nm from sfepy.base.base import assert_, Struct from sfepy.discrete.common.domain import Domain from sfepy.discrete.iga import iga from sfepy.discrete.iga import io from sfepy.discrete.ig...
31.775934
80
0.569209
9ea5da055f437a2a895e56533c5cfa8b475b6c3a
731
py
Python
core/migrations/0004_auto_20210907_1820.py
ICFL-UP/Yrden
88c421f1b391e9a6943455b05b8f397e9023187b
[ "MIT" ]
null
null
null
core/migrations/0004_auto_20210907_1820.py
ICFL-UP/Yrden
88c421f1b391e9a6943455b05b8f397e9023187b
[ "MIT" ]
6
2022-02-16T06:08:43.000Z
2022-02-16T06:08:55.000Z
core/migrations/0004_auto_20210907_1820.py
ICFL-UP/Yrden
88c421f1b391e9a6943455b05b8f397e9023187b
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-09-07 18:20 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('core', '0003_auto_202108...
27.074074
113
0.644323
9ea5e78902add1e983b4d206d93a3416b8ecbf57
2,205
py
Python
main.py
AdityaLab/EINNs
20a1da127c7bb5103307b18bf90bb9b883f89ff2
[ "MIT" ]
null
null
null
main.py
AdityaLab/EINNs
20a1da127c7bb5103307b18bf90bb9b883f89ff2
[ "MIT" ]
null
null
null
main.py
AdityaLab/EINNs
20a1da127c7bb5103307b18bf90bb9b883f89ff2
[ "MIT" ]
1
2022-03-01T07:50:26.000Z
2022-03-01T07:50:26.000Z
from epiweeks import Week from data_utils import get_epiweeks_list from EINN import EINN import argparse import os import numpy as np import traceback from copy import copy import torch import os import gc import pdb def train_predict(args): if not os.path.exists('./models'): os.mkdir('./models') if n...
32.910448
107
0.65034
9ea61a0ab5e8541ed2bfda4701472e5248309a56
471
py
Python
fiepipedesktoplib/gitlabserver/shell/gitlab_private_token_input_ui.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fiepipedesktoplib/gitlabserver/shell/gitlab_private_token_input_ui.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fiepipedesktoplib/gitlabserver/shell/gitlab_private_token_input_ui.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
from fiepipelib.gitlabserver.routines.ui.gitlab_private_token_input_ui import GitLabPrivateTokenInputDefaultUI, GitLabPrivateTokenInputUI from fieuishell.ModalInputDefaultUI import InputDefaultModalShellUI from fieuishell.ModalInputUI import InputModalShellUI class GitLabPrivateTokenInputDefaultShellUI(GitLabPrivateT...
39.25
137
0.898089
9ea627c357e4da8de4cbeccafedc4512230d1090
12,566
py
Python
surfraw_tools/lib/options.py
Hoboneer/surfraw-elvis-generator
1170c524ad4f007e5e82b9d7efc0dd101f4d685d
[ "Apache-2.0" ]
10
2020-06-13T13:09:49.000Z
2021-01-21T15:09:07.000Z
surfraw_tools/lib/options.py
Hoboneer/surfraw-elvis-generator
1170c524ad4f007e5e82b9d7efc0dd101f4d685d
[ "Apache-2.0" ]
39
2020-06-28T05:03:24.000Z
2021-02-28T04:42:55.000Z
surfraw_tools/lib/options.py
Hoboneer/surfraw-elvis-generator
1170c524ad4f007e5e82b9d7efc0dd101f4d685d
[ "Apache-2.0" ]
1
2020-12-07T02:01:06.000Z
2020-12-07T02:01:06.000Z
# SPDX-FileCopyrightText: 2020 Gabriel Lisaca <gabriel.lisaca@gmail.com> # # SPDX-License-Identifier: Apache-2.0 """Object representations for surfraw options.""" from __future__ import annotations import re import weakref from typing import ( TYPE_CHECKING, Any, Callable, ClassVar, Dict, List...
30.874693
137
0.618256
9ea62d5b609081454ad24e96f4d1dff06392c53f
9,420
py
Python
cooltools/lib/common.py
folded/cooltools
ea5451b8cecf4911325e47bd783f4473fa18b9d8
[ "MIT" ]
null
null
null
cooltools/lib/common.py
folded/cooltools
ea5451b8cecf4911325e47bd783f4473fa18b9d8
[ "MIT" ]
null
null
null
cooltools/lib/common.py
folded/cooltools
ea5451b8cecf4911325e47bd783f4473fa18b9d8
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd # Test data download requirements: import requests import os import hashlib URL_DATA = "https://raw.githubusercontent.com/open2c/cooltools/master/datasets/external_test_files.tsv" def assign_supports(features, supports, labels=False, suffix=""): """ Assign support regi...
30.584416
117
0.620276
9ea62e06ff82448cf5ab7c380db9bdc789844914
74,991
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2021_01_01/aio/operations/_diagnostics_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2021_01_01/aio/operations/_diagnostics_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2021_01_01/aio/operations/_diagnostics_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.505045
986
0.66636
9ea669181228ba89bfeec2d9ed1d4a459710b99b
21,845
py
Python
axis_process.py
mfkiwl/PW_from_GPS
fa0b0b9e1325a055ce884f79c14d24148348886b
[ "MIT" ]
4
2019-09-09T19:47:49.000Z
2021-12-29T18:12:26.000Z
axis_process.py
mfkiwl/PW_from_GPS
fa0b0b9e1325a055ce884f79c14d24148348886b
[ "MIT" ]
null
null
null
axis_process.py
mfkiwl/PW_from_GPS
fa0b0b9e1325a055ce884f79c14d24148348886b
[ "MIT" ]
6
2019-12-06T02:27:05.000Z
2021-12-27T16:32:54.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Apr 20 10:32:56 2021 @author: ziskin """ from PW_paths import work_yuval axis_path = work_yuval / 'axis' gis_path = work_yuval / 'gis' axis_duplicate_stations_name_dict = {'DSea': 'Ddse', 'Gsho': 'Gshr', 'KShm': 'kshm', 'Kshm': 'kshm', 'Rhat': 'Raha'}...
39.790528
116
0.591394
9ea670755222342bd082fe8270ef3b65c280ab66
3,288
py
Python
management/pycom_functions/measure_close_network_burst.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
2
2021-04-03T13:19:32.000Z
2022-01-03T00:38:55.000Z
management/pycom_functions/measure_close_network_burst.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
management/pycom_functions/measure_close_network_burst.py
AaltoIIC/OSEMA
38740e3dcfeb72a6d87e25190e6a73f6c60b199b
[ "MIT" ]
null
null
null
"""Loop measurement and control often data is sent to server""" def measure(i2c): print("Measure close network burst") measure_loop(i2c) class Measure: def __init__(self, i2c): self.i2c = i2c self.data_with_ts = [] self.current_no_of_measurements = 0 self.reference_point = u...
42.701299
109
0.568735
9ea6927f59d3e675c3ba7b8e4b5e1da3cd9073df
1,713
py
Python
credential.py
Peet-pitz/Password-Locker
17588b045a573af9dced405dda086a8631abecf1
[ "Unlicense" ]
null
null
null
credential.py
Peet-pitz/Password-Locker
17588b045a573af9dced405dda086a8631abecf1
[ "Unlicense" ]
null
null
null
credential.py
Peet-pitz/Password-Locker
17588b045a573af9dced405dda086a8631abecf1
[ "Unlicense" ]
null
null
null
class Credential : """ Class that generates new instances of credentials """ credential_list = [] def __init__ (self,account_name,email,password): """ __init__ method that helps us define properties for our objects. """ """ Args: accountname : New nam...
28.081967
98
0.573263
9ea69bfc90111a8f9e5e415863c1acd4743ea4b8
7,661
py
Python
src/som/interpreter/objectstorage/storage_location.py
smarr/RTruffleSOM
1efc698577830ff3fcd1607e7155d9c6423e8804
[ "MIT" ]
9
2015-02-03T23:24:23.000Z
2020-06-28T23:49:59.000Z
src/som/interpreter/objectstorage/storage_location.py
SOM-st/RTruffleSOM
1efc698577830ff3fcd1607e7155d9c6423e8804
[ "MIT" ]
null
null
null
src/som/interpreter/objectstorage/storage_location.py
SOM-st/RTruffleSOM
1efc698577830ff3fcd1607e7155d9c6423e8804
[ "MIT" ]
2
2016-08-28T23:25:20.000Z
2016-08-30T16:49:50.000Z
from rpython.rlib.jit import we_are_jitted from rpython.rlib.longlong2float import longlong2float, float2longlong from som.interpreter.objectstorage.layout_transitions import \ UninitializedStorageLocationException, GeneralizeStorageLocationException from som.vm.globals import nilObject from som.vmobjects.abstract...
33.021552
80
0.690902
9ea6c2b521437f05979498360aee7eba171146d3
22,284
py
Python
model/__init__.py
busunkim96/cc-utils
aa864b1fad3061410907d6b93b8aee8cd25f33b5
[ "Apache-2.0" ]
null
null
null
model/__init__.py
busunkim96/cc-utils
aa864b1fad3061410907d6b93b8aee8cd25f33b5
[ "Apache-2.0" ]
null
null
null
model/__init__.py
busunkim96/cc-utils
aa864b1fad3061410907d6b93b8aee8cd25f33b5
[ "Apache-2.0" ]
null
null
null
import dataclasses import functools import json import os import os.path import pkgutil import sys import typing import urllib.parse import dacite import deprecated import yaml from model.base import ( ConfigElementNotFoundError, ModelValidationError, NamedModelElement, ) from ci.util import ( existin...
33.866261
101
0.628343
9ea6cb8ba521309f4e15a92260b4153b1afd7f18
2,210
py
Python
web/__init__.py
bmelgar364/PantryPal
251a4bebba627ef69d6deb25b441bf8311669261
[ "MIT" ]
2
2021-06-09T07:34:56.000Z
2021-09-15T23:05:04.000Z
web/__init__.py
bmelgar364/PantryPal
251a4bebba627ef69d6deb25b441bf8311669261
[ "MIT" ]
30
2021-06-12T23:27:31.000Z
2021-07-11T03:40:56.000Z
web/__init__.py
bmelgar364/PantryPal
251a4bebba627ef69d6deb25b441bf8311669261
[ "MIT" ]
4
2021-06-15T08:59:25.000Z
2021-10-17T01:40:53.000Z
import mimetypes import os import warnings import secure from flask import Flask from flask_cdn import CDN from whitenoise import WhiteNoise # dotenv is not present (nor does it need to be) in production. try: import dotenv dotenv.load_dotenv() except ImportError: pass cdn = CDN() mimetypes.add_type("ap...
28.701299
96
0.69638
9ea6cf8e1feb14c15b7e1de9d207178e873edb7e
2,357
py
Python
mojo/public/tools/bindings/pylib/mojom/generate/template_expander.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
mojo/public/tools/bindings/pylib/mojom/generate/template_expander.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
mojo/public/tools/bindings/pylib/mojom/generate/template_expander.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Based on: # http://src.chromium.org/viewvc/blink/trunk/Source/build/scripts/template_expander.py import imp import os.path import sys # Disable lint chec...
34.15942
86
0.721256
9ea6d0a1032f3447995fb4417f7c12d7b233af37
385
py
Python
tests/ev3dev/parameters/button.py
ZPhilo/pybricks-micropython
bf3072b6f7dd87b60e50d7c2130ca3c393a5709f
[ "MIT" ]
115
2020-06-15T16:43:14.000Z
2022-03-21T21:11:57.000Z
tests/ev3dev/parameters/button.py
ZPhilo/pybricks-micropython
bf3072b6f7dd87b60e50d7c2130ca3c393a5709f
[ "MIT" ]
83
2020-06-17T17:19:29.000Z
2022-03-08T18:50:35.000Z
tests/ev3dev/parameters/button.py
BertLindeman/pybricks-micropython
8f22a99551100e66ddf08d014d9f442f22b33b4d
[ "MIT" ]
40
2020-06-15T18:36:39.000Z
2022-03-28T13:22:43.000Z
from pybricks.parameters import Button # "enums" print exactly the same as what we write in code "Button.RIGHT" print(Button.RIGHT) print(Button.LEFT == Button.LEFT) print(Button.DOWN != Button.DOWN) print(Button.LEFT == Button.DOWN) print(Button.LEFT != Button.DOWN) # Internally, these may have the same value, but ...
29.615385
79
0.755844
9ea6ed2bb96c79d5e993fb6275196981b40ea3de
7,031
py
Python
oidc_provider/tests/cases/test_error.py
dmptrluke/django-oidc-provider
25477af58b551d3fe5c0946c94b0c99cd8fca3f9
[ "MIT" ]
1
2020-01-14T16:09:17.000Z
2020-01-14T16:09:17.000Z
oidc_provider/tests/cases/test_error.py
dmptrluke/django-oidc-provider
25477af58b551d3fe5c0946c94b0c99cd8fca3f9
[ "MIT" ]
null
null
null
oidc_provider/tests/cases/test_error.py
dmptrluke/django-oidc-provider
25477af58b551d3fe5c0946c94b0c99cd8fca3f9
[ "MIT" ]
null
null
null
from django.test import TestCase from oidc_provider.lib.errors import AuthorizeError try: from urllib.parse import ( urlparse, parse_qsl ) except ImportError: from urlparse import ( urlparse, parse_qsl ) def compare(expected, created): """Compare expected and creat...
43.134969
80
0.658939
9ea6efaacb63671be02763bc6a1f419637d07e49
7,897
py
Python
samples/Linux/whiteBalance.py
pixelink-support/PixelinkPythonWrapper
ad7ba24c550825eb12f16e1eaf9c66f35db52a8f
[ "MIT" ]
5
2020-04-21T07:18:44.000Z
2021-12-28T17:33:38.000Z
samples/Linux/whiteBalance.py
pixelink-support/PixelinkPythonWrapper
ad7ba24c550825eb12f16e1eaf9c66f35db52a8f
[ "MIT" ]
1
2020-05-19T19:08:25.000Z
2020-05-22T10:24:11.000Z
samples/Linux/whiteBalance.py
pixelink-support/PixelinkPythonWrapper
ad7ba24c550825eb12f16e1eaf9c66f35db52a8f
[ "MIT" ]
1
2021-11-16T18:55:54.000Z
2021-11-16T18:55:54.000Z
""" whiteBalance.py Demonstrates how you can control the white balance on a (color) camera. Furthermore, it also can instruct the camera to perform automatic white balance. Note 1: The sample application 'autoexposure.py' also shows how to control camera features that support continuous and one-time auto adj...
36.391705
139
0.6524
9ea6f1d5960d1c3fa2a16c352fe15dc3dc7d2893
2,479
py
Python
Followup v0.79/fup/helpers/user.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
Followup v0.79/fup/helpers/user.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
Followup v0.79/fup/helpers/user.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
1
2019-12-25T11:57:45.000Z
2019-12-25T11:57:45.000Z
def get_usersdict(listallusers=False): from fup.utils.dbwrap import get_dftable import pandas as pd user_dict = get_dftable('users').to_dict('list') if listallusers == True: return user_dict['UserEmail'] else: return user_dict def check_user(username, password): fr...
25.822917
87
0.610327
9ea6f86914f10f7cd51197e8d6a99ebf88f2b10c
1,620
py
Python
alipay/aop/api/response/AntMerchantExpandMembercardTransactionBatchqueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AntMerchantExpandMembercardTransactionBatchqueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/response/AntMerchantExpandMembercardTransactionBatchqueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.MemberCardUserTransactionDetail import MemberCardUserTransactionDetail class AntMerchantExpandMembercardTransactionBatchqueryResponse(AlipayResponse): def __init...
37.674419
129
0.721605
9ea72572515baa0e83e9e204d9b5efd4a2ba1ae9
3,428
py
Python
src/test/testcases/testAduMem_itag.py
open-power/sbe
0208243c5bbd68fa36464397fa46a2940c827edf
[ "Apache-2.0" ]
9
2017-03-21T08:34:24.000Z
2022-01-25T06:00:51.000Z
src/test/testcases/testAduMem_itag.py
sumant8098/sbe
0208243c5bbd68fa36464397fa46a2940c827edf
[ "Apache-2.0" ]
17
2016-11-04T00:46:43.000Z
2021-04-13T16:31:11.000Z
src/test/testcases/testAduMem_itag.py
sumant8098/sbe
0208243c5bbd68fa36464397fa46a2940c827edf
[ "Apache-2.0" ]
17
2017-03-24T11:52:56.000Z
2022-01-25T06:00:49.000Z
# IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: src/test/testcases/testAduMem_itag.py $ # # OpenPOWER sbe Project # # Contributors Listed Below - COPYRIGHT 2016,2019 # [+] International Business Machines Corp. # # # Licensed under the Apache License, Version 2.0 (the "License"); # you m...
33.281553
123
0.613477
9ea745312464ef471419233edcfc70f5515c25d6
2,559
py
Python
nautobot_chatops/management/commands/slack_list_channels.py
tanvimoharir/nautobot-plugin-chatops
8fe984b7918f02eb8015c4c0ae3df889688c7a12
[ "Apache-2.0" ]
null
null
null
nautobot_chatops/management/commands/slack_list_channels.py
tanvimoharir/nautobot-plugin-chatops
8fe984b7918f02eb8015c4c0ae3df889688c7a12
[ "Apache-2.0" ]
null
null
null
nautobot_chatops/management/commands/slack_list_channels.py
tanvimoharir/nautobot-plugin-chatops
8fe984b7918f02eb8015c4c0ae3df889688c7a12
[ "Apache-2.0" ]
null
null
null
"""Testing tool for slack deployment.""" from django.core.management.base import BaseCommand from nautobot_chatops.dispatchers.slack import SlackDispatcher from texttable import Texttable class Command(BaseCommand): """Testing Command for Slack.""" def handle(self, *args, **kwargs): """This method p...
34.12
119
0.550996
9ea7880e8b1b73cd410befa40a755a386867d161
3,047
py
Python
superset/migrations/versions/fb13d49b72f9_better_filters.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
108
2018-01-22T11:09:59.000Z
2021-01-15T10:53:04.000Z
superset/migrations/versions/fb13d49b72f9_better_filters.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
112
2018-01-25T22:57:21.000Z
2019-08-22T20:08:48.000Z
superset/migrations/versions/fb13d49b72f9_better_filters.py
franksam007/incubator-superset
a0f572eb3ea4b89cb435a8af20436f8e1d34814e
[ "Apache-2.0" ]
24
2018-01-19T22:54:39.000Z
2020-11-12T13:04:25.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
29.019048
77
0.659009
9ea78cbb6eb86f3d1e8782991c13219fa90763de
4,917
py
Python
data/markers_dataset.py
ntoussaint/simple-faster-rcnn-pytorch
df8c3dead354916b1c2296f929f56789268a2df8
[ "MIT" ]
null
null
null
data/markers_dataset.py
ntoussaint/simple-faster-rcnn-pytorch
df8c3dead354916b1c2296f929f56789268a2df8
[ "MIT" ]
null
null
null
data/markers_dataset.py
ntoussaint/simple-faster-rcnn-pytorch
df8c3dead354916b1c2296f929f56789268a2df8
[ "MIT" ]
null
null
null
import os import xml.etree.ElementTree as ET import numpy as np from .util import read_image class MarkersDataset: """Bounding box dataset for N markers_. .. _`Markers`: https://gitlab.com/ntoussaint/augmentedultrasoundscanning The index corresponds to each image. When queried by an index, if :ob...
36.154412
104
0.623754
9ea7ac701cfb82d2d7694b24a6c18314b2f77de5
2,867
py
Python
app/update/result_store.py
mtlynch/kvmpi
725b1a14ffca9ddf88a96f55c4ae9b7e3951d6a5
[ "MIT" ]
4
2020-06-16T23:06:03.000Z
2020-07-03T04:46:34.000Z
app/update/result_store.py
mtlynch/kvmpi
725b1a14ffca9ddf88a96f55c4ae9b7e3951d6a5
[ "MIT" ]
20
2020-06-17T18:29:53.000Z
2020-07-01T22:32:52.000Z
app/update/result_store.py
mtlynch/kvmpi
725b1a14ffca9ddf88a96f55c4ae9b7e3951d6a5
[ "MIT" ]
2
2020-06-16T23:06:05.000Z
2020-07-03T04:46:36.000Z
"""Manages persistent data about the result of the most recent TinyPilot update. The update result store stores and fetches the result of the last update. Because the TinyPilot server holds no state in memory, it relies on files stored in the ~/logs directory to record the result of the most recent update. The flow o...
34.542169
80
0.729683
9ea7c3c6e1e67e8c6b2efc2a2808d659dae32161
34,118
py
Python
rest_api/tests/unit/test_state_requests.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
1
2017-08-04T10:31:00.000Z
2017-08-04T10:31:00.000Z
rest_api/tests/unit/test_state_requests.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
rest_api/tests/unit/test_state_requests.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
41.40534
84
0.6253
9ea7c878010236039665af50ef839bb126d29798
3,456
py
Python
apps/goodreads/views.py
goobes/box
42e136d98b2a25ffd8717b3c8c9d97654cc15e54
[ "MIT" ]
null
null
null
apps/goodreads/views.py
goobes/box
42e136d98b2a25ffd8717b3c8c9d97654cc15e54
[ "MIT" ]
21
2018-02-21T06:53:36.000Z
2022-03-11T23:14:47.000Z
apps/goodreads/views.py
goobes/box
42e136d98b2a25ffd8717b3c8c9d97654cc15e54
[ "MIT" ]
1
2018-03-01T11:01:20.000Z
2018-03-01T11:01:20.000Z
import requests from xml.etree import ElementTree from xml.parsers.expat import ExpatError from django.utils import six from allauth.socialaccount import app_settings from .provider import GoodreadsProvider from allauth.socialaccount.providers.oauth.client import OAuth from allauth.socialaccount.providers.oauth.views...
36
72
0.621817
9ea7cce2a57d5b45a5b007da589a4f3bab64024e
1,823
py
Python
alipay/aop/api/domain/AlipayOpenSpIsvSalesSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOpenSpIsvSalesSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOpenSpIsvSalesSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.IsvMerchantSalesDetailRequest import IsvMerchantSalesDetailRequest class AlipayOpenSpIsvSalesSyncModel(object): def __init__(self): self._merchant_sales_detail = None...
34.396226
105
0.64893
9ea7e97c924a86e3240a9da00fc8d1fcc9b5dcbb
6,319
py
Python
networktest/mock/api.py
jwplayer/networktest
8237d7e2581da43b5c9231c25cb1fb77db5d61a5
[ "Apache-2.0" ]
9
2019-11-12T20:41:44.000Z
2020-03-08T03:58:23.000Z
networktest/mock/api.py
jwplayer/networktest
8237d7e2581da43b5c9231c25cb1fb77db5d61a5
[ "Apache-2.0" ]
5
2019-11-14T22:55:12.000Z
2022-03-24T14:53:54.000Z
networktest/mock/api.py
jwplayer/networktest
8237d7e2581da43b5c9231c25cb1fb77db5d61a5
[ "Apache-2.0" ]
2
2019-11-21T01:36:21.000Z
2022-02-19T09:52:28.000Z
import re import json from unittest.mock import MagicMock from copy import copy from http.client import HTTPResponse, responses import io from .http import HttpMock __all__ = ( 'HttpApiMockEndpoint', 'HttpApiMockEndpoints', 'HttpApiMock', ) def make_response_class(status_code, body): status = str(statu...
30.674757
79
0.599937
9ea811123ec4d89a7b0a3d198ed1ccf4fad6197f
1,310
py
Python
git/__init__.py
yarikoptic/GitPython
7576b282013249a2b20ccda4acacefd5e625ea39
[ "BSD-3-Clause" ]
1
2020-10-15T06:16:48.000Z
2020-10-15T06:16:48.000Z
git/__init__.py
yarikoptic/GitPython
7576b282013249a2b20ccda4acacefd5e625ea39
[ "BSD-3-Clause" ]
null
null
null
git/__init__.py
yarikoptic/GitPython
7576b282013249a2b20ccda4acacefd5e625ea39
[ "BSD-3-Clause" ]
null
null
null
# __init__.py # Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php import os import sys import inspect __version__ = 'git' #{ Initialization def _init_externals():...
23.818182
76
0.621374
9ea829d78242eb6212a054490fb808a06c75f40f
2,986
py
Python
tests/python/pants_test/backend/jvm/tasks/jvm_compile/test_dep_exports_integration.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
1
2021-05-05T18:58:28.000Z
2021-05-05T18:58:28.000Z
tests/python/pants_test/backend/jvm/tasks/jvm_compile/test_dep_exports_integration.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/jvm/tasks/jvm_compile/test_dep_exports_integration.py
tpasternak/pants
edf5716283d449852309fff1a10dd351dfbf3493
[ "Apache-2.0" ]
3
2020-06-30T08:28:13.000Z
2021-07-28T09:35:57.000Z
# Copyright 2017 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os import re import shutil from pants.base.build_environment import get_buildroot from pants.testutil.pants_run_integration_test import PantsRunIntegrationTest class DepExportsIn...
37.325
105
0.637642
9ea871f3c1be4abab57e0a3495b65c420e97130e
433
py
Python
tests/test_signalData.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
null
null
null
tests/test_signalData.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
1
2018-09-20T04:39:02.000Z
2018-09-21T04:19:15.000Z
tests/test_signalData.py
chrisbrake/aerial
6a33cf048820aab948dd24d5867e53f0f1eaa11d
[ "BSD-3-Clause" ]
null
null
null
from aerial import signalData def test_init_false(): """ Confirm the class starts falsey """ assert not signalData.SignalData(1) def test_init_rec_true(): """ Confirm recording a signal converts it truthy """ assert signalData.SignalData(1).rec('frame') def test_init_awk_false(): """ Confirm r...
25.470588
70
0.711316
9ea882e7b0ab0a32319e9ca9b75800ab76e08de2
7,083
py
Python
ml_parameters.py
matthieuheitz/2020-JMIV-ground-metric-learning-graphs
ef927341f3f55163e159de2f5b385500106017cd
[ "MIT" ]
1
2020-10-26T06:26:39.000Z
2020-10-26T06:26:39.000Z
ml_parameters.py
matthieuheitz/2020-JMIV-ground-metric-learning-graphs
ef927341f3f55163e159de2f5b385500106017cd
[ "MIT" ]
1
2020-10-26T06:30:46.000Z
2020-11-02T15:19:58.000Z
ml_parameters.py
matthieuheitz/2020-JMIV-ground-metric-learning-graphs
ef927341f3f55163e159de2f5b385500106017cd
[ "MIT" ]
1
2021-06-10T10:33:53.000Z
2021-06-10T10:33:53.000Z
#!/usr/bin/env python """ ml_parameters.py Metric Learning Settings """ import os import sys import torch import numpy as np __author__ = "Matthieu Heitz" # Parameter class class OTMLParameters: # By default, tensors are float64, on CPU def __init__(self): self.outdir = "../ProgOutput/yolo" # F...
46.294118
140
0.641677
9ea8af81be697c9f4f713142f276e52a30efd992
849
py
Python
array/fizzbuzz.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
array/fizzbuzz.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
array/fizzbuzz.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class Solution: def fizzBuzz(self, n: int) -> [str]: res = [] for i in range(1,n+1): curstr = '' if i % 15 == 0: curstr = 'FizzBuzz' elif i % 5 == 0: curstr = 'Buzz' elif i % 3 == 0: curstr = 'Fizz' ...
22.945946
44
0.391048
9ea8c1030b35b3e07d6e2c1cdf9a10a2d8e759ea
1,443
py
Python
coursera_/dict.py
Jagrmi-C/jagrmitest
7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96
[ "MIT" ]
null
null
null
coursera_/dict.py
Jagrmi-C/jagrmitest
7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96
[ "MIT" ]
null
null
null
coursera_/dict.py
Jagrmi-C/jagrmitest
7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96
[ "MIT" ]
null
null
null
import operator import collections zen = """ The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special e...
29.44898
69
0.753292
9ea8d0e8e9ba73a4de96ab216d31d4dcb831261e
31,047
py
Python
intersight/apis/softwarerepository_authorization_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/apis/softwarerepository_authorization_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/apis/softwarerepository_authorization_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os import re # python 2 and python 3 compatibility library from s...
50.980296
818
0.624698
9ea8e3716e6802d9a332496ca73455e1c701dd51
4,942
py
Python
src/losses.py
GuillaumeAI/gia-style-transfer-tf2
543e4e3434b87612bff6bb901c6ce4026069fa15
[ "MIT" ]
16
2019-05-21T22:28:30.000Z
2022-03-07T19:29:08.000Z
src/losses.py
GuillaumeAI/gia-style-transfer-tf2
543e4e3434b87612bff6bb901c6ce4026069fa15
[ "MIT" ]
4
2021-09-01T07:23:48.000Z
2022-02-26T12:15:40.000Z
src/losses.py
GuillaumeAI/gia-style-transfer-tf2
543e4e3434b87612bff6bb901c6ce4026069fa15
[ "MIT" ]
5
2020-02-08T10:08:58.000Z
2021-06-03T17:47:32.000Z
import tensorflow as tf def _discriminator_loss(logits, labels): """sce_criterion """ return tf.reduce_mean(tf.nn.sigmoid_cross_entropy_with_logits(logits=logits, labels=labels)) def abs_criterion(logits, target): """absolute criterion or L1 norm """ return tf.reduce_mean(tf.abs(logits - tar...
34.559441
163
0.733306
9ea9169ec7045db4d8946fadedbc1be1f9311337
5,228
py
Python
test.py
viadanna/rosalind-python
6709c683b04c2e069d73613a2844533e752030bb
[ "MIT" ]
null
null
null
test.py
viadanna/rosalind-python
6709c683b04c2e069d73613a2844533e752030bb
[ "MIT" ]
null
null
null
test.py
viadanna/rosalind-python
6709c683b04c2e069d73613a2844533e752030bb
[ "MIT" ]
null
null
null
import unittest from problems.dna import run_dna from problems.rna import run_rna from problems.revc import run_revc from problems.gc import run_gc from problems.hamm import run_hamm from problems.subs import run_subs from problems.prot import run_prot from problems.fib import run_fib from problems.iprb import run_iprb...
27.661376
99
0.678845
9ea93a58d1787015b6127693db0a7ea88d57ec05
1,165
py
Python
arm_plan/src/get_curr_pose.py
applejenny66/goldpaint
cbb368d2d21cc1e26177314eb1e6fceb7c6e6c8d
[ "MIT" ]
null
null
null
arm_plan/src/get_curr_pose.py
applejenny66/goldpaint
cbb368d2d21cc1e26177314eb1e6fceb7c6e6c8d
[ "MIT" ]
1
2020-08-10T05:33:02.000Z
2020-08-10T05:33:02.000Z
arm_plan/src/get_curr_pose.py
applejenny66/goldpaint
cbb368d2d21cc1e26177314eb1e6fceb7c6e6c8d
[ "MIT" ]
1
2021-05-20T09:08:05.000Z
2021-05-20T09:08:05.000Z
#!/usr/bin/env python import moveit_commander import rospy, sys import tf from geometry_msgs.msg import Pose, Quaternion from tf.transformations import quaternion_from_euler rospy.init_node('get_pose') moveit_commander.roscpp_initialize(sys.argv) group = moveit_commander.MoveGroupCommander('arm') #group = moveit_co...
27.093023
85
0.699571
9ea992720baa0ebc9385cb9c0a8d3405172bfe79
5,782
py
Python
lingvo/core/spectrum_augmenter_test.py
tom-doerr/lingvo
2441edc7fee78903502ebd528ab4dc309db0001d
[ "Apache-2.0" ]
4
2019-06-08T00:19:06.000Z
2020-08-03T16:28:53.000Z
lingvo/core/spectrum_augmenter_test.py
tom-doerr/lingvo
2441edc7fee78903502ebd528ab4dc309db0001d
[ "Apache-2.0" ]
null
null
null
lingvo/core/spectrum_augmenter_test.py
tom-doerr/lingvo
2441edc7fee78903502ebd528ab4dc309db0001d
[ "Apache-2.0" ]
5
2018-12-11T08:05:16.000Z
2020-05-30T03:40:13.000Z
# Copyright 2018 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...
51.625
80
0.378762
9eaa03ac89b9e61d1a3041298482ae0b6c8dc6f0
1,053
py
Python
tests/types/test_locale.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
1
2015-07-06T11:19:11.000Z
2015-07-06T11:19:11.000Z
tests/types/test_locale.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
null
null
null
tests/types/test_locale.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
null
null
null
from pytest import mark, raises import sqlalchemy as sa from sqlalchemy_utils.types import locale from tests import TestCase @mark.skipif('locale.babel is None') class TestLocaleType(TestCase): def create_models(self): class User(self.Base): __tablename__ = 'user' id = sa.Column(sa...
27.710526
60
0.647673
9eaa5836cbfc4e60f865646b10e27855bba1a981
78
py
Python
Arquivos em Python/CursoemVideo/Aula05.py
PereiraLegend/Anotacoes
223383adfffec1ebe9bed5e38ada0464ad6b1949
[ "MIT" ]
1
2022-02-05T21:07:38.000Z
2022-02-05T21:07:38.000Z
Arquivos em Python/CursoemVideo/Aula05.py
PereiraLegend/Anotacoes
223383adfffec1ebe9bed5e38ada0464ad6b1949
[ "MIT" ]
null
null
null
Arquivos em Python/CursoemVideo/Aula05.py
PereiraLegend/Anotacoes
223383adfffec1ebe9bed5e38ada0464ad6b1949
[ "MIT" ]
null
null
null
print('Olá Mundo') nome = input('Qual o seu nome?') print('Seu nome é ',nome)
19.5
32
0.653846
9eaa6a89ac0cdca64094690d75fb15f8183ded4b
5,560
py
Python
JumpScale9AYS/ays/server/views.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
4
2017-06-07T08:10:06.000Z
2017-11-10T02:20:38.000Z
JumpScale9AYS/ays/server/views.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
242
2017-05-18T10:51:48.000Z
2019-09-18T15:09:47.000Z
JumpScale9AYS/ays/server/views.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
5
2017-06-16T15:43:25.000Z
2017-09-29T12:48:06.000Z
from js9 import j import os def service_view(s): """ generate a dict that represent a service from a service object """ producers = [] for prods in s.producers.values(): for producer in prods: producers.append({'role': producer.model.role, 'name': producer.name}) consumers ...
30.054054
99
0.552518
9eaa89c9c72e2a8ef4d9fe49085311d2a6c9d3ab
2,552
py
Python
venv/Lib/site-packages/pyrogram/raw/types/message_entity_pre.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/message_entity_pre.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/message_entity_pre.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
31.506173
103
0.60815
9eaaa30fcfeac1ac6e3b202ba508383d687f1223
6,566
py
Python
tests/test_market1501_format.py
chuneuny-emily/datumaro
25d459e0d130f250f071f9de52171d52a454d381
[ "MIT" ]
null
null
null
tests/test_market1501_format.py
chuneuny-emily/datumaro
25d459e0d130f250f071f9de52171d52a454d381
[ "MIT" ]
null
null
null
tests/test_market1501_format.py
chuneuny-emily/datumaro
25d459e0d130f250f071f9de52171d52a454d381
[ "MIT" ]
9
2021-05-17T07:00:03.000Z
2021-06-26T02:15:10.000Z
import os.path as osp from unittest import TestCase import numpy as np from datumaro.components.dataset import Dataset from datumaro.components.extractor import DatasetItem from datumaro.plugins.market1501_format import (Market1501Converter, Market1501Importer) from datumaro.util.image import Image from datumaro.u...
35.301075
84
0.519951
9eab24e327bdac31d5004e02e5bd81cd6da83284
4,503
py
Python
SDCUP/uer/utils/vocab.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
1
2022-03-01T02:30:32.000Z
2022-03-01T02:30:32.000Z
SDCUP/uer/utils/vocab.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
null
null
null
SDCUP/uer/utils/vocab.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
null
null
null
# -*- encoding:utf-8 -*- import os import torch from multiprocessing import Pool from uer.utils.constants import * from uer.utils.misc import count_lines class Vocab(object): """ """ def __init__(self): self.w2i = {} self.i2w = [] self.w2c = {} self.reserv...
35.456693
111
0.461248
9eab630e56e7e14d821531d51f95d7881f371096
12,829
py
Python
Demo_FinRL_Meta_Integrate_Trends_data_to_DOW_Jones.py
war3gu/FinRL-Meta
c394511530c4a87d61436b2c0467d504849737d7
[ "MIT" ]
1
2022-02-21T11:20:59.000Z
2022-02-21T11:20:59.000Z
Demo_FinRL_Meta_Integrate_Trends_data_to_DOW_Jones.py
war3gu/FinRL-Meta
c394511530c4a87d61436b2c0467d504849737d7
[ "MIT" ]
null
null
null
Demo_FinRL_Meta_Integrate_Trends_data_to_DOW_Jones.py
war3gu/FinRL-Meta
c394511530c4a87d61436b2c0467d504849737d7
[ "MIT" ]
1
2022-03-03T06:51:46.000Z
2022-03-03T06:51:46.000Z
#!/usr/bin/env python # coding: utf-8 # <a href="https://colab.research.google.com/github/AI4Finance-Foundation/FinRL-Meta/blob/master/Demo_FinRL_Meta_Integrate_Trends_data_to_DOW_Jones.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # In[ ]: get...
29.765661
265
0.666303
9eab8845453ed048814650b7dc901250ae3b92c4
824
py
Python
tensorflow/contrib/factorization/python/__init__.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/factorization/python/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/factorization/python/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2016 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.2
80
0.701456
9eaba894157190a8a4d2943566f6a7b8aa8f59b0
10,946
py
Python
dallinger/bots.py
jcpeterson/Dallinger
55bf00efddb19ab8b7201b65c461996793edf6f4
[ "MIT" ]
1
2020-01-29T04:13:26.000Z
2020-01-29T04:13:26.000Z
dallinger/bots.py
jcpeterson/Dallinger
55bf00efddb19ab8b7201b65c461996793edf6f4
[ "MIT" ]
null
null
null
dallinger/bots.py
jcpeterson/Dallinger
55bf00efddb19ab8b7201b65c461996793edf6f4
[ "MIT" ]
null
null
null
"""Bots.""" import json import logging import random import uuid from cached_property import cached_property from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium...
36.125413
90
0.585419
9eabac45b0351b6e9aba1981968bf60c2e681985
17,523
py
Python
sdk/tables/azure-data-tables/tests/test_challenge_auth_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/tables/azure-data-tables/tests/test_challenge_auth_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/tables/azure-data-tables/tests/test_challenge_auth_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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. # ------------------------------------------------------------------------- from unitt...
45.992126
119
0.671289
9eabd237d109c73eca867acf91e7ba352cdba745
8,268
py
Python
nevergrad/functions/test_functionlib.py
kwonhur/nevergrad
7821ff2ddf46ed7ece61529449f770d32179433c
[ "MIT" ]
2
2021-02-17T20:50:44.000Z
2021-08-21T12:27:58.000Z
nevergrad/functions/test_functionlib.py
kwonhur/nevergrad
7821ff2ddf46ed7ece61529449f770d32179433c
[ "MIT" ]
null
null
null
nevergrad/functions/test_functionlib.py
kwonhur/nevergrad
7821ff2ddf46ed7ece61529449f770d32179433c
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Any, Dict import numpy as np import pytest from nevergrad.common import testing from nevergrad.paramet...
47.791908
130
0.694606
9eac1d669727f4078d3c1af69b43f74528974e41
6,899
py
Python
reverb/structured_writer.py
wookayin/reverb
c4255f10595d05b189f1e5c81f29c70ac600d41f
[ "Apache-2.0" ]
null
null
null
reverb/structured_writer.py
wookayin/reverb
c4255f10595d05b189f1e5c81f29c70ac600d41f
[ "Apache-2.0" ]
null
null
null
reverb/structured_writer.py
wookayin/reverb
c4255f10595d05b189f1e5c81f29c70ac600d41f
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 DeepMind Technologies 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 applicable law or agr...
40.110465
80
0.7188
9eac267273be92312750c1bc2751bc294f28b4e2
13,309
py
Python
tests/components/zha/test_channels.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
1
2020-03-29T00:56:35.000Z
2020-03-29T00:56:35.000Z
tests/components/zha/test_channels.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
1
2022-03-12T01:06:11.000Z
2022-03-12T01:06:11.000Z
tests/components/zha/test_channels.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
1
2020-03-07T10:43:50.000Z
2020-03-07T10:43:50.000Z
"""Test ZHA Core channels.""" import asyncio from unittest import mock import asynctest import pytest import zigpy.types as t import homeassistant.components.zha.core.channels as zha_channels import homeassistant.components.zha.core.channels.base as base_channels import homeassistant.components.zha.core.const as zha_...
35.585561
88
0.662935
9eac522c4382d749c2e7765aa941f5a109f5c22a
422
py
Python
bin/py_scripts/check_consistent.py
hchau630/nn-analysis
0fbe7ad7b2b4566b9f88d8f21413a6d405f96bdc
[ "MIT" ]
null
null
null
bin/py_scripts/check_consistent.py
hchau630/nn-analysis
0fbe7ad7b2b4566b9f88d8f21413a6d405f96bdc
[ "MIT" ]
null
null
null
bin/py_scripts/check_consistent.py
hchau630/nn-analysis
0fbe7ad7b2b4566b9f88d8f21413a6d405f96bdc
[ "MIT" ]
null
null
null
from nn_analysis.constants import ACTS_CONFIGS_PATH from nn_analysis import utils from nn_analysis import acts as ac def main(): acts_configs = utils.load_config(ACTS_CONFIGS_PATH) for acts_name in acts_configs.keys(): for version in acts_configs[acts_name].keys(): version = int(versio...
30.142857
60
0.71564
9eac6ba55ce6e13e25b699917bb14e5c269787c1
379
py
Python
energyreport/classes/models/wall_type.py
t-maes/Energy
257c6b4a58af1067880870c828e966ba4c6e7f5d
[ "MIT" ]
null
null
null
energyreport/classes/models/wall_type.py
t-maes/Energy
257c6b4a58af1067880870c828e966ba4c6e7f5d
[ "MIT" ]
null
null
null
energyreport/classes/models/wall_type.py
t-maes/Energy
257c6b4a58af1067880870c828e966ba4c6e7f5d
[ "MIT" ]
null
null
null
from .element_type import ElementType from ....classes.face_type import FaceType class WallType(ElementType): def __init__(self, label: str, description: str): super(WallType, self).__init__( face_type=FaceType.WALL, label=label, description=description, en...
25.266667
53
0.622691
9eac9929c5e7bc9f3f169e1baefe36001fae0347
5,151
py
Python
tf2onnx/optimizer/reshape_optimizer.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
1,473
2018-03-16T02:47:33.000Z
2022-03-31T03:43:52.000Z
tf2onnx/optimizer/reshape_optimizer.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
1,208
2018-03-14T09:58:49.000Z
2022-03-31T17:56:20.000Z
tf2onnx/optimizer/reshape_optimizer.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
350
2018-04-03T03:48:40.000Z
2022-03-30T11:23:55.000Z
# SPDX-License-Identifier: Apache-2.0 """reshape optimizer Finds reshape ops with computed shapes and attempts to replace them with constant shapes. Even if some of the dimensions are non-constant, they can often be replaced with -1 or 0. Specifically, optimizes the pattern: node -> shape -> [computation] -...
45.184211
118
0.605125
9eacc4206a5e708bc426da01aac7fb1fcb33bbea
1,017
py
Python
spoffy/models/compat.py
steinitzu/spoffy
40cce0f00accbe006084a610d0d50396c21ec96c
[ "Apache-2.0" ]
1
2019-04-24T19:50:03.000Z
2019-04-24T19:50:03.000Z
spoffy/models/compat.py
steinitzu/spoffy
40cce0f00accbe006084a610d0d50396c21ec96c
[ "Apache-2.0" ]
3
2019-10-11T20:31:57.000Z
2020-04-13T16:06:43.000Z
spoffy/models/compat.py
steinitzu/spoffy
40cce0f00accbe006084a610d0d50396c21ec96c
[ "Apache-2.0" ]
null
null
null
import sys from typing import Sequence version_info = sys.version_info[0:3] is_py37 = version_info[:2] == (3, 7) if is_py37: from typing import List, Union, _GenericAlias # type: ignore def is_union(obj): return ( obj is Union or isinstance(obj, _GenericAlias) and...
23.113636
65
0.593904
9eacf83838442675b9a7eed109443d06763e478c
1,147
py
Python
awesomeness/bennet_cat_face.py
SeattleCentral/ITC110
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
12
2017-01-05T03:43:10.000Z
2019-01-18T03:39:09.000Z
awesomeness/bennet_cat_face.py
ogarmela/ITC110-1
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
null
null
null
awesomeness/bennet_cat_face.py
ogarmela/ITC110-1
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
2
2019-02-28T05:13:40.000Z
2019-11-09T05:06:35.000Z
from graphics import * def main(): win = GraphWin("Cat",500,500) win.setBackground(color_rgb(140,247,242)) fur = color_rgb(242, 183, 82) #Cat head cathead = Circle(Point(250,250), 125) cathead.setFill(fur) cathead.setOutline(fur) cathead.draw(win) #cat eyes righteye = Circle(...
21.641509
68
0.63993
9ead299858867e9156396cdc4465daf7603611d7
567
py
Python
src/xhorizon/evap/__init__.py
xh-diagrams/xhorizon
20b3f2f0f621ca2a31c9f6a1d5fcd06692a700ce
[ "MIT" ]
null
null
null
src/xhorizon/evap/__init__.py
xh-diagrams/xhorizon
20b3f2f0f621ca2a31c9f6a1d5fcd06692a700ce
[ "MIT" ]
null
null
null
src/xhorizon/evap/__init__.py
xh-diagrams/xhorizon
20b3f2f0f621ca2a31c9f6a1d5fcd06692a700ce
[ "MIT" ]
null
null
null
from xhorizon.evap import schwarzparams from xhorizon.evap import helpers from xhorizon.evap import evap from xhorizon.evap import draw from xhorizon.evap import draw_dS from xhorizon.evap import demo from xhorizon.evap import demo_AdS from xhorizon.evap import demo_dS from xhorizon.evap import demo_zoom from xhori...
24.652174
46
0.837743
9ead8a59108c498a9631128a9dcbf926ae479162
154
py
Python
hw3/test.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
1
2020-08-16T13:01:27.000Z
2020-08-16T13:01:27.000Z
hw3/test.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
null
null
null
hw3/test.py
erfanMhi/Deep-Reinforcement-Learning-CS285
4b832c232889b0f867c5d43b4f28c588607cfd60
[ "MIT" ]
3
2020-12-16T15:24:39.000Z
2022-01-27T21:29:34.000Z
import gym env = gym.make('CartPole-v0') env.reset() for _ in range(1000): env.render() env.step(env.action_space.sample()) # take a random action
25.666667
62
0.688312
9eadcf2f91e02e0ce6ec8a4c8e1b7584c058aea4
9,825
py
Python
src/polymatheia/data/writer.py
alueschow/polymatheia
e46a38b3686139bbab3a2fcfaa914d4ca938654e
[ "MIT" ]
3
2020-09-15T15:15:34.000Z
2021-06-15T10:35:07.000Z
src/polymatheia/data/writer.py
alueschow/polymatheia
e46a38b3686139bbab3a2fcfaa914d4ca938654e
[ "MIT" ]
7
2020-09-03T12:53:34.000Z
2020-10-05T09:14:29.000Z
src/polymatheia/data/writer.py
alueschow/polymatheia
e46a38b3686139bbab3a2fcfaa914d4ca938654e
[ "MIT" ]
2
2020-10-13T09:12:21.000Z
2021-04-15T14:19:06.000Z
"""This module provides a writer for serialising data to the local filesystem.""" import json import os import re from csv import DictWriter from deprecation import deprecated from hashlib import sha256 from lxml import etree from pandas import DataFrame from polymatheia import __version__ class JSONWriter(): "...
40.102041
119
0.587786
9eaddbaf1a72125b261a04f3fd7a214076d9fbee
10,896
py
Python
neuro-sdk/src/neuro_sdk/images.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
11
2020-10-11T15:38:11.000Z
2021-11-09T11:29:50.000Z
neuro-sdk/src/neuro_sdk/images.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
611
2020-09-30T21:27:52.000Z
2022-01-10T10:44:44.000Z
neuro-sdk/src/neuro_sdk/images.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
1
2020-10-05T15:10:24.000Z
2020-10-05T15:10:24.000Z
import contextlib import logging import re import warnings from dataclasses import replace from typing import Any, Awaitable, Dict, List, Optional, Set import aiodocker import aiohttp from aiodocker.exceptions import DockerError from yarl import URL from .abc import ( AbstractDockerImageProgress, ImageCommitF...
35.842105
87
0.57746
9eae3dae5f451b082823948c11da3ba3712241fe
9,185
py
Python
nerlogparser/grammar/dmesglog.py
studiawan/nerlogparser
4dc3d955f735ea5496557ee76378a38b5746e425
[ "Apache-2.0" ]
5
2018-12-20T00:51:30.000Z
2022-02-08T17:38:33.000Z
nerlogparser/grammar/dmesglog.py
studiawan/nerlogparser
4dc3d955f735ea5496557ee76378a38b5746e425
[ "Apache-2.0" ]
1
2022-02-16T08:49:51.000Z
2022-02-17T02:19:01.000Z
nerlogparser/grammar/dmesglog.py
studiawan/nerlogparser
4dc3d955f735ea5496557ee76378a38b5746e425
[ "Apache-2.0" ]
8
2020-03-20T11:10:16.000Z
2022-01-28T16:46:15.000Z
import os import csv from pyparsing import Word, alphas, nums, Optional, Regex from collections import OrderedDict from nerlogparser.grammar.grammar_utility import GrammarUtility class DmesgLog(object): def __init__(self, dataset): self.dataset = dataset self.groups = { 'group1': ['cas...
35.057252
108
0.53141
9eae5467113bbba3364b852c8cff76a72b17b214
10,799
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/violin/marker/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/violin/marker/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/violin/marker/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): # color # ----- @property def color(self): """ Sets themarker.linecolor. It accepts either a specific color or an array of numbers that ...
37.758741
82
0.568849
9eaeb2df9640ef01e8eeb7e57837590d971ba48b
6,798
py
Python
scripts/ksc-list-tenant-locks.py
keysafe-cloud/KSC-Tools
3bb0fd53bf29790fd0e73c33e7ac02e370582bae
[ "MIT" ]
null
null
null
scripts/ksc-list-tenant-locks.py
keysafe-cloud/KSC-Tools
3bb0fd53bf29790fd0e73c33e7ac02e370582bae
[ "MIT" ]
null
null
null
scripts/ksc-list-tenant-locks.py
keysafe-cloud/KSC-Tools
3bb0fd53bf29790fd0e73c33e7ac02e370582bae
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """ Script to help list all locks in the tenant inventory, with the output either in JSON format or in CSV format (for specified fields). It gets all locks of the tenant based on the KSC API Access Key provided. NOTE: It is recommended to provide the KSC API Access Key via comman...
33.653465
80
0.656075
9eaec917322161c3261dabb1809facc66d18f122
5,193
py
Python
API/src/main/resources/Lib/robot/writer/filewriters.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/writer/filewriters.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/writer/filewriters.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
34.852349
81
0.677643
9eaecfc4a42b85d4944a81df4d37829b7491b1c9
9,398
py
Python
Software/activities/activity.py
tcarmelveilleux/CheapDrawBot
10ce6f0f94cc24a2aa29ed1a5fcc4bbef48371f7
[ "MIT" ]
null
null
null
Software/activities/activity.py
tcarmelveilleux/CheapDrawBot
10ce6f0f94cc24a2aa29ed1a5fcc4bbef48371f7
[ "MIT" ]
null
null
null
Software/activities/activity.py
tcarmelveilleux/CheapDrawBot
10ce6f0f94cc24a2aa29ed1a5fcc4bbef48371f7
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Base class for activities. Activities have a parameters panel, handle events and can make requests to the robot controller. Author: tennessee Created on: 2017-03-21 Copyright 2017, Tennessee Carmel-Veilleux. """ import logging import sys if sys.version_info[0] < 3: ...
34.050725
142
0.636412
9eaee3ab64a2dfd6522523a4f048015aeb6c02d8
4,645
py
Python
annotation_scripts/replace_non_available_chars.py
julietteBergoend/plumcot-prodigy
aaac14df24309e5b2064b213031d288d284a6747
[ "MIT" ]
1
2021-06-22T12:43:42.000Z
2021-06-22T12:43:42.000Z
annotation_scripts/replace_non_available_chars.py
julietteBergoend/plumcot-prodigy
aaac14df24309e5b2064b213031d288d284a6747
[ "MIT" ]
null
null
null
annotation_scripts/replace_non_available_chars.py
julietteBergoend/plumcot-prodigy
aaac14df24309e5b2064b213031d288d284a6747
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 """Usage: replace_non_available_chars.py <episode> <data_base_name> <path_to_corpora> """ # ### Replace "not_available" characters by a character name selected in select_characters or speaker.py recipes from pathlib import Path from docopt import docopt from forced_alignment impo...
36.289063
157
0.548977
9eaf21450e7341e9236bfc0056ed7977b33b1f9c
7,983
py
Python
framework/utils/data_processing.py
kantneel/GraphLayers
0d4b1a7cd62aba531f423aa0aca6a51e45be599c
[ "MIT" ]
null
null
null
framework/utils/data_processing.py
kantneel/GraphLayers
0d4b1a7cd62aba531f423aa0aca6a51e45be599c
[ "MIT" ]
null
null
null
framework/utils/data_processing.py
kantneel/GraphLayers
0d4b1a7cd62aba531f423aa0aca6a51e45be599c
[ "MIT" ]
null
null
null
import sys sys.path.append('../../') import tqdm import pickle import collections import numpy as np import tensorflow as tf from framework.utils.io import IndexedFileReader, IndexedFileWriter class DataProcessor(object): def __init__(self, path, batch_size, node_embed_size, tie_fwd_bkwd=True, is_...
44.848315
113
0.58374
9eaf464c7719b79f88df8bc76378e33a43c7879d
3,822
py
Python
templates/app/blueprint.deployerbot/actions.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
4
2017-06-07T08:10:06.000Z
2017-11-10T02:20:38.000Z
templates/app/blueprint.deployerbot/actions.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
242
2017-05-18T10:51:48.000Z
2019-09-18T15:09:47.000Z
templates/app/blueprint.deployerbot/actions.py
Jumpscale/ays9
63bd414ff06372ba885c55eec528f427e63bcbe1
[ "Apache-2.0" ]
5
2017-06-16T15:43:25.000Z
2017-09-29T12:48:06.000Z
def init(job): service = job.service repo = service.aysrepo node = service.aysrepo.servicesFind(actor='node.*', name=service.model.data.hostNode)[0] os = service.aysrepo.servicesFind(actor='os.*', name=service.model.data.hostNode)[0] # filesystem # 1- fuse fuse_cfg = { 'mount.names...
33.234783
118
0.570905
9eaf8274e8cc9766821279aab11a4db9f5011c2d
718
py
Python
tests_gui/tech_board_only.py
yogurt-company/gaia_ai
1885059e99a96f45e6cc082b87c189829c4eaed9
[ "MIT" ]
null
null
null
tests_gui/tech_board_only.py
yogurt-company/gaia_ai
1885059e99a96f45e6cc082b87c189829c4eaed9
[ "MIT" ]
null
null
null
tests_gui/tech_board_only.py
yogurt-company/gaia_ai
1885059e99a96f45e6cc082b87c189829c4eaed9
[ "MIT" ]
null
null
null
import sys import pygame from gaia_project.tech_board import TechBoard, TechBoardRender if __name__ == '__main__': t = TechBoard(500, 900, None) t.power_actions[2].available = False try: pygame.init() fps_clock = pygame.time.Clock() window = pygame.display.set_mode( (1600, 1200), 1) from py...
21.757576
62
0.622563
9eaf8544fef588495f5d12ccda37595b49b96f88
11,732
py
Python
examples/trials/ga_squad/train_model.py
narumiruna/nni
09ce78302ca9f48ecb446e1129f28f70ee35dc4a
[ "MIT" ]
1
2018-09-12T06:32:56.000Z
2018-09-12T06:32:56.000Z
examples/trials/ga_squad/train_model.py
0Deer0/nni
b4e9f0878d3f74742ae3acd783ddff303b4732cb
[ "MIT" ]
null
null
null
examples/trials/ga_squad/train_model.py
0Deer0/nni
b4e9f0878d3f74742ae3acd783ddff303b4732cb
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # 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...
45.123077
100
0.566229
9eaf9894b60552ba3469df1a8af0176284b265db
1,449
py
Python
medkit/bases/base_domain.py
XanderJC/medkit-learn
13b06906f6d093c4978f52f1e8f06e998608faa3
[ "Apache-2.0" ]
14
2021-06-06T18:14:55.000Z
2022-03-18T14:00:05.000Z
medkit/bases/base_domain.py
vanderschaarlab/medkit-learn
a8bed6e7a76769f28abfadb3231f139cbfe44b49
[ "Apache-2.0" ]
1
2021-06-13T05:34:21.000Z
2021-06-15T09:52:50.000Z
medkit/bases/base_domain.py
vanderschaarlab/medkit-learn
a8bed6e7a76769f28abfadb3231f139cbfe44b49
[ "Apache-2.0" ]
1
2021-10-18T14:07:45.000Z
2021-10-18T14:07:45.000Z
from .__head__ import * class BaseDomain(ABC): """ Domain objects contain the relevant meta-data to be passed to both environment and policy classes. In this way they act as essentially config files. """ def __init__(self): super(BaseDomain, self).__init__() # Define key features ...
26.345455
83
0.634231