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
91ed064624f4f19df43e79cc5f340056b1067958
54,813
py
Python
rally/plugins/openstack/scenarios/nova/servers.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/scenarios/nova/servers.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/scenarios/nova/servers.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
# Copyright 2013: Mirantis Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
46.570093
79
0.660537
91ed2d3c4f8cf6cd752c532c97ead8c688530cfb
6,783
py
Python
uppyyl_simulator/backend/data_structures/state/variable.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
2
2020-09-09T15:42:23.000Z
2020-11-04T17:50:57.000Z
uppyyl_simulator/backend/data_structures/state/variable.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
null
null
null
uppyyl_simulator/backend/data_structures/state/variable.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
null
null
null
"""A variable implementation for Uppaal.""" import collections from uppyyl_simulator.backend.data_structures.types.base import UppaalType, BASE_BINARY_OPS class UppaalVariable(collections.abc.MutableMapping): """A Uppaal variable.""" def __init__(self, name, val=None, scope_path=None, var_path=None): ...
28.987179
112
0.610644
91ed455cf78a32a78d860ab148eeaff79635c144
1,850
py
Python
tests/unit/common/io/test_junit.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
1
2018-01-01T00:43:41.000Z
2018-01-01T00:43:41.000Z
tests/unit/common/io/test_junit.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
tests/unit/common/io/test_junit.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
1
2015-02-07T09:44:47.000Z
2015-02-07T09:44:47.000Z
# Copyright 2015: eNovance # 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 app...
39.361702
78
0.657838
91ed503c65a66e04ba39ad0f4896267bfe890347
735
py
Python
0x0F-python-object_relational_mapping/13-model_state_delete_a.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x0F-python-object_relational_mapping/13-model_state_delete_a.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x0F-python-object_relational_mapping/13-model_state_delete_a.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 '''Deletes all State objects with 'a' in its name in a database. ''' import sys from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from model_state import Base, State if __name__ == '__main__': if len(sys.argv) >= 4: user = sys.argv[1] pword = sys.argv...
28.269231
67
0.623129
91ed677af67aec1c97aa9dc7188ad38da423fa62
1,374
py
Python
apps/logs/migrations/0016_report_interest_metrics.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/logs/migrations/0016_report_interest_metrics.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/logs/migrations/0016_report_interest_metrics.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-09-02 07:16 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('logs', '0015_change_data_file_validators'), ] operations = [ migrations.CreateModel( name='Repo...
44.322581
146
0.642649
91ed7c8d0613c5a2071840ffbd9c92a645442644
872
py
Python
tests/test_langs_cs.py
honzajavorek/tipi
cbe51192725608b6fba1244a48610ae231b13e08
[ "MIT" ]
3
2016-04-13T17:49:09.000Z
2017-11-10T22:26:17.000Z
tests/test_langs_cs.py
honzajavorek/tipi
cbe51192725608b6fba1244a48610ae231b13e08
[ "MIT" ]
null
null
null
tests/test_langs_cs.py
honzajavorek/tipi
cbe51192725608b6fba1244a48610ae231b13e08
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from tipi import tipi as _tipi tipi = lambda s: _tipi(s, lang='cs') def test_date(): assert tipi('kdy? 23. 1. 1978?') == 'kdy? 23.\u00a01.\u00a01978?' assert tipi('kdy? <b>23. </b>1. 1978?') == ( 'kdy? <b>23.\u00a0</b>1.\u00a01978?' ...
22.947368
70
0.549312
91edaaf409b62bfd49c46701e7ed4803a569d924
821
py
Python
hs_dictionary/tests/test_universities.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_dictionary/tests/test_universities.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_dictionary/tests/test_universities.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
import json from rest_framework.test import APIClient from rest_framework import status from rest_framework.test import APITestCase class TestUniversities(APITestCase): def setUp(self): self.client = APIClient() def test_universities_no_query(self): response = self.client.get('/hsapi/diction...
35.695652
95
0.724726
91edaf65191d4e52ecdbcb8b734a5bce04080586
812
py
Python
ersteops/unit/migrations/0002_auto_20180426_0438.py
Prescrypto/ErsteOps
0b744173fb4f500003c96c4dcb26fb67d6eaa5ec
[ "MIT" ]
null
null
null
ersteops/unit/migrations/0002_auto_20180426_0438.py
Prescrypto/ErsteOps
0b744173fb4f500003c96c4dcb26fb67d6eaa5ec
[ "MIT" ]
33
2017-11-24T19:44:57.000Z
2022-02-12T07:02:53.000Z
ersteops/unit/migrations/0002_auto_20180426_0438.py
Prescrypto/ErsteOps
0b744173fb4f500003c96c4dcb26fb67d6eaa5ec
[ "MIT" ]
1
2017-12-11T09:15:04.000Z
2017-12-11T09:15:04.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-04-26 04:38 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('unit', '0001_initial'), ] operations = [ migrations.AlterField( ...
38.666667
424
0.689655
91ede8510392c444b52db2e74606e4d7a163cae8
4,142
py
Python
plotting/01d_plot_learning.py
MSchnei/MRI_segmentation_preparation_scripts
02f65b584e09908247202fff57714b63ef44e7dd
[ "MIT" ]
1
2022-03-17T15:46:25.000Z
2022-03-17T15:46:25.000Z
plotting/01d_plot_learning.py
MSchnei/MRI_segmentation_preparation_scripts
02f65b584e09908247202fff57714b63ef44e7dd
[ "MIT" ]
null
null
null
plotting/01d_plot_learning.py
MSchnei/MRI_segmentation_preparation_scripts
02f65b584e09908247202fff57714b63ef44e7dd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Compare classic U-Net vs dense U-Net (Tiramisu Net).""" import os import numpy as np import seaborn as sns import pandas as pd import matplotlib.pyplot as plt from load_tfevents import func_load_event # %% Set input parameters # Set path to log directtory str_log_p...
35.401709
87
0.665379
91edf46427c9c5309e728b08f9b04cefeb9b1b46
860
py
Python
nodict.py
kenzie-se-q3/nodict-YaseenFSD
07c49ffb8afc229240d487cbd9a7d5a69fbc7fa9
[ "MIT" ]
null
null
null
nodict.py
kenzie-se-q3/nodict-YaseenFSD
07c49ffb8afc229240d487cbd9a7d5a69fbc7fa9
[ "MIT" ]
null
null
null
nodict.py
kenzie-se-q3/nodict-YaseenFSD
07c49ffb8afc229240d487cbd9a7d5a69fbc7fa9
[ "MIT" ]
1
2020-07-15T15:16:40.000Z
2020-07-15T15:16:40.000Z
#!/usr/bin/env python3 """ Implementation of the NoDict assignment """ __author__ = '???' class Node: def __init__(self, key, value=None): self.hash = None self.key = None self.value = None # Your code here return def __repr__(self): # Your code here r...
17.2
40
0.545349
91ee1e295ab4eceb3910b2f29d6f894047744b3a
11,205
py
Python
tests/test_postmark_inbound.py
bhumikapahariapuresoftware/django-anymail
0252010fb3d4652c3c234fc6dba36d11c7602543
[ "BSD-3-Clause" ]
1,324
2016-03-10T04:57:52.000Z
2022-03-31T15:14:58.000Z
tests/test_postmark_inbound.py
bhumikapahariapuresoftware/django-anymail
0252010fb3d4652c3c234fc6dba36d11c7602543
[ "BSD-3-Clause" ]
208
2016-03-10T03:40:59.000Z
2022-03-22T23:16:08.000Z
tests/test_postmark_inbound.py
bhumikapahariapuresoftware/django-anymail
0252010fb3d4652c3c234fc6dba36d11c7602543
[ "BSD-3-Clause" ]
129
2016-03-10T09:24:52.000Z
2022-02-07T05:37:24.000Z
import json from base64 import b64encode from unittest.mock import ANY from django.test import tag from anymail.exceptions import AnymailConfigurationError from anymail.inbound import AnymailInboundMessage from anymail.signals import AnymailInboundEvent from anymail.webhooks.postmark import PostmarkInboundWebhookView...
47.884615
116
0.578135
91ee419cb255297e350fee287a258e31f6a33596
737
py
Python
data/transcoder_evaluation_gfg/python/COUNT_EVEN_LENGTH_BINARY_SEQUENCES_WITH_SAME_SUM_OF_FIRST_AND_SECOND_HALF_BITS_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/COUNT_EVEN_LENGTH_BINARY_SEQUENCES_WITH_SAME_SUM_OF_FIRST_AND_SECOND_HALF_BITS_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/COUNT_EVEN_LENGTH_BINARY_SEQUENCES_WITH_SAME_SUM_OF_FIRST_AND_SECOND_HALF_BITS_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 ( n ) : nCr = 1 res = 1 for r in range ( 1 , n + 1 ) : nCr = ( nCr * ( n + 1 - r ) ) / r ; ...
21.057143
64
0.514247
91ee42d72243bc339deeb5f0601277ac7f177377
2,554
py
Python
concorde/tsp.py
jingw2/pyconcorde
e14af3bda4835c549cb31aa08e84dfc310980457
[ "BSD-3-Clause" ]
4
2020-07-25T14:12:52.000Z
2022-03-25T07:57:04.000Z
concorde/tsp.py
jingw2/pyconcorde
e14af3bda4835c549cb31aa08e84dfc310980457
[ "BSD-3-Clause" ]
null
null
null
concorde/tsp.py
jingw2/pyconcorde
e14af3bda4835c549cb31aa08e84dfc310980457
[ "BSD-3-Clause" ]
3
2020-12-20T10:21:42.000Z
2021-05-17T08:29:50.000Z
# -*- coding: utf-8 -*- from __future__ import division, print_function from collections import namedtuple import os import shutil import tempfile import uuid from concorde._concorde import _CCutil_gettsplib, _CCtsp_solve_dat from concorde.util import write_tsp_file, EDGE_WEIGHT_TYPES ComputedTour = namedtuple('Comp...
30.047059
85
0.617463
91ee7b55d24b6346012b74641889ff4497c41baf
5,972
py
Python
submit_scripts/mizuRoute/run_mizuRoute_templated_mswep010.py
BrisClimate/flood-cascade
660c29275a87785153d0f107ed23104fcbcbddee
[ "MIT" ]
null
null
null
submit_scripts/mizuRoute/run_mizuRoute_templated_mswep010.py
BrisClimate/flood-cascade
660c29275a87785153d0f107ed23104fcbcbddee
[ "MIT" ]
null
null
null
submit_scripts/mizuRoute/run_mizuRoute_templated_mswep010.py
BrisClimate/flood-cascade
660c29275a87785153d0f107ed23104fcbcbddee
[ "MIT" ]
3
2020-11-08T16:01:47.000Z
2021-01-13T17:13:32.000Z
# script to setup mizuroute simulations and submit to queue # This version for MSWEP2-2 p1deg simulations # Peter Uhe April 23 2020 # import os,glob,subprocess,sys,shutil,socket #exec(open('/newhome/pu17449/src/setup_scripts/module_python3_init').read()) #module('load','apps/cdo-1.9.3') host = socket.gethostname() ##...
36.864198
400
0.682686
91ee8546e83b198702c6e363bedd9a72b76aab21
1,130
py
Python
PlotMain.py
nik1168/Optical-Character-Recognition
17655810f15d786615f72f06e1bfb4448e60f83b
[ "MIT" ]
1
2020-03-27T21:44:31.000Z
2020-03-27T21:44:31.000Z
PlotMain.py
nik1168/Optical-Character-Recognition
17655810f15d786615f72f06e1bfb4448e60f83b
[ "MIT" ]
5
2020-09-26T00:43:18.000Z
2022-02-10T01:11:52.000Z
PlotMain.py
nik1168/Optical-Character-Recognition
17655810f15d786615f72f06e1bfb4448e60f83b
[ "MIT" ]
null
null
null
from utils.plotter import Plotter import csv if __name__ == "__main__": history1 = "experiments/2019-12-25/xy_emnist_from_config/history_params/parameters.csv" history2 = "experiments/2019-12-25/xy_emnist_x_from_config/history_params/parameters.csv" history3 = "experiments/2019-12-26/xy_emnist_bn_from_con...
36.451613
101
0.627434
91ee8a7205f2e1a6e1c7cff5758ee888c4f8cdd3
14,633
py
Python
tests/components/samsungtv/test_config_flow.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
4
2016-12-23T10:36:36.000Z
2021-04-22T12:38:16.000Z
tests/components/samsungtv/test_config_flow.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
9
2022-01-27T06:32:10.000Z
2022-03-31T07:07:51.000Z
tests/components/samsungtv/test_config_flow.py
mengwangk/home-assistant
8f7e2ac41ffc969a825329e866c1e27d0e823bb0
[ "Apache-2.0" ]
1
2020-03-07T10:43:50.000Z
2020-03-07T10:43:50.000Z
"""Tests for Samsung TV config flow.""" from unittest.mock import call, patch from asynctest import mock import pytest from samsungctl.exceptions import AccessDenied, UnhandledResponse from websocket import WebSocketProtocolException from homeassistant.components.samsungtv.const import ( CONF_MANUFACTURER, CO...
35.51699
82
0.661724
91eed43c92c569b7ad7427ae7a93423415b06f65
266
py
Python
master/wx-mail-master/wx-mail-master/settings.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/wx-mail-master/wx-mail-master/settings.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/wx-mail-master/wx-mail-master/settings.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
mail_settings = { 'address': 'anyone@example.com', 'pw': 'your-email-password', 'smtp': 'post.example.com', 'from': 'Mr. Weather Robot' } send_to_addresses = ['someone@example.com', 'someone_else@example.com'] api_key = 'your-wunderground-api-key'
24.181818
71
0.661654
91ef13018a3397d7d7257fcce1eaeba513c8491c
1,541
py
Python
tests/unit/mbtest/test_util.py
erakli/mbtest
32ff29c5fd1f969922d2e3bc5be91b17a7f1ac9b
[ "MIT" ]
26
2018-10-10T16:29:59.000Z
2021-12-28T00:07:57.000Z
tests/unit/mbtest/test_util.py
erakli/mbtest
32ff29c5fd1f969922d2e3bc5be91b17a7f1ac9b
[ "MIT" ]
54
2019-02-02T08:16:04.000Z
2022-03-03T07:16:59.000Z
tests/unit/mbtest/test_util.py
erakli/mbtest
32ff29c5fd1f969922d2e3bc5be91b17a7f1ac9b
[ "MIT" ]
14
2019-02-01T23:08:07.000Z
2021-12-16T11:28:30.000Z
# encoding=utf-8 import logging import sys from pathlib import Path from unittest.mock import patch import pytest from mbtest.util import find_mountebank_executable logger = logging.getLogger(__name__) @pytest.mark.skipif(sys.version_info < (3, 9), reason="requires Python 3.9") def test_find_mountebank_install(mon...
31.44898
85
0.688514
91ef3e93841dde49bd9e92bcc222571d17180596
34,431
py
Python
pygsti/baseobjs/resourceallocation.py
maij/pyGSTi
70e83e05fa689f53550feb3914c4fac40ca4a943
[ "Apache-2.0" ]
73
2016-01-28T05:02:05.000Z
2022-03-30T07:46:33.000Z
pygsti/baseobjs/resourceallocation.py
00mjk/pyGSTi
4f8bf5337b01b7afcb7b0580b717b5d1fe281be4
[ "Apache-2.0" ]
113
2016-02-25T15:32:18.000Z
2022-03-31T13:18:13.000Z
pygsti/baseobjs/resourceallocation.py
00mjk/pyGSTi
4f8bf5337b01b7afcb7b0580b717b5d1fe281be4
[ "Apache-2.0" ]
41
2016-03-15T19:32:07.000Z
2022-02-16T10:22:05.000Z
""" Resource allocation manager """ import collections as _collections import itertools as _itertools # *************************************************************************************************** # Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS). # Under the terms of Cont...
48.631356
120
0.645784
91ef4dfb7a645abe6e051a51050d83a75f086035
26,512
py
Python
bonneville/modules/iptables.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/iptables.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/iptables.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' Support for iptables ''' # Import python libs import os import sys import shlex # Import bonneville libs import bonneville.utils from bonneville.state import STATE_INTERNAL_KEYWORDS as _STATE_INTERNAL_KEYWORDS from bonneville.exceptions import SaltException def __virtual__(): ''' ...
36.367627
110
0.619078
91ef5ee8571381f8c55f11105144a4ec7afb0e20
15,928
py
Python
tensorlayer/files/dataset_loaders/voc_dataset.py
thangvubk/tensorlayer
fcf7bb2f14caf6e1336b54b772c5227587b5f51d
[ "Apache-2.0" ]
5
2018-12-06T21:10:55.000Z
2021-01-24T11:47:35.000Z
tensorlayer/files/dataset_loaders/voc_dataset.py
sdd9465/tensorlayer
690766535a591367ad86907835b39730f4aa1dea
[ "Apache-2.0" ]
null
null
null
tensorlayer/files/dataset_loaders/voc_dataset.py
sdd9465/tensorlayer
690766535a591367ad86907835b39730f4aa1dea
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python # -*- coding: utf-8 -*- import os from lxml import etree import tensorflow as tf from tensorlayer import logging from tensorlayer.files.utils import del_file from tensorlayer.files.utils import del_folder from tensorlayer.files.utils import folder_exists from tensorlayer.files.utils import load_...
47.546269
269
0.60673
91ef5ef7e6f7bbc874060d89f905f2a07d5d3ef9
2,187
py
Python
tools/update_cli_readme_documentation.py
nareddyt/nighthawk
dfab764fb678089687d8ddb5419972ea06b14df8
[ "Apache-2.0" ]
null
null
null
tools/update_cli_readme_documentation.py
nareddyt/nighthawk
dfab764fb678089687d8ddb5419972ea06b14df8
[ "Apache-2.0" ]
null
null
null
tools/update_cli_readme_documentation.py
nareddyt/nighthawk
dfab764fb678089687d8ddb5419972ea06b14df8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Tool to automatically update README.md files that contain --help output of c++ TCLAP binaries import logging import argparse import os import pathlib import re import sys import subprocess if __name__ == "__main__": parser = argparse.ArgumentParser(description="Tool to update README.md CLI...
35.852459
95
0.668496
91ef6c3b1b25f2a484728f7429cf3e93b4526ef7
110,887
py
Python
scripts/pylint_custom_plugin/tests/test_pylint_custom_plugins.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
scripts/pylint_custom_plugin/tests/test_pylint_custom_plugins.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
scripts/pylint_custom_plugin/tests/test_pylint_custom_plugins.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import astroid import pylint.testutils import requests from azure.core import PipelineClient from azure.core.configuration import Configuration from pylint_custom_plug...
37.323124
121
0.59162
91efafe65d97f3f97d0010a820fb68ad9d70c369
1,492
py
Python
examples/shemoa.py
automl/bag-of-baselines
e02f4118a87384deb3c2ba77c6b58c39c0389554
[ "Apache-2.0" ]
14
2021-05-02T10:03:49.000Z
2022-03-14T00:52:03.000Z
examples/shemoa.py
automl/bag-of-baselines
e02f4118a87384deb3c2ba77c6b58c39c0389554
[ "Apache-2.0" ]
1
2021-05-18T05:42:31.000Z
2021-05-18T05:42:31.000Z
examples/shemoa.py
automl/bag-of-baselines
e02f4118a87384deb3c2ba77c6b58c39c0389554
[ "Apache-2.0" ]
1
2021-11-16T14:28:38.000Z
2021-11-16T14:28:38.000Z
from baselines.problems import get_flowers from baselines.problems.flowers import FlowersSearchSpace from baselines.problems import get_fashion from baselines.problems.fashion import FashionSearchSpace from baselines import save_experiment from baselines.methods.shemoa import SHEMOA from baselines.methods.shemoa import...
31.083333
77
0.713807
91efbe47598bfed4ea7e2a2bcf4bc6b7c2e4cca0
3,410
py
Python
postgres/scripts/makeFixedTables.py
empd2/EMPD-data
737b76eb269b071422edded6ac332654ff83c103
[ "CC-BY-4.0" ]
1
2021-08-05T11:03:58.000Z
2021-08-05T11:03:58.000Z
postgres/scripts/makeFixedTables.py
empd2/EMPD-data
737b76eb269b071422edded6ac332654ff83c103
[ "CC-BY-4.0" ]
80
2019-03-15T14:06:59.000Z
2020-10-05T09:21:07.000Z
postgres/scripts/makeFixedTables.py
EMPD2/EMPD-data
737b76eb269b071422edded6ac332654ff83c103
[ "CC-BY-4.0" ]
null
null
null
import sys import os.path as osp import psycopg2 as psql import pandas as pd import numpy as np from functools import partial db_url = sys.argv[-1] conn = psql.connect(db_url) cursor = conn.cursor() def is_null_str(x): return 'NULL' if x == "" else "'" + x.strip().replace("'", " ") + "'" tables = osp.join(osp...
26.230769
79
0.632845
91efd534289fe9654953036dafe3f72d4d855e1f
3,343
py
Python
utils/KTS/cpd_nonlin.py
Lorna-Liu/ultrasound_vsumm_RL
469214c6c9ef7fb8ecdeb29b831307b5be877d5a
[ "MIT" ]
17
2020-09-12T03:28:42.000Z
2021-11-15T12:10:31.000Z
utils/KTS/cpd_nonlin.py
Lorna-Liu/ultrasound_vsumm_RL
469214c6c9ef7fb8ecdeb29b831307b5be877d5a
[ "MIT" ]
3
2020-10-16T08:52:05.000Z
2022-03-22T02:59:55.000Z
utils/KTS/cpd_nonlin.py
Lorna-Liu/ultrasound_vsumm_RL
469214c6c9ef7fb8ecdeb29b831307b5be877d5a
[ "MIT" ]
1
2021-06-02T11:41:12.000Z
2021-06-02T11:41:12.000Z
import numpy as np import weave # Tianrui: weave is for py2 only def calc_scatters(K): """ Calculate scatter matrix: scatters[i,j] = {scatter of the sequence with starting frame i and ending frame j} """ n = K.shape[0] K1 = np.cumsum([0] + list(np.diag(K))) K2 = np.zeros((n+1, n+1)) ...
30.117117
105
0.502243
91efeeb88fb8c367c654fef96cc8de2e07669a24
433
py
Python
diversity/MMO/basinhopping/python-lib/movingwindow.py
alexander-hagg/phdexperiments
6506c8f2a438c67ca7c808df8715711fde73dfce
[ "MIT" ]
null
null
null
diversity/MMO/basinhopping/python-lib/movingwindow.py
alexander-hagg/phdexperiments
6506c8f2a438c67ca7c808df8715711fde73dfce
[ "MIT" ]
null
null
null
diversity/MMO/basinhopping/python-lib/movingwindow.py
alexander-hagg/phdexperiments
6506c8f2a438c67ca7c808df8715711fde73dfce
[ "MIT" ]
null
null
null
import numpy as np from numpy import convolve def movingwindow(values, window): """ Averages 'values' over a moving window of size 'window' (uses numpy 'convolve'). Idea came from 'gordoncluster.wordpress.com'. Returns a vector of the size of value - window + 1. I.e. edges are ignored. Edges should be added back in. ...
33.307692
108
0.713626
91efff2d229100c1297cafb068aa794ef919170d
983
py
Python
tests/_geom/test_path_close.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_geom/test_path_close.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_geom/test_path_close.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
import re from random import randint from typing import Match from typing import Optional from retrying import retry import apysc as ap from apysc._expression import var_names from tests.testing_helper import assert_attrs class TestPathClose: @retry(stop_max_attempt_number=15, wait_fixed=randint(...
29.787879
69
0.638861
91f0061ebccaebbdbb09f283d9d52d813459f493
10,755
py
Python
tensorflow/python/tools/freeze_graph_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/tools/freeze_graph_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/tools/freeze_graph_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.130597
80
0.697908
91f008dda142f2f45930455c6c7fa5479dbe01cc
2,414
py
Python
ikibardin/spacenet5/src/processing/split_folds.py
SpaceNetChallenge/SpaceNet_Optimized_Routing_Solutions
3fbc215de6b05904a5b54b2c7cde7e61074ae38d
[ "Apache-2.0" ]
27
2020-03-04T05:54:48.000Z
2022-01-05T07:07:44.000Z
ikibardin/spacenet5/src/processing/split_folds.py
CosmiQ/SpaceNet_Optimized_Routing_Solutions
3fbc215de6b05904a5b54b2c7cde7e61074ae38d
[ "Apache-2.0" ]
1
2020-07-14T10:35:50.000Z
2020-07-14T10:35:50.000Z
ikibardin/spacenet5/src/processing/split_folds.py
SpaceNetChallenge/SpaceNet_Optimized_Routing_Solutions
3fbc215de6b05904a5b54b2c7cde7e61074ae38d
[ "Apache-2.0" ]
7
2020-03-07T21:42:57.000Z
2022-01-07T10:49:50.000Z
import os import argparse import multiprocessing from typing import Dict, Union import numpy as np import pandas as pd import skimage.io from tqdm import tqdm from src import config def parse_args() -> argparse.Namespace: parser = argparse.ArgumentParser() parser.add_argument( '--masks', typ...
28.069767
86
0.626761
91f01a3adc82752985bbb14a34318cd3d36d52e7
6,772
py
Python
tests/test_updater_with_patterns.py
frague59/bump-release
e1f0ae5c971075901fa4205dc6e85dfb14e160a2
[ "MIT" ]
null
null
null
tests/test_updater_with_patterns.py
frague59/bump-release
e1f0ae5c971075901fa4205dc6e85dfb14e160a2
[ "MIT" ]
null
null
null
tests/test_updater_with_patterns.py
frague59/bump-release
e1f0ae5c971075901fa4205dc6e85dfb14e160a2
[ "MIT" ]
null
null
null
""" Tests for updaters """ import logging import sys from pathlib import Path import pytest import bump_release from bump_release import helpers logger = logging.getLogger("tests") MODULE_PATH = Path(__file__).parent @pytest.fixture def config(): release_ini_path = Path(__file__).parent / "fixtures" / "releas...
35.642105
96
0.700384
91f01e63819305fcc06ef4d7d551c233c7813477
2,076
py
Python
data_analysis/main_ispc.py
DiGyt/NBP_Hyperscanning
2981e0475b48702ba7bfc14d93aa57298d603928
[ "BSD-3-Clause" ]
null
null
null
data_analysis/main_ispc.py
DiGyt/NBP_Hyperscanning
2981e0475b48702ba7bfc14d93aa57298d603928
[ "BSD-3-Clause" ]
1
2020-03-31T11:35:25.000Z
2020-03-31T11:35:25.000Z
data_analysis/main_ispc.py
DiGyt/NBP_Hyperscanning
2981e0475b48702ba7bfc14d93aa57298d603928
[ "BSD-3-Clause" ]
null
null
null
# main_ispc.py # # Load the phase vectors created for each subject pair, and # calculate ISPCs from it. This file was used for the final # analysis (after main_phases.py and before main_swi.py). # import sys import os.path as op module_path = op.abspath(op.join('..')) if module_path not in sys.path: sys.path.appen...
33.483871
125
0.687861
91f02de5e762ed358f8112201dc700e73c6cb5d5
2,905
py
Python
pymicro/external/TypeContentsParser.py
tobyfrancis/pymicro
5c2ed0bb6990463ea6ee59586c9f59cd9b7b13ba
[ "MIT" ]
30
2017-03-02T14:43:48.000Z
2022-02-25T13:22:22.000Z
pymicro/external/TypeContentsParser.py
tobyfrancis/pymicro
5c2ed0bb6990463ea6ee59586c9f59cd9b7b13ba
[ "MIT" ]
14
2019-12-29T12:41:29.000Z
2021-12-01T21:13:20.000Z
pymicro/external/TypeContentsParser.py
tobyfrancis/pymicro
5c2ed0bb6990463ea6ee59586c9f59cd9b7b13ba
[ "MIT" ]
18
2017-03-21T12:43:19.000Z
2022-03-22T14:30:06.000Z
# To maximize python3/python2 compatibility from __future__ import print_function from __future__ import unicode_literals from __future__ import division from __future__ import absolute_import # # helper code: we define our match tokens lastval = '' def monitor(location,value): global lastval #print 'At %s: %s...
35
155
0.605852
91f0335db0ce4efbef654a4c5dfb48d382d5ad06
10,826
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_data_masking_policies_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_data_masking_policies_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_data_masking_policies_operations.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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.289063
239
0.692407
91f0381129e593d8e7c169926e8c8814d257cf1e
209
py
Python
API/src/main/resources/Lib/xlutils/__init__.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/xlutils/__init__.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/xlutils/__init__.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license # # This Software is released under the MIT License: # http://www.opensource.org/licenses/mit-license.html # See license.txt for more details.
34.833333
65
0.746411
91f04bd1091a04a06ff8418ef7be5019c699295e
5,603
py
Python
tests/test_graph.py
omyllymaki/PySimpleGraph
ac7b8cf982ba9a869d618c0e95539153457498a6
[ "MIT" ]
null
null
null
tests/test_graph.py
omyllymaki/PySimpleGraph
ac7b8cf982ba9a869d618c0e95539153457498a6
[ "MIT" ]
null
null
null
tests/test_graph.py
omyllymaki/PySimpleGraph
ac7b8cf982ba9a869d618c0e95539153457498a6
[ "MIT" ]
null
null
null
import unittest from functools import partial from src.tinydag.graph import Graph, GraphError from src.tinydag.node import Node def add(a, b): return a + b def mul(a, b): return a * b def div(a, b): return a / b def get_number(a): return a class TestRaisesException(unittest.TestCase): de...
28.881443
76
0.509905
91f08179c45b74562cdf54ba843b3ea1bd65a2de
667
py
Python
appengine/findit/infra_api_clients/codereview/test/codereview_util_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/infra_api_clients/codereview/test/codereview_util_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
16
2020-09-07T11:55:09.000Z
2022-03-02T05:47:58.000Z
appengine/findit/infra_api_clients/codereview/test/codereview_util_test.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. from parameterized import parameterized from testing_utils import testing from infra_api_clients.codereview import codereview_util class CodeReviewUtilTes...
31.761905
72
0.757121
91f0a7dbad869ebd958168cb8f99abc2b201aafa
918
py
Python
src_calc/packgraphs/plot_objetivef.py
grissutpl/OPS-Design
866fbff2d6106e35017aed750c67be79157d9c72
[ "MIT" ]
null
null
null
src_calc/packgraphs/plot_objetivef.py
grissutpl/OPS-Design
866fbff2d6106e35017aed750c67be79157d9c72
[ "MIT" ]
null
null
null
src_calc/packgraphs/plot_objetivef.py
grissutpl/OPS-Design
866fbff2d6106e35017aed750c67be79157d9c72
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jan 01 20:00:29 2020 @author: Ing. Daniel Villarreal """ import matplotlib.pyplot as plt # Ploteo de gráficas def graph_objetive(lista_Peso_estructural): x = [] y = [] fig = plt.figure(figsize=(8,8)) ax = fig.add_subplot(1, 1, 1) ax.gr...
29.612903
144
0.562092
91f0c361bcdaed7f377b11fd105f0e6ba5b0b3d5
7,552
py
Python
tests/integration.py
jakeatdocforce/dactyl
91ae98cc448dd178a7129ed66e84888b9908b526
[ "MIT" ]
61
2017-03-22T09:21:02.000Z
2021-12-16T21:23:41.000Z
tests/integration.py
meonBot/dactyl
7f128fa9d4ec9b38a129f9193d13c0f6f47af5bd
[ "MIT" ]
61
2017-02-22T01:07:25.000Z
2022-02-24T01:08:46.000Z
tests/integration.py
meonBot/dactyl
7f128fa9d4ec9b38a129f9193d13c0f6f47af5bd
[ "MIT" ]
28
2017-05-29T13:20:06.000Z
2022-03-26T16:42:20.000Z
#!/usr/bin/env python3 import os import subprocess import sys import unittest from distutils.dir_util import remove_tree from pathlib import Path class TestDactyl(unittest.TestCase): def setUp(self): self.startdir = os.getcwd() # Before each test is run, remove the existing files in out subdirec...
41.494505
136
0.657707
91f0c77c11f5820c22d86a0f04bd9d3b6d8dfc2c
4,690
py
Python
tests/test_wallet.py
faridridwanto/augment-python-sdk
8399293fd40e549f9ba526e72ddf28796e854a62
[ "Apache-2.0" ]
2
2021-06-28T17:39:32.000Z
2021-07-27T03:45:07.000Z
tests/test_wallet.py
faridridwanto/augment-python-sdk
8399293fd40e549f9ba526e72ddf28796e854a62
[ "Apache-2.0" ]
1
2020-07-21T06:19:39.000Z
2020-07-21T09:28:09.000Z
tests/test_wallet.py
faridridwanto/augment-python-sdk
8399293fd40e549f9ba526e72ddf28796e854a62
[ "Apache-2.0" ]
3
2020-05-05T07:09:41.000Z
2020-07-20T08:20:47.000Z
# Copyright 2020 AccelByte Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
36.929134
81
0.678252
91f0d4ed824e1fc39e4969841822ed9e201402c9
1,809
py
Python
test/selenium/src/lib/service/proposal_rest_service.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-04T10:55:14.000Z
2019-01-04T10:55:14.000Z
test/selenium/src/lib/service/proposal_rest_service.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/selenium/src/lib/service/proposal_rest_service.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Services for create and manipulate Proposal objects via Rest.""" from dateutil import parser, tz from lib import constants, url from lib.constants import objects from lib.service import rest_service from ...
38.489362
79
0.699834
91f0dfec02ac2a8b2a3312f89788cb7461208cea
12,046
py
Python
src/deep_dialog/usersims/usersim_supervise.py
AtmaHou/UserSimulator
0322b7c725f771ea1f5b517c72e15e3436cb8d22
[ "MIT" ]
3
2020-12-16T08:19:00.000Z
2022-01-11T05:40:15.000Z
src/deep_dialog/usersims/usersim_supervise.py
AtmaHou/UserSimulator
0322b7c725f771ea1f5b517c72e15e3436cb8d22
[ "MIT" ]
null
null
null
src/deep_dialog/usersims/usersim_supervise.py
AtmaHou/UserSimulator
0322b7c725f771ea1f5b517c72e15e3436cb8d22
[ "MIT" ]
1
2020-12-18T00:03:12.000Z
2020-12-18T00:03:12.000Z
# coding: utf-8 """ Created on June 5, 2018 a action classify based user simulator -- user_goals_first_turn_template.revised.v1.p: all goals -- user_goals_first_turn_template.part.movie.v1.p: moviename in goal.inform_slots -- user_goals_first_turn_template.part.nomovie.v1.p: no moviename in goal.inform_slots @autho...
41.395189
128
0.629088
91f0f6cfb2d328ca10982209777ea386e39d78f5
1,457
py
Python
pntools/algorithm/lpo_skeleton.py
BoltMaud/pntools
3bb501b4f3ce8ad031fcc05e9c58c2c053230d8b
[ "MIT" ]
6
2016-05-17T19:34:26.000Z
2021-05-17T18:39:50.000Z
pntools/algorithm/lpo_skeleton.py
BoltMaud/pntools
3bb501b4f3ce8ad031fcc05e9c58c2c053230d8b
[ "MIT" ]
15
2017-02-05T07:43:05.000Z
2018-02-11T15:03:02.000Z
pntools/algorithm/lpo_skeleton.py
BoltMaud/pntools
3bb501b4f3ce8ad031fcc05e9c58c2c053230d8b
[ "MIT" ]
8
2017-02-08T10:53:29.000Z
2021-03-06T09:59:58.000Z
from pntools import partialorder def skeleton(lpo): incidence = incidence_matrix(lpo) for arc in lpo.arcs: if is_a_skeleton_arc(incidence, arc): arc.skeleton = True else: arc.skeleton = False def is_a_skeleton_arc(incidence, arc): matrix, events = incidence sou...
21.115942
57
0.58545
91f10020b3f5a4508d6dc6f8bd19336e47c06e1d
896
py
Python
handlers/order_request/type_of_card_if_cash_in.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
handlers/order_request/type_of_card_if_cash_in.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
handlers/order_request/type_of_card_if_cash_in.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
from aiogram import types from aiogram.dispatcher import FSMContext from loader import dp from states import Request from keyboards import create_kb_coustom_main_menu # from operation_type.py @dp.callback_query_handler(state=Request.type_of_card) async def set_type_of_card(call:types.CallbackQuery, state:FSMContext)...
29.866667
74
0.727679
91f11c63d8a7c253c64ce2d3811c7bf469a2e4df
17,890
py
Python
sleap/nn/tracker/components.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
sleap/nn/tracker/components.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
sleap/nn/tracker/components.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
""" Functions/classes used by multiple trackers. Main types of functions: 1. Calculate pair-wise instance similarity; used for populating similarity/cost matrix. 2. Pick matches based on cost matrix. 3. Other clean-up (e.g., cull instances, connect track breaks). """ import operator from collections import def...
34.337812
89
0.643264
91f123aa51b03a9ef4cc5d8c2f93f269caa133f8
91,409
py
Python
gammapy/datasets/map.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
gammapy/datasets/map.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
gammapy/datasets/map.py
isu-veritas/gammapy
715b041d7d3925bd51109dc9534634263a2f2d12
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import logging import numpy as np import astropy.units as u from astropy.io import fits from astropy.table import Table from regions import CircleSkyRegion from gammapy.data import GTI from gammapy.irf import EDispKernelMap, EDispMap, PSFKernel, PSFMap fro...
33.360949
130
0.581737
91f1575f6acdb9baaf6317b980a1f2ca22bd49c4
234
py
Python
qtim_tools/qtim_utilities/convert_util.py
QTIM-Lab/qtim_tools
92bd15ec7a81c5eda70d11a015f74538f3c41e22
[ "Apache-2.0" ]
12
2017-03-29T18:17:24.000Z
2020-03-19T05:28:56.000Z
qtim_tools/qtim_utilities/convert_util.py
QTIM-Lab/qtim_tools
92bd15ec7a81c5eda70d11a015f74538f3c41e22
[ "Apache-2.0" ]
7
2017-03-08T21:06:01.000Z
2017-06-21T19:01:58.000Z
qtim_tools/qtim_utilities/convert_util.py
QTIM-Lab/qtim_tools
92bd15ec7a81c5eda70d11a015f74538f3c41e22
[ "Apache-2.0" ]
5
2017-03-02T09:08:21.000Z
2019-10-26T05:37:39.000Z
from nrrd_util import nrrd_2_numpy from nifti_util import nifti_2_numpy def nifti_4d_2_nrrd_4d(input_nifti, output_nrrd, TR, TE): nrrd_2_numpy() return def run_test(): return if __name__ == '__main__': run_test()
15.6
57
0.735043
91f168adb79701fbbcce2178d905ec3862296dfb
1,121
py
Python
pytypo/__init__.py
ikegami-yukino/pytypo
7c541ab0572bcf0c3c866c7cceb2496f6d367228
[ "MIT" ]
8
2017-06-05T08:59:28.000Z
2021-11-15T12:34:40.000Z
pytypo/__init__.py
ikegami-yukino/pytypo
7c541ab0572bcf0c3c866c7cceb2496f6d367228
[ "MIT" ]
null
null
null
pytypo/__init__.py
ikegami-yukino/pytypo
7c541ab0572bcf0c3c866c7cceb2496f6d367228
[ "MIT" ]
2
2016-07-03T07:05:53.000Z
2019-07-24T13:43:04.000Z
# -*- coding: utf-8 -*- """pytypo - Spell correction This module corrects spelling mistake. That feature is based on TYPO CORPUS (http://luululu.com/tweet/) and Wikipedia (https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines) Also this module normalizes lengthened English expression havin...
29.5
102
0.758252
91f175afc066b85a6c1c8c064d8e0e148e0a3e7a
108,166
py
Python
statsmodels/discrete/discrete_model.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
statsmodels/discrete/discrete_model.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
statsmodels/discrete/discrete_model.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
""" Limited dependent variable and qualitative variables. Includes binary outcomes, count data, (ordered) ordinal data and limited dependent variables. General References -------------------- A.C. Cameron and P.K. Trivedi. `Regression Analysis of Count Data`. Cambridge, 1998 G.S. Madalla. `Limited-Dependent an...
36.115526
401
0.579332
91f17a60ade93216278b8bb49482c6290ea739d5
3,531
py
Python
igibson/utils/data_utils/ext_scene/scripts/utils/print_room_furniture_support_type.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
360
2020-04-02T11:12:09.000Z
2022-03-24T21:46:58.000Z
igibson/utils/data_utils/ext_scene/scripts/utils/print_room_furniture_support_type.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
169
2020-04-07T21:01:05.000Z
2022-03-31T10:07:39.000Z
igibson/utils/data_utils/ext_scene/scripts/utils/print_room_furniture_support_type.py
suresh-guttikonda/iGibson
a69e623058180146466cd52d4bb3c00d1facdacf
[ "MIT" ]
94
2020-04-09T23:22:17.000Z
2022-03-17T21:49:03.000Z
import argparse import json import os from igibson.render.mesh_renderer.mesh_renderer_settings import MeshRendererSettings from igibson.scenes.igibson_indoor_scene import InteractiveIndoorScene from igibson.simulator import Simulator def get_scene_support_objs(scene_name): support_objs_json = "data/ig_dataset/sc...
33.628571
108
0.667516
91f184d37fc41299732c88e8f80115ab7210d146
844
py
Python
utils/wait.py
hoyping/deploy
c1c1f582063d5ea84cbacbabaf25a497319e82c5
[ "Apache-2.0" ]
null
null
null
utils/wait.py
hoyping/deploy
c1c1f582063d5ea84cbacbabaf25a497319e82c5
[ "Apache-2.0" ]
null
null
null
utils/wait.py
hoyping/deploy
c1c1f582063d5ea84cbacbabaf25a497319e82c5
[ "Apache-2.0" ]
null
null
null
import logging import time log = logging.getLogger('avocado.test') def wait_for(func, timeout, first=0.0, step=1.0, text=None): """ Wait until func() evaluates to True. If func() evaluates to True before timeout expires, return the value of func(). Otherwise return None. :param timeout: Timeout...
24.114286
71
0.633886
91f1e8f592f4f0935931e848c9cecf324b33627a
2,980
py
Python
dataloaders/voc2007_20.py
sorrowyn/C-Tran
236d785952c59210e6812b4ad5ee12bab585ce4c
[ "MIT" ]
104
2021-01-25T17:27:16.000Z
2022-03-20T10:17:50.000Z
dataloaders/voc2007_20.py
sorrowyn/C-Tran
236d785952c59210e6812b4ad5ee12bab585ce4c
[ "MIT" ]
9
2021-02-26T08:11:46.000Z
2021-11-17T16:24:52.000Z
dataloaders/voc2007_20.py
sorrowyn/C-Tran
236d785952c59210e6812b4ad5ee12bab585ce4c
[ "MIT" ]
18
2021-02-21T14:01:23.000Z
2022-03-16T08:41:27.000Z
import os import torch from skimage import io, transform import numpy as np from torch.utils.data import Dataset, DataLoader from torchvision import transforms#, utils import pickle from pdb import set_trace as stop from PIL import Image import json, string, sys import torchvision.transforms.functional as TF import ran...
35.903614
249
0.634228
91f21ccfb0babfe265dd030c3e7e2d2ba82be6cc
2,397
py
Python
classes/class_02.py
parth-patel-samarthview/batch_201901
f407c1bf9575a01e8ddc507adb6f0574f8d2bc09
[ "MIT" ]
2
2019-03-17T07:20:24.000Z
2019-03-31T05:47:09.000Z
classes/class_02.py
parth-patel-samarthview/batch_201901
f407c1bf9575a01e8ddc507adb6f0574f8d2bc09
[ "MIT" ]
null
null
null
classes/class_02.py
parth-patel-samarthview/batch_201901
f407c1bf9575a01e8ddc507adb6f0574f8d2bc09
[ "MIT" ]
2
2019-01-28T13:09:48.000Z
2019-03-17T07:20:37.000Z
""" This is class 02 file 1) Variable 2) Data Type: Integer, Float, String, Boolean, None 3) Data Structure: List Assignment: 1) Create 5 variables for each data types 2) Create 5 list variables with 3 elements like Name, address, contact_no """ # #####################################################################...
24.459184
79
0.597413
91f254cc25a05eeabe0b74ed40e1667055fd27fb
377
py
Python
pystrings/letter_digit_count/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
pystrings/letter_digit_count/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
pystrings/letter_digit_count/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
class LetterDigitCount(object): def __init__(self, sentence): self.sentence = sentence def counter(self): d = {"DIGITS": 0, "LETTERS": 0} for x in self.sentence: if x.isdigit(): d["DIGITS"] += 1 elif x.isalpha(): d["LETTERS"] += 1 ...
23.5625
39
0.456233
91f28eff7e4874bff52263924752a914c3101e56
6,689
py
Python
sdk/core/azure-core/azure/core/pipeline/transport/requests_trio.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/core/azure-core/azure/core/pipeline/transport/requests_trio.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/core/azure-core/azure/core/pipeline/transport/requests_trio.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""), ...
41.290123
103
0.655853
91f29c92a8d89acd87de9638045ab82fcde19b17
1,075
py
Python
kwrankingclient/v1/client.py
frossigneux/python-kwrankingclient
eac2705de47c5ca76126112d02ce3f2f27e53cc6
[ "Apache-2.0" ]
1
2015-01-16T18:15:56.000Z
2015-01-16T18:15:56.000Z
kwrankingclient/v1/client.py
frossigneux/python-kwrankingclient
eac2705de47c5ca76126112d02ce3f2f27e53cc6
[ "Apache-2.0" ]
null
null
null
kwrankingclient/v1/client.py
frossigneux/python-kwrankingclient
eac2705de47c5ca76126112d02ce3f2f27e53cc6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Mirantis 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 writ...
32.575758
79
0.709767
91f2a79c8676c3d4a99e3d8378df8ca0f01846fa
26,552
py
Python
tool/zget_flowNN_gradient.py
lec0dex/FGVC
75527ec318d4d4a7204f2f525bbff31995dee7e7
[ "MIT" ]
2
2021-09-08T21:04:05.000Z
2022-03-18T07:48:31.000Z
tool/zget_flowNN_gradient.py
lec0dex/FGVC
75527ec318d4d4a7204f2f525bbff31995dee7e7
[ "MIT" ]
3
2021-05-10T13:25:01.000Z
2021-11-16T09:46:48.000Z
tool/zget_flowNN_gradient.py
lec0dex/FGVC
75527ec318d4d4a7204f2f525bbff31995dee7e7
[ "MIT" ]
1
2021-06-27T06:16:36.000Z
2021-06-27T06:16:36.000Z
from __future__ import absolute_import, division, print_function, unicode_literals import os import cv2 import copy import numpy as np import scipy.io as sio from utils.common_utils import interp, BFconsistCheck, \ FBconsistCheck, consistCheck, get_KeySourceFrame_flowNN_gradient def zget_flowNN_gradient(args, ...
49.629907
269
0.536042
91f2b12d204f020952678bc4bf64eb4adf9ec3ff
1,850
py
Python
marqeta/response_models/auth_control_exempt_mids_response.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/auth_control_exempt_mids_response.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/auth_control_exempt_mids_response.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models.spend_control_association import SpendControlAssociation from marqeta.response_models import datetime_object import json import re class AuthControlExemptMidsResponse(object): def __init__(self, json_response): self.json_response = json_resp...
26.428571
124
0.688649
91f2f7fc5f824fd2542f2c09451da28f5a80964f
14,291
py
Python
Corrfunc/mocks/vpf_mocks.py
fbeutler/Corrfunc
cff65ed49d8385636bd566c58c00cb328a822dfb
[ "MIT" ]
139
2016-02-10T01:41:55.000Z
2022-03-31T10:33:38.000Z
Corrfunc/mocks/vpf_mocks.py
fbeutler/Corrfunc
cff65ed49d8385636bd566c58c00cb328a822dfb
[ "MIT" ]
227
2015-11-13T06:31:46.000Z
2022-02-03T21:12:36.000Z
Corrfunc/mocks/vpf_mocks.py
fbeutler/Corrfunc
cff65ed49d8385636bd566c58c00cb328a822dfb
[ "MIT" ]
58
2016-03-15T07:25:33.000Z
2022-03-22T09:38:27.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Python wrapper around the C extension for the counts-in-cells for positions on the sky. Corresponding C codes are in ``mocks/vpf_mocks/`` while the python wrapper is in :py:mod:`Corrfunc.mocks.vpf_mocks` """ from __future__ import (division, print_function, absolute_i...
42.406528
94
0.592681
91f30f98e253a34576b57eb4b8990e9882577448
1,776
py
Python
website_monitor/config.py
moor84/website-monitor
a3ee9ab5cb0fbe8bfc0bbbcecf6da93e81aba74a
[ "MIT" ]
null
null
null
website_monitor/config.py
moor84/website-monitor
a3ee9ab5cb0fbe8bfc0bbbcecf6da93e81aba74a
[ "MIT" ]
null
null
null
website_monitor/config.py
moor84/website-monitor
a3ee9ab5cb0fbe8bfc0bbbcecf6da93e81aba74a
[ "MIT" ]
null
null
null
""" Configuration utils. Copyright (c) 2021 Mikhail Medvedev """ from __future__ import annotations import json from dataclasses import dataclass from typing import Optional @dataclass class KafkaConfig: """Kafka configuration, see https://help.aiven.io/en/articles/489572-getting-started-with-aiven-kafka""" ...
23.368421
118
0.660473
91f3147a391b5f4f61ec80d178aaafd73f1f239a
5,483
py
Python
release/scripts/addons/space_view3d_pie_menus/pie_sculpt_menu.py
1-MillionParanoidTterabytes/Blender-2.79b-blackened
e8d767324e69015aa66850d13bee7db1dc7d084b
[ "Unlicense" ]
2
2018-06-18T01:50:25.000Z
2018-06-18T01:50:32.000Z
space_view3d_pie_menus/pie_sculpt_menu.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
null
null
null
space_view3d_pie_menus/pie_sculpt_menu.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
null
null
null
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 version 2 # of the License, or (at your option) any later version. # # This program is distrib...
33.03012
93
0.604049
91f314be27ddfb71805fa96e7de3e0d948112547
158
py
Python
prokka-runner.py
AMARTELKE/Pangenome-with-Panaroo
b720debf8616882668d53600038c334393080d9b
[ "MIT" ]
116
2019-11-28T07:54:26.000Z
2022-03-31T03:20:44.000Z
prokka-runner.py
AMARTELKE/Pangenome-with-Panaroo
b720debf8616882668d53600038c334393080d9b
[ "MIT" ]
120
2019-12-08T21:01:46.000Z
2022-03-30T04:11:52.000Z
prokka-runner.py
AMARTELKE/Pangenome-with-Panaroo
b720debf8616882668d53600038c334393080d9b
[ "MIT" ]
19
2019-12-19T05:34:03.000Z
2022-03-19T05:54:51.000Z
#!/usr/bin/env python """Wrapper for running prokka directly from source tree.""" from panaroo.run_prokka import main if __name__ == '__main__': main()
19.75
59
0.71519
91f3269258d7455253140aae9c0d3dfe9fdb683f
324
py
Python
art/defences/__init__.py
yalechang/adversarial-robustness-toolbox
df4efc86c3ed963c82687b3ab8cd5cdbd5fe5c57
[ "MIT" ]
1
2022-03-02T19:05:12.000Z
2022-03-02T19:05:12.000Z
art/defences/__init__.py
yalechang/adversarial-robustness-toolbox
df4efc86c3ed963c82687b3ab8cd5cdbd5fe5c57
[ "MIT" ]
null
null
null
art/defences/__init__.py
yalechang/adversarial-robustness-toolbox
df4efc86c3ed963c82687b3ab8cd5cdbd5fe5c57
[ "MIT" ]
null
null
null
""" Module implementing multiple types of defenses against adversarial attacks. """ from art.defences.adversarial_trainer import AdversarialTrainer from art.defences.feature_squeezing import FeatureSqueezing from art.defences.label_smoothing import LabelSmoothing from art.defences.spatial_smoothing import SpatialSmooth...
40.5
75
0.87037
91f33bbc6d3b0adcfc47311795dcad402663da0a
3,472
py
Python
alipay/aop/api/domain/AlipayCommerceEducateXuexinIdentityQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayCommerceEducateXuexinIdentityQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayCommerceEducateXuexinIdentityQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayCommerceEducateXuexinIdentityQueryModel(object): def __init__(self): self._cert_no = None self._cert_type = None self._education_level = None self._enroll_da...
29.931034
81
0.596198
91f3476bde81f05d635f9a6825dfcb210d8c0961
7,465
py
Python
examples/3384_REMC.py
T2DREAM/pyencoded-tools
75fa636995bfc9fe181f9af490ce70dde3f6ce21
[ "MIT" ]
9
2016-08-23T15:59:12.000Z
2021-07-16T00:54:54.000Z
examples/3384_REMC.py
T2DREAM/pyencoded-tools
75fa636995bfc9fe181f9af490ce70dde3f6ce21
[ "MIT" ]
12
2016-11-18T18:56:42.000Z
2021-03-11T20:25:14.000Z
examples/3384_REMC.py
T2DREAM/pyencoded-tools
75fa636995bfc9fe181f9af490ce70dde3f6ce21
[ "MIT" ]
14
2016-02-17T04:24:07.000Z
2020-02-28T21:36:19.000Z
import argparse import os.path import encodedcc import csv EPILOG = ''' For more details: %(prog)s --help ''' def getArgs(): parser = argparse.ArgumentParser( description=__doc__, epilog=EPILOG, formatter_class=argparse.RawDescriptionHelpFormatter, ) parser.add_argument('--key',...
47.852564
257
0.548292
91f36d75a4644715efc32f6ae94fd717604f3e45
6,918
py
Python
sciwing/models/rnn_seq_crf_tagger.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
null
null
null
sciwing/models/rnn_seq_crf_tagger.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
null
null
null
sciwing/models/rnn_seq_crf_tagger.py
sean-dingxu/sciwing
75eca1ea43be165eab20cf8bd81bbc19cecda74c
[ "MIT" ]
null
null
null
import torch.nn as nn from typing import Dict, List, Tuple from allennlp.modules.conditional_random_field import ConditionalRandomField as CRF from allennlp.modules.conditional_random_field import allowed_transitions import torch from sciwing.modules.lstm2seqencoder import Lstm2SeqEncoder from sciwing.data.datasets_man...
40.45614
90
0.609425
91f386e538d9ae4ed0e119ad2e14135eaac6e77a
884
py
Python
python/neuralpixels/image/io.py
neuralpixels/NeuralPixels
5b6a6f0e20892535d2a193b0c9e2080a2071e9ad
[ "MIT" ]
1
2020-06-07T05:23:20.000Z
2020-06-07T05:23:20.000Z
python/neuralpixels/image/io.py
neuralpixels/NeuralPixels
5b6a6f0e20892535d2a193b0c9e2080a2071e9ad
[ "MIT" ]
null
null
null
python/neuralpixels/image/io.py
neuralpixels/NeuralPixels
5b6a6f0e20892535d2a193b0c9e2080a2071e9ad
[ "MIT" ]
null
null
null
import os import scipy.misc from neuralpixels.image.scipy_old import imread, imsave import numpy as np from glob import glob def get_img(src, dtype=None): img = imread(src, mode='RGB') if dtype is not None: return img.astype(dtype) else: return img def save_img(out_path, img): abs_ou...
28.516129
76
0.659502
91f391d4404f469776581af5daa25815f7891188
13,280
py
Python
fury/io.py
sreekarchigurupati/fury
07ed10123954d3ce3197c45f8ee54a7d4909656d
[ "BSD-3-Clause" ]
null
null
null
fury/io.py
sreekarchigurupati/fury
07ed10123954d3ce3197c45f8ee54a7d4909656d
[ "BSD-3-Clause" ]
null
null
null
fury/io.py
sreekarchigurupati/fury
07ed10123954d3ce3197c45f8ee54a7d4909656d
[ "BSD-3-Clause" ]
null
null
null
import os from tempfile import TemporaryDirectory as InTemporaryDirectory from urllib.request import urlretrieve import numpy as np from PIL import Image from fury.lib import (numpy_support, PNGReader, BMPReader, JPEGReader, ImageData, TIFFReader, PNGWriter, BMPWriter, JPEG...
32.54902
89
0.585768
91f3a10f98718528311a79b9c9cf776ad43498c6
4,371
py
Python
randan/utils.py
RandanCSS/randan
c72683d854f277c7907aba3cab7a99ba85f05656
[ "MIT" ]
1
2021-02-17T05:14:10.000Z
2021-02-17T05:14:10.000Z
randan/utils.py
RandanCSS/randan
c72683d854f277c7907aba3cab7a99ba85f05656
[ "MIT" ]
null
null
null
randan/utils.py
RandanCSS/randan
c72683d854f277c7907aba3cab7a99ba85f05656
[ "MIT" ]
null
null
null
from itertools import combinations from scipy.stats import norm import pandas as pd import numpy as np #extend this list available_colors = [ 'cadetblue1', 'bisque', 'pink', 'aquamarine', 'olivedrab1', 'slategray1', 'darkseagreen1' ] def binning(series, n_intervals): s...
36.731092
130
0.639213
91f3b001d694761c7590f80e9f1e93f022fd6774
362
py
Python
(1)Text/re_groups_individual.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
(1)Text/re_groups_individual.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
(1)Text/re_groups_individual.py
mass9/Python
66499164e36a4fe9630029d34b292ab06f849b2f
[ "MIT" ]
null
null
null
import re text = 'This is some text -- with punctuation.' print('Input text:', text) # Word starting with 't' then another word regex = re.compile(r'(\bt\w+)\W+(\w+)') print('Pattern:', regex.pattern) match = regex.search(text) print('Entire match:', match.group(0)) print('Word starting with "t":', match.group(1)) prin...
32.909091
48
0.676796
91f3e643dbdd957e6cce1a336db69f6f6c22f9a0
1,916
py
Python
autocsp/lib/sqlite.py
qll/autoCSP
39c3040ef7497e2011d1c298b1fb6cabe7db2ad4
[ "MIT" ]
1
2016-06-20T08:47:58.000Z
2016-06-20T08:47:58.000Z
autocsp/lib/sqlite.py
qll/autoCSP
39c3040ef7497e2011d1c298b1fb6cabe7db2ad4
[ "MIT" ]
null
null
null
autocsp/lib/sqlite.py
qll/autoCSP
39c3040ef7497e2011d1c298b1fb6cabe7db2ad4
[ "MIT" ]
null
null
null
""" Slightly modified version of Louis Riviere's recipe http://code.activestate.com/recipes/526618/ (MIT license). """ import logging import sqlite3 import threading from Queue import Queue class ThreadedDatabase(threading.Thread): def __init__(self, path): super(ThreadedDatabase, self).__init__() ...
28.176471
67
0.519311
91f4017a2ff3867449d66488688e1964f2948aed
3,406
py
Python
access/search/solrdocparams.py
eark-project/access_dipcreator
b1f9034d309dfdb676cbba92c9c4722bf576aba2
[ "MIT" ]
4
2019-12-19T17:17:42.000Z
2021-12-11T23:12:45.000Z
access/search/solrdocparams.py
eark-project/access_dipcreator
b1f9034d309dfdb676cbba92c9c4722bf576aba2
[ "MIT" ]
32
2020-03-19T15:56:05.000Z
2021-12-23T12:46:06.000Z
access/search/solrdocparams.py
eark-project/access_dipcreator
b1f9034d309dfdb676cbba92c9c4722bf576aba2
[ "MIT" ]
null
null
null
"""Content specific solr document - DEACTIVATED, install 'dicom' module to enable""" import logging logger = logging.getLogger(__name__) # import dicom # from dicom.errors import InvalidDicomError class SolrDocParams(object): DICOM, NONE = range(2) file_path = None def __init__(self, file_path): ...
37.844444
116
0.596007
91f401b519c2b7654440923ece8f5933053c7e72
613
py
Python
tensorflow_datasets/image/fastmri_test.py
drwitt/datasets
61254a0623046028b06106d808bac01224170e81
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/image/fastmri_test.py
drwitt/datasets
61254a0623046028b06106d808bac01224170e81
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/image/fastmri_test.py
drwitt/datasets
61254a0623046028b06106d808bac01224170e81
[ "Apache-2.0" ]
1
2020-04-07T00:59:22.000Z
2020-04-07T00:59:22.000Z
"""Test for single coil files from fastmri.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow_datasets import testing from tensorflow_datasets.image import fastmri class FastMRITest(testing.DatasetBuilderTestCase): DATASET_CLASS = fast...
27.863636
63
0.729201
91f402fb13b95df5eb0484afc9716b14911f5baa
3,255
py
Python
sdks/python/appcenter_sdk/models/DataSubjectRightEmailRequest.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/DataSubjectRightEmailRequest.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/DataSubjectRightEmailRequest.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 """ import pprint import re # noqa: F401 import six class DataSubjectRig...
29.0625
91
0.57573
91f40957a42b4b12d4e4084278c8d3d83b92ffa4
5,562
py
Python
wordle.py
JGBMichalski/Wordle-CLI
1dccd026252405e9f851ac080be5c4351879ac8a
[ "MIT" ]
null
null
null
wordle.py
JGBMichalski/Wordle-CLI
1dccd026252405e9f851ac080be5c4351879ac8a
[ "MIT" ]
null
null
null
wordle.py
JGBMichalski/Wordle-CLI
1dccd026252405e9f851ac080be5c4351879ac8a
[ "MIT" ]
null
null
null
# Requires Python 3.10 - This is due to the `match` statement used in the `GetAttemptString` function from random import randint import requests from Classes.Text import Colours import re import sys MAX_ATTEMPTS = 5 # Maximum number of attempts before you lose CHAR_INCORRECT = '0' # Value used to signify if a char...
34.7625
136
0.642035
91f427019f5f49aa5ee3519716bb2f8f5f4bf681
8,644
py
Python
multimodal_affinities/blocks/document.py
amzn/multimodal-affinities
23045eb6a9387ce0c9c6f5a15227cf1cc4282626
[ "CC-BY-4.0" ]
6
2021-07-06T12:48:18.000Z
2021-12-06T01:52:24.000Z
multimodal_affinities/blocks/document.py
amzn/multimodal-affinities
23045eb6a9387ce0c9c6f5a15227cf1cc4282626
[ "CC-BY-4.0" ]
null
null
null
multimodal_affinities/blocks/document.py
amzn/multimodal-affinities
23045eb6a9387ce0c9c6f5a15227cf1cc4282626
[ "CC-BY-4.0" ]
5
2021-07-10T08:09:17.000Z
2022-03-24T16:27:15.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: CC-BY-4.0 import os, sys import cv2 SRC_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../')) sys.path.append(SRC_DIR) from PIL import Image from multimodal_affinities.blocks.word import Word from multim...
36.782979
108
0.603077
91f4369a74e8f2ab6b1fe9f716d4652f84e72c89
1,162
py
Python
src/python/ch03/sec01.py
zhuyuanxiang/Dive-into-Deep-Learning
1237dfe2744aaa1cd42a83961b9516c01b960b83
[ "MIT" ]
null
null
null
src/python/ch03/sec01.py
zhuyuanxiang/Dive-into-Deep-Learning
1237dfe2744aaa1cd42a83961b9516c01b960b83
[ "MIT" ]
null
null
null
src/python/ch03/sec01.py
zhuyuanxiang/Dive-into-Deep-Learning
1237dfe2744aaa1cd42a83961b9516c01b960b83
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ @Author : zYx.Tom @Contact : 526614962@qq.com @site : https://zhuyuanxiang.github.io --------------------------- @Software : PyCharm @Project : Dive-into-Deep-Learning @File : sec0202.py @Version : v0.1 @Time : 2020-12-27 9:25 @License ...
21.518519
72
0.486231
91f45019b92d86f5c2fc7d27d9f5a79ab3ad1527
481
py
Python
fiepipedesktoplib/applauncher/abstractlauncher.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fiepipedesktoplib/applauncher/abstractlauncher.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
fiepipedesktoplib/applauncher/abstractlauncher.py
leith-bartrich/fiepipe_desktop
5136141d67a59e9a2afb79f368a6a02f2d61d2da
[ "MIT" ]
null
null
null
import subprocess import typing class abstractlauncher(object): def __init__(self): pass def GetArgs(self) -> list: raise NotImplementedError() def GetEnv(self) -> typing.Dict[str,str]: raise NotImplementedError() def launch(self, echo = False): if echo: ...
19.24
109
0.629938
91f467e0bc8d3db5cc4bdb4dcc003b77755f4acf
1,081
py
Python
Source/subcontent.py
IRIDIUM-SUB/Software-Security-Course-Design
596664a728d73133e44a4566027561170c5d2ae8
[ "MIT" ]
null
null
null
Source/subcontent.py
IRIDIUM-SUB/Software-Security-Course-Design
596664a728d73133e44a4566027561170c5d2ae8
[ "MIT" ]
null
null
null
Source/subcontent.py
IRIDIUM-SUB/Software-Security-Course-Design
596664a728d73133e44a4566027561170c5d2ae8
[ "MIT" ]
null
null
null
from tkinter import * import tkintertoolbox import heapovf import Truncated import emptypointer class subwindow(object): def __init__(self): root=Tk() root.title=("DLC Content") root.resizable(width=False, height=False) self.tktool=tkintertoolbox.tkintertoolbox() ...
33.78125
99
0.666975
91f46eb403e9be49b55c85d3e6ad2846097b20e5
6,114
py
Python
fhir/lung-cancer/models/trainer/model.py
kourtneyshort/healthcare
1d1e2375304ac99f43a8b6aee7374fcdf641eb6f
[ "Apache-2.0" ]
null
null
null
fhir/lung-cancer/models/trainer/model.py
kourtneyshort/healthcare
1d1e2375304ac99f43a8b6aee7374fcdf641eb6f
[ "Apache-2.0" ]
22
2019-12-16T22:18:37.000Z
2022-03-12T00:04:43.000Z
fhir/lung-cancer/models/trainer/model.py
kourtneyshort/healthcare
1d1e2375304ac99f43a8b6aee7374fcdf641eb6f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.695187
80
0.716879
91f4a43c3061267bc920dc158a455088afa8668b
992
py
Python
alipay/aop/api/domain/AlipayCommerceOperationBrandsolutionEnrollmerchantQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayCommerceOperationBrandsolutionEnrollmerchantQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayCommerceOperationBrandsolutionEnrollmerchantQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayCommerceOperationBrandsolutionEnrollmerchantQueryModel(object): def __init__(self): self._activity_id = None @property def activity_id(self): return self._activity_...
24.195122
75
0.635081
91f4a8b427a8958b82e928d396d6ed678fd21a11
1,213
py
Python
samples/test/parameter_with_format_test.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
null
null
null
samples/test/parameter_with_format_test.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
null
null
null
samples/test/parameter_with_format_test.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1
2022-01-19T09:13:12.000Z
2022-01-19T09:13:12.000Z
# Copyright 2021 The Kubeflow 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...
31.921053
74
0.729596
91f4c6ff13ba96bee3416e4dfe4f5127815476a4
48,433
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2021_01_01/aio/operations/_recommendations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2021_01_01/aio/operations/_recommendations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2021_01_01/aio/operations/_recommendations_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.75
763
0.673838
91f4d1894f5b86a129f22724d1c12baef1fe1220
2,051
py
Python
tql/utils/time/dp.py
Jie-Yuan/1_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
14
2019-06-25T13:46:32.000Z
2020-10-27T02:04:59.000Z
tql/utils/time/dp.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
null
null
null
tql/utils/time/dp.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
7
2019-06-25T13:26:16.000Z
2020-10-27T02:05:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Project : Python. # @File : dp # @Time : 2020-03-13 10:37 # @Author : yuanjie # @Email : yuanjie@xiaomi.com # @Software : PyCharm # @Description : import time import datetime class dateprocess: # datetime 转 string def d...
27.716216
77
0.62116
91f4dfdbdd32571e94cf7b740fc56392fdb1401f
256
py
Python
missioncontrol/home/migrations/0019_remove_pass_script.py
fleetspace/missioncontrol
d7116569b689875f5d149273150c3ce4c1319cd0
[ "Apache-2.0" ]
7
2019-03-29T06:05:08.000Z
2021-07-29T07:49:49.000Z
missioncontrol/home/migrations/0019_remove_pass_script.py
fleetspace/missioncontrol
d7116569b689875f5d149273150c3ce4c1319cd0
[ "Apache-2.0" ]
18
2019-02-19T05:59:34.000Z
2021-05-18T03:05:30.000Z
missioncontrol/home/migrations/0019_remove_pass_script.py
fleetspace/missioncontrol
d7116569b689875f5d149273150c3ce4c1319cd0
[ "Apache-2.0" ]
3
2019-01-31T02:07:38.000Z
2019-08-04T14:52:02.000Z
# Generated by Django 2.1.4 on 2019-01-23 07:43 from django.db import migrations class Migration(migrations.Migration): dependencies = [("home", "0018_taskstack_pinned")] operations = [migrations.RemoveField(model_name="pass", name="script")]
23.272727
75
0.730469
91f4e53db98b90a42801c43a211189774219da61
730
py
Python
zlogging/__init__.py
JarryShaw/zlogging
f5c2bec37bc68d295cd4d9557b13d96f20a21b71
[ "BSD-3-Clause" ]
null
null
null
zlogging/__init__.py
JarryShaw/zlogging
f5c2bec37bc68d295cd4d9557b13d96f20a21b71
[ "BSD-3-Clause" ]
3
2021-03-01T17:03:05.000Z
2021-07-19T17:11:34.000Z
zlogging/__init__.py
JarryShaw/zlogging
f5c2bec37bc68d295cd4d9557b13d96f20a21b71
[ "BSD-3-Clause" ]
1
2020-05-22T15:16:44.000Z
2020-05-22T15:16:44.000Z
# -*- coding: utf-8 -*- """Bro/Zeek logging framework.""" from zlogging.dumper import dump, dumps, write from zlogging.loader import load, loads, parse from zlogging.model import Model, new_model from zlogging.types import (AddrType, BoolType, CountType, DoubleType, EnumType, IntervalType, ...
34.761905
94
0.641096
91f4f1ba5bdbc55f373c2143ac583db1649693e6
25,024
py
Python
funcparserlib/parser.py
lafrenierejm/funcparserlib
3162777144d0013aad6a0293de57ad2ca63ed4cf
[ "MIT" ]
313
2015-04-23T21:12:15.000Z
2022-03-27T03:08:15.000Z
funcparserlib/parser.py
lafrenierejm/funcparserlib
3162777144d0013aad6a0293de57ad2ca63ed4cf
[ "MIT" ]
38
2015-04-23T20:24:06.000Z
2022-02-15T22:24:28.000Z
funcparserlib/parser.py
lafrenierejm/funcparserlib
3162777144d0013aad6a0293de57ad2ca63ed4cf
[ "MIT" ]
48
2015-04-29T18:04:55.000Z
2022-02-03T04:45:00.000Z
# -*- coding: utf-8 -*- # Copyright © 2009/2021 Andrey Vlasovskikh # # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated documentation files (the "Software"), to deal in the Software # without restriction, including without limitation the rights to use, copy...
28.92948
88
0.560302
91f4f6378daa2a0029ded7d4825d3d3b548415a5
11,422
py
Python
nicos_mlz/kws1/devices/chopper.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/kws1/devices/chopper.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/kws1/devices/chopper.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
39.797909
102
0.593154
91f511d1f0b0f708e35f85d2eafd723de48d0f47
1,550
py
Python
setup.py
gregsmi/sample-metadata
f8d18c3e750475f40147097c2861cc6ffc712a2e
[ "MIT" ]
null
null
null
setup.py
gregsmi/sample-metadata
f8d18c3e750475f40147097c2861cc6ffc712a2e
[ "MIT" ]
null
null
null
setup.py
gregsmi/sample-metadata
f8d18c3e750475f40147097c2861cc6ffc712a2e
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Setup script for the Python package. Dependencies for server are listed separately in requirements.txt, dev dependencies are listed in requirements-dev.txt. """ from setuptools import setup, find_packages all_packages = ['sample_metadata'] all_packages.extend( 'sample_metadata.' + p for...
29.245283
85
0.649677
91f558dce7a6bb5d5a0f7978809634ba367e0f16
411
py
Python
tests/test_vote_apis.py
Adoniswalker/StackOverflow-lite
3679d1e8bf23aca73338e0fa9ff51de63ba85f7d
[ "MIT" ]
16
2018-08-11T13:07:07.000Z
2021-04-06T00:44:34.000Z
tests/test_vote_apis.py
PeterCHK/stackoverflow-lite
1d3e46bce494235d608fbec68925ee88b3b83513
[ "MIT" ]
13
2018-08-14T12:48:38.000Z
2021-06-01T22:31:53.000Z
tests/test_vote_apis.py
PeterCHK/stackoverflow-lite
1d3e46bce494235d608fbec68925ee88b3b83513
[ "MIT" ]
14
2018-08-10T11:05:13.000Z
2021-12-24T13:10:41.000Z
import unittest from .base import BaseTestCase class VoteApiTestCase(BaseTestCase): """ Test List votes api """ def test_votes_api(self): response = self.client.post( '/api/v1/questions/answers/vote/1', data=self.data, headers={'Authorization': 'JWT ' + self.token} ) ...
22.833333
63
0.63017
91f55c3f29029412ee5e0892bc42e95bc8d5965b
2,471
py
Python
setup.py
bdabrowski/resizer
b069ede9ec5f546e7c7999daeabc18e6411516f6
[ "MIT" ]
null
null
null
setup.py
bdabrowski/resizer
b069ede9ec5f546e7c7999daeabc18e6411516f6
[ "MIT" ]
8
2019-01-13T12:13:07.000Z
2022-03-11T23:37:52.000Z
setup.py
bdabrowski/resizer
b069ede9ec5f546e7c7999daeabc18e6411516f6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re import sys from setuptools import setup from setuptools.command.test import test as TestCommand REQUIRES = [ 'docopt', 'Pillow==5.3.0', ] TEST_REQUIRES = [ 'pytest', 'pytest-datafiles', 'invoke==0.14.0', ] extras = { 'test': TEST_REQUIRES, } class PyTest(T...
24.959596
70
0.594901
91f5a2f30018d390cb658fce11d7c4772114527f
37,246
py
Python
sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2021_11_01/operations/_disaster_recovery_configs_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2021_11_01/operations/_disaster_recovery_configs_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2021_11_01/operations/_disaster_recovery_configs_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
51.091907
262
0.670783
91f5aae8fc8eb7edaa27c2dcb9a224e35db2d9a5
4,427
py
Python
experiments/steven/disentanglement/pointmass/disentanglement_rig_spatial.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/steven/disentanglement/pointmass/disentanglement_rig_spatial.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/steven/disentanglement/pointmass/disentanglement_rig_spatial.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import os.path as osp import torch.nn.functional as F import multiworld.envs.mujoco as mwmj import rlkit.misc.hyperparameter as hyp from rlkit.launchers.launcher_util import run_experiment from rlkit.launchers.experiments.disentanglement.launcher import \ disentangled_grill_her_twin_sac_experiment from rlkit.t...
33.537879
207
0.582787
91f5fabbc1954e4d2954f084bcb940e2ae0a960e
33,550
py
Python
models/layers/model/lstmcrf.py
20000607-lxc/BERT-NER-Pytorch-master
47f2e1291ab53674986eb91abdb72693eafe9b61
[ "MIT" ]
null
null
null
models/layers/model/lstmcrf.py
20000607-lxc/BERT-NER-Pytorch-master
47f2e1291ab53674986eb91abdb72693eafe9b61
[ "MIT" ]
null
null
null
models/layers/model/lstmcrf.py
20000607-lxc/BERT-NER-Pytorch-master
47f2e1291ab53674986eb91abdb72693eafe9b61
[ "MIT" ]
null
null
null
# # @author: Allan # import torch import torch.nn as nn from typing import List, Optional from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence class NNCRF(nn.Module): def __init__(self, config, device, num_tags, batch_first=True): #super(NNCRF, self).__init__() if num_tags <= ...
53.594249
243
0.626647
91f603221a6b9a00df58e7472b05a32430f6ebbd
726
py
Python
pvlib/iotools/__init__.py
tahentx/pvlib-python
f4af87116b9bb753dcb12b02276cc4fc46b13ae6
[ "BSD-3-Clause" ]
null
null
null
pvlib/iotools/__init__.py
tahentx/pvlib-python
f4af87116b9bb753dcb12b02276cc4fc46b13ae6
[ "BSD-3-Clause" ]
null
null
null
pvlib/iotools/__init__.py
tahentx/pvlib-python
f4af87116b9bb753dcb12b02276cc4fc46b13ae6
[ "BSD-3-Clause" ]
null
null
null
from pvlib.iotools.tmy import read_tmy2 # noqa: F401 from pvlib.iotools.tmy import read_tmy3 # noqa: F401 from pvlib.iotools.epw import read_epw # noqa: F401 from pvlib.iotools.srml import read_srml # noqa: F401 from pvlib.iotools.srml import read_srml_month_from_solardat # noqa: F401 from pvlib.iotools.surfrad im...
55.846154
74
0.801653
91f60777206fed0fb3c3e159b2961e86437b317c
568
py
Python
roboai_cli/util/cli.py
NGalandim/roboai-python-cli
2e2a4c82a0294dd9a43eb85ebb452791abcba8d8
[ "MIT" ]
3
2020-10-21T11:11:28.000Z
2022-02-11T18:00:48.000Z
roboai_cli/util/cli.py
NGalandim/roboai-python-cli
2e2a4c82a0294dd9a43eb85ebb452791abcba8d8
[ "MIT" ]
35
2020-10-21T16:36:47.000Z
2021-11-04T12:45:39.000Z
roboai_cli/util/cli.py
NGalandim/roboai-python-cli
2e2a4c82a0294dd9a43eb85ebb452791abcba8d8
[ "MIT" ]
2
2020-10-13T10:48:48.000Z
2022-02-11T16:30:35.000Z
import click from halo import Halo def loading_indicator(text: str = None): return Halo(text=text, spinner="dots") def print_error(text: str, nl=True): click.secho(text, err=True, nl=nl, fg="red") def print_message(text: str, nl=True): click.echo(text, err=False, nl=nl) def print_warning(text: str, ...
21.037037
66
0.672535
91f659b028928e95a1d29f110d6c76ce40c6bdc3
35,322
py
Python
sabnzbd/sorting.py
smilers/sabnzbd
ed0e5bbf9b963113f4962e7aec297266f19d6615
[ "MIT", "PSF-2.0", "0BSD" ]
1,354
2015-01-02T11:53:23.000Z
2022-03-30T01:32:46.000Z
sabnzbd/sorting.py
smilers/sabnzbd
ed0e5bbf9b963113f4962e7aec297266f19d6615
[ "MIT", "PSF-2.0", "0BSD" ]
1,742
2015-01-01T20:17:35.000Z
2022-03-30T21:05:00.000Z
sabnzbd/sorting.py
smilers/sabnzbd
ed0e5bbf9b963113f4962e7aec297266f19d6615
[ "MIT", "PSF-2.0", "0BSD" ]
410
2015-01-24T05:32:46.000Z
2022-03-20T12:56:49.000Z
#!/usr/bin/python3 -OO # Copyright 2007-2021 The SABnzbd-Team <team@sabnzbd.org> # # 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 version 2 # of the License, or (at your option) any late...
38.561135
119
0.586971
91f6798755877b2d0d8b1d2e20eee566cda2aa24
17,106
py
Python
nn_layers.py
StephAO/caveolae_cls
c5170fefd42457609c21e6b9199c8cf7a22bcdeb
[ "MIT" ]
null
null
null
nn_layers.py
StephAO/caveolae_cls
c5170fefd42457609c21e6b9199c8cf7a22bcdeb
[ "MIT" ]
null
null
null
nn_layers.py
StephAO/caveolae_cls
c5170fefd42457609c21e6b9199c8cf7a22bcdeb
[ "MIT" ]
null
null
null
import tensorflow as tf def weight_variable(name, shape, use_xavier=True, wd=None, stddev=1e-3): """ Create an initialized weight Variable with weight decay. Args: name[string]: name of the variable shape[list of ints]: shape of variable use_xavier[bool]: whether to use xavier init...
39.689095
112
0.609494
91f6c5ddfd61b39886293168c4d13e72e1c76371
3,490
py
Python
ngraph/frontends/neon/tests/test_parameter_reuse.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
ngraph/frontends/neon/tests/test_parameter_reuse.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
ngraph/frontends/neon/tests/test_parameter_reuse.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
import pytest import numpy as np import ngraph as ng from ngraph.frontends.neon import Linear, ConvBase, Recurrent, BatchNorm, Layer, LookupTable, LSTM dummy_init = lambda axes: np.ones(axes.lengths) # TODO: Move the following *_size fixtures to conftest.py and refactor other tests to use them @pytest.fixture(param...
29.82906
98
0.707163
91f6c79bf34fa099821f33a49c37683d6e66191b
1,541
py
Python
terrascript/vultr/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/vultr/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/vultr/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/vultr/d.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class vultr_account(terrascript.Data): pass class vultr_application(terrascript.Data): pass class...
14.009091
79
0.758598