hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79876205a5a1f7bcafc92d410e6bfaa42b675be5
2,810
py
Python
bokeh/protocol/messages/server_info_reply.py
jeisch/bokeh
6be4d5ebbec04117f2bb0693fe64dc664f8f1bb1
[ "BSD-3-Clause" ]
1
2020-03-21T04:11:51.000Z
2020-03-21T04:11:51.000Z
bokeh/protocol/messages/server_info_reply.py
jeisch/bokeh
6be4d5ebbec04117f2bb0693fe64dc664f8f1bb1
[ "BSD-3-Clause" ]
2
2021-05-08T11:43:21.000Z
2021-05-10T19:16:43.000Z
bokeh/protocol/messages/server_info_reply.py
jeisch/bokeh
6be4d5ebbec04117f2bb0693fe64dc664f8f1bb1
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # 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. #-------------------------------------------------------------------...
30.543478
78
0.342349
798762e969bd6cd56045f7074a4f3416e2b43778
6,284
py
Python
models/Ictu_Oculi.py
angelicagardner/ensemble-cnn-deepfakes-detection
8740d2317848250249c741e0af5c4cbbe2d8af46
[ "BSD-3-Clause" ]
null
null
null
models/Ictu_Oculi.py
angelicagardner/ensemble-cnn-deepfakes-detection
8740d2317848250249c741e0af5c4cbbe2d8af46
[ "BSD-3-Clause" ]
null
null
null
models/Ictu_Oculi.py
angelicagardner/ensemble-cnn-deepfakes-detection
8740d2317848250249c741e0af5c4cbbe2d8af46
[ "BSD-3-Clause" ]
null
null
null
""" In Ictu Oculi: Exposing AI Created Fake Videos by Detecting Eye Blinking IEEE International Workshop on Information Forensics and Security (WIFS), 2018 Yuezun Li, Ming-ching Chang and Siwei Lyu """ from deep_base import ops as net_ops from deep_base import vgg16 as base import tensorflow as tf import numpy as np im...
40.541935
130
0.620783
7987639135e11127e24f4a856d9b546c82394640
359
py
Python
matrix-synapse/molecule/default/tests/test_matrix.py
d120/ansible_roles_public
dccb7664b12e22b91c6b0438159743878f2d5b5b
[ "MIT" ]
3
2020-06-04T18:41:50.000Z
2020-09-01T11:32:59.000Z
matrix-synapse/molecule/default/tests/test_matrix.py
d120/ansible_roles_public
dccb7664b12e22b91c6b0438159743878f2d5b5b
[ "MIT" ]
null
null
null
matrix-synapse/molecule/default/tests/test_matrix.py
d120/ansible_roles_public
dccb7664b12e22b91c6b0438159743878f2d5b5b
[ "MIT" ]
null
null
null
"""Role testing files using testinfra.""" def test_matrix_reachable(host): cmd = host.run("curl localhost:8008/_matrix/static/ -L") assert cmd.succeeded assert 'It works! Synapse is running' in cmd.stdout def test_matrix_service(host): service = host.service("matrix-synapse") assert service.is...
29.916667
60
0.724234
798763a1f529691bf86a91a6a9cd3aac4ffbd1b2
2,298
py
Python
tools/deep_memory_profiler/lib/dump.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
20
2015-08-26T06:46:00.000Z
2019-02-27T09:05:58.000Z
tools/deep_memory_profiler/lib/dump.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-02-10T21:00:08.000Z
2018-03-20T05:09:50.000Z
tools/deep_memory_profiler/lib/dump.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-08-26T05:49:35.000Z
2020-02-03T20:22:43.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import logging import os LOGGER = logging.getLogger('dmprof') class Dump(object): """Represents a heap profile dump.""" def __init__(self): pass ...
21.679245
77
0.714534
798764115c4d26c55c9cfa31fdde6119e5540944
9,298
py
Python
docs/conf.py
617u53r/nekbone-3.1-devel
3f17b014ac520c0cca0f0b932cb50fa42c18babd
[ "mpich2" ]
1
2016-02-14T22:31:32.000Z
2016-02-14T22:31:32.000Z
docs/conf.py
617u53r/nekbone-3.1-devel
3f17b014ac520c0cca0f0b932cb50fa42c18babd
[ "mpich2" ]
null
null
null
docs/conf.py
617u53r/nekbone-3.1-devel
3f17b014ac520c0cca0f0b932cb50fa42c18babd
[ "mpich2" ]
1
2021-08-09T11:23:38.000Z
2021-08-09T11:23:38.000Z
# -*- coding: utf-8 -*- # # nekbone-3.1 documentation build configuration file, created by # sphinx-quickstart on Sun Feb 14 13:58:44 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. #...
32.17301
79
0.717681
79876472176aace13e573b337b57153e274da6fb
6,097
py
Python
diplomacy_research/models/policy/token_based/dataset/no_press_value_large.py
wwongkamjan/dipnet_press
787263c1b9484698904f525c8d78d0e333e1c0d9
[ "MIT" ]
39
2019-09-06T13:42:24.000Z
2022-03-18T18:38:43.000Z
diplomacy_research/models/policy/token_based/dataset/no_press_value_large.py
wwongkamjan/dipnet_press
787263c1b9484698904f525c8d78d0e333e1c0d9
[ "MIT" ]
9
2019-09-19T22:35:32.000Z
2022-02-24T18:04:57.000Z
diplomacy_research/models/policy/token_based/dataset/no_press_value_large.py
wwongkamjan/dipnet_press
787263c1b9484698904f525c8d78d0e333e1c0d9
[ "MIT" ]
8
2019-10-16T21:09:14.000Z
2022-02-23T05:20:37.000Z
# ============================================================================== # Copyright 2019 - Philip Paquette # # NOTICE: 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 rest...
51.669492
119
0.698212
7987648b46c6e745d973552fc9c07832a2844194
281
py
Python
setup.py
m-harikiran/NormanPD
30e294a440824c0d31b2e92114e627c9cb9f33c0
[ "MIT" ]
null
null
null
setup.py
m-harikiran/NormanPD
30e294a440824c0d31b2e92114e627c9cb9f33c0
[ "MIT" ]
null
null
null
setup.py
m-harikiran/NormanPD
30e294a440824c0d31b2e92114e627c9cb9f33c0
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='project0', version='1.0', author='Harikiran Madishetti', authour_email='harikiran.madishetti-1@ou.edu', packages=find_packages(exclude=('tests', 'docs')), setup_requires=['pytest-runner'], tests_require=['pytest'] )
25.545455
51
0.743772
798764ab7826e2862660955d04af62ef7fceca75
647
py
Python
taobao-tianmao/test.py
ScottLeeF/python-example
0b230ba80fe5020d70329a9d73e058013f0ca111
[ "Apache-2.0" ]
null
null
null
taobao-tianmao/test.py
ScottLeeF/python-example
0b230ba80fe5020d70329a9d73e058013f0ca111
[ "Apache-2.0" ]
7
2021-03-19T02:12:42.000Z
2022-03-12T00:25:28.000Z
taobao-tianmao/test.py
ScottLeeF/python-example
0b230ba80fe5020d70329a9d73e058013f0ca111
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 2012-7-3 @author: lihao ''' import top.api ''' 这边可以设置一个默认的appkey和secret,当然也可以不设置 注意:默认的只需要设置一次就可以了 ''' top.setDefaultAppInfo("122257***", "*******") ''' 使用自定义的域名和端口(测试沙箱环境使用) a = top.api.UserGetRequest("gw.api.tbsandbox.com",80) 使用自定义的域名(测试沙箱环境使用) a = top....
15.780488
54
0.62442
7987659e3c879bd231cec5e2f43a0833f72078ca
55,676
py
Python
test/test_md022.py
scop/pymarkdown
562ba8f7857d99ba09e86e42de5a37ec6d9b2c30
[ "MIT" ]
null
null
null
test/test_md022.py
scop/pymarkdown
562ba8f7857d99ba09e86e42de5a37ec6d9b2c30
[ "MIT" ]
null
null
null
test/test_md022.py
scop/pymarkdown
562ba8f7857d99ba09e86e42de5a37ec6d9b2c30
[ "MIT" ]
null
null
null
""" Module to provide tests related to the MD022 rule. """ import os from test.markdown_scanner import MarkdownScanner import pytest from .utils import write_temporary_configuration # pylint: disable=too-many-lines @pytest.mark.rules def test_md022_bad_proper_line_spacing_atx(): """ Test to make sure we ge...
34.304375
128
0.690441
7987669811db5f008a51c25ea74099d54cc07d21
1,170
py
Python
src/network/graph.py
PanosIs/hero-graph
a3bb77dc96df67ae9511e64efda3ce59638ee5a1
[ "MIT" ]
null
null
null
src/network/graph.py
PanosIs/hero-graph
a3bb77dc96df67ae9511e64efda3ce59638ee5a1
[ "MIT" ]
null
null
null
src/network/graph.py
PanosIs/hero-graph
a3bb77dc96df67ae9511e64efda3ce59638ee5a1
[ "MIT" ]
null
null
null
import numpy from src.utils.data_utils import get_match_dataset from sklearn.preprocessing import normalize numpy.set_printoptions(threshold=numpy.nan, precision=2, suppress = True) class Draft_Graph_Network: def __init__(self, hero_pool_size : int, learning_rate : float): self.connections = numpy.full(sh...
31.621622
93
0.696581
798766f6c4086a14d16652a3a01c4b17897c181f
94,993
py
Python
Lib/argparse.py
livioso/cpython
077061a7b24917aaf31057885c69919c5a553c88
[ "PSF-2.0" ]
3
2019-04-23T11:06:38.000Z
2021-03-03T12:17:16.000Z
Lib/argparse.py
livioso/cpython
077061a7b24917aaf31057885c69919c5a553c88
[ "PSF-2.0" ]
4
2020-04-02T14:59:42.000Z
2021-02-10T14:30:18.000Z
Lib/argparse.py
livioso/cpython
077061a7b24917aaf31057885c69919c5a553c88
[ "PSF-2.0" ]
1
2020-10-02T03:34:00.000Z
2020-10-02T03:34:00.000Z
# Author: Steven J. Bethard <steven.bethard@gmail.com>. """Command-line parsing library This module is an optparse-inspired command-line parsing library that: - handles both optional and positional arguments - produces highly informative usage messages - supports parsers that dispatch to sub-parsers The...
38.012405
83
0.57978
7987674b6c907391f54291cadbfd0f421074100e
8,187
py
Python
zcrmsdk/src/com/zoho/crm/api/layouts/section.py
zoho/zohocrm-python-sdk-2.1
cde6fcd1c5c8f7a572154ebb2b947ec697c24209
[ "Apache-2.0" ]
null
null
null
zcrmsdk/src/com/zoho/crm/api/layouts/section.py
zoho/zohocrm-python-sdk-2.1
cde6fcd1c5c8f7a572154ebb2b947ec697c24209
[ "Apache-2.0" ]
null
null
null
zcrmsdk/src/com/zoho/crm/api/layouts/section.py
zoho/zohocrm-python-sdk-2.1
cde6fcd1c5c8f7a572154ebb2b947ec697c24209
[ "Apache-2.0" ]
null
null
null
try: from zcrmsdk.src.com.zoho.crm.api.exception import SDKException from zcrmsdk.src.com.zoho.crm.api.util import Constants except Exception: from ..exception import SDKException from ..util import Constants class Section(object): def __init__(self): """Creates an instance of Section""" self.__display_labe...
24.809091
105
0.731281
79876771f0d789bb1016f5b9d406b8982beb6dfe
4,151
py
Python
Light fixer.py
kamyu2/NBT
092627c99b99f362623d1e3d238c70ac279ab04d
[ "MIT" ]
2
2015-01-07T18:10:42.000Z
2016-03-28T16:58:21.000Z
Light fixer.py
kamyu2/NBT
092627c99b99f362623d1e3d238c70ac279ab04d
[ "MIT" ]
null
null
null
Light fixer.py
kamyu2/NBT
092627c99b99f362623d1e3d238c70ac279ab04d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Finds and edits the contents of chests """ import os, sys import Tkinter, tkFileDialog # local module try: import nbt except ImportError: # nbt not in search path. Let's see if it can be found in the parent folder extrasearchpath = os.path.realpath(os.path.join(sys.path[0],os.pardir)) if ...
38.794393
148
0.425921
7987677f8fb18f455da79d11ce9feb4e5c2737b6
779
py
Python
var/spack/repos/builtin/packages/libxvmc/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-06-25T15:25:29.000Z
2020-06-25T15:25:29.000Z
var/spack/repos/builtin/packages/libxvmc/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2018-07-06T19:11:46.000Z
2018-07-06T19:12:28.000Z
var/spack/repos/builtin/packages/libxvmc/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-03-06T11:04:37.000Z
2020-03-06T11:04:37.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Libxvmc(AutotoolsPackage): """X.org libXvMC library.""" homepage = "https://cgit.free...
31.16
95
0.711168
798768333aed52e9379e97f1e41ec4775fccbb8d
1,456
py
Python
tests/h/app_test.py
pombredanne/h
9c4c2dc0d53ed5bed5183936c24b4c27b23070b4
[ "BSD-2-Clause" ]
2,103
2015-01-07T12:47:49.000Z
2022-03-29T02:38:25.000Z
tests/h/app_test.py
pombredanne/h
9c4c2dc0d53ed5bed5183936c24b4c27b23070b4
[ "BSD-2-Clause" ]
4,322
2015-01-04T17:18:01.000Z
2022-03-31T17:06:02.000Z
tests/h/app_test.py
admariner/h
25ef1b8d94889df86ace5a084f1aa0effd9f4e25
[ "BSD-2-Clause" ]
389
2015-01-24T04:10:02.000Z
2022-03-28T08:00:16.000Z
from unittest import mock import pytest from pyramid_jinja2 import Environment as JinjaEnvironment from h.app import includeme from h.assets import Environment from h.sentry_filters import SENTRY_FILTERS class TestIncludeMe: def test_it_configures_pyramid_sentry_plugin(self, pyramid_config): includeme(p...
33.860465
85
0.73283
79876855535c8ca8b5d7c1ae146d86b01c0ea4ad
1,610
py
Python
src/api-service/__app__/onefuzzlib/user_credentials.py
muhammadmeisam/onefuzz
a025d194547d39307bf804ebee0fc0e206759916
[ "MIT" ]
1
2021-12-20T14:48:40.000Z
2021-12-20T14:48:40.000Z
src/api-service/__app__/onefuzzlib/user_credentials.py
muhammadmeisam/onefuzz
a025d194547d39307bf804ebee0fc0e206759916
[ "MIT" ]
null
null
null
src/api-service/__app__/onefuzzlib/user_credentials.py
muhammadmeisam/onefuzz
a025d194547d39307bf804ebee0fc0e206759916
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. from typing import Optional from uuid import UUID import azure.functions as func import jwt from onefuzztypes.enums import ErrorCode from onefuzztypes.models import Error, Result, UserInfo def get_bearer_token(request: ...
27.758621
80
0.691925
7987690f877eb28c8d6f372fb6501d7a6524d3e6
20,767
py
Python
src/m6_fancy_iterating.py
hedricsd/11-Sequences
22f12acf86b4673e2e0ab16c32a6ce19cc65b932
[ "MIT" ]
null
null
null
src/m6_fancy_iterating.py
hedricsd/11-Sequences
22f12acf86b4673e2e0ab16c32a6ce19cc65b932
[ "MIT" ]
null
null
null
src/m6_fancy_iterating.py
hedricsd/11-Sequences
22f12acf86b4673e2e0ab16c32a6ce19cc65b932
[ "MIT" ]
null
null
null
""" This module practices ITERATING (i.e. looping) through a SEQUENCE in ways OTHER than just going thru the sequence from BEGINNING to END. It also shows how to SELECT items in a sequence, e.g.: -- the items that are strings -- the items that are even integers (e.g. 2, 4, 6, ...) -- the items in the second half...
37.826958
90
0.486445
798769c952fa186ac769a80f861e0b7d4b565e5d
11,731
py
Python
gym_minigrid/wrappers.py
ajabri/gym-minigrid
fdb30c8da6faca4e8a5aac4a9d69384e2d3edbee
[ "Apache-2.0" ]
null
null
null
gym_minigrid/wrappers.py
ajabri/gym-minigrid
fdb30c8da6faca4e8a5aac4a9d69384e2d3edbee
[ "Apache-2.0" ]
null
null
null
gym_minigrid/wrappers.py
ajabri/gym-minigrid
fdb30c8da6faca4e8a5aac4a9d69384e2d3edbee
[ "Apache-2.0" ]
null
null
null
import math import operator from functools import reduce import numpy as np import gym from gym import error, spaces, utils from .minigrid import OBJECT_TO_IDX, COLOR_TO_IDX, STATE_TO_IDX class ReseedWrapper(gym.core.Wrapper): """ Wrapper to always regenerate an environment with the same set of seeds. Thi...
29.037129
121
0.585543
79876a070849f01dae73d0b7b174b8f3f85639c6
4,616
py
Python
code_dir2tex.py
TejasAvinashShetty/code2tex
a21e40dd144ab0eeef7a5214be01e41389e308e7
[ "MIT" ]
null
null
null
code_dir2tex.py
TejasAvinashShetty/code2tex
a21e40dd144ab0eeef7a5214be01e41389e308e7
[ "MIT" ]
null
null
null
code_dir2tex.py
TejasAvinashShetty/code2tex
a21e40dd144ab0eeef7a5214be01e41389e308e7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import re # import os.path from os import listdir, chdir from pathlib import Path from subprocess import call # TODO: read extensions, header from files found in sys.path? # A subset of the languages supported by the Listings latex package # File extensions mapped to language names ...
28.146341
107
0.581889
79876a5b453d5047657101b4b894953e95c0fc8c
521
py
Python
tests/components/zwave_js/test_sensor.py
spike411/core
54064b4010369b85307f76bb0bdf26e8a9e21a0c
[ "Apache-2.0" ]
null
null
null
tests/components/zwave_js/test_sensor.py
spike411/core
54064b4010369b85307f76bb0bdf26e8a9e21a0c
[ "Apache-2.0" ]
null
null
null
tests/components/zwave_js/test_sensor.py
spike411/core
54064b4010369b85307f76bb0bdf26e8a9e21a0c
[ "Apache-2.0" ]
null
null
null
"""Test the Z-Wave JS sensor platform.""" from homeassistant.const import DEVICE_CLASS_TEMPERATURE, TEMP_CELSIUS AIR_TEMPERATURE_SENSOR = "sensor.multisensor_6_air_temperature" async def test_numeric_sensor(hass, multisensor_6, integration): """Test the numeric sensor.""" state = hass.states.get(AIR_TEMPERAT...
34.733333
71
0.771593
79876a5dd352c96d337d38552f117b8cc3b2c664
8,558
py
Python
fluid/neural_machine_translation/transformer/train.py
sladesha/models
9264e8cebb0219a9cd765511b8a7c9236f0b1da8
[ "Apache-2.0" ]
null
null
null
fluid/neural_machine_translation/transformer/train.py
sladesha/models
9264e8cebb0219a9cd765511b8a7c9236f0b1da8
[ "Apache-2.0" ]
null
null
null
fluid/neural_machine_translation/transformer/train.py
sladesha/models
9264e8cebb0219a9cd765511b8a7c9236f0b1da8
[ "Apache-2.0" ]
1
2018-09-10T02:11:21.000Z
2018-09-10T02:11:21.000Z
import os import numpy as np import paddle import paddle.fluid as fluid from model import transformer, position_encoding_init from optim import LearningRateScheduler from config import TrainTaskConfig, ModelHyperParams, pos_enc_param_names, \ encoder_input_data_names, decoder_input_data_names, label_data_name...
44.806283
80
0.622575
79876af1c544f309ea0e9567932167e8a9a7b31b
395
py
Python
laptimes/migrations/0012_auto_20180407_1015.py
ev-agelos/acr-server
dba11b001ae4aae6dcbb761a5c0222c6fb3b939d
[ "MIT" ]
1
2021-03-11T04:25:07.000Z
2021-03-11T04:25:07.000Z
laptimes/migrations/0012_auto_20180407_1015.py
ev-agelos/acr-server
dba11b001ae4aae6dcbb761a5c0222c6fb3b939d
[ "MIT" ]
7
2020-03-06T17:37:01.000Z
2021-09-22T17:40:10.000Z
laptimes/migrations/0012_auto_20180407_1015.py
ev-agelos/ac-rank
dba11b001ae4aae6dcbb761a5c0222c6fb3b939d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-04-07 10:15 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('laptimes', '0011_auto_20180407_1006'), ] operations = [ migrations.RenameModel( ...
19.75
48
0.617722
79876c8b551d2e9e22a2ea9d2dd763d6f1b2eed3
293
py
Python
code/part_2-TYPES_AND_OPERATIONS/ch_4-introducing_to_python_object_types/25_other_core_types_booleans/main.py
ordinary-developer/book_learning_python_5_ed_m_lutz
4b7bb52616b64957307c58618b0113426e13ed81
[ "MIT" ]
1
2017-05-04T08:23:46.000Z
2017-05-04T08:23:46.000Z
code/part_2-TYPES_AND_OPERATIONS/ch_4-introducing_to_python_object_types/25_other_core_types_booleans/main.py
ordinary-developer/book_learning_python_5_ed_m_lutz
4b7bb52616b64957307c58618b0113426e13ed81
[ "MIT" ]
null
null
null
code/part_2-TYPES_AND_OPERATIONS/ch_4-introducing_to_python_object_types/25_other_core_types_booleans/main.py
ordinary-developer/book_learning_python_5_ed_m_lutz
4b7bb52616b64957307c58618b0113426e13ed81
[ "MIT" ]
null
null
null
if __name__ == '__main__': print(1 > 2, 1 < 2) print(bool('spam')) print(bool(True)) print(bool(False)) print(bool(1)) print(bool(10)) print(bool(0)) print(bool(-1)) print(bool(-1.5)) print(bool(0.0)) print(bool(0.00000000000000000000000000000001))
22.538462
51
0.587031
79876cabbc3f11ec94b947a166cb5bbed40a9289
9,214
py
Python
resources/WPy32/python-3.10.2/Lib/multiprocessing/resource_tracker.py
eladkarako/yt-dlp_kit
6365651111ef4d2f94335cf38bf4d9b0136d42d2
[ "Unlicense" ]
1
2022-03-26T15:43:50.000Z
2022-03-26T15:43:50.000Z
resources/WPy32/python-3.10.2/Lib/multiprocessing/resource_tracker.py
eladkarako/yt-dlp_kit
6365651111ef4d2f94335cf38bf4d9b0136d42d2
[ "Unlicense" ]
null
null
null
resources/WPy32/python-3.10.2/Lib/multiprocessing/resource_tracker.py
eladkarako/yt-dlp_kit
6365651111ef4d2f94335cf38bf4d9b0136d42d2
[ "Unlicense" ]
1
2022-03-28T19:28:45.000Z
2022-03-28T19:28:45.000Z
############################################################################### # Server process to keep track of unlinked resources (like shared memory # segments, semaphores etc.) and clean them. # # On Unix we run a server process which keeps track of unlinked # resources. The server ignores SIGINT and SIGTERM ...
38.391667
85
0.540373
79876d9457d6008b5eb5f99f78106f75af2b32f1
2,113
py
Python
LeetCode/equationsPossible_990.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
LeetCode/equationsPossible_990.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
LeetCode/equationsPossible_990.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ------------------------------------------------- @ Author : pengj @ date : 2020/6/8 13:57 @ IDE : PyCharm @ GitHub : https://github.com/JackyPJB @ Contact : pengjianbiao@hotmail.com -----------------...
28.554054
77
0.475154
79876e197863f34346a8eea64ee69cacf03b1b10
638
py
Python
DSA Coding/Basics/Digit Cancellation Division/script.py
prathimacode-hub/WIE-WoC
f412f297a57249af98213bf4a747c897f2d4c035
[ "MIT" ]
8
2022-03-01T09:09:20.000Z
2022-03-03T05:36:01.000Z
DSA Coding/Basics/Digit Cancellation Division/script.py
prathimacode-hub/WIE-WoC
f412f297a57249af98213bf4a747c897f2d4c035
[ "MIT" ]
52
2022-03-02T13:52:46.000Z
2022-03-04T03:03:17.000Z
DSA Coding/Basics/Digit Cancellation Division/script.py
prathimacode-hub/WIE-WoC
f412f297a57249af98213bf4a747c897f2d4c035
[ "MIT" ]
23
2022-03-01T06:39:34.000Z
2022-03-03T09:24:40.000Z
x = list(str(int(input()))) y = list(str(int(input()))) num = 1 denom = 1 div = 1 if int("".join(y))==0: num = -1 denom = 1 else: counter = 0 while counter < len(x): if x[counter] in y: pos_x = x.index(x[counter]) pos_y = y.index(x[counter]) x.po...
20.580645
40
0.399687
79877091f7223a887f4241861b727dafa38a937c
254,512
py
Python
tests/hwsim/test_sigma_dut.py
mailfcly/hostap
fd2eb7a41e168dc1d84663129e4b7aab80ead207
[ "Unlicense" ]
null
null
null
tests/hwsim/test_sigma_dut.py
mailfcly/hostap
fd2eb7a41e168dc1d84663129e4b7aab80ead207
[ "Unlicense" ]
null
null
null
tests/hwsim/test_sigma_dut.py
mailfcly/hostap
fd2eb7a41e168dc1d84663129e4b7aab80ead207
[ "Unlicense" ]
null
null
null
# Test cases for sigma_dut # Copyright (c) 2017, Qualcomm Atheros, Inc. # Copyright (c) 2018-2019, The Linux Foundation # # This software may be distributed under the terms of the BSD license. # See README for more details. import binascii import errno import fcntl import hashlib import logging logger = logging.getLog...
46.673758
462
0.648916
798770b4411d2c6d128cbfa48339fad1ec29616d
1,297
py
Python
ros2trace/ros2trace/command/trace.py
shr-project/ros2_tracing
ef9fc548a71de3157ae819895bc438bce5865023
[ "Apache-2.0" ]
4
2020-11-27T00:25:28.000Z
2020-11-28T03:01:32.000Z
ros2trace/ros2trace/command/trace.py
shr-project/ros2_tracing
ef9fc548a71de3157ae819895bc438bce5865023
[ "Apache-2.0" ]
1
2022-02-16T00:48:00.000Z
2022-02-16T00:48:00.000Z
ros2trace/ros2trace/command/trace.py
shr-project/ros2_tracing
ef9fc548a71de3157ae819895bc438bce5865023
[ "Apache-2.0" ]
1
2022-01-19T06:45:43.000Z
2022-01-19T06:45:43.000Z
# Copyright 2019 Robert Bosch GmbH # # 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...
30.880952
74
0.693909
798771f79a5141727dedb64eb97006a688a94773
1,023
py
Python
nut/Hex.py
Taorni/nsz
b3e7232490c10118b9a85f74a90b12479bed1555
[ "MIT" ]
null
null
null
nut/Hex.py
Taorni/nsz
b3e7232490c10118b9a85f74a90b12479bed1555
[ "MIT" ]
null
null
null
nut/Hex.py
Taorni/nsz
b3e7232490c10118b9a85f74a90b12479bed1555
[ "MIT" ]
null
null
null
from string import ascii_letters, digits, punctuation from nut import Print def bufferToHex(buffer, start, count): accumulator = '' for item in range(count): accumulator += '%02X' % buffer[start + item] + ' ' return accumulator def bufferToAscii(buffer, start, count): accumulator = '' for ...
25.575
58
0.603128
7987738f7060047ee02cfb8b2fc85e5c6cef4fd7
594
py
Python
FixedEffectModel/api.py
ksecology/FixedEffectModel
c2371c34350d95e6c308159e1a9c00e56bcb104c
[ "BSD-3-Clause" ]
28
2020-09-29T08:41:05.000Z
2022-03-31T08:52:28.000Z
FixedEffectModel/api.py
ksecology/FixedEffectModel
c2371c34350d95e6c308159e1a9c00e56bcb104c
[ "BSD-3-Clause" ]
2
2021-05-28T14:49:15.000Z
2022-03-29T21:27:37.000Z
FixedEffectModel/api.py
ksecology/FixedEffectModel
c2371c34350d95e6c308159e1a9c00e56bcb104c
[ "BSD-3-Clause" ]
7
2020-10-09T15:29:42.000Z
2022-03-18T03:52:39.000Z
from .OLSHighDCategory import ols_high_d_category from .OLSHighDCategory import ols_high_d_category_multi_results from .DemeanDataframe import demean_dataframe from .ClusterErr import clustered_error from .RobustErr import robust_err from .CalDf import cal_df from .FormTransfer import form_transfer from .to_latex impor...
34.941176
63
0.860269
7987748eb64a3a6d2df267fd2c887ae60cee3f25
579
py
Python
setup.py
pedroramaciotti/diversity-patterns
82b48d87b9e8d35e6651243d3cbff0400ec9a58a
[ "MIT" ]
null
null
null
setup.py
pedroramaciotti/diversity-patterns
82b48d87b9e8d35e6651243d3cbff0400ec9a58a
[ "MIT" ]
null
null
null
setup.py
pedroramaciotti/diversity-patterns
82b48d87b9e8d35e6651243d3cbff0400ec9a58a
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name='logdiv', version='0.0.2.6', author='Alexandre Wilmet', author_email='wilmet.alex@gmail.com', description='A package to mesure diversity of log files', long_description=long_description, long_description_c...
27.571429
61
0.744387
798774db9abbaa83863d2655b1331e952faf3d32
5,357
py
Python
mlxtk/systems/sqr/bosonic.py
f-koehler/mlxtk
373aed06ab23ab9b70cd99e160228c50b87e939a
[ "MIT" ]
2
2018-12-21T19:41:10.000Z
2019-11-25T15:26:27.000Z
mlxtk/systems/sqr/bosonic.py
f-koehler/mlxtk
373aed06ab23ab9b70cd99e160228c50b87e939a
[ "MIT" ]
73
2017-12-22T13:30:16.000Z
2022-02-22T04:21:14.000Z
mlxtk/systems/sqr/bosonic.py
f-koehler/mlxtk
373aed06ab23ab9b70cd99e160228c50b87e939a
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import List import numpy from QDTK.SQR.Primitive import SQRDvrBosonic from mlxtk import dvr from mlxtk.log import get_logger from mlxtk.parameters import Parameters from mlxtk.tasks import OperatorSpecification class BosonicSQR(ABC): def __init__(self, parameters:...
38.539568
90
0.573082
798775a7ffffb0e2faea1699fb09446afccfd4fe
206
py
Python
src/bulir/__init__.py
ayharano/bulir
9463d8965adc9c6b6f332f4d3993cc5f8a0ad01c
[ "MIT" ]
null
null
null
src/bulir/__init__.py
ayharano/bulir
9463d8965adc9c6b6f332f4d3993cc5f8a0ad01c
[ "MIT" ]
5
2021-03-31T19:42:44.000Z
2021-12-14T03:58:13.000Z
src/bulir/__init__.py
ayharano/bulir
9463d8965adc9c6b6f332f4d3993cc5f8a0ad01c
[ "MIT" ]
null
null
null
from .bulir import ( BrazilianLawsuitIDsRetriever, retrieve_brazilian_uf_lawsuit_ids, __version__, ) __all__ = [ "BrazilianLawsuitIDsRetriever", "retrieve_brazilian_uf_lawsuit_ids", ]
17.166667
40
0.752427
798775b2f1c1b33e3ada74080b9090bb9a5b319d
93,176
py
Python
openpnm/topotools/topotools.py
bryanwweber/OpenPNM
0547b5724ffedc0a593aae48639d36fe10e0baed
[ "MIT" ]
1
2021-02-19T18:16:21.000Z
2021-02-19T18:16:21.000Z
openpnm/topotools/topotools.py
kvmkrao/OpenPNM
0547b5724ffedc0a593aae48639d36fe10e0baed
[ "MIT" ]
null
null
null
openpnm/topotools/topotools.py
kvmkrao/OpenPNM
0547b5724ffedc0a593aae48639d36fe10e0baed
[ "MIT" ]
null
null
null
import scipy as sp import scipy.ndimage as spim import scipy.sparse as sprs import warnings import porespy as ps from scipy.sparse import csgraph from openpnm.utils import PrintableDict, logging, Workspace ws = Workspace() logger = logging.getLogger(__name__) def find_neighbor_sites(sites, am, flatten=True, include_i...
35.7133
81
0.606004
798775b6a5b29aa72a2c766584811aa469db2471
6,605
py
Python
tensorflow/python/keras/engine/base_layer_test.py
aeverall/tensorflow
7992bf97711919f56f80bff9e5510cead4ab2095
[ "Apache-2.0" ]
5
2018-07-04T22:14:02.000Z
2018-07-04T22:21:43.000Z
tensorflow/python/keras/engine/base_layer_test.py
aeverall/tensorflow
7992bf97711919f56f80bff9e5510cead4ab2095
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/engine/base_layer_test.py
aeverall/tensorflow
7992bf97711919f56f80bff9e5510cead4ab2095
[ "Apache-2.0" ]
2
2019-10-11T00:17:03.000Z
2020-05-23T18:59:45.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.132979
80
0.689175
7987761d9acaf0adeeeebe8597e1c367abc8b415
3,684
py
Python
tests/sources/test_address_geoadmin.py
geo-bl-ch/pyramid_oereb
767375a4adda4589e12c4257377fc30258cdfcb3
[ "BSD-2-Clause" ]
null
null
null
tests/sources/test_address_geoadmin.py
geo-bl-ch/pyramid_oereb
767375a4adda4589e12c4257377fc30258cdfcb3
[ "BSD-2-Clause" ]
null
null
null
tests/sources/test_address_geoadmin.py
geo-bl-ch/pyramid_oereb
767375a4adda4589e12c4257377fc30258cdfcb3
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import sys import pytest import requests_mock from requests import HTTPError from shapely.geometry import Point from pyramid_oereb.lib.records.address import AddressRecord from pyramid_oereb.contrib.sources.address import AddressGeoAdminSource from tests.mockrequest import MockParameter if sy...
38.375
101
0.582248
7987762d5a13bb0b6c035a7ed24793a006a7d6cb
7,090
py
Python
client.py
ChristosCM/Gossip-Architecture-Server
c8a43ce42f157f1ee3b18c3c618f9e058082c857
[ "MIT" ]
null
null
null
client.py
ChristosCM/Gossip-Architecture-Server
c8a43ce42f157f1ee3b18c3c618f9e058082c857
[ "MIT" ]
null
null
null
client.py
ChristosCM/Gossip-Architecture-Server
c8a43ce42f157f1ee3b18c3c618f9e058082c857
[ "MIT" ]
null
null
null
from __future__ import print_function import sys import Pyro4 import Pyro4.util import time from front_end import FrontServer sys.excepthook = Pyro4.util.excepthook class Client(object): def __init__(self,name): print ("Welcome to iRate\nTo navigate through the menus, please either type the first word of...
45.448718
165
0.49591
7987769049dda4c5ec024f2991fffb5c5e2b1501
3,360
py
Python
setup.py
max-moser/flask-iiif
7b7b929cb01e2a85313ea9d5080439d4455c4577
[ "BSD-3-Clause" ]
23
2015-03-05T11:58:17.000Z
2022-03-23T04:30:49.000Z
setup.py
max-moser/flask-iiif
7b7b929cb01e2a85313ea9d5080439d4455c4577
[ "BSD-3-Clause" ]
61
2015-03-24T10:57:16.000Z
2022-02-16T21:08:08.000Z
setup.py
max-moser/flask-iiif
7b7b929cb01e2a85313ea9d5080439d4455c4577
[ "BSD-3-Clause" ]
24
2015-03-09T16:18:30.000Z
2021-12-13T20:16:16.000Z
# -*- coding: utf-8 -*- # # This file is part of Flask-IIIF # Copyright (C) 2014, 2015, 2016, 2017 CERN. # Copyright (C) 2020 data-futures. # # Flask-IIIF is free software; you can redistribute it and/or modify # it under the terms of the Revised BSD License; see LICENSE file for # more details. """Flask-IIIF extensio...
28
74
0.618452
7987772cc01a690c27fb02724430cac49003c9ec
70
py
Python
cli.py
yansioux/project3
1cb09f4ed474e84bbd3d7cde71e16c36483feaaa
[ "MIT" ]
null
null
null
cli.py
yansioux/project3
1cb09f4ed474e84bbd3d7cde71e16c36483feaaa
[ "MIT" ]
null
null
null
cli.py
yansioux/project3
1cb09f4ed474e84bbd3d7cde71e16c36483feaaa
[ "MIT" ]
null
null
null
from project3.Main import main if __name__ == '__main__': main()
14
30
0.685714
798777a9196d613500ae9af2aeca190f82039065
784
py
Python
kafka-delete-topic/delete_topics.py
dfds/ded-toolbox
9c9bccbc16422cb5b55520b2a39b69acd5f3866c
[ "MIT" ]
null
null
null
kafka-delete-topic/delete_topics.py
dfds/ded-toolbox
9c9bccbc16422cb5b55520b2a39b69acd5f3866c
[ "MIT" ]
1
2020-11-27T14:25:09.000Z
2020-11-27T14:25:09.000Z
kafka-delete-topic/delete_topics.py
dfds/ded-toolbox
9c9bccbc16422cb5b55520b2a39b69acd5f3866c
[ "MIT" ]
1
2020-07-03T09:23:01.000Z
2020-07-03T09:23:01.000Z
#!/usr/bin/env python3 import logging from config import Config from capability_service.kafka import Topic def main(): config: Config = Config() topic: Topic = Topic( blaster_bearer_token=config.blaster_bearer_token, blaster_topics_api_url=config.blaster_topics_api_url, blaster_clus...
26.133333
76
0.706633
798777dd000c7f9beb8dca56f458490f858bd061
586
py
Python
sample/ch1/sel-avocado.py
wagase/scraping
81e886abe0f8a88830507c978f10f92faf4f19c6
[ "MIT" ]
null
null
null
sample/ch1/sel-avocado.py
wagase/scraping
81e886abe0f8a88830507c978f10f92faf4f19c6
[ "MIT" ]
null
null
null
sample/ch1/sel-avocado.py
wagase/scraping
81e886abe0f8a88830507c978f10f92faf4f19c6
[ "MIT" ]
2
2017-11-21T07:30:01.000Z
2018-10-18T01:45:58.000Z
from bs4 import BeautifulSoup fp = open("fruits-vegetables.html", encoding="utf-8") soup = BeautifulSoup(fp, "html.parser") # CSSセレクタで選び出す print(soup.select_one("li:nth-of-type(8)").string) #(1) print(soup.select_one("#ve-list > li:nth-of-type(4)").string) #(2) print(soup.select("#ve-list > li[data-lo='us']")[1].stri...
30.842105
66
0.645051
7987784a5e308ef1e91b8ed777c0d7bf28f1246d
1,815
py
Python
stdplugins/auto_pic.py
mredition/rep
7d06643bbd7e77d873cd6092198e1faf441d2696
[ "Apache-2.0" ]
null
null
null
stdplugins/auto_pic.py
mredition/rep
7d06643bbd7e77d873cd6092198e1faf441d2696
[ "Apache-2.0" ]
1
2021-02-08T20:45:09.000Z
2021-02-08T20:45:09.000Z
stdplugins/auto_pic.py
mredition/rep
7d06643bbd7e77d873cd6092198e1faf441d2696
[ "Apache-2.0" ]
null
null
null
""" Time In Profile Pic..... Command: `.autopic` :::::Credit Time:::::: 1) Coded By: @s_n_a_p_s 2) Ported By: @r4v4n4 (Legend) 3) End Game Help By: @spechide #curse: who ever edits this credit section will goto hell ⚠️DISCLAIMER⚠️ USING THIS PLUGIN CAN RESULT IN ACCOUNT BAN. WE DONT CARE ABOUT BAN, SO WE ARR USING...
31.842105
110
0.665014
798778d6e473c5ca960b63317fdbe0eb09ff9588
1,238
py
Python
pytorch-kaldi/plot_acc_and_loss.py
obentham/ssl-domain-adaptation
0e4cc0cad367020d2d81464f9e5fa8cc8127ff28
[ "Apache-2.0" ]
1
2021-05-18T10:47:16.000Z
2021-05-18T10:47:16.000Z
pytorch-kaldi/plot_acc_and_loss.py
obentham/ssl-domain-adaptation
0e4cc0cad367020d2d81464f9e5fa8cc8127ff28
[ "Apache-2.0" ]
null
null
null
pytorch-kaldi/plot_acc_and_loss.py
obentham/ssl-domain-adaptation
0e4cc0cad367020d2d81464f9e5fa8cc8127ff28
[ "Apache-2.0" ]
null
null
null
########################################################## # pytorch-kaldi v.0.1 # Mirco Ravanelli, Titouan Parcollet # Mila, University of Montreal # October 2018 ########################################################## import sys import configparser import os from utils import...
33.459459
120
0.64378
798779ad39d05e838038135b3bd5c5af0d2fed52
28,043
py
Python
tsdfileapi/resumables.py
egiltane/tsd-file-api
69bf8fd9983da46329f26a40640f6d2a6e7cb4eb
[ "BSD-3-Clause" ]
null
null
null
tsdfileapi/resumables.py
egiltane/tsd-file-api
69bf8fd9983da46329f26a40640f6d2a6e7cb4eb
[ "BSD-3-Clause" ]
null
null
null
tsdfileapi/resumables.py
egiltane/tsd-file-api
69bf8fd9983da46329f26a40640f6d2a6e7cb4eb
[ "BSD-3-Clause" ]
null
null
null
import functools import hashlib import io import logging import os import re import shutil import stat import sqlite3 import uuid from abc import ABC, abstractmethod from contextlib import contextmanager from typing import ContextManager, Union, Optional import sqlalchemy from sqlalchemy.pool import QueuePool from ...
34.706683
119
0.563706
79877b874bde67fc24cc886f5c064ff3802c6661
154
py
Python
py/capture/fileread.py
shaileshahuja/py
eb2bb442c4d5b9cd49f319d28b6f3819dee2b90a
[ "Apache-2.0" ]
null
null
null
py/capture/fileread.py
shaileshahuja/py
eb2bb442c4d5b9cd49f319d28b6f3819dee2b90a
[ "Apache-2.0" ]
null
null
null
py/capture/fileread.py
shaileshahuja/py
eb2bb442c4d5b9cd49f319d28b6f3819dee2b90a
[ "Apache-2.0" ]
null
null
null
import csv def read(): with open('data.csv') as csvfile: reader = csv.DictReader(csvfile) for row in reader: print row
15.4
40
0.571429
79877c1fcb84a74df904f2065d388ca432bef3a3
4,391
py
Python
tests/test_mappings.py
PtitCaius/taskwiki
8c4da3a744fd1aa22bfb0369658cecc925e77fd0
[ "MIT" ]
null
null
null
tests/test_mappings.py
PtitCaius/taskwiki
8c4da3a744fd1aa22bfb0369658cecc925e77fd0
[ "MIT" ]
null
null
null
tests/test_mappings.py
PtitCaius/taskwiki
8c4da3a744fd1aa22bfb0369658cecc925e77fd0
[ "MIT" ]
2
2020-11-28T23:17:15.000Z
2022-03-15T20:45:28.000Z
# -*- coding: utf-8 -*- from tests.base import IntegrationTest from time import sleep class TestDefaultMapping(IntegrationTest): viminput = """ * [ ] test task 1 #{uuid} * [ ] test task 2 #{uuid} """ vimoutput = """ * [X] test task 1 #{uuid} * [X] test task 2 #{uuid} """ tas...
20.810427
77
0.521977
79877d1cbbdcb580e289524e85062163a769d1f9
3,557
py
Python
homeassistant/components/airzone/binary_sensor.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
1
2022-02-21T05:50:41.000Z
2022-02-21T05:50:41.000Z
homeassistant/components/airzone/binary_sensor.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
25
2021-10-02T10:01:14.000Z
2022-03-31T06:11:49.000Z
homeassistant/components/airzone/binary_sensor.py
mtarjoianu/core
44e9146463ac505eb3d1c0651ad126cb25c28a54
[ "Apache-2.0" ]
1
2021-12-10T10:33:28.000Z
2021-12-10T10:33:28.000Z
"""Support for the Airzone sensors.""" from __future__ import annotations from collections.abc import Mapping from dataclasses import dataclass from typing import Any, Final from aioairzone.const import ( AZD_AIR_DEMAND, AZD_ERRORS, AZD_FLOOR_DEMAND, AZD_NAME, AZD_PROBLEMS, AZD_ZONES, ) from ...
31.201754
86
0.681192
79877d41a4ff9bcabf13a8b9720bde0827fca081
197
py
Python
server/apps/tests/factories/transaction_factory.py
Sergey-x/SibdevPractice
12e3f7e704af93911a0c4a66aad60733d2121e15
[ "MIT" ]
null
null
null
server/apps/tests/factories/transaction_factory.py
Sergey-x/SibdevPractice
12e3f7e704af93911a0c4a66aad60733d2121e15
[ "MIT" ]
null
null
null
server/apps/tests/factories/transaction_factory.py
Sergey-x/SibdevPractice
12e3f7e704af93911a0c4a66aad60733d2121e15
[ "MIT" ]
null
null
null
import factory from ...summary.models.transaction import Transaction class TransactionFactory(factory.django.DjangoModelFactory): class Meta: model = Transaction sum = 50000.00
17.909091
60
0.746193
79877d63f14ba1ba00835a74fc4112725e6528e7
6,151
py
Python
homeassistant/components/counter/__init__.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
3
2020-01-21T18:09:09.000Z
2022-01-17T08:06:03.000Z
homeassistant/components/counter/__init__.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
39
2016-12-16T12:40:34.000Z
2017-02-13T17:53:42.000Z
homeassistant/components/counter/__init__.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
4
2019-10-15T21:03:53.000Z
2020-05-27T19:53:20.000Z
"""Component to count within automations.""" import logging import voluptuous as vol from homeassistant.const import CONF_ICON, CONF_NAME, CONF_MAXIMUM, CONF_MINIMUM import homeassistant.helpers.config_validation as cv from homeassistant.helpers.config_validation import ENTITY_SERVICE_SCHEMA from homeassistant.helpe...
30.60199
88
0.628841
79877f7223d08d5ca9e1c783a30b29e3dc53b4b8
1,005
py
Python
source/about_window.py
noobiept/screen_ruler
1df07f2341db98c19e1f8f97a346960d1364f15f
[ "MIT" ]
null
null
null
source/about_window.py
noobiept/screen_ruler
1df07f2341db98c19e1f8f97a346960d1364f15f
[ "MIT" ]
null
null
null
source/about_window.py
noobiept/screen_ruler
1df07f2341db98c19e1f8f97a346960d1364f15f
[ "MIT" ]
null
null
null
from PySide6.QtWidgets import QLabel, QWidget, QGridLayout, QLayout from PySide6.QtCore import Qt class AboutWindow(QWidget): def __init__(self, parent=None): QWidget.__init__(self, parent) self.setWindowTitle('About') textElement = QLabel( "For more information, visit: https...
35.892857
109
0.649751
7987806593fc38013b5268fdb2a26d1d7d12fafa
4,289
py
Python
src/model/upsamplenet.py
stephenllh/bcs-unet
be534a25e28cbe3501278d0ee6e2417b2cd737d3
[ "MIT" ]
5
2021-05-04T12:46:32.000Z
2022-03-17T09:33:39.000Z
src/model/upsamplenet.py
stephenllh/bcs-unet
be534a25e28cbe3501278d0ee6e2417b2cd737d3
[ "MIT" ]
null
null
null
src/model/upsamplenet.py
stephenllh/bcs-unet
be534a25e28cbe3501278d0ee6e2417b2cd737d3
[ "MIT" ]
null
null
null
from torch import nn from torch.nn import functional as F from model.layers import SNConv2d class ReshapeNet(nn.Module): """The "initial reconstruction network" of SCSNet""" def __init__(self, in_channels, block_size=4): super().__init__() self.block_size = block_size self.conv = nn.C...
29.57931
120
0.550012
7987814956bdb68e04ea84e87ccbfe3fa4b59eb1
119
py
Python
Python Fundamentals/Dictionary/Lab/Task05.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
null
null
null
Python Fundamentals/Dictionary/Lab/Task05.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
null
null
null
Python Fundamentals/Dictionary/Lab/Task05.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
1
2021-12-04T12:30:57.000Z
2021-12-04T12:30:57.000Z
characters = input().split(", ") answer = {} for letter in characters: answer[letter] = ord(letter) print(answer)
17
32
0.663866
798782cd64dd5a8a8398604594b2394c01065957
4,534
py
Python
code/fe/47magnitude.py
okotaku/pet_finder
380e4f19172e06e92b5b752f59e2902efa6aee1f
[ "MIT" ]
34
2019-07-31T01:17:18.000Z
2020-11-15T20:01:30.000Z
code/fe/47magnitude.py
okotaku/pet_finder
380e4f19172e06e92b5b752f59e2902efa6aee1f
[ "MIT" ]
null
null
null
code/fe/47magnitude.py
okotaku/pet_finder
380e4f19172e06e92b5b752f59e2902efa6aee1f
[ "MIT" ]
6
2019-07-31T07:21:35.000Z
2021-05-21T12:46:06.000Z
from utils import * def w2v_pymagnitude(train_text, model, name): train_corpus = [text_to_word_sequence(text) for text in train_text] result = [] for text in train_corpus: vec = np.zeros(model.dim) for n_w, word in enumerate(text): if word in model: # 0.9906 v...
42.773585
114
0.652404
7987831e6e9c1b091eb40d83f890c806dda0cdf8
708
py
Python
Basics/SampleExam/MostCommonCharacter/caesars_cipher.py
ttitto/python
5f9be2d3c15a61c94647c250c9365a45f0cc3d0f
[ "MIT" ]
null
null
null
Basics/SampleExam/MostCommonCharacter/caesars_cipher.py
ttitto/python
5f9be2d3c15a61c94647c250c9365a45f0cc3d0f
[ "MIT" ]
null
null
null
Basics/SampleExam/MostCommonCharacter/caesars_cipher.py
ttitto/python
5f9be2d3c15a61c94647c250c9365a45f0cc3d0f
[ "MIT" ]
null
null
null
import sys def main(): NORMAL_ALFABET = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] dict = {v: n for n, v in enumerate(NORMAL_ALFABET)} try: key = int(input()) entry = input() except Exception: ...
32.181818
151
0.466102
798784073b40e3a3e815814363aad350628872ca
402
py
Python
api/apps/documents/migrations/0035_remove_document_short_title.py
Bibliotecaio/biblioteca
584268b7615f2be5f011fad09b472ee8a06914e0
[ "MIT" ]
null
null
null
api/apps/documents/migrations/0035_remove_document_short_title.py
Bibliotecaio/biblioteca
584268b7615f2be5f011fad09b472ee8a06914e0
[ "MIT" ]
null
null
null
api/apps/documents/migrations/0035_remove_document_short_title.py
Bibliotecaio/biblioteca
584268b7615f2be5f011fad09b472ee8a06914e0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-04-05 09:42 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('documents', '0034_auto_20170404_0840'), ] operations = [ migrations.RemoveField( ...
20.1
49
0.621891
7987846c1e6c9ae6bfc0427e65eeffcff35bb806
377
py
Python
DataStructurePython/stack.py
xnth97/Data-Structure-Notes
38243eb0cc9063f9efb3d6cfba51011ca49d8038
[ "MIT" ]
null
null
null
DataStructurePython/stack.py
xnth97/Data-Structure-Notes
38243eb0cc9063f9efb3d6cfba51011ca49d8038
[ "MIT" ]
null
null
null
DataStructurePython/stack.py
xnth97/Data-Structure-Notes
38243eb0cc9063f9efb3d6cfba51011ca49d8038
[ "MIT" ]
null
null
null
class Stack: def __init__(self): self.array = [] def is_empty(self): return len(self.array) == 0 def push(self, item): self.array.append(item) def pop(self): if self.is_empty(): return return self.array.pop() def peek(self): if self.is_...
19.842105
35
0.522546
798784fed4088939b06180324fabab5d468ff310
11,664
py
Python
Nodel Surveyor/script.py
scroix/nodel-recipes
3aa26de380d13957ae96d85befe00de6289d2687
[ "MIT" ]
8
2017-04-22T15:34:23.000Z
2022-02-03T20:00:20.000Z
Nodel Surveyor/script.py
scroix/nodel-recipes
3aa26de380d13957ae96d85befe00de6289d2687
[ "MIT" ]
48
2016-12-01T19:25:53.000Z
2021-11-24T04:23:53.000Z
Nodel Surveyor/script.py
scroix/nodel-recipes
3aa26de380d13957ae96d85befe00de6289d2687
[ "MIT" ]
10
2017-04-05T09:51:43.000Z
2021-07-23T04:50:41.000Z
'''See console and script for detailed usage instructions and detailed feedback.''' console.warn(''' NOTE: Due to intensive CPU and memory requirements, it is highly recommended this node only execute within its own independent process space e.g. run directly from the command-line ...
30.296104
229
0.610425
798786f0a61aa5ade906d75ef80f8dda0212fa81
6,099
py
Python
experimental_scripts/table_reader/doc_ai_parser.py
uk-gov-mirror/ONSdigital.companies-house-big-data-project
be74293b4398976696d07c6b2329d6121c9e5c6a
[ "MIT" ]
null
null
null
experimental_scripts/table_reader/doc_ai_parser.py
uk-gov-mirror/ONSdigital.companies-house-big-data-project
be74293b4398976696d07c6b2329d6121c9e5c6a
[ "MIT" ]
null
null
null
experimental_scripts/table_reader/doc_ai_parser.py
uk-gov-mirror/ONSdigital.companies-house-big-data-project
be74293b4398976696d07c6b2329d6121c9e5c6a
[ "MIT" ]
null
null
null
from google.cloud import documentai_v1beta3 as documentai from google.oauth2 import service_account import gcsfs import pandas as pd import math class DocParser: def __init__(self, fs): self.document = None self.token_df = None self.fs = fs @staticmethod def get_text(el, document...
35.876471
83
0.585342
798788dbbf01b4eeea2a3f5f08e801be206d317a
1,508
py
Python
Regression/SupportVector Regression/support_vector_regression.py
d4rk-lucif3r/Machine-Learning-Models
403c7a2a37420f1ce99985422fb44e2c330742f5
[ "MIT" ]
3
2021-01-04T08:42:00.000Z
2021-05-30T11:39:58.000Z
Regression/SupportVector Regression/support_vector_regression.py
d4rk-lucif3r/Machine-Learning-Models
403c7a2a37420f1ce99985422fb44e2c330742f5
[ "MIT" ]
3
2021-05-29T17:09:41.000Z
2021-05-29T17:10:32.000Z
Regression/SupportVector Regression/support_vector_regression.py
d4rk-lucif3r/Machine-Learning-Models
403c7a2a37420f1ce99985422fb44e2c330742f5
[ "MIT" ]
2
2021-05-26T03:54:13.000Z
2021-08-17T06:34:27.000Z
# Support Vector Regression (SVR) # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('Position_Salaries.csv') X = dataset.iloc[:, 1:-1].values y = dataset.iloc[:, -1].values print(X) print(y) y = y.reshape(len(y),1) print(y) # ...
31.416667
99
0.750663
798789d29d188c4f1cfab402804b0f16f4985cd3
6,380
py
Python
adventure/models.py
dswhitely1/Backend-1
a3c1a6d1800be10523a2bf2b913540020af35bc9
[ "MIT" ]
null
null
null
adventure/models.py
dswhitely1/Backend-1
a3c1a6d1800be10523a2bf2b913540020af35bc9
[ "MIT" ]
null
null
null
adventure/models.py
dswhitely1/Backend-1
a3c1a6d1800be10523a2bf2b913540020af35bc9
[ "MIT" ]
1
2019-11-19T00:54:54.000Z
2019-11-19T00:54:54.000Z
from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver from rest_framework.authtoken.models import Token from uuid import uuid4 class Item(models.Model): name = models.CharField(max_length=50, default="DEFAULT ITE...
36.878613
116
0.628997
79878a1b8421d0552cd0091523ae7838e22e8dc5
8,272
py
Python
assets_datasets/dataset_util.py
msaddler/pitchnet
8e26034be177deff7447ade7f782a4a9581c2188
[ "MIT" ]
6
2021-12-21T05:38:03.000Z
2022-03-31T21:05:56.000Z
assets_datasets/dataset_util.py
msaddler/pitchnet
8e26034be177deff7447ade7f782a4a9581c2188
[ "MIT" ]
null
null
null
assets_datasets/dataset_util.py
msaddler/pitchnet
8e26034be177deff7447ade7f782a4a9581c2188
[ "MIT" ]
1
2022-03-28T19:33:53.000Z
2022-03-28T19:33:53.000Z
import os import sys import glob import h5py import warnings import numpy as np def get_dataset_paths_from_hdf5(f): ''' Helper function to get list of paths to all h5py.Dataset objects in an open h5py.File object. ''' hdf5_dataset_key_list = [] def get_dataset_paths(name, node): if isinsta...
39.578947
108
0.657761
79878c383c50cec2d50524024861533a5e842f7d
971
py
Python
error-gen.py
pennbauman/web-errors
75ca469a56856d1b952020d1d47481cdd1dde7a8
[ "MIT" ]
1
2020-10-06T01:56:15.000Z
2020-10-06T01:56:15.000Z
error-gen.py
pennbauman/web-errors
75ca469a56856d1b952020d1d47481cdd1dde7a8
[ "MIT" ]
null
null
null
error-gen.py
pennbauman/web-errors
75ca469a56856d1b952020d1d47481cdd1dde7a8
[ "MIT" ]
null
null
null
import csv sourceFile = open("errors.csv", "r") sourceLines = csv.reader(sourceFile, delimiter=",") for code in sourceLines: # Get error data for input code def nameGet(name): if name == "code": return code[0].strip() elif name == "title": return code[1].strip() ...
26.972222
62
0.534501
79878cd5cf7da7e5f1efaef02b7944a37812d028
6,612
py
Python
sdk/python/pulumi_alicloud/directmail/get_domains.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
42
2019-03-18T06:34:37.000Z
2022-03-24T07:08:57.000Z
sdk/python/pulumi_alicloud/directmail/get_domains.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
152
2019-04-15T21:03:44.000Z
2022-03-29T18:00:57.000Z
sdk/python/pulumi_alicloud/directmail/get_domains.py
pulumi/pulumi-alicloud
9c34d84b4588a7c885c6bec1f03b5016e5a41683
[ "ECL-2.0", "Apache-2.0" ]
3
2020-08-26T17:30:07.000Z
2021-07-05T01:37:45.000Z
# 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...
37.146067
242
0.653358
79878d3fc76a8b57f41b5720d7f6b1925e7ac3c0
8,058
py
Python
examples/ode_demo.py
nikihowe/torchdiffeq
6d717af9d4e836294be314a9610e3baee764e31b
[ "MIT" ]
null
null
null
examples/ode_demo.py
nikihowe/torchdiffeq
6d717af9d4e836294be314a9610e3baee764e31b
[ "MIT" ]
null
null
null
examples/ode_demo.py
nikihowe/torchdiffeq
6d717af9d4e836294be314a9610e3baee764e31b
[ "MIT" ]
null
null
null
import os import argparse import time import numpy as np import torch import torch.nn as nn import torch.optim as optim import pickle as pkl parser = argparse.ArgumentParser('ODE demo') parser.add_argument('--method', type=str, choices=['dopri5', 'adams'], default='dopri5') parser.add_argument('--data_size', type=in...
33.435685
135
0.60685
79878d8ca4ed85cc1a302f658728d77621193cc6
6,506
py
Python
ai4eo/utils.py
ESA-PhiLab/AI4EO
0c8a821c5465517f8481c15b954c83895ba1b1ab
[ "MIT" ]
8
2019-06-20T08:06:30.000Z
2021-07-10T21:55:07.000Z
ai4eo/utils.py
ESA-PhiLab/AI4EO
0c8a821c5465517f8481c15b954c83895ba1b1ab
[ "MIT" ]
null
null
null
ai4eo/utils.py
ESA-PhiLab/AI4EO
0c8a821c5465517f8481c15b954c83895ba1b1ab
[ "MIT" ]
2
2020-01-19T07:55:12.000Z
2021-07-10T21:55:08.000Z
import gzip import random import numpy as np import pandas as pd from keras.utils import Sequence from skimage.filters import gaussian from skimage.io import imread from skimage.transform import resize, rotate from sklearn.preprocessing import label_binarize __all__ = ['InputTargetSequence'] class InputTargetSeque...
33.364103
118
0.588841
79878dfdc31f2effe65343221006223251a4f2d8
5,822
py
Python
scripts/curly.py
datadavev/mnlite
be3118cde634fce97ea689e1044803edf3cbc1ea
[ "Apache-2.0" ]
null
null
null
scripts/curly.py
datadavev/mnlite
be3118cde634fce97ea689e1044803edf3cbc1ea
[ "Apache-2.0" ]
14
2021-07-07T13:17:40.000Z
2022-01-17T19:01:34.000Z
scripts/curly.py
datadavev/mnlite
be3118cde634fce97ea689e1044803edf3cbc1ea
[ "Apache-2.0" ]
null
null
null
""" HTTP REquest introspection """ import sys import logging import click import requests import pyld try: import orjson as json except ModuleNotFoundError: import json import opersist.rdfutils # import igsn_lib.link_requests LOG_LEVELS = { "DEBUG": logging.DEBUG, "INFO": logging.INFO, "WARNING"...
27.205607
87
0.625386
79878e31d3dad2f4fe450eff100976445c464bdb
1,480
py
Python
wandb/integration/tensorflow/estimator_hook.py
theodumont/client
7402ac67ada5bc8078078a49fd3e0cb4b6172307
[ "MIT" ]
3,968
2017-08-23T21:27:19.000Z
2022-03-31T22:00:19.000Z
wandb/integration/tensorflow/estimator_hook.py
theodumont/client
7402ac67ada5bc8078078a49fd3e0cb4b6172307
[ "MIT" ]
2,725
2017-04-17T00:29:15.000Z
2022-03-31T21:01:53.000Z
wandb/integration/tensorflow/estimator_hook.py
theodumont/client
7402ac67ada5bc8078078a49fd3e0cb4b6172307
[ "MIT" ]
351
2018-04-08T19:39:34.000Z
2022-03-30T19:38:08.000Z
import tensorflow as tf import wandb if hasattr(tf.estimator, "SessionRunHook"): # In tf 1.14 and beyond, SessionRunHook is in the estimator package. SessionRunHook = tf.estimator.SessionRunHook SessionRunArgs = tf.estimator.SessionRunArgs else: # In older versions it's in train. SessionRunHook = ...
31.489362
80
0.691892
79878fc941c1503394434b47cf294ef9fd286b31
2,409
py
Python
scenarios/remind.py
avidale/pleiades-bot
6598bc8fa8af2b96d811ffa76f53bac3af9e096b
[ "MIT" ]
null
null
null
scenarios/remind.py
avidale/pleiades-bot
6598bc8fa8af2b96d811ffa76f53bac3af9e096b
[ "MIT" ]
null
null
null
scenarios/remind.py
avidale/pleiades-bot
6598bc8fa8af2b96d811ffa76f53bac3af9e096b
[ "MIT" ]
2
2021-04-11T07:46:05.000Z
2021-04-11T08:35:59.000Z
import os import random from core.dm import csc, Pr, PTurn from core.reminder import REMINDER CODEWORD = os.environ.get('CODEWORD') or str(random.random()) @csc.add_handler(priority=Pr.STRONG_INTENT, regexp='.*выслать напоминание.*') def ask_for_reminders(turn: PTurn): turn.response_text = 'Чтобы разослать нап...
38.854839
117
0.708593
79879054ec3e9dacb200f441f9cad41437b3b0d4
2,966
py
Python
getwv.py
spyysalo/bert-wordvecs
d0ee957242fcea5bdc07924f34db39463a5c1edf
[ "MIT" ]
4
2019-10-21T01:43:29.000Z
2021-03-05T05:30:31.000Z
getwv.py
spyysalo/bert-wordvecs
d0ee957242fcea5bdc07924f34db39463a5c1edf
[ "MIT" ]
null
null
null
getwv.py
spyysalo/bert-wordvecs
d0ee957242fcea5bdc07924f34db39463a5c1edf
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import json import numpy as np from logging import warning IGNORE = set(['[CLS]', '[SEP]']) def argparser(): from argparse import ArgumentParser ap = ArgumentParser() ap.add_argument('file', nargs='+', metavar='JSONL', help='BERT extract_features.py...
29.078431
75
0.533378
798790c00d7ff6f6d98e78379e8af2d3fcf788f5
10,807
py
Python
conans/model/conan_file.py
pianoslum/conan
79146da40b349b3f6edff922762725d22fcf21e3
[ "MIT" ]
null
null
null
conans/model/conan_file.py
pianoslum/conan
79146da40b349b3f6edff922762725d22fcf21e3
[ "MIT" ]
null
null
null
conans/model/conan_file.py
pianoslum/conan
79146da40b349b3f6edff922762725d22fcf21e3
[ "MIT" ]
null
null
null
import os from contextlib import contextmanager from conans import tools # @UnusedImport KEEP THIS! Needed for pyinstaller to copy to exe. from conans.client.tools.env import pythonpath from conans.errors import ConanException from conans.model.build_info import DepsCppInfo from conans.model.env_info import DepsEnvIn...
38.874101
101
0.637457
798790dc406e2e221f2626a3016e623e8acf3722
7,734
py
Python
sdk/python/pulumi_aws/storagegateway/gateway.py
Charliekenney23/pulumi-aws
55bd0390160d27350b297834026fee52114a2d41
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/storagegateway/gateway.py
Charliekenney23/pulumi-aws
55bd0390160d27350b297834026fee52114a2d41
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/storagegateway/gateway.py
Charliekenney23/pulumi-aws
55bd0390160d27350b297834026fee52114a2d41
[ "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 json import warnings import pulumi import pulumi.runtime from .. import utilities, tables class Gateway(pulumi.CustomResource):...
62.878049
403
0.730282
798792415414898b80894b1578567a7d824cfff2
5,433
py
Python
laygo2/util/transform.py
dwkim565/laygo2
fea1263638fa5641ad27f2000d7562cdf910c67f
[ "BSD-3-Clause" ]
null
null
null
laygo2/util/transform.py
dwkim565/laygo2
fea1263638fa5641ad27f2000d7562cdf910c67f
[ "BSD-3-Clause" ]
null
null
null
laygo2/util/transform.py
dwkim565/laygo2
fea1263638fa5641ad27f2000d7562cdf910c67f
[ "BSD-3-Clause" ]
1
2021-12-31T08:21:43.000Z
2021-12-31T08:21:43.000Z
#!/usr/bin/python ######################################################################################################################## # # Copyright (c) 2014, Regents of the University of California # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are permi...
36.709459
120
0.588625
7987938f00f755ee2d4945a9258e54227d35e75e
7,073
py
Python
examples/pwr_run/checkpointing/nonpc_short/k80_only/job39.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/nonpc_short/k80_only/job39.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/nonpc_short/k80_only/job39.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
""" #Trains a ResNet on the CIFAR10 dataset. """ from __future__ import print_function import keras from keras.layers import Dense, Conv2D, BatchNormalization, Activation from keras.layers import AveragePooling2D, Input, Flatten from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, LearningRa...
31.717489
118
0.702672
798793d174dba1f1835e7b037cab836bc40939d3
1,948
py
Python
tests/unit/models/dashboard/test_dashboard_query.py
lynrayjumo/amundsendatabuilder
f1e7e246f8f4f72ad0ef5df3ef52e0e379e078f8
[ "Apache-2.0" ]
null
null
null
tests/unit/models/dashboard/test_dashboard_query.py
lynrayjumo/amundsendatabuilder
f1e7e246f8f4f72ad0ef5df3ef52e0e379e078f8
[ "Apache-2.0" ]
1
2020-07-07T08:44:33.000Z
2020-07-07T08:44:33.000Z
tests/unit/models/dashboard/test_dashboard_query.py
lynrayjumo/amundsendatabuilder
f1e7e246f8f4f72ad0ef5df3ef52e0e379e078f8
[ "Apache-2.0" ]
1
2020-08-12T09:51:58.000Z
2020-08-12T09:51:58.000Z
import unittest from databuilder.models.dashboard.dashboard_query import DashboardQuery from databuilder.models.neo4j_csv_serde import NODE_KEY, \ NODE_LABEL, RELATION_START_KEY, RELATION_START_LABEL, RELATION_END_KEY, \ RELATION_END_LABEL, RELATION_TYPE, RELATION_REVERSE_TYPE class TestDashboardQuery(unitte...
45.302326
115
0.570842
7987944e906af1853ef61b5c79cd59a0221708c9
3,982
py
Python
qa/rpc-tests/merkle_blocks.py
mirzaei-ce/core-shahbit
57ad738667b3d458c92d94aee713c184d911c537
[ "MIT" ]
null
null
null
qa/rpc-tests/merkle_blocks.py
mirzaei-ce/core-shahbit
57ad738667b3d458c92d94aee713c184d911c537
[ "MIT" ]
null
null
null
qa/rpc-tests/merkle_blocks.py
mirzaei-ce/core-shahbit
57ad738667b3d458c92d94aee713c184d911c537
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test merkleblock fetch/validation # from test_framework.test_framework import ShahbitTestFramework f...
45.25
120
0.672024
798795881d6456575c7fcda5e0ea4ed307aa94d4
10,099
py
Python
survol/scripts/pydbg/utils/crash_binning.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
9
2017-10-05T23:36:23.000Z
2021-08-09T15:40:03.000Z
survol/scripts/pydbg/utils/crash_binning.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
21
2018-01-02T09:33:03.000Z
2018-08-27T11:09:52.000Z
survol/scripts/pydbg/utils/crash_binning.py
AugustinMascarelli/survol
7a822900e82d1e6f016dba014af5741558b78f15
[ "BSD-3-Clause" ]
4
2018-06-23T09:05:45.000Z
2021-01-22T15:36:50.000Z
# # Crash Binning # Copyright (C) 2006 Pedram Amini <pedram.amini@gmail.com> # # $Id: crash_binning.py 193 2007-04-05 13:30:01Z cameron $ # # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation; either v...
34.704467
120
0.54144
798795945fbcb1c6aa3b57047c61a9de5ae8d717
7,563
py
Python
model/base_model.py
Fangyh09/s_t
72bc9f7abfe937f46b7175c39d23acb914f6293d
[ "Apache-2.0" ]
null
null
null
model/base_model.py
Fangyh09/s_t
72bc9f7abfe937f46b7175c39d23acb914f6293d
[ "Apache-2.0" ]
null
null
null
model/base_model.py
Fangyh09/s_t
72bc9f7abfe937f46b7175c39d23acb914f6293d
[ "Apache-2.0" ]
null
null
null
import os import tensorflow as tf from tensorflow.python import debug as tf_debug TF_DEBUG = False class BaseModel(object): """Generic class for general methods that are not specific to NER""" def __init__(self, config): """Defines self.config and self.logger Args: config: (Conf...
36.892683
167
0.565913
798796192568cfc33b4da35b8d1093a238107adb
928
py
Python
scrape/src/tae_scraper.py
humanova/tae-gpt2-bot
d1cc69c88f1648df70bf8d5e6b1c0fefd2ef7ffd
[ "MIT" ]
2
2020-06-25T11:33:56.000Z
2021-03-20T19:26:53.000Z
scrape/src/tae_scraper.py
humanova/tae-gpt2-bot
d1cc69c88f1648df70bf8d5e6b1c0fefd2ef7ffd
[ "MIT" ]
null
null
null
scrape/src/tae_scraper.py
humanova/tae-gpt2-bot
d1cc69c88f1648df70bf8d5e6b1c0fefd2ef7ffd
[ "MIT" ]
1
2021-03-20T19:26:54.000Z
2021-03-20T19:26:54.000Z
# 2020 Emir Erbasan (humanova) # MIT License, see LICENSE for more details from scraper import CommentScraper import codecs import json MIN_CHAR_COUNT = 25 SUBREDDIT = "tamamahbapengelli" word_filters = [ "/untard", "/engelsiz", "/engel", "/un", "[sil", "[removed]", "[silindi]", "u/vr...
23.794872
83
0.613147
79879630d73eab69f1a059d6ec3bcb78dbd8ff7a
3,410
py
Python
toydata.py
nicococo/LAD
d086cbd2b4b1adda8eb5921e3ca77c83e17b64f0
[ "MIT" ]
7
2015-07-08T15:57:52.000Z
2020-02-18T22:06:19.000Z
toydata.py
nicococo/LAD
d086cbd2b4b1adda8eb5921e3ca77c83e17b64f0
[ "MIT" ]
null
null
null
toydata.py
nicococo/LAD
d086cbd2b4b1adda8eb5921e3ca77c83e17b64f0
[ "MIT" ]
2
2018-09-20T10:04:33.000Z
2019-10-04T12:43:27.000Z
import cvxopt as co import numpy as np import pylab as pl import matplotlib.pyplot as plt from ssvm import SSVM from so_multiclass import SOMultiClass class ToyData: @staticmethod def get_gaussian(num,dims=2,means=[0,0],vars=[1,1]): data = co.matrix(0.0,(dims,num)) for d in range(dims): ...
34.444444
125
0.521408
7987963bd993492eb4b55e48307daad4762b6e2e
1,974
py
Python
Lib/asyncio/base_futures.py
dignissimus/cpython
17357108732c731d6ed4f2bd123ee6ba1ff6891b
[ "0BSD" ]
null
null
null
Lib/asyncio/base_futures.py
dignissimus/cpython
17357108732c731d6ed4f2bd123ee6ba1ff6891b
[ "0BSD" ]
2
2022-01-01T11:08:44.000Z
2022-03-01T19:01:02.000Z
Lib/asyncio/base_futures.py
dignissimus/cpython
17357108732c731d6ed4f2bd123ee6ba1ff6891b
[ "0BSD" ]
null
null
null
__all__ = () import reprlib from . import format_helpers # States for Future. _PENDING = 'PENDING' _CANCELLED = 'CANCELLED' _FINISHED = 'FINISHED' def isfuture(obj): """Check for a Future. This returns True when obj is a Future instance or is advertising itself as duck-type compatible by setting _asyn...
29.029412
71
0.609929
7987964d1760e4e2818e88fe6fc0e5ccca28e554
3,516
py
Python
meiduo04/mall/apps/orders/views.py
sunsyw/web
a85d58e22d008bbe7f4d53c60163a07e9accebe9
[ "Apache-2.0" ]
null
null
null
meiduo04/mall/apps/orders/views.py
sunsyw/web
a85d58e22d008bbe7f4d53c60163a07e9accebe9
[ "Apache-2.0" ]
null
null
null
meiduo04/mall/apps/orders/views.py
sunsyw/web
a85d58e22d008bbe7f4d53c60163a07e9accebe9
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render # Create your views here. from rest_framework.views import APIView from django_redis import get_redis_connection from rest_framework.permissions import IsAuthenticated from goods.models import SKU from orders.serializers import PlaceOrderSerialzier,OrderSerializer,\ OrderListSer...
33.169811
99
0.699374
7987965d9f1ae48f2f3586bc1e139399140425e7
1,549
py
Python
24 Compare Machine Learning Algorithms/race_algorithms.py
IshmaelAsabere/Machine_Learning-Various-Topics
2c663ab73e2631522dac0fa1ec49042aa2088da4
[ "MIT" ]
null
null
null
24 Compare Machine Learning Algorithms/race_algorithms.py
IshmaelAsabere/Machine_Learning-Various-Topics
2c663ab73e2631522dac0fa1ec49042aa2088da4
[ "MIT" ]
null
null
null
24 Compare Machine Learning Algorithms/race_algorithms.py
IshmaelAsabere/Machine_Learning-Various-Topics
2c663ab73e2631522dac0fa1ec49042aa2088da4
[ "MIT" ]
null
null
null
# Compare Algorithms from pandas import read_csv from matplotlib import pyplot from sklearn.model_selection import KFold from sklearn.model_selection import cross_val_score from sklearn.linear_model import LogisticRegression from sklearn.tree import DecisionTreeClassifier from sklearn.neighbors import KNeighborsClassif...
34.422222
80
0.763073
7987979205cad82c87fb88c1518975a129ffabb8
2,570
py
Python
project/socializing/migrations/0001_initial.py
Project-EPIC/emergencypetmatcher
72c9eec228e33c9592243266e048dc02824d778d
[ "MIT" ]
null
null
null
project/socializing/migrations/0001_initial.py
Project-EPIC/emergencypetmatcher
72c9eec228e33c9592243266e048dc02824d778d
[ "MIT" ]
null
null
null
project/socializing/migrations/0001_initial.py
Project-EPIC/emergencypetmatcher
72c9eec228e33c9592243266e048dc02824d778d
[ "MIT" ]
1
2021-06-24T01:50:06.000Z
2021-06-24T01:50:06.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-08-17 13:21 from __future__ import unicode_literals import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = ...
50.392157
157
0.645525
79879802827cc62726ae558bfbbca5fb391d74f5
8,456
py
Python
nodes/mover.py
YaelBenShalom/Arm-Motion-Planning
bd44f53091b528a0517bb649c29809b8db7b36fd
[ "MIT" ]
null
null
null
nodes/mover.py
YaelBenShalom/Arm-Motion-Planning
bd44f53091b528a0517bb649c29809b8db7b36fd
[ "MIT" ]
null
null
null
nodes/mover.py
YaelBenShalom/Arm-Motion-Planning
bd44f53091b528a0517bb649c29809b8db7b36fd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ The mover node move the arm trought a series of waypoints using the following services: SERVICES: reset (Empty) - Takes a position and orientation of the realsense box and creates/moves the Realsense Box to the appropriate location - Moves the robot t...
41.45098
106
0.643567
798798ba7e1ece3071c1f2750f7c606d28fdd351
404
py
Python
env/Lib/site-packages/plotly/validators/cone/colorbar/title/_text.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/cone/colorbar/title/_text.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/cone/colorbar/title/_text.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name="text", parent_name="cone.colorbar.title", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
33.666667
88
0.675743
79879904dc8db5e8bdf8364907e2b893bc185c80
33,789
py
Python
triku_nb_code/robustness_functions.py
alexmascension/triku_notebooks
ac8dbac867ea39b0489f3f075141347953d386d4
[ "BSD-3-Clause" ]
null
null
null
triku_nb_code/robustness_functions.py
alexmascension/triku_notebooks
ac8dbac867ea39b0489f3f075141347953d386d4
[ "BSD-3-Clause" ]
null
null
null
triku_nb_code/robustness_functions.py
alexmascension/triku_notebooks
ac8dbac867ea39b0489f3f075141347953d386d4
[ "BSD-3-Clause" ]
null
null
null
import gc import os from itertools import product import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import pandas as pd import scanpy as sc import scipy.stats as sts from tqdm.notebook import tqdm import triku as tk from triku.tl._triku_functions import subtract_median from sklearn.decompos...
30.578281
136
0.534168
7987993ae2bc50c465461d7652196947ff2e218a
6,496
py
Python
graspy/inference/latent_distribution_test.py
asaadeldin11/graspy
26083e5fe0c79d0ce0bf045a07b8c6c6b0eab559
[ "Apache-2.0" ]
null
null
null
graspy/inference/latent_distribution_test.py
asaadeldin11/graspy
26083e5fe0c79d0ce0bf045a07b8c6c6b0eab559
[ "Apache-2.0" ]
null
null
null
graspy/inference/latent_distribution_test.py
asaadeldin11/graspy
26083e5fe0c79d0ce0bf045a07b8c6c6b0eab559
[ "Apache-2.0" ]
1
2020-03-31T22:02:24.000Z
2020-03-31T22:02:24.000Z
# Copyright 2019 NeuroData (http://neurodata.io) # # 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 ag...
38.666667
88
0.627771
79879965b3f2d601e8ddd68fc801abd10cbba82c
1,715
py
Python
install/TexGen/SetEOLProps.py
dalexa10/puma
ca02309c9f5c71e2e80ad8d64155dd6ca936c667
[ "NASA-1.3" ]
14
2021-06-17T17:17:07.000Z
2022-03-26T05:20:20.000Z
install/TexGen/SetEOLProps.py
dalexa10/puma
ca02309c9f5c71e2e80ad8d64155dd6ca936c667
[ "NASA-1.3" ]
6
2021-11-01T20:37:39.000Z
2022-03-11T17:18:53.000Z
install/TexGen/SetEOLProps.py
dalexa10/puma
ca02309c9f5c71e2e80ad8d64155dd6ca936c667
[ "NASA-1.3" ]
8
2021-07-20T09:24:23.000Z
2022-02-26T16:32:00.000Z
import pysvn, os.path def ConvertLineEndings(fileName): print("Converting line endings for file:", fileName) file = open(fileName) lines = file.readlines() file.close() # Convert to '\n' line feeds for i in range(len(lines)): lines[i] = lines[i].replace('\r\n', '\n') lines[i] = ...
39.883721
87
0.540525
79879ab5d9c39c7c9d16f15ba504ec20ce32ae80
16,316
py
Python
venv/bin/runxlrd.py
DXYyang/shenNeng_gasAnalysis
d94e2451d1938c090d1377dfbd487d0c6a649188
[ "MIT" ]
1
2020-02-16T04:32:15.000Z
2020-02-16T04:32:15.000Z
venv/bin/runxlrd.py
DXYyang/shenNeng_gasAnalysis
d94e2451d1938c090d1377dfbd487d0c6a649188
[ "MIT" ]
null
null
null
venv/bin/runxlrd.py
DXYyang/shenNeng_gasAnalysis
d94e2451d1938c090d1377dfbd487d0c6a649188
[ "MIT" ]
null
null
null
#!/home/yangyangyang/ShenNeng_Gas/venv/bin/python3 # Copyright (c) 2005-2012 Stephen John Machin, Lingfo Pty Ltd # This script is part of the xlrd package, which is released under a # BSD-style licence. from __future__ import print_function cmd_doc = """ Commands: 2rows Print the contents of first and last...
38.755344
101
0.504229
79879c120d1cfffe05db1cad5ccc5e726feb0e4e
10,044
py
Python
time_report/time_report_parser.py
SNSystems/Program-repository
b201381aec9a8e23a182cbbbb35c71e0ac13f1f4
[ "MIT" ]
null
null
null
time_report/time_report_parser.py
SNSystems/Program-repository
b201381aec9a8e23a182cbbbb35c71e0ac13f1f4
[ "MIT" ]
null
null
null
time_report/time_report_parser.py
SNSystems/Program-repository
b201381aec9a8e23a182cbbbb35c71e0ac13f1f4
[ "MIT" ]
null
null
null
#!/usr/bin/env python ## Copyright (c) 2016 by Sony Computer Entertainment, Inc. ## This file is subject to the terms and conditions defined in file ## 'LICENSE.txt', which is part of this source code package. ''' A parser for clang -ftime-report output. The input is a file or string in a format which roughly resemble...
32.931148
99
0.561231
79879c13c9d74df9cc5285ef03246ccf68039630
16,482
py
Python
tests/integration/test_grpc_protocol/test.py
ivoleg/ClickHouse
16e173f0c024e36cd253388abac2ecc513686d87
[ "Apache-2.0" ]
3
2021-01-04T08:29:26.000Z
2021-10-09T08:21:38.000Z
tests/integration/test_grpc_protocol/test.py
ivoleg/ClickHouse
16e173f0c024e36cd253388abac2ecc513686d87
[ "Apache-2.0" ]
null
null
null
tests/integration/test_grpc_protocol/test.py
ivoleg/ClickHouse
16e173f0c024e36cd253388abac2ecc513686d87
[ "Apache-2.0" ]
null
null
null
import os import pytest import sys import time import grpc from helpers.cluster import ClickHouseCluster, run_and_check from threading import Thread GRPC_PORT = 9100 SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) DEFAULT_ENCODING = 'utf-8' # Use grpcio-tools to generate *pb2.py files from *.proto. proto_d...
44.910082
162
0.633964
79879c1615cf3eb243df517c20bebf4ab464b47e
5,318
py
Python
portal/transport.py
ProjectMeniscus/portal
6bd636eba397cec798a673fcf79155a4a2af4abe
[ "Apache-2.0" ]
2
2015-08-10T17:22:29.000Z
2020-11-14T12:49:40.000Z
portal/transport.py
ProjectMeniscus/portal
6bd636eba397cec798a673fcf79155a4a2af4abe
[ "Apache-2.0" ]
null
null
null
portal/transport.py
ProjectMeniscus/portal
6bd636eba397cec798a673fcf79155a4a2af4abe
[ "Apache-2.0" ]
2
2015-09-27T07:13:25.000Z
2020-11-17T18:55:58.000Z
""" The transport module defines the classes that serve as the transport layer for Portal when sending parsed syslog messages downstream. """ import simplejson as json import zmq from portal.log import get_logger from portal.input.syslog import SyslogMessageHandler _LOG = get_logger(__name__) class SyslogToZeroMQ...
29.544444
79
0.608687
79879ced205b879bd8786f04bd6dfb8d51a653a5
4,927
py
Python
ibis/backends/dask/execution/aggregations.py
p-a-a-a-trick/ibis
943347071c3f105b20ff1fb5a3332de4fd8a8e43
[ "Apache-2.0" ]
null
null
null
ibis/backends/dask/execution/aggregations.py
p-a-a-a-trick/ibis
943347071c3f105b20ff1fb5a3332de4fd8a8e43
[ "Apache-2.0" ]
null
null
null
ibis/backends/dask/execution/aggregations.py
p-a-a-a-trick/ibis
943347071c3f105b20ff1fb5a3332de4fd8a8e43
[ "Apache-2.0" ]
null
null
null
"""Execution rules for Aggregatons - mostly TODO - ops.Aggregation - ops.Any - ops.NotAny - ops.All - ops.NotAll """ import functools import operator from typing import Optional import dask.dataframe as dd import dask.dataframe.groupby as ddgb import ibis.expr.operations as ops from ibis.backends.pandas.execution....
29.153846
79
0.632839
79879d2a2359713ca0254dbb0db8e36c2ef5fd50
2,378
py
Python
nova/volume/encryptors/__init__.py
bopopescu/nova-master
58809056f3a219c6ea3667003f906eeaf581fa95
[ "Apache-2.0" ]
7
2017-06-19T19:37:00.000Z
2019-06-16T02:06:14.000Z
nova/volume/encryptors/__init__.py
bopopescu/nova-master
58809056f3a219c6ea3667003f906eeaf581fa95
[ "Apache-2.0" ]
null
null
null
nova/volume/encryptors/__init__.py
bopopescu/nova-master
58809056f3a219c6ea3667003f906eeaf581fa95
[ "Apache-2.0" ]
6
2015-06-20T16:07:28.000Z
2020-08-19T14:57:59.000Z
# Copyright (c) 2013 The Johns Hopkins University/Applied Physics Laboratory # 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/...
37.746032
78
0.652649
79879dcd2b2de5054f2b71353d701ce13829e8dd
3,704
py
Python
cvpods/modeling/backbone/splat.py
reinforcementdriving/cvpods
32d98b74745020be035a0e20337ad934201615c4
[ "Apache-2.0" ]
81
2020-11-16T00:31:19.000Z
2022-03-16T02:49:45.000Z
cvpods/modeling/backbone/splat.py
wondervictor/cvpods
614a975e5425bbaeb66bbd1ffca552d633ba89ca
[ "Apache-2.0" ]
7
2020-11-25T13:30:17.000Z
2021-09-16T03:38:45.000Z
cvpods/modeling/backbone/splat.py
wondervictor/cvpods
614a975e5425bbaeb66bbd1ffca552d633ba89ca
[ "Apache-2.0" ]
8
2020-11-28T14:50:37.000Z
2020-12-23T20:05:03.000Z
"""Split-Attention""" import torch import torch.nn.functional as F from torch.nn import Module, ReLU from torch.nn.modules.utils import _pair from cvpods.layers import Conv2d, get_norm __all__ = ['SplAtConv2d'] class RFConv2d(object): def __init__(self, *args, **kwargs): raise NotImplementedError cla...
32.491228
87
0.478402
79879ee0a901506293076c5e35c7a5fbea4ecf4d
24,238
py
Python
simulariumio/tests/filters/test_every_nth_timestep_filter.py
allen-cell-animated/simularium-conversion
47ba9a5a8105cf5cd36592d859252df642b1f1f9
[ "Apache-2.0" ]
null
null
null
simulariumio/tests/filters/test_every_nth_timestep_filter.py
allen-cell-animated/simularium-conversion
47ba9a5a8105cf5cd36592d859252df642b1f1f9
[ "Apache-2.0" ]
null
null
null
simulariumio/tests/filters/test_every_nth_timestep_filter.py
allen-cell-animated/simularium-conversion
47ba9a5a8105cf5cd36592d859252df642b1f1f9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import pytest from simulariumio import FileConverter, InputFileData from simulariumio.filters import EveryNthTimestepFilter from simulariumio.constants import DEFAULT_CAMERA_SETTINGS, CURRENT_VERSION @pytest.mark.parametrize( "input_path, _filter, expected_data", ...
39.47557
87
0.158346
79879ef346f53d541c5df8794b53d96ec955e21b
37,168
py
Python
pandas/tests/reshape/test_melt.py
gabriellm1/pandas
020040b3b92516b445ddd8daba3b9818340e82d4
[ "BSD-3-Clause" ]
1
2020-10-29T17:32:26.000Z
2020-10-29T17:32:26.000Z
pandas/tests/reshape/test_melt.py
gabriellm1/pandas
020040b3b92516b445ddd8daba3b9818340e82d4
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/reshape/test_melt.py
gabriellm1/pandas
020040b3b92516b445ddd8daba3b9818340e82d4
[ "BSD-3-Clause" ]
2
2021-07-17T19:28:31.000Z
2021-11-28T17:14:58.000Z
import numpy as np import pytest import pandas as pd from pandas import DataFrame, lreshape, melt, wide_to_long import pandas._testing as tm class TestMelt: def setup_method(self, method): self.df = tm.makeTimeDataFrame()[:10] self.df["id1"] = (self.df["A"] > 0).astype(np.int64) self.df["...
34.671642
88
0.425635
79879ef400dabe2cd884c244b5461e544a503db9
191
py
Python
PyFLOTRAN/writers/__init__.py
aitirga/PyFLOTRAN
f601052a0686e89434ae91a917f218afa6c31528
[ "MIT" ]
2
2021-05-14T18:41:49.000Z
2021-10-05T15:06:31.000Z
PyFLOTRAN/writers/__init__.py
aitirga/PyFLOTRAN
f601052a0686e89434ae91a917f218afa6c31528
[ "MIT" ]
6
2020-04-30T10:19:39.000Z
2022-03-21T18:16:14.000Z
PyFLOTRAN/writers/__init__.py
aitirga/PyFLOTRAN
f601052a0686e89434ae91a917f218afa6c31528
[ "MIT" ]
1
2020-03-24T10:37:23.000Z
2020-03-24T10:37:23.000Z
from .HDF5CentroidWriter import HDF5CentroidWriter from .BaseWriter import BaseWriter from .HDF5RasterWriter import HDF5RasterWriter from .OpenFoamVariableWriter import OpenFoamVariableWriter
47.75
58
0.900524
79879f44659119100d9caf0f3e03b593a3010998
3,108
py
Python
superlists/superlists/settings.py
Eclatant/DjangoTDD
77b385edd20876071390aa9fbad434c4ca591d6f
[ "MIT" ]
null
null
null
superlists/superlists/settings.py
Eclatant/DjangoTDD
77b385edd20876071390aa9fbad434c4ca591d6f
[ "MIT" ]
null
null
null
superlists/superlists/settings.py
Eclatant/DjangoTDD
77b385edd20876071390aa9fbad434c4ca591d6f
[ "MIT" ]
null
null
null
""" Django settings for superlists project. Generated by 'django-admin startproject' using Django 1.10.4. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import...
25.68595
91
0.696911
79879fb34713d4f9c4eedbb6f900ff2afe887ec5
9,878
py
Python
test/functional/mining_pos_reorg.py
dapperlink/dappcoin
e495e4c59a71d4b1f174d68c9bf963a37f678d02
[ "MIT" ]
1
2021-06-19T12:07:59.000Z
2021-06-19T12:07:59.000Z
test/functional/mining_pos_reorg.py
dapperlink/DappCoin
e495e4c59a71d4b1f174d68c9bf963a37f678d02
[ "MIT" ]
null
null
null
test/functional/mining_pos_reorg.py
dapperlink/DappCoin
e495e4c59a71d4b1f174d68c9bf963a37f678d02
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2019 The DAPP developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.authproxy import JSONRPCException from test_framework.test_framework import DappcoinTestFramework ...
46.815166
116
0.63606