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
7929cd876a2de6b1c94a34ac4380b828c2c0bfcf
6,371
py
Python
python_version/lessons/lesson_2.py
bojanbg/orbital-academy
e9c262dfb1681cd877855723a94dae58a57e34c5
[ "MIT" ]
1
2019-09-14T13:29:54.000Z
2019-09-14T13:29:54.000Z
python_version/lessons/lesson_2.py
bojanbg/orbital-academy
e9c262dfb1681cd877855723a94dae58a57e34c5
[ "MIT" ]
null
null
null
python_version/lessons/lesson_2.py
bojanbg/orbital-academy
e9c262dfb1681cd877855723a94dae58a57e34c5
[ "MIT" ]
null
null
null
from lesson import Lesson from body import Body, EARTH_R class Lesson2(Lesson): def reset_sim(self): self.viz_window.switch_view_north() self.sim.draw_atmosphere = False self.sim.draw_mountain = True self.sim.planet_transparent = False self.viz_window.switch_view_north() ...
42.473333
120
0.640716
7929e78e9e73c0861828f360d446c1361582f147
4,601
py
Python
embiggen/sequences/tensorflow_sequences/gcn_edge_label_prediction_training_sequence.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
2
2020-01-30T11:57:37.000Z
2020-05-02T00:05:49.000Z
embiggen/sequences/tensorflow_sequences/gcn_edge_label_prediction_training_sequence.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
93
2020-01-26T00:43:51.000Z
2020-05-10T03:29:54.000Z
embiggen/sequences/tensorflow_sequences/gcn_edge_label_prediction_training_sequence.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
5
2020-02-13T07:18:11.000Z
2020-03-19T08:03:34.000Z
"""Keras Sequence for Open-world assumption GCN.""" from typing import List, Optional import numpy as np import tensorflow as tf from ensmallen import Graph # pylint: disable=no-name-in-module from keras_mixed_sequence import VectorSequence from embiggen.sequences.tensorflow_sequences.gcn_edge_prediction_sequence imp...
35.945313
106
0.604869
7929efe58b0aac490b501bcb380de7643947488a
1,424
py
Python
sdk/communication/azure-communication-phonenumbers/samples/list_purchased_phone_numbers_sample_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/communication/azure-communication-phonenumbers/samples/list_purchased_phone_numbers_sample_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/communication/azure-communication-phonenumbers/samples/list_purchased_phone_numbers_sample_async.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. # --------------------------------------------------------------------...
36.512821
102
0.704354
792a0aa8d57a86e2831aefb0fbd2e3c874e7e51c
5,201
py
Python
experiments/e2_multi_directional_model_comparison/file_naming/single_target_mids_naming.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
3
2020-08-03T19:25:44.000Z
2021-06-27T22:25:55.000Z
experiments/e2_multi_directional_model_comparison/file_naming/single_target_mids_naming.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
null
null
null
experiments/e2_multi_directional_model_comparison/file_naming/single_target_mids_naming.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
2
2020-08-07T22:54:28.000Z
2021-02-18T06:11:01.000Z
import os from experiments.e2_multi_directional_model_comparison.file_naming.rules.single_target_tree_rule_naming import \ get_single_target_tree_rules_relative_file_name_without_extension from experiments.file_naming.single_target_classifier_indicator import SingleTargetClassifierIndicator from project_info impo...
40.317829
119
0.762353
792a0df8a0a05daebef053e1d6c299973259af08
254
py
Python
office365/onedrive/sharepointIds.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
544
2016-08-04T17:10:16.000Z
2022-03-31T07:17:20.000Z
office365/onedrive/sharepointIds.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
438
2016-10-11T12:24:22.000Z
2022-03-31T19:30:35.000Z
office365/onedrive/sharepointIds.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
202
2016-08-22T19:29:40.000Z
2022-03-30T20:26:15.000Z
from office365.runtime.client_value import ClientValue class SharePointIds(ClientValue): """The SharePointIds resource groups the various identifiers for an item stored in a SharePoint site or OneDrive for Business into a single structure. """
36.285714
116
0.795276
792a2322128141d11bdc5422ed57d2d19fd2b20f
2,232
py
Python
Day 40 - Flight Club/main.py
atulmkamble/100DaysOfCode
ccfb6cb8582be69c63c666a3b097e0130585e4c9
[ "MIT" ]
2
2021-12-07T00:39:57.000Z
2021-12-07T01:44:21.000Z
Day 40 - Flight Club/main.py
atulmkamble/100DaysOfCode
ccfb6cb8582be69c63c666a3b097e0130585e4c9
[ "MIT" ]
null
null
null
Day 40 - Flight Club/main.py
atulmkamble/100DaysOfCode
ccfb6cb8582be69c63c666a3b097e0130585e4c9
[ "MIT" ]
1
2021-09-12T14:02:27.000Z
2021-09-12T14:02:27.000Z
from datetime import datetime, timedelta from data_manager import DataManager from flight_search import FlightSearch from notification_manager import NotificationManager ORIGIN_CITY_IATA = 'LON' def main(): data_manager = DataManager() sheet_data = data_manager.read_data() flight_search = FlightSearch() ...
34.875
119
0.627688
792a434e293cf7e7b79d55da62cf2b74946a21b0
1,631
py
Python
config/settings/production.py
bllli/Django-China-API
79a5d85fe88ba7784d08d370b8e7519f7274f208
[ "MIT" ]
187
2018-03-08T11:18:11.000Z
2021-12-26T13:29:02.000Z
config/settings/production.py
bllli/Django-China-API
79a5d85fe88ba7784d08d370b8e7519f7274f208
[ "MIT" ]
67
2018-03-09T14:56:47.000Z
2021-06-24T08:52:40.000Z
config/settings/production.py
bllli/Django-China-API
79a5d85fe88ba7784d08d370b8e7519f7274f208
[ "MIT" ]
52
2018-03-08T11:18:12.000Z
2021-08-02T16:07:04.000Z
from .common import * import environ ALLOWED_HOSTS = ['.dj-china.org', 'localhost', '127.0.0.1', '0.0.0.0'] env = environ.Env( # set casting, default value DEBUG=(bool, True), SOCIAL_LOGIN_GITHUB_CALLBACK_URL=(str, 'http://127.0.0.1:8000/social-auth/github/loginsuccess') ) environ.Env.read_env() DEBUG = ...
25.092308
99
0.643777
792a47fd0db68b45c6499e8347d2cb28d93b79d7
4,502
py
Python
examples/navier_stokes/stokes_slip_bc_penalty.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
1
2021-06-07T13:20:04.000Z
2021-06-07T13:20:04.000Z
examples/navier_stokes/stokes_slip_bc_penalty.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
examples/navier_stokes/stokes_slip_bc_penalty.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
r""" Incompressible Stokes flow with Navier (slip) boundary conditions, flow driven by a moving wall and a small diffusion for stabilization. This example demonstrates a weak application of `no-penetration` boundary conditions using the penalty term ``dw_non_penetration_p``. Find :math:`\ul{u}`, :math:`p` such that: ...
28.858974
78
0.59418
792a6d6e459612358ce7ade08e8f4529c950909e
7,332
py
Python
TVDNet/test.py
chenyao96/TVDNet
26fb2bfe65612b89b1a98edfe3d3e7308c6272e3
[ "MIT" ]
null
null
null
TVDNet/test.py
chenyao96/TVDNet
26fb2bfe65612b89b1a98edfe3d3e7308c6272e3
[ "MIT" ]
null
null
null
TVDNet/test.py
chenyao96/TVDNet
26fb2bfe65612b89b1a98edfe3d3e7308c6272e3
[ "MIT" ]
null
null
null
import torch import numpy as np from models import spinal_net import cv2 import decoder import os from dataset import BaseDataset import draw_points # from boostnet_labeldata.tools import draw_gt_pts3 import argparse def apply_mask(image, mask, alpha=0.5): """Apply the given mask to the image. """ color = ...
45.540373
121
0.576923
792a76a1ed4ff30bd1015b080bef865b752cbd2c
1,234
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/motor_pca9685_continuous_servo.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/motor_pca9685_continuous_servo.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
38
2018-03-19T19:17:32.000Z
2022-03-25T13:47:51.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/motor_pca9685_continuous_servo.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
44
2018-03-06T03:28:12.000Z
2021-12-27T06:33:16.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time from board import SCL, SDA import busio # Import the PCA9685 module. Available in the bundle and here: # https://github.com/adafruit/Adafruit_CircuitPython_PCA9685 from adafruit_pca9685 import PCA9685 from ad...
28.697674
95
0.778768
792a850b7f6adb13390cb2b3b8d44a09de81206f
2,472
py
Python
core/tests/test_management_commands.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
1
2021-11-06T12:08:26.000Z
2021-11-06T12:08:26.000Z
core/tests/test_management_commands.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
core/tests/test_management_commands.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
from unittest import mock import pytest from django.core.management import call_command from django.core.management.commands import migrate from company.tests.factories import CompanyFactory from supplier.tests.factories import SupplierFactory from company.models import Company from supplier.models import Supplier f...
34.816901
78
0.795307
792aa2e77b7084035119ed848da140a1136cc202
1,578
py
Python
tests/core/test_robots.py
lewoudar/scalpel
455a3ff766c91d02f33957ea17f1cfbec141ab60
[ "Apache-2.0" ]
15
2020-11-02T21:11:03.000Z
2022-03-10T14:17:46.000Z
tests/core/test_robots.py
lewoudar/scalpel
455a3ff766c91d02f33957ea17f1cfbec141ab60
[ "Apache-2.0" ]
4
2020-11-01T17:54:15.000Z
2022-03-04T21:42:41.000Z
tests/core/test_robots.py
lewoudar/scalpel
455a3ff766c91d02f33957ea17f1cfbec141ab60
[ "Apache-2.0" ]
2
2021-05-01T06:59:12.000Z
2021-11-25T07:01:02.000Z
from urllib.robotparser import RobotFileParser import pytest from scalpel.core.robots import RobotsMixin @pytest.fixture() def get_robots_parser(robots_content): def _get_robots_parser(additional_content: str = '') -> RobotFileParser: new_content = robots_content + additional_content robots = Ro...
35.863636
110
0.728771
792aa8235ab941e4c2145e93011f687e11059722
12,565
py
Python
AS4/utils.py
ivanbgd/Coursera-Neural-Networks-for-Machine-Learning
95b4583b1dbb53784fb8ba0381ca5ca87849ae14
[ "MIT" ]
null
null
null
AS4/utils.py
ivanbgd/Coursera-Neural-Networks-for-Machine-Learning
95b4583b1dbb53784fb8ba0381ca5ca87849ae14
[ "MIT" ]
null
null
null
AS4/utils.py
ivanbgd/Coursera-Neural-Networks-for-Machine-Learning
95b4583b1dbb53784fb8ba0381ca5ca87849ae14
[ "MIT" ]
null
null
null
import numpy as np import scipy.io as sio import matplotlib.pyplot as plt from collections import namedtuple from sys import exit _report_calls_to_sample_bernoulli = True def load_data(file_name = ".\\data_set.mat"): """ Loads data from a .mat file. MATLAB 5.0 MAT-file This method loads the training, val...
51.285714
188
0.682133
792aaf21929d00888a65f47fec5fc31a025d2af7
1,106
py
Python
src/sphinx_probs_rdf/postprocess.py
ricklupton/sphinx_probs_rdf
bcae27a37162c1a4c4b329af6759a0b5b52cab7a
[ "MIT" ]
1
2021-07-31T10:06:50.000Z
2021-07-31T10:06:50.000Z
src/sphinx_probs_rdf/postprocess.py
ricklupton/sphinx_probs_rdf
bcae27a37162c1a4c4b329af6759a0b5b52cab7a
[ "MIT" ]
1
2021-05-05T18:15:48.000Z
2021-05-05T18:15:48.000Z
src/sphinx_probs_rdf/postprocess.py
ricklupton/sphinx_probs_rdf
bcae27a37162c1a4c4b329af6759a0b5b52cab7a
[ "MIT" ]
null
null
null
"""Post-processing operations on the RDF graph.""" from rdflib import Graph # type: ignore from rdflib.namespace import RDF # type: ignore from .directives import PROBS # type: ignore from sphinx.util import logging logger = logging.getLogger(__name__) def postprocess(graph: Graph): """Apply postprocessing ...
35.677419
87
0.719711
792ad4677f532c44c703adef09e3ca66f71187e7
2,990
py
Python
rescuetime/api/model/ResponseData.py
MinoDe/rescuetime
6b0156fe005ad6a1610953d1b1a03f7645d9355d
[ "MIT" ]
1
2022-03-01T20:19:38.000Z
2022-03-01T20:19:38.000Z
rescuetime/api/model/ResponseData.py
MinoDe/rescuetime
6b0156fe005ad6a1610953d1b1a03f7645d9355d
[ "MIT" ]
null
null
null
rescuetime/api/model/ResponseData.py
MinoDe/rescuetime
6b0156fe005ad6a1610953d1b1a03f7645d9355d
[ "MIT" ]
null
null
null
from rescuetime.api.util.Syncable import Syncable ## We try to use memcache for local cacheing try: from google.appengine.api import memcache except ImportError: try: import memcache except ImportError: class _memcache(object): def set(self, *args, **kws): return...
35.595238
99
0.504348
792ade756611e8f71644e1ccb28aa386bdbda161
4,391
py
Python
toontown/makeatoon/GenderShop.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/makeatoon/GenderShop.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/makeatoon/GenderShop.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 pandac.PandaModules import * from direct.fsm import StateData from direct.gui.DirectGui import * from toontown.toonbase import TTLocalizer from toontown.toonbase import ToontownGlobals from toontown.toon import ToonDNA from toontown.toon import Toon from toontown.makeatoon.MakeAToonGlobals import * from direct.dir...
35.699187
182
0.657709
792adecb7ca391826024031ea03b9a7ae4c2b67a
781
py
Python
lib/geojson/crs.py
davasqueza/eriskco_conector_CloudSQL
99304b5eed06e9bba3646535a82d7fc98b0838b7
[ "Apache-2.0" ]
null
null
null
lib/geojson/crs.py
davasqueza/eriskco_conector_CloudSQL
99304b5eed06e9bba3646535a82d7fc98b0838b7
[ "Apache-2.0" ]
null
null
null
lib/geojson/crs.py
davasqueza/eriskco_conector_CloudSQL
99304b5eed06e9bba3646535a82d7fc98b0838b7
[ "Apache-2.0" ]
null
null
null
from geojson.base import GeoJSON class CoordinateReferenceSystem(GeoJSON): def __init__(self, properties=None, **extra): super(CoordinateReferenceSystem, self).__init__(**extra) self["properties"] = properties or {} class Named(CoordinateReferenceSystem): def __init__(self, properties=None...
25.193548
68
0.681178
792b0bd2bcacc0276273b0b1f041c342455cd26a
11,858
py
Python
azure/multiapi/storage/v2018_11_09/file/sharedaccesssignature.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
3
2019-02-21T20:46:26.000Z
2021-06-22T15:35:52.000Z
azure/multiapi/storage/v2018_11_09/file/sharedaccesssignature.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
11
2017-10-05T18:20:40.000Z
2020-10-10T09:20:19.000Z
azure/multiapi/storage/v2018_11_09/file/sharedaccesssignature.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
15
2017-10-02T18:48:20.000Z
2022-03-03T14:03:49.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from ..co...
51.556522
109
0.65517
792b482a0b0054303f33c96146ece387d8107116
50
py
Python
zaailabcorelib/zconfig/__init__.py
chiutuanbinh/zaailabcorelib
1967ebcd6e12f0c38ea03c827e16745cb8e0569c
[ "MIT" ]
1
2019-11-26T07:12:31.000Z
2019-11-26T07:12:31.000Z
zaailabcorelib/zconfig/__init__.py
chiutuanbinh/zaailabcorelib
1967ebcd6e12f0c38ea03c827e16745cb8e0569c
[ "MIT" ]
null
null
null
zaailabcorelib/zconfig/__init__.py
chiutuanbinh/zaailabcorelib
1967ebcd6e12f0c38ea03c827e16745cb8e0569c
[ "MIT" ]
3
2019-12-05T14:54:03.000Z
2021-05-15T15:03:48.000Z
from zaailabcorelib.zconfig.zconfig import ZConfig
50
50
0.9
792b5df10dd0a8354e71655d2aae47de44872937
4,057
py
Python
alipay/aop/api/request/AlipayPayApplepayTransactionauthtokenDeleteRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayPayApplepayTransactionauthtokenDeleteRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayPayApplepayTransactionauthtokenDeleteRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayPayApplepayTransactionauthtokenDeleteModel import AlipayPayApplepayTransactionauthtokenDeleteModel class AlipayPayApplepayTran...
27.97931
148
0.652206
792b6a2f1aecc8693087e1a8f2656b02cd1eb47c
4,587
py
Python
dpa/product/subscription/action/edit.py
Clemson-DPA/dpa-pipe
2482b8a0fd96dc19c0be4e82c3eaf0508914a968
[ "MIT" ]
55
2015-07-15T02:33:55.000Z
2020-12-28T08:02:54.000Z
dpa/product/subscription/action/edit.py
Clemson-DPA/dpa-pipe
2482b8a0fd96dc19c0be4e82c3eaf0508914a968
[ "MIT" ]
5
2015-07-11T03:21:10.000Z
2016-12-27T12:20:07.000Z
dpa/product/subscription/action/edit.py
Clemson-DPA/dpa-pipe
2482b8a0fd96dc19c0be4e82c3eaf0508914a968
[ "MIT" ]
12
2015-07-08T04:48:39.000Z
2020-06-27T11:35:58.000Z
from dpa.action import Action, ActionError, ActionAborted from dpa.product.subscription import ProductSubscription from dpa.shell.output import Output, Style # ----------------------------------------------------------------------------- class SubscriptionEditAction(Action): """Edit an existing subscription.""" ...
29.216561
79
0.418356
792b958a0d863cbe22a3201f4f6b2d41297d1ebc
638
py
Python
pyhumour/tests/properties/test_obviousness.py
mellon-collie/pyhumour
7ce3ad56d4c01174c97aea2d52c2a97d56bd64f3
[ "BSD-3-Clause" ]
1
2021-08-21T15:35:40.000Z
2021-08-21T15:35:40.000Z
pyhumour/tests/properties/test_obviousness.py
mellon-collie/pyhumour
7ce3ad56d4c01174c97aea2d52c2a97d56bd64f3
[ "BSD-3-Clause" ]
1
2021-11-27T07:25:35.000Z
2021-11-27T07:25:35.000Z
pyhumour/tests/properties/test_obviousness.py
mellon-collie/pyhumour
7ce3ad56d4c01174c97aea2d52c2a97d56bd64f3
[ "BSD-3-Clause" ]
1
2021-12-09T08:53:02.000Z
2021-12-09T08:53:02.000Z
"""Unit tests for _properties/obviousness.py.""" # pylint: disable=protected-access # pylint: disable=invalid-name,missing-docstring import unittest from unittest import mock from pyhumour._properties.obviousness import Obviousness class TestInappropriateness(unittest.TestCase): def test_calculate(self): ...
29
71
0.681818
792ba40a41498cec6f8a12fb45c8557422be3410
8,597
py
Python
doc/source/conf.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
doc/source/conf.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
doc/source/conf.py
redhat-openstack/python-openstackclient
7dc2e1dc08b0692a3accb343c62451fb3d83f4cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # OpenStack Command Line Client documentation build configuration file, created # by sphinx-quickstart on Wed May 16 12:05:58 2012. # # This file is execfile()d with the current directory set to its containing # dir. # # Note that not all possible configuration values are present in this # aut...
31.840741
88
0.708736
792ba62842859316223259644f011137a971ae9d
340
py
Python
otp/distributed/Account.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
otp/distributed/Account.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
otp/distributed/Account.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
""" Account module: stub to fulfill the Account toon.dc Distributed Class This is a class Roger needs for the server to be able to display these values appropriately in the db web interface. """ from direct.distributed import DistributedObject class Account(DistributedObject.DistributedObject): def __init__(self...
26.153846
77
0.773529
792bbdea9b3caa8fdbe08df7898dbef18771ad0d
2,118
py
Python
src/graph_transpiler/webdnn/backend/webgpu/kernels/__init__.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
src/graph_transpiler/webdnn/backend/webgpu/kernels/__init__.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/backend/webgpu/kernels/__init__.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
from webdnn.backend.webgpu.kernels import abs from webdnn.backend.webgpu.kernels import average_pooling_2d from webdnn.backend.webgpu.kernels import broadcast from webdnn.backend.webgpu.kernels import clipped_relu from webdnn.backend.webgpu.kernels import col2im from webdnn.backend.webgpu.kernels import concat from web...
51.658537
70
0.8678
792bbfea31e2c47d9dc8a86be0bf40d5cfa67a78
7,381
py
Python
spectrl/util/io.py
luigiberducci/dirl
5f7997aea20dfb7347ebdee66de9bea4e6cd3c62
[ "MIT" ]
null
null
null
spectrl/util/io.py
luigiberducci/dirl
5f7997aea20dfb7347ebdee66de9bea4e6cd3c62
[ "MIT" ]
null
null
null
spectrl/util/io.py
luigiberducci/dirl
5f7997aea20dfb7347ebdee66de9bea4e6cd3c62
[ "MIT" ]
null
null
null
import argparse import os import pathlib import cv2 import pickle import numpy as np from matplotlib import pyplot as plt from PIL import Image from numpy import genfromtxt def parse_command_line_options(print_options=False): parser = argparse.ArgumentParser() parser.add_argument("-n", type=int, default=-1)...
28.608527
98
0.605067
792bd95b128890199fe703d842d3e66c3ab6870b
8,383
py
Python
qiskit/tools/_compiler.py
indisoluble/qiskit-terra
301bfb537c3d63fa31cb3eb6490d2b8f1fa810fc
[ "Apache-2.0" ]
null
null
null
qiskit/tools/_compiler.py
indisoluble/qiskit-terra
301bfb537c3d63fa31cb3eb6490d2b8f1fa810fc
[ "Apache-2.0" ]
null
null
null
qiskit/tools/_compiler.py
indisoluble/qiskit-terra
301bfb537c3d63fa31cb3eb6490d2b8f1fa810fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """Helper module for simplified QISKit usage.""" from copy import deepcopy import uuid import logging from qiskit import tra...
43.21134
93
0.665036
792be50ab7635dfb8f04700a37e48cfe5edbae7a
29
py
Python
btd6_memory_info/generated/System/Net/SimpleAsyncResult/simple_async_result.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Net/SimpleAsyncResult/simple_async_result.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Net/SimpleAsyncResult/simple_async_result.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class SimpleAsyncResult: pass
29
29
0.896552
792c16e45e576bee278497452d147b516103eb16
1,142
py
Python
openwisp_utils/admin_theme/admin.py
PabloCastellano/openwisp-utils
7d48e266078e989e836f09afb60c53f06c6ef998
[ "BSD-3-Clause" ]
2
2019-01-29T08:21:38.000Z
2020-01-10T13:54:52.000Z
openwisp_utils/admin_theme/admin.py
PabloCastellano/openwisp-utils
7d48e266078e989e836f09afb60c53f06c6ef998
[ "BSD-3-Clause" ]
null
null
null
openwisp_utils/admin_theme/admin.py
PabloCastellano/openwisp-utils
7d48e266078e989e836f09afb60c53f06c6ef998
[ "BSD-3-Clause" ]
1
2020-01-10T14:28:50.000Z
2020-01-10T14:28:50.000Z
import logging from django.conf import settings from django.contrib import admin from django.utils.translation import ugettext_lazy logger = logging.getLogger(__name__) class OpenwispAdminSite(admin.AdminSite): # <title> site_title = getattr(settings, 'OPENWISP_ADMIN_SITE_TITLE', ...
30.864865
79
0.640981
792c323c6bd22f14019be57e11665fded2fb8ad5
292
py
Python
codility.com/passing_cars.py
Jagrmi-C/jagrmitest
7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96
[ "MIT" ]
null
null
null
codility.com/passing_cars.py
Jagrmi-C/jagrmitest
7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96
[ "MIT" ]
null
null
null
codility.com/passing_cars.py
Jagrmi-C/jagrmitest
7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96
[ "MIT" ]
null
null
null
# def solution(A): # write your code in Python 3.6 n = len(A) start = 0 res = 0 for i in range(n - 1, -1, -1): if A[i] == 0: res += start if res > 100000000: return -1 else: start += 1 return res
15.368421
35
0.40411
792c6bbf50d04246e9c9689acf368a61680ade40
7,900
py
Python
setup.py
Jss7268/magenta
10e0b2c50baaa01a9c942ed3334b5b2cca761bef
[ "Apache-2.0" ]
null
null
null
setup.py
Jss7268/magenta
10e0b2c50baaa01a9c942ed3334b5b2cca761bef
[ "Apache-2.0" ]
1
2020-03-01T16:02:10.000Z
2020-03-01T16:02:10.000Z
setup.py
Jss7268/magenta
10e0b2c50baaa01a9c942ed3334b5b2cca761bef
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Magenta Authors. # Modifications Copyright 2020 Jack Spencer Smith. # # 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 # #...
41.361257
97
0.714684
792c7b696420636cc35ab48c2599d91c33f6e98a
1,536
py
Python
tableaupy/exceptions.py
practo/Tableau-Py
eb2e354be8558af8ee438afbfc73e010a6b0421d
[ "MIT" ]
null
null
null
tableaupy/exceptions.py
practo/Tableau-Py
eb2e354be8558af8ee438afbfc73e010a6b0421d
[ "MIT" ]
15
2016-12-22T19:05:44.000Z
2021-12-13T19:35:47.000Z
tableaupy/exceptions.py
practo/Tableau-Py
eb2e354be8558af8ee438afbfc73e010a6b0421d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=too-many-ancestors """This module defines exceptions for tableaupy package """ from __future__ import absolute_import from __future__ import division from __future__ import print_function class AutoExtractException(Exception): """AutoExtract Command exception""" pas...
26.947368
76
0.692057
792c90a0d65fcffab114fdcf6114121cbe4930fe
1,164
py
Python
tests/commands/update/test_update_hpo_cmd.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
tests/commands/update/test_update_hpo_cmd.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
tests/commands/update/test_update_hpo_cmd.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from scout.commands import cli from scout.server.extensions import store def test_update_hpo(mock_app): """Tests the CLI that updates HPO terms in the database""" runner = mock_app.test_cli_runner() assert runner # Test CLI base, no arguments provided result = runner.inv...
29.846154
74
0.678694
792cbe7069e6c6da6a1a9c72c0fa0051313d1dcb
2,434
py
Python
mlserver/codecs/string.py
axsaucedo/MLServer
c11b1beda321b7070b510a0d47ec3fa6cfd78e27
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
mlserver/codecs/string.py
axsaucedo/MLServer
c11b1beda321b7070b510a0d47ec3fa6cfd78e27
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
mlserver/codecs/string.py
axsaucedo/MLServer
c11b1beda321b7070b510a0d47ec3fa6cfd78e27
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
from typing import Generator, Union, List from ..types import RequestInput, ResponseOutput from .base import InputCodec, register_input_codec _DefaultStrCodec = "utf-8" def _decode_str(encoded: Union[str, bytes], str_codec=_DefaultStrCodec) -> str: if isinstance(encoded, bytes): return encoded.decode(st...
30.425
79
0.612161
792ce783c2fb815b6840f05617f56c5fed63a87d
2,966
py
Python
test/azure/low-level/AcceptanceTests/asynctests/test_head.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/azure/low-level/AcceptanceTests/asynctests/test_head.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/azure/low-level/AcceptanceTests/asynctests/test_head.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""),...
44.939394
115
0.730614
792d3d258e7f4387081951ffc658f43f403c3cf2
6,147
py
Python
alipay/aop/api/domain/AlipayBossProdProtocolOrderPreviewModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayBossProdProtocolOrderPreviewModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayBossProdProtocolOrderPreviewModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.ContactInfomation import ContactInfomation from alipay.aop.api.domain.MerchantInformation import MerchantInformation from alipay.aop.api.domain.SalePlanInfo import SalePlanInfo cl...
33.961326
97
0.610542
792d44584c84b978a002bb4f94de6abcd50db21b
37
py
Python
test_botty/mocks/__init__.py
ColumbiaSC-Tech/botty_mcbotface
f72fbc7e899650b40b0cf0197c9e6006a5224669
[ "MIT" ]
11
2017-09-16T21:00:52.000Z
2020-10-08T19:58:09.000Z
test_botty/mocks/__init__.py
ColumbiaSC-Tech/botty_mcbotface
f72fbc7e899650b40b0cf0197c9e6006a5224669
[ "MIT" ]
12
2018-10-30T23:52:34.000Z
2021-12-13T19:46:21.000Z
test_botty/mocks/__init__.py
ColumbiaSC-Tech/botty_mcbotface
f72fbc7e899650b40b0cf0197c9e6006a5224669
[ "MIT" ]
3
2017-09-15T13:22:37.000Z
2019-08-01T11:42:14.000Z
from test_botty.mocks.mocks import *
18.5
36
0.810811
792d4590840859266962dc6dd973a0d6f561ce72
1,652
py
Python
setup.py
amacd31/catchment_tools
17db57d5363f95acd21d5faaaa6a6e4c4f6ea042
[ "BSD-3-Clause" ]
null
null
null
setup.py
amacd31/catchment_tools
17db57d5363f95acd21d5faaaa6a6e4c4f6ea042
[ "BSD-3-Clause" ]
null
null
null
setup.py
amacd31/catchment_tools
17db57d5363f95acd21d5faaaa6a6e4c4f6ea042
[ "BSD-3-Clause" ]
null
null
null
import os from io import open import versioneer from setuptools import setup try: from Cython.Build import cythonize ext_modules = cythonize("catchment_tools/read.py") except: ext_modules = [] here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.rst'), encoding='utf-8') ...
33.04
83
0.643462
792d5d3c7348aac365fa369debe185b5d54b8985
19,637
py
Python
src/transformers/modeling_tf_flaubert.py
aikakysymys/transformers
f9ee3462dee77f8d9bbe23a209152202e2f8c527
[ "Apache-2.0" ]
4
2021-02-28T11:58:18.000Z
2022-02-03T03:26:45.000Z
transformers/modeling_tf_flaubert.py
linshaoxin-maker/taas
34e11fab167a7beb78fbe6991ff8721dc9208793
[ "MIT" ]
2
2022-03-16T13:57:37.000Z
2022-03-16T14:00:51.000Z
transformers/modeling_tf_flaubert.py
linshaoxin-maker/taas
34e11fab167a7beb78fbe6991ff8721dc9208793
[ "MIT" ]
1
2021-11-08T06:57:35.000Z
2021-11-08T06:57:35.000Z
# coding=utf-8 # Copyright 2019-present, Facebook, Inc and the HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
49.0925
159
0.655497
792d5dfd999fca1bb8b5cc8aa2715dcb0e86e4f4
1,140
py
Python
setup.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
setup.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
setup.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
1
2018-11-18T00:36:51.000Z
2018-11-18T00:36:51.000Z
#!/usr/bin/env python from setuptools import setup setup( name='chainer', version='1.2.0', description='A flexible framework of neural networks', author='Seiya Tokui', author_email='tokui@preferred.jp', url='http://chainer.org/', packages=['chainer', 'chainer.functions', ...
27.142857
58
0.442105
792d61837e6a9fd4fdd8a443fabef6f142e6b15b
969
py
Python
tests/text_stages/test_regex_replace.py
DavidKatz-il/pdpipe
5ddd066425d99886bfc51cf19ab78b2bf8c7791a
[ "MIT" ]
269
2019-12-21T13:30:37.000Z
2022-03-27T18:41:36.000Z
tests/text_stages/test_regex_replace.py
DavidKatz-il/pdpipe
5ddd066425d99886bfc51cf19ab78b2bf8c7791a
[ "MIT" ]
68
2019-12-21T12:51:51.000Z
2022-03-13T13:06:14.000Z
tests/text_stages/test_regex_replace.py
DavidKatz-il/pdpipe
5ddd066425d99886bfc51cf19ab78b2bf8c7791a
[ "MIT" ]
30
2019-12-21T12:18:18.000Z
2022-03-17T05:53:19.000Z
"""Test the RegexReplace pipeline stage.""" import pandas as pd import pdpipe as pdp DF = pd.DataFrame( data=[[4, "more than 12"], [5, "with 5 more"]], index=[1, 2], columns=["age", "text"], ) def test_regex_replace(): clean_num = pdp.RegexReplace('text', r'\b[0-9]+\b', "NUM") res_df = clean_nu...
29.363636
74
0.632611
792d662ec06fec02ed04ef47097575751e2ab1f8
16,282
py
Python
atom/nucleus/python/nucleus_api/models/question.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/models/question.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/models/question.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from nucleus_api.configuration i...
26.346278
366
0.575789
792d9539d4aa5bf38e0a148c50fd644d00cbf62e
2,774
py
Python
utils/space_ops.py
dezren39/manim
80d7742446c588dc296bd3afb3465a63b63383db
[ "MIT" ]
1
2020-07-05T12:56:31.000Z
2020-07-05T12:56:31.000Z
utils/space_ops.py
elphasminyato/manim
8488b621ef3367e6a911354d2765684321fed20e
[ "MIT" ]
3
2021-09-08T02:19:38.000Z
2022-03-12T00:41:00.000Z
utils/space_ops.py
dezren39/manim
80d7742446c588dc296bd3afb3465a63b63383db
[ "MIT" ]
1
2020-07-05T12:56:33.000Z
2020-07-05T12:56:33.000Z
import numpy as np from constants import OUT from constants import RIGHT # Matrix operations def thick_diagonal(dim, thickness=2): row_indices = np.arange(dim).repeat(dim).reshape((dim, dim)) col_indices = np.transpose(row_indices) return (np.abs(row_indices - col_indices) < thickness).astype('uint8') ...
23.913793
74
0.620404
792da560a83853da9d26074f0106634d97e2be22
25,685
py
Python
cinder/volume/drivers/fusionstorage/dsware.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/fusionstorage/dsware.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/fusionstorage/dsware.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 - 2016 Huawei Technologies Co., Ltd. # 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....
40.964912
79
0.594705
792dc0d2d21e13a4c26a168d524a6b57ee764221
38,758
py
Python
edb/server/compiler/compiler.py
aeros/edgedb
db8c240d1607765799caf124a4b418250e0c0a96
[ "Apache-2.0" ]
null
null
null
edb/server/compiler/compiler.py
aeros/edgedb
db8c240d1607765799caf124a4b418250e0c0a96
[ "Apache-2.0" ]
null
null
null
edb/server/compiler/compiler.py
aeros/edgedb
db8c240d1607765799caf124a4b418250e0c0a96
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2016-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
34.729391
78
0.579777
792dcbd88bc145c89a0a82a4202536d634ea9071
658
py
Python
lhotse/__init__.py
fanlu/lhotse
1573cd5c317e196e6945cefbc364ea9ea9de192a
[ "Apache-2.0" ]
null
null
null
lhotse/__init__.py
fanlu/lhotse
1573cd5c317e196e6945cefbc364ea9ea9de192a
[ "Apache-2.0" ]
null
null
null
lhotse/__init__.py
fanlu/lhotse
1573cd5c317e196e6945cefbc364ea9ea9de192a
[ "Apache-2.0" ]
null
null
null
import warnings with warnings.catch_warnings(): # Those torchaudio warnings are a real nuisance warnings.simplefilter('ignore') # noinspection PyUnresolvedReferences import torchaudio from .audio import AudioSource, Recording, RecordingSet from .augmentation import * from .cut import Cut, CutSet from ...
29.909091
62
0.81155
792deb8ae1fe66b1250811b9f45359988255fb7b
8,509
py
Python
tests/core/full_node/test_initial_freeze.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
7
2021-09-07T02:14:15.000Z
2022-03-27T06:42:35.000Z
tests/core/full_node/test_initial_freeze.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
1
2021-10-21T16:38:56.000Z
2021-11-15T13:03:15.000Z
tests/core/full_node/test_initial_freeze.py
hulatang/skynet-blockchain
d7d6f7ec84731c13b9d6d307bb171cf0e266be82
[ "Apache-2.0" ]
3
2021-10-21T07:17:40.000Z
2022-03-16T12:57:09.000Z
import asyncio import time import pytest from skynet.consensus.block_rewards import calculate_base_farmer_reward, calculate_pool_reward, calculate_base_timelord_fee from skynet.consensus.blockchain import ReceiveBlockResult from skynet.protocols import full_node_protocol, wallet_protocol from skynet.protocols.protoco...
47.803371
159
0.717006
792e05751387421d1cb05330be993fa7db82e30f
2,555
py
Python
act/io/csvfiles.py
cgodine/ACT
af9f0edb76e6f16e2764d5441a4bf4d7fb3a9f39
[ "BSD-3-Clause" ]
1
2019-09-13T16:10:37.000Z
2019-09-13T16:10:37.000Z
act/io/csvfiles.py
cgodine/ACT
af9f0edb76e6f16e2764d5441a4bf4d7fb3a9f39
[ "BSD-3-Clause" ]
null
null
null
act/io/csvfiles.py
cgodine/ACT
af9f0edb76e6f16e2764d5441a4bf4d7fb3a9f39
[ "BSD-3-Clause" ]
null
null
null
""" =============== act.io.csvfiles =============== This module contains I/O operations for loading csv files. """ # import standard modules import pandas as pd from .armfiles import check_arm_standards def read_csv(filename, sep=',', engine='python', column_names=None, skipfooter=0, **kwargs): "...
30.058824
87
0.650881
792e14146f7f939a9f7d13a622028ef92e4a9f09
147,743
py
Python
sdk/compute/azure-mgmt-avs/azure/mgmt/avs/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/compute/azure-mgmt-avs/azure/mgmt/avs/models/_models_py3.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/compute/azure-mgmt-avs/azure/mgmt/avs/models/_models_py3.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
35.438474
205
0.633458
792e2e364172d8ee3b5f28619564e132761a31c9
1,125
py
Python
dataprep/eda/__init__.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
null
null
null
dataprep/eda/__init__.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
null
null
null
dataprep/eda/__init__.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
null
null
null
""" dataprep.eda ============ """ from bokeh.io import output_notebook from ..utils import is_notebook from .correlation import compute_correlation, plot_correlation, render_correlation from .create_report import create_report from .create_diff_report import create_diff_report from .distribution import compute, plot, ...
19.736842
82
0.678222
792e2f5a2d64fc2a83d83df87d4d06a73b0c9e3e
9,822
py
Python
src/deep_dialog/dialog_system/state_tracker.py
AtmaHou/UserSimulator
0322b7c725f771ea1f5b517c72e15e3436cb8d22
[ "MIT" ]
3
2020-12-16T08:19:00.000Z
2022-01-11T05:40:15.000Z
TC-Bot/src/deep_dialog/dialog_system/state_tracker.py
Human-Centric-Software-Engineering-Lab/PairBuddy
4908e6a19f23b20064bb10c504eeadb0de5c235e
[ "MIT" ]
null
null
null
TC-Bot/src/deep_dialog/dialog_system/state_tracker.py
Human-Centric-Software-Engineering-Lab/PairBuddy
4908e6a19f23b20064bb10c504eeadb0de5c235e
[ "MIT" ]
1
2020-12-18T00:03:12.000Z
2020-12-18T00:03:12.000Z
""" Created on May 20, 2016 state tracker @author: xiul, t-zalipt """ from . import KBHelper import numpy as np import copy class StateTracker: """ The state tracker maintains a record of which request slots are filled and which inform slots are filled """ def __init__(self, act_set, slot_set, movie_dicti...
54.265193
203
0.557728
792e34f2ed266288e3a491207c15dedd3452b1aa
3,735
py
Python
obsolete/pipeline_mappability.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
11
2018-09-07T11:33:23.000Z
2022-01-07T12:16:11.000Z
obsolete/pipeline_mappability.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
102
2018-03-22T15:35:26.000Z
2022-03-23T17:46:16.000Z
obsolete/pipeline_mappability.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
7
2018-06-11T15:01:41.000Z
2020-03-31T09:29:33.000Z
""" ===================== Mappability pipeline ===================== Pipeline to count mappable bases in a given genome """ import sys import os from ruffus import * import cgatcore.experiment as E from cgatcore import pipeline as P ################################################### # Pipeline configuration #####...
32.198276
123
0.513521
792e3d713ab74b22639983be9f01ee4f900f9a4d
1,546
py
Python
buffer/replay_buffer.py
dogeplusplus/torch-actor-critic
c12f5a6845fe27cf0f2b231a88e7b6d9f5985960
[ "MIT" ]
null
null
null
buffer/replay_buffer.py
dogeplusplus/torch-actor-critic
c12f5a6845fe27cf0f2b231a88e7b6d9f5985960
[ "MIT" ]
null
null
null
buffer/replay_buffer.py
dogeplusplus/torch-actor-critic
c12f5a6845fe27cf0f2b231a88e7b6d9f5985960
[ "MIT" ]
null
null
null
import numpy as np from random import sample from torch import FloatTensor from dataclasses import dataclass @dataclass(frozen=True) class Batch: states: FloatTensor actions: FloatTensor rewards: FloatTensor next_states: FloatTensor done: FloatTensor class ReplayBuffer: def __init__(self, s...
28.109091
69
0.608021
792e5befc34f7e7eea3406d7c2af50c7fa035697
2,711
py
Python
tests/core/fixture-tools/test_normalize_state.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
5
2018-09-28T20:01:42.000Z
2022-02-22T19:54:46.000Z
tests/core/fixture-tools/test_normalize_state.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
null
null
null
tests/core/fixture-tools/test_normalize_state.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
1
2019-01-29T21:09:31.000Z
2019-01-29T21:09:31.000Z
import pytest from eth_utils import ( big_endian_to_int, ValidationError, ) from eth.tools.fixtures.normalization import normalize_state ADDRESS_A = b'a' + b'\0' * 19 ADDRESS_B = b'b' + b'\0' * 19 @pytest.mark.parametrize( 'value,expected', ( # as state dictionaries ( (...
26.841584
91
0.463667
792e5ddc07d707d12eae046a846c28c413d54b83
963
py
Python
setup.py
bhuisgen/zabbix-docker
ab6d7c2a0d969ca86c59c2dfd670c4aae6bc6368
[ "MIT" ]
7
2017-03-13T09:46:53.000Z
2021-01-15T08:59:58.000Z
setup.py
bhuisgen/zabbix-docker
ab6d7c2a0d969ca86c59c2dfd670c4aae6bc6368
[ "MIT" ]
1
2019-11-22T14:11:35.000Z
2020-07-01T13:26:38.000Z
setup.py
bhuisgen/zabbix-docker
ab6d7c2a0d969ca86c59c2dfd670c4aae6bc6368
[ "MIT" ]
2
2021-08-09T16:12:17.000Z
2022-01-06T17:30:46.000Z
import io import os import re import setuptools def read(*names, **kwargs): with io.open(os.path.join(os.path.dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8")) as fp: return fp.read() def find_version(*file_paths): version_file = read(*file_paths) version_match = re.search(r"^...
31.064516
113
0.677051
792e65a9bf03cd4ac67b05862cb1a2e7332a052c
106,411
py
Python
tests/expectations/metrics/test_core.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
null
null
null
tests/expectations/metrics/test_core.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
null
null
null
tests/expectations/metrics/test_core.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
null
null
null
import copy import logging import numpy as np import pandas as pd import pytest import great_expectations.exceptions as ge_exceptions from great_expectations.core.batch import Batch from great_expectations.execution_engine import ( PandasExecutionEngine, SparkDFExecutionEngine, ) from great_expectations.execu...
32.324119
108
0.639943
792e65b21a4e629c8799d83bfd299a6b2727078f
511
py
Python
tarakania_rpg/config.py
MKokyn/discord-bot
00f58512739be9b2eec1adb16214c72da59e696b
[ "MIT" ]
null
null
null
tarakania_rpg/config.py
MKokyn/discord-bot
00f58512739be9b2eec1adb16214c72da59e696b
[ "MIT" ]
null
null
null
tarakania_rpg/config.py
MKokyn/discord-bot
00f58512739be9b2eec1adb16214c72da59e696b
[ "MIT" ]
null
null
null
import os import sys import yaml import logging from typing import Dict, Any from constants import DATA_DIR def get_bot_config(path: str) -> Dict[str, Any]: if not os.path.exists(path): log = logging.getLogger(__name__) log.fatal( f"Config file {os.path.relpath(path)} is missing. " ...
22.217391
76
0.637965
792e8fea65e0db0e7f45156a21d8f4684cebf6ac
1,251
py
Python
selsum/fairseq_mod/trainer.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
34
2021-09-10T17:10:10.000Z
2022-03-28T05:12:07.000Z
selsum/fairseq_mod/trainer.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
null
null
null
selsum/fairseq_mod/trainer.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
3
2021-11-20T08:21:19.000Z
2022-03-28T05:12:14.000Z
from fairseq.trainer import Trainer as BaseTrainer, logger, NanDetector from fairseq.logging import meters, metrics import torch import contextlib from fairseq import utils class Trainer(BaseTrainer): """ Adjusted valid_iterator to avoid problems with invalid validation instance sizes. """ def ge...
35.742857
90
0.673062
792e9caa5f63b887c1769117b7babe5be7b2874d
258
py
Python
controller/menu/logout.py
johndao1005/SDV602-Milestone2-QuangThanhDao
5818f11db599042ab0ba7379fb08cb27932f7cc1
[ "MIT" ]
1
2021-09-30T01:25:23.000Z
2021-09-30T01:25:23.000Z
controller/menu/logout.py
johndao1005/SDV602-Milestone2-QuangThanhDao
5818f11db599042ab0ba7379fb08cb27932f7cc1
[ "MIT" ]
3
2021-08-31T09:36:06.000Z
2021-09-03T08:22:36.000Z
controller/menu/logout.py
johndao1005/SDV602-Milestone2-QuangThanhDao
5818f11db599042ab0ba7379fb08cb27932f7cc1
[ "MIT" ]
null
null
null
def logout(dataview): """Function destroy the current data view window and display the a new login screen Args: dataview (variable): data view main window """ from view.login import Login dataview.destroy() Login().mainloop()
28.666667
87
0.674419
792ea3e869b7ecda6d7668318fce8f34f8b6e389
4,194
py
Python
aops-utils/aops_utils/database/table.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
aops-utils/aops_utils/database/table.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
aops-utils/aops_utils/database/table.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
#!/usr/bin/python3 # ****************************************************************************** # Copyright (c) Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. # licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a c...
33.285714
109
0.664521
792eacd5c5abfe40dd4c4ff1157569dda484350e
1,772
py
Python
simple_romp/setup.py
HuiliCui/ROMP
8606d695e104f550a83bd74da3f3927c8e01faaf
[ "MIT" ]
2
2022-03-28T07:22:01.000Z
2022-03-28T07:22:05.000Z
simple_romp/setup.py
HuiliCui/ROMP
8606d695e104f550a83bd74da3f3927c8e01faaf
[ "MIT" ]
null
null
null
simple_romp/setup.py
HuiliCui/ROMP
8606d695e104f550a83bd74da3f3927c8e01faaf
[ "MIT" ]
null
null
null
import setuptools from distutils.core import setup, Extension from Cython.Build import cythonize import numpy with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() requireds = ["opencv-python","torch"] setuptools.setup( name='simple_romp', version='0.0.3', author="Yu Sun",...
31.642857
92
0.594808
792eb5149acbbe8d7e5f158c7da243e5a5481cf8
1,507
py
Python
components/exp-test-agent/tests/test_agent_celery.py
sfahad1414/AGENT
84069edc96b6190bb03ffd5099cbc8966061a563
[ "Apache-2.0" ]
15
2020-05-06T16:17:56.000Z
2022-03-30T12:25:16.000Z
components/exp-test-agent/tests/test_agent_celery.py
dionny/AGENT
8a833406b590e23623fcc67db99f6f964d002396
[ "Apache-2.0" ]
2
2021-08-25T16:17:16.000Z
2022-02-10T06:35:58.000Z
components/exp-test-agent/tests/test_agent_celery.py
dionny/AGENT
8a833406b590e23623fcc67db99f6f964d002396
[ "Apache-2.0" ]
7
2020-04-07T18:47:55.000Z
2022-03-30T12:14:58.000Z
from unittest.mock import patch, call, Mock from agent_celery import main @patch('agent_celery.threading.Thread') @patch('agent_celery.uuid.uuid4') @patch('agent_celery.celery.worker.WorkController') @patch('agent_celery.create_app') @patch('agent_celery.LOGGER') def test_coordinator_celery( logger_mock, ...
30.755102
82
0.715328
792ec639f24f23943e98699420710e4e021ab6b3
9,059
py
Python
hs_app_timeseries/page_processors.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_app_timeseries/page_processors.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_app_timeseries/page_processors.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
from crispy_forms.layout import Layout, HTML from django.contrib import messages from django.http import HttpResponseRedirect from mezzanine.pages.page_processors import processor_for from .forms import UpdateSQLiteLayout, SeriesSelectionLayout, TimeSeriesMetaDataLayout, \ UTCOffSetLayout, UTCOffSetForm from hs_ap...
51.180791
98
0.680097
792ed7e54159576e2af4d467d300e6592ed2f24d
9,608
py
Python
trax/layers/metrics_test.py
amtagrwl/trax
f7200793a0ce8922622d073a6ec90346efe8b679
[ "Apache-2.0" ]
null
null
null
trax/layers/metrics_test.py
amtagrwl/trax
f7200793a0ce8922622d073a6ec90346efe8b679
[ "Apache-2.0" ]
null
null
null
trax/layers/metrics_test.py
amtagrwl/trax
f7200793a0ce8922622d073a6ec90346efe8b679
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
37.385214
78
0.542152
792ee29a1305a7e63f49efce3fca6f6e3522c6fb
1,186
py
Python
pyanoled/visualizer/color_schemes/KeyScheme.py
ethanlu/pyanoled
5eabefc791c70afecfd2f4e3b61c78d150c6f551
[ "MIT" ]
null
null
null
pyanoled/visualizer/color_schemes/KeyScheme.py
ethanlu/pyanoled
5eabefc791c70afecfd2f4e3b61c78d150c6f551
[ "MIT" ]
null
null
null
pyanoled/visualizer/color_schemes/KeyScheme.py
ethanlu/pyanoled
5eabefc791c70afecfd2f4e3b61c78d150c6f551
[ "MIT" ]
null
null
null
from pyanoled.event.Events import KeyEvent from pyanoled.visualizer.color_schemes.Scheme import Scheme from typing import Tuple class KeyScheme(Scheme): """ two colors mapped to black and white keys """ def get_color(self, key: KeyEvent) -> Tuple: if key.normalized_note < 3: # fi...
32.054054
85
0.581788
792ee7d125b3f32625b56de415f4edd4f20fc3c8
425
py
Python
src/test/tests/operators/lcs_lc_2.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/operators/lcs_lc_2.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/operators/lcs_lc_2.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: lcs_lc_2.py # # Tests: operator - LCS # # Programmer: Allen Sanderson # Date: August 25, 2015 # ---------------------------------------------------------------------------- Source(tests_p...
25
78
0.428235
792eeab4a2214515dbcb2ed2210be0d5f15d36ad
4,786
py
Python
Allura/allura/tasks/index_tasks.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
1
2019-03-17T04:16:15.000Z
2019-03-17T04:16:15.000Z
Allura/allura/tasks/index_tasks.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
Allura/allura/tasks/index_tasks.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
# 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 (t...
32.337838
116
0.657543
792ef758ed533227ecf946b58a5ce9abd81a2c90
2,056
py
Python
seq_graph_retro/molgraph/vocab.py
vsomnath/graphretro
2a88730da980be59541780e790cdb0fbdc581828
[ "MIT" ]
5
2022-02-21T08:26:15.000Z
2022-03-31T12:05:47.000Z
seq_graph_retro/molgraph/vocab.py
vsomnath/graphretro
2a88730da980be59541780e790cdb0fbdc581828
[ "MIT" ]
null
null
null
seq_graph_retro/molgraph/vocab.py
vsomnath/graphretro
2a88730da980be59541780e790cdb0fbdc581828
[ "MIT" ]
2
2022-03-11T15:33:33.000Z
2022-03-23T06:28:07.000Z
from seq_graph_retro.molgraph.mol_features import ATOM_LIST class Vocab: """Vocab class to deal with atom vocabularies and other attributes.""" def __init__(self, elem_list=ATOM_LIST[:-1]) -> None: """ Parameters ---------- elem_list: List, default ATOM_LIST Element...
30.686567
89
0.529669
792efe525317bf18c0733a8f632e6dcf5a85f4e6
10,243
py
Python
tests/data/test_transforms.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
tests/data/test_transforms.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
tests/data/test_transforms.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) Facebook, Inc. and its affiliates. import logging import numpy as np import unittest from unittest import mock from PIL import Image, ImageOps from detectron.config import get_cfg from detectron.data import detection_utils from detectron.data import transforms as T from detectr...
42.857741
98
0.633896
792f0e94b4178ee8dd7a979ab9bf1cadb4742464
2,408
py
Python
alipay/aop/api/response/HuanxuTradeOrderRefundResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/HuanxuTradeOrderRefundResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/HuanxuTradeOrderRefundResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.ExtContext import ExtContext class HuanxuTradeOrderRefundResponse(AlipayResponse): def __init__(self): super(HuanxuTradeOrderRefundResponse, self).__init...
30.1
103
0.669435
792f0ed6860045ba2a4c2f4b8a56930132f4d8a0
4,971
py
Python
software/camera-imu/tools/imu_driver.py
MomsFriendlyRobotCompany/mjolnir
76f53e8e650ba1051b5f14e94ff2a9a283158da4
[ "MIT" ]
1
2020-08-17T04:36:14.000Z
2020-08-17T04:36:14.000Z
software/camera-imu/tools/imu_driver.py
MomsFriendlyRobotCompany/mjolnir
76f53e8e650ba1051b5f14e94ff2a9a283158da4
[ "MIT" ]
null
null
null
software/camera-imu/tools/imu_driver.py
MomsFriendlyRobotCompany/mjolnir
76f53e8e650ba1051b5f14e94ff2a9a283158da4
[ "MIT" ]
1
2021-04-06T08:26:03.000Z
2021-04-06T08:26:03.000Z
from serial import Serial import struct from math import log10, sin, cos, acos, atan2, asin, pi, sqrt import time from collections import namedtuple from colorama import Fore agmpt_t = namedtuple("agmpt_t", "accel gyro mag pressure temperature timestamp") # ImageIMU = namedtuple("ImageIMU","image accel gyro temperatu...
26.441489
80
0.481392
792f209fec34189c74f9d70f95002aad7a5d4142
3,020
py
Python
sdk/webpubsub/azure-messaging-webpubsubservice/samples/get_client_access_token_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/webpubsub/azure-messaging-webpubsubservice/samples/get_client_access_token_async.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/webpubsub/azure-messaging-webpubsubservice/samples/get_client_access_token_async.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ...
47.1875
146
0.723841
792f2f1298e8f65bd780bfea920c594d198bb4df
6,343
py
Python
3_road_sign_classification/preprocessing.py
IuAyala/Self-Driving-Cars-Course
3171a556726e1a67d43a8fae4512c66d3715cf1c
[ "MIT" ]
null
null
null
3_road_sign_classification/preprocessing.py
IuAyala/Self-Driving-Cars-Course
3171a556726e1a67d43a8fae4512c66d3715cf1c
[ "MIT" ]
null
null
null
3_road_sign_classification/preprocessing.py
IuAyala/Self-Driving-Cars-Course
3171a556726e1a67d43a8fae4512c66d3715cf1c
[ "MIT" ]
null
null
null
import os from pathlib import Path import xml.dom.minidom import cv2 from skimage.transform import rescale, resize from sklearn.model_selection import train_test_split from PIL import Image import numpy as np import pickle # Dataset --> https://www.kaggle.com/andrewmvd/road-sign-detection # Classes (4) --> speedlimit,...
31.557214
138
0.614536
792f334163bc31d44c06da312019b79eb589a225
59
py
Python
Hbtep/__init__.py
jwbrooks0/johnspythonlibrary2
10ca519276d8c32da0fbd41a597f75c0c98a8736
[ "MIT" ]
null
null
null
Hbtep/__init__.py
jwbrooks0/johnspythonlibrary2
10ca519276d8c32da0fbd41a597f75c0c98a8736
[ "MIT" ]
null
null
null
Hbtep/__init__.py
jwbrooks0/johnspythonlibrary2
10ca519276d8c32da0fbd41a597f75c0c98a8736
[ "MIT" ]
null
null
null
from . import Get from . import Process from . import Plot
14.75
21
0.745763
792f4644c3ee6655899244c25f548843d4723a46
5,277
py
Python
misc/sketcher.py
davidko-ww/WonderPyExamples
12dbf138483fe0cecaa78a6b67dc4cf68fe7ddb3
[ "MIT" ]
10
2018-07-31T06:45:22.000Z
2021-01-20T07:43:53.000Z
misc/sketcher.py
davidko-ww/WonderPyExamples
12dbf138483fe0cecaa78a6b67dc4cf68fe7ddb3
[ "MIT" ]
3
2018-07-31T20:31:54.000Z
2020-07-30T22:37:49.000Z
misc/sketcher.py
davidko-ww/WonderPyExamples
12dbf138483fe0cecaa78a6b67dc4cf68fe7ddb3
[ "MIT" ]
7
2018-07-31T22:41:46.000Z
2021-11-04T18:06:00.000Z
import sys import os.path import argparse from threading import Thread import WonderPy.core.wwMain from WonderPy.core.wwConstants import WWRobotConstants from WonderPy.util import wwSVG from WonderPy.util import wwPath # a few example SVG files. # all the paths in the chosen file will be drawn. # see sketcher.md for ...
37.161972
120
0.622892
792f52d30f9f30f2e5a12279674e8c393d44ac63
6,121
py
Python
src/lxrt/relation_prob.py
muziyongshixin/pytorch_SSRP
e54b3098927ba2ff16bdc8f64f3a2bf46d1f72c5
[ "MIT" ]
1
2022-01-11T06:29:01.000Z
2022-01-11T06:29:01.000Z
src/lxrt/relation_prob.py
muziyongshixin/pytorch_SSRP
e54b3098927ba2ff16bdc8f64f3a2bf46d1f72c5
[ "MIT" ]
null
null
null
src/lxrt/relation_prob.py
muziyongshixin/pytorch_SSRP
e54b3098927ba2ff16bdc8f64f3a2bf46d1f72c5
[ "MIT" ]
null
null
null
"""Classes for specifying probe pytorch modules.""" import torch.nn as nn import torch class Probe(nn.Module): pass class TwoWordPSDProbe(Probe): """ Computes squared L2 distance after projection by a matrix. For a batch of sentences, computes all n^2 pairs of distances for each senten...
41.358108
158
0.628002
792f74b32100b485cd13744d9f6140333896f837
940
py
Python
sdks/python/test/test_IntuneAppsResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_IntuneAppsResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_IntuneAppsResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
23.5
95
0.723404
792f76432ccf50c852a5e5713df1b04133a11d40
22,064
py
Python
lang/py3/avro/ipc.py
gth828r/avro-python3
c8379728b4a762d99262e526fb53f631076fb143
[ "Apache-2.0" ]
12
2018-01-10T22:28:55.000Z
2019-09-06T10:03:53.000Z
lang/py3/avro/ipc.py
gth828r/avro-python3
c8379728b4a762d99262e526fb53f631076fb143
[ "Apache-2.0" ]
16
2018-03-15T23:11:29.000Z
2021-09-20T12:45:54.000Z
lang/py3/avro/ipc.py
gth828r/avro-python3
c8379728b4a762d99262e526fb53f631076fb143
[ "Apache-2.0" ]
25
2018-01-05T15:13:55.000Z
2021-12-10T20:01:28.000Z
#!/usr/bin/env python3 # -*- mode: python -*- # -*- coding: utf-8 -*- # 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...
31.655667
80
0.699057
792f84699db535da2dc6963c740bce5a58ce57c8
15,182
py
Python
python/camera.py
webbbn/realtime_network_av
973307babd44b0bb5908b688c60b1d3c40a0762d
[ "Apache-2.0" ]
4
2019-03-13T14:37:12.000Z
2019-11-07T07:11:53.000Z
python/camera.py
webbbn/realtime-network-av
973307babd44b0bb5908b688c60b1d3c40a0762d
[ "Apache-2.0" ]
null
null
null
python/camera.py
webbbn/realtime-network-av
973307babd44b0bb5908b688c60b1d3c40a0762d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import socket import struct import array import time import logging import math import numpy as np import subprocess import multiprocessing as mp import wifibroadcast.py_v4l2 as v4l from wifibroadcast.py_v4l2 import Frame from wifibroadcast.py_v4l2 import Control from wifibroadcast.format_as_ta...
36.583133
135
0.52582
792f98b4435f768ef855cc46f1e83e28f356ad79
2,809
py
Python
devbot/registry.py
DevOps-Utrecht/DevOps-Bot
b2557a8103cdaa2aab99b139df934e581e3ce4a8
[ "MIT" ]
6
2018-05-24T21:48:43.000Z
2018-12-13T07:51:00.000Z
devbot/registry.py
DevOps-Utrecht/DevOps-Bot
b2557a8103cdaa2aab99b139df934e581e3ce4a8
[ "MIT" ]
10
2018-05-25T05:18:16.000Z
2019-03-18T07:25:46.000Z
devbot/registry.py
DevOps-Utrecht/DevOps-Bot
b2557a8103cdaa2aab99b139df934e581e3ce4a8
[ "MIT" ]
1
2018-05-25T08:20:22.000Z
2018-05-25T08:20:22.000Z
""" Allows the registering of new commands Hugely inspired by https://github.com/RobinSikkens/Sticky-discord """ from collections import defaultdict import logging LOGGER = logging.getLogger(__name__) class RegisteringDecorator(object): """ General decorator for registering. Must be ove...
28.09
88
0.657173
793027069b7a7b46b33c69674e112d0e008141b7
456
py
Python
src/signalcontrol/migrations/0003_alter_signalcontrol_id.py
davidslusser/django-signalcontrol
800687c4f806837df35f4754aa2def7a0359853f
[ "Apache-2.0" ]
2
2020-11-01T16:39:08.000Z
2021-02-08T13:14:45.000Z
src/signalcontrol/migrations/0003_alter_signalcontrol_id.py
davidslusser/django-signalcontrol
800687c4f806837df35f4754aa2def7a0359853f
[ "Apache-2.0" ]
null
null
null
src/signalcontrol/migrations/0003_alter_signalcontrol_id.py
davidslusser/django-signalcontrol
800687c4f806837df35f4754aa2def7a0359853f
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-10 14:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('signalcontrol', '0002_auto_20200618_1611'), ] operations = [ migrations.AlterField( model_name='signalcontrol', name...
24
111
0.635965
793029b251e9643991454b4e178d05251d8edd10
2,604
py
Python
primehub/utils/http_client.py
InfuseAI/primehub-python-sdk
edbdbcb3e41f0c99e4542245de1345a64f509fb4
[ "Apache-2.0" ]
10
2021-09-13T23:14:22.000Z
2022-02-06T06:07:40.000Z
primehub/utils/http_client.py
KellenJohn/primehub-python-sdk
edbdbcb3e41f0c99e4542245de1345a64f509fb4
[ "Apache-2.0" ]
4
2021-08-10T03:10:27.000Z
2021-12-16T02:11:50.000Z
primehub/utils/http_client.py
KellenJohn/primehub-python-sdk
edbdbcb3e41f0c99e4542245de1345a64f509fb4
[ "Apache-2.0" ]
1
2021-12-21T11:59:51.000Z
2021-12-21T11:59:51.000Z
import json from json import JSONDecodeError from typing import Iterator, Callable import requests # type: ignore from primehub.utils import ResponseException, RequestException, GraphQLException, create_logger, \ ResourceNotFoundException logger = create_logger('http') class Client(object): def __init__(...
37.2
102
0.6298
79304797eec347026fa49c1fb2bb70786c57e7ff
2,792
py
Python
tensorflow2/class4/tensorflow2_mnist_subclassing.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
1
2020-09-25T00:48:41.000Z
2020-09-25T00:48:41.000Z
tensorflow2/class4/tensorflow2_mnist_subclassing.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
null
null
null
tensorflow2/class4/tensorflow2_mnist_subclassing.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
1
2021-11-13T13:12:37.000Z
2021-11-13T13:12:37.000Z
import math import numpy as np from sklearn import preprocessing, model_selection, svm from sklearn.linear_model import LinearRegression import matplotlib.pyplot as plt from matplotlib import style import pandas as pd import datetime import tensorflow as tf mnist = tf.keras.datasets.mnist (x_train, y_train), (x_test,...
36.25974
122
0.687679
79305557e0d8d432f48fcd07d3dae5cd49085279
380
py
Python
examples/tutorial/Grids and Images/get_data_files.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
25
2017-07-14T06:39:37.000Z
2022-03-09T21:39:51.000Z
examples/tutorial/Grids and Images/get_data_files.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
100
2016-12-13T17:30:41.000Z
2021-08-01T20:21:13.000Z
examples/tutorial/Grids and Images/get_data_files.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
28
2016-12-12T17:34:40.000Z
2022-03-16T15:39:39.000Z
import geosoft.gxpy.gx as gx import geosoft.gxpy.utility as gxu gxc = gx.GXpy() url = 'https://github.com/GeosoftInc/gxpy/raw/9.3/examples/tutorial/Grids%20and%20Images/' gxu.url_retrieve(url + 'elevation_surfer.GRD') gxu.url_retrieve(url + 'elevation') gxu.url_retrieve(url + 'elevation.ers') gxu.url_retrieve(url + 'el...
42.222222
90
0.763158
79306086af6ba03ff0413e4d5fc310dda0717f42
1,407
py
Python
utils/city_codes.py
uoshvis/job-hunter-Lithuania
554d083d01076ffcf13a2eaefd85832a982e7c5f
[ "MIT" ]
2
2019-07-01T13:17:55.000Z
2021-10-31T10:16:11.000Z
utils/city_codes.py
uoshvis/job-hunter-Lithuania
554d083d01076ffcf13a2eaefd85832a982e7c5f
[ "MIT" ]
8
2020-02-11T23:03:31.000Z
2022-02-13T14:07:42.000Z
utils/city_codes.py
uoshvis/job-hunter-Lithuania
554d083d01076ffcf13a2eaefd85832a982e7c5f
[ "MIT" ]
null
null
null
city_codes = { 'Visi miestai': None, 'Vilnius': 1010, 'Kaunas': 1020, 'Klaipėda': 1030, 'Šiauliai': 1040, 'Panevėžys': 1050, 'Užsienyje': 1060, 'Alytus': 1070, 'Anykščiai': 1080, 'Birštonas': 1090, 'Biržai': 1100, 'Druskininkai': 1110, 'Elektrėnai': 1120, 'Gargžda...
21.646154
30
0.550817
793062b1fc02767297852495bc7998125851e8a6
381
py
Python
Mod09Listings/Listing03.py
cpwasthere/Module09
76dbe293f22ad775353c30c9845d8e22a640679c
[ "MIT" ]
null
null
null
Mod09Listings/Listing03.py
cpwasthere/Module09
76dbe293f22ad775353c30c9845d8e22a640679c
[ "MIT" ]
null
null
null
Mod09Listings/Listing03.py
cpwasthere/Module09
76dbe293f22ad775353c30c9845d8e22a640679c
[ "MIT" ]
null
null
null
# ---------------------------------------------------------- # # Title: Listing03 # Description: A script that runs as the "Main" module # ChangeLog (Who,When,What): # RRoot,1.1.2030,Created started script # ---------------------------------------------------------- # print(__name__) if __name__ == "__main__": ...
38.1
63
0.469816
793067783787e1d81076d101c93a8ce1d8951243
2,267
py
Python
atlas/auth/shibsso/tests/test_middleware.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
null
null
null
atlas/auth/shibsso/tests/test_middleware.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
15
2015-01-06T13:41:52.000Z
2022-03-30T10:37:25.000Z
atlas/auth/shibsso/tests/test_middleware.py
PanDAWMS/panda-bigmon-atlas
a3688b9ed722a15c0469c8bee84cc9a417670608
[ "Apache-2.0" ]
1
2017-07-20T08:01:24.000Z
2017-07-20T08:01:24.000Z
# # Copyright 2010 CERN # # 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 writing, softw...
30.635135
76
0.677989
79306786a6d7f1b9e9fcee5859afc5214512038e
15,959
py
Python
examples/VTK/Applications/MultiFilter/app.py
DrewLazzeriKitware/trame
fdc73f07f17d2601e1b1d3934d2d6326a3c0281e
[ "BSD-3-Clause" ]
null
null
null
examples/VTK/Applications/MultiFilter/app.py
DrewLazzeriKitware/trame
fdc73f07f17d2601e1b1d3934d2d6326a3c0281e
[ "BSD-3-Clause" ]
null
null
null
examples/VTK/Applications/MultiFilter/app.py
DrewLazzeriKitware/trame
fdc73f07f17d2601e1b1d3934d2d6326a3c0281e
[ "BSD-3-Clause" ]
null
null
null
import os from enum import Enum from trame import change, update_state from trame.layouts import SinglePageWithDrawer from trame.html import vtk, vuetify, widgets from vtkmodules.vtkCommonDataModel import ( vtkDataObject, ) from vtkmodules.vtkIOXML import ( vtkXMLUnstructuredGridReader, ) from vtkmodules.vtkR...
29.336397
86
0.619337
793072fed537d32544b3a0028b5e646855611fdd
798
py
Python
tensormonk/loss/__init__.py
Tensor46/TensorMONK
67617d3fdf8fde072ba9cab42de7d67c79b17494
[ "MIT" ]
29
2018-07-06T23:57:23.000Z
2022-03-08T20:38:57.000Z
tensormonk/loss/__init__.py
sparupat/TensorMONK
7a2699a28299a89b186e0eb17ed6e9feaea5429e
[ "MIT" ]
3
2018-12-14T22:21:26.000Z
2020-06-19T02:13:34.000Z
tensormonk/loss/__init__.py
sparupat/TensorMONK
7a2699a28299a89b186e0eb17ed6e9feaea5429e
[ "MIT" ]
8
2018-07-06T23:58:03.000Z
2021-04-12T01:35:54.000Z
""" TensorMONK :: loss """ __all__ = ["CapsuleLoss", "Categorical", "DiceLoss", "MetricLoss", "MultiBoxLoss", "TripletLoss", "BalancedL1Loss", "IOULoss", "LabelLoss", "BoxesLoss", "PointLoss", "AdversarialLoss"] from .categorical import Categorical from .capsuleloss import ...
34.695652
71
0.754386
7930762f76d2f869aa7144db00391913c9722d8f
4,198
py
Python
src/onevision/nn/layer/weight_init.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/nn/layer/weight_init.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/nn/layer/weight_init.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Weight Initialization. """ from __future__ import annotations import math import torch import torch.nn as nn from torch import Tensor from torch.nn.init import _calculate_fan_in_and_fan_out from onevision import error_console __all__ = [ "lecun_normal_", "t...
30.42029
105
0.606003
7930807262c9b833a84f9f199a70af5f65af9c26
2,609
py
Python
tensorbay/client/exceptions.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
tensorbay/client/exceptions.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
tensorbay/client/exceptions.py
YiweiLi4/tensorbay-python-sdk
20fc8b37bad01c2d201a87b1436f1d4ff77d76df
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2021 Graviti. Licensed under MIT License. # """Classes refer to TensorBay exceptions. +----------------------+-----------------------------------------------------+ | Error | Description | +======================+=============...
33.448718
100
0.576466
79309e73fe5a61afe8520c808491cef93fcd8083
8,273
py
Python
method/maml.py
JuliousHurtado/Meta-Iteration
8edf09510c9c8c300c8ca42472e7e04bfd790938
[ "MIT" ]
null
null
null
method/maml.py
JuliousHurtado/Meta-Iteration
8edf09510c9c8c300c8ca42472e7e04bfd790938
[ "MIT" ]
1
2021-09-08T03:25:12.000Z
2021-09-08T03:25:12.000Z
method/maml.py
JuliousHurtado/Meta-Iteration
8edf09510c9c8c300c8ca42472e7e04bfd790938
[ "MIT" ]
null
null
null
import traceback from torch.autograd import grad from learn2learn.algorithms.base_learner import BaseLearner from learn2learn.utils import clone_module def maml_update(model, lr, grads=None): """ [[Source]](https://github.com/learnables/learn2learn/blob/master/learn2learn/algorithms/maml.py) **Descriptio...
41.994924
100
0.601475
7930b0d0eb329b3366785dd23f936c44dc1f1082
3,346
py
Python
frigate/stats.py
giladnahor/frigate
a36f71d9892585515d05ce869ddf40298adaadc7
[ "MIT" ]
null
null
null
frigate/stats.py
giladnahor/frigate
a36f71d9892585515d05ce869ddf40298adaadc7
[ "MIT" ]
null
null
null
frigate/stats.py
giladnahor/frigate
a36f71d9892585515d05ce869ddf40298adaadc7
[ "MIT" ]
null
null
null
import json import logging import threading import time import psutil import shutil from frigate.config import FrigateConfig from frigate.const import RECORD_DIR, CLIPS_DIR, CACHE_DIR from frigate.version import VERSION logger = logging.getLogger(__name__) def stats_init(camera_metrics, detectors): stats_tracki...
30.981481
86
0.626121
7930b1b9cf492df241502fd7df2457319bb31cc4
5,656
py
Python
wannier90-absorption/wannier_alpha.py
WMD-group/TrapLimitedConversion
cf652e7aa0ea5e8b2162c2e5ffedec037c1ff705
[ "MIT" ]
3
2021-05-04T13:38:17.000Z
2021-07-18T15:15:57.000Z
wannier90-absorption/wannier_alpha.py
WMD-group/TrapLimitedConversion
cf652e7aa0ea5e8b2162c2e5ffedec037c1ff705
[ "MIT" ]
null
null
null
wannier90-absorption/wannier_alpha.py
WMD-group/TrapLimitedConversion
cf652e7aa0ea5e8b2162c2e5ffedec037c1ff705
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import numpy as np import pandas as pd import matplotlib.pyplot as plt eV2Icm = 8.065E3 hbar = 6.582119569E-16 # [eV*s] # sigma_si2cgs = 9E11 # [S/cm] -> [1/sec] # 1/(4pi * 8.8541878128E-12) [F/m] vac_permittivity = 8.8541878128E-12 c = 29979245800 def read_kubo(filename = 'wannier90-kubo_...
30.408602
159
0.616513
7930b6f14c8b0fe2a50a53be26aac6a58d967fc4
1,167
py
Python
extensions/iocompython/tests/recive_camera_data.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
1
2020-04-28T23:25:50.000Z
2020-04-28T23:25:50.000Z
extensions/iocompython/tests/recive_camera_data.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
11
2020-01-30T16:27:24.000Z
2020-08-09T06:25:06.000Z
extensions/iocompython/tests/recive_camera_data.py
iocafe/iocom
9762b78fa1591994c74ed1fc6fe23b9ef44e0dff
[ "MIT" ]
null
null
null
# Module: receive-camera-data.py # Pull data from IO device's (gina1) camera trough a server (frank, etc) # This example logs into "cafenet" device network run by server in local computer. # User name "root" and password "pass" identify the client to server. # The camtest must be accepted as valid at server (this can b...
34.323529
99
0.709512
7930e5de47e53aa22af3978529e91a7419734fd3
484
py
Python
python/13_File_IO/10_manipulate_pathnames.py
ihaolin/script-repo
16fef25dd613dcfaf71f59d783932c5a4bdf9f19
[ "MIT" ]
null
null
null
python/13_File_IO/10_manipulate_pathnames.py
ihaolin/script-repo
16fef25dd613dcfaf71f59d783932c5a4bdf9f19
[ "MIT" ]
null
null
null
python/13_File_IO/10_manipulate_pathnames.py
ihaolin/script-repo
16fef25dd613dcfaf71f59d783932c5a4bdf9f19
[ "MIT" ]
null
null
null
import os path = '/Users/beazley/Data/data.csv' # Get the last component of the path print(os.path.basename(path)) # Get the directory name print(os.path.dirname(path)) # Join path components together print(os.path.join('tmp', 'data', os.path.basename(path))) # Expand the user's home directory path = '~/Data...
30.25
59
0.725207
7930fef97dff831061e69c151f50aa56d4116b69
188
py
Python
src/compas_fab/sensors/exceptions.py
yijiangh/compas_fab
d4e8e630d4daeb8981200456f2ef6b6a09ac88a8
[ "MIT" ]
1
2019-08-15T17:34:43.000Z
2019-08-15T17:34:43.000Z
src/compas_fab/sensors/exceptions.py
yijiangh/compas_fab
d4e8e630d4daeb8981200456f2ef6b6a09ac88a8
[ "MIT" ]
3
2019-07-30T13:50:51.000Z
2019-07-30T14:27:27.000Z
src/compas_fab/sensors/exceptions.py
yijiangh/compas_fab
d4e8e630d4daeb8981200456f2ef6b6a09ac88a8
[ "MIT" ]
null
null
null
class ProtocolError(IOError): """Exception raised for protocol errors.""" pass class SensorTimeoutError(Exception): """Exception raised for sensor timeout errors.""" pass
23.5
53
0.712766
793126b128546bb47f9364916f7fe881f4c569f5
1,726
py
Python
tests/nn/data/test_dataset_ops.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/nn/data/test_dataset_ops.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/nn/data/test_dataset_ops.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
import numpy as np import tensorflow as tf from sleap.nn.system import use_cpu_only; use_cpu_only() # hide GPUs for test from sleap.nn.data import dataset_ops def test_batcher(): ds = tf.data.Dataset.from_tensors({"a": tf.reshape(tf.range(3 * 2), [3, 2])}) ds = ds.unbatch() batcher = dataset_ops.Batche...
37.521739
85
0.655852
793148102e19819edf30268efc4a6be2a54ebb40
1,378
py
Python
test/scripts/test_env.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
test/scripts/test_env.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
test/scripts/test_env.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
# import test_enterprise as enterprise # import test_device as device # import test_device_group as devicegroup # import test_application as application # import test_device_commands as device_commands # import test_group_commands as group_commands # import test_token_info as token_info # Enterprise # enterprise.test...
27.019608
54
0.852685
79316c5b08c1c6294582698fb9a8b815bceec60b
283
py
Python
terrascript/googleworkspace/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/googleworkspace/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/googleworkspace/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/googleworkspace/__init__.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class googleworkspace(terrascript.Provider): pass
18.866667
79
0.784452