blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
721
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
5
91
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
321 values
visit_date
timestamp[ns]date
2016-08-12 09:31:09
2023-09-06 10:45:07
revision_date
timestamp[ns]date
2010-09-28 14:01:40
2023-09-06 06:22:19
committer_date
timestamp[ns]date
2010-09-28 14:01:40
2023-09-06 06:22:19
github_id
int64
426
681M
star_events_count
int64
101
243k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[ns]date
2012-06-28 18:51:49
2023-09-14 21:59:16
gha_created_at
timestamp[ns]date
2008-02-11 22:55:26
2023-08-10 11:14:58
gha_language
stringclasses
147 values
src_encoding
stringclasses
26 values
language
stringclasses
2 values
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10.2M
extension
stringclasses
115 values
filename
stringlengths
3
113
content
stringlengths
6
10.2M
cb2478a5255dc00006b64d19687fcc61e6587261
5e601244fbf32ee5190fb5210a0cd334473a0abe
/functions/performance/concurrence/celery/celeryOps.py
e487e0e0227ad1661ff2af5467d499341f1a2e42
[]
no_license
DingGuodong/LinuxBashShellScriptForOps
69ebe45cf3f92b741a078b9b78c2600328ce9b9e
b2ca1e4c870626dd078d447e2d1479b08602bdf6
refs/heads/master
2023-08-21T20:53:40.617397
2023-07-17T01:41:05
2023-07-17T01:41:05
57,015,255
453
343
null
2023-02-16T01:29:23
2016-04-25T05:55:28
Python
UTF-8
Python
false
false
650
py
celeryOps.py
#!/usr/bin/python # encoding: utf-8 # -*- coding: utf8 -*- """ Created by PyCharm. File: LinuxBashShellScriptForOps:celeryOps.py User: Guodong Create Date: 2017/1/13 Create Time: 18:14 """ from celery import Celery import time # redis://:password@hostname:port/db_number # tr...
fa3039c1bda18ec361c6feeecae8a3d560a53673
e3eecf0f0cc96bc983cb16126001ce727e8a9e67
/Lilygo-7000g/MicroPython_LoBo/sd.py
fa8b57c8dbdcc18e544a84de7a3870279096c8df
[]
no_license
mudmin/AnotherMaker
f18137b838c43f9a93319bd94a676624d612381f
f159ff3a6aefe54d38ca2923356e14346070a2f1
refs/heads/master
2023-09-04T04:58:12.002916
2023-08-23T19:26:03
2023-08-23T19:26:03
202,879,733
179
60
null
2022-04-09T19:55:31
2019-08-17T12:43:19
C++
UTF-8
Python
false
false
273
py
sd.py
import os import uos import machine # The SD SPI pin of the firmware compiled by lobo is not the pin used by T-SIM7000, # so here we use uos to initialize the SD card uos.sdconfig(uos.SDMODE_SPI, clk=14, mosi=15, miso=2, cs=13, maxspeed=16) os.mountsd() os.listdir('/sd')
18ab42dcf92cf65ab02d0242d77368f3ab7c8f2c
af101b467134e10270bb72d02f41f07daa7f57d8
/tests/test_datasets/test_transforms/test_formatting.py
b1e146c20491d6327857a3843eb6fa97c4fcd65d
[ "Apache-2.0" ]
permissive
open-mmlab/mmagic
4d864853417db300de4dfe7e83ce380fd1557a23
a382f143c0fd20d227e1e5524831ba26a568190d
refs/heads/main
2023-08-31T14:40:24.936423
2023-08-30T05:05:56
2023-08-30T05:05:56
203,999,962
1,370
192
Apache-2.0
2023-09-14T11:39:18
2019-08-23T13:04:29
Jupyter Notebook
UTF-8
Python
false
false
3,948
py
test_formatting.py
# Copyright (c) OpenMMLab. All rights reserved. import numpy as np import torch from mmcv.transforms import to_tensor from mmagic.datasets.transforms import PackInputs from mmagic.structures.data_sample import DataSample def assert_tensor_equal(img, ref_img, ratio_thr=0.999): """Check if img and ref_img are matc...
b5beae7924a7fa4fc87ec4a356557e073fda339c
c0f0cab1645b4770366bddcb31f8807ea6b3dff3
/rexmex/metrics/coverage.py
f4a14197d74bde4b6c6b8e991734c8c32cdda093
[ "Apache-2.0" ]
permissive
AstraZeneca/rexmex
376eab25082cbe719a27681bfa4a1dd359b58860
9a4538f8529a6b022ad848a1c47ed21b034f7171
refs/heads/main
2023-06-07T22:30:04.684295
2023-06-02T13:57:57
2023-06-02T13:57:57
420,948,708
266
25
null
2023-08-22T07:11:27
2021-10-25T08:56:25
Python
UTF-8
Python
false
false
2,916
py
coverage.py
from typing import List, Tuple, Union import numpy as np def user_coverage( possible_users_items: Tuple[List[Union[int, str]], List[Union[int, str]]], recommendations: List[Tuple[Union[int, str], Union[int, str]]], ) -> float: """ Calculates the coverage value for users in possible_users_items[0] giv...
28eb5865ffec93eb098e7bd7752444abd134617e
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/corehq/apps/sso/tests/generator.py
afed5371241aceb44cf4e828aefe605cb67214d8
[ "BSD-3-Clause" ]
permissive
dimagi/commcare-hq
a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b
e7391ddae1af1dbf118211ecb52c83fc508aa656
refs/heads/master
2023-08-16T22:38:27.853437
2023-08-16T19:07:19
2023-08-16T19:07:19
247,278
499
203
BSD-3-Clause
2023-09-14T19:03:24
2009-07-09T17:00:07
Python
UTF-8
Python
false
false
4,331
py
generator.py
from django.core.files.uploadedfile import SimpleUploadedFile from django_prbac.models import Role from django.contrib.sessions.middleware import SessionMiddleware from corehq.apps.accounting.models import ( SoftwarePlan, SoftwarePlanEdition, SoftwarePlanVisibility, SoftwareProductRate, SoftwarePl...
9021b6261675932351a66e9aef6d88f240751c8d
704976ea552111c6a5af9cd7cb62b9d9abaf3996
/rpython/jit/metainterp/test/test_fficall.py
01c44df61676ed9997ba934d0b23d5435250a811
[ "BSD-3-Clause" ]
permissive
mesalock-linux/mesapy
4f02c5819ce7f2f6e249d34840f1aa097577645d
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
refs/heads/mesapy2.7
2023-08-16T21:33:02.239581
2019-08-13T10:29:43
2019-08-13T18:06:45
136,080,721
396
33
NOASSERTION
2020-04-01T03:05:18
2018-06-04T20:45:17
Python
UTF-8
Python
false
false
15,855
py
test_fficall.py
import py from _pytest.monkeypatch import monkeypatch import sys import ctypes, math from rpython.rtyper.lltypesystem import lltype, rffi from rpython.rtyper.annlowlevel import llhelper from rpython.jit.metainterp.test.support import LLJitMixin from rpython.jit.codewriter.longlong import is_longlong, is_64_bit from rpy...
0ff27f1f00a593df49290302bfdfb6cd82638db0
45de7d905486934629730945619f49281ad19359
/xlsxwriter/test/workbook/test_write_sheet.py
d8206524f9deb1bf254f917ddf884200c78d21a8
[ "BSD-2-Clause" ]
permissive
jmcnamara/XlsxWriter
599e1d225d698120ef931a776a9d93a6f60186ed
ab13807a1be68652ffc512ae6f5791d113b94ee1
refs/heads/main
2023-09-04T04:21:04.559742
2023-08-31T19:30:52
2023-08-31T19:30:52
7,433,211
3,251
712
BSD-2-Clause
2023-08-28T18:52:14
2013-01-04T01:07:06
Python
UTF-8
Python
false
false
1,419
py
test_write_sheet.py
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2023, John McNamara, jmcnamara@cpan.org # import unittest from io import StringIO from ...workbook import Workbook class TestWriteSheet(unittest.Te...
e9e08e5ebc3d9376a9bc1b6c43f13140a394b625
2337351b228818e41be3002bd38f68f77c2aa074
/sa/interfaces/igetlldpneighbors.py
418b3dda58bfcf5826a9fd817ad9556585a31247
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
3,004
py
igetlldpneighbors.py
# --------------------------------------------------------------------- # IGetLLDPNeighbors # --------------------------------------------------------------------- # Copyright (C) 2007-2018 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # NOC Modules f...
2a13526e60492b8ba021391cecdfac43e9a813de
6b551bec528a1d6544201d3c6d86835e885343b5
/deep_privacy/dataset/transforms/transforms.py
942bfa76c214116909e8ecef081e30c3fc9f2fd8
[ "MIT", "Apache-2.0" ]
permissive
hukkelas/DeepPrivacy
9471c8e9389828aa09330905081205b061161d81
5ee3f1b0608f03ac54d5694b6421f6132cb63f0e
refs/heads/master
2023-08-16T00:41:02.366235
2023-03-28T06:23:34
2023-03-28T06:23:34
206,106,232
1,288
194
MIT
2021-08-18T08:21:33
2019-09-03T15:08:27
Python
UTF-8
Python
false
false
3,576
py
transforms.py
import numpy as np import albumentations import cv2 from .build import TRANSFORM_REGISTRY @TRANSFORM_REGISTRY.register_module class RandomFlip: def __init__(self, flip_ratio=None, **kwargs): self.flip_ratio = flip_ratio if self.flip_ratio is None: self.flip_ratio = 0.5 assert ...
8d3c513b4ff4df80b707739ab3469b0ab3c5ffd0
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/corehq/apps/translations/migrations/0005_auto_20190405_1747.py
7487792986d8aaf409cbb285b06007ce91f557b3
[ "BSD-3-Clause" ]
permissive
dimagi/commcare-hq
a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b
e7391ddae1af1dbf118211ecb52c83fc508aa656
refs/heads/master
2023-08-16T22:38:27.853437
2023-08-16T19:07:19
2023-08-16T19:07:19
247,278
499
203
BSD-3-Clause
2023-09-14T19:03:24
2009-07-09T17:00:07
Python
UTF-8
Python
false
false
976
py
0005_auto_20190405_1747.py
# flake8: noqa # Generated by Django 1.11.20 on 2019-04-05 17:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('translations', '0004_auto_20190318_1905'), ] operations = [ migrations.AlterField( model_name='transifexblackli...
5fed9ca29c795c2303f2f1af2e6ad14767b877c3
71fb04f723b46a1bf45295be239bcec25e07f98c
/keras_cv/losses/smooth_l1.py
acdb705a3e71c0ddf816d827c42ba543db5da3f1
[ "Apache-2.0" ]
permissive
keras-team/keras-cv
9bca4479474e853ec3a1c541b8be20fea2447a1a
e83f229f1b7b847cd712d5cd4810097d3e06d14e
refs/heads/master
2023-08-31T10:22:08.406394
2023-08-30T20:24:57
2023-08-30T20:24:57
265,079,853
818
287
NOASSERTION
2023-09-12T16:49:01
2020-05-18T22:39:21
Python
UTF-8
Python
false
false
1,913
py
smooth_l1.py
# Copyright 2022 The KerasCV 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
c7225d21c405653cdc079e433e8b1a316e60406f
dab10c721000fd9eb38676d6b2730f155eedd54e
/recirq/qaoa/gates_and_compilation_test.py
edff2155932a40c091a426f3a7c4babc778d6d26
[ "Apache-2.0" ]
permissive
quantumlib/ReCirq
f45e55e432f2e29fb8f2fe35a3d436a629219e86
d021621a3837693ae9c5fdc5c05058de20fba314
refs/heads/master
2023-09-03T19:35:55.281836
2023-09-01T01:12:40
2023-09-01T01:12:40
246,951,354
260
116
Apache-2.0
2023-09-09T00:41:35
2020-03-12T23:51:33
Python
UTF-8
Python
false
false
15,119
py
gates_and_compilation_test.py
import random import networkx as nx import numpy as np import pytest import cirq from cirq.testing import random_special_unitary from recirq.qaoa.circuit_structure import validate_well_structured from recirq.qaoa.gates_and_compilation import ZZSwap, compile_problem_unitary_to_zzswap, \ ProblemUnitary, DriverUnita...
8123caffa83dee1a71a6441d9f93192eefb246ed
091a6200be74bf6577c86f623665bcc24e16b02b
/Adafruit_Proximity_Trinkey/Proximity_Spacebar_Game/code.py
f9a5b893fa29d4d5313866c4dc273e39b2cfb1a1
[ "MIT" ]
permissive
adafruit/Adafruit_Learning_System_Guides
b5f7bce40a16da64e7a79d4b39de032f2cca41d4
5eaa7a15a437c533b89f359a25983e24bb6b5438
refs/heads/main
2023-09-05T18:31:41.621956
2023-09-05T15:36:09
2023-09-05T15:36:09
105,065,494
937
937
MIT
2023-09-12T18:48:53
2017-09-27T20:22:44
C
UTF-8
Python
false
false
1,170
py
code.py
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries # # SPDX-License-Identifier: MIT """ Proximity spacebar dino game example. Sends a space when you move your hand close to the proximity sensor and turns the LEDs on to let you know you're in the right range. For use with the Chrome Dino game, reachab...
3431cc01f18d44f40f6081820f2fab665b70f3dd
e986b7650d2317f740d65f44b19e663cb646d85e
/jdaviz/core/region_translators.py
2522b4ab17a7703ef93fcf26eeff10f599928c7c
[ "BSD-3-Clause" ]
permissive
spacetelescope/jdaviz
a223230d2296f7fdee17a43ae1a4bee45452ec13
17a864ed7d64cece18fbc29f3561c137e6bf0942
refs/heads/main
2023-08-17T05:59:55.109052
2023-08-15T19:46:49
2023-08-15T19:46:49
185,452,341
105
70
BSD-3-Clause
2023-09-14T15:20:16
2019-05-07T17:54:06
Python
UTF-8
Python
false
false
14,300
py
region_translators.py
"""The ``region_translators`` module houses translations of :ref:`regions:shapes` to :ref:`photutils:photutils-aperture` apertures. """ from astropy import units as u from astropy.coordinates import Angle from glue.core.roi import CircularROI, EllipticalROI, RectangularROI, CircularAnnulusROI from photutils.apert...
ca84df779ce21282964a520ea146169677e280d1
753cd066a9bd26b6c37c8d53a86c7a9c659ec18c
/gnn/ogb_lsc_pcqm4mv2/tensorflow2/custom_callbacks.py
600f1bbe57ed4284cbabb7c06676158279060e6b
[ "MIT", "CC-BY-4.0", "Apache-2.0" ]
permissive
graphcore/examples
ac872015808ed2a913d4d7bf0d63202ce15ebbae
e2f834dd60e7939672c1795b4ac62e89ad0bca49
refs/heads/master
2023-08-05T02:08:12.341836
2023-07-27T11:13:10
2023-07-27T11:13:10
143,977,106
311
80
MIT
2023-09-11T16:42:56
2018-08-08T07:29:17
Python
UTF-8
Python
false
false
1,601
py
custom_callbacks.py
# Copyright (c) 2022 Graphcore Ltd. All rights reserved. import logging import os import tensorflow as tf import wandb class CheckpointCallback(tf.keras.callbacks.ModelCheckpoint): def __init__( self, use_wandb=False, upload_to_wandb=False, save_checkpoints_locally=False, total_epochs=None, *args, **kwar...
49b42ae18b7a677f6133a3ad9f75b369e97a2359
e90bf4b372da78ceec15282d060b48d18ba8d4e9
/tests/mounts/test_manager.py
9341a26122de162d0c057aebcdfafd09d7a56ad2
[ "Apache-2.0" ]
permissive
home-assistant/supervisor
67f2e1755ff5fbf7cf2084351e1c32c6995274e0
4838b280adafed0997f32e021274b531178386cd
refs/heads/main
2023-08-31T22:51:25.949277
2023-08-31T08:01:42
2023-08-31T08:01:42
84,926,758
928
477
Apache-2.0
2023-09-14T17:11:27
2017-03-14T08:54:15
Python
UTF-8
Python
false
false
22,379
py
test_manager.py
"""Tests for mount manager.""" import json import os from pathlib import Path from dbus_fast import DBusError, ErrorType, Variant from dbus_fast.aio.message_bus import MessageBus import pytest from supervisor.coresys import CoreSys from supervisor.dbus.const import UnitActiveState from supervisor.exceptions import (...
0e7f3a1bc8913af6168723ea54810c1eed3c0a7c
e627710c2c3bf663b50b762ade435b4cae9800a8
/code/patrol/src/shapes.py
5b346a77173112baacc5b2e9300fad9b3a2e9657
[ "Apache-2.0" ]
permissive
osrf/rosbook
9996e007f02f633b7d820fc300896699e59f8fb5
92c247447676db4cc2aed4fdd02832ed1355c4d4
refs/heads/master
2023-08-09T06:13:02.504080
2023-07-24T14:28:36
2023-07-24T14:28:36
44,305,519
512
276
Apache-2.0
2023-07-24T14:28:37
2015-10-15T08:57:17
Python
UTF-8
Python
false
false
2,028
py
shapes.py
# BEGIN ALL #!/usr/bin/env python import rospy from smach import State,StateMachine from time import sleep class Drive(State): def __init__(self, distance): State.__init__(self, outcomes=['success']) self.distance = distance def execute(self, userdata): print 'Driving', self.distanc...
061f50e05f60f8713f1bb9a703019f676ecf48f3
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayUserCertdocQueryResponse.py
5244264cb91344aa90cce32dc376ecd85e7f3ccc
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
5,449
py
AlipayUserCertdocQueryResponse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.AlipayUserCertDocDrivingLicense import AlipayUserCertDocDrivingLicense from alipay.aop.api.domain.AlipayUserCertDocDrivingLicense import AlipayUserCertDocDrivingLicense...
3efde495960557be1139c1b8bc4fe7f2431b78ef
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/recollect_waste/config_flow.py
c3e770cc4583fe9399eb4c0024f0769e40eea550
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
3,139
py
config_flow.py
"""Config flow for ReCollect Waste integration.""" from __future__ import annotations from typing import Any from aiorecollect.client import Client from aiorecollect.errors import RecollectError import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_FRIENDLY_NAME from ...
cd3ae2989d1bc389fbb1a64d818746f179d352a1
790856ce4e4f38e67875fd9e0b337ab2b714268e
/benchmarks/isoneutral_mixing/isoneutral_numba.py
cfbe9244bc2fbd3b1d6eff74897bbadea1fc8d39
[ "Unlicense" ]
permissive
dionhaefner/pyhpc-benchmarks
43dec379e35d7f869e75886af95547838f503e6d
4ae8685768a012a8af76b19da1fa551780b89373
refs/heads/master
2023-02-05T08:30:08.785398
2023-01-30T11:36:44
2023-01-30T11:36:44
212,333,820
279
29
Unlicense
2023-01-10T12:37:26
2019-10-02T12:22:16
Python
UTF-8
Python
false
false
9,047
py
isoneutral_numba.py
import numpy as np import numba as nb @nb.jit(nopython=True, fastmath=True) def get_drhodT(salt, temp, p): rho0 = 1024.0 z0 = 0.0 theta0 = 283.0 - 273.15 grav = 9.81 betaT = 1.67e-4 betaTs = 1e-5 gammas = 1.1e-8 zz = -p - z0 thetas = temp - theta0 return -(betaTs * thetas + be...
05b8d0d5f2c971024e3c6148f9bd9ff8de7f193e
c2d48caa5db7e746a38beca625406fcf47379d3c
/src/olympia/constants/reviewers.py
b553f26cb8ed311767ea14b9b004dad688f80f5e
[ "CC-BY-4.0", "CC-BY-NC-4.0", "CC-BY-ND-3.0", "MIT", "CC-BY-SA-3.0", "LGPL-3.0-only", "MPL-2.0", "CC-BY-NC-ND-4.0", "MPL-1.1", "BSD-3-Clause", "CC-BY-NC-SA-3.0", "GPL-3.0-only", "GPL-2.0-only", "LGPL-2.0-only" ]
permissive
mozilla/addons-server
1f6269ec0a4aa5a0142a5f81978ef674daf213a7
e0f043bca8a64478e2ba62f877c9dc28620be22f
refs/heads/master
2023-09-01T09:34:41.867534
2023-09-01T07:21:22
2023-09-01T07:21:22
16,416,867
920
590
BSD-3-Clause
2023-09-14T16:15:01
2014-01-31T18:44:15
Python
UTF-8
Python
false
false
2,057
py
reviewers.py
from django.utils.translation import gettext_lazy as _ from .base import ADDON_ANY, ADDON_EXTENSION, ADDON_STATICTHEME # Reviewer Tools REVIEWER_VIEWING_INTERVAL = 8 # How often we ping for "who's watching?" REVIEWER_REVIEW_LOCK_LIMIT = 3 # How many pages can a reviewer "watch" # Default delayed rejection period i...
d3ffe1e667fcdd38fce7283e08144dc24040a276
61004e474b7b2ad0071c16766f0f7874f04f9466
/examples/cloudml-collaborative-filtering/preprocessing/preprocess_test.py
cfbd14458174dd506cfd85df9b3547be64ba6a75
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/professional-services
eb79751efae765a8c691a745e520f44f51bd715c
0f51121b945bd74c7f667e74e8861fceda87565c
refs/heads/main
2023-09-05T02:57:33.328973
2023-08-30T14:40:30
2023-08-30T14:40:30
91,730,359
2,626
1,381
Apache-2.0
2023-09-14T20:13:42
2017-05-18T19:29:27
Python
UTF-8
Python
false
false
2,363
py
preprocess_test.py
# Copyright 2019 Google Inc. 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 applicable law or ...
cd345172f704f72c9fb22c2612476aed88cad4bf
11cd362cdd78c2fc48042ed203614b201ac94aa6
/desktop/core/ext-py3/pysaml2-7.3.1/src/saml2/response.py
2bc147dbba953a4f9cabd94e9532667dc7dc891d
[ "Apache-2.0", "CC-BY-3.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "ZPL-2.0", "Unlicense", "LGPL-3.0-only", "CC0-1.0", "LicenseRef-scancode-other-permissive", "CNRI-Python", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-or-later", "Python-...
permissive
cloudera/hue
b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908
dccb9467675c67b9c3399fc76c5de6d31bfb8255
refs/heads/master
2023-08-31T06:49:25.724501
2023-08-28T20:45:00
2023-08-28T20:45:00
732,593
5,655
2,244
Apache-2.0
2023-09-14T03:05:41
2010-06-21T19:46:51
JavaScript
UTF-8
Python
false
false
48,112
py
response.py
#!/usr/bin/env python # import calendar import logging from saml2 import SAMLError from saml2 import class_name from saml2 import extension_elements_to_elements from saml2 import saml from saml2 import samlp from saml2 import time_util from saml2 import xmldsig as ds from saml2 import xmlenc as xenc from saml2.attribu...
955d7579fb96e237df5f24275d521265d79640f3
84724b34b3f1e84dc53cbca5f3660590dbc34a9f
/nova/notifications/objects/image.py
01c86d1cb04e2ea7e4424457549d351393975df2
[ "Apache-2.0" ]
permissive
openstack/nova
2c24b64e3677595611715bae6dda14edd3f90a24
065c5906d2da3e2bb6eeb3a7a15d4cd8d98b35e9
refs/heads/master
2023-08-28T15:10:05.126314
2023-08-25T20:31:27
2023-08-25T20:31:27
790,031
2,287
2,320
Apache-2.0
2023-07-08T02:10:29
2010-07-22T02:04:27
Python
UTF-8
Python
false
false
6,465
py
image.py
# Copyright 2018 NTT 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...
27ad9fc1419ef42e51fc75b3093e628a89f56489
943fa4169d201d054f3d035007181bbb78429752
/tinydb/storages.py
d5a2db7804444a430534219838e55fcfeee7d305
[ "MIT" ]
permissive
msiemens/tinydb
9b10563b0dc925470313f5c4d0713328b0e1b365
3dc6a952ef8700706909bf60a1b15cf21af47608
refs/heads/master
2023-08-24T09:39:56.747943
2023-07-24T18:53:19
2023-07-24T18:53:19
11,380,094
6,284
675
MIT
2023-09-03T18:56:40
2013-07-12T23:31:13
Python
UTF-8
Python
false
false
5,084
py
storages.py
""" Contains the :class:`base class <tinydb.storages.Storage>` for storages and implementations. """ import io import json import os import warnings from abc import ABC, abstractmethod from typing import Dict, Any, Optional __all__ = ('Storage', 'JSONStorage', 'MemoryStorage') def touch(path: str, create_dirs: bool...
8a933587db5b47b66cf2b289bfecc66f5e26c024
0f85c7bfd4f29bcd856adc316cecc097fda744dc
/tests/test_loaders.py
f4122d2f721c44629e8484ea38b1870affe8bcba
[ "MIT" ]
permissive
yandex/yandex-taxi-testsuite
260f46731c9888a9efcc3372c3d92329f2fb4d56
8befda8c13ef58d83b2ea7d0444e34de0f67ac7f
refs/heads/develop
2023-08-31T23:28:31.874786
2023-08-14T16:00:53
2023-08-14T16:00:53
244,937,107
150
41
MIT
2023-09-13T16:34:07
2020-03-04T15:35:09
Python
UTF-8
Python
false
false
858
py
test_loaders.py
import pytest from testsuite.plugins import common def test_when_loading_invalid_yaml_then_error_specifies_file(load_yaml): with pytest.raises(common.LoadYamlError) as err: load_yaml('invalid.yaml') assert 'invalid.yaml' in str(err) def test_when_yaml_file_not_found_then_error_is_specific(load_yaml...
8d3d28e50fea7030c82d5ffc5afc8c4cd3bd6cf3
f5de163623c0e1f2207104a69fea499b2d4b3948
/nikola/data/themes/base/messages/messages_da.py
b070db5680c966e6307b4f213a96f4b0b028f37c
[ "MIT" ]
permissive
getnikola/nikola
cbc233706ebd52fe76bc14b2ff3c5a7c27678275
2b10e9952bac5a1119e6845c7a2c28273aca9775
refs/heads/master
2023-09-03T12:52:22.617757
2023-08-05T19:24:18
2023-08-05T19:24:18
4,025,121
2,142
467
MIT
2023-09-13T12:38:11
2012-04-14T13:53:22
Python
UTF-8
Python
false
false
1,665
py
messages_da.py
# -*- encoding:utf-8 -*- """Autogenerated file, do not edit. Submit translations on Transifex.""" MESSAGES = { "%d min remaining to read": "%d min. tilbage at læse", "(active)": "", "Also available in:": "Fås også i:", "Archive": "Arkiv", "Atom feed": "", "Authors": "", "Categories": "Kateg...
b86c3a2efd19904e9f8b0400df28f8d35226e6b4
e72db16e9747386afd01edd1dd36d9589a3f71ef
/src/test/ex_libpmem2/TESTS.py
7b4bbd50baa824933f91d959bf8107c4104e60f1
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
pmem/pmdk
5e49feee8017574340db2a0f9b4e2eab99f8581c
ccadb16227bddea1bdcc518bd8f298d551b2baad
refs/heads/master
2023-08-31T02:28:06.884934
2023-08-30T14:52:25
2023-08-30T14:52:25
23,637,153
1,017
402
NOASSERTION
2023-09-07T11:52:42
2014-09-03T20:55:23
C
UTF-8
Python
false
false
4,519
py
TESTS.py
#!../env.py # SPDX-License-Identifier: BSD-3-Clause # Copyright 2019-2023, Intel Corporation # import futils import testframework as t from testframework import granularity as g @t.require_build(['debug', 'nondebug']) class EX_LIBPMEM2(t.Test): test_type = t.Medium file_size = 1 * t.MiB offset = str(97 *...
dff51987130f11100e3dfbb121e3817b7230c026
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/studio/micro-services/SREWorks/saas/aiops/api/aiops-server/models/redis_conn.py
8c7f3c17d99d39d1b576f99e44d5c44d93a8ad52
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "EPL-1.0", "LGPL-2.0-or-later", "BSD-3-Clause", "MIT", "MPL-2.0", "GPL-2.0-only", "JSON" ]
permissive
alldatacenter/alldata
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
refs/heads/master
2023-08-05T07:32:25.442740
2023-08-03T13:17:24
2023-08-03T13:17:24
213,321,771
774
250
Apache-2.0
2023-09-06T17:35:32
2019-10-07T07:36:18
null
UTF-8
Python
false
false
1,261
py
redis_conn.py
#!/usr/bin/env python # encoding: utf-8 """ """ __author__ = 'sreworks' import redis import threading from common.config import get_config # 同步锁 def synchronous_lock(func): def wrapper(*args, **kwargs): with threading.Lock(): return func(*args, **kwargs) return wrapper ...
1a2939b0e69cc76103378f069cc3021fafcbdf5d
bb0e88e72382e27c48222d1e7a308476794740fe
/core/tests/base_payload.py
044c82d20afef8d8591f9945b30559d61755b80c
[ "BSD-3-Clause" ]
permissive
facebookincubator/OnlineSchemaChange
b6b0e62618a54bc5a7058a8742a9c5eef395d22a
99c27961ec3a87c7d1bb650107e79971ae8c465f
refs/heads/main
2023-09-01T21:09:11.494282
2023-09-01T05:53:07
2023-09-01T05:53:07
79,285,486
998
167
NOASSERTION
2023-01-24T03:10:54
2017-01-18T00:06:19
Python
UTF-8
Python
false
false
1,439
py
base_payload.py
#!/usr/bin/env python3 """ Copyright (c) 2017-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. """ import unittest from unittest.mock import Mock from ..lib.error import OSCError from ..lib.paylo...
59f0d7c0b3e1852207749d81b900c5791853a83c
6416b746ee71d897789eab1e450000831674dbd0
/src/otx/hpo/utils.py
886cfb44853902831f0ebff25f92c02e3cc5d2df
[ "Apache-2.0" ]
permissive
openvinotoolkit/training_extensions
c921f83ad52311af96ff45ae0b88d0aecddd855b
80454808b38727e358e8b880043eeac0f18152fb
refs/heads/develop
2023-08-31T06:29:07.229339
2023-08-31T01:57:26
2023-08-31T01:57:26
154,843,614
397
230
Apache-2.0
2023-09-14T06:17:01
2018-10-26T14:02:29
Python
UTF-8
Python
false
false
3,194
py
utils.py
"""Collections of Utils for HPO.""" # Copyright (C) 2022 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 ...
0c56229721e086a94a6a283720f712846f77d71a
307d3837d31f9e3728af2b62ca51ebf63fe6ec6b
/hall_of_fame/lysuk96/Week12/12_BOJ_전설의JBNU.py
fefc81badf9cd6eeb524d0ce2d23038e757f5847
[]
no_license
ellynhan/challenge100-codingtest-study
905043497d154b8a7333ca536e536d013f6e7454
bcdc6d04f13b12ba80b42e066f9d244d7c2cc698
refs/heads/master
2023-09-01T14:10:13.481013
2023-08-27T14:38:52
2023-08-27T14:38:52
401,561,230
162
176
null
2023-09-09T14:56:25
2021-08-31T03:30:36
C++
UTF-8
Python
false
false
1,310
py
12_BOJ_전설의JBNU.py
from collections import defaultdict from bisect import insort,bisect_right # def is_pruning(a, b): # if abs(b - a) <= K: # return True # return False def find(x): idx = bisect_right(keys, x) if idx == 0: right = keys[idx] if x - right <= K: return right elif idx...
d6a5c0240576f85e4dd4de8316e903c649e109f0
2337351b228818e41be3002bd38f68f77c2aa074
/core/interface/loader.py
fdf9e0050a7cd8031cf510e8518f9f38ec5b48d1
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
4,266
py
loader.py
# ---------------------------------------------------------------------- # Interface loader # ---------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # Python modu...
ebd7518565c265a1dd51e4cc620cd939980e5381
6793f3b093478fdde550d8669b9b955081af5e0e
/nbconvert/exporters/slides.py
dacc2aaba0490282e4b0b6cc3230f970aafe80e0
[ "BSD-3-Clause" ]
permissive
jupyter/nbconvert
0afe110c4ec39b68661c601f8f3b20fd21a9ba13
51c6e0a7d40918366e2a68c5ea471fd2c65722cb
refs/heads/main
2023-09-03T16:05:25.981152
2023-08-29T13:57:58
2023-08-29T13:57:58
33,653,617
1,645
654
BSD-3-Clause
2023-09-11T10:42:26
2015-04-09T06:58:23
Python
UTF-8
Python
false
false
6,465
py
slides.py
"""HTML slide show Exporter class""" # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. from copy import deepcopy from warnings import warn from traitlets import Bool, Unicode, default from nbconvert.preprocessors.base import Preprocessor from .html import HTMLExpo...
0e29461ac713de451279167415753c37e4a7c911
549270020f6c8724e2ef1b12e38d11b025579f8d
/recipes/google-cloud-cpp/2.x/components_2_12_0.py
943f3345fcb419584035458a0e79b127e7f4a37a
[ "MIT" ]
permissive
conan-io/conan-center-index
1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43
3b17e69bb4e5601a850b6e006e44775e690bac33
refs/heads/master
2023-08-31T11:34:45.403978
2023-08-31T11:13:23
2023-08-31T11:13:23
204,671,232
844
1,820
MIT
2023-09-14T21:22:42
2019-08-27T09:43:58
Python
UTF-8
Python
false
false
43,236
py
components_2_12_0.py
# Automatically generated by /usr/local/google/home/coryan/cci-develop/recipes/google-cloud-cpp/2.x/extract_dependencies.py DO NOT EDIT DEPENDENCIES = { "accessapproval_protos": ['api_annotations_protos', 'api_client_protos', 'api_field_behavior_protos', 'api_http_protos', 'api_launch_stage_protos', 'api_resource_p...
b1743b5c7b2847e1c95a6425cb14381e89bcb075
13800b7827598e76428a335559b7bf11867ec2f0
/python/ccxt/test/base/test_order.py
7ce6e8fd8186d58be90732e839084eca88597990
[ "MIT" ]
permissive
ccxt/ccxt
b40a0466f5c430a3c0c6026552ae697aa80ba6c6
e4065f6a490e6fc4dd7a72b375428b2faa570668
refs/heads/master
2023-09-04T03:41:29.787733
2023-09-03T19:25:57
2023-09-03T19:25:57
91,253,698
30,798
8,190
MIT
2023-09-14T21:59:09
2017-05-14T15:41:56
Python
UTF-8
Python
false
false
3,947
py
test_order.py
import os import sys root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) sys.path.append(root) # ---------------------------------------------------------------------------- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/...
0589600af033f28e6b1b4a7e5c6f7a9118de0898
67b4ea0c739de7ae48da9778f276d1d8cf486721
/src/pipgrip/libs/mixology/result.py
d79ce6dab670dd47c1749f3da113537f601384f3
[ "BSD-3-Clause" ]
permissive
ddelange/pipgrip
316c533b37497eddc2308fcd0a6478b39ae9d21d
cd66e71302d0b184597f573b3e4976bcbd1459f1
refs/heads/master
2023-08-24T15:15:36.579900
2023-08-12T20:22:11
2023-08-12T20:22:11
230,768,810
155
13
BSD-3-Clause
2023-09-02T07:09:29
2019-12-29T15:28:50
Python
UTF-8
Python
false
false
483
py
result.py
from typing import Any, Dict, Hashable class SolverResult: def __init__( self, decisions, attempted_solutions ): # type: (Dict[Hashable, Any], int) -> None self._decisions = decisions self._attempted_solutions = attempted_solutions @property def decisions(self): # type: () -...
25343cb1e8aef4d45a33cbb232bad2ab02c5a475
3196488df20871d5196e7a7224577c6bb345477e
/darwin/future/data_objects/release.py
bbd6562536a8ad496e953b2342a584bd0af610aa
[ "MIT" ]
permissive
v7labs/darwin-py
60360d94c12fc5170643588a2fa890981aeab075
3cc2d5299fb48d48aeac10e01f79f49e856e6967
refs/heads/master
2023-08-31T10:06:55.334381
2023-08-31T09:51:01
2023-08-31T09:51:01
192,462,056
110
36
MIT
2023-09-13T17:25:24
2019-06-18T03:58:27
Python
UTF-8
Python
false
false
680
py
release.py
from typing import List from pydantic import validator from darwin.future.data_objects import validators as darwin_validators from darwin.future.pydantic_base import DefaultDarwin class Release(DefaultDarwin): """A class to manage all the information around a release on the darwin platform, including validation...
4815acf4daf60552dd086ce669adf53c75c2eefb
4d8df3fd1c531ea93068b56218b6f9aa44fd898e
/test/fake_pebble.py
f35b1973cd5407250730bd8a623b2e865e1d636e
[ "Apache-2.0" ]
permissive
canonical/operator
f7adb02afe5209f1dd711a6b4c25bfaedacb2d02
c4e3266a6568ba310064ca8b9bff7adb89676224
refs/heads/main
2023-09-01T14:07:37.685404
2023-08-30T19:55:19
2023-08-30T19:55:19
212,098,176
226
109
Apache-2.0
2023-08-30T19:55:20
2019-10-01T13:06:11
Python
UTF-8
Python
false
false
5,746
py
fake_pebble.py
# Copyright 2021 Canonical Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
ac6b971d156d79cd16cd8a83751a92db4cdf07f0
88a39b8ec20b386400bd8b1d5fc1d5ad3314681d
/codalab/rest/worksheet_block_schemas.py
d570b812428c3cc3f8109aaa2297651af98ea1fe
[ "Apache-2.0" ]
permissive
codalab/codalab-worksheets
bb35681454a0d74903aaa7468e17303986793464
5be8cb3fa4b43c9e7e8f0a3b217644a7f0a39628
refs/heads/master
2023-08-18T10:16:01.766541
2023-08-06T20:02:30
2023-08-06T20:02:30
27,352,490
126
65
NOASSERTION
2023-09-14T14:54:07
2014-11-30T22:33:18
Python
UTF-8
Python
false
false
6,935
py
worksheet_block_schemas.py
""" Marshmallow schemas that represent worksheet block. Used for serializing resource dicts into JSON API documents, and vice-versa. The schemas also perform some basic validation. """ from marshmallow import Schema as PlainSchema, validate from marshmallow_jsonapi import fields # Enum that represents different modes...
e4920c8f2efd61ad5d05485f5ceb52ddb848fba9
6ffc81125d6bb5f8476f95b2334a27807b8290de
/scripts/giza/sample_and_filter_long_bitext.py
8d653c5aadfec511befd5bbf974cd951260b5731
[ "BSD-2-Clause", "Apache-2.0" ]
permissive
oaqa/FlexNeuART
4cb341ca3c3f94fa28a7cfd4aef5451de3a4a2cb
0bd3e06735ff705731fb6cee62d3486276beccdf
refs/heads/master
2023-09-01T00:19:33.980081
2023-05-26T19:19:30
2023-05-26T19:19:30
64,071,121
156
21
Apache-2.0
2023-09-10T01:27:05
2016-07-24T15:08:03
Java
UTF-8
Python
false
false
2,377
py
sample_and_filter_long_bitext.py
#!/usr/bin/env python # # Copyright 2014+ Carnegie Mellon University # # 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...
8010657d9f2b6412a52309c765616ea2fc554983
d1c2d00078520cd556f60b7213c27856f8b3460d
/sdks/python/apache_beam/examples/complete/game/user_score.py
564cea8c425c37f45a8d47f4848a2d762390114f
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-protobuf", "Apache-2.0", "Python-2.0" ]
permissive
apache/beam
ed11b9e043465c720659eac20ac71b5b171bfa88
6d5048e05087ea54abc889ce402ae2a0abb9252b
refs/heads/master
2023-09-04T07:41:07.002653
2023-09-01T23:01:05
2023-09-01T23:01:05
50,904,245
7,061
4,522
Apache-2.0
2023-09-14T21:43:38
2016-02-02T08:00:06
Java
UTF-8
Python
false
false
6,295
py
user_score.py
# # 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 us...
4a5621df47061d174bcb2e82181ecc5f6a43ef36
0e92203844a29b8c36d2c289ef0658204f80c127
/utils/Test_Rail.py
a3c11d37a08214b0afbd09b10a333d9429a0b40f
[ "MIT" ]
permissive
qxf2/qxf2-page-object-model
b61ae2bd77cb2e6b97db991707945779c6254224
17b9d6095b881c6e9f25f8a467d90fc4bb6cef91
refs/heads/master
2023-08-08T08:30:10.739019
2023-07-27T14:15:07
2023-07-27T14:15:07
77,039,202
263
197
MIT
2023-07-27T14:15:08
2016-12-21T09:50:23
Python
UTF-8
Python
false
false
9,150
py
Test_Rail.py
""" TestRail integration: * limited to what we need at this time * we assume TestRail operates in single suite mode i.e., the default, reccomended mode API reference: http://docs.gurock.com/testrail-api2/start """ import os,sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from utils i...
fc2b3550ee6c26d74c025ad8f68f7311a98f7c24
7860d9fba242d9bdcb7c06c32ee4064e4a7fa2f1
/litex_boards/platforms/hackaday_hadbadge.py
4602b3a47a1d22a57cacce08fe646b7e28175016
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
litex-hub/litex-boards
ef1f200fd6d34c96621f4efa094ede874f4c34ab
b92c96b3a445fde31037f593a40fe621f85cb58c
refs/heads/master
2023-09-03T15:09:11.198560
2023-08-30T15:22:11
2023-08-30T15:22:11
191,191,221
291
283
BSD-2-Clause
2023-09-03T20:32:58
2019-06-10T15:09:10
Python
UTF-8
Python
false
false
8,596
py
hackaday_hadbadge.py
# # This file is part of LiteX-Boards. # # Copyright (c) 2020 Michael Welling <mwelling@ieee.org> # Copyright (c) 2020 Sean Cross <sean@xobs.io> # Copyright (c) 2020 Drew Fustini <drew@pdp7.com> # Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr> # SPDX-License-Identifier: BSD-2-Clause from litex.build.g...
7ee6a4f46c7b5365ee573dd31f42ef1ddc5d44e0
20f125a17856c1251727314c571091a59bc770f0
/Chapter 03/3.05.py
735d0880d2b292c2b177575feeec423705c6253e
[ "MIT" ]
permissive
PacktPublishing/Tkinter-GUI-Application-Development-Blueprints-Second-Edition
310983285d54c59bdd02e69b9a913aa9372c869a
1e160c0575028e446295c121a84142164ee5ced2
refs/heads/master
2023-07-10T05:34:39.159752
2023-01-30T09:20:16
2023-01-30T09:20:16
123,231,531
142
94
MIT
2023-07-03T23:09:32
2018-02-28T04:59:53
Python
UTF-8
Python
false
false
11,346
py
3.05.py
""" Code illustration: 3.05 - Loading drum samples New modules imported here: - os, tkinter.filedialog New methods implemented here on_open_file_button_clicked(): display_all_drum_file_names(): display_drum_name(): Chapter 3 : Programmable Drum Mac...
9ea9f5adf157d1a29233988bf04bb393fa858d87
09fa8d62c28752670f516e5aa0d65c4d2fb15824
/avod/core/trainer_test.py
107b64d46bebd41419d8424ec0a442db79e748e5
[ "MIT" ]
permissive
melfm/avod-ssd
76457b449611c04eafc054e7719a57fc6641281d
69804f1f7c2edf505f27e46d477e0936a9591b0d
refs/heads/master
2022-05-11T06:27:53.248229
2022-05-03T15:38:27
2022-05-03T15:38:27
129,295,659
104
27
MIT
2022-05-03T15:38:28
2018-04-12T18:36:56
Python
UTF-8
Python
false
false
3,687
py
trainer_test.py
"""Tests for avod.core.trainer with a dummy Detection Model""" import tensorflow as tf import numpy as np from tensorflow.contrib.layers.python.layers import layers from tensorflow.python.framework import random_seed from tensorflow.python.ops import math_ops from tensorflow.python.framework import constant_op from te...
5915cd1a3f96fe1f380e40f2dc3fd6564655d598
cfda7e170793992b3b0359fdd775b03c0b6e91a5
/fitlog/fastserver/summary_app.py
77340ce78171c2763113763f9388075c8f56efc5
[ "Apache-2.0" ]
permissive
fastnlp/fitlog
8c91e1ee6e5ffc4b6396b96020594800dfc34ed2
def816d968e6f688ea769dcca8c2475ad56ae693
refs/heads/master
2023-06-23T18:05:37.674425
2022-11-17T13:38:19
2022-11-17T13:38:19
179,245,899
1,409
138
Apache-2.0
2022-11-17T13:30:58
2019-04-03T08:31:57
Python
UTF-8
Python
false
false
8,255
py
summary_app.py
# 这个文件主要是用于响应summary以及计算summary等 from flask import render_template import traceback from flask import request, jsonify from flask import Blueprint from .server.data_container import all_data from .server.server_config import _get_config_names from .server.summary_utils import _get_all_summuries from .server.summary_...
80f728c979fa01aa584d071077bb3178a434132a
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/miniclient/login/pointcuts.py
b6ecd1b5f1873c8fa4614c1a6fdef0259020b159
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
385
py
pointcuts.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/miniclient/login/pointcuts.py import aspects from helpers import aop class ShowBGWallpaper(aop.Pointcut): def __init__(self): aop.Pointcut.__init__(self, 'gui.Scaleform.daapi.view.login.login_modes.view_background'...
3abf5544766ad42499ec2e7108188970a5cf104f
d32b0c51323e4a2106f82d3fdc81094fb03f989e
/guillotina/events.py
cc2f4934c485baaa2b2a5093ccc4cf01826cf83b
[ "BSD-2-Clause" ]
permissive
plone/guillotina
69f768bddc53b397471c3748eee6f01e7db619ab
9085dd8b788a5f081db5d799965d39831b2d4ee2
refs/heads/master
2023-05-01T13:23:30.323625
2022-12-12T14:47:56
2022-12-12T14:47:56
83,574,500
185
61
NOASSERTION
2023-04-16T11:58:58
2017-03-01T16:12:44
Python
UTF-8
Python
false
false
8,182
py
events.py
from guillotina.component.interfaces import IObjectEvent from guillotina.db.orm.interfaces import IBaseObject from guillotina.interfaces import IAfterAsyncUtilityLoadedEvent from guillotina.interfaces import IApplicationCleanupEvent from guillotina.interfaces import IApplicationConfiguredEvent from guillotina.interface...
89c29d742895d436f870526e31cd440b80d56762
f509ab9825c542e09b0c6591d86ef1f9feb540a6
/pkgs/sdk-pkg/src/genie/libs/sdk/libs/abstracted_libs/nxos/clear_logging.py
c33356ba5b2bc3b1c6160f36d418e05d472cdb77
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genielibs
97f597117193aaa18028defeb69078ebb241173a
e42e51475cddcb10f5c7814d0fe892ac865742ba
refs/heads/master
2023-08-11T16:39:41.959947
2023-07-27T17:58:42
2023-07-27T17:58:42
130,717,047
109
60
Apache-2.0
2023-08-29T22:32:08
2018-04-23T15:21:56
Python
UTF-8
Python
false
false
292
py
clear_logging.py
# python import logging log = logging.getLogger(__name__) class ClearLogging(object): def clear_logging(self, device): try: device.execute('clear logging logfile') except Exception as e: self.failed('Failed to clear logging', from_exception=e)
4d1c1c41938379219e1acaecf010a4a1a707b013
8287ced5b14dd2a0060545b1fb53aa8a8deb878b
/precise/annoyance_estimator.py
b06f6be415e7db3d2a7a9c76d637623f329f0706
[ "Apache-2.0" ]
permissive
MycroftAI/mycroft-precise
30fa89e632189e27d9fa2dabcef82a7867d4f6ae
e1a635e9675047eb86f64ca489a1b941321c489a
refs/heads/dev
2023-07-19T06:19:58.303669
2020-08-05T02:09:50
2020-08-05T02:09:50
101,455,393
777
233
Apache-2.0
2023-06-22T16:14:39
2017-08-26T01:56:48
Python
UTF-8
Python
false
false
5,562
py
annoyance_estimator.py
# Copyright 2020 Mycroft AI Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
923511f71c43d12790f86c4ed3a938b82011fa44
4bcc9806152542ab43fc2cf47c499424f200896c
/tensorflow/python/framework/summary_test_util.py
caaa255f48af3aa576666e7ab517b48b35e26d25
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
tensorflow/tensorflow
906276dbafcc70a941026aa5dc50425ef71ee282
a7f3934a67900720af3d3b15389551483bee50b8
refs/heads/master
2023-08-25T04:24:41.611870
2023-08-25T04:06:24
2023-08-25T04:14:08
45,717,250
208,740
109,943
Apache-2.0
2023-09-14T20:55:50
2015-11-07T01:19:20
C++
UTF-8
Python
false
false
1,812
py
summary_test_util.py
# Copyright 2022 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...
2269fa5a84be4a56726a6e43bb83e12fa68714b7
30112ee67896c0cf08940cb01febc0e56774e9c9
/lib/datasets/__init__.py
91a9be629c828727ee5b1b132c80e7f839cae110
[ "BSD-3-Clause", "MIT" ]
permissive
HRNet/HRNet-Semantic-Segmentation
543d1d9de2e9be03aa8478f515631f2c4d9292c2
0bbb2880446ddff2d78f8dd7e8c4c610151d5a51
refs/heads/HRNet-OCR
2023-05-30T23:08:16.903008
2021-05-04T11:21:17
2021-05-04T11:21:17
180,372,347
3,173
825
NOASSERTION
2022-11-17T13:07:11
2019-04-09T13:24:09
Python
UTF-8
Python
false
false
588
py
__init__.py
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Ke Sun (sunk@mail.ustc.edu.cn) # ------------------------------------------------------------------------------ from __future__ import absolute_import from __future_...
a9f1bc90d49660fbb68aa391dd5a3ede5e91eb17
dac12c9178b13d60f401c4febff5569af8aa2719
/cvat/apps/events/export.py
07adc468570220ca39214d3836f9f139a0e933fd
[ "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later" ]
permissive
opencv/cvat
39dc66ca20f972ba40b79c44d7ce43590dc0b0b5
899c9fd75146744def061efd7ab1b1c6c9f6942f
refs/heads/develop
2023-08-19T04:27:56.974498
2023-08-18T09:58:25
2023-08-18T09:58:25
139,156,354
6,558
1,887
MIT
2023-09-14T12:44:39
2018-06-29T14:02:45
TypeScript
UTF-8
Python
false
false
6,020
py
export.py
# Copyright (C) 2023 CVAT.ai Corporation # # SPDX-License-Identifier: MIT import os import csv from datetime import datetime, timedelta, timezone from dateutil import parser import uuid import django_rq from django.conf import settings import clickhouse_connect from rest_framework import serializers, status from re...
240f8fd0798eb346dd3373da6e7ae31f47788200
d2943a542496fe6060f471cf511735a1b8c3ada9
/qualcoder/GUI/ui_dialog_report_compare_coder_file.py
4c49a5e4f1b4f1fd1c932333ad631a4fcbb84270
[ "MIT" ]
permissive
ccbogel/QualCoder
7dc7f5e2aac077ee16f39eb45ebc82bd884fc735
87e4f6d8dd9287c7b3558000af10e6b16f7b955b
refs/heads/master
2023-09-04T23:04:05.254037
2023-08-30T22:09:55
2023-08-30T22:09:55
165,788,605
264
56
MIT
2023-07-18T22:11:30
2019-01-15T05:04:43
Python
UTF-8
Python
false
false
7,129
py
ui_dialog_report_compare_coder_file.py
# Form implementation generated from reading ui file 'ui_dialog_report_compare_coder_file.ui' # # Created by: PyQt6 UI code generator 6.3.1 # # WARNING: Any manual changes made to this file will be lost when pyuic6 is # run again. Do not edit this file unless you know what you are doing. from PyQt6 import QtCore, Qt...
9e53c8cbf7c3c158ddb4b090a88e6ea7d3b66088
de7db88ca700cb8d1c5f1cf64f8b181c4073cc1f
/decompiler/codegen.py
72747488742d1fec110f67b5402b94e51c9c0032
[ "MIT" ]
permissive
CensoredUsername/unrpyc
b77759eb2b976a8b33d8f4ec5f8624a05935a681
2f9810c104d88982e7a63e9efbb52a33a9f76032
refs/heads/master
2023-07-05T21:13:30.807565
2022-03-31T22:50:34
2022-03-31T22:50:34
3,176,344
708
168
NOASSERTION
2022-12-04T20:45:15
2012-01-14T04:00:32
Python
UTF-8
Python
false
false
37,803
py
codegen.py
# License # Copyright (c) 2008, Armin Ronacher # 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 # condition...
76a065635787e7086739281fc8bb63cd0c677d75
fbbead70a9ae48838c621f5d83a1433f1c545487
/tests/monad_test.py
8f137644f2bda329ed7716f7c2439204022bee4b
[ "MIT" ]
permissive
suned/pfun
fbd033221a400f0b77533179be36a7881dbc4e29
bebd4b73bac20243a0143de6f493d2b30e4e1434
refs/heads/master
2023-08-09T10:19:50.415670
2022-12-09T11:35:34
2022-12-09T11:35:34
200,543,653
156
15
MIT
2023-07-22T12:41:48
2019-08-04T21:32:12
Python
UTF-8
Python
false
false
418
py
monad_test.py
from abc import ABC, abstractmethod from .functor_test import FunctorTest class MonadTest(FunctorTest, ABC): @abstractmethod def test_right_identity_law(self, *args): raise NotImplementedError() @abstractmethod def test_left_identity_law(self, *args): raise NotImplementedError() ...
9cb7b38700df37c36c1ea0fc115d1fb6500e6dae
b28bc89706650e5014839b99be9ce2c02fc04119
/django_mongoengine/forms/__init__.py
7f9df9c7e98c042d1235720aea90a158ac082304
[ "BSD-3-Clause" ]
permissive
MongoEngine/django-mongoengine
9458e7dcb780a5cd040aea4e72067e1eaa1116b4
83e06c6dc772fca629c48c4ae1e75e3c00c7f051
refs/heads/master
2023-08-19T20:01:13.829717
2023-08-16T10:11:30
2023-08-16T10:11:30
4,334,103
739
278
NOASSERTION
2023-08-16T09:40:03
2012-05-15T09:28:40
Python
UTF-8
Python
false
false
46
py
__init__.py
from .documents import * from .utils import *
831952a5cf9b74c47c0b9064cf7df5b284384899
f04babfe5351de24f6b09709895f5412af93dbf6
/diverging_map.py
c3a22b4ebb2c7d70fd27882ccf47fb321b5cfb9a
[ "MIT" ]
permissive
ethankruse/kepler_orrery
3106fd5f577efda8256771b06704bd36d6167d0e
73280e5ceef88380b65a8c1ebb14b617eeecce88
refs/heads/master
2022-11-08T23:17:46.915578
2022-10-27T19:18:39
2022-10-27T19:18:39
47,040,248
109
22
MIT
2020-11-05T10:56:13
2015-11-28T21:32:47
Python
UTF-8
Python
false
false
12,013
py
diverging_map.py
#!/usr/bin/env python #------------------------------------------------------------------------------ # Name: colorMapCreator.py # Purpose: Generate reasonable diverging colormaps using the technique # presented in "Diverging Color Maps for Scientific Visualization # (Expanded)" by ...
52dae5d66a9953345dd6bd28b99299dba6e53387
876452eccd9f13719d2b9f4784fa932eba0872fc
/eco/optimize_score.py
c75ecc2f46d2d00234c64d3a9cd46e71aea19c2c
[ "MIT" ]
permissive
StrangerZhang/pyECO
89c1c21ebdbabb73d7615ff7f7ef629d4c9999df
9179450159d8b4a5dd654d089af0cb5b75c70e9e
refs/heads/master
2021-07-11T15:35:12.638263
2019-01-07T14:25:09
2019-01-07T14:25:09
143,963,585
203
48
null
null
null
null
UTF-8
Python
false
false
3,746
py
optimize_score.py
from .fourier_tools import sample_fs from .config import config import numpy as np if config.use_gpu: import cupy as cp """ code no problem """ def optimize_score(scores_fs, iterations): """ Maximizes the continuous convolution response (classification scores) """ if config.use_gpu: ...
02fdfb24467970e4f47aee3ac0310b9622881dff
ff7f0f16a3632b218bba659405e30b1923c3b3ba
/smac/env/starcraft2/render.py
8fb12162fdbf7b2b16e9f44d38b09e959344f34f
[ "MIT" ]
permissive
oxwhirl/smac
52694823528a6be2c31b2e5723f32e3d4e828be2
12614f1760427026cce82083dc3f0ab3ff1d939e
refs/heads/master
2023-08-30T22:03:34.506707
2023-08-29T09:11:01
2023-08-29T09:11:01
164,697,388
932
245
MIT
2023-08-29T09:11:02
2019-01-08T17:12:37
Python
UTF-8
Python
false
false
11,378
py
render.py
import numpy as np import re import subprocess import platform from absl import logging import math import time import collections import os import pygame import queue from pysc2.lib import colors from pysc2.lib import point from pysc2.lib.renderer_human import _Surface from pysc2.lib import transform from pysc2.lib i...
3e242bf43645a317f6129884a7fbbacb555d92e7
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/melnor/conftest.py
3e87a4e646fab1a855802abea06b9cb5e848dabb
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
8,358
py
conftest.py
"""Tests for the melnor integration.""" from __future__ import annotations from collections.abc import Generator from datetime import UTC, datetime, time, timedelta from unittest.mock import AsyncMock, patch from melnor_bluetooth.device import Device import pytest from homeassistant.components.bluetooth.models impor...
0f29eedc576c31ccc791a0b0065f36c384eafd6e
73a0f661f1423d63e86489d4b2673f0103698aab
/python/oneflow/nn/modules/unique.py
b4d0cefde6ca3796a82435f92a52266160c99ba8
[ "Apache-2.0" ]
permissive
Oneflow-Inc/oneflow
4fc3e081e45db0242a465c4330d8bcc8b21ee924
0aab78ea24d4b1c784c30c57d33ec69fe5605e4a
refs/heads/master
2023-08-25T16:58:30.576596
2023-08-22T14:15:46
2023-08-22T14:15:46
81,634,683
5,495
786
Apache-2.0
2023-09-14T09:44:31
2017-02-11T06:09:53
C++
UTF-8
Python
false
false
3,205
py
unique.py
""" Copyright 2020 The OneFlow 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 applicable law or agr...
b484afe883702849dddd3c983c9b7578b0c2360d
6186a3787d1e74f1866844491da48b9643c8f1a9
/ghostwriter/api/migrations/0001_initial.py
e0f7462a5829cf33660d3b9de3d4d66b2ff1ad80
[ "BSD-3-Clause" ]
permissive
GhostManager/Ghostwriter
b46b2421e5737ed0afbf49182dce9eeb5eb31936
b9eae4459ba192fbb2d4a5b66f8210d57fd7112a
refs/heads/master
2023-09-04T02:34:54.085997
2023-07-13T22:38:44
2023-07-13T22:38:44
197,269,443
1,011
197
BSD-3-Clause
2023-09-08T00:19:52
2019-07-16T21:19:43
Python
UTF-8
Python
false
false
1,824
py
0001_initial.py
# Generated by Django 3.2.11 on 2022-04-05 21:22 import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
0f957b24404bdc125275f43cf56e933e1ad2694e
2f679ea4787bcd765dc9d3025a03f15a25d360cb
/docker/lr-cartographer/python/extract_bounded_read_sections.py
9e6ae40290ec3bc1384e6f6c55efe0428796ce2c
[ "BSD-3-Clause" ]
permissive
broadinstitute/long-read-pipelines
f7d0958c23b68c4143d350c0b77b62d0bbea914e
9620d58f49f29dd2f27fa5f30f72c8257aa2064b
refs/heads/main
2023-08-31T20:46:00.456332
2023-08-15T18:36:14
2023-08-15T18:36:14
186,657,809
101
23
BSD-3-Clause
2023-09-06T14:39:55
2019-05-14T16:12:33
Jupyter Notebook
UTF-8
Python
false
false
89,355
py
extract_bounded_read_sections.py
#!/usr/bin/env python3.8 import time import argparse import math import logging import os import sys import inspect import subprocess import tempfile import re import uuid from collections import OrderedDict from collections import namedtuple from enum import Enum import numpy as np import pysam from tesserae imp...
18a19f36cd8224d63d51990fa9a77b0b5805a129
61b95ee2aefbcfbd6c4abf9511d976d0b9d0e100
/faker/providers/automotive/fi_FI/__init__.py
aa9420bf49498bfffbcc8dba68c79fe18d6ef484
[ "MIT" ]
permissive
joke2k/faker
fed7472580ced2bce326fe4ea0c3d1c810853d5e
33e36b1b6cc9c6f039fe387988853771bab60624
refs/heads/master
2023-09-04T00:43:33.599705
2023-08-31T16:15:04
2023-08-31T16:15:04
6,662,075
14,544
2,215
MIT
2023-09-11T16:06:14
2012-11-12T23:00:09
Python
UTF-8
Python
false
false
276
py
__init__.py
from .. import Provider as AutomotiveProvider class Provider(AutomotiveProvider): """Implement automotive provider for ``fi_FI`` locale. Source: - https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Finland """ license_formats = ("???-###",)
882f036711c73391ffeb058f2b390a5c54efa313
0c8ac66ae050e1a98dd8afd7525c9ed74ec5d300
/django_school_management/articles/migrations/0003_auto_20210125_1402.py
ce29b97aca11f5cb3ae4af73744b37537f13ebc3
[]
no_license
TareqMonwer/Django-School-Management
5b1c8145d04082063bc14fc9db1ce38b4db97a9d
3d425d300a77ad505089a3a4c0a9dc71cacbe89a
refs/heads/master
2023-08-19T23:36:34.359488
2023-08-13T05:53:42
2023-08-13T05:53:42
221,053,244
409
163
null
2023-08-13T05:53:44
2019-11-11T19:22:28
JavaScript
UTF-8
Python
false
false
545
py
0003_auto_20210125_1402.py
# Generated by Django 2.2.13 on 2021-01-25 08:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('articles', '0002_category'), ] operations = [ migrations.AlterModelOptions( name='category', options={'verbose_name...
cee960061b36791acaa63e0658cb2cbbd98fe802
71c970991d67ea8998ef685f83fe585b7825a791
/python/runtime/xgboost/predict.py
79e4b63e1b06b3daff1e61f25420a6368b712ee5
[ "Apache-2.0" ]
permissive
sql-machine-learning/sqlflow
a0ba932a8b0605700d5aca591802f7a99e0ea1ae
6c492098320875427b08ad82ce3f874c0b6aaa7a
refs/heads/develop
2023-03-09T04:58:03.460647
2022-05-13T01:29:48
2022-05-13T01:29:48
151,525,500
5,257
799
Apache-2.0
2023-02-25T11:53:32
2018-10-04T06:00:50
Go
UTF-8
Python
false
false
6,774
py
predict.py
# Copyright 2020 The SQLFlow 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 applicable law o...
09720e64bde8a62ef6db342b09a5e89bb2909f28
4129d5b10c0ac8288db205f91ed45a40b812ef5c
/photutils/detection/__init__.py
76e39be3a57007d855e5d9543baae9e8bbe9a49c
[ "BSD-3-Clause" ]
permissive
astropy/photutils
163762aa560fd13c8a4a49aff2d6b0a522cedbcc
a6d629774c52cc82af18d0444c6e5584e5d0b492
refs/heads/main
2023-09-01T20:51:05.823954
2023-08-28T19:35:54
2023-08-28T19:35:54
2,640,766
204
130
BSD-3-Clause
2023-09-13T22:46:41
2011-10-25T02:39:28
Python
UTF-8
Python
false
false
379
py
__init__.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This subpackage contains tools for detecting sources in an astronomical image. """ from .core import * # noqa: F401, F403 from .daofinder import * # noqa: F401, F403 from .irafstarfinder import * # noqa: F401, F403 from .peakfinder import * # noqa...
ce9460f91008de9ed3905cf28d9445b2cdf5ad87
0d6e9c15edafe14b5d373f2180809b94786cdb88
/torch_mimicry/datasets/imagenet/__init__.py
5eb944a90687c208291e32ca5b5f8635588ccce2
[ "MIT" ]
permissive
kwotsin/mimicry
6190e159f96418e9773a453aa17450f372767ffa
a7fda06c4aff1e6af8dc4c4a35ed6636e434c766
refs/heads/master
2023-08-02T21:49:54.864461
2022-08-07T18:28:05
2022-08-07T18:28:05
251,697,485
621
70
MIT
2022-08-07T18:30:23
2020-03-31T18:35:55
Python
UTF-8
Python
false
false
24
py
__init__.py
from .imagenet import *
7df870a4acdf3b19d15e6d03f44f2cf3f70f5010
4578be5ff20640cd0940faa27901489daa471ffe
/S08 - Padrões de projeto/interpreter/multiplicacao.py
f557206cbb1d8ea5017bfda9596b01564a1d22ee
[]
no_license
CAECOMP/provas
cd31c48a912ad5e73f5bf8b826db40cf895f46b1
3f5eb4ec63fc91ad2c2e4ae6e5b3ac87c09ca916
refs/heads/master
2023-07-07T11:53:38.798374
2023-04-27T03:13:57
2023-04-27T03:13:57
55,001,094
125
83
null
2023-07-04T21:21:05
2016-03-29T18:38:41
HTML
UTF-8
Python
false
false
319
py
multiplicacao.py
from operador import Operador class Multiplicar(Operador): def __init__(self, esquerda: Operador, direita: Operador): self._esquerda: Operador = esquerda self._direita: Operador = direita def interpretar(self) -> int: return self._esquerda.interpretar() * self._direita.interpretar()
d133ed5d56a16c4d7e696e5760c11891d8066ea2
0e083f405af00029c9ec31849f0f7f81c56844b5
/tests/test_codebase/test_mmdet3d/data/centerpoint_pillar02_second_secfpn_nus.py
18fe7853235071788151c8d9a27a00b51f2d28d1
[ "Apache-2.0" ]
permissive
open-mmlab/mmdeploy
39b9e7b611caab2c76a6142fcb99f0bf1d92ad24
5479c8774f5b88d7ed9d399d4e305cb42cc2e73a
refs/heads/main
2023-09-01T21:29:25.315371
2023-08-31T09:59:29
2023-08-31T09:59:29
441,467,833
2,164
605
Apache-2.0
2023-09-14T10:39:04
2021-12-24T13:04:44
Python
UTF-8
Python
false
false
3,371
py
centerpoint_pillar02_second_secfpn_nus.py
# Copyright (c) OpenMMLab. All rights reserved. voxel_size = [0.2, 0.2, 8] model = dict( type='CenterPoint', data_preprocessor=dict( type='Det3DDataPreprocessor', voxel=True, voxel_layer=dict( max_num_points=20, voxel_size=voxel_size, max_voxels=(30000...
13e95d74865443ff868348672c78748af30ac710
100bfa827dacb23637d3dd2d1396a830c7d9a4b2
/mode/examples/Basics/Math/Map/Map.pyde
9f576be915b66c42fd4a09d5b21892219ef28152
[ "Apache-2.0" ]
permissive
jdf/processing.py
82b37e5b1f4ce68825b5fe919205362ecdc16993
f38544c70892c7534f059e8acc1c9a492e2b7c86
refs/heads/master
2023-08-26T01:42:50.442853
2023-02-15T21:33:12
2023-02-15T21:33:12
833,574
1,399
246
Apache-2.0
2023-02-21T12:28:09
2010-08-12T14:29:22
Python
UTF-8
Python
false
false
864
pyde
Map.pyde
''' Map. Use the map() function to take any number and scale it to a new number that is more useful for the project that you are working on. For example, use the numbers from the mouse position to control the size or color of a shape. In this example, the mouse’s x-coordinate (a number between 0 and 360) is sc...
217b3ef7b9853382a26a828218028d33e36e703e
8ca19f1a31070738b376c0370c4bebf6b7efcb43
/office365/sharepoint/social/following/manager.py
a7c6be847cbe49845ba93cd0d41d6b70f0158560
[ "MIT" ]
permissive
vgrem/Office365-REST-Python-Client
2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3
cbd245d1af8d69e013c469cfc2a9851f51c91417
refs/heads/master
2023-09-02T14:20:40.109462
2023-08-31T19:14:05
2023-08-31T19:14:05
51,305,798
1,006
326
MIT
2023-08-28T05:38:02
2016-02-08T15:24:51
Python
UTF-8
Python
false
false
1,540
py
manager.py
from office365.runtime.client_result import ClientResult from office365.runtime.client_value_collection import ClientValueCollection from office365.runtime.paths.resource_path import ResourcePath from office365.runtime.queries.service_operation import ServiceOperationQuery from office365.sharepoint.base_entity import B...
017259193e77a390c2c6e2a794856e1bb66a5069
c2d8cef05ef7a1d6db780f6168a0cac62c4a04ba
/squirrel/benchmark/quantify_randomness.py
e8ee6b13636fcea989f0ee38927181c1b0b0fa6a
[ "Apache-2.0" ]
permissive
merantix-momentum/squirrel-core
f212aa75ebc64e14f961b3b6cbefc181793b208d
1fc20b7ca7d5854a7514f6dc0383b250a1e8ff2d
refs/heads/main
2023-08-17T04:45:37.391472
2023-08-04T12:50:39
2023-08-04T12:50:39
458,099,869
253
5
Apache-2.0
2023-09-11T18:27:05
2022-02-11T08:15:36
Python
UTF-8
Python
false
false
3,253
py
quantify_randomness.py
from typing import Callable, Iterable import numpy as np from scipy.stats import kendalltau from squirrel.constants import SeedType from squirrel.driver import MapDriver from squirrel.iterstream.base import Composable class DummyShardedDriver(MapDriver): """Return integer elements in shards""" name = "dumm...
92461943ab17ca705b2fffbe8abd4c10370fd01e
807b63a4dda1e4bcf33a9b456cb9535eb69625fc
/python/stencila/types/if_.py
1c2e6161b0c9457e99af7774c91c817ffde23b8b
[ "Apache-2.0" ]
permissive
stencila/stencila
4d63a5653adb67a45dd5eb11c7a27d569f57a49e
eac602910d009d7db7048b28b4049ecc952ecd32
refs/heads/main
2023-08-30T18:34:19.055238
2023-08-30T07:14:02
2023-08-30T07:14:02
4,503,128
719
51
Apache-2.0
2023-09-14T21:35:38
2012-05-31T02:43:31
Rust
UTF-8
Python
false
false
449
py
if_.py
# Generated file; do not edit. See the Rust `schema-gen` crate. from .prelude import * from .executable import Executable from .if_clause import IfClause @dataclass(kw_only=True, frozen=True) class If(Executable): """ Show and execute alternative content conditional upon an executed expression """ ...
b80e9b88015030ef4a459307e47b5e28105b9f01
bdf3364eb293abcb02aca9b1594e7181ecbc651f
/ds-phasespace-drawing-exercise.py
6f916665e7690e4efabe1e76c8fbe8d2754ec732
[ "BSD-2-Clause", "BSD-2-Clause-Views" ]
permissive
hsayama/PyCX
f5ee2ec1d02b1ec7529725fc7c175b431a45ef06
f61a56fcb5b79734216daf08203f7c08c9662dfb
refs/heads/master
2023-03-16T20:59:55.706196
2023-03-08T15:19:38
2023-03-08T15:19:38
228,787,396
210
77
NOASSERTION
2023-01-17T14:32:30
2019-12-18T07:54:03
Python
UTF-8
Python
false
false
687
py
ds-phasespace-drawing-exercise.py
from pylab import * def initialize(x0, y0): global x, y, xresult, yresult x = x0 y = y0 xresult = [x] yresult = [y] def observe(): global x, y, xresult, yresult xresult.append(x) yresult.append(y) def update(): global x, y, xresult, yresult nextx = x + 0.1 * (x - x * y) ne...
8ad9ad68fcce3f09f06524f82c8308939b1097f5
93713f46f16f1e29b725f263da164fed24ebf8a8
/Library/lib/python3.7/site-packages/bokeh-1.4.0-py3.7.egg/bokeh/protocol/versions.py
ac01d01004b9b6de54ab58e25a4a59bdb49baac9
[ "BSD-3-Clause" ]
permissive
holzschu/Carnets
b83d15136d25db640cea023abb5c280b26a9620e
1ad7ec05fb1e3676ac879585296c513c3ee50ef9
refs/heads/master
2023-02-20T12:05:14.980685
2023-02-13T15:59:23
2023-02-13T15:59:23
167,671,526
541
36
BSD-3-Clause
2022-11-29T03:08:22
2019-01-26T09:26:46
Python
UTF-8
Python
false
false
4,696
py
versions.py
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
261eb1845f82bd6f7bf6b3f5e1416a428adcfc25
a203fb3348c5113aec0d5be0038372a23993e381
/docs/source/asgi/examples/fastapi/movies/tables.py
e07b7585b97db0cf96a45f365631c5a190e6e812
[ "MIT" ]
permissive
piccolo-orm/piccolo_admin
0c2aa2f5e423da884cff597dd5d4865658bf820d
0636086db5d0c99b3d20be512817fb1e8599b48c
refs/heads/master
2023-08-24T13:10:38.577849
2023-08-23T14:36:06
2023-08-23T14:36:06
193,770,368
246
35
MIT
2023-09-11T11:43:15
2019-06-25T19:24:31
Python
UTF-8
Python
false
false
219
py
tables.py
from piccolo.columns.column_types import ForeignKey, Varchar from piccolo.table import Table class Director(Table): name = Varchar() class Movie(Table): title = Varchar() director = ForeignKey(Director)
855bb9ee07f12aa916cf63bf138d06ddcefaee02
ae33222bcdecc375ff8800f0c6fee70d90120f60
/benchmarks/benchmarking/cases/regex_effbot_base.py
03a9d3d1696f909910dd376fe88145fed60666bf
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-free-unknown" ]
permissive
bloomberg/memray
43d5296c6ff5f73b527d45468d4b28e74e92c561
427b60840cb406d011a650ce142845897cb542e2
refs/heads/main
2023-08-17T03:49:51.354674
2023-08-16T18:06:01
2023-08-16T19:43:46
479,491,550
10,817
343
Apache-2.0
2023-09-13T20:02:39
2022-04-08T18:04:11
Python
UTF-8
Python
false
false
4,677
py
regex_effbot_base.py
"""Benchmarks for Python's regex engine. These are some of the original benchmarks used to tune Python's regex engine in 2000 written by Fredrik Lundh. Retreived from http://mail.python.org/pipermail/python-dev/2000-August/007797.html and integrated into Unladen Swallow's pyperf.py in 2009 by David Laing. These bench...
2c2d621f71a114e3193be447aad05d5a01bc670d
23895eba556353a116d97a3e9fa60f7ed9c9f693
/Paths/Find Close Encounters of Orthogonal Line Segments.py
6ef8b20fa66aa6f5184038baaf02f47289d33472
[ "Apache-2.0" ]
permissive
mekkablue/Glyphs-Scripts
9970200e6b7223be58ff9122dd519af176f210de
fe09b4cf3754bc10c3037c3312a19c1b909a74d6
refs/heads/master
2023-08-28T15:02:21.931491
2023-08-25T17:12:34
2023-08-25T17:12:34
2,517,418
322
108
Apache-2.0
2023-08-15T15:24:50
2011-10-05T07:12:37
Python
UTF-8
Python
false
false
9,317
py
Find Close Encounters of Orthogonal Line Segments.py
#MenuTitle: Find Close Encounters of Orthogonal Line Segments # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals __doc__ = """ Goes through all vertical and horizontal line segments, and finds pairs that are close, but do not align completely. """ import vanilla, sys, math def a...
1152647304854e1c74a68d368f20efe9b1fca6af
9784a90cac667e8e0aaba0ca599b4255b215ec67
/gluon/gluoncv2/models/shufflenetv2.py
53f7cd3efd32e4a544efc374c68097a5b6326ef9
[ "MIT" ]
permissive
osmr/imgclsmob
d2f48f01ca541b20119871393eca383001a96019
f2993d3ce73a2f7ddba05da3891defb08547d504
refs/heads/master
2022-07-09T14:24:37.591824
2021-12-14T10:15:31
2021-12-14T10:15:31
140,285,687
3,017
624
MIT
2022-07-04T15:18:37
2018-07-09T12:57:46
Python
UTF-8
Python
false
false
12,524
py
shufflenetv2.py
""" ShuffleNet V2 for ImageNet-1K, implemented in Gluon. Original paper: 'ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design,' https://arxiv.org/abs/1807.11164. """ __all__ = ['ShuffleNetV2', 'shufflenetv2_wd2', 'shufflenetv2_w1', 'shufflenetv2_w3d2', 'shufflenetv2_w2'] import os fr...
f2931bb92adf0266227e3289d81ce57d31533f5a
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/build/android/gyp/java_cpp_enum.py
9098cfc82b1b0b969f906a525d21c99a4444a6d5
[ "BSD-3-Clause" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
Python
false
false
15,564
py
java_cpp_enum.py
#!/usr/bin/env python3 # # Copyright 2014 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections from datetime import date import re import optparse import os from string import Template import sys import textwrap import zipfile fr...
07a31bc70ed43b6ae8ff30bf9fde6bc72beeed51
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/test/legacy_test/test_fuse_gemm_epilogue_pass.py
13480e3d75dedd9a8b51f1f6236e4a0281837c15
[ "Apache-2.0" ]
permissive
PaddlePaddle/Paddle
b3d2583119082c8e4b74331dacc4d39ed4d7cff0
22a11a60e0e3d10a3cf610077a3d9942a6f964cb
refs/heads/develop
2023-08-17T21:27:30.568889
2023-08-17T12:38:22
2023-08-17T12:38:22
65,711,522
20,414
5,891
Apache-2.0
2023-09-14T19:20:51
2016-08-15T06:59:08
C++
UTF-8
Python
false
false
13,474
py
test_fuse_gemm_epilogue_pass.py
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2022 NVIDIA 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.ap...
7ddef4a44b8d782d4a805d830fe269d982857ec3
21b1ebd3c489b99d834f08c63387b045116a01ed
/tests/unit/operations/test_upgradeops.py
4ef948b0ad0f0cb7ff50e44798a61e0616499d44
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
aws/aws-elastic-beanstalk-cli
8d1f34fbec3e89164d8b607666c0800c28e334f7
252101641a7b6acb5de17fafd6adf8b96418426f
refs/heads/master
2023-09-03T15:04:58.036979
2023-08-31T17:26:43
2023-08-31T17:26:43
175,470,423
149
84
Apache-2.0
2023-09-12T14:53:42
2019-03-13T17:42:43
Python
UTF-8
Python
false
false
24,058
py
test_upgradeops.py
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
b87a130dc28ec2c2eb01868c77689bce6eba9071
bdaa910baf85fba41e44849d4037d9940e03e4f6
/popmon/pipeline/report.py
fe29b925610b1c2a4773b55af7a28b86b35c2947
[ "LicenseRef-scancode-free-unknown", "MIT", "Apache-2.0", "LicenseRef-scancode-proprietary-license" ]
permissive
ing-bank/popmon
428693596663405e2e3a290d4ae6afa96762b088
ac79d212a519368d01525950142e0a282f5287c3
refs/heads/master
2023-08-08T03:06:42.714926
2023-07-18T10:21:06
2023-07-18T10:24:07
258,180,016
463
38
MIT
2023-07-18T10:05:37
2020-04-23T11:21:14
Python
UTF-8
Python
false
false
11,282
py
report.py
# Copyright (c) 2023 ING Analytics Wholesale Banking # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, mer...
8d45fd4b38f98de604ad8c5463ed0bf33e5e5999
ed62b03278a3dec0237e9a405e624baf11724469
/fastmri_recon/tests/models/subclassed_models/unet_complex_test.py
2733e41a32b1c845bc27d537dff483b9c7630732
[ "MIT" ]
permissive
zaccharieramzi/fastmri-reproducible-benchmark
f93b460bade2b6301caa9526e5c6385369971366
4a4ec09524437d11153fc5a525621783689bed38
refs/heads/master
2023-05-01T01:27:19.117953
2022-05-04T11:31:11
2022-05-04T11:31:11
193,113,083
147
50
MIT
2023-04-12T12:17:00
2019-06-21T14:36:25
Jupyter Notebook
UTF-8
Python
false
false
499
py
unet_complex_test.py
import pytest import tensorflow as tf from fastmri_recon.models.subclassed_models.unet import UnetComplex @pytest.mark.parametrize('model_kwargs', [ {}, {'n_input_channels': 6}, {'res': True}, {'non_linearity': 'prelu'}, {'channel_attention_kwargs': {'dense': True}}, ]) def test_cnn_complex_init_...
a380c6b8d611bbfbaabda932379b60154ba0759c
04667453a54bbefbbfc5b8cb5c2fb5392f9ca8c5
/json_schema_for_humans/schema/schema_keyword.py
1bd977d496d30e343dc200ce2190fd93bb7ee10d
[ "Apache-2.0" ]
permissive
coveooss/json-schema-for-humans
74c375d385d124c6736ea7fe510a9b7a5015c13c
6a467492d697c4a44a409409ab0391a4a4acd291
refs/heads/main
2023-08-09T22:06:21.609887
2023-07-17T13:52:54
2023-07-17T13:52:54
202,809,346
371
81
NOASSERTION
2023-09-07T14:51:52
2019-08-16T22:58:32
Python
UTF-8
Python
false
false
745
py
schema_keyword.py
from enum import Enum class SchemaKeyword(Enum): REQUIRED = "required" TITLE = "title" CONTAINS = "contains" EXAMPLES = "examples" ITEMS = "items" PREFIX_ITEMS = "prefixItems" UNIQUE_ITEMS = "uniqueItems" ADDITIONAL_ITEMS = "additionalItems" MAX_ITEMS = "maxItems" MIN_ITEMS = "...
4027755ae2159a1895022e2223e273b3d89cf03f
23eafaa60b66769190227c80ac1b087697c72ed8
/server/test_devpi_server/conftest.py
55ff108423fd5fa814a0c6aa43b0dd80e4726fd5
[ "MIT" ]
permissive
devpi/devpi
fe4d76f2ab57da3a766a9e13c51cd4f229598083
56c266744ddfd182d46ca480b787ab44a6ee4692
refs/heads/main
2023-09-04T02:57:22.075986
2023-08-06T10:32:46
2023-08-06T10:32:46
86,787,680
760
148
null
2023-09-09T19:53:10
2017-03-31T06:51:39
Python
UTF-8
Python
false
false
46,442
py
conftest.py
import re from webtest.forms import Upload import json import webtest import mimetypes import subprocess import pytest import py import requests import socket import sys import time from .functional import MappMixin from .reqmock import reqmock, patch_reqsessionmock # noqa from bs4 import BeautifulSoup from contextli...
06cc6e49bca363980bc24f2b2d59596148c0c410
c22256d3e8d566e75e8246cc8b62db798e88e9a3
/core/migrations/0027_alter_timer_options_remove_timer_duration_and_more.py
ff174e73136c9c40e824fd36ea14ed7a6ab56825
[ "BSD-2-Clause-Views", "BSD-2-Clause" ]
permissive
babybuddy/babybuddy
20a4648397b2dbb105b09172f317764eb7ff4955
b5163c236019f3f77667e04e4ea09621593914fe
refs/heads/master
2023-08-25T10:14:02.341213
2023-08-15T16:18:06
2023-08-15T16:38:34
107,898,477
901
199
BSD-2-Clause
2023-08-15T16:38:35
2017-10-22T20:02:57
Python
UTF-8
Python
false
false
1,000
py
0027_alter_timer_options_remove_timer_duration_and_more.py
from django.db import migrations def delete_inactive_timers(apps, schema_editor): from core import models for timer in models.Timer.objects.filter(active=False): timer.delete() class Migration(migrations.Migration): dependencies = [ ("core", "0026_alter_feeding_end_alter_feeding_start_a...
925b84899d2daaad1d0308d59c1e16c57110c798
7a7ee4b7c551ce92483e7162b3064f30219fbddc
/tests/manual_checks/fancy_indexing.py
8a109aade4faa956a39742a87acc2c7f2cefa20b
[ "Apache-2.0" ]
permissive
mratsim/Arraymancer
ccd8267fa2869d73a5a028ecceabf9e96dfdb69c
e2df3dd7509588e3a863c690389649ced790344a
refs/heads/master
2023-09-02T06:39:26.116762
2023-08-31T15:56:39
2023-08-31T15:56:39
88,188,361
1,258
125
Apache-2.0
2023-09-12T13:09:07
2017-04-13T17:10:19
Nim
UTF-8
Python
false
false
5,553
py
fancy_indexing.py
import numpy as np def index_select(): print('Index select') print('--------------------------') x = np.array([[ 4, 99, 2], [ 3, 4, 99], [ 1, 8, 7], [ 8, 6, 8]]) print(x) print('--------------------------') print('x[:, [0, 2]]') print(x...
3967894960bcea734e40fcb20cd44ec09f83c19e
017090be7ab186cb6b47f49e1066ac5cfec3a542
/tests/unit/neptune/new/types/atoms/test_git_ref.py
6d2fdfc5d2560898f32ce624c3413e37e93213d4
[ "Apache-2.0" ]
permissive
neptune-ai/neptune-client
9a79f9d93c84b3a20114e6e49a80652930399ece
9b697ce548634c30dbc5881d4a0b223c8987515d
refs/heads/master
2023-08-18T01:48:22.634432
2023-08-17T11:55:57
2023-08-17T11:55:57
170,117,229
408
55
Apache-2.0
2023-09-13T12:51:03
2019-02-11T11:25:57
Python
UTF-8
Python
false
false
1,054
py
test_git_ref.py
# # Copyright (c) 2023, Neptune Labs Sp. z o.o. # # 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...
c8e7e6997ed090c5cee7971fa777efcfca242948
bf5acb19d44d031e2d8a9e37266acd55c5697863
/pybamm/models/full_battery_models/lead_acid/full.py
927f9a20281ecff935364801f35b96ca3eac4f7e
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
pybamm-team/PyBaMM
82ecf9bebb580aab1a4e67aa7d0297d2698a0b51
b4432b6da7331f992b1831912a9cf89be1f7578f
refs/heads/develop
2023-08-19T04:29:21.151964
2023-08-18T22:43:38
2023-08-18T22:43:38
155,538,761
713
362
BSD-3-Clause
2023-09-14T18:20:04
2018-10-31T10:26:29
Python
UTF-8
Python
false
false
5,199
py
full.py
# # Lead-acid Full model # import pybamm from .base_lead_acid_model import BaseModel class Full(BaseModel): """ Porous electrode model for lead-acid, from :footcite:t:`Sulzer2019asymptotic`, based on the Newman-Tiedemann model. See :class:`pybamm.lead_acid.BaseModel` for more details. """ de...
74c4099a4cd3f524e0afbd0c3ec0a7c3e37dba52
6e964d46b8fab9bccbd199ea7ade41297282b0a7
/setup.py
2b515ed820cf0761cf3bf83c9df8275354ef5929
[ "MIT" ]
permissive
donkirkby/live-py-plugin
1a4cb87a796983245094d7c97c3e72f3cea0c540
165b447cc1288c94f24f1e660e0c45a6ef476826
refs/heads/master
2023-08-29T15:14:37.585327
2023-07-23T21:12:19
2023-07-23T21:12:19
4,332,096
257
59
MIT
2023-09-09T18:18:40
2012-05-15T04:41:18
Python
UTF-8
Python
false
false
1,661
py
setup.py
import setuptools with open("space_tracer.md") as f: long_description = f.read() about = {} with open("plugin/PySrc/space_tracer/about.py") as f: exec(f.read(), about) # noinspection PyUnresolvedReferences setuptools.setup( name=about['__title__'], version=about['__version__'], author=about['__aut...
8f17f458d6325aed081eded3ef7f90da47bc08fd
26bbcfdb811f7df13f7b5a95ba551da7adac4e9b
/src/certfuzz/campaign/campaign_base.py
804c29d777ced74c68974018708e06cf5828f433
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
CERTCC/certfuzz
080c3a5448a39d02049253fad96498ba50191586
892dae8676535b0ae5b77eea95ffbc21e9e1c959
refs/heads/develop
2022-11-11T06:12:09.032184
2020-06-10T19:57:26
2020-06-10T19:57:26
20,684,363
161
25
NOASSERTION
2023-05-10T14:27:00
2014-06-10T12:29:53
Python
UTF-8
Python
false
false
18,923
py
campaign_base.py
''' Created on Feb 9, 2012 @organization: cert.org ''' import abc import logging import os import re import shutil import tempfile import traceback import signal from certfuzz.campaign.errors import CampaignError from certfuzz.file_handlers.seedfile_set import SeedfileSet from certfuzz.file_handlers.errors import Se...
1e55d918253a06be1ea378757ae836a006ad07ce
a0eb6744e6f7f509b96d21f0bc8b3f8387f6861c
/notebook/jupyter_precision_numpy.py
5a55a3ee39b67ef0edacfda4258ce070352fae51
[ "MIT" ]
permissive
nkmk/python-snippets
a6c66bdf999502e52f4795a3074ced63bf440817
f9dd286a9cf93f474e20371f8fffc4732cb3c4d5
refs/heads/master
2023-08-03T04:20:05.606293
2023-07-26T13:21:11
2023-07-26T13:21:11
98,900,570
253
77
MIT
2020-10-25T01:12:53
2017-07-31T14:54:47
Jupyter Notebook
UTF-8
Python
false
false
601
py
jupyter_precision_numpy.py
import numpy as np a = np.array([0.123456789, 0.987654321]) a # array([0.12345679, 0.98765432]) %precision 3 # '%.3f' a # array([0.123, 0.988]) print(a) # [0.123 0.988] print(np.get_printoptions()['precision']) # 3 np.set_printoptions(precision=5) a # array([0.12346, 0.98765]) print(a) # [0.12346 0.98765] pri...
0cfc4286aa3aa69d0627b0ddfc904678dd7eaae5
e7efae2b83216d9621bd93390959d652de779c3d
/proxysql/datadog_checks/proxysql/proxysql.py
0fd8d4f12175148b185e63219310503c95733177
[ "BSD-3-Clause", "MIT", "BSD-3-Clause-Modification", "Unlicense", "Apache-2.0", "LGPL-3.0-only", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "CC0-1.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
DataDog/integrations-core
ee1886cc7655972b2791e6ab8a1c62ab35afdb47
406072e4294edff5b46b513f0cdf7c2c00fac9d2
refs/heads/master
2023-08-31T04:08:06.243593
2023-08-30T18:22:10
2023-08-30T18:22:10
47,203,045
852
1,548
BSD-3-Clause
2023-09-14T16:39:54
2015-12-01T16:41:45
Python
UTF-8
Python
false
false
4,851
py
proxysql.py
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from contextlib import closing, contextmanager import pymysql import pymysql.cursors from datadog_checks.base import AgentCheck, ConfigurationError, is_affirmative from datadog_checks.base.utils.db impor...
84376415d6f425c71e94e56b5e84f901a23a9fde
69818aed99b6bedf41ba6c65474b3825fb65cbcf
/tools/programs/grab_get.py
d6bf784b6861e97d103815c2cd287e35d2b3333b
[]
no_license
Realm667/WolfenDoom
26ccebaed04f0815892d57e11b93873e94efd737
e829080145016a14ae32727f533624a65b88b0b2
refs/heads/master
2023-09-04T03:13:47.044568
2023-09-03T00:43:37
2023-09-03T00:43:37
30,589,550
276
55
null
2021-11-27T15:57:19
2015-02-10T11:43:37
C#
UTF-8
Python
false
false
618
py
grab_get.py
#!/usr/bin/env python3 "Inject a grAb chunk into a PNG file" import argparse import png as png_util import struct if __name__ == "__main__": parser = argparse.ArgumentParser(description= "Get offsets from a PNG file") parser.add_argument('png', help="The PNG file to get the...
7e795a734807629ec8d46b5660561baf1de254ac
4ece75389e2822d63699333f4595ade12bd8632d
/personal/compare_lines.py
98ac8eacddef59acd8c1c58dd423e55690b3f8e2
[ "MIT" ]
permissive
Watchful1/PushshiftDumps
3a797a4dce87a8a04ac24623c02a56ab7d955c84
4a50ca6605eb88e82e2406cf57c2a160f8a091e3
refs/heads/master
2023-06-08T20:30:45.689214
2023-05-26T01:28:37
2023-05-26T01:28:37
403,231,429
144
30
MIT
2023-06-17T04:55:01
2021-09-05T06:17:43
Python
UTF-8
Python
false
false
775
py
compare_lines.py
import utils import discord_logging import os import sys from datetime import datetime log = discord_logging.init_logging() if __name__ == "__main__": file_one = open(r"\\MYCLOUDPR4100\Public\reddit_final\RelationshipsOver35_comments_dump.txt", 'r') file_two = open(r"\\MYCLOUDPR4100\Public\reddit_final\Relationshi...
7a30d0ebc8091dfff8d39f8118b08705b1ad8493
749af8e81d5ccd2d8714a34434a9c77772df551b
/statsmodels/datasets/strikes/data.py
4eaa1513492b1df50bf962ae91acc96ef18f0d93
[ "BSD-3-Clause" ]
permissive
statsmodels/statsmodels
98ca67192c08bcc611ed3a75edaded2c7181ab98
01b19d7d111b29c183f620ff0a949ef6391ff8ee
refs/heads/main
2023-09-05T13:05:49.497076
2023-09-01T10:54:50
2023-09-01T10:54:50
1,885,237
8,666
3,023
BSD-3-Clause
2023-09-13T17:51:48
2011-06-12T17:04:50
Python
UTF-8
Python
false
false
1,631
py
data.py
"""U.S. Strike Duration Data""" from statsmodels.datasets import utils as du __docformat__ = 'restructuredtext' COPYRIGHT = """This is public domain.""" TITLE = __doc__ SOURCE = """ This is a subset of the data used in Kennan (1985). It was originally published by the Bureau of Labor Statistics. :: ...