hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
acfce53c8a75ecf06215e78d7bde392f8f7ffcbb
37,497
py
Python
src/transformers/models/ctrl/modeling_tf_ctrl.py
Ravoxsg/transformers
3212a1d4a6fbded40daad7153f222c91acabe82d
[ "Apache-2.0" ]
31
2022-02-02T13:13:41.000Z
2022-03-29T08:37:20.000Z
src/transformers/models/ctrl/modeling_tf_ctrl.py
Ravoxsg/transformers
3212a1d4a6fbded40daad7153f222c91acabe82d
[ "Apache-2.0" ]
null
null
null
src/transformers/models/ctrl/modeling_tf_ctrl.py
Ravoxsg/transformers
3212a1d4a6fbded40daad7153f222c91acabe82d
[ "Apache-2.0" ]
2
2022-02-07T10:53:33.000Z
2022-02-17T10:03:01.000Z
# coding=utf-8 # Copyright 2018 Salesforce and 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 # # h...
40.890949
119
0.647065
acfce5567f616d1d98c372b468f2f012b692d23c
296
py
Python
src/plugins/oregistryrm/plugin.py
radomirklacza/C-BAS
5005cf43f57302dc0f58b9d1b9cf7e4e3ab70e32
[ "BSD-3-Clause" ]
null
null
null
src/plugins/oregistryrm/plugin.py
radomirklacza/C-BAS
5005cf43f57302dc0f58b9d1b9cf7e4e3ab70e32
[ "BSD-3-Clause" ]
null
null
null
src/plugins/oregistryrm/plugin.py
radomirklacza/C-BAS
5005cf43f57302dc0f58b9d1b9cf7e4e3ab70e32
[ "BSD-3-Clause" ]
2
2017-08-07T15:24:05.000Z
2018-10-11T10:53:23.000Z
import eisoil.core.pluginmanager as pm import oregistryexceptions from oregistryresourcemanager import ORegistryResourceManager def setup(): reg_rm = ORegistryResourceManager() pm.registerService('oregistryrm', reg_rm) pm.registerService('oregistryexceptions', oregistryexceptions)
29.6
66
0.820946
acfce62970ced19091b5d743958afbbd282f546d
3,755
py
Python
ml_code/AudioSync/hough.py
ankitshah009/Daisy_Shooter_Localization
55ebbc084e40ddc2072f24802a4b1e32cad84d9e
[ "Apache-2.0" ]
18
2019-06-03T14:19:02.000Z
2020-10-19T18:20:23.000Z
ml_code/AudioSync/hough.py
ankitshah009/Daisy_Shooter_Localization
55ebbc084e40ddc2072f24802a4b1e32cad84d9e
[ "Apache-2.0" ]
1
2019-06-22T19:49:43.000Z
2019-07-06T21:57:03.000Z
ml_code/AudioSync/hough.py
ankitshah009/Daisy_Shooter_Localization
55ebbc084e40ddc2072f24802a4b1e32cad84d9e
[ "Apache-2.0" ]
7
2019-06-22T19:45:18.000Z
2020-10-01T22:32:25.000Z
# coding=utf-8 # get hough-like transform from matching matrix import sys,os import numpy as np from ChunWai import * import warnings warnings.filterwarnings("error") class hough: def __init__(self,m,addf,keepfor): # whether to remember evidence of each diagonal. cost space self.addf = addf self.keepfor = keepfor...
38.71134
154
0.694541
acfce63d359aa8a1e888572b0e4642a85de94bfd
4,458
py
Python
__init__.py
JarbasSkills/skill-mytmovies
ed1c541c96a47c5608f25abd898ef84ec4c84279
[ "Apache-2.0" ]
null
null
null
__init__.py
JarbasSkills/skill-mytmovies
ed1c541c96a47c5608f25abd898ef84ec4c84279
[ "Apache-2.0" ]
null
null
null
__init__.py
JarbasSkills/skill-mytmovies
ed1c541c96a47c5608f25abd898ef84ec4c84279
[ "Apache-2.0" ]
null
null
null
from os.path import join, dirname from ovos_plugin_common_play.ocp import MediaType, PlaybackType from ovos_utils.log import LOG from ovos_utils.parse import fuzzy_match from ovos_workshop.skills.common_play import OVOSCommonPlaybackSkill, \ ocp_search, ocp_featured_media from youtube_archivist import YoutubeMonit...
40.527273
112
0.549349
acfce7c14144726d66f64a81c52ff4a2716fc131
697
py
Python
torchmetrics/text/__init__.py
BeyondTheProof/metrics
8af688daff819a95f4cb3d757ffc919c86072ee9
[ "Apache-2.0" ]
null
null
null
torchmetrics/text/__init__.py
BeyondTheProof/metrics
8af688daff819a95f4cb3d757ffc919c86072ee9
[ "Apache-2.0" ]
null
null
null
torchmetrics/text/__init__.py
BeyondTheProof/metrics
8af688daff819a95f4cb3d757ffc919c86072ee9
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
43.5625
74
0.767575
acfce847ca9efa954225536d2497f3c1a023b28c
7,461
py
Python
test/IECoreScene/MeshAlgoDistributePointsTest.py
aitorvfx/cortex
c0c27794fc67ccfce68b064e284747165c49ef1c
[ "BSD-3-Clause" ]
5
2015-09-13T14:49:30.000Z
2017-02-04T21:04:59.000Z
test/IECoreScene/MeshAlgoDistributePointsTest.py
aitorvfx/cortex
c0c27794fc67ccfce68b064e284747165c49ef1c
[ "BSD-3-Clause" ]
null
null
null
test/IECoreScene/MeshAlgoDistributePointsTest.py
aitorvfx/cortex
c0c27794fc67ccfce68b064e284747165c49ef1c
[ "BSD-3-Clause" ]
3
2015-02-03T17:13:40.000Z
2022-01-07T15:55:00.000Z
########################################################################## # # Copyright (c) 2011, Image Engine Design 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: # # * Redistribu...
40.548913
181
0.702185
acfce8c21e1061c4efaf5c9cb9e2140429b77b7f
2,220
py
Python
tobiko/tests/functional/podman/test_client.py
FedericoRessi/tobiko
188825386dc30197a37b7fe8be03318c73abbc48
[ "Apache-2.0" ]
1
2022-01-11T20:50:06.000Z
2022-01-11T20:50:06.000Z
tobiko/tests/functional/podman/test_client.py
FedericoRessi/tobiko
188825386dc30197a37b7fe8be03318c73abbc48
[ "Apache-2.0" ]
null
null
null
tobiko/tests/functional/podman/test_client.py
FedericoRessi/tobiko
188825386dc30197a37b7fe8be03318c73abbc48
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 Red Hat, 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 requi...
32.173913
78
0.690991
acfcea2728cac268bf86da2b357fb052631cd672
781
py
Python
nipype/interfaces/spm/__init__.py
FredLoney/nipype
ceaa28dcbfe29ca4373479c897da9fc958167ccd
[ "BSD-3-Clause" ]
null
null
null
nipype/interfaces/spm/__init__.py
FredLoney/nipype
ceaa28dcbfe29ca4373479c897da9fc958167ccd
[ "BSD-3-Clause" ]
null
null
null
nipype/interfaces/spm/__init__.py
FredLoney/nipype
ceaa28dcbfe29ca4373479c897da9fc958167ccd
[ "BSD-3-Clause" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Top-level namespace for spm.""" from .base import (Info, SPMCommand, logger, no_spm, scans_for_fname, scans_for_fnames) from .preprocess import (SliceTiming, Realign, Coregister, Norm...
52.066667
116
0.68758
acfcea50d2b16b85b8fb6b37f5019b8c98fdb71a
1,486
py
Python
nova/tests/unit/cmd/test_compute.py
zjzh/nova
7bb21723171c59b93e28f5d508c2b6df39220f13
[ "Apache-2.0" ]
1,874
2015-01-04T05:18:34.000Z
2022-03-31T03:30:28.000Z
nova/tests/unit/cmd/test_compute.py
zjzh/nova
7bb21723171c59b93e28f5d508c2b6df39220f13
[ "Apache-2.0" ]
40
2015-04-13T02:32:42.000Z
2022-02-16T02:28:06.000Z
nova/tests/unit/cmd/test_compute.py
zjzh/nova
7bb21723171c59b93e28f5d508c2b6df39220f13
[ "Apache-2.0" ]
1,996
2015-01-04T15:11:51.000Z
2022-03-31T11:03:13.000Z
# Copyright 2016 Red Hat # # 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, soft...
29.137255
79
0.711978
acfceb3b44a0f2e45928173099055b4793d4e958
13,326
py
Python
tests/test_app_routers_bond_transfer_approvals_{token_Address}_{id}_GET.py
BoostryJP/ibet-Prime
924e7f8da4f8feea0a572e8b5532e09bcdf2dc99
[ "Apache-2.0" ]
2
2021-08-19T12:35:25.000Z
2022-02-16T04:13:38.000Z
tests/test_app_routers_bond_transfer_approvals_{token_Address}_{id}_GET.py
BoostryJP/ibet-Prime
924e7f8da4f8feea0a572e8b5532e09bcdf2dc99
[ "Apache-2.0" ]
46
2021-09-02T03:22:05.000Z
2022-03-31T09:20:00.000Z
tests/test_app_routers_bond_transfer_approvals_{token_Address}_{id}_GET.py
BoostryJP/ibet-Prime
924e7f8da4f8feea0a572e8b5532e09bcdf2dc99
[ "Apache-2.0" ]
1
2021-11-17T23:18:27.000Z
2021-11-17T23:18:27.000Z
""" Copyright BOOSTRY Co., Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
38.074286
120
0.651208
acfcebdfce3827075b81171697133e56b116e19b
210
py
Python
hsm/hsm_working/doctype/biller/test_biller.py
PratikMane34/BILLS
4be47dacb213a7b5bf66dad07d1bed4794754113
[ "MIT" ]
null
null
null
hsm/hsm_working/doctype/biller/test_biller.py
PratikMane34/BILLS
4be47dacb213a7b5bf66dad07d1bed4794754113
[ "MIT" ]
null
null
null
hsm/hsm_working/doctype/biller/test_biller.py
PratikMane34/BILLS
4be47dacb213a7b5bf66dad07d1bed4794754113
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Pratik Mane and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestBiller(unittest.TestCase): pass
19.090909
50
0.757143
acfcec76e8a06a7b8cef015113b24198d6c53968
1,556
py
Python
snmpwalk/setup.py
FlorianVeaux/integrations-extras
87133d9cf2085e650b981c991a392f0bdb5ed8d0
[ "BSD-3-Clause" ]
null
null
null
snmpwalk/setup.py
FlorianVeaux/integrations-extras
87133d9cf2085e650b981c991a392f0bdb5ed8d0
[ "BSD-3-Clause" ]
3
2020-03-30T12:26:28.000Z
2021-08-25T11:58:47.000Z
snmpwalk/setup.py
FlorianVeaux/integrations-extras
87133d9cf2085e650b981c991a392f0bdb5ed8d0
[ "BSD-3-Clause" ]
1
2020-12-01T21:04:57.000Z
2020-12-01T21:04:57.000Z
from codecs import open # To use a consistent encoding from os import path from setuptools import setup HERE = path.dirname(path.abspath(__file__)) # Get version info ABOUT = {} with open(path.join(HERE, 'datadog_checks', 'snmpwalk', '__about__.py')) as f: exec(f.read(), ABOUT) # Get the long description from ...
30.509804
78
0.678021
acfcee7e32aed7d12ca964f257a8f0143b270662
208
py
Python
ifttt_price_emergency_applet.py
theintegralanomaly/cryptonite
00840c96a653df6224800e4f6c62116b37e6e005
[ "MIT" ]
null
null
null
ifttt_price_emergency_applet.py
theintegralanomaly/cryptonite
00840c96a653df6224800e4f6c62116b37e6e005
[ "MIT" ]
null
null
null
ifttt_price_emergency_applet.py
theintegralanomaly/cryptonite
00840c96a653df6224800e4f6c62116b37e6e005
[ "MIT" ]
null
null
null
import requests ifttt_webhook_url = 'https://maker.ifttt.com/trigger/stellar_price_emergency/with/key' \ '/kc78OIzFAg6W7swCRlP27VkPJuRGxgOmVKyS7869Rky ' requests.post(ifttt_webhook_url)
29.714286
88
0.759615
acfceecc371e0500ab9db6f44b97f937ccdc1558
8,630
py
Python
api_json.py
cltk/cltk_api
eb736ec9f20c008436e93cd0be4bcd05be7d455c
[ "MIT" ]
16
2015-12-07T15:05:12.000Z
2019-11-21T21:16:20.000Z
api_json.py
cltk/cltk_api
eb736ec9f20c008436e93cd0be4bcd05be7d455c
[ "MIT" ]
40
2015-11-20T16:15:25.000Z
2017-06-30T18:13:45.000Z
api_json.py
cltk/cltk_api
eb736ec9f20c008436e93cd0be4bcd05be7d455c
[ "MIT" ]
29
2015-11-22T18:53:44.000Z
2020-01-15T12:43:07.000Z
"""Open JSON file and serve.""" import json import os from flask import Flask from flask import request # for getting query string # eg: request.args.get('user') will get '?user=some-value' from flask_restful import Resource, Api from util.jsonp import jsonp from metadata.pos.views import POSTagger from metadata.ste...
33.843137
140
0.60927
acfceefd790d389a2921cb4d6ea496a0fea0d157
7,572
py
Python
analysis/make_submission_plots.py
larsbratholm/champs_kaggle
fda4f213d02fd5e0138a86c52b4140c9f94fec6e
[ "MIT" ]
9
2020-08-14T23:11:16.000Z
2021-08-09T16:23:43.000Z
analysis/make_submission_plots.py
larsbratholm/champs_kaggle
fda4f213d02fd5e0138a86c52b4140c9f94fec6e
[ "MIT" ]
1
2020-11-19T09:29:14.000Z
2020-11-19T09:29:14.000Z
analysis/make_submission_plots.py
larsbratholm/champs_kaggle
fda4f213d02fd5e0138a86c52b4140c9f94fec6e
[ "MIT" ]
2
2020-09-09T02:53:57.000Z
2020-12-06T08:20:52.000Z
""" Visualizations of the team submissions. """ import numpy as np import matplotlib.pyplot as plt import seaborn as sns import pickle import os import scipy import sklearn.manifold import sklearn.decomposition def get_variance_by_type(data, couplings, type_to_idx): n = len(type_to_idx) scores = {} for t...
37.300493
114
0.635895
acfcef2560b948dfc1837b871d326bd642b4016d
4,964
py
Python
chunonline/apps/users/migrations/0001_initial.py
andanlove/chunonline
041814777aef2bc764256892fc7dac8a0a6dde04
[ "Apache-2.0" ]
1
2019-07-07T07:32:02.000Z
2019-07-07T07:32:02.000Z
chunonline/apps/users/migrations/0001_initial.py
andanlove/chunonline
041814777aef2bc764256892fc7dac8a0a6dde04
[ "Apache-2.0" ]
null
null
null
chunonline/apps/users/migrations/0001_initial.py
andanlove/chunonline
041814777aef2bc764256892fc7dac8a0a6dde04
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0 on 2018-10-14 21:21 import datetime import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_use...
62.05
329
0.618856
acfcf0c142ed9c8f1ef08ff407f2d40129a3e2b9
901
py
Python
youtube_dl_gui/__main__.py
VaiTon/youtube-dl-gui
cbfaccdc73a1cc9a2bc04df4a2e20eeb4ca31a85
[ "Unlicense" ]
null
null
null
youtube_dl_gui/__main__.py
VaiTon/youtube-dl-gui
cbfaccdc73a1cc9a2bc04df4a2e20eeb4ca31a85
[ "Unlicense" ]
1
2019-09-04T14:34:26.000Z
2019-09-04T14:34:26.000Z
youtube_dl_gui/__main__.py
VaiTon/youtube-dl-gui
cbfaccdc73a1cc9a2bc04df4a2e20eeb4ca31a85
[ "Unlicense" ]
null
null
null
"""Youtubedlg __main__ file. __main__ file is a python 'executable' file which calls the youtubedlg main() function in order to start the app. It can be used to start the app from the package directory OR it can be used to start the app from a different directory after you have installed the youtube_dl_gui package. E...
26.5
70
0.718091
acfcf13fe9c948e46d7fca1b5e56ef447dad9472
616
py
Python
peekingduck/pipeline/nodes/dabble/trackingv1/__init__.py
ericleehy/PeekingDuck
8cf1be842235fa60bac13bc466cac09747a780ea
[ "Apache-2.0" ]
1
2021-12-02T05:15:58.000Z
2021-12-02T05:15:58.000Z
peekingduck/pipeline/nodes/dabble/trackingv1/__init__.py
ericleehy/PeekingDuck
8cf1be842235fa60bac13bc466cac09747a780ea
[ "Apache-2.0" ]
null
null
null
peekingduck/pipeline/nodes/dabble/trackingv1/__init__.py
ericleehy/PeekingDuck
8cf1be842235fa60bac13bc466cac09747a780ea
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 AI Singapore # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
38.5
74
0.75974
acfcf1ebff14edee96e385e4bc5a1b04312e392a
3,540
py
Python
qa/rpc-tests/nodehandling.py
zahidaliayub/WeyCoin
a4251e2ff53f5b6ac3122a9b6b1ffa67fe052412
[ "MIT" ]
7
2018-02-02T05:21:26.000Z
2018-08-25T08:50:53.000Z
qa/rpc-tests/nodehandling.py
zahidaliayub/WeyCoin
a4251e2ff53f5b6ac3122a9b6b1ffa67fe052412
[ "MIT" ]
3
2018-02-04T15:15:02.000Z
2018-10-30T20:34:32.000Z
qa/rpc-tests/nodehandling.py
zahidaliayub/WeyCoin
a4251e2ff53f5b6ac3122a9b6b1ffa67fe052412
[ "MIT" ]
14
2018-02-06T02:12:04.000Z
2018-07-08T18:48:21.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The WeyCoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test node handling # from test_framework.test_framework import WeyCoinTestFramework from test_framew...
41.162791
136
0.60339
acfcf2084a7b9cb80fc569d9f8f8e1fdefa24c26
7,496
py
Python
tests/app/api/business/brief_overview/conftest.py
ArenaNetworks/dto-digitalmarketplace-api
d0d58924719d889503ed112b0d5801b528b0398c
[ "MIT" ]
null
null
null
tests/app/api/business/brief_overview/conftest.py
ArenaNetworks/dto-digitalmarketplace-api
d0d58924719d889503ed112b0d5801b528b0398c
[ "MIT" ]
null
null
null
tests/app/api/business/brief_overview/conftest.py
ArenaNetworks/dto-digitalmarketplace-api
d0d58924719d889503ed112b0d5801b528b0398c
[ "MIT" ]
1
2021-08-23T06:05:06.000Z
2021-08-23T06:05:06.000Z
import mock import pendulum import pytest from flask_login import current_user from app.api.services import frameworks_service, lots_service from app.models import (Brief, BriefResponse, Framework, Lot, Supplier, User, WorkOrder, db) @pytest.fixture() def overview_briefs(app, users): now ...
26.676157
89
0.515342
acfcf3228bda514d79c3b2987616d44aa2e5d7cc
3,289
py
Python
src/Algorithm/SVRG/SVRG.py
Yutong-Dai/ML-Algorithm-Pytorch
ab0eb8fa0c9c44dbf6847f6c44feaf4f3a18ec2d
[ "MIT" ]
null
null
null
src/Algorithm/SVRG/SVRG.py
Yutong-Dai/ML-Algorithm-Pytorch
ab0eb8fa0c9c44dbf6847f6c44feaf4f3a18ec2d
[ "MIT" ]
null
null
null
src/Algorithm/SVRG/SVRG.py
Yutong-Dai/ML-Algorithm-Pytorch
ab0eb8fa0c9c44dbf6847f6c44feaf4f3a18ec2d
[ "MIT" ]
null
null
null
''' File: SVRG.py Author: Yutong Dai (yutongdai95@gmail.com) File Created: 2021-03-10 14:17 Last Modified: 2021-03-12 01:23 -------------------------------------------- Description: ''' import torch import numpy as np np.random.seed(0) device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") class SV...
41.1125
94
0.489206
acfcf3de01c43068019ffd0433952d0446ea8871
8,541
py
Python
homeassistant/components/mqtt/switch.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
null
null
null
homeassistant/components/mqtt/switch.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
3
2021-09-08T03:34:57.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/mqtt/switch.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
null
null
null
"""Support for MQTT switches.""" import logging import voluptuous as vol from homeassistant.components import mqtt, switch from homeassistant.components.switch import SwitchDevice from homeassistant.const import ( CONF_DEVICE, CONF_ICON, CONF_NAME, CONF_OPTIMISTIC, CONF_PAYLOAD_OFF, CONF_PAYLOAD_ON, CONF_VALU...
35.886555
79
0.666315
acfcf4306fbf4649dd8284ba8001bc5075bdac57
19,702
py
Python
homeassistant/components/netatmo/climate.py
csseal/core
5802d65ef71697e6627b82e1677894d13d0f16d7
[ "Apache-2.0" ]
3
2019-11-13T18:19:33.000Z
2021-07-18T11:40:37.000Z
homeassistant/components/netatmo/climate.py
csseal/core
5802d65ef71697e6627b82e1677894d13d0f16d7
[ "Apache-2.0" ]
45
2020-07-21T12:58:24.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/netatmo/climate.py
csseal/core
5802d65ef71697e6627b82e1677894d13d0f16d7
[ "Apache-2.0" ]
1
2021-11-19T19:01:57.000Z
2021-11-19T19:01:57.000Z
"""Support for Netatmo Smart thermostats.""" import logging from typing import List, Optional import voluptuous as vol from homeassistant.components.climate import ClimateEntity from homeassistant.components.climate.const import ( CURRENT_HVAC_HEAT, CURRENT_HVAC_IDLE, DEFAULT_MIN_TEMP, HVAC_MODE_AUTO,...
33.910499
88
0.615826
acfcf46ee58bb1fc74821d7eb2af1fd19442ad05
7,146
py
Python
catalyst/metrics/_auc.py
sergunya17/catalyst
f98d71138c09cd1b5a69b788cb5006115f5c7fda
[ "Apache-2.0" ]
null
null
null
catalyst/metrics/_auc.py
sergunya17/catalyst
f98d71138c09cd1b5a69b788cb5006115f5c7fda
[ "Apache-2.0" ]
null
null
null
catalyst/metrics/_auc.py
sergunya17/catalyst
f98d71138c09cd1b5a69b788cb5006115f5c7fda
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Tuple import torch from catalyst.metrics._metric import ICallbackLoaderMetric from catalyst.metrics.functional._auc import auc, binary_auc from catalyst.metrics.functional._misc import process_multilabel_components from catalyst.settings import SETTINGS from catalyst.utils import get_device f...
34.521739
94
0.586762
acfcf58e4a6bf59e77b9e7d0005e4e0f122d7d8e
2,663
py
Python
anytask/settings_local_example.py
georgy-komarov/anytask
24ffaaf62f7fd219909ad7ab42f1441f9ff6d15a
[ "MIT" ]
null
null
null
anytask/settings_local_example.py
georgy-komarov/anytask
24ffaaf62f7fd219909ad7ab42f1441f9ff6d15a
[ "MIT" ]
null
null
null
anytask/settings_local_example.py
georgy-komarov/anytask
24ffaaf62f7fd219909ad7ab42f1441f9ff6d15a
[ "MIT" ]
null
null
null
import os # Required for Django 1.5 # Set server domain(s) ALLOWED_HOSTS = ['domain.com', 'yourdoamin.ru'] # Set E-MAIL Settings # Use EMAIL_USE_SSL and EMAIL_USE_TLS vars for SSL support EMAIL_BACKEND = 'mail_smtp_ssl.EmailBackend' # SMTP Server host EMAIL_HOST = 'smtp.mailserverexample.ru' # SMTP Server port EMAI...
25.122642
117
0.749531
acfcf609250cd2d83fbd4e5f4fa6c9d993316750
1,559
py
Python
airbyte-integrations/connectors/source-github-singer/setup.py
golf-canada/airbyte
a81b183a6b62d6bb4256347aaf39a3ada061aabe
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-github-singer/setup.py
golf-canada/airbyte
a81b183a6b62d6bb4256347aaf39a3ada061aabe
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-github-singer/setup.py
golf-canada/airbyte
a81b183a6b62d6bb4256347aaf39a3ada061aabe
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2020 Airbyte Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
36.255814
86
0.746632
acfcf73941e90b7e0cd7471fabb2d6f629ca3d5f
2,738
py
Python
simple_rl/tasks/random/RandomMDPClass.py
KorlaMarch/simple_rl
30086b5cf4fd3e9dee76ddfb5ae4f565593ce191
[ "Apache-2.0" ]
1
2018-11-11T17:03:59.000Z
2018-11-11T17:03:59.000Z
simple_rl/tasks/random/RandomMDPClass.py
paultouma/simple_rl
4b90fd2f877ae8a56b3be4a3f273743e3d8fb00c
[ "Apache-2.0" ]
null
null
null
simple_rl/tasks/random/RandomMDPClass.py
paultouma/simple_rl
4b90fd2f877ae8a56b3be4a3f273743e3d8fb00c
[ "Apache-2.0" ]
null
null
null
''' RandomMDPClass.py: Contains the RandomMDPClass class. ''' # Python imports. import random import numpy as np from collections import defaultdict # Other imports. from simple_rl.mdp.MDPClass import MDP from simple_rl.tasks.random.RandomStateClass import RandomState class RandomMDP(MDP): ''' Imeplementation fo...
30.087912
127
0.621987
acfcf7caa9b6543af663223b1f616d98c430c523
7,876
py
Python
towhee/functional/mixins/column.py
jaelgu/towhee
34c79cf50831dc271ae0ab02f319f9e355c2d0bf
[ "Apache-2.0" ]
null
null
null
towhee/functional/mixins/column.py
jaelgu/towhee
34c79cf50831dc271ae0ab02f319f9e355c2d0bf
[ "Apache-2.0" ]
null
null
null
towhee/functional/mixins/column.py
jaelgu/towhee
34c79cf50831dc271ae0ab02f319f9e355c2d0bf
[ "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...
32.01626
104
0.543931
acfcfa78629c3f3aa3d98006994f150a3b2dd1cc
3,730
py
Python
h/settings.py
tgiardina/rpp-h
fece590f901b052a59c19a24acfeba52cee33c84
[ "BSD-2-Clause" ]
null
null
null
h/settings.py
tgiardina/rpp-h
fece590f901b052a59c19a24acfeba52cee33c84
[ "BSD-2-Clause" ]
null
null
null
h/settings.py
tgiardina/rpp-h
fece590f901b052a59c19a24acfeba52cee33c84
[ "BSD-2-Clause" ]
null
null
null
"""Helpers for parsing settings from the environment.""" import logging import os log = logging.getLogger(__name__) class SettingError(Exception): """Exception thrown when a setting cannot be resolved.""" pass class SettingsManager: """ Configuration setting resolver. SettingsManager resolve...
34.220183
83
0.619571
acfcfa9b57c5c060ced813bec56075dbf5efb3f1
262
py
Python
slipy/spectrum/etc/str.py
glentner/slipy-dev
db8fa6ada3ce3246879d5aae9b0f150c56c23382
[ "BSD-3-Clause" ]
null
null
null
slipy/spectrum/etc/str.py
glentner/slipy-dev
db8fa6ada3ce3246879d5aae9b0f150c56c23382
[ "BSD-3-Clause" ]
null
null
null
slipy/spectrum/etc/str.py
glentner/slipy-dev
db8fa6ada3ce3246879d5aae9b0f150c56c23382
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst # Copyright (c) Geoffrey Lentner 2016. All Rights Reserved. # slipy/spectrum/etc/str.py # TODO: etc/str.py """ """ def _str(self, *args, **kwargs): """ """ raise NotImplementedError()
20.153846
63
0.660305
acfcfab4dadd870462e7d5a529678838595cdb2d
4,193
py
Python
maskrcnn_benchmark/data/datasets/Sensing_dataset.py
Ricardozzf/maskrcnn-benchmark
409ec56a0df92623e5dd761b22cea1a45edea629
[ "MIT" ]
null
null
null
maskrcnn_benchmark/data/datasets/Sensing_dataset.py
Ricardozzf/maskrcnn-benchmark
409ec56a0df92623e5dd761b22cea1a45edea629
[ "MIT" ]
null
null
null
maskrcnn_benchmark/data/datasets/Sensing_dataset.py
Ricardozzf/maskrcnn-benchmark
409ec56a0df92623e5dd761b22cea1a45edea629
[ "MIT" ]
null
null
null
from maskrcnn_benchmark.structures.bounding_box import BoxList import os from PIL import Image import torch class SensingDataset(object): def __init__(self, ann_file, root, remove_annotations_without_images, transforms=None): # as you would do normally self.anns = [] for rootPath, _, files ...
35.533898
94
0.545433
acfcfad660e8c8b1cb698b4d4aba4b73439c6efd
4,529
py
Python
backend/api/views.py
sorablaze11/TapSearch
8197faaaf4bcbd18225d4fe049c71c59dcbca607
[ "MIT" ]
4
2019-11-23T16:27:13.000Z
2020-03-08T06:47:49.000Z
backend/api/views.py
sorablaze11/TapSearch
8197faaaf4bcbd18225d4fe049c71c59dcbca607
[ "MIT" ]
8
2020-06-06T00:57:12.000Z
2022-02-26T20:32:57.000Z
backend/api/views.py
sorablaze11/TapSearch
8197faaaf4bcbd18225d4fe049c71c59dcbca607
[ "MIT" ]
3
2020-03-08T21:25:44.000Z
2021-06-06T13:48:09.000Z
from rest_framework.decorators import api_view from rest_framework.response import Response import re class Appearance: """ Represents the appearance of a term in a given document, along with the frequency of appearances in the same one. """ def __init__(self, docId, frequency): self.docId...
27.448485
96
0.571649
acfcfb31da45054af1be9e629bfa3df1de7e1884
3,209
py
Python
tests/test_decorators/test_version_check.py
p-sherratt/shellfoundry
d1f35a31123b9e701c801345fb633b6fda5420b7
[ "Apache-2.0" ]
null
null
null
tests/test_decorators/test_version_check.py
p-sherratt/shellfoundry
d1f35a31123b9e701c801345fb633b6fda5420b7
[ "Apache-2.0" ]
1
2021-03-25T23:21:02.000Z
2021-03-25T23:21:02.000Z
tests/test_decorators/test_version_check.py
p-sherratt/shellfoundry
d1f35a31123b9e701c801345fb633b6fda5420b7
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import unittest import StringIO from mock import patch from click import Abort from shellfoundry.decorators import shellfoundry_version_check @shellfoundry_version_check(abort_if_major=False) def test_me_do_not_abort(): print('vido', end='') @shellfoundry_version_check(ab...
43.364865
152
0.715488
acfcfc825d69cee3ad733800bc7c47b148c9fc52
886
py
Python
src/hub/dataload/sources/ensembl_protists/dump.py
mlebeur/mygene.info
e71ca89c2b1c546c260101286ad5419503fd6653
[ "Apache-2.0" ]
78
2017-05-26T08:38:25.000Z
2022-02-25T08:55:31.000Z
src/hub/dataload/sources/ensembl_protists/dump.py
mlebeur/mygene.info
e71ca89c2b1c546c260101286ad5419503fd6653
[ "Apache-2.0" ]
105
2017-05-18T21:57:13.000Z
2022-03-18T21:41:47.000Z
src/hub/dataload/sources/ensembl_protists/dump.py
mlebeur/mygene.info
e71ca89c2b1c546c260101286ad5419503fd6653
[ "Apache-2.0" ]
19
2017-06-12T18:31:54.000Z
2021-11-10T00:04:43.000Z
import os from ftplib import FTP from config import DATA_ARCHIVE_ROOT, logger as logging from biothings.utils.dataload import tab2list from biothings.utils.common import is_int from hub.dataload.sources.ensembl.dump import GenericBioMart, XML_QUERY_TEMPLATE class EnsemblProtistsBioMart(GenericBioMart): SRC_NAME =...
35.44
116
0.767494
acfcfea44306c11e49bb966a943b41c90553d83a
20,736
py
Python
tensorflow_probability/python/distributions/quantized_distribution.py
mjul/tensorflow-probability
c733f06bccceb983f3e9db8e6e3c98b3bd4d23c9
[ "Apache-2.0" ]
1
2020-04-13T12:31:12.000Z
2020-04-13T12:31:12.000Z
tensorflow_probability/python/distributions/quantized_distribution.py
mjul/tensorflow-probability
c733f06bccceb983f3e9db8e6e3c98b3bd4d23c9
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/quantized_distribution.py
mjul/tensorflow-probability
c733f06bccceb983f3e9db8e6e3c98b3bd4d23c9
[ "Apache-2.0" ]
1
2020-05-27T19:42:06.000Z
2020-05-27T19:42:06.000Z
# Copyright 2018 The TensorFlow Probability 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 o...
36
85
0.650125
acfd024b1292b1e82203f1b9c497af1e21cbd0e9
2,445
py
Python
unused/simple.py
philip-h-dye/docpt-parser
abb5ea6566dac4cb77851d0cff69ed4aca3b804b
[ "MIT" ]
2
2021-05-01T02:34:05.000Z
2022-02-13T06:41:36.000Z
unused/simple.py
philip-h-dye/docpt-parser
abb5ea6566dac4cb77851d0cff69ed4aca3b804b
[ "MIT" ]
null
null
null
unused/simple.py
philip-h-dye/docpt-parser
abb5ea6566dac4cb77851d0cff69ed4aca3b804b
[ "MIT" ]
null
null
null
import parsimonious #------------------------------------------------------------------------------ if False : import sys print(': import paths') for path in sys.path : print(path) print(': - - - - -') print('') sys.stdout.flush() #-------------------------------------------------------...
30.949367
86
0.539059
acfd0252c322c56b38ed9581f0300b05eab1a400
52,730
py
Python
database/support/mysql-connector-python-2.1.3/tests/test_cursor.py
aprilsanchez/ictf-framework
2d37b5632b8ca8a4d90a9d84d689a023d19033cf
[ "BSD-2-Clause-FreeBSD" ]
110
2020-04-01T02:27:38.000Z
2022-03-01T16:17:48.000Z
database/support/mysql-connector-python-2.1.3/tests/test_cursor.py
aprilsanchez/ictf-framework
2d37b5632b8ca8a4d90a9d84d689a023d19033cf
[ "BSD-2-Clause-FreeBSD" ]
40
2020-03-31T23:30:47.000Z
2022-03-12T00:20:57.000Z
database/support/mysql-connector-python-2.1.3/tests/test_cursor.py
aprilsanchez/ictf-framework
2d37b5632b8ca8a4d90a9d84d689a023d19033cf
[ "BSD-2-Clause-FreeBSD" ]
19
2020-04-12T19:17:22.000Z
2022-03-07T17:03:25.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved. # MySQL Connector/Python is licensed under the terms of the GPLv2 # <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most # MySQL Connectors. There are special exceptions to the terms and # conditions of...
36.491349
80
0.574303
acfd033cbdfce94e043baacb829129a1c9bbb735
8,872
py
Python
server/tests/util/test_file_parser.py
drankye/recordservice
ced33a1565b7ab3a25f6cb7cdcf623a26e7b3ec0
[ "Apache-2.0" ]
null
null
null
server/tests/util/test_file_parser.py
drankye/recordservice
ced33a1565b7ab3a25f6cb7cdcf623a26e7b3ec0
[ "Apache-2.0" ]
null
null
null
server/tests/util/test_file_parser.py
drankye/recordservice
ced33a1565b7ab3a25f6cb7cdcf623a26e7b3ec0
[ "Apache-2.0" ]
2
2019-09-22T07:59:28.000Z
2021-02-25T21:56:07.000Z
# Copyright (c) 2012 Cloudera, Inc. All rights reserved. # # This module is used for common utilities related to parsing test files import collections import codecs import logging import re from collections import defaultdict from os.path import isfile, isdir from tests.common.test_dimensions import TableFormatInfo LO...
40.884793
90
0.701533
acfd043094feadc50954a4bbb4c2030bbf002435
12,797
py
Python
swagger_client/models/post_ont.py
parzingis/corpy
638dedb3eaa619046d3c3fb9652f9e82800a8557
[ "Apache-2.0" ]
null
null
null
swagger_client/models/post_ont.py
parzingis/corpy
638dedb3eaa619046d3c3fb9652f9e82800a8557
[ "Apache-2.0" ]
null
null
null
swagger_client/models/post_ont.py
parzingis/corpy
638dedb3eaa619046d3c3fb9652f9e82800a8557
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ ORR API Documentation The main ORR documentation is located at: https://mmisw.org/orrdoc/ __Please note__: - The ORR API is approaching a stable version but is still work in progress. Please [let us know](https://github.com/mmisw/mmiorr-docs/issues) if you have any questions or sugges...
31.519704
1,710
0.600375
acfd04f5ca72966fe3d7f94292c4f47d996e6ecc
6,855
py
Python
code/Python/poisson.py
anemptyarchive/Probability-Distribution
c44d1079051c0e079c4f009e6fb2d7e1d7b61011
[ "MIT" ]
null
null
null
code/Python/poisson.py
anemptyarchive/Probability-Distribution
c44d1079051c0e079c4f009e6fb2d7e1d7b61011
[ "MIT" ]
null
null
null
code/Python/poisson.py
anemptyarchive/Probability-Distribution
c44d1079051c0e079c4f009e6fb2d7e1d7b61011
[ "MIT" ]
null
null
null
# ポアソン分布 # 利用するライブラリ import numpy as np from scipy.stats import poisson # ポアソン分布 from scipy.special import gamma, loggamma # ガンマ関数, 対数ガンマ関数 import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation #%% ### 確率の計算 # パラメータを指定 lmd = 4.0 # 確率変数の値を指定 x = 2.0 # 定義式により確率を計算 prob = lmd**x / gamma(x +...
23.237288
148
0.646389
acfd05866abfa666181cc752925739a0dea67dc9
2,045
py
Python
V2/adb.py
seb97979797/Rok
767b8d8a4f5a9df2d11007732b01e41008e38c59
[ "MIT" ]
63
2021-02-25T13:00:19.000Z
2022-03-29T21:18:47.000Z
adb.py
aDwCarrazzone/Rise-of-Kingdoms-Bot
51c39501ea038037df7a63067cfb3b65b5f67847
[ "MIT" ]
93
2021-02-27T10:03:15.000Z
2022-03-30T07:29:34.000Z
adb.py
aDwCarrazzone/Rise-of-Kingdoms-Bot
51c39501ea038037df7a63067cfb3b65b5f67847
[ "MIT" ]
35
2021-03-12T07:23:29.000Z
2022-03-13T15:04:06.000Z
from ppadb.client import Client as PPADBClient from utils import resource_path from utils import build_command from filepath.file_relative_paths import FilePaths import subprocess import traceback bridge = None class Adb: def __init__(self, host='127.0.0.1', port=5037): self.client = PPADBClient(host, ...
32.983871
107
0.630807
acfd05975854b10643e07f66d8e0b7caae2d1bd4
4,907
py
Python
PYTHON/python-datastructures/algorithms/algorithms/graph/maximum_flow.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
11
2021-02-18T04:53:44.000Z
2022-01-16T10:57:39.000Z
PYTHON/python-datastructures/algorithms/algorithms/graph/maximum_flow.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
162
2021-03-09T01:52:11.000Z
2022-03-12T01:09:07.000Z
PYTHON/python-datastructures/algorithms/algorithms/graph/maximum_flow.py
Web-Dev-Collaborative/DS-ALGO-OFFICIAL
6d7195d33c28a0fe22f12231efffb39f4bf05c97
[ "Apache-2.0" ]
8
2021-02-18T05:12:34.000Z
2022-03-06T19:02:14.000Z
""" Given the capacity, source and sink of a graph, computes the maximum flow from source to sink. Input : capacity, source, sink Output : maximum flow from source to sink Capacity is a two-dimensional array that is v*v. capacity[i][j] implies the capacity of the edge from i to j. If there is no edge from i to j, capac...
31.455128
88
0.53495
acfd059cdca7a6de4f1774f9dba8b62de69e7097
14,659
py
Python
lib/flows/general/registry_test.py
darrenbilby/grr
aa8628b15d197f8c4541d1d24b76715bdddcac44
[ "Apache-2.0" ]
1
2015-01-07T05:29:57.000Z
2015-01-07T05:29:57.000Z
lib/flows/general/registry_test.py
darrenbilby/grr
aa8628b15d197f8c4541d1d24b76715bdddcac44
[ "Apache-2.0" ]
null
null
null
lib/flows/general/registry_test.py
darrenbilby/grr
aa8628b15d197f8c4541d1d24b76715bdddcac44
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- mode: python; encoding: utf-8 -*- """Tests for the registry flows.""" from grr.lib import action_mocks from grr.lib import aff4 from grr.lib import flags from grr.lib import rdfvalue from grr.lib import test_lib from grr.lib.flows.general import file_finder # pylint: disable=unused-import ...
40.271978
80
0.684426
acfd06aaf00363ad811792f888488cc57ca24ff2
3,231
py
Python
BiomechData.py
DrDanParker/Biomechanical-Pandas
627fef4481e5af3e05894bd0096fc1862697a906
[ "MIT" ]
1
2018-12-31T11:59:55.000Z
2018-12-31T11:59:55.000Z
BiomechData.py
DrDanParker/Biomechanical-Pandas
627fef4481e5af3e05894bd0096fc1862697a906
[ "MIT" ]
null
null
null
BiomechData.py
DrDanParker/Biomechanical-Pandas
627fef4481e5af3e05894bd0096fc1862697a906
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """############################################################################ ### ### Biomechanical Pandas Data Handling ### This file is part of Biomechanical-Pandas ### This file was created by Dr Daniel Parker on 23/12/18 ### Twitter: @DrDanParker GitHub:https://github.com/DrDanPark...
34.741935
91
0.516249
acfd0705bd9b70723abcaea2d5f9da7ab756c263
914
py
Python
kaffepause/relationships/exceptions.py
Eirsteir/kaffepause
77535f057e68d575831e3a44f36285ab2fe621d4
[ "MIT" ]
null
null
null
kaffepause/relationships/exceptions.py
Eirsteir/kaffepause
77535f057e68d575831e3a44f36285ab2fe621d4
[ "MIT" ]
2
2022-02-28T21:04:22.000Z
2022-03-01T21:05:37.000Z
kaffepause/relationships/exceptions.py
Eirsteir/kaffepause
77535f057e68d575831e3a44f36285ab2fe621d4
[ "MIT" ]
null
null
null
from django.utils.translation import gettext_lazy as _ from kaffepause.common.exceptions import DefaultError class RelationshipAlreadyExists(DefaultError): default_message = _("This relationship already exists") class CannotAcceptFriendRequest(DefaultError): default_message = _("You cannot accept this frie...
28.5625
77
0.78884
acfd09ef5fa7e3282c39965b4456b2e3b417c85a
621
py
Python
rplugin/python3/denite/filter/sorter/reverse.py
hiberabyss/denite.nvim
54242329c9e7c10d044137fad23082b982313cba
[ "MIT" ]
null
null
null
rplugin/python3/denite/filter/sorter/reverse.py
hiberabyss/denite.nvim
54242329c9e7c10d044137fad23082b982313cba
[ "MIT" ]
null
null
null
rplugin/python3/denite/filter/sorter/reverse.py
hiberabyss/denite.nvim
54242329c9e7c10d044137fad23082b982313cba
[ "MIT" ]
null
null
null
# ============================================================================ # FILE: sorter/reverse.py # AUTHOR: Jacob Niehus <jacob.niehus at gmail.com> # DESCRIPTION: Simple filter to reverse the order of candidates # License: MIT license # ===========================================================================...
29.571429
78
0.515298
acfd0c38a83a77cb0b98b7af3686457464b32707
8,658
py
Python
P7/dsa_heap_test.py
MC-DeltaT/DSA-Practicals
5c77cac1cfee5d756b84722e563813c153486770
[ "MIT" ]
null
null
null
P7/dsa_heap_test.py
MC-DeltaT/DSA-Practicals
5c77cac1cfee5d756b84722e563813c153486770
[ "MIT" ]
null
null
null
P7/dsa_heap_test.py
MC-DeltaT/DSA-Practicals
5c77cac1cfee5d756b84722e563813c153486770
[ "MIT" ]
null
null
null
from dsa_heap import DSAHeap, _trickle_down, _trickle_up, heapify, heapsort from collections import defaultdict from itertools import takewhile import random from typing import DefaultDict, List, Sequence import unittest class DSAHeapToolsTest(unittest.TestCase): TEST_SIZE = 1000 def test_trickle_down_1(sel...
30.272727
79
0.556826
acfd0c81f25ddc7b2567e9e5517e5f07b9e25908
12,399
py
Python
latextools/convert.py
cduck/latextools
8161acc88d669951b2b5e1e3e6888b9fc918b49a
[ "MIT" ]
13
2020-06-02T22:57:13.000Z
2022-03-26T23:07:27.000Z
latextools/convert.py
cduck/latextools
8161acc88d669951b2b5e1e3e6888b9fc918b49a
[ "MIT" ]
3
2021-06-03T14:38:17.000Z
2022-02-28T23:05:48.000Z
latextools/convert.py
cduck/latextools
8161acc88d669951b2b5e1e3e6888b9fc918b49a
[ "MIT" ]
2
2020-08-19T05:44:23.000Z
2021-06-03T01:56:48.000Z
import base64 from pathlib import Path import subprocess import tempfile import re import urllib import fs from .project import LatexProject, LatexError from .package import LatexPackage from .content import BasicContent from .document import DocumentConfig from .command import LatexCommand svg_packages = ( Lat...
37.234234
80
0.551012
acfd0d71e37766c87adbd570ac13e81026326434
18,884
py
Python
impacket/krb5/ccache.py
milkdevil/impacket
5813a5f4527460b9c9b87175f528d5d366e0436b
[ "Apache-1.1" ]
109
2017-12-31T07:43:03.000Z
2022-02-15T16:27:29.000Z
impacket/krb5/ccache.py
jppgibbs/Aegis
feac08cd3935569057e75531fe80bd0e1f982a93
[ "MIT" ]
8
2017-12-31T01:45:54.000Z
2021-06-08T19:35:58.000Z
impacket/krb5/ccache.py
jppgibbs/Aegis
feac08cd3935569057e75531fe80bd0e1f982a93
[ "MIT" ]
42
2018-01-02T14:31:13.000Z
2021-11-27T14:08:08.000Z
# Copyright (c) 2003-2016 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # Author: Alberto Solino (@agsolino) # # Description: # Kerberos Credential Cache format implementati...
36.107075
121
0.585575
acfd0dd91e56d7cda21c5318425ca17321309644
5,179
py
Python
zaphod/plugins/nagios.py
snapiri/zaphod
c96f73a28f50ac3062ad32dfd73bc13f3e8648f8
[ "Apache-2.0" ]
null
null
null
zaphod/plugins/nagios.py
snapiri/zaphod
c96f73a28f50ac3062ad32dfd73bc13f3e8648f8
[ "Apache-2.0" ]
4
2019-02-10T15:18:34.000Z
2019-02-20T08:27:31.000Z
zaphod/plugins/nagios.py
snapiri/zaphod
c96f73a28f50ac3062ad32dfd73bc13f3e8648f8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Copyright (C) 2020 Shachar Snapiri # # 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 la...
29.936416
76
0.633906
acfd0e1687d31e0dff2562d860770fd5bff1f727
2,412
py
Python
app/app.py
robmarkcole/python-fastapi-aws-lambda-container
56a676f4c0bccce10fd2533daba3ace0201a1bb3
[ "Apache-2.0" ]
null
null
null
app/app.py
robmarkcole/python-fastapi-aws-lambda-container
56a676f4c0bccce10fd2533daba3ace0201a1bb3
[ "Apache-2.0" ]
null
null
null
app/app.py
robmarkcole/python-fastapi-aws-lambda-container
56a676f4c0bccce10fd2533daba3ace0201a1bb3
[ "Apache-2.0" ]
null
null
null
import uuid import uvicorn from fastapi import FastAPI, HTTPException from mangum import Mangum from app.routes import helloworld_router from app.monitoring import logging_config from app.middlewares.correlation_id_middleware import CorrelationIdMiddleware from app.middlewares.logging_middleware import LoggingMiddlew...
47.294118
97
0.393449
acfd0e63d0efc6315e7bd005df99d7d3eeb89f53
2,983
py
Python
sdk/python/pulumi_azure_nextgen/eventgrid/v20190101/get_event_subscription_full_url.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/eventgrid/v20190101/get_event_subscription_full_url.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/eventgrid/v20190101/get_event_subscription_full_url.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
45.19697
669
0.728797
acfd0e9307c3e2902509906f2356d3a66e177cad
7,156
py
Python
homeassistant/components/media_player/mpd.py
TastyPi/home-assistant
aa1e4c564cb8660bf6b7637bc25317ee58869214
[ "MIT" ]
13
2017-02-01T13:25:34.000Z
2022-01-26T01:30:39.000Z
homeassistant/components/media_player/mpd.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
9
2017-07-26T18:05:32.000Z
2021-12-05T14:16:34.000Z
homeassistant/components/media_player/mpd.py
1Forward1Back/home-assistant
ce24ef0c20dea0fd671d6f2c2a8b1456b4b66ba6
[ "MIT" ]
21
2017-07-26T17:09:40.000Z
2022-03-27T22:37:22.000Z
""" Support to interact with a Music Player Daemon. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/media_player.mpd/ """ import logging import socket import voluptuous as vol from homeassistant.components.media_player import ( MEDIA_TYPE_MUSIC, SUP...
30.322034
75
0.633315
acfd0ef99e1e9dc2e45af65c9c0e7d6374251c51
2,672
py
Python
fp/fp.py
LarsKue/free-proxy
b7534b342c6a47c95b4bf81645ed8a1db7b455a8
[ "MIT" ]
null
null
null
fp/fp.py
LarsKue/free-proxy
b7534b342c6a47c95b4bf81645ed8a1db7b455a8
[ "MIT" ]
null
null
null
fp/fp.py
LarsKue/free-proxy
b7534b342c6a47c95b4bf81645ed8a1db7b455a8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import random import sys import lxml.html as lh import requests class FreeProxy: def __init__(self, country_id=None, timeout=0.5, rand=False, anonym=False): self.country_id = [] if country_id is None else country_id self.timeout = timeout self.random = rand ...
41.107692
158
0.567365
acfd10b0e206b2a0cc8a04289ead44056c029606
8,305
py
Python
jishaku/features/python.py
mrvillage/jishaku
7cad064e1312e4a2fa34f907db3162af8b292154
[ "MIT" ]
2
2022-02-01T16:03:21.000Z
2022-02-03T06:21:03.000Z
jishaku/features/python.py
mrvillage/jishaku
7cad064e1312e4a2fa34f907db3162af8b292154
[ "MIT" ]
null
null
null
jishaku/features/python.py
mrvillage/jishaku
7cad064e1312e4a2fa34f907db3162af8b292154
[ "MIT" ]
1
2021-12-16T03:32:52.000Z
2021-12-16T03:32:52.000Z
# -*- coding: utf-8 -*- """ jishaku.features.python ~~~~~~~~~~~~~~~~~~~~~~~~ The jishaku Python evaluation/execution commands. :copyright: (c) 2021 Devon (Gorialis) R :license: MIT, see LICENSE for more details. """ import io import discord from discord.ext import commands from jishaku.codeblocks import codebloc...
37.075893
124
0.59422
acfd10d9aa8f4f9b366392555d9dd10b0afdc08c
971
py
Python
tectosaur/fmm/surrounding_surf.py
jlmaurer/tectosaur
7cc5606d814f061395b19754e7a4b6c5e4c236e5
[ "MIT" ]
17
2017-06-29T16:48:56.000Z
2021-10-03T18:31:41.000Z
tectosaur/fmm/surrounding_surf.py
jlmaurer/tectosaur
7cc5606d814f061395b19754e7a4b6c5e4c236e5
[ "MIT" ]
4
2018-05-29T08:21:13.000Z
2021-04-01T01:28:50.000Z
tectosaur/fmm/surrounding_surf.py
jlmaurer/tectosaur
7cc5606d814f061395b19754e7a4b6c5e4c236e5
[ "MIT" ]
8
2019-06-10T22:19:40.000Z
2022-01-12T20:55:37.000Z
import numpy as np def surrounding_surf_circle(order): pts = np.empty((order, 2)) for i in range(order): theta = i * 2 * np.pi / order pts[i,0] = np.cos(theta) pts[i,1] = np.sin(theta) return pts def surrounding_surf_sphere(order): pts = [] a = 4 * np.pi / order; d = n...
27.742857
64
0.53862
acfd115e1a022ccd902dfe8620246184c00d4779
922
py
Python
HACKERRANK_Challenges/recursive_digitSum.py
StefaniaSferragatta/ADM2020-HW1
8f85ac1c8dd4bff52c5c17987c9e96b209a93830
[ "MIT" ]
null
null
null
HACKERRANK_Challenges/recursive_digitSum.py
StefaniaSferragatta/ADM2020-HW1
8f85ac1c8dd4bff52c5c17987c9e96b209a93830
[ "MIT" ]
null
null
null
HACKERRANK_Challenges/recursive_digitSum.py
StefaniaSferragatta/ADM2020-HW1
8f85ac1c8dd4bff52c5c17987c9e96b209a93830
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the superDigit function below. def superDigit(n, k): len_num = len(n) if len_num != 1: digit_sum = 0 for elem in n: #for every digit (element) in n #calculate the superdigit that is equal to the super di...
30.733333
109
0.638829
acfd11a17d4dc4f3872d26130bd48e9e3a54f027
3,702
py
Python
demo/try_ngram_shortest_bak.py
Li-Ming-Fan/Zhong
0447da1a7c58c5bfcc6295ec9615b3874068c3a2
[ "MIT" ]
1
2019-10-11T13:03:50.000Z
2019-10-11T13:03:50.000Z
demo/try_ngram_shortest_bak.py
Li-Ming-Fan/Zhong
0447da1a7c58c5bfcc6295ec9615b3874068c3a2
[ "MIT" ]
null
null
null
demo/try_ngram_shortest_bak.py
Li-Ming-Fan/Zhong
0447da1a7c58c5bfcc6295ec9615b3874068c3a2
[ "MIT" ]
null
null
null
from nltk.util import bigrams, trigrams from nltk.text import Text from nltk import FreqDist from functools import reduce from bidict import bidict import numpy as np corpus = [ '<begin> 小鸟 声音 不大 , 却 句 句 在理 , 全场 都 静静 恭听。 <end>', '<begin> 他 说 : “ 神 是否 创造 世界 ,即 神 对 世界 的 关系 如何 ,这个 问题 其实 就是 关于 精神 对 感性 一般 或 抽象 对 实在...
27.021898
341
0.560508
acfd11fa6b17f184f5fd60697252c5ab820ad72e
3,177
py
Python
punctuator/play_with_model.py
audapolis/punctuator2
b91b4fd5d19debb4af3d52b564ad8ffa2a8c75b7
[ "MIT" ]
null
null
null
punctuator/play_with_model.py
audapolis/punctuator2
b91b4fd5d19debb4af3d52b564ad8ffa2a8c75b7
[ "MIT" ]
null
null
null
punctuator/play_with_model.py
audapolis/punctuator2
b91b4fd5d19debb4af3d52b564ad8ffa2a8c75b7
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import division, print_function import models import data import aesara import sys from io import open import aesara.tensor as T import numpy as np # pylint: disable=redefined-outer-name def to_array(arr, dtype=np.int32): # minibatch of 1 sequence as column return np.array...
27.626087
151
0.627321
acfd132705216e37d76d0a4ac54318603dc0e054
574
py
Python
FlaskRESTFULAPITest_JE/venv/Lib/site-packages/werkzeug/middleware/__init__.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
2
2022-01-06T11:52:57.000Z
2022-01-09T01:53:56.000Z
FlaskRESTFULAPITest_JE/venv/Lib/site-packages/werkzeug/middleware/__init__.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
FlaskRESTFULAPITest_JE/venv/Lib/site-packages/werkzeug/middleware/__init__.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
""" Middleware ========== A WSGI middleware is a WSGI application that wraps another application in order to observe or change its behavior. Werkzeug provides some middleware for common use cases. .. toctree:: :maxdepth: 1 proxy_fix shared_data dispatcher http_proxy lint p...
22.076923
71
0.696864
acfd1391f3524db4a4cf7962476592cfcf69b419
5,994
py
Python
nic/datapreparation/data.py
StiliyanDr/neural-image-caption
26135abc917242388d1e8d4622af0585a8dd966d
[ "MIT" ]
null
null
null
nic/datapreparation/data.py
StiliyanDr/neural-image-caption
26135abc917242388d1e8d4622af0585a8dd966d
[ "MIT" ]
null
null
null
nic/datapreparation/data.py
StiliyanDr/neural-image-caption
26135abc917242388d1e8d4622af0585a8dd966d
[ "MIT" ]
null
null
null
import os import numpy as np import tensorflow as tf from nic.datapreparation import utils def load_data(path, type, load_as_features=True): """ :param path: a str - the path of the directory storing the preprocessed data. :param type: a str - the type of data to load. Possible values: 'train', ...
32.053476
72
0.642976
acfd13d3aa219635794a293b557c76ee55084b3a
2,372
py
Python
models/custom_resnet.py
a-pujahari/Torch_CV_Utils
9b8e7e0186af2244c5589a5ca81ab644f8663303
[ "MIT" ]
null
null
null
models/custom_resnet.py
a-pujahari/Torch_CV_Utils
9b8e7e0186af2244c5589a5ca81ab644f8663303
[ "MIT" ]
null
null
null
models/custom_resnet.py
a-pujahari/Torch_CV_Utils
9b8e7e0186af2244c5589a5ca81ab644f8663303
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class Custom_ResNet(nn.Module): def __init__(self): super(Custom_ResNet, self).__init__() self.prep_layer = nn.Sequential( nn.Conv2d(3, 64, kernel_size=3, stride=1, padding=1, bias=False), nn.BatchNo...
35.402985
132
0.561551
acfd1543d2e93e22b358207172f4f74c73ff2568
8,503
py
Python
src/osducli/config.py
equinor/osdu-cli
579922556925ea7ad759a6230498378cf724b445
[ "MIT" ]
3
2021-08-19T05:59:39.000Z
2021-11-10T08:02:58.000Z
src/osducli/config.py
equinor/osdu-cli
579922556925ea7ad759a6230498378cf724b445
[ "MIT" ]
2
2021-09-13T11:10:15.000Z
2021-11-25T13:21:54.000Z
src/osducli/config.py
equinor/osdu-cli
579922556925ea7ad759a6230498378cf724b445
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------- # Copyright (c) Equinor ASA. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ----------------------------------------------------------------------------- """Read and ...
35.877637
104
0.663766
acfd15c4d3365e3115fd72db74f203e92c3b4ade
463
py
Python
data/scripts/templates/object/draft_schematic/chemistry/shared_medpack_enhance_health_b.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/draft_schematic/chemistry/shared_medpack_enhance_health_b.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/draft_schematic/chemistry/shared_medpack_enhance_health_b.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Intangible() result.template = "object/draft_schematic/chemistry/shared_medpack_enhance_health_b.iff" result.attr...
27.235294
89
0.736501
acfd160f371f10466a3d2d1245a9ce44fdb2a65c
11,963
py
Python
api/barriers/serializers/public_barriers.py
uktrade/market-access-api
850a59880f8f62263784bcd9c6b3362e447dbc7a
[ "MIT" ]
null
null
null
api/barriers/serializers/public_barriers.py
uktrade/market-access-api
850a59880f8f62263784bcd9c6b3362e447dbc7a
[ "MIT" ]
51
2018-05-31T12:16:31.000Z
2022-03-08T09:36:48.000Z
api/barriers/serializers/public_barriers.py
uktrade/market-access-api
850a59880f8f62263784bcd9c6b3362e447dbc7a
[ "MIT" ]
2
2019-12-24T09:47:42.000Z
2021-02-09T09:36:51.000Z
from hashid_field.rest import HashidSerializerCharField from rest_framework import serializers from api.barriers.fields import ( DisplayChoiceField, NoneToBlankCharField, ReadOnlyAllSectorsField, ReadOnlyCategoriesField, ReadOnlyCountryField, ReadOnlySectorsField, ReadOnlyStatusField, R...
33.509804
85
0.630862
acfd16d63737a1b31d63f9c0feb4f2d0ac479798
490
py
Python
doctor_app/migrations/0006_auto_20200811_0039.py
JuliasBright/SendMoney
d13e2df81bf75a9154abfc57d897a416b4950e80
[ "CC0-1.0" ]
1
2021-01-29T16:57:42.000Z
2021-01-29T16:57:42.000Z
doctor_app/migrations/0006_auto_20200811_0039.py
JuliasBright/SendMoney
d13e2df81bf75a9154abfc57d897a416b4950e80
[ "CC0-1.0" ]
null
null
null
doctor_app/migrations/0006_auto_20200811_0039.py
JuliasBright/SendMoney
d13e2df81bf75a9154abfc57d897a416b4950e80
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.0.8 on 2020-08-10 19:09 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('doctor_app', '0005_auto_20200811_0037'), ] operations = [ migrations.AlterField( model_name='docto...
24.5
110
0.604082
acfd16fb74922d0ae51e30c58a31661466577f50
67,276
py
Python
core/domain/skill_services_test.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
4
2021-09-16T16:46:53.000Z
2022-02-06T13:00:14.000Z
core/domain/skill_services_test.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
80
2020-10-31T09:14:46.000Z
2021-01-12T23:38:15.000Z
core/domain/skill_services_test.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
1
2020-10-02T13:28:26.000Z
2020-10-02T13:28:26.000Z
# Copyright 2018 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
41.864343
80
0.616342
acfd1708ebe44a51913b8818c4064ed549a110b5
27
py
Python
airbyte-integrations/bases/base-python/base_python/cdk/utils/__init__.py
rajatariya21/airbyte
11e70a7a96e2682b479afbe6f709b9a5fe9c4a8d
[ "MIT" ]
6,215
2020-09-21T13:45:56.000Z
2022-03-31T21:21:45.000Z
airbyte-integrations/bases/base-python/base_python/cdk/utils/__init__.py
rajatariya21/airbyte
11e70a7a96e2682b479afbe6f709b9a5fe9c4a8d
[ "MIT" ]
8,448
2020-09-21T00:43:50.000Z
2022-03-31T23:56:06.000Z
airbyte-integrations/bases/base-python/base_python/cdk/utils/__init__.py
rajatariya21/airbyte
11e70a7a96e2682b479afbe6f709b9a5fe9c4a8d
[ "MIT" ]
1,251
2020-09-20T05:48:47.000Z
2022-03-31T10:41:29.000Z
# Initialize Utils Package
13.5
26
0.814815
acfd1787fb24f862ce3131d404138f3252dd85de
5,009
py
Python
marlin-firmware/buildroot/share/vscode/create_custom_upload_command_CDC.py
voicevon/gogame_bot
a1d91f4a1b2537d00b5cd5ed78d429a9c1aad3d1
[ "MIT" ]
6
2020-12-04T21:55:04.000Z
2022-02-02T20:49:45.000Z
marlin-firmware/buildroot/share/vscode/create_custom_upload_command_CDC.py
voicevon/gogame_bot
a1d91f4a1b2537d00b5cd5ed78d429a9c1aad3d1
[ "MIT" ]
24
2020-12-25T05:00:51.000Z
2021-04-20T00:56:50.000Z
marlin-firmware/buildroot/share/vscode/create_custom_upload_command_CDC.py
voicevon/gogame_bot
a1d91f4a1b2537d00b5cd5ed78d429a9c1aad3d1
[ "MIT" ]
3
2021-05-01T15:13:41.000Z
2022-02-11T01:15:30.000Z
#!/usr/bin/env python # # Builds custom upload command # 1) Run platformio as a subprocess to find a COM port # 2) Build the upload command # 3) Exit and let upload tool do the work # # This script runs between completion of the library/dependencies installation and compilation. # # Will continue on if a CO...
34.308219
146
0.641645
acfd17fc660eee87c93c9a82e765c0b0fe187ca9
29,632
py
Python
chunked_media/tests/test_views.py
CerealBoxMedia/chunked_media
324d9b7d76323fa1ca5296d733b82dc5ab5f98c0
[ "BSD-2-Clause" ]
null
null
null
chunked_media/tests/test_views.py
CerealBoxMedia/chunked_media
324d9b7d76323fa1ca5296d733b82dc5ab5f98c0
[ "BSD-2-Clause" ]
null
null
null
chunked_media/tests/test_views.py
CerealBoxMedia/chunked_media
324d9b7d76323fa1ca5296d733b82dc5ab5f98c0
[ "BSD-2-Clause" ]
null
null
null
from __future__ import unicode_literals import json from django.contrib.auth import get_user_model from django.contrib.auth.models import Group, Permission from django.core.files.base import ContentFile from django.test import TestCase, modify_settings from django.test.utils import override_settings from django.urls ...
39.299735
117
0.649433
acfd1a4b1d1cde481021c6b5ea65a6fbe42dfc37
4,323
py
Python
scikits/talkbox/tools/tests/test_correlations.py
neEverett/talkbox
ee0ec30a6a6d483eb9284f72bdaf26bd99765f80
[ "MIT" ]
65
2015-02-18T05:23:12.000Z
2022-02-21T13:09:34.000Z
scikits/talkbox/tools/tests/test_correlations.py
neEverett/talkbox
ee0ec30a6a6d483eb9284f72bdaf26bd99765f80
[ "MIT" ]
5
2016-06-26T08:46:22.000Z
2019-01-09T03:03:39.000Z
scikits/talkbox/tools/tests/test_correlations.py
neEverett/talkbox
ee0ec30a6a6d483eb9284f72bdaf26bd99765f80
[ "MIT" ]
31
2015-02-23T22:42:15.000Z
2022-02-21T13:09:34.000Z
import numpy as np from numpy.testing import TestCase, assert_array_equal, \ assert_array_almost_equal, dec from scikits.talkbox.tools.correlations import nextpow2, acorr from scikits.talkbox.tools.cacorr import acorr as cacorr class TestNextpow2(TestCase): X = np.array([0, 1, 2, 3, 4, 6...
37.921053
82
0.582003
acfd1a83830a42d9f4c1c0999469d309d0a0f5a7
19,903
py
Python
copct-master/baxter_corpus/demo_replace_red_with_green_2.py
jhomble/electron435
2a94a901679a1ebbdeea01bb9e888d365d536bec
[ "MIT" ]
4
2016-10-26T13:58:44.000Z
2018-11-13T13:03:52.000Z
copct-master/baxter_corpus/demo_replace_red_with_green_2.py
jhomble/electron435
2a94a901679a1ebbdeea01bb9e888d365d536bec
[ "MIT" ]
4
2020-03-31T01:10:26.000Z
2020-03-31T03:06:28.000Z
copct-master/baxter_corpus/demo_replace_red_with_green_2.py
jhomble/electron435
2a94a901679a1ebbdeea01bb9e888d365d536bec
[ "MIT" ]
1
2020-03-03T06:22:08.000Z
2020-03-03T06:22:08.000Z
demo = ( ( ( ("workspace", "Workspace"), ("table", "Block"), ("dock-case", "DockCase"), ("dock-case_1", "Block"), ("dock-body", "DockDrawer"), ("dock-body_2", "DockFrontPanel"), ("dock-body_2_1", "Prism"), ("dock-body_2_2", "Block"), ("dock-body_2_3", "Block"), ("dock-body_4", "DockHandle"), ("do...
25.615187
40
0.562729
acfd1a9bb218fa3181b4875e8a74463fdfbe7713
1,029
py
Python
heightmaptilemaker/geo/transform.py
ulrichji/HeightmapTileMaker
b817f3e39beb383fcb54e8c5ce29666a202dce04
[ "MIT" ]
null
null
null
heightmaptilemaker/geo/transform.py
ulrichji/HeightmapTileMaker
b817f3e39beb383fcb54e8c5ce29666a202dce04
[ "MIT" ]
7
2019-08-10T10:35:59.000Z
2022-03-12T00:49:24.000Z
heightmaptilemaker/geo/transform.py
ulrichji/HeightmapTileMaker
b817f3e39beb383fcb54e8c5ce29666a202dce04
[ "MIT" ]
null
null
null
class Transform: def transformGeoLocationToPixelLocation(self, geo_x, geo_y): ... def transformPixelLocationToGeoLocation(self, pixel_x, pixel_y): ... class GeoTransform(Transform): def __init__(self, transform_parameters): self.transform_parameters = transform_parameters def ...
35.482759
72
0.665695
acfd1b1aa005b585283b16da349b51b80886fe27
1,045
py
Python
common/code/snippets/spoof-ip.py
nevesnunes/env
7a5e3816334337e04a87e1a2e4dc322215901744
[ "MIT" ]
4
2020-04-07T14:45:02.000Z
2021-12-28T22:43:16.000Z
common/code/snippets/spoof-ip.py
nevesnunes/env
7a5e3816334337e04a87e1a2e4dc322215901744
[ "MIT" ]
null
null
null
common/code/snippets/spoof-ip.py
nevesnunes/env
7a5e3816334337e04a87e1a2e4dc322215901744
[ "MIT" ]
2
2020-04-08T03:12:06.000Z
2021-03-04T20:33:03.000Z
#!/usr/bin/env python2 # -*- encoding: utf-8 -*- # Usage: # ./ipspoof.py 111.111.111.111 127.0.0.1 # tcpdump -i lo import socket,sys from impacket import import ImpactDecoder, ImpactPacket if __name__ == "__main__": src = sys.argv[1] dst = sys.argv[2] # Create a new IP packet and set its sourc...
25.487805
75
0.657416
acfd1b3513e30ab924b23a0f0cee311cace75064
1,587
py
Python
examples/simple_example.py
pythub-project/CustomTkinter
bb1fe2562517928dde5a98e0dce650b9a3ef2380
[ "CC0-1.0" ]
null
null
null
examples/simple_example.py
pythub-project/CustomTkinter
bb1fe2562517928dde5a98e0dce650b9a3ef2380
[ "CC0-1.0" ]
null
null
null
examples/simple_example.py
pythub-project/CustomTkinter
bb1fe2562517928dde5a98e0dce650b9a3ef2380
[ "CC0-1.0" ]
null
null
null
import tkinter import customtkinter # <- import the CustomTkinter module customtkinter.set_appearance_mode("System") # Modes: "System" (standard), "Dark", "Light" customtkinter.set_default_color_theme("blue") # Themes: "blue" (standard), "green", "dark-blue" root_tk = customtkinter.CTk() # create CTk window like ...
31.74
125
0.779458
acfd1bfc2d9395702818ce62427e4ff19af57f13
1,607
py
Python
vox-central-line-infections/scripts/location.py
swkasica/data-projects
6a2c5a198c2dc2a2f0a7e4ff3dd3c385a6c9c625
[ "Unlicense" ]
193
2015-07-09T14:22:39.000Z
2022-02-01T08:04:38.000Z
vox-central-line-infections/scripts/location.py
swkasica/data-projects
6a2c5a198c2dc2a2f0a7e4ff3dd3c385a6c9c625
[ "Unlicense" ]
6
2015-07-29T15:03:46.000Z
2021-06-01T21:44:21.000Z
vox-central-line-infections/scripts/location.py
swkasica/data-projects
6a2c5a198c2dc2a2f0a7e4ff3dd3c385a6c9c625
[ "Unlicense" ]
70
2015-07-15T16:13:48.000Z
2021-12-07T00:09:13.000Z
#!/bin/python import csv import re # open up `hospitals_temp.csv` and write to `hospitals_info.csv` with open('hospitals_temp.csv', 'rb') as infile, open('hospitals_info.csv', 'wb') as outfile: reader = csv.reader(infile) # skip header in `hospitals_temp.csv` next(reader, None) writer = csv.writer(...
37.372093
107
0.615432
acfd1c38ed1290512e3a6bea7ced5c3421167e14
4,806
py
Python
django/core/cache/backends/filebased.py
ericholscher/django
b9a90b371c90a987ed57f7a4a7cc1274c432b438
[ "BSD-3-Clause" ]
1
2015-11-08T11:42:08.000Z
2015-11-08T11:42:08.000Z
django/core/cache/backends/filebased.py
ericholscher/django
b9a90b371c90a987ed57f7a4a7cc1274c432b438
[ "BSD-3-Clause" ]
null
null
null
django/core/cache/backends/filebased.py
ericholscher/django
b9a90b371c90a987ed57f7a4a7cc1274c432b438
[ "BSD-3-Clause" ]
null
null
null
"File-based cache backend" import hashlib import os import shutil import time try: from django.utils.six.moves import cPickle as pickle except ImportError: import pickle from django.core.cache.backends.base import BaseCache, DEFAULT_TIMEOUT from django.utils.encoding import force_bytes class FileBasedCache(...
30.417722
116
0.570953
acfd1c64be2d83b261e1ca3808158ad0c008cd6e
1,950
py
Python
squidpy/instruments/ppms.py
guenp/squidpy
17af231cef7142325a483aaa95041671e4daaea4
[ "MIT" ]
null
null
null
squidpy/instruments/ppms.py
guenp/squidpy
17af231cef7142325a483aaa95041671e4daaea4
[ "MIT" ]
null
null
null
squidpy/instruments/ppms.py
guenp/squidpy
17af231cef7142325a483aaa95041671e4daaea4
[ "MIT" ]
null
null
null
from squidpy.instrument import Instrument from squidpy.utils import ask_socket, connect_socket class PPMS(Instrument): ''' For remote operation of the Quantum Design PPMS. Make sure to run PyQDInstrument.run_server() in an IronPython console on a machine that can connect to the PPMS control PC's QDInstrume...
52.702703
186
0.633846
acfd2002708839729f02b256f0d5abc8688d6158
8,195
py
Python
display/dpy_pygame.py
smmalmansoori/bub-n-bros
5d1db7192edcf981a988fa17f008af3f50611822
[ "MIT" ]
null
null
null
display/dpy_pygame.py
smmalmansoori/bub-n-bros
5d1db7192edcf981a988fa17f008af3f50611822
[ "MIT" ]
null
null
null
display/dpy_pygame.py
smmalmansoori/bub-n-bros
5d1db7192edcf981a988fa17f008af3f50611822
[ "MIT" ]
null
null
null
################################################ ## pygame-based implementation of xshm ## ################################################ import os import pygame from pygame.locals import * from modes import KeyPressed, KeyReleased class Display: musthidemouse = 0 mousevisible = 1 def __init...
33.313008
75
0.539231
acfd200c6740a989171723106305fcb7bb1e4905
22,900
py
Python
qcfractal/server.py
yudongqiu/QCFractal
43b5b4807dfe19f78177288f204aab1066de2dea
[ "BSD-3-Clause" ]
null
null
null
qcfractal/server.py
yudongqiu/QCFractal
43b5b4807dfe19f78177288f204aab1066de2dea
[ "BSD-3-Clause" ]
null
null
null
qcfractal/server.py
yudongqiu/QCFractal
43b5b4807dfe19f78177288f204aab1066de2dea
[ "BSD-3-Clause" ]
null
null
null
""" The FractalServer class """ import asyncio import datetime import logging import ssl import time import traceback from typing import Any, Dict, List, Optional, Union import tornado.ioloop import tornado.log import tornado.options import tornado.web from .extras import get_information from .interface import Fract...
35.893417
159
0.620087
acfd2025297a049bed2f00ca8977f3ad24da961d
2,476
py
Python
dataladmetadatamodel/tests/test_common.py
datalad/metadata-model
03d5178f0f9c55b75d483957057f0b9daa7625a9
[ "MIT" ]
null
null
null
dataladmetadatamodel/tests/test_common.py
datalad/metadata-model
03d5178f0f9c55b75d483957057f0b9daa7625a9
[ "MIT" ]
6
2021-10-07T20:53:58.000Z
2022-03-31T10:32:22.000Z
dataladmetadatamodel/tests/test_common.py
datalad/metadata-model
03d5178f0f9c55b75d483957057f0b9daa7625a9
[ "MIT" ]
null
null
null
import subprocess import tempfile import unittest from dataladmetadatamodel.common import ( get_top_level_metadata_objects, get_top_nodes_and_metadata_root_record, ) from dataladmetadatamodel.metadatapath import MetadataPath from dataladmetadatamodel.metadatarootrecord import MetadataRootRecord from dataladmet...
33.459459
72
0.642165
acfd205dc844bafd8d4c9ea6d7e53dc768c5c8ff
57
py
Python
recipe/run_test.py
regro-cf-autotick-bot/lxml-stubs-feedstock
273100ab1ea7657519c14a9b5c96de0760570263
[ "BSD-3-Clause" ]
null
null
null
recipe/run_test.py
regro-cf-autotick-bot/lxml-stubs-feedstock
273100ab1ea7657519c14a9b5c96de0760570263
[ "BSD-3-Clause" ]
4
2021-05-21T11:59:20.000Z
2022-03-04T12:46:51.000Z
recipe/run_test.py
regro-cf-autotick-bot/lxml-stubs-feedstock
273100ab1ea7657519c14a9b5c96de0760570263
[ "BSD-3-Clause" ]
1
2021-05-21T11:58:56.000Z
2021-05-21T11:58:56.000Z
import importlib importlib.import_module("lxml-stubs")
11.4
37
0.807018
acfd21b1886b82a354849170efd162b72fe7af29
3,747
py
Python
validate.py
Susmit-A/FSHDR
45dfbe7783b2a5859bbe8653761058b9ee207a01
[ "MIT" ]
6
2021-07-26T17:41:26.000Z
2021-12-31T09:56:55.000Z
validate.py
Susmit-A/FSHDR
45dfbe7783b2a5859bbe8653761058b9ee207a01
[ "MIT" ]
4
2021-07-27T13:42:45.000Z
2022-03-20T11:31:29.000Z
validate.py
Susmit-A/FSHDR
45dfbe7783b2a5859bbe8653761058b9ee207a01
[ "MIT" ]
1
2021-12-05T13:35:08.000Z
2021-12-05T13:35:08.000Z
import argparse, os, glob, cv2, sys import numpy as np print(" ".join(sys.argv)) parser = argparse.ArgumentParser() parser.add_argument('--model', type=str, default='BridgeNet') parser.add_argument('--weights_loc', type=str, default=None) parser.add_argument('--model_name', type=str, default=Non...
38.628866
116
0.680811
acfd2215169bc423651c16c18c5df46ec02ba8d3
1,947
py
Python
effect/test_retry.py
timgates42/effect
df04e119faf419a5608a51ca1af606f2874a11a7
[ "Unlicense", "MIT" ]
265
2015-05-09T17:28:51.000Z
2022-03-23T03:48:16.000Z
effect/test_retry.py
timgates42/effect
df04e119faf419a5608a51ca1af606f2874a11a7
[ "Unlicense", "MIT" ]
37
2015-05-09T16:31:54.000Z
2020-09-17T20:20:03.000Z
effect/test_retry.py
timgates42/effect
df04e119faf419a5608a51ca1af606f2874a11a7
[ "Unlicense", "MIT" ]
17
2015-05-09T04:45:46.000Z
2021-07-21T12:48:52.000Z
from testtools import TestCase from testtools.matchers import raises from .retry import retry from . import base_dispatcher from .testing import ESConstant, ESError, ESFunc, resolve_stubs class RetryTests(TestCase): def test_should_not_retry(self): """retry raises the last error if should_retry returns F...
29.5
85
0.607088
acfd22b8f153dcd0253153cdce4f1b8e3df9f535
18,879
py
Python
dataloader/flow_transforms.py
urasakikeisuke/rigidmask
4bb781102218dfd11efa767e2d0ba987d9949fd1
[ "MIT" ]
138
2021-01-12T03:02:04.000Z
2022-03-30T07:14:15.000Z
dataloader/flow_transforms.py
urasakikeisuke/rigidmask
4bb781102218dfd11efa767e2d0ba987d9949fd1
[ "MIT" ]
12
2021-02-02T14:19:30.000Z
2022-03-28T01:23:44.000Z
dataloader/flow_transforms.py
urasakikeisuke/rigidmask
4bb781102218dfd11efa767e2d0ba987d9949fd1
[ "MIT" ]
14
2021-01-13T01:31:34.000Z
2022-01-30T14:48:06.000Z
from __future__ import division import torch import random import numpy as np import numbers import types import scipy.ndimage as ndimage import pdb import torchvision import PIL.Image as Image import cv2 from torch.nn import functional as F class Compose(object): """ Composes several co_transforms together. ...
42.809524
161
0.530907
acfd22eb528cefba52672bbd94360ccc98021c88
1,794
py
Python
wis2box/metadata/oscar.py
webb-ben/wis2node
e577d2bea5524f74872f47eee9deb35d6c510460
[ "Apache-2.0" ]
7
2021-10-05T11:48:50.000Z
2022-02-04T12:47:15.000Z
wis2box/metadata/oscar.py
webb-ben/wis2node
e577d2bea5524f74872f47eee9deb35d6c510460
[ "Apache-2.0" ]
47
2022-02-15T18:24:22.000Z
2022-03-31T11:32:52.000Z
wis2box/metadata/oscar.py
webb-ben/wis2node
e577d2bea5524f74872f47eee9deb35d6c510460
[ "Apache-2.0" ]
3
2022-02-16T19:36:36.000Z
2022-03-14T08:14:20.000Z
############################################################################### # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this fi...
30.40678
79
0.677258
acfd23325de07dd177d401d1ca18fa9942a9d999
2,086
py
Python
main_page/views.py
slusarczyk41/my_django_website
1ae95297a1a5901a57f858cca1cf90fbd8c2dfb1
[ "MIT" ]
null
null
null
main_page/views.py
slusarczyk41/my_django_website
1ae95297a1a5901a57f858cca1cf90fbd8c2dfb1
[ "MIT" ]
null
null
null
main_page/views.py
slusarczyk41/my_django_website
1ae95297a1a5901a57f858cca1cf90fbd8c2dfb1
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponseRedirect from django.urls import reverse from django.db.models import F from django.utils import timezone from django_ajax.decorators import ajax from django.core.mail import EmailMessage from wsgiref.util import FileWrapper from...
23.438202
95
0.663471
acfd25cf459db9a757b08d019e5ca1ccf31c3e8e
3,944
py
Python
dovetail/tests/unit/test_parser.py
xudan2189/dovetail
89beb8e201e69fa5af1d7a38928e7ea8a501d755
[ "Apache-2.0" ]
null
null
null
dovetail/tests/unit/test_parser.py
xudan2189/dovetail
89beb8e201e69fa5af1d7a38928e7ea8a501d755
[ "Apache-2.0" ]
null
null
null
dovetail/tests/unit/test_parser.py
xudan2189/dovetail
89beb8e201e69fa5af1d7a38928e7ea8a501d755
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # ############################################################################## # Copyright (c) 2016 lingui.zeng@huawei.com and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies ...
39.049505
78
0.63286
acfd262a7340bdfc0166fedf2449a5bf78dc30a5
3,533
py
Python
src/cone/app/browser/utils.py
timgates42/cone.app
2a84a1ddc87930050780041eb7c05032e7bb8dbb
[ "BSD-3-Clause" ]
null
null
null
src/cone/app/browser/utils.py
timgates42/cone.app
2a84a1ddc87930050780041eb7c05032e7bb8dbb
[ "BSD-3-Clause" ]
null
null
null
src/cone/app/browser/utils.py
timgates42/cone.app
2a84a1ddc87930050780041eb7c05032e7bb8dbb
[ "BSD-3-Clause" ]
null
null
null
from cone.app import compat from cone.app.utils import app_config from cone.app.utils import format_traceback as _format_traceback from cone.app.utils import safe_encode from cone.app.utils import safe_decode from pyramid.i18n import TranslationStringFactory import copy import datetime import re _ = TranslationString...
28.264
79
0.624115
acfd2650dc897d089f8546bfb138545ba8309399
7,339
py
Python
session3/complete/tx.py
casey-bowman/pb-exercises
00b814f2d1b8827db0ca79180db4b88a2cdfa087
[ "BSD-2-Clause" ]
null
null
null
session3/complete/tx.py
casey-bowman/pb-exercises
00b814f2d1b8827db0ca79180db4b88a2cdfa087
[ "BSD-2-Clause" ]
null
null
null
session3/complete/tx.py
casey-bowman/pb-exercises
00b814f2d1b8827db0ca79180db4b88a2cdfa087
[ "BSD-2-Clause" ]
null
null
null
from io import BytesIO from unittest import TestCase from helper import ( little_endian_to_int, read_varint, ) from script import Script class Tx: def __init__(self, version, tx_ins, tx_outs, locktime): self.version = version self.tx_ins = tx_ins self.tx_outs = tx_outs sel...
47.348387
486
0.725303
acfd276d1fbaa11bb459b10378db0ddd82e021e6
6,044
py
Python
homeassistant/components/cover/device_trigger.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
11
2018-02-16T15:35:47.000Z
2020-01-14T15:20:00.000Z
homeassistant/components/cover/device_trigger.py
dummys/home-assistant
dd908caebade15adf061fade686355b94ed2f43a
[ "Apache-2.0" ]
77
2020-07-16T16:43:09.000Z
2022-03-31T06:14:37.000Z
homeassistant/components/cover/device_trigger.py
Vaarlion/core
f3de8b9f28de01abf72c0f5bb0b457eb1841f201
[ "Apache-2.0" ]
7
2021-03-20T12:34:01.000Z
2021-12-02T10:13:52.000Z
"""Provides device automations for Cover.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.automation import AutomationActionType from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA from homeassistant.components.homeassistant.triggers import ( ...
32.148936
85
0.636664
acfd2914ae84739f445ea30fb86d30d4b35bb4be
22,214
py
Python
art/estimators/classification/mxnet.py
mcguires5/adversarial-robustness-toolbox
f8b0552859eaf31c5b66e1d14d28b89178795ad0
[ "MIT" ]
1
2020-07-12T03:45:23.000Z
2020-07-12T03:45:23.000Z
art/estimators/classification/mxnet.py
mcguires5/adversarial-robustness-toolbox
f8b0552859eaf31c5b66e1d14d28b89178795ad0
[ "MIT" ]
105
2020-08-24T06:15:43.000Z
2022-03-24T08:03:16.000Z
art/estimators/classification/mxnet.py
mcguires5/adversarial-robustness-toolbox
f8b0552859eaf31c5b66e1d14d28b89178795ad0
[ "MIT" ]
null
null
null
# MIT License # # Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2018 # # 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 # r...
43.133981
120
0.626047
acfd29c6f1293a18c91987cef718f1c42e92de9a
34,549
py
Python
src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/test_sqlvm_commands.py
tyler-lloyd/azure-cli
5e999e49594ad51557c05b9c55e00c3c16932575
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/test_sqlvm_commands.py
tyler-lloyd/azure-cli
5e999e49594ad51557c05b9c55e00c3c16932575
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/sqlvm/tests/latest/test_sqlvm_commands.py
tyler-lloyd/azure-cli
5e999e49594ad51557c05b9c55e00c3c16932575
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
51.565672
204
0.570176
acfd29d3883b6bda928babedf15acbbb63244928
7,030
py
Python
preprocessing/xml_decoder.py
KnottLab/codex
f92c0af3116118e56a3feb81c6cc9dbd946f462a
[ "MIT" ]
null
null
null
preprocessing/xml_decoder.py
KnottLab/codex
f92c0af3116118e56a3feb81c6cc9dbd946f462a
[ "MIT" ]
3
2021-08-15T19:53:07.000Z
2021-08-30T16:55:28.000Z
preprocessing/xml_decoder.py
KnottLab/codex
f92c0af3116118e56a3feb81c6cc9dbd946f462a
[ "MIT" ]
null
null
null
"""XML decoder for CODEX""" import xml.etree.ElementTree as ET import numpy as np import math class XMLDecoder: def __init__(self): self.decoded_content = dict() def _number_of_cycles(self, root): number = 0 exposures = root.find('Exposures') for item in exposures.findall('E...
42.865854
133
0.636842
acfd2bfed3934a5e95608624afbcaeac9b6a8943
1,493
py
Python
grmodel/figures/FigureCommon.py
meyer-lab/ps-growth-model
3d1b53f4310de3ba42aa1db5847451be1642c5a8
[ "MIT" ]
2
2019-10-10T15:40:03.000Z
2019-10-21T00:46:54.000Z
grmodel/figures/FigureCommon.py
meyer-lab/ps-growth-model
3d1b53f4310de3ba42aa1db5847451be1642c5a8
[ "MIT" ]
36
2019-09-24T03:40:09.000Z
2020-02-26T17:18:07.000Z
grmodel/figures/FigureCommon.py
meyer-lab/ps-growth-model
3d1b53f4310de3ba42aa1db5847451be1642c5a8
[ "MIT" ]
1
2020-02-03T00:14:08.000Z
2020-02-03T00:14:08.000Z
from string import ascii_lowercase from matplotlib import gridspec, pyplot as plt, rcParams import seaborn as sns import svgutils.transform as st rcParams["xtick.major.pad"] = 1.5 rcParams["ytick.major.pad"] = 1.5 rcParams["xtick.minor.pad"] = 1.5 rcParams["ytick.minor.pad"] = 1.5 rcParams["legend.labelspacing"] = 0....
30.469388
142
0.687207
acfd2c0e3f5b6e7a44f89f2ee1a5f1381044a640
33,367
py
Python
scripts/pyqtgraph-develop/pyqtgraph/parametertree/Parameter.py
kuldeepaman/tf-pose
8050912c52a7b4f3c8a2656f267d47ba21d093f6
[ "Apache-2.0" ]
null
null
null
scripts/pyqtgraph-develop/pyqtgraph/parametertree/Parameter.py
kuldeepaman/tf-pose
8050912c52a7b4f3c8a2656f267d47ba21d093f6
[ "Apache-2.0" ]
null
null
null
scripts/pyqtgraph-develop/pyqtgraph/parametertree/Parameter.py
kuldeepaman/tf-pose
8050912c52a7b4f3c8a2656f267d47ba21d093f6
[ "Apache-2.0" ]
null
null
null
from ..Qt import QtGui, QtCore import os, weakref, re from ..pgcollections import OrderedDict from ..python2_3 import asUnicode, basestring from .ParameterItem import ParameterItem PARAM_TYPES = {} PARAM_NAMES = {} def registerParameterType(name, cls, override=False): global PARAM_TYPES if name in ...
42.833119
165
0.550574
acfd2d205781f0abbb203462608004feb7562b40
132,040
py
Python
praw/models/reddit/subreddit.py
igosad/praw
d1788aa6d7c31a92895df33456ac92241610cf34
[ "BSD-2-Clause" ]
null
null
null
praw/models/reddit/subreddit.py
igosad/praw
d1788aa6d7c31a92895df33456ac92241610cf34
[ "BSD-2-Clause" ]
null
null
null
praw/models/reddit/subreddit.py
igosad/praw
d1788aa6d7c31a92895df33456ac92241610cf34
[ "BSD-2-Clause" ]
null
null
null
"""Provide the Subreddit class.""" # pylint: disable=too-many-lines import socket from copy import deepcopy from csv import writer from io import StringIO from json import dumps, loads from os.path import basename, dirname, isfile, join from typing import List from urllib.parse import urljoin from xml.etree.ElementTre...
35.841477
150
0.613261
acfd2e8c255838bb59a630a182ac8d89876df5c4
1,273
py
Python
tools/scimitar-gdb/python/scimitar/threads/hpx_gdb_state.py
parsa/scmitar
e8a95a12e99284bb55b710bdf7acf16d584cd008
[ "BSL-1.0" ]
null
null
null
tools/scimitar-gdb/python/scimitar/threads/hpx_gdb_state.py
parsa/scmitar
e8a95a12e99284bb55b710bdf7acf16d584cd008
[ "BSL-1.0" ]
null
null
null
tools/scimitar-gdb/python/scimitar/threads/hpx_gdb_state.py
parsa/scmitar
e8a95a12e99284bb55b710bdf7acf16d584cd008
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Scimitar: Ye Distributed Debugger # # Copyright (c) 2016 Parsa Amini # Copyright (c) 2016 Hartmut Kaiser # Copyright (c) 2016 Thomas Heller # # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt...
27.085106
78
0.593087
acfd2eb94e133920aff0d9f750491502a9e3bebd
7,900
py
Python
monai/handlers/metrics_saver.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
monai/handlers/metrics_saver.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
monai/handlers/metrics_saver.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in wri...
53.020134
118
0.657342
acfd2ebc60eacee83aa05597b5736a2bd5df46dc
3,592
py
Python
tutorials/02-intermediate/bidirectional_recurrent_neural_network/main.py
ksopyla/pytorch-tutorial
1173679acf8c5eeeb24a271fdc109d4c818cf005
[ "MIT" ]
1
2018-12-17T10:33:03.000Z
2018-12-17T10:33:03.000Z
tutorials/02-intermediate/bidirectional_recurrent_neural_network/main.py
ksopyla/pytorch-tutorial
1173679acf8c5eeeb24a271fdc109d4c818cf005
[ "MIT" ]
null
null
null
tutorials/02-intermediate/bidirectional_recurrent_neural_network/main.py
ksopyla/pytorch-tutorial
1173679acf8c5eeeb24a271fdc109d4c818cf005
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torchvision import torchvision.transforms as transforms # Device configuration device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') # Hyper-parameters sequence_length = 28 input_size = 28 hidden_size = 128 num_layers = 2 num_classes = 10 batch_size = 100 nu...
35.215686
104
0.59716