hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
01a77337733318320923ca0113b771c8543e9f7d
1,745
py
Python
app/modules/devices/plugs/strip.py
bytecode-tech/my-tank
e37dc844fd2801b26710b461f64a6f938a5371db
[ "MIT" ]
1
2020-05-21T04:56:51.000Z
2020-05-21T04:56:51.000Z
app/modules/devices/plugs/strip.py
kandiki/my-tank
e37dc844fd2801b26710b461f64a6f938a5371db
[ "MIT" ]
null
null
null
app/modules/devices/plugs/strip.py
kandiki/my-tank
e37dc844fd2801b26710b461f64a6f938a5371db
[ "MIT" ]
1
2020-04-21T20:24:36.000Z
2020-04-21T20:24:36.000Z
import logging from typing import Any, Dict from app.modules.devices import ( Device, DeviceType, DeviceBrand ) from . import Plug _LOGGER = logging.getLogger(__name__) class Strip(Plug): def __init__( self, id: str, alias: str, host: str, brand: DeviceBrand,...
26.439394
101
0.581662
4c177c18a406cd69412b7ab07afe076e30d45f32
540
py
Python
ddcz/templatetags/creations.py
ItIsI-Orient/graveyard
4b1c1be90b6f1362aa43c65899bb3676ffccbeb9
[ "MIT" ]
null
null
null
ddcz/templatetags/creations.py
ItIsI-Orient/graveyard
4b1c1be90b6f1362aa43c65899bb3676ffccbeb9
[ "MIT" ]
null
null
null
ddcz/templatetags/creations.py
ItIsI-Orient/graveyard
4b1c1be90b6f1362aa43c65899bb3676ffccbeb9
[ "MIT" ]
null
null
null
from django import template from django.contrib.staticfiles.storage import staticfiles_storage from ..creations import RATING_DESCRIPTIONS register = template.Library() @register.inclusion_tag('creations/rating.html') def creation_rating(rating, skin): rating = int(rating or 0) return { 'rating_descr...
31.764706
95
0.718519
0b7bc6c45f4dc3e5e05ebfa33a76c858cf164fb2
6,246
py
Python
eisen/models/segmentation/obelisk.py
dasturge/eisen-core
09056f1e6aff450ef402b35b10ef96a7d4a3ff87
[ "MIT" ]
null
null
null
eisen/models/segmentation/obelisk.py
dasturge/eisen-core
09056f1e6aff450ef402b35b10ef96a7d4a3ff87
[ "MIT" ]
null
null
null
eisen/models/segmentation/obelisk.py
dasturge/eisen-core
09056f1e6aff450ef402b35b10ef96a7d4a3ff87
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F from torch import nn # ATTRIBUTION: the code contained in this file was obtained from https://github.com/mattiaspaul/OBELISK # the code is licensed under MIT license which is also included below """ MIT License Copyright (c) 2018 Permission is hereby granted, free of ...
37.626506
103
0.610471
6f5248ec3ed9c33814c154dd34de62e4a93ec263
7,111
py
Python
testcases/OpenBMCReset.py
rashijhawar/op-test
ccc1ced2a9dc0177a538f170b5e029ac3473c3ae
[ "Apache-2.0" ]
23
2016-04-25T14:39:15.000Z
2019-06-13T07:01:40.000Z
testcases/OpenBMCReset.py
rashijhawar/op-test
ccc1ced2a9dc0177a538f170b5e029ac3473c3ae
[ "Apache-2.0" ]
321
2015-09-18T13:45:28.000Z
2019-06-19T15:31:59.000Z
testcases/OpenBMCReset.py
rashijhawar/op-test
ccc1ced2a9dc0177a538f170b5e029ac3473c3ae
[ "Apache-2.0" ]
53
2015-09-03T13:39:03.000Z
2019-06-05T03:37:10.000Z
#!/usr/bin/env python3 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: op-test-framework/testcases/OpenBMCReset.py $ # # OpenPOWER Automated Test Project # # Contributors Listed Below - COPYRIGHT 2019 # [+] International Business Machines Corp. # # # Licensed under the Apache License, V...
34.1875
82
0.661792
d5bbd4c2c4aa4d329a14c26476101271291f24cf
64,596
py
Python
sdk/python/pulumi_azure_native/web/v20150801/site_auth_settings_slot.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20150801/site_auth_settings_slot.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/v20150801/site_auth_settings_slot.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
62.351351
1,821
0.674531
26e59e31120987f02283ce202147ccc1078dedab
3,073
py
Python
src/pymergevcd/vcd_writer.py
kown7/pymergevcd
b4716b5aff49c7c496cae4f70fda0e5d52231e1b
[ "MIT" ]
1
2021-02-27T21:22:16.000Z
2021-02-27T21:22:16.000Z
src/pymergevcd/vcd_writer.py
kown7/pymergevcd
b4716b5aff49c7c496cae4f70fda0e5d52231e1b
[ "MIT" ]
1
2021-10-21T18:44:59.000Z
2021-10-21T18:44:59.000Z
src/pymergevcd/vcd_writer.py
kown7/pymergevcd
b4716b5aff49c7c496cae4f70fda0e5d52231e1b
[ "MIT" ]
null
null
null
"""Write the streams of `VcdElements` back into files""" import logging from typing import List import vcd import pymergevcd.io_manager_interfaces as iomi # pylint: disable=too-few-public-methods class VcdComposer: """Create VCD file from `VcdElements` objects""" def __init__(self, fptr): self._fptr...
35.321839
78
0.571754
9947fb5b0fa6b20607b9a4c06ff2d20ba4278f5f
6,486
py
Python
networks/resnext.py
hushukai/Chinese-ancient-book-recognition-HSK
de5b6474dc4346524d95b405223c721aae5b500b
[ "Apache-2.0" ]
2
2020-04-12T08:33:50.000Z
2020-07-03T09:15:56.000Z
networks/resnext.py
yufish/Chinese-ancient-book-recognition-HSK
c7302fdd6e86b57223cfa1906e8bb365702c8240
[ "Apache-2.0" ]
null
null
null
networks/resnext.py
yufish/Chinese-ancient-book-recognition-HSK
c7302fdd6e86b57223cfa1906e8bb365702c8240
[ "Apache-2.0" ]
4
2020-07-03T09:15:58.000Z
2020-07-17T09:24:08.000Z
"""Keras model: ResNeXt # Reference papers - [Aggregated Residual Transformations for Deep Neural Networks] (https://arxiv.org/abs/1611.05431) (CVPR 2017) # Reference implementations - [Torch ResNeXt] (https://github.com/facebookresearch/ResNeXt/blob/master/models/resnext.lua) """ from tensorflow.keras import ...
36.438202
91
0.59004
db9ca21de178da9905cb3a742d21cee54971ac32
894
py
Python
schemas.py
carlosasj/docker-registry-maintenance
8cb1769489f8618f95727234dc216403a046cd99
[ "MIT" ]
null
null
null
schemas.py
carlosasj/docker-registry-maintenance
8cb1769489f8618f95727234dc216403a046cd99
[ "MIT" ]
null
null
null
schemas.py
carlosasj/docker-registry-maintenance
8cb1769489f8618f95727234dc216403a046cd99
[ "MIT" ]
null
null
null
from schema import Schema, Optional, Or _default = { Optional('num'): int, Optional('tags-like'): [str], Optional('keep-tags'): [str], Optional('keep-tags-like'): [str], Optional('delete-by-hours'): [str], Optional('keep-by-hours'): int, Optional('dry-run'): bool, } _default2 = _default.co...
28.83871
70
0.652125
b8ed9cb9d9161d52bd77af96203a64677cc6a773
17,301
py
Python
benchmarks/f3_wrong_hints_permutations/scaling_ltl_timed_transition_system/9-sender_receiver_37.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints_permutations/scaling_ltl_timed_transition_system/9-sender_receiver_37.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints_permutations/scaling_ltl_timed_transition_system/9-sender_receiver_37.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import FrozenSet from collections import Iterable from math import log, ceil from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msa...
39.320455
89
0.571874
9bc09e1987a7f6d55bf250596f5c4d8a62b1eae4
10,269
py
Python
test/test_bsonjs.py
tuffnatty/python-bsonjs
0a05404191584650699a9d283868b73335973fda
[ "Apache-2.0" ]
null
null
null
test/test_bsonjs.py
tuffnatty/python-bsonjs
0a05404191584650699a9d283868b73335973fda
[ "Apache-2.0" ]
null
null
null
test/test_bsonjs.py
tuffnatty/python-bsonjs
0a05404191584650699a9d283868b73335973fda
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 MongoDB, 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 writing, so...
36.286219
79
0.592852
a47405ee4a428415b94c64d0ded557e83a07ab85
1,438
py
Python
HLTrigger/Configuration/python/HLT_75e33/modules/hltPixelLayerTriplets_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
HLTrigger/Configuration/python/HLT_75e33/modules/hltPixelLayerTriplets_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
HLTrigger/Configuration/python/HLT_75e33/modules/hltPixelLayerTriplets_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:16:05.000Z
2021-11-30T16:16:05.000Z
import FWCore.ParameterSet.Config as cms hltPixelLayerTriplets = cms.EDProducer("SeedingLayersEDProducer", BPix = cms.PSet( HitProducer = cms.string('siPixelRecHits'), TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4PixelTriplets') ), FPix = cms.PSet( HitProducer = cms.string('siP...
23.57377
73
0.590403
c3a12795e7b1a254e30542223ef5d02f0f090905
837
py
Python
PyFin/tests/Env/testSettings.py
rpatil524/Finance-Python
687538015eb597575b872cd652aada5047e84ef3
[ "MIT" ]
325
2017-11-02T19:08:46.000Z
2022-03-22T21:00:45.000Z
PyFin/tests/Env/testSettings.py
smileboy510/Finance-Python
96d9984f1a9bb7b02c057c8e056a993b1c211945
[ "MIT" ]
6
2019-05-22T07:23:02.000Z
2021-06-23T11:27:57.000Z
PyFin/tests/Env/testSettings.py
smileboy510/Finance-Python
96d9984f1a9bb7b02c057c8e056a993b1c211945
[ "MIT" ]
78
2017-11-27T01:27:48.000Z
2022-03-26T15:34:09.000Z
# -*- coding: utf-8 -*- u""" Created on 2015-7-15 @author: cheng.li """ import unittest from PyFin.DateUtilities import Date from PyFin.Env import Settings class TestSettings(unittest.TestCase): def testEvaluationDate(self): referenceDate = Date(2015, 1, 1) Settings.evaluationDate = referenceDat...
33.48
115
0.514934
054e05e6ab75b3bc72913e805bbe22de1b77b6ad
540
py
Python
labs/clean_tmp_and_txt.py
mcxiaoke/python-labs
61c0a1f91008ba82fc2f5a5deb19e60aec9df960
[ "Apache-2.0" ]
7
2016-07-08T10:53:13.000Z
2021-07-20T00:20:10.000Z
labs/clean_tmp_and_txt.py
mcxiaoke/python-labs
61c0a1f91008ba82fc2f5a5deb19e60aec9df960
[ "Apache-2.0" ]
1
2021-05-11T05:20:18.000Z
2021-05-11T05:20:18.000Z
labs/clean_tmp_and_txt.py
mcxiaoke/python-labs
61c0a1f91008ba82fc2f5a5deb19e60aec9df960
[ "Apache-2.0" ]
7
2016-10-31T06:31:54.000Z
2020-08-31T20:55:00.000Z
# -*- coding: UTF-8 -*- # Created by mcxiaoke on 2015/7/7 23:33. __author__ = 'mcxiaoke' # 清除目录里的txt和临时文件 import os, sys from os import path def handler(arg, dirname, names): dir_path = path.join(dirname, dirname) for file in names: file_path = path.abspath(path.join(dirname, file)) root, ex...
24.545455
58
0.62037
cb23d0cfa5604b8623bac5a81eee083258768c52
6,643
py
Python
httpx/_multipart.py
amchii/httpx
110ce8565259a3c6927352554eccd94ca5804463
[ "BSD-3-Clause" ]
5
2021-03-25T12:09:07.000Z
2021-06-07T06:33:43.000Z
env/Lib/site-packages/httpx/_multipart.py
Venko15/MLT
d4b876bd0a53e2078c45923076d9ab304703612d
[ "MIT" ]
null
null
null
env/Lib/site-packages/httpx/_multipart.py
Venko15/MLT
d4b876bd0a53e2078c45923076d9ab304703612d
[ "MIT" ]
null
null
null
import binascii import os import typing from pathlib import Path from ._transports.base import AsyncByteStream, SyncByteStream from ._types import FileContent, FileTypes, RequestFiles from ._utils import ( format_form_param, guess_content_type, peek_filelike_length, primitive_value_to_str, to_bytes...
32.091787
96
0.589794
fd5454f86a59ba3ea4f2510bb753f1c6dd15b92b
7,225
py
Python
aircraft_mdo/bwb_analysis.py
mattgiamou/aircraft_mdo
20037f09d42de18f54ae5e2efb11b4a6470ed647
[ "MIT" ]
2
2017-09-26T20:01:56.000Z
2020-11-04T16:34:50.000Z
aircraft_mdo/bwb_analysis.py
mattgiamou/aircraft_mdo
20037f09d42de18f54ae5e2efb11b4a6470ed647
[ "MIT" ]
null
null
null
aircraft_mdo/bwb_analysis.py
mattgiamou/aircraft_mdo
20037f09d42de18f54ae5e2efb11b4a6470ed647
[ "MIT" ]
null
null
null
""" Top level analysis functions for BWB design. """ from avl_bridge import avl_analysis from bwb_geometry import write_avl_files from cruise_analysis import alpha_cruise, maxSpeedWithThrust from openmdao.main.api import Component from openmdao.main.datatypes.api import Float from openmdao.lib.drivers.api import CaseIt...
40.819209
84
0.608028
a9f1984f609f56111f69ac5581ec4e5226ee0392
391
py
Python
fitness/asgi.py
dnantonov/api_fitness
2ba1edc91a7ff45d2e041b0843129e2985bffe01
[ "MIT" ]
null
null
null
fitness/asgi.py
dnantonov/api_fitness
2ba1edc91a7ff45d2e041b0843129e2985bffe01
[ "MIT" ]
null
null
null
fitness/asgi.py
dnantonov/api_fitness
2ba1edc91a7ff45d2e041b0843129e2985bffe01
[ "MIT" ]
null
null
null
""" ASGI config for fitness project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTI...
23
78
0.785166
9243f33413acbb55cfd965555f439ab4e892c256
3,194
py
Python
django_fastpbkdf2/tests/tests.py
travcunn/django-pbkdf2
4c0304de206d3f99bbcd8b3c4de4121035fd44bd
[ "BSD-3-Clause" ]
null
null
null
django_fastpbkdf2/tests/tests.py
travcunn/django-pbkdf2
4c0304de206d3f99bbcd8b3c4de4121035fd44bd
[ "BSD-3-Clause" ]
4
2015-11-12T02:48:36.000Z
2015-11-13T00:11:36.000Z
django_fastpbkdf2/tests/tests.py
travcunn/django-pbkdf2
4c0304de206d3f99bbcd8b3c4de4121035fd44bd
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.hashers import (is_password_usable, check_password, make_password, get_hasher) from django.test.utils import override_settings from django.test import TestCase from django_fastpbkdf2.hashers import (FastPBKDF2PasswordHasher, FastPBKDF2SHA1PasswordHasher) PASSWORD_HASHERS = ( 'dja...
40.948718
79
0.697558
69fa11cc60ea298adf2b3b8102ba5fa7f957303b
6,480
py
Python
envconfig/setting_types.py
ely-as/django-envconfig
23da3d5d0f4bc8103ff68c27db82506c728dde7e
[ "MIT" ]
4
2020-12-06T22:12:20.000Z
2022-01-06T21:43:59.000Z
envconfig/setting_types.py
ely-as/django-envconfig
23da3d5d0f4bc8103ff68c27db82506c728dde7e
[ "MIT" ]
null
null
null
envconfig/setting_types.py
ely-as/django-envconfig
23da3d5d0f4bc8103ff68c27db82506c728dde7e
[ "MIT" ]
null
null
null
from typing import Dict, List # NOTE(elyas): pydantic (or similar) may offer a more robust method of # defining setting types. For example, JSON does not support storing Python # tuples, but settings like ADMINS (i.e. List[Tuple[str, str]]) may require # list elements to be cast to tuple. _setting_types: Dict[str, Lis...
36.610169
117
0.644599
c4d27afb81de5f0532a18b17558c6c2179e29ade
14,226
py
Python
bigbench/models/huggingface_models.py
lewkowycz/BIG-bench
234c42ef7ecfcaa57a2c45663f352bc53d673658
[ "Apache-2.0" ]
null
null
null
bigbench/models/huggingface_models.py
lewkowycz/BIG-bench
234c42ef7ecfcaa57a2c45663f352bc53d673658
[ "Apache-2.0" ]
null
null
null
bigbench/models/huggingface_models.py
lewkowycz/BIG-bench
234c42ef7ecfcaa57a2c45663f352bc53d673658
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.553776
93
0.579432
76864f9661a7aa71b9120261af78212f01522677
2,696
py
Python
monkTools.py
atria-tools/monk
4961457f4db5dfa98fc6001a289c24e460e5b025
[ "Apache-2.0" ]
null
null
null
monkTools.py
atria-tools/monk
4961457f4db5dfa98fc6001a289c24e460e5b025
[ "Apache-2.0" ]
1
2015-03-22T12:37:18.000Z
2015-03-22T12:37:18.000Z
monkTools.py
HeeroYui/monk
4961457f4db5dfa98fc6001a289c24e460e5b025
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os import shutil import errno import monkDebug as debug import fnmatch def get_run_folder(): return os.getcwd() def get_current_path(file): return os.path.dirname(os.path.realpath(file)) def create_directory_of_file(file): folder = os.path.dirname(file) try: os.stat(folder) except: ...
23.858407
76
0.683605
d336b1bd1ff1b29584a53266fff8fd85ecff9e16
103,919
py
Python
tests/core.py
dmnpignaud/incubator-airflow
9b5d2f6f6ca5f81e94169f1fd49e4372d0e88bfb
[ "Apache-2.0" ]
null
null
null
tests/core.py
dmnpignaud/incubator-airflow
9b5d2f6f6ca5f81e94169f1fd49e4372d0e88bfb
[ "Apache-2.0" ]
1
2018-11-05T21:12:08.000Z
2019-07-26T21:00:05.000Z
tests/core.py
KargoGlobal/incubator-airflow
84a55f3e546cfbfd5f47302537444c8c8c4d2753
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# -*- 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 under the Apache License, Version 2.0 (the #...
40.061295
109
0.61317
383f7ba69ed68e0052901728010b2c1912179075
17,390
py
Python
autorest/python/emsapi/operations/navigation_operations.py
ge-flight-analytics/ems-api-wrappers
5e787e0cbc72e7a3b06fa83ff6ba07968231f89c
[ "MIT" ]
2
2017-02-20T18:32:02.000Z
2018-08-01T11:45:29.000Z
autorest/python/emsapi/operations/navigation_operations.py
ge-flight-analytics/ems-api-wrappers
5e787e0cbc72e7a3b06fa83ff6ba07968231f89c
[ "MIT" ]
10
2017-02-20T16:17:04.000Z
2019-04-02T16:52:49.000Z
autorest/python/emsapi/operations/navigation_operations.py
ge-flight-analytics/ems-api-wrappers
5e787e0cbc72e7a3b06fa83ff6ba07968231f89c
[ "MIT" ]
2
2017-02-18T23:22:20.000Z
2017-02-20T19:35:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
42.208738
123
0.667395
e64b5a3feb82438655f73fdb5d9d2ff9565911fa
8,250
py
Python
code/train_nnPTRS.py
hakyimlab/ptrs-tf
3518e234d4db0b2461c79e21c98e65e59748c87a
[ "MIT" ]
3
2021-02-05T16:20:00.000Z
2021-08-22T00:13:59.000Z
code/train_nnPTRS.py
hakyimlab/ptrs-tf
3518e234d4db0b2461c79e21c98e65e59748c87a
[ "MIT" ]
null
null
null
code/train_nnPTRS.py
hakyimlab/ptrs-tf
3518e234d4db0b2461c79e21c98e65e59748c87a
[ "MIT" ]
3
2021-02-05T16:20:02.000Z
2021-11-18T01:36:00.000Z
import argparse parser = argparse.ArgumentParser(prog='train_nnPTRS.py', description=''' Train neural net (CNN or MLP) using tensorflow 2.0 keras ''') parser.add_argument('--training-set', required=True, help=''' Predicted expression matrix (HDF5 generated by predixcan_prediction.py) ''') parser.add_argument('-...
38.372093
151
0.715636
11de97beafa613b836d8bf2b489fdd7da4280b08
16,492
py
Python
surveytools/quicklook.py
barentsen/vphastools
214ddea35d2628034c236c5647a977fc2bad6572
[ "MIT" ]
null
null
null
surveytools/quicklook.py
barentsen/vphastools
214ddea35d2628034c236c5647a977fc2bad6572
[ "MIT" ]
8
2015-05-18T16:31:28.000Z
2017-10-17T05:25:37.000Z
surveytools/quicklook.py
barentsen/vphastools
214ddea35d2628034c236c5647a977fc2bad6572
[ "MIT" ]
4
2016-05-13T14:23:25.000Z
2019-12-02T05:13:58.000Z
"""Tools to create quicklook visualisations of VST/OmegaCAM data.""" from __future__ import (absolute_import, division, print_function, unicode_literals) import os import numpy as np import imageio import matplotlib import matplotlib.pyplot as pl from matplotlib.colors import Normalize, LogNor...
40.821782
117
0.572156
08325e5562966ea4f5c6398d8376278290498da5
5,646
py
Python
src/tools/fix_granule_compression.py
jhkennedy/itslive
68b89b337548fe4e86a3d066c3fb2e4c2aaeed70
[ "MIT" ]
8
2021-02-19T02:29:29.000Z
2021-11-10T05:26:30.000Z
src/tools/fix_granule_compression.py
jhkennedy/itslive
68b89b337548fe4e86a3d066c3fb2e4c2aaeed70
[ "MIT" ]
11
2021-03-29T02:15:38.000Z
2021-11-18T23:29:33.000Z
src/tools/fix_granule_compression.py
jhkennedy/itslive
68b89b337548fe4e86a3d066c3fb2e4c2aaeed70
[ "MIT" ]
3
2021-12-06T06:05:34.000Z
2022-03-13T16:44:44.000Z
#!/usr/bin/env python """ Compress ITS_LIVE granules that are residing in AWS S3 bucket. ATTN: This script should run from AWS EC2 instance to have fast access to the S3 bucket. It takes 2 seconds to upload the file to the S3 bucket from EC2 instance vs. 1.5 minutes to upload the file from laptop to the S3 bucket. Au...
33.408284
151
0.611229
8fbc1ba732aa78afa1c26129c46a4377c0b13df3
5,269
py
Python
libs/python/qumranica/models/reset_logged_in_user_password_request_dto.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
libs/python/qumranica/models/reset_logged_in_user_password_request_dto.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
libs/python/qumranica/models/reset_logged_in_user_password_request_dto.py
Scripta-Qumranica-Electronica/SQE_API_Connectors
aaa9b9eb8709d4257c32ea57321a179c6b1e041a
[ "MIT" ]
null
null
null
# coding: utf-8 """ SQE API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from qumra...
33.993548
124
0.631998
5722142bf5c885e5170b8c6ebf2a4e6e49baa158
1,945
py
Python
tools/bumpversion-tool.py
soumik12345/client
31e4c2b143e6c219ea005fe4477e294f383f6888
[ "MIT" ]
null
null
null
tools/bumpversion-tool.py
soumik12345/client
31e4c2b143e6c219ea005fe4477e294f383f6888
[ "MIT" ]
null
null
null
tools/bumpversion-tool.py
soumik12345/client
31e4c2b143e6c219ea005fe4477e294f383f6888
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import configparser import sys from bumpversion.cli import main as bumpversion_main parser = argparse.ArgumentParser() parser.add_argument("--to-dev", action="store_true", help="bump the dev version") parser.add_argument("--from-dev", action="store_true", help="bump the dev vers...
27.013889
83
0.671979
8e4ddc67c918b80e5d4e0dbbeff04c24a63aa323
4,597
py
Python
vlab_esrs_api/lib/worker/tasks.py
willnx/vlab_esrs
1099e929c862c71a18cd8fb65c6a835c32226c75
[ "Apache-2.0" ]
1
2019-04-10T16:17:16.000Z
2019-04-10T16:17:16.000Z
vlab_esrs_api/lib/worker/tasks.py
willnx/vlab_esrs
1099e929c862c71a18cd8fb65c6a835c32226c75
[ "Apache-2.0" ]
null
null
null
vlab_esrs_api/lib/worker/tasks.py
willnx/vlab_esrs
1099e929c862c71a18cd8fb65c6a835c32226c75
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- """ Entry point logic for available backend worker tasks """ from celery import Celery from vlab_api_common import get_task_logger from vlab_esrs_api.lib import const from vlab_esrs_api.lib.worker import vmware app = Celery('esrs', backend='rpc://', broker=const.VLAB_MESSAGE_BROKER) @app.tas...
34.30597
112
0.679356
5533f1185544ceb14fcb907457e0b068e764aafd
2,820
py
Python
code/sac22-rga/utils.py
hiraaaad/ROMSRSOP
f73c5c4f7dfd26437cdbb2ce17a75693612f16e1
[ "MIT" ]
null
null
null
code/sac22-rga/utils.py
hiraaaad/ROMSRSOP
f73c5c4f7dfd26437cdbb2ce17a75693612f16e1
[ "MIT" ]
null
null
null
code/sac22-rga/utils.py
hiraaaad/ROMSRSOP
f73c5c4f7dfd26437cdbb2ce17a75693612f16e1
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import itertools as it import bz2 import pickle import _pickle as cPickle np.set_printoptions(suppress=True, precision=4) class Node(): def __repr__(self): return f'Cut(id={self.index})' def __init__(self, row, node_prec_SN, node_prec_NS, node_prec_1_SN, node_pre...
40.285714
177
0.656028
efe7bc8da9d4d7f160f951a3b10fc3b6f0064a02
13,798
py
Python
sdk/python/pulumi_aws/dms/replication_subnet_group.py
jen20/pulumi-aws
172e00c642adc03238f89cc9c5a16b914a77c2b1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/dms/replication_subnet_group.py
jen20/pulumi-aws
172e00c642adc03238f89cc9c5a16b914a77c2b1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/dms/replication_subnet_group.py
jen20/pulumi-aws
172e00c642adc03238f89cc9c5a16b914a77c2b1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
45.388158
160
0.664806
323258232ecdcaddddca97b38f0e6e65d982bbd3
1,557
py
Python
tutorials/W1D2_LinearDeepLearning/solutions/W1D2_Tutorial1_Solution_1fed44b0.py
NeuromatchAcademy/course-content-dl
888f0fb5492a352c6975e78624f1b5c76fde30c6
[ "CC-BY-4.0", "BSD-3-Clause" ]
473
2021-04-13T18:27:42.000Z
2022-03-28T14:14:35.000Z
tutorials/W1D2_LinearDeepLearning/solutions/W1D2_Tutorial1_Solution_1fed44b0.py
NeuromatchAcademy/course-content-dl
888f0fb5492a352c6975e78624f1b5c76fde30c6
[ "CC-BY-4.0", "BSD-3-Clause" ]
399
2021-06-07T20:56:59.000Z
2022-01-26T23:05:06.000Z
tutorials/W1D2_LinearDeepLearning/solutions/W1D2_Tutorial1_Solution_1fed44b0.py
NeuromatchAcademy/course-content-dl
888f0fb5492a352c6975e78624f1b5c76fde30c6
[ "CC-BY-4.0", "BSD-3-Clause" ]
170
2021-04-16T11:09:32.000Z
2022-03-31T12:13:52.000Z
class SimpleGraph: def __init__(self, w, b): """Initializing the SimpleGraph Args: w (float): initial value for weight b (float): initial value for bias """ assert isinstance(w, float) assert isinstance(b, float) self.w = torch.tensor([w], requires_grad=True) self.b = torch.te...
27.803571
76
0.676301
cefc0d96c16d6a2d5aba6f27a4802af8381fa302
10,297
py
Python
ternary/lines.py
birdday/python-ternary
75f0696e3330ae1cc7a5267d9e000311ad9aac66
[ "MIT" ]
null
null
null
ternary/lines.py
birdday/python-ternary
75f0696e3330ae1cc7a5267d9e000311ad9aac66
[ "MIT" ]
null
null
null
ternary/lines.py
birdday/python-ternary
75f0696e3330ae1cc7a5267d9e000311ad9aac66
[ "MIT" ]
null
null
null
""" Line plotting functions, draw boundary and gridlines. """ from numpy import arange from matplotlib.lines import Line2D from .helpers import project_point ## Lines ## def line(ax, p1, p2, permutation=None, **kwargs): """ Draws a line on `ax` from p1 to p2. Parameters ---------- ax: Matplotl...
31.108761
79
0.579781
dc6915cfc189766a13aed6724a8c810c5c2314a5
742
py
Python
scp/utils/interpreter.py
ALiwoto/SCP-5170
7f9e52aa19fce11cdb898f25c1818bfb00f34a56
[ "Apache-2.0" ]
21
2021-08-18T06:26:38.000Z
2022-03-20T17:08:47.000Z
scp/utils/interpreter.py
ALiwoto/SCP-5170
7f9e52aa19fce11cdb898f25c1818bfb00f34a56
[ "Apache-2.0" ]
1
2021-08-22T03:42:35.000Z
2021-08-24T12:46:31.000Z
scp/utils/interpreter.py
ALiwoto/SCP-5170
7f9e52aa19fce11cdb898f25c1818bfb00f34a56
[ "Apache-2.0" ]
6
2021-08-18T21:04:49.000Z
2022-03-20T17:08:51.000Z
from pyrogram.utils import ainput from scp.utils.bprint import bprint as print from scp import user, bot async def aexec(code, user, bot): # Make an async function with the code and `exec` it exec( 'async def __ex(user, bot): ' + ''.join(f'\n {a}' for a in code.split('\n')), ) # Get `_...
26.5
68
0.570081
7a9e6cb3d6a4ab7ffc63f080711260be6018d8e9
8,157
py
Python
CaRM_HD189733/scripts/mcmc.py
EduardoCristo/CaRM
9ccc87bfbf33b38f2ffab1fb95fbdf2b2d4606e4
[ "MIT" ]
null
null
null
CaRM_HD189733/scripts/mcmc.py
EduardoCristo/CaRM
9ccc87bfbf33b38f2ffab1fb95fbdf2b2d4606e4
[ "MIT" ]
null
null
null
CaRM_HD189733/scripts/mcmc.py
EduardoCristo/CaRM
9ccc87bfbf33b38f2ffab1fb95fbdf2b2d4606e4
[ "MIT" ]
null
null
null
import numpy as np import random from .aromefit import fitmodel #from .probfun_md import lnprior, lnlike import scipy.optimize as op import emcee import sys import matplotlib.pyplot as plt from copy import deepcopy as dpcy import os from astropy.io import fits import string import json from multiprocessing...
32.759036
126
0.560745
84326e82d279c95a49d4f057946276ac924fc7ba
10,554
py
Python
scripts/check_list_exec.py
gmargaryan/hardy
ef71cdb8f203bca3348c53964a8234db4bb4b99b
[ "Apache-2.0" ]
null
null
null
scripts/check_list_exec.py
gmargaryan/hardy
ef71cdb8f203bca3348c53964a8234db4bb4b99b
[ "Apache-2.0" ]
null
null
null
scripts/check_list_exec.py
gmargaryan/hardy
ef71cdb8f203bca3348c53964a8234db4bb4b99b
[ "Apache-2.0" ]
null
null
null
import yaml import re from netmiko import Netmiko import Cisco_Firewall_Benchmark_scripts import Cisco_IOS_15_Benchmark_scripts import Ubuntu_Linux_Benchmark_scripts def print_output(description, result, level, score): description_format = "{:<80}".format(description) print (" " + description_format, level + "...
38.801471
163
0.585749
8e5977e5b119a6c2da500217aca0c70acf67cf10
2,995
py
Python
tools/mod_input_file.py
real-space/juRS
0975dd6c30ef3344a89ff3f203043338e5588f0a
[ "MIT" ]
3
2021-03-05T10:30:29.000Z
2022-02-28T13:10:32.000Z
tools/mod_input_file.py
real-space/juRS
0975dd6c30ef3344a89ff3f203043338e5588f0a
[ "MIT" ]
null
null
null
tools/mod_input_file.py
real-space/juRS
0975dd6c30ef3344a89ff3f203043338e5588f0a
[ "MIT" ]
1
2022-02-28T13:10:32.000Z
2022-02-28T13:10:32.000Z
#!/use/bin/env python #---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0 #-- #-- mod_input_file.py #-- ## @brief Python class input_file is the dictionary associating juRS keywords and values # @author Shigeru Tsukamoto (s.tsukamoto@fz-juelich.de) class input_file: ...
26.043478
101
0.445409
00c166e9fe0525cfa2d0d66934b8037319af4b8a
16,128
py
Python
pytext/main.py
twild-fb/pytext
07cadc0d130dac30d71d9da70380f124b3f5ac59
[ "BSD-3-Clause" ]
1
2019-11-02T05:02:01.000Z
2019-11-02T05:02:01.000Z
pytext/main.py
twild-fb/pytext
07cadc0d130dac30d71d9da70380f124b3f5ac59
[ "BSD-3-Clause" ]
null
null
null
pytext/main.py
twild-fb/pytext
07cadc0d130dac30d71d9da70380f124b3f5ac59
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import json import pprint import sys import tempfile from importlib import import_module from pydoc import locate from typing import Dict, List, Optional, Union import click import torch from pytext import create_predictor f...
34.461538
92
0.654018
f983fb8fcdfae590fd01fba1d60f384f68435c2f
1,376
py
Python
wbia/web/modules/users/models.py
WildMeOrg/wildbook-ia
a18d57611e5936bea02a964716466e062415aa1a
[ "Apache-2.0" ]
20
2021-01-19T23:17:21.000Z
2022-03-21T10:25:56.000Z
wbia/web/modules/users/models.py
solomonkimunyu/wildbook-ia
ac433d4f2a47b1d905c421a36c497f787003afc3
[ "Apache-2.0" ]
16
2021-01-28T23:05:29.000Z
2022-03-31T20:39:36.000Z
wbia/web/modules/users/models.py
solomonkimunyu/wildbook-ia
ac433d4f2a47b1d905c421a36c497f787003afc3
[ "Apache-2.0" ]
9
2021-02-13T20:19:46.000Z
2022-03-29T10:47:11.000Z
# -*- coding: utf-8 -*- """ User database models -------------------- """ import logging from sqlalchemy_utils import types as column_types from flask_login import current_user # NOQA from wbia.web.extensions import db, TimestampViewed import uuid log = logging.getLogger(__name__) class User(db.Model, Timestamp...
22.933333
86
0.614826
415dd9dc661515f7dd93e7d87e3ad8ca3b8a6e80
312
py
Python
procgame/desktop/__init__.py
Curbfeeler/PinbotFromES
e12734afa37c4c0accef762f39d42503392c8f5b
[ "MIT" ]
null
null
null
procgame/desktop/__init__.py
Curbfeeler/PinbotFromES
e12734afa37c4c0accef762f39d42503392c8f5b
[ "MIT" ]
null
null
null
procgame/desktop/__init__.py
Curbfeeler/PinbotFromES
e12734afa37c4c0accef762f39d42503392c8f5b
[ "MIT" ]
null
null
null
# We have two implementations of the Desktop class. One for pyglet, one for pygame. # The pyglet version is prettier, so we will try to import it first. try: import pyglet as _pyglet except ImportError: _pyglet = None if _pyglet: from desktop_pyglet import Desktop else: from desktop_pygame import Desktop
26
84
0.782051
a2e1c0654be1e2c2fd9f4fc98b322f945ffebd5e
6,577
py
Python
rllab/sampler/stateful_pool.py
bohan-zhang/rllab
4d251a2fd46072c6b66141857bc88c59c2d17598
[ "MIT" ]
null
null
null
rllab/sampler/stateful_pool.py
bohan-zhang/rllab
4d251a2fd46072c6b66141857bc88c59c2d17598
[ "MIT" ]
null
null
null
rllab/sampler/stateful_pool.py
bohan-zhang/rllab
4d251a2fd46072c6b66141857bc88c59c2d17598
[ "MIT" ]
null
null
null
from joblib.pool import MemmappingPool import multiprocessing as mp from rllab.misc import logger import pyprind import time import traceback import sys class ProgBarCounter(object): def __init__(self, total_count): self.total_count = total_count self.max_progress = 1000000 self.cur_progre...
33.385787
109
0.566672
5c28b2eaa634aab7cc1c102d3c18d9b88cafba2a
18,332
py
Python
cltk/corpus/utils/importer.py
mcnorton05/cltk
80dbbd6ee378ed4a6dd1723e4405e314b25f1638
[ "MIT" ]
1
2020-05-01T08:21:22.000Z
2020-05-01T08:21:22.000Z
cltk/corpus/utils/importer.py
ecomp-shONgit/cltk
7bc3ffd1bbbfa5d036297395d7e51b99b25b81ea
[ "MIT" ]
null
null
null
cltk/corpus/utils/importer.py
ecomp-shONgit/cltk
7bc3ffd1bbbfa5d036297395d7e51b99b25b81ea
[ "MIT" ]
null
null
null
"""Import CLTK corpora. TODO: Fix so ``import_corpora()`` can take relative path. TODO: Add https://github.com/cltk/pos_latin """ from cltk.corpus.akkadian.corpora import AKKADIAN_CORPORA from cltk.corpus.arabic.corpora import ARABIC_CORPORA from cltk.corpus.chinese.corpora import CHINESE_CORPORA from cltk.corpus.copti...
46.292929
120
0.59808
2ce889c3f86bd182ec5291ac1345169ff21aa0d7
1,662
py
Python
src/tests/test_api_1_users/test_users_auth_fail.py
devsetgo/backend-services-api
4238e335a4079f566a4aecf06c45d54c7e7a9b16
[ "MIT" ]
null
null
null
src/tests/test_api_1_users/test_users_auth_fail.py
devsetgo/backend-services-api
4238e335a4079f566a4aecf06c45d54c7e7a9b16
[ "MIT" ]
93
2019-12-27T22:55:36.000Z
2022-03-12T00:29:37.000Z
src/tests/test_api_1_users/test_users_auth_fail.py
devsetgo/backend-services-api
4238e335a4079f566a4aecf06c45d54c7e7a9b16
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import secrets import uuid from starlette.testclient import TestClient from src.main import app client = TestClient(app) directory_to__files: str = "data" test_data = { "user_name": "bob", "password": "1234", "passwordTwo": "1234", "email": "bob@bob.com", "notes": "Gumbo ...
25.569231
66
0.700361
c6bb4db13995f355979ec9d2bc75c55d0ab5fda9
5,588
py
Python
install_package_control.py
evandrocoan/SublimePackageDefault
ff47d47b59fc3ff2c1146168605ed85ace1f3b0e
[ "Unlicense", "MIT" ]
3
2018-12-08T21:44:45.000Z
2019-03-01T03:22:32.000Z
install_package_control.py
evandrocoan/SublimePackageDefault
ff47d47b59fc3ff2c1146168605ed85ace1f3b0e
[ "Unlicense", "MIT" ]
null
null
null
install_package_control.py
evandrocoan/SublimePackageDefault
ff47d47b59fc3ff2c1146168605ed85ace1f3b0e
[ "Unlicense", "MIT" ]
null
null
null
import base64 import binascii import os import threading from urllib.error import URLError from urllib.request import build_opener, install_opener, ProxyHandler, urlopen import certifi import sublime import sublime_api import sublime_plugin class InstallPackageControlCommand(sublime_plugin.ApplicationCommand): ...
32.488372
103
0.604152
2e36a53165bd08f6d419a56a88babdc3732278ca
2,281
py
Python
Raumplanung.py
ostseegloeckchen/basics
218b29c62f575d88c27104c05fee917b3466e8d0
[ "bzip2-1.0.6" ]
null
null
null
Raumplanung.py
ostseegloeckchen/basics
218b29c62f575d88c27104c05fee917b3466e8d0
[ "bzip2-1.0.6" ]
null
null
null
Raumplanung.py
ostseegloeckchen/basics
218b29c62f575d88c27104c05fee917b3466e8d0
[ "bzip2-1.0.6" ]
null
null
null
#Finde für einen beliebigen Raum alle Nachbarräume #Vereinige zwei Raumpläne (die sich möglicherweise überschneiden) zu einem größerem Gesamtplan def finde_nachbarraeume(plan, raum): """Menge aller Nachbarräume""" raeume, tueren=plan t_raum=set(t for t in tueren if raum in t) #1 Menge der Türen ...
36.790323
127
0.660675
351ba64be77be850a1cf81e244ca39cbe1b237e5
2,553
py
Python
tests/manifest/test_platform.py
djmattyg007/dreg-client
4f5c4c427d2ee721e68a63df1b8c5c7ded8361c6
[ "Apache-2.0" ]
3
2021-09-05T14:35:43.000Z
2022-03-04T16:16:43.000Z
tests/manifest/test_platform.py
djmattyg007/dreg-client
4f5c4c427d2ee721e68a63df1b8c5c7ded8361c6
[ "Apache-2.0" ]
2
2022-01-17T15:05:28.000Z
2022-03-09T13:14:25.000Z
tests/manifest/test_platform.py
djmattyg007/dreg-client
4f5c4c427d2ee721e68a63df1b8c5c7ded8361c6
[ "Apache-2.0" ]
1
2022-03-08T08:58:59.000Z
2022-03-08T08:58:59.000Z
import re import pytest from dreg_client.manifest import InvalidPlatformNameError, Platform def test_extract_no_variant(): platform = Platform.extract( { "os": "linux", "architecture": "amd64", } ) assert platform.os == "linux" assert platform.architecture == ...
30.035294
85
0.640031
bdd6d3cb0f0a6f390574e594ce668bf5c487258a
32,857
py
Python
modules/aruco/misc/pattern_generator/MarkerPrinterGUI.py
ptelang/opencv_contrib
dd68e396c76f1db4d82e5aa7a6545580939f9b9d
[ "Apache-2.0" ]
35
2021-01-07T11:58:58.000Z
2022-03-25T11:35:25.000Z
modules/aruco/misc/pattern_generator/MarkerPrinterGUI.py
ptelang/opencv_contrib
dd68e396c76f1db4d82e5aa7a6545580939f9b9d
[ "Apache-2.0" ]
4
2019-10-14T00:06:28.000Z
2021-05-06T19:51:46.000Z
modules/aruco/misc/pattern_generator/MarkerPrinterGUI.py
ptelang/opencv_contrib
dd68e396c76f1db4d82e5aa7a6545580939f9b9d
[ "Apache-2.0" ]
9
2020-12-14T09:13:30.000Z
2021-12-13T07:03:53.000Z
#!/usr/bin/env python3 # SPDX-License-Identifier: BSD-3-Clause # # Copyright (c) 2019, Josh Chien. All rights reserved. from MarkerPrinter import * import tkinter as tk from tkinter import ttk, filedialog, messagebox import time import PIL.Image import PIL.ImageTk class MarkerPrinterGUI: def VisDPI(self, sha...
58.051237
247
0.697781
c51818e8881664f40dc254201e746a188a5710c8
6,406
py
Python
2048/2048.py
PvrpleBlvck/Python_Learning_Journey
fcc57a21addf267677e61bfb8ccd05b63b085558
[ "MIT" ]
1
2021-12-08T18:54:42.000Z
2021-12-08T18:54:42.000Z
2048/2048.py
PvrpleBlvck/Escuela
fcc57a21addf267677e61bfb8ccd05b63b085558
[ "MIT" ]
7
2021-12-09T15:52:44.000Z
2022-01-02T05:57:52.000Z
2048/2048.py
PvrpleBlvck/Escuela
fcc57a21addf267677e61bfb8ccd05b63b085558
[ "MIT" ]
null
null
null
#pvrple 2048 from tkinter import * from tkinter import messagebox import random class Board: bg_color={ '2': '#eee4da', '4': '#ede0c8', '8': '#edc850', '16': '#edc53f', '32': '#f67c5f', '64': '#f65e3b', '128': '#edcf72', '256': '#edcc61', '...
28.986425
103
0.494692
3498662475ae02007de4995576d305348699a9d5
506
py
Python
myinsta/forms.py
Edwike12/Instagram-clone
2beefc66851f70524c440b655d4cb0dc9ad9c762
[ "MIT" ]
null
null
null
myinsta/forms.py
Edwike12/Instagram-clone
2beefc66851f70524c440b655d4cb0dc9ad9c762
[ "MIT" ]
null
null
null
myinsta/forms.py
Edwike12/Instagram-clone
2beefc66851f70524c440b655d4cb0dc9ad9c762
[ "MIT" ]
null
null
null
from .models import * from django.forms import ModelForm from django import forms class ProfileForm(ModelForm): class Meta: model = Profile exclude = ['user'] class UpdateProfileForm(forms.ModelForm): class Meta: model = Profile exclude = ['user'] class PostForm(forms.ModelFor...
22
41
0.620553
1f7abda55d3762a5f7ebc577687cb6dfa36599fe
678
py
Python
config.py
akleber/fronius-mqtt-bridge
74de07dfbcfd632dff9a6ada8355ebcfbfd56e41
[ "MIT" ]
null
null
null
config.py
akleber/fronius-mqtt-bridge
74de07dfbcfd632dff9a6ada8355ebcfbfd56e41
[ "MIT" ]
null
null
null
config.py
akleber/fronius-mqtt-bridge
74de07dfbcfd632dff9a6ada8355ebcfbfd56e41
[ "MIT" ]
null
null
null
#!/usr/bin/env python BROKER_HOST = 'mosquitto.kleber' BROKER_PORT = 1883 INFLUXDB_HOST = 'influxdb.kleber' FRONIUS_HOST = 'fronius.kleber' FRONIUS_MQTT_PREFIX = 'fronius' ENERGYMETER_MQTT_PREFIX = 'energymeter' MODBUS_HOST = 'fronius.kleber' BATTERY_MQTT_PREFIX = 'battery' PV_P_TOPIC = 'fronius/p_pv' SET_CHG_PCT_...
20.545455
41
0.781711
1b9988c2892051cff04607589860fdb566991346
2,756
py
Python
sortJsonByRun.py
rovere/utilities
fe864dbe45f688ef9070deb5eb6e9cbd4fb359a4
[ "MIT" ]
null
null
null
sortJsonByRun.py
rovere/utilities
fe864dbe45f688ef9070deb5eb6e9cbd4fb359a4
[ "MIT" ]
null
null
null
sortJsonByRun.py
rovere/utilities
fe864dbe45f688ef9070deb5eb6e9cbd4fb359a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python import json import sys def merge_intervals(intervals): if not intervals: return [] intervals = sorted(intervals, key = lambda x: x[0]) result = [] (a, b) = intervals[0] for (x, y) in intervals[1:]: if x <= b: b = max(b, y) else: ...
24.828829
80
0.544993
5d739c5375ebc57fdf4e0506f2017878682158eb
13,789
py
Python
sdk/python/pulumi_azure_native/network/v20170601/subnet.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20170601/subnet.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20170601/subnet.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
68.60199
4,531
0.709696
63384c97bdb3e4f54942758c62987336fc7e7f8f
14,472
py
Python
sympy/integrals/quadrature.py
eriknw/sympy
b7544e2bb74c011f6098a7e886fd77f41776c2c4
[ "BSD-3-Clause" ]
7
2015-01-14T06:55:33.000Z
2018-08-11T14:43:52.000Z
sympy/integrals/quadrature.py
pbeltran/sympy-1
94f92b36731c2bebe6de1037c063c2a258a8a399
[ "BSD-3-Clause" ]
1
2018-02-19T04:56:04.000Z
2018-02-19T04:56:04.000Z
sympy/integrals/quadrature.py
pbeltran/sympy-1
94f92b36731c2bebe6de1037c063c2a258a8a399
[ "BSD-3-Clause" ]
1
2016-04-24T14:39:22.000Z
2016-04-24T14:39:22.000Z
from sympy.core import S, Dummy, pi from sympy.functions.combinatorial.factorials import factorial from sympy.functions.elementary.trigonometric import sin, cos from sympy.functions.elementary.miscellaneous import sqrt from sympy.functions.special.gamma_functions import gamma from sympy.polys.orthopolys import legendre...
29.118712
107
0.586166
b54c52a6d9c5041e4341861f6e80006e34b18a73
10,901
py
Python
WeblogicScanLot/poc/CVE_2016_3510.py
y11en/super-guacamole
e15697e58895ed684a8076f95a0d2ab6d43d98d2
[ "Apache-2.0" ]
32
2020-07-15T06:22:06.000Z
2022-02-15T02:29:36.000Z
WeblogicScanLot/poc/CVE_2016_3510.py
wonderkun/Penetration_Testing_POC
563c356a1ca9f50d8ad336aa061149830c00de1a
[ "Apache-2.0" ]
1
2021-06-02T02:55:26.000Z
2021-06-02T02:55:26.000Z
WeblogicScanLot/poc/CVE_2016_3510.py
wonderkun/Penetration_Testing_POC
563c356a1ca9f50d8ad336aa061149830c00de1a
[ "Apache-2.0" ]
8
2020-07-15T06:22:25.000Z
2022-01-26T03:11:33.000Z
#!/usr/bin/env python3 # _*_ coding:utf-8 _*_ ''' ____ _ _ _ _ __ __ _ | _ \ __ _| |__ | |__ (_) |_| \/ | __ _ ___| | __ | |_) / _` | '_ \| '_ \| | __| |\/| |/ _` / __| |/ / | _ < (_| | |_) | |_) | | |_| | | | (_| \__ \ < |_| \_\__,_|_.__/|_.__/|_|\__|_| |_|\__,_|___/_|\_...
151.402778
4,459
0.914045
b852afe06698f22a17fc1d879fdefbeaa1922f85
3,354
py
Python
lib/globals.py
sbostick/cheat.sh
97b63585f4f5fb0f1889774fe126d87d50b69563
[ "MIT" ]
2
2019-03-03T15:58:17.000Z
2021-06-21T19:59:07.000Z
lib/globals.py
crazyrex/cheat.sh
97b63585f4f5fb0f1889774fe126d87d50b69563
[ "MIT" ]
null
null
null
lib/globals.py
crazyrex/cheat.sh
97b63585f4f5fb0f1889774fe126d87d50b69563
[ "MIT" ]
null
null
null
""" Global configuration of the project. All hardcoded pathes and other data should be (theoretically) here. """ from __future__ import print_function import logging import os import yaml from pygments.styles import get_all_styles USE_OS_PACKAGES = True # set to False if you pull cheat sheets repositories from GitHu...
33.54
91
0.676506
fabb4c88ab0858ba5025ec7cb0404c8891148595
683
py
Python
services/digdag/etl/util/env_builder.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
1
2021-09-17T20:41:45.000Z
2021-09-17T20:41:45.000Z
services/digdag/etl/util/env_builder.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
null
null
null
services/digdag/etl/util/env_builder.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
null
null
null
import json class EnvBuilder: """A utility to assemble environment config for a pod""" env = [] def __init__(self): self.env = [] def add_value(self, key, value): _value = {} _value["name"] = key _value["value"] = value self.env.append(_value) def add_s...
19.514286
60
0.480234
78984215262da1ea4922da7c11b04dfb3f1c85af
947
py
Python
src/preprocess_prices.py
vtad4f/stream_clustering
2e2c2fec612cc072bdfdf6a304aab011b24f6a4f
[ "MIT" ]
null
null
null
src/preprocess_prices.py
vtad4f/stream_clustering
2e2c2fec612cc072bdfdf6a304aab011b24f6a4f
[ "MIT" ]
null
null
null
src/preprocess_prices.py
vtad4f/stream_clustering
2e2c2fec612cc072bdfdf6a304aab011b24f6a4f
[ "MIT" ]
null
null
null
from collections import OrderedDict import csv import json import os DATA_DIR = 'data' if __name__ == '__main__': """ BRIEF Parse https://db.ygoprodeck.com/api/v7/cardinfo.php and translate it to a csv file so that the multiflow FileStream can read it. ...
27.852941
78
0.549102
f4cb9f2d6a6bb87133df7dedcb1ee9dcd62376df
530
py
Python
_scripts/parse.py
KaiL4eK/keras_traffic_signs_localization
38d5f9b2a11c5db04850ddba3ae91f18dcb98066
[ "MIT" ]
4
2019-01-03T18:21:39.000Z
2022-01-25T00:24:07.000Z
_scripts/parse.py
KaiL4eK/keras_traffic_signs_localization
38d5f9b2a11c5db04850ddba3ae91f18dcb98066
[ "MIT" ]
1
2020-09-26T00:37:57.000Z
2020-09-26T00:37:57.000Z
_scripts/parse.py
KaiL4eK/keras_traffic_signs_localization
38d5f9b2a11c5db04850ddba3ae91f18dcb98066
[ "MIT" ]
null
null
null
from __future__ import print_function import os import cv2 import argparse parser = argparse.ArgumentParser(description='Process video with ANN') parser.add_argument('filepath', action='store', help='Path to video file to process') args = parser.parse_args() def parse_file(): img_ref = cv2.imread(args.filepath) ...
17.666667
85
0.733962
70bfc013870097e184dc00185cc58d7446939471
499
py
Python
day04/part2.py
Olson3R/aoc-2019-py
3abf686ec2b2784edf618322576692846f5a00e7
[ "MIT" ]
null
null
null
day04/part2.py
Olson3R/aoc-2019-py
3abf686ec2b2784edf618322576692846f5a00e7
[ "MIT" ]
null
null
null
day04/part2.py
Olson3R/aoc-2019-py
3abf686ec2b2784edf618322576692846f5a00e7
[ "MIT" ]
null
null
null
import itertools def test_num(num): str_num = str(num) if 2 not in list(map(lambda grp: len(grp), list("".join(g) for k, g in itertools.groupby(str_num)))): return False return list(str_num) == sorted(str_num) def process(start, end): count = 0 for num in range(start, end + 1): if test_num(num): ...
21.695652
103
0.647295
60613e423147b1da289eac0e2aae121a014ff5e3
492
py
Python
Imaobong Tom/Phase 1/Python Basic 1/Day 5/Ques.2.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Imaobong Tom/Phase 1/Python Basic 1/Day 5/Ques.2.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Imaobong Tom/Phase 1/Python Basic 1/Day 5/Ques.2.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
def lowest_multiple(a,b): factors = [] c = a * b if a > b: for i in range(a, c+1): if i % b == 0 or i % a == 0: factors.append(i) return print(f"The lowest common multiple of {a} and {b} is", factors[0]) if b > a: for i in range (b, c+1): i...
25.894737
81
0.481707
a1887718ff0b405721f46c8b54b57520d537307a
433
py
Python
articles/migrations/0002_article_create_time.py
0dspace/Django_Blog
cf55a29fd7d0937b6c26c51307a574c9ef80b039
[ "MIT" ]
null
null
null
articles/migrations/0002_article_create_time.py
0dspace/Django_Blog
cf55a29fd7d0937b6c26c51307a574c9ef80b039
[ "MIT" ]
null
null
null
articles/migrations/0002_article_create_time.py
0dspace/Django_Blog
cf55a29fd7d0937b6c26c51307a574c9ef80b039
[ "MIT" ]
null
null
null
# Generated by Django 2.0.4 on 2018-04-14 07:45 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('articles', '0001_initial'), ] operations = [ migrations.AddField( model_name='article', ...
21.65
74
0.625866
a69e784e1ebb9008caddff631495ac7b5c884daf
12,649
py
Python
build/cpython_defs.py
akavel/oil
eb035e811fdef255472e149aec3044ce1ff022df
[ "Apache-2.0" ]
null
null
null
build/cpython_defs.py
akavel/oil
eb035e811fdef255472e149aec3044ce1ff022df
[ "Apache-2.0" ]
null
null
null
build/cpython_defs.py
akavel/oil
eb035e811fdef255472e149aec3044ce1ff022df
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 """ parse_cpython.py """ from __future__ import print_function import errno import os import re import sys from core.pyerror import log # TODO: Could move these to a place where they don't depend on Oil from frontend.lexer_def import C, R C_DEF = [ R(r'#.*', 'Comment'), R(r'[ \t\n]+', 'Wh...
25.097222
81
0.590402
efba6f7f39913578e072072ba4b978115dc646b9
205
py
Python
system_d/coffee.py
objarni/gothpy_fun
9678092e7da16bc307b263aa963863672901f050
[ "MIT" ]
null
null
null
system_d/coffee.py
objarni/gothpy_fun
9678092e7da16bc307b263aa963863672901f050
[ "MIT" ]
null
null
null
system_d/coffee.py
objarni/gothpy_fun
9678092e7da16bc307b263aa963863672901f050
[ "MIT" ]
null
null
null
def get_coffee_weight(): # Fake implementation! return 0.5 # Half-full or half-empty? We'll leave it to you to debate ;) def update_lamp_status(poll_coffee_weight=get_coffee_weight): pass
20.5
77
0.726829
606d78bf034f3e79a5f35bdeda6138ffcfbe2215
1,183
py
Python
tests/test_last_item.py
aefalcon/iterable_collections
8e3b4ea84083a100413f23af30ea27dfd4b838ff
[ "MIT" ]
4
2018-06-05T14:07:56.000Z
2021-04-17T12:09:23.000Z
tests/test_last_item.py
aefalcon/iterable_collections
8e3b4ea84083a100413f23af30ea27dfd4b838ff
[ "MIT" ]
1
2018-07-10T19:53:54.000Z
2018-07-10T19:58:38.000Z
tests/test_last_item.py
aefalcon/iterable_collections
8e3b4ea84083a100413f23af30ea27dfd4b838ff
[ "MIT" ]
2
2020-01-29T10:51:11.000Z
2021-11-11T21:37:24.000Z
import unittest from operator import itemgetter from iterable_collections import collect class TestLastItem(unittest.TestCase): def test_list(self): c = collect(list(range(10))) with self.assertRaises(ValueError): c.last_item() def test_set(self): c = collect(set(range(1...
29.575
103
0.598478
a3565d6985909a628569ce0e0f4efdac5fea92d8
1,709
py
Python
astroquery/skyview/tests/test_skyview_remote.py
dmcollom/astroquery
3a6febe2a532f9e2a34dab0413f37f21c7025d1b
[ "BSD-3-Clause" ]
null
null
null
astroquery/skyview/tests/test_skyview_remote.py
dmcollom/astroquery
3a6febe2a532f9e2a34dab0413f37f21c7025d1b
[ "BSD-3-Clause" ]
1
2021-06-25T15:14:44.000Z
2021-06-25T15:14:44.000Z
astroquery/skyview/tests/test_skyview_remote.py
y1ngyang/astroquery
880862a7a2afe85c7d3644d1a099774260116f2a
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import pytest from astropy.tests.helper import remote_data from astropy.io.fits import HDUList from ...skyview import SkyView from .test_skyview import data_path @remote_data def test_get_image_list(): urls = SkyView().get_image_list(position='Eta ...
32.245283
78
0.630778
e10b27700320401e5155adb3519ac5d4e163d910
5,189
py
Python
CIM15/IEC61970/Informative/InfCommon/Craft.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
58
2015-04-22T10:41:03.000Z
2022-03-29T16:04:34.000Z
CIM15/IEC61970/Informative/InfCommon/Craft.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
12
2015-08-26T03:57:23.000Z
2020-12-11T20:14:42.000Z
CIM15/IEC61970/Informative/InfCommon/Craft.py
MaximeBaudette/PyCIM
d68ee5ccfc1d32d44c5cd09fb173142fb5ff4f14
[ "MIT" ]
35
2015-01-10T12:21:03.000Z
2020-09-09T08:18:16.000Z
# Copyright (C) 2010-2011 Richard Lincoln # # 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, merge, publish...
36.542254
425
0.650992
807f37206a95a4cca209de5b92237b6bf324013a
179
py
Python
Darlington/phase2/TUPLE/day 52 solution/qtn1.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Darlington/phase2/TUPLE/day 52 solution/qtn1.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Darlington/phase2/TUPLE/day 52 solution/qtn1.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
#program to creat a tuple ##Create an empty tuple x = () print(x) #Create an empty tuple with tuple() function built-in Python tuplex = tuple() print(tuplex) t = tuple() print(t)
19.888889
60
0.709497
0fd6f435dca33bcdaddc86f46b6d80a555f0f896
487
bzl
Python
constants.bzl
maxwellE/bazel-diff
864b02e2a93ff881657b65d1de2fd28ea18ffab6
[ "BSD-3-Clause" ]
null
null
null
constants.bzl
maxwellE/bazel-diff
864b02e2a93ff881657b65d1de2fd28ea18ffab6
[ "BSD-3-Clause" ]
null
null
null
constants.bzl
maxwellE/bazel-diff
864b02e2a93ff881657b65d1de2fd28ea18ffab6
[ "BSD-3-Clause" ]
null
null
null
""" Various constants used to build bazel-diff """ DEFAULT_JVM_EXTERNAL_TAG = "3.3" RULES_JVM_EXTERNAL_SHA = "d85951a92c0908c80bd8551002d66cb23c3434409c814179c0ff026b53544dab" BUILD_PROTO_MESSAGE_SHA = "50b79faec3c4154bed274371de5678b221165e38ab59c6167cc94b922d9d9152" BAZEL_DIFF_MAVEN_ARTIFACTS = [ "junit:junit...
27.055556
92
0.767967
176d20bd60d3d042a5b7dc02387e3487b372b4a1
12,977
py
Python
tensorflow/python/training/adam_test.py
HyeonwooNoh/tensorflow_hw
b794611c9b90763ffbe2cb01f91b3a9e33c9b892
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/python/training/adam_test.py
HyeonwooNoh/tensorflow_hw
b794611c9b90763ffbe2cb01f91b3a9e33c9b892
[ "Apache-2.0" ]
48
2016-07-26T00:11:55.000Z
2022-02-23T13:36:33.000Z
tensorflow/python/training/adam_test.py
HyeonwooNoh/tensorflow_hw
b794611c9b90763ffbe2cb01f91b3a9e33c9b892
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.592949
80
0.638668
481bc8c7e753e4ebe820546aab88303319a2eba0
474
py
Python
payu/subcommands/build_cmd.py
coecms/payu
62ca8003848a35e0b69d81217e5ee468ba3fcad3
[ "Apache-2.0" ]
5
2016-05-12T03:17:32.000Z
2018-06-08T23:50:41.000Z
payu/subcommands/build_cmd.py
coecms/payu
62ca8003848a35e0b69d81217e5ee468ba3fcad3
[ "Apache-2.0" ]
134
2019-03-18T22:54:15.000Z
2022-03-29T00:13:39.000Z
payu/subcommands/build_cmd.py
coecms/payu
62ca8003848a35e0b69d81217e5ee468ba3fcad3
[ "Apache-2.0" ]
7
2019-04-02T09:25:08.000Z
2021-01-20T03:15:20.000Z
# coding: utf-8 # Local from payu.experiment import Experiment from payu.laboratory import Laboratory import payu.subcommands.args as args # Configuration title = 'build' parameters = {'description': 'Build the climate model executable'} arguments = [args.model, args.config, args.laboratory] def runcmd(model_type,...
19.75
66
0.753165
2d90c189e8968668e33dc4466e14573d9009045b
1,942
py
Python
gh_gcode/operate_curve.py
naysok/GH_Gcode
dee735d46c05de8c34fb48bd8865781d319a102d
[ "MIT" ]
2
2020-07-22T08:45:41.000Z
2022-02-04T14:34:49.000Z
gh_gcode/operate_curve.py
naysok/GH_Gcode
dee735d46c05de8c34fb48bd8865781d319a102d
[ "MIT" ]
null
null
null
gh_gcode/operate_curve.py
naysok/GH_Gcode
dee735d46c05de8c34fb48bd8865781d319a102d
[ "MIT" ]
null
null
null
import Rhino.Geometry as rg import rhinoscriptsyntax as rs from . import transform tr = transform.Transform() reload(transform) class Curve(): def polyline_to_points(self, polyline): ########## NEW CODE ########## ### Polyline to Points by RhinoCommon pl = rs.coerceg...
24.275
91
0.526262
deaf34e3f22347daf8fce8036edbf2e8c55e9239
285
py
Python
tools_box/_production/doctype/machine_downtime_monitoring/machine_downtime_monitoring.py
maisonarmani/Tools-Box
a2226940afdf0291f031008be1af953d2360acdf
[ "MIT" ]
4
2017-09-25T23:34:08.000Z
2020-07-17T23:52:26.000Z
tools_box/_production/doctype/machine_downtime_monitoring/machine_downtime_monitoring.py
maisonarmani/Tools-Box
a2226940afdf0291f031008be1af953d2360acdf
[ "MIT" ]
null
null
null
tools_box/_production/doctype/machine_downtime_monitoring/machine_downtime_monitoring.py
maisonarmani/Tools-Box
a2226940afdf0291f031008be1af953d2360acdf
[ "MIT" ]
5
2017-06-02T01:58:32.000Z
2022-02-22T16:59:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, masonarmani38@gmail.com and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class MachineDowntimeMonitoring(Document): pass
25.909091
62
0.796491
e821ee416d6462651cac5a5b361da760a3f655e2
2,649
py
Python
babynames/babynames.py
VineetPrasadVerma/Google-s-Python-Class
b4572cc5ba86fa5e82e0f565f7c92aad69173755
[ "Apache-2.0" ]
null
null
null
babynames/babynames.py
VineetPrasadVerma/Google-s-Python-Class
b4572cc5ba86fa5e82e0f565f7c92aad69173755
[ "Apache-2.0" ]
null
null
null
babynames/babynames.py
VineetPrasadVerma/Google-s-Python-Class
b4572cc5ba86fa5e82e0f565f7c92aad69173755
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ import sys import re """Baby Names exercise Define the extract_names() function below and c...
25.970588
79
0.664779
da22fa985b5a3f2d6107027f71cf510655639b6b
6,639
py
Python
datameta/security/__init__.py
ghga-de/datameta
e161b857d97c8563e9f6303eb1fbe86821b64ede
[ "Apache-2.0" ]
7
2021-02-26T13:03:21.000Z
2021-09-23T14:15:24.000Z
datameta/security/__init__.py
ghga-de/datameta
e161b857d97c8563e9f6303eb1fbe86821b64ede
[ "Apache-2.0" ]
255
2021-02-15T19:37:42.000Z
2022-03-30T11:38:54.000Z
datameta/security/__init__.py
ghga-de/datameta
e161b857d97c8563e9f6303eb1fbe86821b64ede
[ "Apache-2.0" ]
1
2021-02-15T19:52:36.000Z
2021-02-15T19:52:36.000Z
# Copyright 2021 Universität Tübingen, DKFZ and EMBL for the German Human Genome-Phenome Archive (GHGA) # # 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...
34.046154
103
0.698599
9b1e8c142cef0e0d972bcf19f81844fb7f89b777
4,576
py
Python
test/sample-test/run_xgboost_test.py
ggaaooppeenngg/pipelines
9b77d4a8a67ab4fa2a10c4b70dd94ef2a83c6097
[ "Apache-2.0" ]
null
null
null
test/sample-test/run_xgboost_test.py
ggaaooppeenngg/pipelines
9b77d4a8a67ab4fa2a10c4b70dd94ef2a83c6097
[ "Apache-2.0" ]
null
null
null
test/sample-test/run_xgboost_test.py
ggaaooppeenngg/pipelines
9b77d4a8a67ab4fa2a10c4b70dd94ef2a83c6097
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.608
121
0.661932
52629c61d3c372a6fb958295d7a7c5358c620115
1,964
py
Python
bazel/_gevent_test_main.py
goodarzysepideh/grpc
5a4ba15346f2dc75960e91148f5f77aa682e0f6a
[ "Apache-2.0" ]
36,552
2015-02-26T17:30:13.000Z
2022-03-31T22:41:33.000Z
bazel/_gevent_test_main.py
goodarzysepideh/grpc
5a4ba15346f2dc75960e91148f5f77aa682e0f6a
[ "Apache-2.0" ]
23,536
2015-02-26T17:50:56.000Z
2022-03-31T23:39:42.000Z
bazel/_gevent_test_main.py
goodarzysepideh/grpc
5a4ba15346f2dc75960e91148f5f77aa682e0f6a
[ "Apache-2.0" ]
11,050
2015-02-26T17:22:10.000Z
2022-03-31T10:12:35.000Z
# Copyright 2021 The gRPC 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 agreed to in writ...
32.196721
117
0.698065
cc1d821943a6560f9efa70a1e3ef23a924d2cfca
4,611
py
Python
agents/hegic_deployer/contracts/btcpriceprovider/contract.py
8ball030/AutonomousHegician
139c4e0d8b67f9ad3fab72353aaad0cb8bf7c263
[ "Apache-2.0" ]
13
2020-11-13T11:29:46.000Z
2021-11-29T18:29:41.000Z
agents/hegic_deployer/contracts/btcpriceprovider/contract.py
8ball030/AutonomousHegician
139c4e0d8b67f9ad3fab72353aaad0cb8bf7c263
[ "Apache-2.0" ]
7
2020-11-13T10:37:16.000Z
2020-12-21T08:08:12.000Z
agents/autonomous_hegician/contracts/btcpriceprovider/contract.py
8ball030/AutonomousHegician
139c4e0d8b67f9ad3fab72353aaad0cb8bf7c263
[ "Apache-2.0" ]
4
2020-11-27T20:50:09.000Z
2021-11-30T16:36:29.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
34.155556
88
0.618955
3a34bef7627b5ff5e64c1d1ec1e794bc22b6629b
1,076
py
Python
count_nitroso.py
choderalab/nano-drugbank
32f735c18c0d61f5bd128fc045ff5978d13a31f8
[ "MIT" ]
5
2017-07-21T22:30:08.000Z
2021-12-03T10:24:12.000Z
count_nitroso.py
choderalab/nano-drugbank
32f735c18c0d61f5bd128fc045ff5978d13a31f8
[ "MIT" ]
null
null
null
count_nitroso.py
choderalab/nano-drugbank
32f735c18c0d61f5bd128fc045ff5978d13a31f8
[ "MIT" ]
6
2017-03-31T18:32:12.000Z
2021-04-13T03:55:06.000Z
from __future__ import print_function __author__ = 'isikm' import pandas as pd from openeye import oechem df_drugbank_smiles=pd.DataFrame.from_csv('df_drugbank_smiles.csv', encoding='utf-8') # Counting nitroso groups in each row using SMARTS matching for i, row in enumerate(df_drugbank_smiles.iterrows()): smile...
29.081081
84
0.710037
601727408f67c0b094a5665dddddcd55c7ddf65e
86
py
Python
create_configuration_turbdrops.py
BigOto2/BlenderRenderDNS
a8ff239ecffef5217f0db35d579227a0a444c32d
[ "MIT" ]
1
2021-07-28T00:42:39.000Z
2021-07-28T00:42:39.000Z
create_configuration_turbdrops.py
BigOto2/BlenderRenderDNS
a8ff239ecffef5217f0db35d579227a0a444c32d
[ "MIT" ]
null
null
null
create_configuration_turbdrops.py
BigOto2/BlenderRenderDNS
a8ff239ecffef5217f0db35d579227a0a444c32d
[ "MIT" ]
1
2019-05-13T17:38:05.000Z
2019-05-13T17:38:05.000Z
import os os.chdir("Render2018/lib/") os.system("python3 create_config_turbdrops.py")
21.5
47
0.790698
2f24a7a939a553dc2f00c152ad368978a5da24f7
1,018
py
Python
tools/python/doc/generate_enums.py
bcaswell-fcc/vtc_secure_linphone
60f23ce7845cdaa13f442bb9fa8087336dbfd495
[ "BSD-2-Clause" ]
5
2015-11-30T15:03:34.000Z
2019-01-13T09:17:17.000Z
tools/python/doc/generate_enums.py
bcaswell-fcc/vtc_secure_linphone
60f23ce7845cdaa13f442bb9fa8087336dbfd495
[ "BSD-2-Clause" ]
486
2015-09-26T01:43:50.000Z
2016-05-13T19:14:17.000Z
tools/python/doc/generate_enums.py
bcaswell-fcc/vtc_secure_linphone
60f23ce7845cdaa13f442bb9fa8087336dbfd495
[ "BSD-2-Clause" ]
16
2015-09-28T13:44:36.000Z
2020-05-14T09:29:21.000Z
#!/usr/bin/python import argparse import types import sys def main(argv = None): if argv is None: argv = sys.argv argparser = argparse.ArgumentParser(description="Generate enums documentation of the Linphone API.") argparser.add_argument('-o', '--outputfile', metavar='outputfile', type=argparse.Fi...
35.103448
159
0.630648
f6ec74e9e853bf4f19ed1b0c9dea7352995f6cdd
1,522
py
Python
tests/integration/goldens/redis/samples/generated_samples/redis_generated_redis_v1_cloud_redis_export_instance_sync.py
major/gapic-generator-python
68515c4c1444875f151a971b595e9dc837ddf47c
[ "Apache-2.0" ]
null
null
null
tests/integration/goldens/redis/samples/generated_samples/redis_generated_redis_v1_cloud_redis_export_instance_sync.py
major/gapic-generator-python
68515c4c1444875f151a971b595e9dc837ddf47c
[ "Apache-2.0" ]
null
null
null
tests/integration/goldens/redis/samples/generated_samples/redis_generated_redis_v1_cloud_redis_export_instance_sync.py
major/gapic-generator-python
68515c4c1444875f151a971b595e9dc837ddf47c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
31.061224
85
0.752957
b70bf79ab510b2932092834e136f6c4e6ec0e96f
592
py
Python
src/charma/movies/validators.py
mononobi/charma-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
1
2020-01-16T23:36:10.000Z
2020-01-16T23:36:10.000Z
src/charma/movies/validators.py
mononobi/imovie-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
24
2020-06-08T18:27:04.000Z
2021-06-06T12:01:39.000Z
src/charma/movies/validators.py
mononobi/charma-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
1
2020-12-20T05:29:04.000Z
2020-12-20T05:29:04.000Z
# -*- coding: utf-8 -*- """ movies validators module. """ from pyrin.core.globals import _ from pyrin.validator.decorators import validator from pyrin.validator.handlers.string import HTTPSValidator from charma.movies.models import MovieEntity @validator(MovieEntity, MovieEntity.imdb_page) class MovieIMDBPageValida...
25.73913
74
0.690878
928c1e3646fb828751ae1a69b9fc1d958ebe3dfd
10,860
py
Python
PixivTagsHandler.py
byjtje/PixivUtil2
e374a7aa9b2b8548cbbb8bb69e565ae23ddabe78
[ "BSD-2-Clause" ]
null
null
null
PixivTagsHandler.py
byjtje/PixivUtil2
e374a7aa9b2b8548cbbb8bb69e565ae23ddabe78
[ "BSD-2-Clause" ]
null
null
null
PixivTagsHandler.py
byjtje/PixivUtil2
e374a7aa9b2b8548cbbb8bb69e565ae23ddabe78
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import gc import http.client import os import sys import time import PixivBrowserFactory import PixivConstant import PixivHelper import PixivImageHandler def process_tags(caller, tags, page=1, end_page=0, wild_card=True, ...
53.497537
176
0.436924
8becec1ae4ad3b7175f8526b452efdfb50628745
249
py
Python
smbv1/smbv1.py
tomsteele/pen-utils
4d9434c344a116711034c8230c5da1278b5b5b3e
[ "MIT" ]
49
2015-05-24T13:09:49.000Z
2022-01-08T17:18:01.000Z
smbv1/smbv1.py
tomsteele/pen-utils
4d9434c344a116711034c8230c5da1278b5b5b3e
[ "MIT" ]
null
null
null
smbv1/smbv1.py
tomsteele/pen-utils
4d9434c344a116711034c8230c5da1278b5b5b3e
[ "MIT" ]
14
2016-03-07T10:17:30.000Z
2019-12-10T10:36:11.000Z
from impacket.smbconnection import * import sys host = sys.argv[1] smb = SMBConnection(host, host, sess_port=445, preferredDialect=SMB_DIALECT) if smb.getDialect() == SMB_DIALECT: print "SMBv1 suppported" else: print "SMBv1 not supported"
22.636364
76
0.751004
9b650966c560c8fcd5b286d021a976100e9be419
4,076
py
Python
alipay/aop/api/request/MybankCreditSupplychainFactoringSupplierCreateRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/MybankCreditSupplychainFactoringSupplierCreateRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/MybankCreditSupplychainFactoringSupplierCreateRequest.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "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.MybankCreditSupplychainFactoringSupplierCreateModel import MybankCreditSupplychainFactoringSupplierCreateModel class MybankCreditSup...
28.110345
148
0.653582
d7cb503459a48caa83e624208d11dd7278792bf8
307
py
Python
network_monitor/protocols/__init__.py
brennanhfredericks/network-monitor-client
618d222bb015662c3958f0100a965f3c71b29d32
[ "MIT" ]
null
null
null
network_monitor/protocols/__init__.py
brennanhfredericks/network-monitor-client
618d222bb015662c3958f0100a965f3c71b29d32
[ "MIT" ]
null
null
null
network_monitor/protocols/__init__.py
brennanhfredericks/network-monitor-client
618d222bb015662c3958f0100a965f3c71b29d32
[ "MIT" ]
null
null
null
from .link_layer import AF_Packet, Packet_802_3, Packet_802_2 from .transport_layer import TCP, UDP from .internet_layer import ICMP, ICMPv6, IGMP, IPv4, IPv6, ARP, LLDP, CDP from .protocol_utils import EnhancedJSONEncoder from .lsap_addresses import SNAP_Ext, LSAP_One from .parsers import Protocol_Parser
43.857143
74
0.830619
62945567b2207eeb57a994a41293274cc4eab529
813
py
Python
Chapter03/01_modules.py
DocyNoah/Deep-Reinforcement-Learning-Hands-On-Second-Edition
bcb4d72d2e6cd9e02845db1ae17dd483f2343a26
[ "MIT" ]
null
null
null
Chapter03/01_modules.py
DocyNoah/Deep-Reinforcement-Learning-Hands-On-Second-Edition
bcb4d72d2e6cd9e02845db1ae17dd483f2343a26
[ "MIT" ]
null
null
null
Chapter03/01_modules.py
DocyNoah/Deep-Reinforcement-Learning-Hands-On-Second-Edition
bcb4d72d2e6cd9e02845db1ae17dd483f2343a26
[ "MIT" ]
null
null
null
import torch import torch.nn as nn class OurModule(nn.Module): def __init__(self, num_inputs, num_classes, dropout_prob=0.3): super(OurModule, self).__init__() self.pipe = nn.Sequential( nn.Linear(num_inputs, 5), nn.ReLU(), nn.Linear(5, 20), nn.ReLU(...
26.225806
66
0.571956
2bd81369c9d1d2ee91641ab9eca1d5a1f4f38ea6
59
py
Python
processor/constants.py
dnyaneshwarmore/feedreader
9c12baacc3798098df48ec9941277063924551e6
[ "MIT" ]
null
null
null
processor/constants.py
dnyaneshwarmore/feedreader
9c12baacc3798098df48ec9941277063924551e6
[ "MIT" ]
3
2020-02-12T03:11:44.000Z
2021-06-10T22:01:47.000Z
processor/constants.py
dnyaneshwarmore/feedreader
9c12baacc3798098df48ec9941277063924551e6
[ "MIT" ]
null
null
null
FEEDS_TEMPLATE = "feeds.html" INDEX_TEMPLATE = "index.html"
29.5
29
0.779661
924292c4a4aed304b4cb343ea3a6804d392f7888
12,054
py
Python
python/paddle/fluid/tests/unittests/autograd/test_orig2prim.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/fluid/tests/unittests/autograd/test_orig2prim.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/autograd/test_orig2prim.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-09-24T11:23:36.000Z
2021-09-24T11:23:36.000Z
# Copyright (c) 2022 PaddlePaddle 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 appli...
29.689655
87
0.55409
c591442debfd64b9c945b8c6117dd25e220153ff
2,273
py
Python
sector/types/header_block.py
bithadder/sector-blockchain
ce63d162cd8c0c7c85ae64d6d6e8bede0a8675e6
[ "Apache-2.0" ]
13
2021-07-06T12:45:25.000Z
2021-09-10T22:24:52.000Z
sector/types/header_block.py
bithadder/sector-blockchain
ce63d162cd8c0c7c85ae64d6d6e8bede0a8675e6
[ "Apache-2.0" ]
null
null
null
sector/types/header_block.py
bithadder/sector-blockchain
ce63d162cd8c0c7c85ae64d6d6e8bede0a8675e6
[ "Apache-2.0" ]
6
2021-07-06T01:14:53.000Z
2021-07-18T05:33:02.000Z
from dataclasses import dataclass from typing import List, Optional from sector.types.blockchain_format.foliage import Foliage, FoliageTransactionBlock, TransactionsInfo from sector.types.blockchain_format.reward_chain_block import RewardChainBlock from sector.types.blockchain_format.vdf import VDFProof from sector.ty...
36.66129
108
0.756269
981e0cd965327b026395de45acf07476f11bc022
2,894
py
Python
multiworld/envs/goal_env_ext/hand/hand_env.py
ZiwenZhuang/multiworld
f7abbfc45218508c8a37acb9f41735398a2bdfef
[ "MIT" ]
null
null
null
multiworld/envs/goal_env_ext/hand/hand_env.py
ZiwenZhuang/multiworld
f7abbfc45218508c8a37acb9f41735398a2bdfef
[ "MIT" ]
null
null
null
multiworld/envs/goal_env_ext/hand/hand_env.py
ZiwenZhuang/multiworld
f7abbfc45218508c8a37acb9f41735398a2bdfef
[ "MIT" ]
null
null
null
# Created by Xingyu Lin, 04/09/2018 import os import copy import numpy as np import gym from gym import error, spaces from gym.utils import seeding from envs.goal_env_ext.goal_env_ext import GoalEnvExt class HandEnv(GoalEnvExt): de...
44.523077
117
0.561852
7e4cc930bc5631d75518f706ca316fc5b75efa59
450
py
Python
schemas.py
joaolongo/flask-single-page-application
5c840eb2bd30945a7a86b8ffb7ce01ef034745e0
[ "Unlicense" ]
null
null
null
schemas.py
joaolongo/flask-single-page-application
5c840eb2bd30945a7a86b8ffb7ce01ef034745e0
[ "Unlicense" ]
null
null
null
schemas.py
joaolongo/flask-single-page-application
5c840eb2bd30945a7a86b8ffb7ce01ef034745e0
[ "Unlicense" ]
null
null
null
from flask_marshmallow import Marshmallow from marshmallow import post_load import app from models import User marshmallow = Marshmallow(app) class UserSchema(marshmallow.Schema): class Meta: fields = ('id', 'username', 'first_name', 'last_name', 'email', 'user_role', 'password') @post_load ...
21.428571
96
0.697778
d1960b86f697316a24cbb2e279d24ba81daeae6d
324
py
Python
qcodes_measurements/__init__.py
QNLSydney/qcodes-measurements
09dd8dfeaa1b413484ce058df08f99df2640271e
[ "MIT" ]
null
null
null
qcodes_measurements/__init__.py
QNLSydney/qcodes-measurements
09dd8dfeaa1b413484ce058df08f99df2640271e
[ "MIT" ]
null
null
null
qcodes_measurements/__init__.py
QNLSydney/qcodes-measurements
09dd8dfeaa1b413484ce058df08f99df2640271e
[ "MIT" ]
null
null
null
__version__ = "0.1.0" import os as _os __all__ = ["do0d", "do1d", "do2d", "linear1d", "linear2d", "sweep_time"] if "QCM_REMOTE" not in _os.environ: # Import shortcuts to measurements from .tools.doNd import do0d, do1d, do2d from .tools.measure import linear1d, linear2d from .tools.time import sweep_t...
27
72
0.697531
ec09420cd5a1469611e07f17913df4f2f2cdbf35
1,468
py
Python
setup.py
psergus/onelogin-python-sdk
5a67e814f141a3a0d30cd6d95424e29a3f8ce2a4
[ "MIT" ]
null
null
null
setup.py
psergus/onelogin-python-sdk
5a67e814f141a3a0d30cd6d95424e29a3f8ce2a4
[ "MIT" ]
null
null
null
setup.py
psergus/onelogin-python-sdk
5a67e814f141a3a0d30cd6d95424e29a3f8ce2a4
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2017, OneLogin, Inc. # All rights reserved. from setuptools import setup version = {} with open("src/onelogin/api/version.py") as fp: exec(fp.read(), version) setup( name='onelogin', version=version['__version__'], description="OneLogin...
25.754386
96
0.552452
9436890b8b779483df08941b48eca516164ea203
19,808
py
Python
plasmapy/analysis/tests/test_fit_functions.py
kjmontes/PlasmaPy
9e8377b211fc0ab07d417df1e50eccec66ab159b
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
plasmapy/analysis/tests/test_fit_functions.py
kjmontes/PlasmaPy
9e8377b211fc0ab07d417df1e50eccec66ab159b
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
plasmapy/analysis/tests/test_fit_functions.py
kjmontes/PlasmaPy
9e8377b211fc0ab07d417df1e50eccec66ab159b
[ "MIT", "BSD-2-Clause-Patent", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
""" Tests for the fitting function classes defined in `plasmapy.analysis.fit_functions`. """ import numpy as np import pytest from abc import ABC, abstractmethod from contextlib import ExitStack as does_not_raise import plasmapy.analysis.fit_functions as ffuncs # ^ ExitStack can be replaced with nullcontext when we ...
32.472131
87
0.560784
54f7c14ae0485f983e88ccecd59abcbaa7a5b1b7
1,277
py
Python
14_Introduction to Importing Data in Python-(part-1)/01_Introduction and flat files/02_importing-text-files-line-by-line.py
mohd-faizy/DataScience-With-Python
13ebb10cf9083343056d5b782957241de1d595f9
[ "MIT" ]
5
2021-02-03T14:36:58.000Z
2022-01-01T10:29:26.000Z
14_Introduction to Importing Data in Python-(part-1)/01_Introduction and flat files/02_importing-text-files-line-by-line.py
mohd-faizy/DataScience-With-Python
13ebb10cf9083343056d5b782957241de1d595f9
[ "MIT" ]
null
null
null
14_Introduction to Importing Data in Python-(part-1)/01_Introduction and flat files/02_importing-text-files-line-by-line.py
mohd-faizy/DataScience-With-Python
13ebb10cf9083343056d5b782957241de1d595f9
[ "MIT" ]
3
2021-02-08T00:31:16.000Z
2022-03-17T13:52:32.000Z
''' 02 - Importing text files line by line For large files, we may not want to print all of their content to the shell: you may wish to print only the first few lines. Enter the readline() method, which allows you to do this. When a file called file is open, you can print out the first line by executing file.readline...
37.558824
92
0.751762
b405cbcd7a0219e4e33242f195a9b00e686e8dcc
1,363
py
Python
discrete_fuzzy_operators/builtin_operators/continuous/implications.py
mmunar97/discrete-fuzzy-operators
e97646faa82a732b7d24c2e6621704b981b80b60
[ "MIT" ]
null
null
null
discrete_fuzzy_operators/builtin_operators/continuous/implications.py
mmunar97/discrete-fuzzy-operators
e97646faa82a732b7d24c2e6621704b981b80b60
[ "MIT" ]
null
null
null
discrete_fuzzy_operators/builtin_operators/continuous/implications.py
mmunar97/discrete-fuzzy-operators
e97646faa82a732b7d24c2e6621704b981b80b60
[ "MIT" ]
null
null
null
from enum import Enum # region Declaration of some implications class ContinuousImplication(Enum): """ Object that stores the values of the most known implications defined in [0, 1]^2. Note: Although the name of the object is ContinuousImplication, it does not mean that the defined implications are ...
34.075
118
0.760088
b92f06449e945e36c451bb5eff4ee89eff0d8dec
37,803
py
Python
tensorflow/python/keras/engine/saving_test.py
DonliFly/tensorflow
715e6a881f8c73d3045b3e65385006ecb96d6a5d
[ "Apache-2.0" ]
2
2018-12-05T10:58:40.000Z
2019-01-24T11:36:01.000Z
tensorflow/python/keras/engine/saving_test.py
sjang42/tensorflow
3db3e972a33760ebe6662341d5f4320a906582f7
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/engine/saving_test.py
sjang42/tensorflow
3db3e972a33760ebe6662341d5f4320a906582f7
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.037178
80
0.638388
2399981851e79d90db593ff121045bb88b76682e
168
py
Python
applied-statistics/python-revisited/libraries/tkinter/button.py
TXM-DOOM/B.Tech-CSE-Y2
763436ae866f1f18fa8071c253d005bdf289532f
[ "MIT" ]
null
null
null
applied-statistics/python-revisited/libraries/tkinter/button.py
TXM-DOOM/B.Tech-CSE-Y2
763436ae866f1f18fa8071c253d005bdf289532f
[ "MIT" ]
null
null
null
applied-statistics/python-revisited/libraries/tkinter/button.py
TXM-DOOM/B.Tech-CSE-Y2
763436ae866f1f18fa8071c253d005bdf289532f
[ "MIT" ]
null
null
null
import tkinter as tk root = tk.Tk() button = tk.Button(root, text = "Test Button", bg = 'blue', fg = 'white') button.pack() # to place it in the root root.mainloop()
21
73
0.654762
2eec1256845d96ef0174f5c4dfabab1ad8d43706
55,992
py
Python
src/marshmallow/fields.py
bakalab/marshmallow
818dc1c7454934c9aeb882d41838caf2cf8de15f
[ "MIT" ]
null
null
null
src/marshmallow/fields.py
bakalab/marshmallow
818dc1c7454934c9aeb882d41838caf2cf8de15f
[ "MIT" ]
null
null
null
src/marshmallow/fields.py
bakalab/marshmallow
818dc1c7454934c9aeb882d41838caf2cf8de15f
[ "MIT" ]
5
2017-02-28T23:33:48.000Z
2020-12-23T11:22:13.000Z
"""Field classes for various types of data.""" import collections import copy import datetime as dt import numbers import uuid import decimal import math from collections.abc import Mapping as _Mapping from marshmallow import validate, utils, class_registry from marshmallow.base import FieldABC, SchemaABC from marshm...
35.126725
98
0.612302
9e46796bbfce1ba7a5ca14f8428fd4175380c462
20,419
py
Python
delfin/tests/unit/api/v1/test_storages.py
guankc/delfin
85c2ac90dba7042a9159f1d4e927020ea166f139
[ "Apache-2.0" ]
19
2020-07-28T00:13:43.000Z
2022-02-15T16:44:21.000Z
delfin/tests/unit/api/v1/test_storages.py
guankc/delfin
85c2ac90dba7042a9159f1d4e927020ea166f139
[ "Apache-2.0" ]
581
2020-06-22T15:20:58.000Z
2022-03-31T04:06:14.000Z
delfin/tests/unit/api/v1/test_storages.py
guankc/delfin
85c2ac90dba7042a9159f1d4e927020ea166f139
[ "Apache-2.0" ]
153
2021-03-10T09:32:08.000Z
2022-02-22T01:32:32.000Z
# Copyright 2020 The SODA 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 agreed to in wri...
38.453861
79
0.530095