hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
0349ca9400142e18cc85405cd0ef6ebaad950ec5
1,834
py
Python
0x08-python-more_classes/1-rectangle.py
FatChicken277/holbertonschool-higher_level_programming
520d6310a5e2a874f8c5f5185d0fb769b6412e7c
[ "CNRI-Python" ]
null
null
null
0x08-python-more_classes/1-rectangle.py
FatChicken277/holbertonschool-higher_level_programming
520d6310a5e2a874f8c5f5185d0fb769b6412e7c
[ "CNRI-Python" ]
null
null
null
0x08-python-more_classes/1-rectangle.py
FatChicken277/holbertonschool-higher_level_programming
520d6310a5e2a874f8c5f5185d0fb769b6412e7c
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/python3 """This module contains a class Rectangle that defines a rectangle by: (based on 0-rectangle.py) """ class Rectangle: """This class defines a rectangle. """ def __init__(self, width=0, height=0): """Init the rectangle. Keyword Arguments: width (int) -- ...
24.783784
67
0.537077
0349de11ecceb8d50c4f05408984c0cd6c066c72
3,360
py
Python
tests/unit/fake_data_root/rabbitmq/var/lib/juju/agents/unit-rabbitmq-server-0/charm/files/check_rabbitmq_cluster.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
19
2016-04-22T10:00:08.000Z
2021-05-25T14:37:12.000Z
tests/unit/fake_data_root/rabbitmq/var/lib/juju/agents/unit-rabbitmq-server-0/charm/files/check_rabbitmq_cluster.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
111
2021-10-01T18:18:17.000Z
2022-03-29T12:23:20.000Z
tests/unit/fake_data_root/rabbitmq/var/lib/juju/agents/unit-rabbitmq-server-0/charm/files/check_rabbitmq_cluster.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
24
2016-03-23T20:32:43.000Z
2021-12-14T20:06:20.000Z
#!/usr/bin/python3 """ Checks for RabbitMQ cluster partitions. Copyright (C) 2017 Canonical All Rights Reserved Author: James Hebden This Nagios check will use the HTTP management API to fetch cluster status, and check it for problems such as partitions and offline nodes. """ from optparse import OptionParser import...
31.111111
79
0.550298
034a06e0b3bd7ed1a0b15016b1af36738d9981e4
44,801
py
Python
metalibm_core/code_generation/generator_utility.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
2
2019-02-18T13:42:04.000Z
2021-03-12T18:54:53.000Z
metalibm_core/code_generation/generator_utility.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
null
null
null
metalibm_core/code_generation/generator_utility.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################### # This file is part of metalibm (https://github.com/kalray/metalibm) ############################################################################### # MIT License # # Copyright (c) 2018 Kalray # # Permission is here...
43.202507
210
0.649093
034a10f81b62da53f2d76153f5dc7cf6dc9f19de
4,404
py
Python
appengine/findit/services/monitoring.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/services/monitoring.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/services/monitoring.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 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. """This module is for monitoring operations. It provides functions to: * Monitor when try job is triggered. """ from common import monitoring def OnTryJ...
30.583333
79
0.707312
034a1c6fad1eb80165c6675eb8622737d2d753b6
295
py
Python
python/odml/examples/example_bulk_conversion.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/examples/example_bulk_conversion.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/examples/example_bulk_conversion.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
import os import odml.tools as oto wdir = "/home/msonntag/Chaos/work/x_odml/file_dump/conv" folder_v1_1 = os.path.join(wdir, "out") # Conversion of v1.0 to v1.1 files # Will overwrite existing files fc = oto.format_converter.FormatConverter() fc.convert_dir(wdir, folder_v1_1, False, "v1_1")
24.583333
56
0.759322
034a2e8fad9f5ddc4857e15957f880df2c5e1b1f
3,190
py
Python
venv/Lib/site-packages/pyrogram/raw/types/message_media_photo.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/message_media_photo.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/message_media_photo.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
35.842697
104
0.624451
034a49448a6ededb022dcd549fc0f19534d9bbe3
18,112
py
Python
dragmap-meth.py
xie186/dragmap-meth
6e9ccfd281bd317a56b8c4e87b5386978eb8de45
[ "MIT" ]
4
2021-12-18T20:33:16.000Z
2022-01-03T02:54:13.000Z
dragmap-meth.py
xie186/dragmap-meth
6e9ccfd281bd317a56b8c4e87b5386978eb8de45
[ "MIT" ]
null
null
null
dragmap-meth.py
xie186/dragmap-meth
6e9ccfd281bd317a56b8c4e87b5386978eb8de45
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*-- coding: utf-8 -*- import argparse import sys import os import re import gzip import toolshed import logging logging.basicConfig(format='%(asctime)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S') import subprocess from operator import itemgetter from subprocess import Popen, PIPE, STDOUT from ...
37.190965
157
0.58453
034a73091e8ead3fa18ca4aab6e3a9565dea6264
1,643
py
Python
partools/rl/gl.py
paularnaud2/PyTools
09accc33e1dcfdde45671ad5962727554648b30c
[ "MIT" ]
null
null
null
partools/rl/gl.py
paularnaud2/PyTools
09accc33e1dcfdde45671ad5962727554648b30c
[ "MIT" ]
null
null
null
partools/rl/gl.py
paularnaud2/PyTools
09accc33e1dcfdde45671ad5962727554648b30c
[ "MIT" ]
null
null
null
from partools.utils import g # Mandatory inputs--------------------------------------------------- # Either CNX_INFO or DB have to be input. If both are filled, CNX_INFO is taken CNX_INFO = '' # Connection string: 'USER/PWD@HOST:PORT/SERVICE_NAME' DB = '' # DB name from partools.conf.CONF_ORACLE QUERY_IN = '' # Mu...
37.340909
153
0.670116
034a9d8cdb9a771169202568c134c6dd020a9f87
1,327
py
Python
gpu/PRESUBMIT.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
gpu/PRESUBMIT.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
gpu/PRESUBMIT.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright (c) 2016 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. """Top-level presubmit script for gpu. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit ...
32.365854
75
0.746797
034aa69635657fa896c6d6654091bf8a058ea310
20,994
py
Python
improver_tests/synthetic_data/test_generate_metadata.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
1
2021-08-02T21:17:18.000Z
2021-08-02T21:17:18.000Z
improver_tests/synthetic_data/test_generate_metadata.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
4
2018-01-24T11:29:15.000Z
2021-01-11T15:16:21.000Z
improver_tests/synthetic_data/test_generate_metadata.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
1
2021-08-02T21:17:19.000Z
2021-08-02T21:17:19.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
38.310219
109
0.710012
034adb6b9de8695929969a9e0fda142ac0e45dd8
8,256
py
Python
testing/old_tests/full_idid_v1.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
2
2019-09-26T20:56:06.000Z
2019-11-18T21:03:27.000Z
testing/old_tests/full_idid_v1.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
6
2018-03-19T20:36:49.000Z
2018-04-13T15:27:29.000Z
testing/old_tests/full_idid_v1.py
kuanhanl/cappresse
31cd7d03414a930f7e2c21e1a3eb5e7dd25cc500
[ "MIT" ]
5
2018-10-04T18:51:02.000Z
2020-07-02T15:31:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from __future__ import division from nmpc_mhe.dync.MHEGenv2 import MheGen from sample_mods.bfb.nob5_hi_t import bfb_dae import itertools, sys """Testing the new preparation phases with ideal strategies""" def main(): u_weight = 1E...
38.4
118
0.561289
034aeb293e89bc2fad0d3886e1751d7249378bfc
3,855
py
Python
data/datasets/eval_reid.py
Qidian213/NAIC2019
23e05a8a096168ccfa4d1743467fdf78ffcaabba
[ "MIT" ]
null
null
null
data/datasets/eval_reid.py
Qidian213/NAIC2019
23e05a8a096168ccfa4d1743467fdf78ffcaabba
[ "MIT" ]
null
null
null
data/datasets/eval_reid.py
Qidian213/NAIC2019
23e05a8a096168ccfa4d1743467fdf78ffcaabba
[ "MIT" ]
null
null
null
# encoding: utf-8 """ @author: liaoxingyu @contact: sherlockliao01@gmail.com """ import os import numpy as np import shutil import cv2 import json import shutil def eval_func(distmat, q_pids, g_pids, q_camids, g_camids,q_img_paths, g_img_paths, max_rank=210): """Evaluation with market1501 metric Key: for ...
34.115044
114
0.609857
034b009c4b18b940f0be5d54e40c38e1e80357cd
26,625
py
Python
api/base/filters.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
1
2015-10-02T18:35:53.000Z
2015-10-02T18:35:53.000Z
api/base/filters.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
4
2016-05-13T14:24:16.000Z
2017-03-30T15:28:31.000Z
api/base/filters.py
hmoco/osf.io
a02869f9b5c198bafae7cea0c216674bbcba62f7
[ "Apache-2.0" ]
null
null
null
import datetime import functools import operator import re import pytz from api.base import utils from api.base.exceptions import (InvalidFilterComparisonType, InvalidFilterError, InvalidFilterFieldError, InvalidFilterMatchType, InvalidFilterOperator, ...
41.666667
119
0.601728
034b0a4c0cb55cc29e9b1da348bb9b5a54935bba
630
py
Python
parameters.py
asigiuk/smart_pet_bowl
5a85fd30618caaba1819a1e72b94768165c6f08f
[ "MIT" ]
null
null
null
parameters.py
asigiuk/smart_pet_bowl
5a85fd30618caaba1819a1e72b94768165c6f08f
[ "MIT" ]
null
null
null
parameters.py
asigiuk/smart_pet_bowl
5a85fd30618caaba1819a1e72b94768165c6f08f
[ "MIT" ]
null
null
null
test_json_file = "config.json" # DICTIONARY CONSTANT STRINGS LABELS = "labels" FOLDERS = "folders" INPUT_IMAGE_FOLDER = "input_image_directory" EXPOSURE_TIME = "exposure_time" ROOT_FOLDER = "path_to_output_data_root_folder" CAMERA_SERIAL = "camera_serial_number" MAX_HEIGHT = "max_display_window_height" MAX_WIDTH = "ma...
28.636364
47
0.809524
034b1a9b73e0cad67b447805d9ad6af6648d517a
1,116
py
Python
tdrs-backend/tdpservice/stts/serializers.py
riatzukiza/TANF-app
e34efc87e9703bab37db76b84cc47a041e3612a1
[ "CC0-1.0" ]
18
2020-03-25T19:57:12.000Z
2021-07-26T15:37:50.000Z
tdrs-backend/tdpservice/stts/serializers.py
HHS/TANF-app
e36086ebd9a596e20d2efa1f8d6de8dc11b1a26a
[ "CC0-1.0" ]
133
2020-02-27T20:41:42.000Z
2022-03-01T15:13:46.000Z
tdrs-backend/tdpservice/stts/serializers.py
riatzukiza/TANF-app
e34efc87e9703bab37db76b84cc47a041e3612a1
[ "CC0-1.0" ]
15
2020-07-22T14:58:37.000Z
2021-06-22T17:29:55.000Z
"""Serialize stt data.""" from rest_framework import serializers from tdpservice.stts.models import Region, STT class STTSerializer(serializers.ModelSerializer): """STT serializer.""" code = serializers.SerializerMethodField() class Meta: """Metadata.""" model = STT fields = [...
23.744681
73
0.644265
034b474a00ad5c82a064e125bde9d80e16f7e392
2,688
py
Python
tests/test_transaction_context_manager.py
wciurzynski/aiomysql
0d60a790296e18285705ab065f6e59ee2436a285
[ "MIT" ]
null
null
null
tests/test_transaction_context_manager.py
wciurzynski/aiomysql
0d60a790296e18285705ab065f6e59ee2436a285
[ "MIT" ]
null
null
null
tests/test_transaction_context_manager.py
wciurzynski/aiomysql
0d60a790296e18285705ab065f6e59ee2436a285
[ "MIT" ]
1
2021-09-06T19:26:00.000Z
2021-09-06T19:26:00.000Z
import asyncio import logging from pymysql import InterfaceError, OperationalError import aiomysql async def start_test(): logging.getLogger().setLevel(logging.DEBUG) logging.info('start_test') host = '10.20.166.2' port = 3306 user = 'root' password = 'Kub@Rozpruw@cz007' db = 'manager' ...
26.88
65
0.56436
034bdc14c1157971c02b3b2ada0f51d98dab1706
2,363
py
Python
sdk/eventhub/azure-eventhubs/setup.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/eventhub/azure-eventhubs/setup.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/eventhub/azure-eventhubs/setup.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
31.932432
91
0.589082
034c1204650ad03f0e126295484cc38232d0714d
1,634
py
Python
datasets/mmdet_tusimple/mmdet/core/bbox/__init__.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
13
2021-10-15T15:14:45.000Z
2022-03-09T00:22:55.000Z
datasets/mmdet_tusimple/mmdet/core/bbox/__init__.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
4
2021-10-17T09:04:20.000Z
2022-03-25T06:43:00.000Z
datasets/mmdet_tusimple/mmdet/core/bbox/__init__.py
Jinming-Su/SGNet
fcf35edaf332c1a4e2713acad5a0fc0e21509c3e
[ "MIT" ]
2
2021-11-17T11:31:35.000Z
2021-11-29T06:50:35.000Z
from .assigners import (AssignResult, AssignResultMin, BaseAssigner, CenterRegionAssigner, MaxIoUAssigner, MaxDisAssigner) from .builder import build_assigner, build_bbox_coder, build_sampler from .coder import (BaseBBoxCoder, DeltaXYWHBBoxCoder, PseudoBBoxCoder, TBLRBBoxCode...
58.357143
90
0.716034
034c1f05242dcdc11bf4770a7beafd8d09f6f45f
6,704
py
Python
geoapps/simpegPF/EM/NSEM/Utils/testUtils.py
RichardScottOZ/geoapps
5b3c1d4fd11add45992e8b2497312ac014272b69
[ "MIT" ]
1
2022-02-18T16:24:53.000Z
2022-02-18T16:24:53.000Z
geoapps/simpegPF/EM/NSEM/Utils/testUtils.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
geoapps/simpegPF/EM/NSEM/Utils/testUtils.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
import numpy as np import SimPEG as simpeg from SimPEG.Utils import meshTensor from SimPEG.EM.NSEM.RxNSEM import Point_impedance1D, Point_impedance3D, Point_tipper3D from SimPEG.EM.NSEM.SurveyNSEM import Survey from SimPEG.EM.NSEM.SrcNSEM import Planewave_xy_1Dprimary, Planewave_xy_1DhomotD from SimPEG.EM.NSEM.Problem...
29.147826
87
0.587709
034c2db6e975edea8636bdfa2cdfcebaa72aa401
1,497
py
Python
python/vineyard/deploy/tests/conftest.py
TREiop/v6d
9ad80c65c226405b0c7b4ed6b6c9b1229bbf9175
[ "Apache-2.0", "CC0-1.0" ]
417
2020-10-23T12:35:27.000Z
2021-04-15T09:37:00.000Z
python/vineyard/deploy/tests/conftest.py
TREiop/v6d
9ad80c65c226405b0c7b4ed6b6c9b1229bbf9175
[ "Apache-2.0", "CC0-1.0" ]
160
2020-10-27T16:27:12.000Z
2021-04-19T01:35:29.000Z
python/vineyard/deploy/tests/conftest.py
TREiop/v6d
9ad80c65c226405b0c7b4ed6b6c9b1229bbf9175
[ "Apache-2.0", "CC0-1.0" ]
28
2020-10-27T15:40:48.000Z
2021-04-16T08:03:16.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2020-2021 Alibaba Group Holding Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
28.245283
94
0.723447
034c381f8cc3c095e30a14d16c612cb3c9e77c88
818
py
Python
src/__init__.py
embo-press/traxiv
61f09fc670f618ec8e6f198eedb727c6e9551e64
[ "MIT" ]
1
2021-10-02T23:25:34.000Z
2021-10-02T23:25:34.000Z
src/__init__.py
embo-press/traxiv
61f09fc670f618ec8e6f198eedb727c6e9551e64
[ "MIT" ]
1
2019-09-20T21:21:51.000Z
2019-09-24T16:36:09.000Z
src/__init__.py
embo-press/traxiv
61f09fc670f618ec8e6f198eedb727c6e9551e64
[ "MIT" ]
null
null
null
import os import logging from pathlib import Path from dotenv import load_dotenv from hypothepy.v1.api import HypoApi load_dotenv(dotenv_path='./.env') HYPOTHESIS_USER=os.getenv("HYPOTHESIS_USER") HYPOTHESIS_API_KEY=os.getenv("HYPOTHESIS_API_KEY") HYPO = HypoApi(HYPOTHESIS_API_KEY, HYPOTHESIS_USER) logger = logging....
26.387097
95
0.768949
034c63fcc2547c17c273929a58dc241211764f2f
594
py
Python
dss/pipelinesettings.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
dss/pipelinesettings.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
dss/pipelinesettings.py
fergalmoran/dss.api
d1b9fb674b6dbaee9b46b9a3daa2027ab8d28073
[ "BSD-2-Clause" ]
null
null
null
PIPELINE_CSS = { 'css': { 'source_filenames': ( 'css/*.css', ), 'variant': 'datauri', 'output_filename': 'css/c.css' }, 'embedding': { 'source_filenames': ( 'css/embedding/*.css', ), 'variant': 'datauri', 'output_filenam...
21.214286
48
0.459596
034c7ad486f89892a7b43f90ed932bb24d15d28c
11,103
py
Python
facedetection/utils/detect_face.py
jjmachan/facedetection-aeye
af1bd6fb9e58776b6a37788a8c87d6d966b524b6
[ "MIT" ]
2
2021-02-22T12:16:14.000Z
2021-05-02T15:22:49.000Z
facedetection/utils/detect_face.py
jjmachan/facedetection-aeye
af1bd6fb9e58776b6a37788a8c87d6d966b524b6
[ "MIT" ]
1
2020-04-27T13:38:49.000Z
2020-04-27T13:38:49.000Z
facedetection/utils/detect_face.py
jjmachan/facedetection-aeye
af1bd6fb9e58776b6a37788a8c87d6d966b524b6
[ "MIT" ]
null
null
null
import torch from torch.nn.functional import interpolate from torchvision.transforms import functional as F from torchvision.ops.boxes import batched_nms import cv2 from PIL import Image import numpy as np import os def detect_face(imgs, minsize, pnet, rnet, onet, threshold, factor, device): if isinstance(imgs, (...
32.655882
99
0.566243
034c7f3730928db0681071a3098435235626163f
11,735
py
Python
tests/combiners_test.py
yuan2z/PipelineDP
54634930374a77c7bb1037b5b771f90acd751b60
[ "Apache-2.0" ]
null
null
null
tests/combiners_test.py
yuan2z/PipelineDP
54634930374a77c7bb1037b5b771f90acd751b60
[ "Apache-2.0" ]
null
null
null
tests/combiners_test.py
yuan2z/PipelineDP
54634930374a77c7bb1037b5b771f90acd751b60
[ "Apache-2.0" ]
null
null
null
import unittest.mock as mock from absl.testing import absltest from absl.testing import parameterized import pipeline_dp import pipeline_dp.combiners as dp_combiners import pipeline_dp.budget_accounting as ba import numpy as np def _create_mechism_spec(no_noise): if no_noise: eps, delta = 1e5, 1.0 - 1e-...
39.914966
79
0.659139
034ca61d433f906bf1a0c4dd5185370c100e753e
5,322
py
Python
libapparmor/utils/test/test-logparser.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
null
null
null
libapparmor/utils/test/test-logparser.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
2
2020-02-05T01:26:55.000Z
2020-02-05T01:31:32.000Z
libapparmor/utils/test/test-logparser.py
pyronia-sys/libpyronia
02ccf1d832754f771d1f9a60e5e91819ec878757
[ "Apache-2.0" ]
1
2021-12-05T19:53:32.000Z
2021-12-05T19:53:32.000Z
# ---------------------------------------------------------------------- # Copyright (C) 2013 Kshitij Gupta <kgupta8592@gmail.com> # Copyright (C) 2015 Christian Boltz <apparmor@cboltz.de> # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU G...
54.306122
374
0.662909
034caa090089c9862e3247f4df9dbc4e3442073c
3,413
py
Python
examples/MDF/scaling.py
singular-value/MDF
227216ffb2c9beea8539829b0b891196787d33ee
[ "Apache-2.0" ]
null
null
null
examples/MDF/scaling.py
singular-value/MDF
227216ffb2c9beea8539829b0b891196787d33ee
[ "Apache-2.0" ]
null
null
null
examples/MDF/scaling.py
singular-value/MDF
227216ffb2c9beea8539829b0b891196787d33ee
[ "Apache-2.0" ]
null
null
null
""" Example of ModECI MDF - Testing arrays as inputs - this allows graphs of various scales/sizes to be generated for testing purposes """ from modeci_mdf.mdf import * from modeci_mdf.scheduler import EvaluableGraph import numpy as np import sys def generate_test_model( id, input_shape=(2, 2), hi...
26.457364
84
0.611778
034cabbc9be7ca9ddbaa5b07c444a4efb3903c16
11,991
py
Python
visualization_utils/vis_hardware.py
facebookresearch/Project_FARSI
12b40e4f16ba7418a0f3b997ad124cdb51f4e7f4
[ "MIT" ]
14
2021-06-01T16:45:19.000Z
2022-03-08T20:07:00.000Z
visualization_utils/vis_hardware.py
facebookresearch/Project_FARSI
12b40e4f16ba7418a0f3b997ad124cdb51f4e7f4
[ "MIT" ]
null
null
null
visualization_utils/vis_hardware.py
facebookresearch/Project_FARSI
12b40e4f16ba7418a0f3b997ad124cdb51f4e7f4
[ "MIT" ]
3
2021-08-05T16:37:47.000Z
2022-01-06T00:25:49.000Z
#Copyright (c) Facebook, Inc. and its affiliates. #This source code is licensed under the MIT license found in the #LICENSE file in the root directory of this source tree. import pygraphviz as pgv from design_utils.design import * from sys import platform import time import sys # global value ctr = 0 # This class c...
47.964
135
0.623051
034cada05bac071edeab42cd4d4d3d80e01cd737
12,554
py
Python
katdal/test/test_chunkstore.py
kernsuite-debian/katdal
62c5732f0bf1a2b6fa8d275e7405bcb1648534b0
[ "BSD-3-Clause" ]
null
null
null
katdal/test/test_chunkstore.py
kernsuite-debian/katdal
62c5732f0bf1a2b6fa8d275e7405bcb1648534b0
[ "BSD-3-Clause" ]
null
null
null
katdal/test/test_chunkstore.py
kernsuite-debian/katdal
62c5732f0bf1a2b6fa8d275e7405bcb1648534b0
[ "BSD-3-Clause" ]
null
null
null
################################################################################ # Copyright (c) 2017-2019, National Research Foundation (Square Kilometre Array) # # Licensed under the BSD 3-Clause License (the "License"); you may not use # this file except in compliance with the License. You may obtain a copy # of the...
46.669145
82
0.614306
034cb2ceb1819f14bae42e6eab59739e309c838c
2,079
py
Python
ara/db/models.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
19
2017-09-13T07:51:58.000Z
2022-03-28T11:04:03.000Z
ara/db/models.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
147
2017-09-14T13:45:30.000Z
2022-03-14T15:54:09.000Z
ara/db/models.py
sparcs-kaist/new-ara-api
63998da575cb148347708199fe1345c4e7ee3e1b
[ "MIT" ]
5
2019-08-31T13:13:30.000Z
2021-03-26T15:46:38.000Z
from django.db import models from django.utils import timezone class MetaDataQuerySet(models.QuerySet): def delete(self): return super().update(**{ 'deleted_at': timezone.now(), }) def hard_delete(self): return super().delete() def bulk_create(self, objs, batch_size=N...
26.653846
116
0.649832
034ce2452bfddb06e77f577fa01addc967266b80
24,319
py
Python
twisted/python/deprecate.py
sxamit/twisted
30f6966329c857c3631c60aeb420d84d7828e01e
[ "MIT", "Unlicense" ]
1
2017-08-07T14:52:02.000Z
2017-08-07T14:52:02.000Z
Lib/site-packages/twisted/python/deprecate.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/twisted/python/deprecate.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
1
2018-11-07T12:52:07.000Z
2018-11-07T12:52:07.000Z
# -*- test-case-name: twisted.python.test.test_deprecate -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Deprecation framework for Twisted. To mark a method, function, or class as being deprecated do this:: from twisted.python.versions import Version from twisted.python.deprec...
33.451169
80
0.668366
034d04f8e158b6dbf8ed876772f853d8d7e237a3
3,129
py
Python
evaluator.py
obitto/relation-network
2cbea587c9d43d6e02dba8ddd79e9ae18eca5356
[ "MIT" ]
null
null
null
evaluator.py
obitto/relation-network
2cbea587c9d43d6e02dba8ddd79e9ae18eca5356
[ "MIT" ]
null
null
null
evaluator.py
obitto/relation-network
2cbea587c9d43d6e02dba8ddd79e9ae18eca5356
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from RelationNetwork import RN from prepare import SClevrDataset,ClevrDataset from utils import Config, Config_SClevr import argparse class Evaluator(object): """ This would evaluate some basic metric of the model """ def __init__(self, config): """ use different mode...
40.115385
131
0.697987
034d23c70569a10cf91cbd54a9f3c3fa3805ff25
4,679
py
Python
tests/test_item_results.py
pyansys/grantami-bomanalytics
b9e4956b0a1cdd67d50953caa8257b6cff34a243
[ "MIT" ]
2
2022-02-18T19:53:20.000Z
2022-02-18T21:35:27.000Z
tests/test_item_results.py
pyansys/grantami-bomanalytics
b9e4956b0a1cdd67d50953caa8257b6cff34a243
[ "MIT" ]
46
2022-02-18T16:57:36.000Z
2022-03-31T13:35:26.000Z
tests/test_item_results.py
pyansys/grantami-bomanalytics
b9e4956b0a1cdd67d50953caa8257b6cff34a243
[ "MIT" ]
1
2022-02-22T18:24:03.000Z
2022-02-22T18:24:03.000Z
import pytest from dataclasses import dataclass from ansys.grantami.bomanalytics_openapi import models from ansys.grantami.bomanalytics._item_definitions import ReferenceType from ansys.grantami.bomanalytics._item_results import ImpactedSubstance, ItemResultFactory from .common import INDICATORS @dataclass class Reco...
38.991667
116
0.755076
034d2f3c101ad9bf6e71a159d14c43e5701dc7fd
41,094
py
Python
sdk/storage/azure-storage-blob/tests/test_quick_query.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/storage/azure-storage-blob/tests/test_quick_query.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-blob/tests/test_quick_query.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
41.176353
585
0.630725
034d59394583dfa62c21ddebaf15a6565ad86742
1,260
py
Python
scripts/pcc.py
oacar/enm_package
174bd6e8155b63ff6463973a6c9852daf8221f65
[ "MIT" ]
null
null
null
scripts/pcc.py
oacar/enm_package
174bd6e8155b63ff6463973a6c9852daf8221f65
[ "MIT" ]
null
null
null
scripts/pcc.py
oacar/enm_package
174bd6e8155b63ff6463973a6c9852daf8221f65
[ "MIT" ]
2
2021-05-29T14:58:49.000Z
2021-10-19T05:38:41.000Z
import numpy as np import networkx as nx import pickle from enm.Enm import * from enm.utils import * network_file = snakemake.input['network_file'] output_path = snakemake.params.output_path #figure_path = 'reports/figures/pcc_0603' enm = Enm('enm') enm.read_network(network_file,sep=',') enm.gnm_analysis(normalized=Fa...
34.054054
123
0.777778
034d5a85f7779070a68c85c9c4325d91342a362b
10,219
py
Python
lib/measurement_simulations.py
JLSirvent/bws-calibration-analysis
b2f129e31974c16d7498e105a075b43bfece92c9
[ "MIT" ]
null
null
null
lib/measurement_simulations.py
JLSirvent/bws-calibration-analysis
b2f129e31974c16d7498e105a075b43bfece92c9
[ "MIT" ]
null
null
null
lib/measurement_simulations.py
JLSirvent/bws-calibration-analysis
b2f129e31974c16d7498e105a075b43bfece92c9
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------- # Copyright (c) <2017> <Lionel Garcia> # BE-BI-PM, CERN (European Organization for Nuclear Research) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files ...
37.025362
269
0.611606
034d5dd769b38404899d1ca24dc2dd56e189a093
1,780
py
Python
python/pangram/pangram_test.py
harshcurious/Exercism
7cf05550ed242fe8ef942c8727ad28cc592e2e1e
[ "MIT" ]
9
2020-12-12T03:29:33.000Z
2021-08-11T13:08:06.000Z
python/pangram/pangram_test.py
harshcurious/Exercism
7cf05550ed242fe8ef942c8727ad28cc592e2e1e
[ "MIT" ]
1
2021-05-17T23:45:29.000Z
2021-05-17T23:46:01.000Z
python/pangram/pangram_test.py
harshcurious/Exercism
7cf05550ed242fe8ef942c8727ad28cc592e2e1e
[ "MIT" ]
1
2020-11-02T10:40:06.000Z
2020-11-02T10:40:06.000Z
import unittest from pangram import is_pangram # Tests adapted from `problem-specifications//canonical-data.json` class PangramTest(unittest.TestCase): def test_empty_sentence(self): self.assertIs(is_pangram(""), False) def test_perfect_lower_case(self): self.assertIs(is_pangram("abcdefghij...
32.363636
87
0.713483
034dd0cd5d3bafd9b191506bcde8e48f5cdd5b74
702
py
Python
LC/336.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/336.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/336.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def palindromePairs(self, words): """ :type words: List[str] :rtype: List[List[int]] """ d={word:i for i,word in enumerate(words)} res=set() # print d for word in words: for i in range(len(word)+1): p...
33.428571
60
0.368946
034de0ae31a600a9bea8fa0cc85199f5e8e08c1d
398
py
Python
project/Utils/GenericChromosome.py
jayson-garrison/EC-Sum-of-Subsets
4de3e5d056f0e91cc2b2049de4199df05176035e
[ "MIT" ]
null
null
null
project/Utils/GenericChromosome.py
jayson-garrison/EC-Sum-of-Subsets
4de3e5d056f0e91cc2b2049de4199df05176035e
[ "MIT" ]
null
null
null
project/Utils/GenericChromosome.py
jayson-garrison/EC-Sum-of-Subsets
4de3e5d056f0e91cc2b2049de4199df05176035e
[ "MIT" ]
null
null
null
class GenericChromosome: """ Generic chromosome representation """ def __init__(self, solution) -> None: self.chrome = solution #self.fitness needs to be defined def getFitness(self): """ determine and get the fitness of the chromosome returns: ...
23.411765
55
0.592965
034dfca6ea33c8c896bc51e4a1860ea884ce1d95
1,247
py
Python
setup.py
abhijith-git/mplsoccer
7359ed83117cb6f191f82c44fe953eb421395695
[ "MIT" ]
1
2021-05-20T16:31:21.000Z
2021-05-20T16:31:21.000Z
setup.py
eddwebster/mplsoccer
eb260bc9ab8a94473b4082d922ed490ce11e7982
[ "MIT" ]
null
null
null
setup.py
eddwebster/mplsoccer
eb260bc9ab8a94473b4082d922ed490ce11e7982
[ "MIT" ]
null
null
null
from setuptools import setup import mplsoccer VERSION = mplsoccer.__version__ with open('README.md') as readme_file: README = readme_file.read() setup(name='mplsoccer', version=VERSION, description='mplsoccer is a Python plotting library for drawing soccer / football pitches quickly in Matplotlib.', ...
35.628571
120
0.626303
034e0cb2a1e6d75e6bcb9d51ef0be44e3b982038
1,861
py
Python
lib/utils/blob.py
yxliang/pva-faster-rcnn
b0dc7d255da61188dda01e8760078b6991d6f7e2
[ "BSD-2-Clause" ]
744
2016-09-01T06:36:47.000Z
2022-03-28T00:32:10.000Z
lib/utils/blob.py
yxliang/pva-faster-rcnn
b0dc7d255da61188dda01e8760078b6991d6f7e2
[ "BSD-2-Clause" ]
105
2016-09-26T17:48:30.000Z
2020-08-09T15:25:22.000Z
lib/utils/blob.py
yxliang/pva-faster-rcnn
b0dc7d255da61188dda01e8760078b6991d6f7e2
[ "BSD-2-Clause" ]
313
2016-09-14T13:20:35.000Z
2021-08-13T02:59:15.000Z
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- """Blob helper functions.""" import numpy as np import cv2 def im_lis...
38.770833
85
0.619022
034e1cfdbfcf60fd08b6bf3ec1539a2b2ea55973
5,255
py
Python
towhee/tests/engine/test_engine.py
sutcalag/towhee
1ca575ca569bb344773463593292fdd7b0e9e74f
[ "Apache-2.0" ]
null
null
null
towhee/tests/engine/test_engine.py
sutcalag/towhee
1ca575ca569bb344773463593292fdd7b0e9e74f
[ "Apache-2.0" ]
null
null
null
towhee/tests/engine/test_engine.py
sutcalag/towhee
1ca575ca569bb344773463593292fdd7b0e9e74f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Zilliz. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
30.911765
74
0.578687
034e25cf2ee599c11b3649001becdc21d788098d
1,260
py
Python
tests/tools/bellman/environments/termination_model.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
40
2021-03-24T10:41:56.000Z
2022-03-15T09:50:47.000Z
tests/tools/bellman/environments/termination_model.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
12
2021-03-25T18:36:27.000Z
2021-07-27T11:09:34.000Z
tests/tools/bellman/environments/termination_model.py
RL-Gym/bellman
210c9ff877b38705d1cf1b3ccd0f9f2644ad8d0d
[ "Apache-2.0" ]
3
2021-04-25T03:18:44.000Z
2021-11-14T15:54:34.000Z
# Copyright 2021 The Bellman Contributors # # 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...
36
84
0.759524
034e26026c0134561cdebd89a33cc79e2e13cc4c
3,558
py
Python
intersight/models/iam_sp_engine_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iam_sp_engine_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/iam_sp_engine_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class IamSpEngineRef(object): """ NOTE: This class ...
23.72
77
0.534851
034e269942163df4bb5cd794cc83391cd32006d3
3,974
py
Python
deeptech/model/layers/selection.py
penguinmenac3/deeptech
0c7fb170d62f193dbbb2018f7b8d42f713178bb8
[ "MIT" ]
1
2020-10-10T10:11:54.000Z
2020-10-10T10:11:54.000Z
deeptech/model/layers/selection.py
penguinmenac3/deeptech
0c7fb170d62f193dbbb2018f7b8d42f713178bb8
[ "MIT" ]
null
null
null
deeptech/model/layers/selection.py
penguinmenac3/deeptech
0c7fb170d62f193dbbb2018f7b8d42f713178bb8
[ "MIT" ]
null
null
null
"""doc # deeptech.model.layers.selection > These layers select parts of a tensor. """ import torch from torch.nn import Module from deeptech.model.module_registry import add_module @add_module() class Gather(Module): def __init__(self, axis): """ Gather tensors from one tensor by providing an ind...
40.141414
142
0.622043
034e292bbfdaae1016c6b236c99b1d0bb27f5ff1
164
py
Python
sudoku_solver/board/board_constants.py
stopwhispering/comprehensible-sudoku-solver
2591293255c549e270debb95bc602efb7d0a94c3
[ "MIT" ]
null
null
null
sudoku_solver/board/board_constants.py
stopwhispering/comprehensible-sudoku-solver
2591293255c549e270debb95bc602efb7d0a94c3
[ "MIT" ]
null
null
null
sudoku_solver/board/board_constants.py
stopwhispering/comprehensible-sudoku-solver
2591293255c549e270debb95bc602efb7d0a94c3
[ "MIT" ]
null
null
null
from enum import Enum HORIZONTAL_INDEXES = list(range(1, 10)) VERTICAL_INDEXES = list(range(1, 10)) class LinkType(Enum): WEAK = 1 STRONG = 2 ANY = 3
16.4
39
0.664634
034e7dd7373556c25b98ca1df3424761abce8b49
8,037
py
Python
Hyperparameter_Tuning/Hyperparameter_Tuning_MIMIC.py
nhsx-mirror/SynthVAE
64c00dff1b9cb1fe22b4b25e585b17ca5c7b9651
[ "MIT" ]
2
2022-03-22T13:59:28.000Z
2022-03-24T07:02:54.000Z
Hyperparameter_Tuning/Hyperparameter_Tuning_MIMIC.py
nhsx-mirror/SynthVAE
64c00dff1b9cb1fe22b4b25e585b17ca5c7b9651
[ "MIT" ]
12
2022-02-17T16:29:31.000Z
2022-03-29T15:06:42.000Z
Hyperparameter_Tuning/Hyperparameter_Tuning_MIMIC.py
nhsx-mirror/SynthVAE
64c00dff1b9cb1fe22b4b25e585b17ca5c7b9651
[ "MIT" ]
3
2021-11-18T10:13:00.000Z
2022-03-23T10:25:55.000Z
#%% -------- Import Libraries -------- # # Standard imports from selectors import EpollSelector from tokenize import String import numpy as np import pandas as pd import torch # VAE is in other folder import sys sys.path.append("../") # Opacus support for differential privacy from opacus.utils.uniform_sampler impor...
27.523973
122
0.695906
034e82c25ac0ba1cd40dc8b1fc61d19e5534aa58
857
py
Python
cursoemvideoPy/Mundo3/ex092.py
BrCarlini/exPython
3bed986e5bfa5eae191b6b18306448926aed48fd
[ "MIT" ]
null
null
null
cursoemvideoPy/Mundo3/ex092.py
BrCarlini/exPython
3bed986e5bfa5eae191b6b18306448926aed48fd
[ "MIT" ]
null
null
null
cursoemvideoPy/Mundo3/ex092.py
BrCarlini/exPython
3bed986e5bfa5eae191b6b18306448926aed48fd
[ "MIT" ]
null
null
null
from datetime import datetime trabalhador = dict() while True: trabalhador['nome'] = str(input('Nome: ')) trabalhador['idade'] = int(input('Ano de Nascimento: ')) trabalhador['ctps'] = int(input('Carteira de Trabalho (0 não tem): ')) if trabalhador['ctps'] == 0: break trabalhador['contratac...
29.551724
74
0.655776
034e8ba12f580d8ac89c12202c440834b0e4e1eb
17,691
py
Python
core/vendor/pykaf/__init__.py
opener-project/coreference-base
bfa5aec0fa498e57fe14dd4d2c51365dd09a0757
[ "Apache-2.0" ]
13
2015-08-07T13:14:17.000Z
2021-11-08T10:33:51.000Z
core/vendor/pykaf/__init__.py
opener-project/coreference-base
bfa5aec0fa498e57fe14dd4d2c51365dd09a0757
[ "Apache-2.0" ]
null
null
null
core/vendor/pykaf/__init__.py
opener-project/coreference-base
bfa5aec0fa498e57fe14dd4d2c51365dd09a0757
[ "Apache-2.0" ]
6
2015-02-10T17:00:35.000Z
2021-08-04T17:46:13.000Z
# coding=utf-8 """ Module for manage KAF formatted files. """ from __future__ import unicode_literals __author__ = 'Josu Bermudez <josu.bermudez@deusto.es>' from lxml import etree # CONSTANT TEXT VALUES USED TO CONSTRUCT KAF KAF_TAG = "KAF" LANGUAGE_ATTRIBUTE = "{http://www.w3.org/XML/1998/namespace}lang" VERSION_A...
41.334112
131
0.645469
034e90457f109ffdda38f6acd8097dab3831d50f
34,829
py
Python
seqio/feature_converters_test.py
ayushkumar63123/seqio
23bcb59df59798074d7d5896a131980137c69ec8
[ "Apache-2.0" ]
144
2021-04-16T00:43:10.000Z
2022-03-21T08:51:27.000Z
seqio/feature_converters_test.py
ayushkumar63123/seqio
23bcb59df59798074d7d5896a131980137c69ec8
[ "Apache-2.0" ]
49
2021-04-26T06:28:51.000Z
2022-03-28T23:55:16.000Z
seqio/feature_converters_test.py
ayushkumar63123/seqio
23bcb59df59798074d7d5896a131980137c69ec8
[ "Apache-2.0" ]
13
2021-04-27T10:28:27.000Z
2022-03-10T18:43:37.000Z
# Copyright 2021 The SeqIO 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 wr...
41.023557
100
0.616067
034eae259f202daac56b76e16fb287fe298c3bfb
9,783
py
Python
round02/02_dQN_6act_debug/22_5channel.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
null
null
null
round02/02_dQN_6act_debug/22_5channel.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
1
2022-02-10T02:27:10.000Z
2022-02-10T02:27:10.000Z
round02/02_dQN_6act_debug/22_5channel.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
null
null
null
######################################## # Changes compared to 20_5channel.py # 01. # CNN structure ######################################## import cv2 import matplotlib.pyplot as plt import sys import numpy as np #import pandas as pd import datetime import json from array import * import os import math from random...
39.607287
284
0.685373
034ec6f24a7d4b2acc69b020e03e64ee1f882b07
509
py
Python
videoClassification/pi_video_capture.py
ArifSohaib/AutonomousRobotChallenge
10f7299022158425c6e7aa40f427105503d38468
[ "MIT" ]
13
2018-09-05T03:33:23.000Z
2020-12-15T13:07:33.000Z
videoClassification/pi_video_capture.py
ArifSohaib/AutonomousRobotChallenge
10f7299022158425c6e7aa40f427105503d38468
[ "MIT" ]
1
2019-03-24T20:07:19.000Z
2019-03-25T21:18:04.000Z
videoClassification/pi_video_capture.py
ArifSohaib/AutonomousRobotChallenge
10f7299022158425c6e7aa40f427105503d38468
[ "MIT" ]
11
2018-11-09T09:22:04.000Z
2021-10-05T08:00:44.000Z
from picamera import PiCamera #from https://blog.coast.ai/continuous-online-video-classification-with-tensorflow-inception-and-a-raspberry-pi-785c8b1e13e1 def capture_images(save_folder): """Stream images off camera and save them""" camera = PiCamera() camera.resolution = (320,240) camera.framerate = 1...
33.933333
124
0.724951
034eeeac3cb9ff56e04928999f22ab4d5e3c1440
28,582
py
Python
pytorch/torch/testing/_internal/common_device_type.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
pytorch/torch/testing/_internal/common_device_type.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
pytorch/torch/testing/_internal/common_device_type.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
import copy import gc import inspect import runpy import threading from functools import wraps import unittest import os import torch from torch.testing._internal.common_utils import TestCase, TEST_WITH_ROCM, TEST_MKL, \ skipCUDANonDefaultStreamIf, TEST_WITH_ASAN, TEST_WITH_UBSAN, TEST_WITH_TSAN try: import ps...
38.67659
129
0.663984
034f1a164ced661886f2ca9fa582d813934a1101
9,623
py
Python
src/robmodel/convert/urdf/imp.py
mfrigerio17/robot-model-tools
97e25d5c4d1386c503d37a70b57400022c5b7ca0
[ "BSD-3-Clause" ]
2
2020-06-16T09:23:46.000Z
2021-01-20T09:11:43.000Z
src/robmodel/convert/urdf/imp.py
mfrigerio17/robot-model-tools
97e25d5c4d1386c503d37a70b57400022c5b7ca0
[ "BSD-3-Clause" ]
null
null
null
src/robmodel/convert/urdf/imp.py
mfrigerio17/robot-model-tools
97e25d5c4d1386c503d37a70b57400022c5b7ca0
[ "BSD-3-Clause" ]
null
null
null
import xml.etree.ElementTree as ET from collections import OrderedDict as ODict import logging, sys import numpy as np import math import kgprim.core as primitives import kgprim.motions as motions from kgprim.motions import MotionSequence from kgprim.motions import PoseSpec from kgprim.motions import MotionPath impo...
35.640741
150
0.614881
034f2370cd0440ca7c60c9b24ddf682afd61ab73
3,463
py
Python
gemd/entity/object/has_quantities.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
7
2020-04-02T11:11:09.000Z
2022-02-05T23:19:51.000Z
gemd/entity/object/has_quantities.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
24
2020-04-22T16:55:09.000Z
2022-03-30T20:44:39.000Z
gemd/entity/object/has_quantities.py
CitrineInformatics/gemd-python
4f80045c1b481269c7451f6a205755c22093eb74
[ "Apache-2.0" ]
3
2020-05-08T00:50:02.000Z
2020-12-19T00:48:56.000Z
"""For entities that hve quantities.""" from gemd.entity.bounds.real_bounds import RealBounds from gemd.entity.value.continuous_value import ContinuousValue fraction_bounds = RealBounds(lower_bound=0.0, upper_bound=1.0, default_units='') class HasQuantities(object): """Mixin-trait that includes the mass, volume,...
34.979798
90
0.687554
034f25183783624f05dbac4d7bc4bce54a046e53
349
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/mpl115a2_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/mpl115a2_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/mpl115a2_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time import board import busio import adafruit_mpl115a2 i2c = busio.I2C(board.SCL, board.SDA) mpl = adafruit_mpl115a2.MPL115A2(i2c) while True: print("Pressure: {} Temperature: {}".format(mpl.pressure, mpl.tem...
21.8125
81
0.756447
034f7f9655d7680826eae7dcc1cafd4885e1983d
11,145
py
Python
atom/proton/python/proton_api/models/budget_details.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2019-04-16T02:11:17.000Z
2021-12-16T22:51:40.000Z
atom/proton/python/proton_api/models/budget_details.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
81
2019-11-19T23:24:28.000Z
2022-03-28T11:35:47.000Z
atom/proton/python/proton_api/models/budget_details.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2020-07-08T02:29:56.000Z
2022-03-28T10:05:33.000Z
# coding: utf-8 """ Hydrogen Proton API Financial engineering module of Hydrogen Atom # noqa: E501 OpenAPI spec version: 1.9.2 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from proton_...
29.959677
235
0.607088
034fa34e8df3daeb3e53f4abc300cab6634a4c92
3,287
py
Python
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.637681
125
0.697901
034fa4e41a5504957314019501885fc0c289693e
778
py
Python
notebooks/ch6/detect.py
wangyonghong/RabbitMQ-in-Depth
56a35c6359d500b7597daf1bb2185b4c451a572c
[ "BSD-3-Clause" ]
111
2015-01-06T20:26:31.000Z
2022-03-14T13:17:12.000Z
notebooks/ch6/detect.py
wangyonghong/RabbitMQ-in-Depth
56a35c6359d500b7597daf1bb2185b4c451a572c
[ "BSD-3-Clause" ]
4
2018-06-15T20:35:36.000Z
2021-01-13T16:03:40.000Z
notebooks/ch6/detect.py
wangyonghong/RabbitMQ-in-Depth
56a35c6359d500b7597daf1bb2185b4c451a572c
[ "BSD-3-Clause" ]
43
2015-04-18T13:44:01.000Z
2022-03-14T13:17:13.000Z
""" Facial recognition specific methods """ import cv2 def _boxes(filename, faces): img = cv2.imread(filename) for (x, y, w, h) in faces: cv2.rectangle(img, (x, y), (x + w, y + h), (100, 100, 255), 2) filename = filename.split('/')[-1] parts = filename.split('.') new_name = '/tmp/%s-detec...
31.12
75
0.570694
034fd19f52a68672bfeaa6221df84090f3049e63
2,640
py
Python
rpi_d3m_primitives/pyBN/utils/structure_distance.py
naiyuyin/rpi_d3m_primitives
f95553bee90916d241885d28fb71c8167116d9fa
[ "MIT" ]
126
2016-01-17T22:59:08.000Z
2021-12-19T15:35:22.000Z
pyBN/utils/structure_distance.py
levilentz/pyBN
ce7b6823f4e6c4f6f9b77e89f05de87ed486b349
[ "MIT" ]
24
2016-01-21T20:11:03.000Z
2018-09-21T01:23:58.000Z
pyBN/utils/structure_distance.py
levilentz/pyBN
ce7b6823f4e6c4f6f9b77e89f05de87ed486b349
[ "MIT" ]
55
2016-05-27T00:46:54.000Z
2022-03-24T11:43:57.000Z
""" **************** BN Structure Distance Metrics **************** Code for computing the structural Distance between 2+ Bayesian networks. Note, this code compares only structure - i.e. the conditional (in)dependencies. For a comparison of conditional probability values of 2+ BNs, see "parameter_distance.py" For c...
24.90566
83
0.709848
03500eb7a90291e2379f79c08edfcb07093f4d31
6,255
py
Python
Tools/Scripts/webkitpy/common/system/path.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/common/system/path.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/common/system/path.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2010 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
36.156069
80
0.659472
035020069514caecca0821240b21ad217f419a73
4,719
py
Python
workflow/bin/merged_extracted.py
sarvarkaxxorov/MassQueryLanguage
b7618ba7fb5343c252c5691dc574f4193fb8e83e
[ "MIT" ]
null
null
null
workflow/bin/merged_extracted.py
sarvarkaxxorov/MassQueryLanguage
b7618ba7fb5343c252c5691dc574f4193fb8e83e
[ "MIT" ]
null
null
null
workflow/bin/merged_extracted.py
sarvarkaxxorov/MassQueryLanguage
b7618ba7fb5343c252c5691dc574f4193fb8e83e
[ "MIT" ]
null
null
null
import argparse import os import glob import json import uuid import pandas as pd from massql import msql_extract def _export_extraction(all_spectra, output_mzML_filename, output_mgf_filename, output_json_filename): # Returns two dataframes # Renumbering the scans when merging scan = 1 for spectrum ...
37.15748
125
0.665607
03504d3744c7ffddc5cda34fa6f929a48bb29a1b
85
py
Python
app/settings.py
taniodev/chat-serv
d6de2a82f79ba3d380117514fef9c4d0e9c3227b
[ "MIT" ]
null
null
null
app/settings.py
taniodev/chat-serv
d6de2a82f79ba3d380117514fef9c4d0e9c3227b
[ "MIT" ]
9
2020-02-12T21:40:08.000Z
2022-03-17T14:49:11.000Z
app/settings.py
taniodev/chat-serv
d6de2a82f79ba3d380117514fef9c4d0e9c3227b
[ "MIT" ]
null
null
null
from decouple import config HOST = config('HOST') PORTA = config('PORTA', cast=int)
17
33
0.717647
03506162b3dbf124dc67c4c37726b8758405b8af
2,797
py
Python
src/crawl/unicrawl/spiders/ispg_programs.py
VictorLeP/Education4Climate
7d419c96c759da2215504ac9051dd6f61d940b96
[ "MIT" ]
4
2021-09-24T16:17:57.000Z
2022-01-31T17:32:16.000Z
src/crawl/unicrawl/spiders/ispg_programs.py
VictorLeP/Education4Climate
7d419c96c759da2215504ac9051dd6f61d940b96
[ "MIT" ]
23
2021-08-02T07:38:47.000Z
2022-02-11T14:16:56.000Z
src/crawl/unicrawl/spiders/ispg_programs.py
VictorLeP/Education4Climate
7d419c96c759da2215504ac9051dd6f61d940b96
[ "MIT" ]
3
2021-11-20T06:06:44.000Z
2022-03-11T07:44:43.000Z
from pathlib import Path from abc import ABC import scrapy import base64 from settings import YEAR, CRAWLING_OUTPUT_FOLDER BASE_URL = 'http://www.galileonet.be/extranet/DescriptifsDeCours/getListeGestionUE?ec=5' BASE_DATA = { "section": "", "option": "YWxs", "bloc": "YWxs", "annee": "", } YEARS = {...
28.835052
99
0.548802
03508d2e24fd19fb7a4dbe7117858b09e79d3280
4,562
py
Python
operative/__init__.py
buzzfeed/python-operative
ec9eb0943fbc3911ee7bda22688e56116bc04521
[ "MIT" ]
null
null
null
operative/__init__.py
buzzfeed/python-operative
ec9eb0943fbc3911ee7bda22688e56116bc04521
[ "MIT" ]
null
null
null
operative/__init__.py
buzzfeed/python-operative
ec9eb0943fbc3911ee7bda22688e56116bc04521
[ "MIT" ]
null
null
null
import ftplib import StringIO from datetime import datetime class FTPCredentials(object): """ Represents the FTP credentials needed for establishing an FTP connection """ def __init__(self, host, username, password, port=None): """ Initializes the object and sets attributes. ...
29.24359
125
0.604121
0350acb32cd1bf4753ec71502d395237d4fe3053
10,524
py
Python
python/pyxir/contrib/dpuv2/som_op_support.py
Xilinx/pyxir
bef661d6d77adcdbd2cf4163f2cf3a1d31d40406
[ "Apache-2.0" ]
25
2020-06-17T22:41:13.000Z
2022-03-22T16:28:22.000Z
python/pyxir/contrib/dpuv2/som_op_support.py
Xilinx/pyxir
bef661d6d77adcdbd2cf4163f2cf3a1d31d40406
[ "Apache-2.0" ]
25
2021-03-16T06:26:44.000Z
2022-03-18T11:28:33.000Z
python/pyxir/contrib/dpuv2/som_op_support.py
Xilinx/pyxir
bef661d6d77adcdbd2cf4163f2cf3a1d31d40406
[ "Apache-2.0" ]
19
2020-07-30T10:03:02.000Z
2021-06-29T01:18:16.000Z
# Copyright 2020 Xilinx 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, ...
34.168831
97
0.653364
0350c4c9825bd875812f6f141668f1288f6bff98
21,453
py
Python
ironic_inspector_client/test/functional.py
mail2nsrajesh/python-ironic-inspector-client
d4659c10aab2101b0c25a898c7e6ce55f39aa9ba
[ "Apache-2.0" ]
null
null
null
ironic_inspector_client/test/functional.py
mail2nsrajesh/python-ironic-inspector-client
d4659c10aab2101b0c25a898c7e6ce55f39aa9ba
[ "Apache-2.0" ]
null
null
null
ironic_inspector_client/test/functional.py
mail2nsrajesh/python-ironic-inspector-client
d4659c10aab2101b0c25a898c7e6ce55f39aa9ba
[ "Apache-2.0" ]
null
null
null
# 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, software # distributed under the...
41.575581
79
0.582343
0351081403e3c728673e4ffc3a5328a6502febe5
5,703
py
Python
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/aio/operations/_web_test_locations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/aio/operations/_web_test_locations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/aio/operations/_web_test_locations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.365854
194
0.680694
0351099b37bb8910d83d508115622ec5afbe9b9f
1,150
py
Python
setup.py
dipasqualew/django-auto-model
958063b2df99e95f043b06f6a6df02fe8ccfb5de
[ "MIT" ]
null
null
null
setup.py
dipasqualew/django-auto-model
958063b2df99e95f043b06f6a6df02fe8ccfb5de
[ "MIT" ]
23
2020-10-29T07:02:00.000Z
2021-08-02T06:03:29.000Z
setup.py
rolafium/Django-AutoModel
958063b2df99e95f043b06f6a6df02fe8ccfb5de
[ "MIT" ]
null
null
null
import os from setuptools import find_packages, setup from django_auto_model.info import ( VERSION, PROJECT_TAG, PROJECT_URL, AUTHORS, SHORT_DESCRIPTION, LICENSE_TYPE, ) with open(os.path.join(os.path.dirname(__file__), "README.md")) as fp: README = fp.read() setup( name=PROJECT_TAG, ...
28.04878
70
0.631304
035177034b099aeba6cc9b958403148aa5c21047
1,315
py
Python
vapor_manager/users/views.py
codescribblr/project-manager-django3
d0dc79e992811eee3e35666acdb16bcafa16d98d
[ "MIT" ]
null
null
null
vapor_manager/users/views.py
codescribblr/project-manager-django3
d0dc79e992811eee3e35666acdb16bcafa16d98d
[ "MIT" ]
null
null
null
vapor_manager/users/views.py
codescribblr/project-manager-django3
d0dc79e992811eee3e35666acdb16bcafa16d98d
[ "MIT" ]
null
null
null
from django.contrib import messages from django.contrib.auth import get_user_model from django.contrib.auth.mixins import LoginRequiredMixin from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from django.views.generic import DetailView, RedirectView, UpdateView User = get_user_mode...
26.836735
82
0.714068
03518925c7165b4b5256d8505df80365db43361d
1,484
py
Python
docs/support/plot_example_7.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
6
2015-12-15T04:09:08.000Z
2020-02-21T01:40:57.000Z
docs/support/plot_example_7.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
null
null
null
docs/support/plot_example_7.py
pmacosta/putil
416cea52df8221981727e25d133e9b4e3f464798
[ "MIT" ]
2
2016-01-21T23:29:17.000Z
2020-02-21T01:41:05.000Z
# plot_example_7.py # Copyright (c) 2013-2016 Pablo Acosta-Serafini # See LICENSE for details # pylint: disable=C0111,C0410 from __future__ import print_function import numpy, putil.plot def figure_iterator_example(no_print): source1 = putil.plot.BasicSource( indep_var=numpy.array([1, 2, 3, 4]), d...
26.981818
52
0.59434
0351ae3e186dc60305895c95011e22d3f66debe4
16,575
py
Python
exchanger/engine.py
EvgenyTsydenov/python_course
d3d228b4bf051ad5fb0dff14c2a1fc9656d5ae63
[ "MIT" ]
4
2022-03-22T14:26:19.000Z
2022-03-24T05:05:12.000Z
exchanger/engine.py
EvgenyTsydenov/python_course
d3d228b4bf051ad5fb0dff14c2a1fc9656d5ae63
[ "MIT" ]
null
null
null
exchanger/engine.py
EvgenyTsydenov/python_course
d3d228b4bf051ad5fb0dff14c2a1fc9656d5ae63
[ "MIT" ]
null
null
null
from __future__ import print_function import base64 import functools import os import pickle import re import requests import shutil import socket import sys import time from datetime import datetime from datetime import timezone from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from ...
38.457077
79
0.602775
0351b5ab1225a546bb877d62ca5c8a5d572d8b34
7,510
py
Python
oculy/plotting/backends/matplotlib/axes.py
MatthieuDartiailh/oculy
0cdae49aa1b546f26b31d14e944c7d481d368361
[ "BSD-3-Clause" ]
null
null
null
oculy/plotting/backends/matplotlib/axes.py
MatthieuDartiailh/oculy
0cdae49aa1b546f26b31d14e944c7d481d368361
[ "BSD-3-Clause" ]
null
null
null
oculy/plotting/backends/matplotlib/axes.py
MatthieuDartiailh/oculy
0cdae49aa1b546f26b31d14e944c7d481d368361
[ "BSD-3-Clause" ]
1
2022-03-21T12:14:19.000Z
2022-03-21T12:14:19.000Z
# -------------------------------------------------------------------------------------- # Copyright 2021 by Oculy Authors, see git history for more details. # # Distributed under the terms of the BSD license. # # The full license is in the file LICENCE, distributed with this software. # -------------------------------...
27.712177
88
0.586285
0351ca1f427a997267cb746c6639dc0b04bc97f2
2,129
py
Python
apollo/components/event/tests.py
Aukbit/apollo
0afd1360f5a102335c55afaf138e0ecb96644128
[ "MIT" ]
null
null
null
apollo/components/event/tests.py
Aukbit/apollo
0afd1360f5a102335c55afaf138e0ecb96644128
[ "MIT" ]
null
null
null
apollo/components/event/tests.py
Aukbit/apollo
0afd1360f5a102335c55afaf138e0ecb96644128
[ "MIT" ]
null
null
null
import datetime import base64 from mock import MagicMock, Mock, patch from flask import request, g, url_for from cassandra.cqlengine.management import drop_table from apollo.common.database import init_db, get_db from apollo.tests.mixins import TestAppEngineMixin from apollo.components.user.models import User, Profil...
39.425926
95
0.710662
035200ef120789c0741c3861c181dd9729a538fe
2,224
py
Python
data/transcoder_evaluation_gfg/python/FIND_WHETHER_AN_ARRAY_IS_SUBSET_OF_ANOTHER_ARRAY_SET_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/FIND_WHETHER_AN_ARRAY_IS_SUBSET_OF_ANOTHER_ARRAY_SET_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/FIND_WHETHER_AN_ARRAY_IS_SUBSET_OF_ANOTHER_ARRAY_SET_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr1 , arr2 , m , n ) : i = 0 j = 0 for i in range ( n ) : for j in range ( m ) : i...
46.333333
213
0.446493
035222494605f7a3fa773e1d90d37e3ce6d516e6
864
py
Python
data/sampling.py
nmail-sds/Framework
20ce6767188adbccd9edc15000dbdfa25cfdab70
[ "MIT" ]
null
null
null
data/sampling.py
nmail-sds/Framework
20ce6767188adbccd9edc15000dbdfa25cfdab70
[ "MIT" ]
null
null
null
data/sampling.py
nmail-sds/Framework
20ce6767188adbccd9edc15000dbdfa25cfdab70
[ "MIT" ]
null
null
null
''' 2019. 1. 21 SMOTE data sampling Yihan Kim usage : import sampling.smote as smote ''' from ds import Pair, Data from sklearn.datasets import make_classification from imblearn.over_sampling import SMOTE def smote_dataset(dataset: Data): # unpack X = dataset.train.data y = dataset.train.labels s...
24.685714
84
0.674769
03525b9fa5e9506dab973812a808cd687dc01e58
1,995
py
Python
savu/plugins/filters/hilbert_filter.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/plugins/filters/hilbert_filter.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/plugins/filters/hilbert_filter.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
# Copyright 2014 Diamond Light Source Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
32.177419
75
0.704762
03526e7285b0a6b95251bf4b9d9f6c30f6dc4a51
7,769
py
Python
code/utils.py
Dragon-M-Ren/grad_code
d814b81adaec709d5dffd737f0c350953cc361fd
[ "Apache-2.0" ]
null
null
null
code/utils.py
Dragon-M-Ren/grad_code
d814b81adaec709d5dffd737f0c350953cc361fd
[ "Apache-2.0" ]
null
null
null
code/utils.py
Dragon-M-Ren/grad_code
d814b81adaec709d5dffd737f0c350953cc361fd
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import numpy as np import scipy.sparse as sp from load_data import create_raw_input from scipy.sparse.linalg.eigen.arpack import eigsh def create_load_sparse(sparse_mat): ''' The sparse matrix is saved as a scipy sparse matrix It cannot be directly used by TF This will change ...
26.335593
93
0.650405
03527d5c1c92903ad713c2dcf6b318dc249147ac
17
py
Python
btd6_memory_info/generated/Mono/Security/Cryptography/PKCS8/pkcs8.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Mono/Security/Cryptography/PKCS8/pkcs8.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Mono/Security/Cryptography/PKCS8/pkcs8.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class PKCS8: pass
17
17
0.823529
03528cdb428acd5b22fca113c239990ec052dd31
1,066
py
Python
sdks/python/test/test_AzureSubscriptionAddToAppRequest.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_AzureSubscriptionAddToAppRequest.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_AzureSubscriptionAddToAppRequest.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
26.65
127
0.756098
035295559e53e96aebd9381b8fe4b522f361a3d8
9,446
py
Python
test/unit/test_linalg.py
chromy/PyOP2
8a1955c628b795019485c9771709c338a806e661
[ "BSD-3-Clause" ]
null
null
null
test/unit/test_linalg.py
chromy/PyOP2
8a1955c628b795019485c9771709c338a806e661
[ "BSD-3-Clause" ]
null
null
null
test/unit/test_linalg.py
chromy/PyOP2
8a1955c628b795019485c9771709c338a806e661
[ "BSD-3-Clause" ]
null
null
null
# This file is part of PyOP2 # # PyOP2 is Copyright (c) 2012, Imperial College London and # others. Please see the AUTHORS file in the main source directory for # a full list of copyright holders. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted ...
27.37971
76
0.585962
035296be8b0f856ac0d9aa1a0532a5d88b7654ca
1,554
py
Python
setup.py
SimonCarozza/autolrn
d0875844a3e9b4fc22510ef320aa498e339b6192
[ "MIT" ]
null
null
null
setup.py
SimonCarozza/autolrn
d0875844a3e9b4fc22510ef320aa498e339b6192
[ "MIT" ]
null
null
null
setup.py
SimonCarozza/autolrn
d0875844a3e9b4fc22510ef320aa498e339b6192
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import sys req_version = (3, 6) long_description = """ autolrn is a machine learning toy-concept to show how to automate tabular data regression and classification with calibrated estimators, while exploring the scikit-learn and Keras ecosystems. """ if sys.version_info ...
31.714286
71
0.631274
0352a04e1560d635221064c79d0add8bebf0f51e
1,281
py
Python
coffin/__init__.py
kazmiruk/coffin
77b042a125ac76a382ac060884f13c0737998961
[ "BSD-3-Clause" ]
1
2016-11-19T06:32:20.000Z
2016-11-19T06:32:20.000Z
coffin/__init__.py
kazmiruk/coffin
77b042a125ac76a382ac060884f13c0737998961
[ "BSD-3-Clause" ]
null
null
null
coffin/__init__.py
kazmiruk/coffin
77b042a125ac76a382ac060884f13c0737998961
[ "BSD-3-Clause" ]
1
2022-03-08T23:12:00.000Z
2022-03-08T23:12:00.000Z
""" Coffin ~~~~~~ `Coffin <http://www.github.com/coffin/coffin>` is a package that resolves the impedance mismatch between `Django <http://www.djangoproject.com/>` and `Jinja2 <http://jinja.pocoo.org/2/>` through various adapters. The aim is to use Coffin as a drop-in replacement for Django's template system to whatev...
28.466667
79
0.68306
0352b10b372cb8299fb5f0154d19ec57dc1f7a39
9,315
py
Python
src/interledger/adapter/fabric.py
SOFIE-project/interledger-asset-transfer
d1c2e5ff7af564b1ac1775772132b48a46c71280
[ "Apache-2.0" ]
4
2020-12-11T18:46:35.000Z
2022-01-07T16:58:43.000Z
src/interledger/adapter/fabric.py
SOFIE-project/interledger-asset-transfer
d1c2e5ff7af564b1ac1775772132b48a46c71280
[ "Apache-2.0" ]
3
2021-05-11T23:45:18.000Z
2021-09-02T18:45:25.000Z
src/interledger/adapter/fabric.py
SOFIE-project/Interledger
d1c2e5ff7af564b1ac1775772132b48a46c71280
[ "Apache-2.0" ]
4
2020-11-04T15:36:35.000Z
2021-08-05T12:38:08.000Z
import asyncio import ast from hfc.fabric import Client from .interfaces import Initiator, Responder, ErrorCode from ..transfer import Transfer class FabricInitializer: """This provides the proper fabric client wrapper """ def __init__(self, net_profile=None, channel_name=None, cc_name=None, cc_version=N...
37.26
138
0.574879
0352c12aca7b9f2f06e779408e023e4748cc6e3f
18,322
py
Python
custom_components/seatconnect/config_flow.py
jordibsk10/homeassistant-seatconnect
fb44f654230ba87e41dfdac19736dc2c1dcf00a7
[ "Apache-2.0" ]
21
2021-02-06T16:42:48.000Z
2022-02-02T23:23:34.000Z
custom_components/seatconnect/config_flow.py
jordibsk10/homeassistant-seatconnect
fb44f654230ba87e41dfdac19736dc2c1dcf00a7
[ "Apache-2.0" ]
24
2021-06-14T12:46:55.000Z
2022-03-01T10:07:09.000Z
custom_components/seatconnect/config_flow.py
jordibsk10/homeassistant-seatconnect
fb44f654230ba87e41dfdac19736dc2c1dcf00a7
[ "Apache-2.0" ]
8
2021-06-03T09:35:37.000Z
2022-02-14T12:51:19.000Z
import homeassistant.helpers.config_validation as cv import logging import voluptuous as vol from homeassistant import config_entries from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_PASSWORD, CONF_RESOURCES, CONF_USERNAME, ) from homeassistant.core import callback...
37.855372
154
0.576465
0352c34c9190fae7aae542c78f45695e928c9bb6
886
py
Python
tests/xlfunctions_vs_excel/mod_test.py
ckp95/xlcalculator
8f3f04a2a0a2ecb12c3d5837a5b13519137ae427
[ "MIT" ]
54
2020-04-26T09:18:29.000Z
2022-03-30T08:47:45.000Z
tests/xlfunctions_vs_excel/mod_test.py
st-lo/xlcalculator
19190ec90e948b7ab1eceb06448b96cc1728bc51
[ "MIT" ]
41
2020-05-04T04:12:36.000Z
2022-01-31T02:41:05.000Z
tests/xlfunctions_vs_excel/mod_test.py
st-lo/xlcalculator
19190ec90e948b7ab1eceb06448b96cc1728bc51
[ "MIT" ]
21
2020-05-21T20:49:23.000Z
2022-02-20T14:15:56.000Z
from .. import testing class ModTest(testing.FunctionalTestCase): filename = "MOD.xlsx" def test_evaluation_A1(self): excel_value = self.evaluator.get_cell_value('Sheet1!A1') value = self.evaluator.evaluate('Sheet1!A1') self.assertEqual(excel_value, value) def test_evaluation_A2(...
34.076923
64
0.691874
035315b93268130986f07ff01c8d8723828f5d0f
3,517
py
Python
redash/settings.py
joeysim/redash
141dbc9e706899df9b82898fc7f355c2d9ce56b1
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
redash/settings.py
joeysim/redash
141dbc9e706899df9b82898fc7f355c2d9ce56b1
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
redash/settings.py
joeysim/redash
141dbc9e706899df9b82898fc7f355c2d9ce56b1
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import json import os import urlparse def parse_db_url(url): url_parts = urlparse.urlparse(url) connection = {'threadlocals': True} if url_parts.hostname and not url_parts.path: connection['name'] = url_parts.hostname else: connection['name'] = url_parts.path[1:] connection['h...
37.021053
121
0.752914
0353418efbb57df1409871ff5cb77a869bf80a25
4,220
py
Python
pygw2/api/achievements.py
Natsku123/pygw2
c8e579c07f4d33c7afadc8dee510be0a5e71d16e
[ "MIT" ]
1
2020-01-19T21:27:53.000Z
2020-01-19T21:27:53.000Z
pygw2/api/achievements.py
Natsku123/pygw2
c8e579c07f4d33c7afadc8dee510be0a5e71d16e
[ "MIT" ]
1
2021-12-09T21:18:13.000Z
2021-12-09T21:18:13.000Z
pygw2/api/achievements.py
Natsku123/pygw2
c8e579c07f4d33c7afadc8dee510be0a5e71d16e
[ "MIT" ]
null
null
null
from ..core.exceptions import ApiError from ..core.models.achievements import ( Achievement, DailyAchievements, AchievementGroup, AchievementCategory, ) from ..core.enums import AchievementRewardType from ..utils import endpoint, object_parse, LazyLoader class AchievementsApi: _instances = {} ...
31.259259
80
0.568246
035342fac535da69da058ca7cac2ad86a5e45825
1,135
py
Python
util.py
huba/OpenPeyote
52f6b3444f3cb9e20cb1931487b91c4f9bb2ba37
[ "Unlicense", "MIT" ]
2
2019-02-12T02:41:54.000Z
2019-02-25T12:35:39.000Z
util.py
huba/OpenPeyote
52f6b3444f3cb9e20cb1931487b91c4f9bb2ba37
[ "Unlicense", "MIT" ]
null
null
null
util.py
huba/OpenPeyote
52f6b3444f3cb9e20cb1931487b91c4f9bb2ba37
[ "Unlicense", "MIT" ]
null
null
null
""" Utility module that houses common components. Author: Huba Z. Nagy (12huba@gmail.com) Date: 11.11.2014 """ from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * bead_painter = QPainter() X = WIDTH = COL = 0 Y = HEIGHT = ROW = 1 design_extension = '.peyd' collection_extension = '.pey...
27.02381
69
0.675771
035392d741e83fcac5bee73e157e0475125f581a
13,838
py
Python
experimental/convexNetworkComparison.py
ScSteffen/neuralEntropy
796e0b38ac9c01f59772d49be3368b8ac9ad24d7
[ "MIT" ]
1
2021-03-12T09:40:48.000Z
2021-03-12T09:40:48.000Z
experimental/convexNetworkComparison.py
ScSteffen/neuralEntropy
796e0b38ac9c01f59772d49be3368b8ac9ad24d7
[ "MIT" ]
null
null
null
experimental/convexNetworkComparison.py
ScSteffen/neuralEntropy
796e0b38ac9c01f59772d49be3368b8ac9ad24d7
[ "MIT" ]
null
null
null
#### MK 4 Networks #### ''' Exploration of convex Networks on a simple example It includes the ICNN techniques (Amos et al) ''' ### This is a script for the training of the ### Third NN approach ''' Improvements: 1) accepts u as a N-vector 2) Generalized Loss function 3) Adapted network layout 4) RESNet Used as N...
33.026253
133
0.604495
0353b3622b4155eb09b1649e792d905d9efb26a8
4,882
py
Python
pyglacier/run.py
perrette/pyglacier
e29ca10f7ad2ebfb6a3bdd0db246e6d24536d95f
[ "MIT" ]
null
null
null
pyglacier/run.py
perrette/pyglacier
e29ca10f7ad2ebfb6a3bdd0db246e6d24536d95f
[ "MIT" ]
null
null
null
pyglacier/run.py
perrette/pyglacier
e29ca10f7ad2ebfb6a3bdd0db246e6d24536d95f
[ "MIT" ]
null
null
null
#!/home/perrette/anaconda/bin/python """Run the glacier model """ import argparse import warnings import subprocess from collections import OrderedDict import sys, os, json from .namelist import Namelist, Params, Param from .settings import CODEDIR, NML as NML_DEFAULT, OUTDIR as OUT_DIR, INFILE as IN_FILE, RSTFILE as R...
38.140625
186
0.651987
0353bece45df1864a6b678e83f75a607927bdf60
876
gyp
Python
third_party/ots/ots.gyp
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
third_party/ots/ots.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
third_party/ots/ots.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright (c) 2009 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. { 'variables': { 'chromium_code': 1, }, 'includes': [ 'ots-common.gypi', ], 'targets': [ { 'target_name': 'ots', 'type'...
21.365854
72
0.497717
0353cb8a06f459ce6042ff165bed7f3ed37211f3
11,033
py
Python
lib/tests/test_simple_config.py
schancel/electrum
ee125e0723a9345757b741aed93be906af80d327
[ "MIT" ]
1
2020-05-24T08:50:13.000Z
2020-05-24T08:50:13.000Z
lib/tests/test_simple_config.py
Santobak/electrum
ee125e0723a9345757b741aed93be906af80d327
[ "MIT" ]
null
null
null
lib/tests/test_simple_config.py
Santobak/electrum
ee125e0723a9345757b741aed93be906af80d327
[ "MIT" ]
1
2017-12-22T03:57:04.000Z
2017-12-22T03:57:04.000Z
import ast import sys import os import unittest import tempfile import shutil import json from StringIO import StringIO from lib.simple_config import (SimpleConfig, read_system_config, read_user_config) class Test_SimpleConfig(unittest.TestCase): def setUp(self): super(Tes...
42.598456
83
0.635548
0353d6b5f06010c04b8d4d6d8e9895dde1d1b49c
763
py
Python
alipay/aop/api/response/MybankCreditLoanapplyLocallifeBlacklistQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/MybankCreditLoanapplyLocallifeBlacklistQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/MybankCreditLoanapplyLocallifeBlacklistQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class MybankCreditLoanapplyLocallifeBlacklistQueryResponse(AlipayResponse): def __init__(self): super(MybankCreditLoanapplyLocallifeBlacklistQueryResponse, self).__init__() ...
29.346154
125
0.732634
0353f77c14e3f3f4bad3e3074b071a834e088a8e
7,818
py
Python
unit2_lesson_06_understanding_exceptions.py
AbhishekKumar1277/Mission-RnD-Python-
3e039dd3016db7ff0d67ad1cce2123852f15d093
[ "MIT" ]
null
null
null
unit2_lesson_06_understanding_exceptions.py
AbhishekKumar1277/Mission-RnD-Python-
3e039dd3016db7ff0d67ad1cce2123852f15d093
[ "MIT" ]
null
null
null
unit2_lesson_06_understanding_exceptions.py
AbhishekKumar1277/Mission-RnD-Python-
3e039dd3016db7ff0d67ad1cce2123852f15d093
[ "MIT" ]
null
null
null
__author__ = 'Kalyan' notes = """ Exceptions are the default runtime error reporting mechanism in python. Most modern languages like c#, java have a similar exception model, so your understanding will carry forward if you end up learning those languages. Read this to before you start: https://docs.python.org...
33.127119
123
0.649015
0354228de605f7b631499a8324c62df793804a5d
2,353
py
Python
tests/stt/testdb/word_align.py
f1ps1/jarvis
a7dcfe917c7968e3ecdbb683fb6ce628b80cd729
[ "MIT" ]
null
null
null
tests/stt/testdb/word_align.py
f1ps1/jarvis
a7dcfe917c7968e3ecdbb683fb6ce628b80cd729
[ "MIT" ]
null
null
null
tests/stt/testdb/word_align.py
f1ps1/jarvis
a7dcfe917c7968e3ecdbb683fb6ce628b80cd729
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys INS = 1 DEL = 2 MATCH = 4 SUB = 3 undef = '-' def initialize(ref_words, hyp_words): align_matrix = [[0 for i in range(hyp_words + 1)] for j in range(ref_words + 1)] backtrace_matrix = [[0 for i in range(hyp_words + 1)] for j in range(ref_words + 1)] for j in range(0, hyp...
24.010204
88
0.579261
035436c9db4e388f6bcce680a403ae0eaa8af041
3,179
py
Python
test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/aio/_auto_rest_parameter_grouping_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/aio/_auto_rest_parameter_grouping_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/azure/low-level/Expected/AcceptanceTests/AzureParameterGroupingLowLevel/azureparametergroupinglowlevel/aio/_auto_rest_parameter_grouping_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.774648
154
0.697704
03545b5dd90cb26bfe70c90520fbf70044e12e38
4,500
py
Python
pcdet/models/backbones_3d/spconv_backbone.py
halostorm/OpenPCDet
9650c9d71e7f03815e925fee6e16909fb219336a
[ "Apache-2.0" ]
2
2020-08-04T08:39:28.000Z
2021-02-09T08:07:13.000Z
pcdet/models/backbones_3d/spconv_backbone.py
halostorm/OpenPCDet
9650c9d71e7f03815e925fee6e16909fb219336a
[ "Apache-2.0" ]
null
null
null
pcdet/models/backbones_3d/spconv_backbone.py
halostorm/OpenPCDet
9650c9d71e7f03815e925fee6e16909fb219336a
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn import spconv from functools import partial def post_act_block(in_channels, out_channels, kernel_size, indice_key=None, stride=1, padding=0, conv_type='subm', norm_fn=None): if conv_type == 'subm': conv = spconv.SubMConv3d(in_channels, out_channels, kernel_size, bi...
36.585366
117
0.578
0354731eab8376f387953db94b474c0f1950c0d7
14,976
py
Python
ugali/analysis/results.py
willcerny/ugali
00b30c5ac84e4cada338fb77d33aa31afabca7bb
[ "MIT" ]
null
null
null
ugali/analysis/results.py
willcerny/ugali
00b30c5ac84e4cada338fb77d33aa31afabca7bb
[ "MIT" ]
null
null
null
ugali/analysis/results.py
willcerny/ugali
00b30c5ac84e4cada338fb77d33aa31afabca7bb
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Calculate output results dictionary. """ from collections import OrderedDict as odict import numpy as np import yaml import numpy.lib.recfunctions as recfuncs import astropy.coordinates from astropy.coordinates import SkyCoord import astropy.units as u import ugali.analysis.source import u...
40.150134
110
0.625935
035487f5b8aaa829f996d3d17aacf04c18017cb5
10,286
py
Python
src/transformers/benchmark/benchmark.py
jerrykuo7727/transformers
6df0d5861ab1bd845932dc24de8d7e6b836729ad
[ "Apache-2.0" ]
null
null
null
src/transformers/benchmark/benchmark.py
jerrykuo7727/transformers
6df0d5861ab1bd845932dc24de8d7e6b836729ad
[ "Apache-2.0" ]
null
null
null
src/transformers/benchmark/benchmark.py
jerrykuo7727/transformers
6df0d5861ab1bd845932dc24de8d7e6b836729ad
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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.a...
39.868217
181
0.637371
0354a6e49e27316c1ea90fb7eb2b710d44132c39
4,673
py
Python
applications/user/management/__init__.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
applications/user/management/__init__.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
1
2022-03-12T00:57:37.000Z
2022-03-12T00:57:37.000Z
applications/user/management/__init__.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from django.db.models import Q from django.core.exceptions import MultipleObjectsReturned from mighty import functions from mighty.apps import MightyConfig as conf from mighty.applications.logger.apps import LoggerConfig import datetime, sys, logging lo...
35.401515
141
0.586775