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
bad2722c0080e6d22ff027e6fa67858bb38af720
2,467
py
Python
src/graph_transpiler/webdnn/backend/webassembly/kernels/zero_padding_1d.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
src/graph_transpiler/webdnn/backend/webassembly/kernels/zero_padding_1d.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/backend/webassembly/kernels/zero_padding_1d.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
from typing import List from webdnn.backend.code_generator.allocator import MemoryLayout from webdnn.backend.code_generator.injectors.buffer_injector import BufferInjector from webdnn.backend.code_generator.injectors.kernel_name_injector import KernelNameInjector from webdnn.backend.webassembly.generator import Webass...
33.337838
91
0.674909
baa94ed7ac62cc6c97337d24b14022812856107b
1,787
py
Python
12-Cloud_Computing-Using_Computing_as_a_Service/Start_and_Stop_EC2.py
pierpaolofiore/A001026
2ba95b996bd6b575b29362595d96d1d1d18aa1bf
[ "CC0-1.0" ]
null
null
null
12-Cloud_Computing-Using_Computing_as_a_Service/Start_and_Stop_EC2.py
pierpaolofiore/A001026
2ba95b996bd6b575b29362595d96d1d1d18aa1bf
[ "CC0-1.0" ]
null
null
null
12-Cloud_Computing-Using_Computing_as_a_Service/Start_and_Stop_EC2.py
pierpaolofiore/A001026
2ba95b996bd6b575b29362595d96d1d1d18aa1bf
[ "CC0-1.0" ]
6
2021-05-06T09:19:35.000Z
2021-09-14T15:09:27.000Z
import boto3 import sys import argparse from botocore.exceptions import ClientError ap = argparse.ArgumentParser() ap.add_argument("-m","--Action", required=True, type=int, default=True, help="Action: 0 to Stop -- 1 to Start") ap.add_argument("-i","--ID_Instance", required=True, type=str, help="The ID...
30.810345
92
0.68047
35216be76207cf158c09073ea416e0f15eec66ef
34,196
py
Python
SoftLayer/fixtures/SoftLayer_Account.py
ATGE/softlayer-python
98feac7db01b50eddeeb45769182ab978ebeefc3
[ "MIT" ]
126
2015-01-05T05:09:22.000Z
2021-07-02T00:16:35.000Z
SoftLayer/fixtures/SoftLayer_Account.py
ATGE/softlayer-python
98feac7db01b50eddeeb45769182ab978ebeefc3
[ "MIT" ]
969
2015-01-05T15:55:31.000Z
2022-03-31T19:55:20.000Z
SoftLayer/fixtures/SoftLayer_Account.py
ATGE/softlayer-python
98feac7db01b50eddeeb45769182ab978ebeefc3
[ "MIT" ]
176
2015-01-22T11:23:40.000Z
2022-02-11T13:16:58.000Z
getPrivateBlockDeviceTemplateGroups = [{ 'accountId': 1234, 'blockDevices': [], 'createDate': '2013-12-05T21:53:03-06:00', 'globalIdentifier': 'E6DBD73B-1651-4B28-BCBA-A11DF7C9D79E', 'id': 200, 'name': 'test_image', 'parentId': '', 'publicFlag': False, }, { 'accountId': 1234, 'bl...
28.261157
120
0.480436
e078810e1c2c85f45113e6781057a8d7bc8ed7d5
755
py
Python
toolz/itertoolz/tests/test_recipes.py
eriknw/toolz
310d80227dfcf72d8d81c3819fcb96055e64af9f
[ "BSD-3-Clause" ]
null
null
null
toolz/itertoolz/tests/test_recipes.py
eriknw/toolz
310d80227dfcf72d8d81c3819fcb96055e64af9f
[ "BSD-3-Clause" ]
null
null
null
toolz/itertoolz/tests/test_recipes.py
eriknw/toolz
310d80227dfcf72d8d81c3819fcb96055e64af9f
[ "BSD-3-Clause" ]
null
null
null
from toolz import first, identity, countby, partitionby def iseven(x): return x % 2 == 0 def test_countby(): assert countby(iseven, [1, 2, 3]) == {True: 1, False: 2} assert countby(len, ['cat', 'dog', 'mouse']) == {3: 2, 5: 1} def test_partitionby(): assert list(partitionby(identity, [])) == [] ...
27.962963
79
0.484768
27bf9bf727b9b8609704537e7087d32046aa7005
1,509
py
Python
fltk/nets/cifar_10_cnn.py
tudelft-eemcs-dml/fltk-testbed-gr-1
bbe01d5d82a447ad8b6d9e3f350f831922a8b8b7
[ "BSD-2-Clause" ]
null
null
null
fltk/nets/cifar_10_cnn.py
tudelft-eemcs-dml/fltk-testbed-gr-1
bbe01d5d82a447ad8b6d9e3f350f831922a8b8b7
[ "BSD-2-Clause" ]
null
null
null
fltk/nets/cifar_10_cnn.py
tudelft-eemcs-dml/fltk-testbed-gr-1
bbe01d5d82a447ad8b6d9e3f350f831922a8b8b7
[ "BSD-2-Clause" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class Cifar10CNN(nn.Module): def __init__(self): super(Cifar10CNN, self).__init__() self.conv1 = nn.Conv2d(3, 32, kernel_size=3, padding=1) self.bn1 = nn.BatchNorm2d(32) self.conv2 = nn.Conv2d(32, 32, kernel_size=3...
30.18
66
0.577203
30bcc7c2325b1054627a7bd83d60f3f260925aae
2,647
py
Python
autokeras/__init__.py
kaczmarj/autokeras
991ada6eaebcb735a3b499a2500228c94f1226b1
[ "Apache-2.0" ]
null
null
null
autokeras/__init__.py
kaczmarj/autokeras
991ada6eaebcb735a3b499a2500228c94f1226b1
[ "Apache-2.0" ]
null
null
null
autokeras/__init__.py
kaczmarj/autokeras
991ada6eaebcb735a3b499a2500228c94f1226b1
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The AutoKeras Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
38.926471
74
0.849263
5cd9895df1d058aee26b58b075d04bace087b526
698
py
Python
utility/code_generate.py
MisterMjir/jEL
fd593dd501c943a9c8338f8903b4461ce7c12139
[ "Zlib" ]
null
null
null
utility/code_generate.py
MisterMjir/jEL
fd593dd501c943a9c8338f8903b4461ce7c12139
[ "Zlib" ]
1
2021-12-30T23:41:30.000Z
2021-12-30T23:41:30.000Z
utility/code_generate.py
MisterMjir/jEL
fd593dd501c943a9c8338f8903b4461ce7c12139
[ "Zlib" ]
null
null
null
#!/usr/bin/python ''' Generate code Sliding macro magic (aka macro abuse) is a pain to type, this makes it so much easier ''' output = open('generated.txt', 'w+') repeat = 128 string = '#define JEL_COMPONENTS_FUNCTION_$_P(function, component, ...) \\\n function(component) \\\n JEL_COMPONENTS_FUNCTION_$`_P(functi...
23.266667
160
0.551576
59d816ae24ba81a36900a78125d12a6d4caaff15
444
py
Python
examples/nested_context.py
Philipp-Userlike/django-pystache
c720ee7a4b01f673dd2f476dae2e0c529229efe2
[ "MIT" ]
2
2015-11-05T08:53:49.000Z
2016-03-01T22:14:12.000Z
examples/nested_context.py
kennethreitz-archive/pystache
f543efac93b753914a20b9daaf84a51382fba445
[ "MIT" ]
null
null
null
examples/nested_context.py
kennethreitz-archive/pystache
f543efac93b753914a20b9daaf84a51382fba445
[ "MIT" ]
1
2021-01-18T14:54:42.000Z
2021-01-18T14:54:42.000Z
import pystache class NestedContext(pystache.View): template_path = 'examples' def outer_thing(self): return "two" def foo(self): return {'thing1': 'one', 'thing2': 'foo'} def derp(self): return [{'inner': 'car'}] def herp(self): return [{'outer': 'car'}]...
23.368421
76
0.558559
6aed7d33ad07807dc474983628133143849f5ebd
7,224
py
Python
tensorflow/lite/python/lite_v2_test_util.py
vixadd/tensorflow
8c624204eb686a91779149dc500e6c8c60096074
[ "Apache-2.0" ]
4
2021-06-30T10:53:39.000Z
2021-09-19T16:52:00.000Z
tensorflow/lite/python/lite_v2_test_util.py
vixadd/tensorflow
8c624204eb686a91779149dc500e6c8c60096074
[ "Apache-2.0" ]
4
2020-04-09T16:22:20.000Z
2021-12-15T13:57:36.000Z
tensorflow/lite/python/lite_v2_test_util.py
vixadd/tensorflow
8c624204eb686a91779149dc500e6c8c60096074
[ "Apache-2.0" ]
4
2022-01-13T11:23:44.000Z
2022-03-02T11:11:42.000Z
# Lint as: python2, python3 # Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # ...
33.915493
80
0.669435
31454e3c56b7e6a48870405c6b65eab69d89e5b9
384
py
Python
configs/bankList.py
cbrandl/csv_costanalyser
c4e2c53bb7f13e56aec07425e5c0e1f0bed6b8fa
[ "MIT" ]
null
null
null
configs/bankList.py
cbrandl/csv_costanalyser
c4e2c53bb7f13e56aec07425e5c0e1f0bed6b8fa
[ "MIT" ]
null
null
null
configs/bankList.py
cbrandl/csv_costanalyser
c4e2c53bb7f13e56aec07425e5c0e1f0bed6b8fa
[ "MIT" ]
null
null
null
import configs.hypo as hypo import configs.volksbank as volksbank class BankList: def __init__(self, iban): self.__iban = iban def getBankConfig(self): bankClass = None if self.__iban[4:8] == '5700': bankClass = hypo.Hypo() elif self.__iban[4:8] == '4239': ...
22.588235
45
0.604167
45ae5f69dc6bd50e1001a6c0acaf062d59016487
3,882
py
Python
pent/test/pent_slow.py
Ricyteach/pent
dc3093e36a4cb5d33288c64d2421bc119d79eac2
[ "MIT" ]
21
2018-10-25T13:06:22.000Z
2021-11-15T09:52:56.000Z
pent/test/pent_slow.py
Ricyteach/pent
dc3093e36a4cb5d33288c64d2421bc119d79eac2
[ "MIT" ]
99
2018-09-03T01:01:04.000Z
2022-01-04T00:47:49.000Z
pent/test/pent_slow.py
Ricyteach/pent
dc3093e36a4cb5d33288c64d2421bc119d79eac2
[ "MIT" ]
3
2019-10-04T02:13:53.000Z
2019-11-06T03:42:19.000Z
r"""*SLOW test objects for* ``pent`` *test suite*. ``pent`` Extracts Numerical Text. **Author** Brian Skinn (bskinn@alum.mit.edu) **File Created** 9 Oct 2018 **Copyright** \(c) Brian Skinn 2018-2019 **Source Repository** http://www.github.com/bskinn/pent **Documentation** http://pent.readthedo...
31.560976
73
0.508243
b8cc6bd06ded105b46745cc53ab35ff4e8908702
6,659
py
Python
python/experiments/latest/model/linking.py
boyuanzheng010/friends_semeval
7891d072fd2598374e4bc1af6a9febed2577e118
[ "Apache-2.0" ]
39
2017-04-21T00:19:31.000Z
2022-03-07T21:37:55.000Z
python/experiments/latest/model/linking.py
BarryZM/character-identification
5c47347aeff7ff8a16460b6f38637bc47a2efa1b
[ "Apache-2.0" ]
1
2020-07-05T11:22:31.000Z
2021-02-25T12:04:56.000Z
python/experiments/latest/model/linking.py
BarryZM/character-identification
5c47347aeff7ff8a16460b6f38637bc47a2efa1b
[ "Apache-2.0" ]
8
2018-05-11T06:55:24.000Z
2020-07-15T20:53:28.000Z
import tensorflow as tf import keras.backend as K from keras.layers import Input, Dense, Dropout, Reshape from keras.layers.convolutional import Conv2D, MaxPooling2D from keras.layers.merge import concatenate from keras.models import Model from keras.optimizers import RMSprop from util import * class MentionCluster...
43.24026
122
0.601291
b3a353960175b60d2ff02e3c66512159cc0223e7
1,810
py
Python
core/exceptions.py
gonza-peralta/facebooklogin
76247457ddccb7e17fa7d967930f403b17409b23
[ "Apache-2.0" ]
null
null
null
core/exceptions.py
gonza-peralta/facebooklogin
76247457ddccb7e17fa7d967930f403b17409b23
[ "Apache-2.0" ]
null
null
null
core/exceptions.py
gonza-peralta/facebooklogin
76247457ddccb7e17fa7d967930f403b17409b23
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Response from werkzeug.http import HTTP_STATUS_CODES class BaseAPIExceptionError(Exception): status_code = None message = None def __init__(self, message=None, payload=None): Exception.__init__(self) if message is not None: self.messag...
25.492958
78
0.581768
2d21213495777cd2b8f782e5244b47394e0e1680
14,912
py
Python
cardpay/model/recurring_filter_parameters.py
Sinkler/python-sdk-v2
a1ad7cc9900f8adf967ca4dec0bb05d8eddc2999
[ "MIT" ]
null
null
null
cardpay/model/recurring_filter_parameters.py
Sinkler/python-sdk-v2
a1ad7cc9900f8adf967ca4dec0bb05d8eddc2999
[ "MIT" ]
null
null
null
cardpay/model/recurring_filter_parameters.py
Sinkler/python-sdk-v2
a1ad7cc9900f8adf967ca4dec0bb05d8eddc2999
[ "MIT" ]
null
null
null
# coding: utf-8 """ CardPay REST API Welcome to the CardPay REST API. The CardPay API uses HTTP verbs and a [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) resources endpoint structure (see more info about REST). Request and response payloads are formatted as JSON. Merchant uses API to c...
36.370732
546
0.617959
3c5079c4e72946c0c64d18d559a159161945ea3e
1,925
py
Python
linchpin/provision/InventoryFilters/DuffyInventory.py
seandst/linchpin
427b6fb61f550a4d1120ac94c55d121fbecd70a6
[ "Apache-2.0" ]
null
null
null
linchpin/provision/InventoryFilters/DuffyInventory.py
seandst/linchpin
427b6fb61f550a4d1120ac94c55d121fbecd70a6
[ "Apache-2.0" ]
null
null
null
linchpin/provision/InventoryFilters/DuffyInventory.py
seandst/linchpin
427b6fb61f550a4d1120ac94c55d121fbecd70a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import abc import StringIO from ansible import errors try: from configparser import ConfigParser except ImportError: from ConfigParser import ConfigParser from InventoryFilter import InventoryFilter class DuffyInventory(InventoryFilter): def get_hostnames(self, topo): hos...
32.627119
76
0.632727
bd2406c0c497e1027be5730a5f7b99b057d0d9bc
182
py
Python
.history/ClassFiles/Operators/MembershipOperators_20201230173527.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/Operators/MembershipOperators_20201230173527.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/ClassFiles/Operators/MembershipOperators_20201230173527.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
""" MEMBERSHIP operators Membership operators are used to est if a sequence is presented in an object. Operator Description in Returns True if a value is found. """
26
77
0.708791
4f2a6137da2fdf15a8fd9db0ec2ea85232a49b41
17,097
py
Python
python/ray/workflow/step_executor.py
Imerso3D/ray
eb3620898c247ce390182b23d0f24045d73cfdbc
[ "Apache-2.0" ]
1
2021-09-22T17:10:21.000Z
2021-09-22T17:10:21.000Z
python/ray/workflow/step_executor.py
Imerso3D/ray
eb3620898c247ce390182b23d0f24045d73cfdbc
[ "Apache-2.0" ]
77
2021-06-05T07:04:56.000Z
2022-03-26T07:04:33.000Z
python/ray/workflow/step_executor.py
Imerso3D/ray
eb3620898c247ce390182b23d0f24045d73cfdbc
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass import logging from typing import (List, Tuple, Any, Dict, Callable, Optional, TYPE_CHECKING, Union) import ray from ray import ObjectRef from ray._private import signature from ray.workflow import workflow_context from ray.workflow import recovery from ray.workflo...
42.7425
79
0.638358
a5231fe06591b6f6fb8aad87cedafbd29f575cb5
11,669
py
Python
var/spack/repos/builtin/packages/sirius/package.py
lcnzg/spack
5b9f60f9bb159113bfd8a0c8f3f4a8a0c2f55d7e
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-06-28T02:20:15.000Z
2021-06-28T02:20:15.000Z
var/spack/repos/builtin/packages/sirius/package.py
lcnzg/spack
5b9f60f9bb159113bfd8a0c8f3f4a8a0c2f55d7e
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
18
2021-03-12T16:22:58.000Z
2022-03-02T17:07:08.000Z
var/spack/repos/builtin/packages/sirius/package.py
hainest/spack
c592e17d49118f253b552ef6165745ded8ac0ea5
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-06-28T04:48:37.000Z
2021-06-28T04:48:37.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os from spack import * class Sirius(CMakePackage, CudaPackage): """Domain specific library for electronic st...
47.052419
100
0.658325
e21c30ecf8eacac10a2e9a02214e7a0bd455a029
393
py
Python
setup.py
noatgnu/dotDNA
316aa159c914e39334d30d340fee1f067ce74e68
[ "MIT" ]
1
2021-02-09T08:51:18.000Z
2021-02-09T08:51:18.000Z
setup.py
noatgnu/dotDNA
316aa159c914e39334d30d340fee1f067ce74e68
[ "MIT" ]
null
null
null
setup.py
noatgnu/dotDNA
316aa159c914e39334d30d340fee1f067ce74e68
[ "MIT" ]
null
null
null
""" setup.py install dot_dna by pip """ from setuptools import setup setup( name='dot_dna', version='0.1', packages=['dot_dna'], url='', license='MIT', author='noatgnu', author_email='toan.phungkhoiquoctoan@gmail.com', description='Extract data from SnapGene .dna file. Part of the pars...
20.684211
117
0.64631
7dd915c1cf10d19dd25af1af6e7c9e9f73a6c5f5
393
py
Python
backend/src/eegflow/asgi.py
chrisferreyra13/Neurodata
580d9950897d2d3c171c575100214bdf28e5ef1c
[ "MIT" ]
null
null
null
backend/src/eegflow/asgi.py
chrisferreyra13/Neurodata
580d9950897d2d3c171c575100214bdf28e5ef1c
[ "MIT" ]
null
null
null
backend/src/eegflow/asgi.py
chrisferreyra13/Neurodata
580d9950897d2d3c171c575100214bdf28e5ef1c
[ "MIT" ]
null
null
null
""" ASGI config for neurodata project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SET...
23.117647
78
0.78626
8f4d3ee8a72cf8a7e3272a6826e7b99ecbf55cb5
3,650
py
Python
18.Web Scraping with Python Scrapy - RM/04_Acting_Human/profiles/profiles/middlewares.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
3
2020-06-01T04:17:18.000Z
2020-12-18T03:05:55.000Z
18.Web Scraping with Python Scrapy - RM/04_Acting_Human/profiles/profiles/middlewares.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
1
2020-04-25T08:01:59.000Z
2020-04-25T08:01:59.000Z
18.Web Scraping with Python Scrapy - RM/04_Acting_Human/profiles/profiles/middlewares.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
7
2020-04-26T10:02:36.000Z
2021-06-08T05:12:46.000Z
# Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals # useful for handling different item types with a single interface from itemadapter import is_item, ItemAdapter class ProfilesSpiderMiddleware: ...
35.096154
78
0.674521
b144a653a593d9954802e81e06a0da736e2dcda2
6,735
py
Python
mergify_engine/tests/unit/conftest.py
truthiswill/mergify-engine
c7495d23387d0f003e4ce6aeff89ee8139b83f6b
[ "Apache-2.0" ]
null
null
null
mergify_engine/tests/unit/conftest.py
truthiswill/mergify-engine
c7495d23387d0f003e4ce6aeff89ee8139b83f6b
[ "Apache-2.0" ]
6
2022-03-15T08:59:04.000Z
2022-03-28T07:42:05.000Z
mergify_engine/tests/unit/conftest.py
truthiswill/mergify-engine
c7495d23387d0f003e4ce6aeff89ee8139b83f6b
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # 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, so...
33.507463
93
0.609503
2bcd4f9b531eed84bd44b251766f46304cbe41d8
1,529
py
Python
delta/data/frontend/fbank_test.py
0xflotus/delta
01018da60aa9380ba272a3b5df52d8ccde8ceac7
[ "Apache-2.0" ]
null
null
null
delta/data/frontend/fbank_test.py
0xflotus/delta
01018da60aa9380ba272a3b5df52d8ccde8ceac7
[ "Apache-2.0" ]
null
null
null
delta/data/frontend/fbank_test.py
0xflotus/delta
01018da60aa9380ba272a3b5df52d8ccde8ceac7
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. # 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/LI...
34.75
80
0.695226
c70068df3c2e719d001881d60bfe0fafbdfc8464
19,093
py
Python
2 Class FFT (filter and no filter)/src/myClasses.py
DiamondLightSource/FTIR-Filtering-Experimental
8dc46643cd48aaf0f8456fcf851a9b30cb05c8bb
[ "Apache-2.0" ]
1
2016-10-26T10:34:43.000Z
2016-10-26T10:34:43.000Z
2 Class FFT (filter and no filter)/src/myClasses.py
DiamondLightSource/FTIR-Filtering-Experimental
8dc46643cd48aaf0f8456fcf851a9b30cb05c8bb
[ "Apache-2.0" ]
null
null
null
2 Class FFT (filter and no filter)/src/myClasses.py
DiamondLightSource/FTIR-Filtering-Experimental
8dc46643cd48aaf0f8456fcf851a9b30cb05c8bb
[ "Apache-2.0" ]
2
2018-03-06T06:38:57.000Z
2018-03-29T09:58:48.000Z
''' Created on 7 Jul 2015 @author: flb41892 ''' import numpy as np import cmath as m class fft(): def __init__(self): pass def _zerofill(self,single,highfold,zerofill,ymax,ymaxinterf,yscaling): single = single - np.mean(single) # eliminate offset of interferogram single = single*yscali...
41.59695
135
0.59184
cce70eab95aaf70d65fea1b2c6a347795ef8102b
7,735
py
Python
webull/tests/test_webull.py
Xbeninni/webull
b323307505589c90a280e7062308f52fae5a0310
[ "MIT" ]
1
2021-02-27T13:31:58.000Z
2021-02-27T13:31:58.000Z
webull/tests/test_webull.py
Xbeninni/webull
b323307505589c90a280e7062308f52fae5a0310
[ "MIT" ]
null
null
null
webull/tests/test_webull.py
Xbeninni/webull
b323307505589c90a280e7062308f52fae5a0310
[ "MIT" ]
2
2020-08-21T02:46:48.000Z
2022-03-06T09:43:32.000Z
import pytest import requests_mock from unittest.mock import MagicMock from webull.webull import webull, endpoints ''' [HOW TO RUN TESTS] pip install pytest requests_mocks python -m pytest -v ''' ##################################################### ################# FIXTURES ################## ##########...
23.654434
107
0.601422
e3ea631c664c5009d76ee3aaebc30d4dab55b126
545
py
Python
src/sl_new_pds/_constants.py
nuuuwan/sl_new_pds
a12e72f4f6edc60923431c7efbfebf546b462944
[ "MIT" ]
null
null
null
src/sl_new_pds/_constants.py
nuuuwan/sl_new_pds
a12e72f4f6edc60923431c7efbfebf546b462944
[ "MIT" ]
null
null
null
src/sl_new_pds/_constants.py
nuuuwan/sl_new_pds
a12e72f4f6edc60923431c7efbfebf546b462944
[ "MIT" ]
null
null
null
"""Constants.""" from gig.ent_types import ENTITY_TYPE CACHE_NAME = 'sl_new_pds' CACHE_TIMEOUT = 3600 # PARENT_TO_CHILD_TYPE = { # ENTITY_TYPE.DISTRICT: ENTITY_TYPE.DSD, # ENTITY_TYPE.DSD: ENTITY_TYPE.GND, # } PARENT_TO_CHILD_TYPE = { ENTITY_TYPE.ED: ENTITY_TYPE.PD, ENTITY_TYPE.PD: ENTITY_TYPE.GND, ...
18.793103
50
0.737615
7fc69076976673fa3708a3a66bf4ceaafc9b49ed
1,571
py
Python
wagtail/tests/testapp/migrations/0056_streampage_nested_streamblock.py
Nawarrr/wagtail
4db71de5a2af19086026605be8fcb92c4be623aa
[ "BSD-3-Clause" ]
null
null
null
wagtail/tests/testapp/migrations/0056_streampage_nested_streamblock.py
Nawarrr/wagtail
4db71de5a2af19086026605be8fcb92c4be623aa
[ "BSD-3-Clause" ]
null
null
null
wagtail/tests/testapp/migrations/0056_streampage_nested_streamblock.py
Nawarrr/wagtail
4db71de5a2af19086026605be8fcb92c4be623aa
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.9 on 2020-08-12 20:27 from django.db import migrations import wagtail.core.blocks import wagtail.core.fields import wagtail.tests.testapp.models class Migration(migrations.Migration): dependencies = [ ("tests", "0055_eventpage_childobject_i18n"), ] operations = [ ...
33.425532
88
0.422661
246fe579c1abad511c3338467467a5e416c0781c
4,574
py
Python
tests/functional/pyocf/types/shared.py
wutthichai46/ocf
8fb531724723a68fb5bd838dfd9d267f9132cdef
[ "BSD-3-Clause-Clear" ]
2
2021-04-15T14:56:05.000Z
2021-04-15T14:56:07.000Z
tests/functional/pyocf/types/shared.py
wutthichai46/ocf
8fb531724723a68fb5bd838dfd9d267f9132cdef
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/functional/pyocf/types/shared.py
wutthichai46/ocf
8fb531724723a68fb5bd838dfd9d267f9132cdef
[ "BSD-3-Clause-Clear" ]
null
null
null
# # Copyright(c) 2019 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause-Clear # import logging from ctypes import CFUNCTYPE, c_size_t, c_char_p, Structure, c_void_p from enum import IntEnum, auto from threading import Event from ..utils import Size as S class OcfErrorCode(IntEnum): OCF_ERR_INVAL = 10000...
28.234568
79
0.647355
ed911334f94bfc8daff51020856d1f430f535ba4
225
py
Python
app.py
jamie-meyer/LandHo
8dbf00a133e80c49ac2be478635739cdf86b7640
[ "Unlicense" ]
null
null
null
app.py
jamie-meyer/LandHo
8dbf00a133e80c49ac2be478635739cdf86b7640
[ "Unlicense" ]
null
null
null
app.py
jamie-meyer/LandHo
8dbf00a133e80c49ac2be478635739cdf86b7640
[ "Unlicense" ]
null
null
null
from app import create_app if __name__ == '__main__': port = 5000 app = create_app() # Or pass 'live' to NOT be in debug mode app.run(host='0.0.0.0', port=port, debug=True) else: application = create_app()
22.5
64
0.648889
2c95365af6e77e86562c0bfbfa163cff1b93efdf
1,306
py
Python
z2/part3/updated_part2_batch/jm/parser_errors_2/481245646.py
kozakusek/ipp-2020-testy
09aa008fa53d159672cc7cbf969a6b237e15a7b8
[ "MIT" ]
1
2020-04-16T12:13:47.000Z
2020-04-16T12:13:47.000Z
z2/part3/updated_part2_batch/jm/parser_errors_2/481245646.py
kozakusek/ipp-2020-testy
09aa008fa53d159672cc7cbf969a6b237e15a7b8
[ "MIT" ]
18
2020-03-06T17:50:15.000Z
2020-05-19T14:58:30.000Z
z2/part3/updated_part2_batch/jm/parser_errors_2/481245646.py
kozakusek/ipp-2020-testy
09aa008fa53d159672cc7cbf969a6b237e15a7b8
[ "MIT" ]
18
2020-03-06T17:45:13.000Z
2020-06-09T19:18:31.000Z
from part1 import ( gamma_board, gamma_busy_fields, gamma_delete, gamma_free_fields, gamma_golden_move, gamma_golden_possible, gamma_move, gamma_new, ) """ scenario: test_random_actions uuid: 481245646 """ """ random actions, total chaos """ board = gamma_new(2, 3, 4, 1) assert board is...
26.653061
46
0.672282
52d16d788b6344883c50fb11328541dadecfcdc5
9,705
py
Python
vlattice/scripts.py
odarbelaeze/vegas-lattice
e8a465d7fbdeaf8be852497a66cb29ed184f6e93
[ "MIT" ]
3
2016-12-10T05:46:27.000Z
2021-05-21T06:55:02.000Z
vlattice/scripts.py
odarbelaeze/vegas-lattice
e8a465d7fbdeaf8be852497a66cb29ed184f6e93
[ "MIT" ]
1
2016-02-03T15:46:05.000Z
2016-02-04T15:29:46.000Z
vlattice/scripts.py
odarbelaeze/vegas-lattice
e8a465d7fbdeaf8be852497a66cb29ed184f6e93
[ "MIT" ]
1
2016-02-03T14:06:25.000Z
2016-02-03T14:06:25.000Z
import collections import itertools import json import click import numpy from .lattice import Atom from .lattice import Vertex from .lattice import Lattice from .lattice import NanoParticle from .lattice import DepletedLattice from .material import Material Geometry = collections.namedtuple( 'Geometry', ['site...
35.811808
80
0.644616
37acf131148ac40f2cf0140236525bb741b2e9d3
1,774
py
Python
campus/wvm/wvm_campus.py
VolVox99/OpenCourseAPI
edfe51c8ee050ad0bf99c03f5ed421ce247cc01f
[ "MIT" ]
9
2020-10-02T00:10:46.000Z
2022-01-06T00:48:59.000Z
campus/wvm/wvm_campus.py
VolVox99/OpenCourseAPI
edfe51c8ee050ad0bf99c03f5ed421ce247cc01f
[ "MIT" ]
8
2020-09-06T22:13:36.000Z
2020-12-15T20:37:17.000Z
campus/wvm/wvm_campus.py
VolVox99/OpenCourseAPI
edfe51c8ee050ad0bf99c03f5ed421ce247cc01f
[ "MIT" ]
4
2020-09-08T02:26:56.000Z
2022-03-11T20:43:55.000Z
import json from os.path import join from tinydb import TinyDB from common import ApiError from .wvm_settings import DB_DIR, CURRENT_YEAR, CURRENT_TERM, CURRENT_TERM_CODES class WVMCampus: CAMPUS = ['wv', 'mn'] QUARTER_TO_NUM = { 'winter': 1, 'spring': 3, 'summer': 5, 'fall'...
27.292308
102
0.568771
f307e457b62c289f80f66c2b7948026ae8861b4a
3,287
py
Python
simple_slack/blocks/__init__.py
wooddar/simple-slack-messaging
8eed3e06352b68b427e3b460276fb04549bd26c4
[ "MIT" ]
1
2019-09-16T11:21:12.000Z
2019-09-16T11:21:12.000Z
simple_slack/blocks/__init__.py
wooddar/simple-slack-messaging
8eed3e06352b68b427e3b460276fb04549bd26c4
[ "MIT" ]
null
null
null
simple_slack/blocks/__init__.py
wooddar/simple-slack-messaging
8eed3e06352b68b427e3b460276fb04549bd26c4
[ "MIT" ]
null
null
null
""" https://api.slack.com/reference/messaging/blocks """ import typing from pprint import pformat from simple_slack.blocks import block_accessories from simple_slack.blocks import block_objects from simple_slack.utils import RenderedSlackElement class Block(RenderedSlackElement): _block_type: str def __init_...
29.881818
88
0.669912
4484b7517758bf5a73aca963e48f131f97a75012
3,101
py
Python
packages/grid/apps/domain/src/main/core/model_centric/syft_assets/plan_manager.py
exityan/PySyft
35166c487a5be57f9ad28929ed88a8ba6bdd5aeb
[ "Apache-2.0" ]
425
2019-09-22T06:14:53.000Z
2022-03-30T02:17:34.000Z
packages/grid/apps/domain/src/main/core/model_centric/syft_assets/plan_manager.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
352
2019-09-17T15:32:51.000Z
2022-03-12T01:07:35.000Z
packages/grid/apps/domain/src/main/core/model_centric/syft_assets/plan_manager.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
208
2019-09-18T18:32:10.000Z
2022-03-24T01:10:11.000Z
# third party import syft as sy from syft import deserialize from syft import serialize from syft.proto.core.plan.plan_pb2 import Plan as PlanPB # grid relative from ...exceptions import PlanInvalidError from ...exceptions import PlanNotFoundError from ...exceptions import PlanTranslationError from ...manager.database...
29.817308
82
0.569816
20ff97c4b36fc8f6caf66e9f94e7a46895171360
43,515
py
Python
scipy/stats/tests/test_qmc.py
mbbessa/scipy
ee5d1dd7084c615e46d046dea7ef58bda0dab2d8
[ "BSD-3-Clause" ]
3
2021-12-15T10:06:16.000Z
2022-02-08T19:55:58.000Z
scipy/stats/tests/test_qmc.py
mbbessa/scipy
ee5d1dd7084c615e46d046dea7ef58bda0dab2d8
[ "BSD-3-Clause" ]
3
2021-03-23T21:51:50.000Z
2021-04-06T10:51:42.000Z
scipy/stats/tests/test_qmc.py
mbbessa/scipy
ee5d1dd7084c615e46d046dea7ef58bda0dab2d8
[ "BSD-3-Clause" ]
1
2018-11-28T02:59:34.000Z
2018-11-28T02:59:34.000Z
import os from collections import Counter from itertools import combinations, product import pytest import numpy as np from numpy.testing import (assert_allclose, assert_almost_equal, assert_equal, assert_array_almost_equal, assert_array_equal) from scipy.stats imp...
39.559091
79
0.553166
591549585baa6131bf91f281ca942f089c1163ab
790
py
Python
gomoku_game/cli.py
Forestjylee/gomoku-AI
547a27cdf479a67d1973bb9475ceeb2a785f12e5
[ "MIT" ]
null
null
null
gomoku_game/cli.py
Forestjylee/gomoku-AI
547a27cdf479a67d1973bb9475ceeb2a785f12e5
[ "MIT" ]
null
null
null
gomoku_game/cli.py
Forestjylee/gomoku-AI
547a27cdf479a67d1973bb9475ceeb2a785f12e5
[ "MIT" ]
null
null
null
from core import Gomoku from prettytable import PrettyTable def help(): pt = PrettyTable(["Command", "Parameters", "Description"]) pt.add_row(["h/help", "-", "Show all commands and corresponding description."]) pt.add_row(["s/start", "-", "Start a new game"]) pt.add_row(["d/drop", "row, col", "Drop pi...
27.241379
83
0.572152
e4458e4a163a03a81e8ef31447ea3f2cd7c4f0c6
3,404
py
Python
hivemind/server/connection_handler.py
skobellev/hivemind
0d7818b2cd9de1c2543c1165e633da42a44a6e0e
[ "MIT" ]
null
null
null
hivemind/server/connection_handler.py
skobellev/hivemind
0d7818b2cd9de1c2543c1165e633da42a44a6e0e
[ "MIT" ]
null
null
null
hivemind/server/connection_handler.py
skobellev/hivemind
0d7818b2cd9de1c2543c1165e633da42a44a6e0e
[ "MIT" ]
null
null
null
import asyncio import multiprocessing as mp import os import pickle from typing import Dict import grpc import torch import uvloop from hivemind.proto import runtime_pb2, runtime_pb2_grpc as runtime_grpc from hivemind.server.expert_backend import ExpertBackend from hivemind.utils import get_logger, serialize_torch_te...
45.386667
118
0.707991
a97e983f737e16bfb14ec544791fc6c51ccaef67
4,419
py
Python
knack/testsdk/checkers.py
szaydel/knack
cd590312b9b4ea1402d7a0a76814f6ca4da7fab8
[ "MIT" ]
133
2019-05-22T18:07:28.000Z
2022-03-19T09:06:59.000Z
knack/testsdk/checkers.py
szaydel/knack
cd590312b9b4ea1402d7a0a76814f6ca4da7fab8
[ "MIT" ]
61
2019-05-21T02:12:07.000Z
2022-03-16T04:58:04.000Z
knack/testsdk/checkers.py
szaydel/knack
cd590312b9b4ea1402d7a0a76814f6ca4da7fab8
[ "MIT" ]
37
2019-05-21T13:46:52.000Z
2022-03-01T22:29:36.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
46.03125
107
0.599231
d8d43f37c3765ff5c0f9fbed187bfe03b5ff8d79
5,714
py
Python
invenio_requests/customizations/base/request_types.py
max-moser/invenio-requests-1
97a281b6b322d0feed5eb5e2a30bfa3d6a2a19f9
[ "MIT" ]
null
null
null
invenio_requests/customizations/base/request_types.py
max-moser/invenio-requests-1
97a281b6b322d0feed5eb5e2a30bfa3d6a2a19f9
[ "MIT" ]
null
null
null
invenio_requests/customizations/base/request_types.py
max-moser/invenio-requests-1
97a281b6b322d0feed5eb5e2a30bfa3d6a2a19f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2021 - 2022 TU Wien. # Copyright (C) 2021 CERN. # # Invenio-Requests is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Base class for creating custom types of requests. The `RequestType` clas...
34.841463
87
0.673434
bf8aa7fd400a0dc61b6cd7de3360236e4d331cdd
6,843
py
Python
httpserver_beta.py
yangqinwhu/opentron
653db54d5f8461ebbfd58818fee5f055f61dc7eb
[ "MIT" ]
null
null
null
httpserver_beta.py
yangqinwhu/opentron
653db54d5f8461ebbfd58818fee5f055f61dc7eb
[ "MIT" ]
null
null
null
httpserver_beta.py
yangqinwhu/opentron
653db54d5f8461ebbfd58818fee5f055f61dc7eb
[ "MIT" ]
1
2021-06-04T05:21:59.000Z
2021-06-04T05:21:59.000Z
#http server """ Note:If you need to control gpios, first stop the robot server with systemctl stop opentrons-robot-server. Until you restart the server with systemctl start opentrons-robot-server, you will be unable to control the robot using the Opentrons app. """ import socketserver from http.server import BaseHTTPR...
30.686099
138
0.599006
e6bbf821e55fff46f2c28176c8ff8812206fd34e
9,986
py
Python
Cogs/Humor.py
holgern/CommunityUpvoteBot
b9af069749707ae03936f8015a42a4af57aef57f
[ "MIT" ]
5
2018-06-27T07:59:42.000Z
2018-07-05T20:35:24.000Z
Cogs/Humor.py
holgern/BeemBot.py
b9af069749707ae03936f8015a42a4af57aef57f
[ "MIT" ]
null
null
null
Cogs/Humor.py
holgern/BeemBot.py
b9af069749707ae03936f8015a42a4af57aef57f
[ "MIT" ]
null
null
null
import asyncio import discord import random import json import time import os from discord.ext import commands from Cogs import Message from Cogs import FuzzySearch from Cogs import GetImage from Cogs import Nullify from Cogs import Message from Cogs import DL from Cogs import Admin def setup(bot): ...
39.470356
165
0.562588
2715f59da686246be638b8f5901690ce218e2b8d
2,801
py
Python
plots/score_analysis.py
HerbertMcSnout/witwicky-trees
831caaec058c785ebd8164a5175210bee161ca0c
[ "MIT" ]
null
null
null
plots/score_analysis.py
HerbertMcSnout/witwicky-trees
831caaec058c785ebd8164a5175210bee161ca0c
[ "MIT" ]
null
null
null
plots/score_analysis.py
HerbertMcSnout/witwicky-trees
831caaec058c785ebd8164a5175210bee161ca0c
[ "MIT" ]
null
null
null
import torch import numpy import matplotlib.pyplot as plt import os import colorsys import sys sys.path.append('../') import nmt.structs as structs import nmt.configurations as config dpi = 500 lw = 0.8 adjust_right = 0.7 # make room for legend lines = dict() # e.g. dict(en2vi='--') colors = dict() # e.g. dict(...
32.569767
98
0.667976
c10eb7ff1fa40f5d5856065b92512babc09f416f
146
py
Python
Scripts/Maperipy/RoundElevation.py
cojalvo/Map
50fcd7d33bfdaf63c014a53f57b898d146b80da0
[ "MIT" ]
2
2019-02-19T04:22:31.000Z
2021-04-05T19:29:59.000Z
Scripts/Maperipy/RoundElevation.py
cojalvo/Map
50fcd7d33bfdaf63c014a53f57b898d146b80da0
[ "MIT" ]
null
null
null
Scripts/Maperipy/RoundElevation.py
cojalvo/Map
50fcd7d33bfdaf63c014a53f57b898d146b80da0
[ "MIT" ]
2
2022-01-23T09:39:57.000Z
2022-01-23T09:45:46.000Z
def roundEle(e): for set in e.tagSets: if set.hasTag('ele'): return('('+str(int(round(float(set['ele']),0)))+')') return('')
24.333333
57
0.527397
e30ab6556fc52d77a30b0488e83c2a71209fea5c
1,796
py
Python
examples/custom_context.py
BenitzCoding/Fusion.py
ed57645f4bcb7f961a7738c27aceecb920266404
[ "MIT" ]
8
2021-10-15T01:05:49.000Z
2022-01-02T11:07:05.000Z
examples/custom_context.py
BenitzCoding/Fusion.py
ed57645f4bcb7f961a7738c27aceecb920266404
[ "MIT" ]
3
2021-10-10T16:48:05.000Z
2021-10-10T16:48:48.000Z
examples/custom_context.py
BenitzCoding/Fusion.py
ed57645f4bcb7f961a7738c27aceecb920266404
[ "MIT" ]
1
2021-12-09T03:15:09.000Z
2021-12-09T03:15:09.000Z
import random import discord from discord.ext import commands class MyContext(commands.Context): async def tick(self, value): # reacts to the message with an emoji # depending on whether value is True or False # if its True, it'll add a green check mark # otherwise, it'll add a re...
34.538462
75
0.659243
a2f8d2387a2275d1e90eb800e934382632e63418
18,126
py
Python
qiskit_nature/drivers/molecule.py
jschuhmac/qiskit-nature
b8b1181d951cf8fa76fe0db9e5ea192dad5fb186
[ "Apache-2.0" ]
1
2022-02-15T08:34:51.000Z
2022-02-15T08:34:51.000Z
qiskit_nature/drivers/molecule.py
jschuhmac/qiskit-nature
b8b1181d951cf8fa76fe0db9e5ea192dad5fb186
[ "Apache-2.0" ]
null
null
null
qiskit_nature/drivers/molecule.py
jschuhmac/qiskit-nature
b8b1181d951cf8fa76fe0db9e5ea192dad5fb186
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2020, 2022. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
36.252
99
0.610449
1aeb06c301f3861f8db110daed237fdf5ac86a92
1,113
py
Python
examples/utils.py
kotyara1005/a_star_illustration
f018980ec3fd62f122be2cee105666b05878de87
[ "MIT" ]
1
2018-05-29T14:17:40.000Z
2018-05-29T14:17:40.000Z
examples/utils.py
kotyara1005/a_star_illustration
f018980ec3fd62f122be2cee105666b05878de87
[ "MIT" ]
null
null
null
examples/utils.py
kotyara1005/a_star_illustration
f018980ec3fd62f122be2cee105666b05878de87
[ "MIT" ]
2
2018-02-18T14:33:55.000Z
2019-02-17T19:28:32.000Z
# -*- coding: utf-8 -*- import math from itertools import tee from a_star import Node, Graph def euclid(node1, node2): return math.sqrt((node1.x - node2.x) ** 2 + (node1.y - node2.y) ** 2) def g(node): """Default distance between nodes is 1""" first, second = tee(node.path, 2) next(second, None) ...
26.5
75
0.618149
1101b9d612f8f2d03ca48b061a87145123b904bf
605
py
Python
vnpy/applications/VnCrypto/run.py
WongLynn/vnpy_Amerlin-1.1.20
d701d8f12c29cc33f58ea025920b0c7240f74f82
[ "MIT" ]
11
2019-10-28T13:01:48.000Z
2021-06-20T03:38:09.000Z
vnpy/applications/VnCrypto/run.py
Rayshawn8/vnpy_Amerlin-1.1.20
d701d8f12c29cc33f58ea025920b0c7240f74f82
[ "MIT" ]
null
null
null
vnpy/applications/VnCrypto/run.py
Rayshawn8/vnpy_Amerlin-1.1.20
d701d8f12c29cc33f58ea025920b0c7240f74f82
[ "MIT" ]
6
2019-10-28T13:16:13.000Z
2020-09-08T08:03:41.000Z
# encoding: UTF-8 import sys from vnpy.trader.uiQt import createQApp from vnpy.event import EventEngine from vnpy.applications.utils import initialize_main_engine # 当前目录组件 from vnpy.trader.uiCryptoWindow import MainWindow #---------------------------------------------------------------------- def main(): """主...
17.285714
71
0.593388
e98c62c1829db05f654b4c95f0a1266d08360374
5,852
py
Python
passwdgen/generator.py
thanethomson/passwdgen
1e0ac64fe9fb4ed7fa73ddf51c3b05a82f87558e
[ "MIT" ]
3
2016-12-05T16:09:03.000Z
2021-08-06T01:56:05.000Z
passwdgen/generator.py
thanethomson/passwdgen
1e0ac64fe9fb4ed7fa73ddf51c3b05a82f87558e
[ "MIT" ]
null
null
null
passwdgen/generator.py
thanethomson/passwdgen
1e0ac64fe9fb4ed7fa73ddf51c3b05a82f87558e
[ "MIT" ]
1
2021-03-23T08:17:43.000Z
2021-03-23T08:17:43.000Z
# -*- coding: utf-8 -*- import math from .utils import secure_random, load_word_list from .constants import * __all__ = [ "chars", "words" ] def chars(charset=None, length=None, min_entropy=None): """Generates a character-based password. If the length parameter is supplied, the min_entropy parameter ...
36.575
115
0.650205
86b98a75fa0799b7f542f4aa781381694260a452
62,639
py
Python
Teensy - Video Features Only - Remote Control/PTS_Driver_Teensy3-2_TStep/PTSApp/not used/PTSAppOLD.py
cbradburne/Pan-Tilt-Mount
a67081495847dd68cc1d47587fd8187d07320ed5
[ "MIT" ]
7
2021-01-05T15:19:37.000Z
2022-02-02T21:29:31.000Z
Teensy - Video Features Only - Remote Control/PTS_Driver_Teensy3-2_TStep/PTSApp/not used/PTSAppOLD.py
cbradburne/Pan-Tilt-Mount
a67081495847dd68cc1d47587fd8187d07320ed5
[ "MIT" ]
null
null
null
Teensy - Video Features Only - Remote Control/PTS_Driver_Teensy3-2_TStep/PTSApp/not used/PTSAppOLD.py
cbradburne/Pan-Tilt-Mount
a67081495847dd68cc1d47587fd8187d07320ed5
[ "MIT" ]
4
2021-07-26T12:06:19.000Z
2022-02-17T17:43:23.000Z
import pygame from pygame.cursors import tri_left import pygame_gui import time import serial.tools.list_ports from collections import deque from pygame_gui import UIManager from pygame_gui.elements import UIButton from pygame_gui.elements import UITextEntryLine from pygame_gui.elements import UIDropDownMenu from pyga...
38.809789
120
0.455978
31ca29700c6c11881950a76cb59f39b9014cf2db
1,079
py
Python
result.py
sthagen/AVSignSeek
0b626a9b6296ad5e67843dc988271e9cb987913c
[ "MIT" ]
305
2017-11-22T12:32:23.000Z
2022-02-12T11:21:38.000Z
result.py
realmadaha/AVSignSeek
df700c9a535a66cdd22447563b3d026b1019f64a
[ "MIT" ]
3
2017-11-22T17:21:05.000Z
2020-10-08T13:30:45.000Z
result.py
realmadaha/AVSignSeek
df700c9a535a66cdd22447563b3d026b1019f64a
[ "MIT" ]
67
2017-11-22T12:57:58.000Z
2021-05-29T03:31:01.000Z
import string from utils import strings def print_results(file_bin, signature_range_list, output_file): out = open(output_file, "w") out.write("=== AVSignSeek ===\n") for signature_range in signature_range_list: start = signature_range[0] end = signature_range[1] print("[+] Signa...
29.972222
101
0.526413
544d0bba3c6e54f8416763851ab6b7f73509072c
1,203
py
Python
amazon_paapi/errors/exceptions.py
frenners/python-amazon-paapi
9cb744bef17f5127231367430191df12126e9c24
[ "MIT" ]
121
2020-03-07T06:56:56.000Z
2022-03-30T21:03:43.000Z
amazon_paapi/errors/exceptions.py
frenners/python-amazon-paapi
9cb744bef17f5127231367430191df12126e9c24
[ "MIT" ]
61
2020-03-03T11:03:58.000Z
2022-01-20T19:27:49.000Z
amazon_paapi/errors/exceptions.py
frenners/python-amazon-paapi
9cb744bef17f5127231367430191df12126e9c24
[ "MIT" ]
29
2020-03-04T18:08:22.000Z
2022-03-25T18:49:46.000Z
"""Custom exceptions module""" class AmazonException(Exception): """Common base class for all Amazon API exceptions.""" def __init__(self, reason: str): super().__init__() self.reason = reason def __str__(self) -> str: return '%s' % self.reason class InvalidArgumentException(Ama...
26.152174
72
0.713217
4c8a6324128fd2860045b3ffaf18b08fa42c6ea3
450
py
Python
src/tensorneko/visualization/color.py
ControlNet/tensorneko
70dfb2f6395e1703dbdf5d5adcfed7b1334efb8f
[ "MIT" ]
9
2021-05-23T17:38:09.000Z
2021-12-30T19:12:12.000Z
src/tensorneko/visualization/color.py
ControlNet/tensorneko
70dfb2f6395e1703dbdf5d5adcfed7b1334efb8f
[ "MIT" ]
null
null
null
src/tensorneko/visualization/color.py
ControlNet/tensorneko
70dfb2f6395e1703dbdf5d5adcfed7b1334efb8f
[ "MIT" ]
null
null
null
from enum import Enum class Colors(Enum): GREEN = "#C3E88D" YELLOW = "#FFCB6B" RED = "#F07178" BLUE = "#82AAFF" PURPLE = "#C792EA" ORANGE = "#F78C6C" AZURE = "#467CDA" SKY = "#89DDFF" BLACK = "#2B2B2B" GRAY = "#616161" WHITE = "#EEFFFF" BLANK = "#FFFFFF" class Continu...
18
29
0.535556
078422ebbc5ae0581718f210345631f3fddebe06
649
py
Python
tf_keras_vis/utils/callbacks.py
ZNHU/tf-keras-vis
6e010665d697195b7e3e39c9bd63c30ff5730975
[ "MIT" ]
1
2021-05-30T10:49:42.000Z
2021-05-30T10:49:42.000Z
tf_keras_vis/utils/callbacks.py
ZNHU/tf-keras-vis
6e010665d697195b7e3e39c9bd63c30ff5730975
[ "MIT" ]
null
null
null
tf_keras_vis/utils/callbacks.py
ZNHU/tf-keras-vis
6e010665d697195b7e3e39c9bd63c30ff5730975
[ "MIT" ]
1
2021-05-30T10:49:46.000Z
2021-05-30T10:49:46.000Z
import warnings warnings.warn(('`tf_keras_vis.utils.callbacks` module is deprecated. ' 'Please use `tf_keras_vis.activation_maximization.callbacks` instead.'), DeprecationWarning) from tf_keras_vis.activation_maximization.callbacks import \ Callback as OptimizerCallback # noqa: F401 ...
43.266667
87
0.775039
b5d50bf529d631223f5a4e0185c5ad8b721f26f9
272
py
Python
pdfuploader/views.py
akifumi-maeda/django-pdf-uploader
0f0e41805d0f9789fbadc19deb32c766721f8bdb
[ "MIT" ]
null
null
null
pdfuploader/views.py
akifumi-maeda/django-pdf-uploader
0f0e41805d0f9789fbadc19deb32c766721f8bdb
[ "MIT" ]
null
null
null
pdfuploader/views.py
akifumi-maeda/django-pdf-uploader
0f0e41805d0f9789fbadc19deb32c766721f8bdb
[ "MIT" ]
null
null
null
from django.contrib.auth.views import LoginView, LogoutView from .forms import LoginForm class MyLoginView(LoginView): form_class = LoginForm template_name = 'registration/login.html' class MyLogoutView(LogoutView): template_name = 'registration/logout.html'
30.222222
59
0.790441
6491567d97abcf09a76950d98afa7975116c9897
30
py
Python
select_all.py
sandervalstar/autokey-scripts
01c0deb574db0b3ea76fc021ae9602a350148a22
[ "MIT" ]
1
2019-10-01T07:46:14.000Z
2019-10-01T07:46:14.000Z
select_all.py
sandervalstar/autokey-scripts
01c0deb574db0b3ea76fc021ae9602a350148a22
[ "MIT" ]
null
null
null
select_all.py
sandervalstar/autokey-scripts
01c0deb574db0b3ea76fc021ae9602a350148a22
[ "MIT" ]
null
null
null
keyboard.send_keys('<ctrl>+a')
30
30
0.733333
b833925b0a796989df91e261d80bd1da7735c530
504
py
Python
server/rideshare/migrations/0021_auto_20170316_1902.py
aadabi/tagrides
980a6f7df62f1bb9b396eca79421388c36987f45
[ "Unlicense" ]
2
2018-03-21T23:32:09.000Z
2018-03-22T01:39:51.000Z
server/rideshare/migrations/0021_auto_20170316_1902.py
aadabi/Cruzer
980a6f7df62f1bb9b396eca79421388c36987f45
[ "Unlicense" ]
null
null
null
server/rideshare/migrations/0021_auto_20170316_1902.py
aadabi/Cruzer
980a6f7df62f1bb9b396eca79421388c36987f45
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-17 02:02 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rideshare', '0020_auto_20170316_1900'), ] operations = [ migrations.AlterFi...
22.909091
57
0.626984
905c664030ef9d83307941d7c4f1f6bc8c78dff9
1,196
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/leetcode/Rotate_Linked_List.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
5
2021-06-02T23:44:25.000Z
2021-12-27T16:21:57.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/leetcode/Rotate_Linked_List.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
22
2021-05-31T01:33:25.000Z
2021-10-18T18:32:39.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/leetcode/Rotate_Linked_List.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
3
2021-06-19T03:37:47.000Z
2021-08-31T00:49:51.000Z
# Given a linked list, rotate the list to the right by k places, where k is non-negative. # # Example 1: # # Input: 1->2->3->4->5->NULL, k = 2 # Output: 4->5->1->2->3->NULL # Explanation: # rotate 1 steps to the right: 5->1->2->3->4->NULL # rotate 2 steps to the right: 4->5->1->2->3->NULL # Example 2: # # Input: 0->1->...
21.745455
89
0.533445
dcfcc4bb6efc48f3827b0c35dbb4641c1ce785f5
1,915
py
Python
deepreg/dataset/load.py
mathpluscode/DeepReg
80854094feafec998fa6237199066556c73f31f9
[ "Apache-2.0" ]
null
null
null
deepreg/dataset/load.py
mathpluscode/DeepReg
80854094feafec998fa6237199066556c73f31f9
[ "Apache-2.0" ]
null
null
null
deepreg/dataset/load.py
mathpluscode/DeepReg
80854094feafec998fa6237199066556c73f31f9
[ "Apache-2.0" ]
null
null
null
import os from copy import deepcopy from typing import Optional from deepreg.dataset.loader.interface import DataLoader from deepreg.registry import FILE_LOADER_CLASS, REGISTRY def get_data_loader(data_config: dict, mode: str) -> Optional[DataLoader]: """ Return the corresponding data loader. Can't be pl...
38.3
88
0.696606
20e0b468c9e88685c429e56c3551b29000cb2b44
276
py
Python
main.py
Hedy88/hurricane
15bce944e7b1e60493c9ac5dafdf8497956d758b
[ "Apache-2.0" ]
2
2022-01-10T18:29:25.000Z
2022-01-11T04:56:47.000Z
main.py
Hedy88/hurricane
15bce944e7b1e60493c9ac5dafdf8497956d758b
[ "Apache-2.0" ]
null
null
null
main.py
Hedy88/hurricane
15bce944e7b1e60493c9ac5dafdf8497956d758b
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template import config print("welcome to hurricane!") app = Flask(__name__) @app.route("/") def main(): return render_template('index.html') if __name__ == "__main__": app.run(debug=True, host='localhost', port=config.PORT)
19.714286
59
0.692029
af91dda5a6be3838e4737d4ccb51c14cea3f6d8e
6,093
py
Python
tests/manage/mcg/test_bucket_creation.py
srivickynesh/ocs-ci
994b8635a2f44ec7982585cfb293215aa8b27d2a
[ "MIT" ]
null
null
null
tests/manage/mcg/test_bucket_creation.py
srivickynesh/ocs-ci
994b8635a2f44ec7982585cfb293215aa8b27d2a
[ "MIT" ]
null
null
null
tests/manage/mcg/test_bucket_creation.py
srivickynesh/ocs-ci
994b8635a2f44ec7982585cfb293215aa8b27d2a
[ "MIT" ]
null
null
null
import logging import re import botocore import pytest from ocs_ci.framework.pytest_customization.marks import ( tier1, tier3, acceptance, performance, ) from ocs_ci.ocs.constants import DEFAULT_STORAGECLASS_RBD from ocs_ci.ocs.exceptions import CommandFailed from ocs_ci.ocs.resources.objectbucket imp...
33.85
87
0.483013
2948592b2dcd00beed8ad19f481e2e90f7519ac3
9,445
py
Python
mlflow/store/artifact/hdfs_artifact_repo.py
brightsparc/mlflow
31e4f969d3b65a2fd3e246e88a23433b72904d49
[ "Apache-2.0" ]
2
2020-09-15T14:19:27.000Z
2021-05-21T09:59:02.000Z
mlflow/store/artifact/hdfs_artifact_repo.py
brightsparc/mlflow
31e4f969d3b65a2fd3e246e88a23433b72904d49
[ "Apache-2.0" ]
36
2019-04-11T21:45:45.000Z
2022-03-11T05:05:16.000Z
mlflow/store/artifact/hdfs_artifact_repo.py
brightsparc/mlflow
31e4f969d3b65a2fd3e246e88a23433b72904d49
[ "Apache-2.0" ]
2
2020-06-28T01:39:36.000Z
2022-01-06T17:26:50.000Z
import os import posixpath import tempfile from contextlib import contextmanager from six.moves import urllib from mlflow.entities import FileInfo from mlflow.exceptions import MlflowException from mlflow.store.artifact.artifact_repo import ArtifactRepository from mlflow.utils.file_utils import mkdir, relative_path_t...
39.190871
99
0.647327
cca5916fc874358f6409fc27c2101b0231e80578
9,837
py
Python
adanet/core/estimator_distributed_test_runner.py
cweill/adanet
821c549a67467d9cd430a55d86af5120cb1b257e
[ "Apache-2.0" ]
1
2022-01-19T13:08:25.000Z
2022-01-19T13:08:25.000Z
adanet/core/estimator_distributed_test_runner.py
cweill/adanet
821c549a67467d9cd430a55d86af5120cb1b257e
[ "Apache-2.0" ]
1
2019-03-04T16:57:55.000Z
2019-03-04T16:57:55.000Z
adanet/core/estimator_distributed_test_runner.py
cweill/adanet
821c549a67467d9cd430a55d86af5120cb1b257e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The AdaNet 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
36.298893
103
0.702247
f8fd7177e17712779407a974548e59f400fa4afb
7,482
py
Python
neutron/agent/linux/l3_tc_lib.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
1,080
2015-01-04T08:35:00.000Z
2022-03-27T09:15:52.000Z
neutron/agent/linux/l3_tc_lib.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
24
2015-02-21T01:48:28.000Z
2021-11-26T02:38:56.000Z
neutron/agent/linux/l3_tc_lib.py
congnt95/neutron
6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1
[ "Apache-2.0" ]
1,241
2015-01-02T10:47:10.000Z
2022-03-27T09:42:23.000Z
# 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 # d...
39.378947
79
0.60679
3fbaa22be9b7360f8ff4abfc841d88698cd979a3
17,838
py
Python
conda_forge_tick/migrators/broken_rebuild.py
BastianZim/cf-scripts
5fe723931a11aa88c16a9046ad8d95abf6e4844e
[ "MIT" ]
33
2018-02-28T04:05:46.000Z
2022-01-13T15:34:43.000Z
conda_forge_tick/migrators/broken_rebuild.py
BastianZim/cf-scripts
5fe723931a11aa88c16a9046ad8d95abf6e4844e
[ "MIT" ]
1,371
2018-02-25T00:32:37.000Z
2022-03-29T23:44:42.000Z
conda_forge_tick/migrators/broken_rebuild.py
BastianZim/cf-scripts
5fe723931a11aa88c16a9046ad8d95abf6e4844e
[ "MIT" ]
62
2018-02-25T00:28:48.000Z
2022-02-22T02:55:28.000Z
import os import networkx as nx from conda_forge_tick.migrators.core import Migrator BROKEN_PACKAGES = """\ linux-ppc64le/adios2-2.7.1-mpi_mpich_py36ha1d8cba_0.tar.bz2 linux-ppc64le/adios2-2.7.1-mpi_mpich_py36hbc05bcd_1.tar.bz2 linux-ppc64le/adios2-2.7.1-mpi_mpich_py37h4d01b4f_1.tar.bz2 linux-ppc64le/adios2-2.7.1-m...
45.738462
76
0.791569
44550103ea1b68a57e8497ea4b570f0727199fdd
70
py
Python
game/test_joonmoo.py
herjmoo/pystudy
728f6bbb06873a44c02f000344f9b62f3bc42d7c
[ "MIT" ]
null
null
null
game/test_joonmoo.py
herjmoo/pystudy
728f6bbb06873a44c02f000344f9b62f3bc42d7c
[ "MIT" ]
1
2018-07-11T05:44:14.000Z
2018-07-11T05:44:14.000Z
game/test_joonmoo.py
herjmoo/pystudy
728f6bbb06873a44c02f000344f9b62f3bc42d7c
[ "MIT" ]
2
2018-07-12T06:04:02.000Z
2018-07-12T06:05:23.000Z
print("Hello test") print("Hello test2") print("Hello test3")
5.833333
20
0.628571
8923bf94a74c63e44f2b90eb7e9298657822d0ee
25,830
py
Python
edb/edgeql/compiler/context.py
rmbhub/edgedb
c75586baa60ccdc5379411ce6eeb8648a06a7d06
[ "Apache-2.0" ]
1
2022-01-15T14:05:03.000Z
2022-01-15T14:05:03.000Z
edb/edgeql/compiler/context.py
rmbhub/edgedb
c75586baa60ccdc5379411ce6eeb8648a06a7d06
[ "Apache-2.0" ]
null
null
null
edb/edgeql/compiler/context.py
rmbhub/edgedb
c75586baa60ccdc5379411ce6eeb8648a06a7d06
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB 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...
35.238745
79
0.655207
3fc1dcfcdaaf38d2c170bfa84b26b641518792c4
534
py
Python
pygin/color.py
CarlosMatheus/Engine
1467a919ad4489d0d4cb041b5f02aa67c6be6664
[ "MIT" ]
22
2018-12-29T16:31:19.000Z
2022-03-07T13:12:40.000Z
download/subdirectories/game_engine/color.py
CarlosMatheus/PyginWeb
a6151bd4e59559a60c7c23ab8e1355517c63fe2d
[ "MIT" ]
3
2018-08-14T14:45:40.000Z
2020-01-22T08:03:27.000Z
download/subdirectories/game_engine/color.py
CarlosMatheus/PyginWeb
a6151bd4e59559a60c7c23ab8e1355517c63fe2d
[ "MIT" ]
6
2018-05-29T20:02:02.000Z
2021-11-13T19:35:23.000Z
import random class Color: white = (255, 255, 255) black = (0, 0, 0) red = (255, 0, 0) yellow = (247, 251, 0) blue = (36, 127, 244) blue_0 = (102, 102, 255) green = (86, 244, 85) silver = (192, 192, 192) gray = (112, 112, 112) orange = (253, 102, 0) purple = (244, 113, 244) ...
23.217391
85
0.518727
910417d2cd2083cc514aa9dbdd136672f5c21b08
3,573
py
Python
python/triton/ops/cross_entropy.py
h-vetinari/triton
d9dd97492f228020573b39a9cec14ee3b8776957
[ "MIT" ]
146
2015-12-29T03:42:45.000Z
2020-02-05T14:50:55.000Z
python/triton/ops/cross_entropy.py
h-vetinari/triton
d9dd97492f228020573b39a9cec14ee3b8776957
[ "MIT" ]
28
2015-12-26T01:38:22.000Z
2018-11-18T05:20:26.000Z
python/triton/ops/cross_entropy.py
h-vetinari/triton
d9dd97492f228020573b39a9cec14ee3b8776957
[ "MIT" ]
52
2016-02-26T17:27:28.000Z
2020-01-20T03:13:40.000Z
import torch import triton import triton.language as tl def next_power_of_2(n): n -= 1 n |= n >> 1 n |= n >> 2 n |= n >> 4 n |= n >> 8 n |= n >> 16 n += 1 return n def num_warps(N): if N < 2048: return 4 elif N < 8192: return 8 return 16 @triton.heurist...
33.707547
89
0.626924
c876baadfb51f8f372c495c4ed52b5a99450bcc0
8,242
py
Python
src/main/app-resources/node_flood_extraction/flood_cd.py
geohazards-tep/dcs-sar-flood-tool
c23a68950fb66369f4ab0aa6705d089bf6255686
[ "Apache-2.0" ]
1
2021-01-11T21:14:12.000Z
2021-01-11T21:14:12.000Z
src/main/app-resources/node_flood_extraction/flood_cd.py
geohazards-tep/dcs-sar-flood-tool
c23a68950fb66369f4ab0aa6705d089bf6255686
[ "Apache-2.0" ]
null
null
null
src/main/app-resources/node_flood_extraction/flood_cd.py
geohazards-tep/dcs-sar-flood-tool
c23a68950fb66369f4ab0aa6705d089bf6255686
[ "Apache-2.0" ]
1
2017-11-23T13:04:40.000Z
2017-11-23T13:04:40.000Z
#!/opt/pyenv/shims/python # -*- coding: iso-8859-15 -*- import os import numpy as np import gdal import sys import temporal_spatial_filter import sar_cd import glob import scipy.ndimage import argparse #stringa di lancio: flood_cd.py --amp_list=lista_immagini_ampiezza --cohe_long_list=lista_coerenze_lunghe --window='...
32.577075
156
0.669134
8cee129c0e71d04e1a7b24603339aec92c43ccaa
8,498
py
Python
PythonBuddy/app.py
Venkatprasadkalet1/PythonBuddy
5115409ddff4b9a7c2a757bc086f44cfe5b678fb
[ "BSD-3-Clause" ]
1
2019-10-09T13:49:19.000Z
2019-10-09T13:49:19.000Z
PythonBuddy/app.py
Venkatprasadkalet1/PythonBuddy
5115409ddff4b9a7c2a757bc086f44cfe5b678fb
[ "BSD-3-Clause" ]
null
null
null
PythonBuddy/app.py
Venkatprasadkalet1/PythonBuddy
5115409ddff4b9a7c2a757bc086f44cfe5b678fb
[ "BSD-3-Clause" ]
null
null
null
"""Created originally by Ethan Chiu 10/25/16 v2.0.0 created on 8/4/18 Complete redesign for efficiency and scalability Uses Python 3 now v2.1.0 created on 5/10/19 Improve efficiency and design """ from .pylint_errors import pylint_dict_final from flask import Flask, render_template, request, jsonify, session from fla...
28.232558
136
0.55919
613e97eed5a32a4d9c4119eaac827f928f1232b5
2,664
py
Python
forms-flow-api/src/formsflow_api/resources/application_history.py
andrepestana-aot/forms-flow-ai
18a77a713f4af70ba077d3821db96970c0c403ae
[ "Apache-2.0" ]
132
2020-04-16T20:26:18.000Z
2022-03-30T12:39:50.000Z
forms-flow-api/src/formsflow_api/resources/application_history.py
andrepestana-aot/forms-flow-ai
18a77a713f4af70ba077d3821db96970c0c403ae
[ "Apache-2.0" ]
102
2020-06-05T21:30:27.000Z
2022-03-30T04:53:25.000Z
forms-flow-api/src/formsflow_api/resources/application_history.py
andrepestana-aot/forms-flow-ai
18a77a713f4af70ba077d3821db96970c0c403ae
[ "Apache-2.0" ]
91
2020-04-15T18:54:51.000Z
2022-03-29T04:58:49.000Z
"""API endpoints for managing application resource.""" from http import HTTPStatus from flask import current_app, request from flask_restx import Namespace, Resource from formsflow_api.schemas import ApplicationHistorySchema from formsflow_api.services import ApplicationHistoryService from formsflow_api.utils import...
32.888889
87
0.611862
7cb6b265f3c1150f67ef24c7313f91e71607ca69
1,654
py
Python
Mathematics/Combinations.py
Jeff-Andrade/math-experiments
75cad47ab28f96002cd0231bf774d1f2669fbabc
[ "MIT" ]
2
2022-03-02T01:56:43.000Z
2022-03-03T21:36:11.000Z
Mathematics/Combinations.py
Jeff-Andrade/math-experiments
75cad47ab28f96002cd0231bf774d1f2669fbabc
[ "MIT" ]
1
2022-03-06T22:20:08.000Z
2022-03-06T22:24:04.000Z
Mathematics/Combinations.py
Jeff-Andrade/math-experiments
75cad47ab28f96002cd0231bf774d1f2669fbabc
[ "MIT" ]
null
null
null
from math import factorial from random import choice # Stores all valid permutations of the given data. Valid permutations are those not present in this list globalPermutations = [] def sampler(data): # Stores the permutation generated by one iteration of the sampler function if it is valid permutati...
40.341463
184
0.724909
5ff54893c7378c3e4988dd2b2555a12e0d4f6f85
395
py
Python
dglt/contrib/moses/moses/model/gvae/__init__.py
uta-smile/CD-MVGNN
b48f4cd14befed298980a83edb417ab6809f0af6
[ "MIT" ]
3
2022-02-06T09:13:51.000Z
2022-02-19T15:03:35.000Z
dglt/contrib/moses/moses/model/gvae/__init__.py
uta-smile/CD-MVGNN
b48f4cd14befed298980a83edb417ab6809f0af6
[ "MIT" ]
1
2022-02-14T23:16:27.000Z
2022-02-14T23:16:27.000Z
dglt/contrib/moses/moses/model/gvae/__init__.py
uta-smile/CD-MVGNN
b48f4cd14befed298980a83edb417ab6809f0af6
[ "MIT" ]
null
null
null
from .config import get_train_parser as gvae_parser from .config import get_generate_parser as gvae_generate_parser #from .model_cvae import CVAE as GVAE #from .model_gvae import Model as GVAE from .model_gvae_v2 import Model as GVAE from .trainer import GVAETrainer from .generator import GVAEGenerator __all__ = ['gva...
39.5
89
0.817722
08ceeff12c2a6ee62212a18498cd6880997296e3
1,759
py
Python
application/routes.py
N-A-Podgornov/CFT-MLC
ded9267c5b8053a15bdcc67be9f83097749cfb13
[ "Apache-2.0" ]
null
null
null
application/routes.py
N-A-Podgornov/CFT-MLC
ded9267c5b8053a15bdcc67be9f83097749cfb13
[ "Apache-2.0" ]
null
null
null
application/routes.py
N-A-Podgornov/CFT-MLC
ded9267c5b8053a15bdcc67be9f83097749cfb13
[ "Apache-2.0" ]
null
null
null
import os import shutil from flask import render_template, redirect, url_for, request from werkzeug.utils import secure_filename from config import Config from application import app from application.model import Model @app.route('/') def index(): return redirect(url_for('submit')) def allowed_file(filename): ...
30.859649
106
0.704377
2b1b1a1e13c8478ec9b57fc82473b829781387d2
76,732
py
Python
sprytile_utils.py
Plide/Sprytile
8552250a6f004ab5bef2f9d4ce06ef7d16786c6b
[ "MIT" ]
null
null
null
sprytile_utils.py
Plide/Sprytile
8552250a6f004ab5bef2f9d4ce06ef7d16786c6b
[ "MIT" ]
null
null
null
sprytile_utils.py
Plide/Sprytile
8552250a6f004ab5bef2f9d4ce06ef7d16786c6b
[ "MIT" ]
null
null
null
import bpy import bgl import blf import bmesh import math import sys from bpy_extras import view3d_utils from bpy_extras.io_utils import ImportHelper from bpy.props import StringProperty from bmesh.types import BMVert, BMEdge, BMFace from mathutils import Matrix, Vector, Quaternion from mathutils.geometry ...
36.34865
158
0.617031
a2435d596be2ff4975bf834f1f5fc2af63fe28ae
2,370
py
Python
homeassistant/components/mychevy/binary_sensor.py
zalke/home-assistant
a31e49c857722c0723dc5297cd83cbce0f8716f6
[ "Apache-2.0" ]
4
2019-07-03T22:36:57.000Z
2019-08-10T15:33:25.000Z
homeassistant/components/mychevy/binary_sensor.py
zalke/home-assistant
a31e49c857722c0723dc5297cd83cbce0f8716f6
[ "Apache-2.0" ]
7
2019-08-23T05:26:02.000Z
2022-03-11T23:57:18.000Z
homeassistant/components/mychevy/binary_sensor.py
zalke/home-assistant
a31e49c857722c0723dc5297cd83cbce0f8716f6
[ "Apache-2.0" ]
3
2019-04-28T16:35:45.000Z
2020-05-28T15:21:59.000Z
"""Support for MyChevy binary sensors.""" import logging from homeassistant.components.binary_sensor import ( ENTITY_ID_FORMAT, BinarySensorDevice) from homeassistant.core import callback from homeassistant.util import slugify from . import DOMAIN as MYCHEVY_DOMAIN, UPDATE_TOPIC, EVBinarySensorConfig _LOGGER = l...
28.214286
78
0.659494
cdb121d2f9e09f030a35679ec5523cf10f526b3d
3,546
py
Python
sasync/test/people.py
edsuom/sAsync
fe5119719d12a09665face6731ffc67bbc45971a
[ "Apache-2.0" ]
1
2020-09-25T18:13:00.000Z
2020-09-25T18:13:00.000Z
sasync/test/people.py
edsuom/sAsync
fe5119719d12a09665face6731ffc67bbc45971a
[ "Apache-2.0" ]
null
null
null
sasync/test/people.py
edsuom/sAsync
fe5119719d12a09665face6731ffc67bbc45971a
[ "Apache-2.0" ]
null
null
null
# sAsync: # An enhancement to the SQLAlchemy package that provides persistent # item-value stores, arrays, and dictionaries, and an access broker for # conveniently managing database access, table setup, and # transactions. Everything can be run in an asynchronous fashion using # the Twisted framework and its deferred ...
30.834783
74
0.642414
fb1fc46703b9d405ae28449705479f6c5bda3716
3,800
py
Python
test_elasticsearch/run_tests.py
mesejo/elasticsearch-py
041a433de263482e306b3855ab67b93c03978966
[ "Apache-2.0" ]
null
null
null
test_elasticsearch/run_tests.py
mesejo/elasticsearch-py
041a433de263482e306b3855ab67b93c03978966
[ "Apache-2.0" ]
null
null
null
test_elasticsearch/run_tests.py
mesejo/elasticsearch-py
041a433de263482e306b3855ab67b93c03978966
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Licensed to Elasticsearch B.V under one or more agreements. # Elasticsearch B.V licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information from __future__ import print_function import atexit import sys from os import environ from os....
31.147541
88
0.611579
c0ddf691227de4f4c2fd7f074f9671edee3c1025
3,926
py
Python
tests/interface_plugins/dummy.py
H0R5E/aneris
f6617e3c16e11ae3ec11118b0cd82b747001665a
[ "MIT" ]
null
null
null
tests/interface_plugins/dummy.py
H0R5E/aneris
f6617e3c16e11ae3ec11118b0cd82b747001665a
[ "MIT" ]
7
2017-05-17T12:21:50.000Z
2019-07-08T11:17:17.000Z
tests/interface_plugins/dummy.py
H0R5E/aneris
f6617e3c16e11ae3ec11118b0cd82b747001665a
[ "MIT" ]
1
2017-03-21T10:14:19.000Z
2017-03-21T10:14:19.000Z
# -*- coding: utf-8 -*- """ This module contains the package interface to the demonstration class "Spreadsheet". Each package interface will be a subclass of the PackageInterface and certain attributes and methods must be defined for these to become "concrete". The attribute to be defined is called "id_map". This is ...
25.329032
79
0.587876
7a8b95adcc62894306cb50e5ce58869119bd63d2
5,918
py
Python
headline_cause/crowd/filter_candidates.py
IlyaGusev/NewsCausation
b1a1b3af637c6328a1d3327b30b5f4ca0a8f3752
[ "Apache-2.0" ]
7
2021-08-25T15:40:55.000Z
2022-02-28T06:40:50.000Z
headline_cause/crowd/filter_candidates.py
IlyaGusev/NewsCausation
b1a1b3af637c6328a1d3327b30b5f4ca0a8f3752
[ "Apache-2.0" ]
null
null
null
headline_cause/crowd/filter_candidates.py
IlyaGusev/NewsCausation
b1a1b3af637c6328a1d3327b30b5f4ca0a8f3752
[ "Apache-2.0" ]
null
null
null
import argparse import random import csv import spacy from nltk.metrics.distance import edit_distance from util import get_host, read_jsonl def normalize_entity(text, spacy_model): text = " ".join([token.lemma_ for token in spacy_model(text)]) return text.lower().replace(".", "") def main( input_path, ...
39.986486
92
0.605948
f744fc6487d6a5b44ccd43093761695e32cb6a8e
57,214
py
Python
py_insightvm_sdk/models/tag.py
greenpau/py_insightvm_sdk
bd881f26e14cb9f0f9c47927469ec992de9de8e6
[ "Apache-2.0" ]
2
2019-03-15T16:05:54.000Z
2020-07-19T18:37:50.000Z
py_insightvm_sdk/models/tag.py
greenpau/py_insightvm_sdk
bd881f26e14cb9f0f9c47927469ec992de9de8e6
[ "Apache-2.0" ]
1
2021-03-26T04:46:12.000Z
2021-03-26T04:51:23.000Z
py_insightvm_sdk/models/tag.py
greenpau/py_insightvm_sdk
bd881f26e14cb9f0f9c47927469ec992de9de8e6
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ InsightVM API # Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ...
163.936963
48,045
0.496434
d647a6ccb7e681248dfaa167a83e9dc4649ef8cf
3,520
py
Python
Proyecto/scripts/dispositivos.py
EdmundoSanchezM/Proyecto-Administracion-De-Servicios-En-Red
1f2c1b7bc70e039380ad5b3fe19889eeca330ed0
[ "MIT" ]
null
null
null
Proyecto/scripts/dispositivos.py
EdmundoSanchezM/Proyecto-Administracion-De-Servicios-En-Red
1f2c1b7bc70e039380ad5b3fe19889eeca330ed0
[ "MIT" ]
null
null
null
Proyecto/scripts/dispositivos.py
EdmundoSanchezM/Proyecto-Administracion-De-Servicios-En-Red
1f2c1b7bc70e039380ad5b3fe19889eeca330ed0
[ "MIT" ]
null
null
null
import scripts.get_snmp as g_snmp import scripts.levanta_snmp as lev_snmp import scripts.set_snmp as s_snmp import json, re def actualizar_datos_dispositivo(conexiones, nombre, localizacion, contacto, os): #nombre, locali, contac, sistem host = "" for c in conexiones: print(c) host = c ...
37.052632
371
0.709943
d5bd7f4af0b65018c1801502ae1cc9a679c2017f
1,169
py
Python
var/spack/repos/builtin/packages/r-dendextend/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/r-dendextend/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/r-dendextend/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RDendextend(RPackage): """dendextend: Extending 'Dendrogram' Functionality in R""" ho...
44.961538
96
0.706587
b587b70ff86cbe16288ef8e4973d159fcd4d1d49
204
py
Python
tests/basics/try_as_var.py
geowor01/micropython
7fb13eeef4a85f21cae36f1d502bcc53880e1815
[ "MIT" ]
7
2019-10-18T13:41:39.000Z
2022-03-15T17:27:57.000Z
tests/basics/try_as_var.py
geowor01/micropython
7fb13eeef4a85f21cae36f1d502bcc53880e1815
[ "MIT" ]
null
null
null
tests/basics/try_as_var.py
geowor01/micropython
7fb13eeef4a85f21cae36f1d502bcc53880e1815
[ "MIT" ]
2
2020-06-23T09:10:15.000Z
2020-12-22T06:42:14.000Z
try: raise ValueError(534) print("FAIL") raise SystemExit except ValueError as e: pass # Var bound in except block is automatically deleted try: e except NameError: print("PASS")
15.692308
52
0.681373
c6f97b4795b104bed05f879a2fa8e107eb2c8cfa
12,053
py
Python
train.py
levindabhi/SieveNet
a5e2263acf28b52a551d4e139328957cf454e7e8
[ "MIT" ]
48
2020-09-20T19:06:15.000Z
2022-02-21T14:52:13.000Z
train.py
bhavyashahh/SieveNet
3e998df8097c8cd6bbd53c296c07b2689a6ad00f
[ "MIT" ]
4
2021-02-01T02:13:50.000Z
2022-02-11T00:23:49.000Z
train.py
levindabhi/SieveNet
a5e2263acf28b52a551d4e139328957cf454e7e8
[ "MIT" ]
19
2020-09-20T19:07:06.000Z
2021-12-28T15:46:21.000Z
import torch import torch.nn.functional as F import torch.nn as nn from torch.utils.tensorboard import SummaryWriter import os.path as osp import os import time import warnings from visualization import board_add_image, board_add_images, load_checkpoint, save_checkpoint, save_images from dataset import SieveDataset, ...
40.446309
106
0.625985
0fb2646ed2779c99d1840612318c27508b370dbe
613
py
Python
automation/Deployment/greengrassHelloWorld.py
rithik/greengo
bc3549e58b494b0298e4a5d91d59a3244ce5d477
[ "MIT" ]
null
null
null
automation/Deployment/greengrassHelloWorld.py
rithik/greengo
bc3549e58b494b0298e4a5d91d59a3244ce5d477
[ "MIT" ]
null
null
null
automation/Deployment/greengrassHelloWorld.py
rithik/greengo
bc3549e58b494b0298e4a5d91d59a3244ce5d477
[ "MIT" ]
null
null
null
import greengrasssdk import platform from threading import Timer import time client = greengrasssdk.client('iot-data') my_platform = platform.platform() def greengrass_hello_world_run(): if not my_platform: client.publish(topic='hello/world', payload='Hello world New Test HERE! Sent from Greengrass Core.'...
30.65
151
0.758564
13fc559687f566580fbd1c53125141aa379fef66
397
py
Python
project/dealership/dealership/wsgi.py
Borjados/IngenieriaWeb
573590fe30327971affa3f6fc562dbb815e9e553
[ "bzip2-1.0.6" ]
null
null
null
project/dealership/dealership/wsgi.py
Borjados/IngenieriaWeb
573590fe30327971affa3f6fc562dbb815e9e553
[ "bzip2-1.0.6" ]
null
null
null
project/dealership/dealership/wsgi.py
Borjados/IngenieriaWeb
573590fe30327971affa3f6fc562dbb815e9e553
[ "bzip2-1.0.6" ]
null
null
null
""" WSGI config for dealership project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
b49c79125c31edb3d0dcb26c36c0226338ad48b9
43
py
Python
kg_practice/L3/model.py
lhwcv/NLP_practice.pytorch
8a6c83ec415705aeb4d9eca266f09081b52ca0d9
[ "Apache-2.0" ]
2
2021-12-11T01:17:54.000Z
2021-12-11T01:48:50.000Z
kg_practice/L3/model.py
lhwcv/NLP_practice.pytorch
8a6c83ec415705aeb4d9eca266f09081b52ca0d9
[ "Apache-2.0" ]
null
null
null
kg_practice/L3/model.py
lhwcv/NLP_practice.pytorch
8a6c83ec415705aeb4d9eca266f09081b52ca0d9
[ "Apache-2.0" ]
1
2022-02-18T16:04:38.000Z
2022-02-18T16:04:38.000Z
from src.models.text_cnn import Text_CNN
21.5
42
0.813953
4cd263a8c73300a579bb604df674d50fff1bfe21
7,814
py
Python
arcade/gui/elements/flat_button.py
EnlNovius/arcade
020d3aafecb6c202dd76cfdf1dbd576117a608c2
[ "MIT" ]
null
null
null
arcade/gui/elements/flat_button.py
EnlNovius/arcade
020d3aafecb6c202dd76cfdf1dbd576117a608c2
[ "MIT" ]
null
null
null
arcade/gui/elements/flat_button.py
EnlNovius/arcade
020d3aafecb6c202dd76cfdf1dbd576117a608c2
[ "MIT" ]
null
null
null
from typing import Optional, Tuple import arcade from arcade.gui import UIClickable, text_utils from arcade.gui.style import UIStyle class UIAbstractFlatButton(UIClickable): """ Style attributes: * font_name - List of font names * font_size * font_color * font_color_hover * font_color_pr...
31.508065
120
0.592782
992cb5b2c5390c05a0bdc5cf500cdb644392b9b5
1,708
py
Python
tests/test_mongo_dao.py
accelerationa/DistributedSpider
f2971e07c6713e80b91f0428f9b3b17955feb24a
[ "BSD-2-Clause" ]
null
null
null
tests/test_mongo_dao.py
accelerationa/DistributedSpider
f2971e07c6713e80b91f0428f9b3b17955feb24a
[ "BSD-2-Clause" ]
null
null
null
tests/test_mongo_dao.py
accelerationa/DistributedSpider
f2971e07c6713e80b91f0428f9b3b17955feb24a
[ "BSD-2-Clause" ]
null
null
null
import unittest from mongo_dao import TaskDBMongoDao from task_status import TaskStatus import uuid import time import pymongo from init_mongo_client import init_mongo_client from test_utils import what_env class MongoDaoTestNoMock(unittest.TestCase): @classmethod def setUpClass(self): self.skip = (wha...
34.857143
127
0.685597
0af6cae6ed9698b1621211bbad1cd5cc0e2cbb6d
451
py
Python
htorch/contrib/data/reader/conll_2003.py
Syhen/htorch
80f148f16039299220666f9b62e27e330a1b300c
[ "MIT" ]
null
null
null
htorch/contrib/data/reader/conll_2003.py
Syhen/htorch
80f148f16039299220666f9b62e27e330a1b300c
[ "MIT" ]
null
null
null
htorch/contrib/data/reader/conll_2003.py
Syhen/htorch
80f148f16039299220666f9b62e27e330a1b300c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Author: @heyao Created On: 2019/6/5 上午10:57 """ from htorch.contrib.data.reader.base import BaseCharLabeledReader class CoNLL2003Reader(BaseCharLabeledReader): def __init__(self): super(CoNLL2003Reader, self).__init__() @staticmethod def read_line(line): token...
25.055556
85
0.696231
5c1d53761628e82d437c2df33b0af15c2ed3f094
4,770
py
Python
examples/experiment_synthetic_curin.py
rajatsen91/MFTreeSearchCV
cf5ef5f537267c1c2c34a4f40042a051aad434f9
[ "MIT" ]
8
2019-10-24T22:27:10.000Z
2021-10-07T00:19:52.000Z
examples/experiment_synthetic_curin.py
rajatsen91/MFTreeSearchCV
cf5ef5f537267c1c2c34a4f40042a051aad434f9
[ "MIT" ]
1
2021-03-16T23:20:54.000Z
2021-05-25T20:43:27.000Z
examples/experiment_synthetic_curin.py
rajatsen91/MFTreeSearchCV
cf5ef5f537267c1c2c34a4f40042a051aad434f9
[ "MIT" ]
1
2020-07-21T21:18:58.000Z
2020-07-21T21:18:58.000Z
""" Running experiments for the synthetic functions. -- kandasamy@cs.cmu.edu """ # pylint: disable=import-error # pylint: disable=no-member # pylint: disable=invalid-name # pylint: disable=relative-import # pylint: disable=abstract-class-not-used from argparse import Namespace import numpy as np # Local imports f...
32.44898
88
0.706709
aea513c51a26f6cd133712ba4faefb3e5568189e
151
py
Python
persons_database/train/forms.py
Kanakala/elasticsearch
f86ab1cc57828ff2942be9d5cb9d48fbaa5718a7
[ "MIT" ]
null
null
null
persons_database/train/forms.py
Kanakala/elasticsearch
f86ab1cc57828ff2942be9d5cb9d48fbaa5718a7
[ "MIT" ]
null
null
null
persons_database/train/forms.py
Kanakala/elasticsearch
f86ab1cc57828ff2942be9d5cb9d48fbaa5718a7
[ "MIT" ]
null
null
null
from haystack.forms import SearchForm class RestaurantSearchForm(SearchForm): def no_query_found(self): return self.searchqueryset.all()
21.571429
40
0.768212
211513720ceccac2101c07637696ea9d9ca1c7cb
396
py
Python
back/piclodio3/wsgi.py
stimulee/piclodio3
09f23d608b36cfd0e2e4aec3310c57752e8b7c59
[ "MIT" ]
null
null
null
back/piclodio3/wsgi.py
stimulee/piclodio3
09f23d608b36cfd0e2e4aec3310c57752e8b7c59
[ "MIT" ]
null
null
null
back/piclodio3/wsgi.py
stimulee/piclodio3
09f23d608b36cfd0e2e4aec3310c57752e8b7c59
[ "MIT" ]
null
null
null
""" WSGI config for piclodio3 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SE...
23.294118
78
0.787879
31805e03822da6c5d48624e7ad3bc17e0bc6624f
469
py
Python
apps/bot/commands/EasyCommands/Git.py
Xoma163/Petrovich
026e246f6b7d492d9be2dea205e351ac83acd89e
[ "MIT" ]
4
2020-12-25T16:17:53.000Z
2022-01-19T15:06:19.000Z
apps/bot/commands/EasyCommands/Git.py
Xoma163/Petrovich
026e246f6b7d492d9be2dea205e351ac83acd89e
[ "MIT" ]
294
2020-07-17T15:45:21.000Z
2022-03-27T10:24:01.000Z
apps/bot/commands/EasyCommands/Git.py
Xoma163/Petrovich
026e246f6b7d492d9be2dea205e351ac83acd89e
[ "MIT" ]
3
2020-12-30T17:14:24.000Z
2021-12-19T09:14:22.000Z
from apps.bot.classes.Command import Command from apps.bot.classes.consts.Consts import Platform from apps.bot.utils.utils import get_tg_formatted_url class Git(Command): name = "гит" names = ["гитхаб"] name_tg = 'github' help_text = "ссылка на гитхаб" def start(self): url = 'https://git...
24.684211
53
0.667377
d350f0eae50087587393b9df861a1115d9e5bae6
2,046
py
Python
20/urls.py
haralwit/pu-afkforum
ea838cf2bac702b511a7dc285c5d8fcba31c893e
[ "MIT" ]
null
null
null
20/urls.py
haralwit/pu-afkforum
ea838cf2bac702b511a7dc285c5d8fcba31c893e
[ "MIT" ]
8
2020-06-06T01:45:02.000Z
2021-09-08T01:53:38.000Z
20/urls.py
haralwit/pu-afkforum
ea838cf2bac702b511a7dc285c5d8fcba31c893e
[ "MIT" ]
null
null
null
"""20 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based view...
58.457143
180
0.751222
a34242ccdba03a24ad8bd1af84a9dab4fd0775af
567
py
Python
tests/conftest.py
hugovk/tifffile
1b76885fdbd54e2407bba753c652f1f1b83b9e58
[ "BSD-3-Clause" ]
1
2021-02-26T02:54:18.000Z
2021-02-26T02:54:18.000Z
tests/conftest.py
hugovk/tifffile
1b76885fdbd54e2407bba753c652f1f1b83b9e58
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
hugovk/tifffile
1b76885fdbd54e2407bba753c652f1f1b83b9e58
[ "BSD-3-Clause" ]
null
null
null
# tifffile/tests/conftest.py collect_ignore = ['_tmp', 'data'] def pytest_report_header(config): try: from numpy import __version__ as numpy from tifffile import __version__ as tifffile from test_tifffile import config try: from imagecodecs import __version__ as imagec...
29.842105
77
0.631393
74461240c603360d725e94340a2f32b7820c55bd
5,022
py
Python
src/danny_NIST_NVD/cve_requests.py
anonyges/FortiSOAR_Connector_NVD
a4b0c45c68cd4ce54f7b73937c5230edfe5182f3
[ "MIT" ]
null
null
null
src/danny_NIST_NVD/cve_requests.py
anonyges/FortiSOAR_Connector_NVD
a4b0c45c68cd4ce54f7b73937c5230edfe5182f3
[ "MIT" ]
null
null
null
src/danny_NIST_NVD/cve_requests.py
anonyges/FortiSOAR_Connector_NVD
a4b0c45c68cd4ce54f7b73937c5230edfe5182f3
[ "MIT" ]
null
null
null
import requests import urllib3 import json from connectors.core.connector import get_logger, ConnectorError from .constants import LOGGER_NAME logger = get_logger(LOGGER_NAME) urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def cve_requests(config, params): startIndex = str(params.get('startI...
44.442478
400
0.56591
30f60e2178597b446d529ca89ee45a242ed2f2d5
694
py
Python
InputTest.py
KitronikLtd/Kitronik-Pico-Motor-Driver-Board-MicroPython
344e47752c198cf13c0b575f2a22df49e82fe19b
[ "MIT" ]
3
2021-05-20T11:48:40.000Z
2022-02-08T04:57:41.000Z
InputTest.py
KitronikLtd/Kitronik-Pico-Motor-Driver-Board-MicroPython
344e47752c198cf13c0b575f2a22df49e82fe19b
[ "MIT" ]
null
null
null
InputTest.py
KitronikLtd/Kitronik-Pico-Motor-Driver-Board-MicroPython
344e47752c198cf13c0b575f2a22df49e82fe19b
[ "MIT" ]
4
2021-05-14T16:31:29.000Z
2021-10-13T19:57:07.000Z
import PicoMotorDriver import utime board = PicoMotorDriver.KitronikPicoMotor() directions = ["f","r"] Input1 = machine.Pin(0, machine.Pin.IN, machine.Pin.PULL_DOWN) Input2 = machine.Pin(1, machine.Pin.IN, machine.Pin.PULL_DOWN) Input3 = machine.Pin(26, machine.Pin.IN, machine.Pin.PULL_UP) Input4 = machine.Pin(27, m...
24.785714
63
0.65562
f50b7f96940cafe442a64b6935dc96df9ef03959
240,205
py
Python
misc/cpplint.py
rsltgy/libgrape-lite
1063f1505e4e4cd29ab03a476efbab270f1e9f66
[ "Apache-2.0" ]
null
null
null
misc/cpplint.py
rsltgy/libgrape-lite
1063f1505e4e4cd29ab03a476efbab270f1e9f66
[ "Apache-2.0" ]
1
2021-01-12T02:20:51.000Z
2021-01-12T02:24:24.000Z
misc/cpplint.py
rsltgy/libgrape-lite
1063f1505e4e4cd29ab03a476efbab270f1e9f66
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2009 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list...
38.469731
97
0.651856