hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
ffb111154b6230e767d3d6b754c698cb36f4e73e
695
py
Python
HM_2/Ex2_3.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
HM_2/Ex2_3.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
HM_2/Ex2_3.py
NaychukAnastasiya/goiteens-python3-naychuk
a79d0af238a15f58a822bb5d8e4d48227d4a7bc1
[ "MIT" ]
null
null
null
# 3. В гравця є 100 одиниць HP (health points). В грі є 3 монстра: скелет, зомбі, павук. # Кожен з них наносить певний damage (урон) гравцю. # Перевірити чи помре гравець після 5 ударів зомбі, 1 удару скелету та 2 укусів павука, # якщо урон скелета = 15, зомбі = 5, павука = 40. Вивести повідомлення “You die!” якщ...
46.333333
103
0.715108
ffb11d6711dfc13fe70c4b975c5d437f2230334b
21,040
py
Python
submissions/nontargeted_attack/fgsm_par.py
sangxia/nips-2017-adversarial
6b766bb019a82189912236860b1850a25aad1737
[ "MIT" ]
47
2018-04-03T17:40:59.000Z
2022-03-15T06:18:39.000Z
submissions/nontargeted_attack/fgsm_par.py
Sunshine352/nips-2017-adversarial
6b766bb019a82189912236860b1850a25aad1737
[ "MIT" ]
2
2017-10-21T20:04:57.000Z
2019-12-16T10:49:48.000Z
submissions/nontargeted_attack/fgsm_par.py
Sunshine352/nips-2017-adversarial
6b766bb019a82189912236860b1850a25aad1737
[ "MIT" ]
13
2018-05-31T13:20:21.000Z
2020-09-09T04:07:56.000Z
import time start_time = time.time() import multiprocessing as mp mp.set_start_method('fork') import ctypes as c import argparse import os import numpy as np import pandas as pd from PIL import Image import image_generators def get_array(raw_arr, dims): return np.frombuffer(raw_arr).reshape(dims) def get_raw_a...
47.60181
146
0.563165
ffb1454d6d4f1f68e45ecb72b4fe4835e96133f7
2,530
py
Python
appengine/cr-buildbucket/test/errors_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/cr-buildbucket/test/errors_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/cr-buildbucket/test/errors_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import datetime from parameterized import parameterized from components import utils from testing_utils import testing import errors class ErrorsTest(te...
33.289474
76
0.743478
ffb17a41e0ab2933fab13a7018fc86b4ee836010
18,301
py
Python
dev/p5.py
lenmorld/Yackathon_keyword_map
c6e57d3b65911f94322bb22b07042f9c0b0071c2
[ "Apache-2.0" ]
1
2018-12-11T03:35:26.000Z
2018-12-11T03:35:26.000Z
dev/p5.py
lenmorld/Yackathon_keyword_map
c6e57d3b65911f94322bb22b07042f9c0b0071c2
[ "Apache-2.0" ]
null
null
null
dev/p5.py
lenmorld/Yackathon_keyword_map
c6e57d3b65911f94322bb22b07042f9c0b0071c2
[ "Apache-2.0" ]
null
null
null
import json import csv from pprint import pprint from itertools import islice ''' { "full_address" : "5185, rue Charleroi\nMontréal-Nord\nMontreal-Nord, QC H1G 3A2", "name" : "Da Bologna", "text" : "Good default order-in type of place.\n\nA bit on the pricey side when you can get a 2 for1 pizza for $30, feedin...
25.453408
328
0.536036
ffb1f34c093a3d9f794853bad21b765684be9b07
1,043
py
Python
bookops_worldcat/_session.py
BookOps-CAT/bookops-worldcat
879f91f9fe929246c0c07ed771979f31a59288b3
[ "MIT" ]
18
2020-05-01T13:35:12.000Z
2022-03-25T15:16:12.000Z
bookops_worldcat/_session.py
BookOps-CAT/bookops-worldcat
879f91f9fe929246c0c07ed771979f31a59288b3
[ "MIT" ]
37
2020-04-15T00:24:18.000Z
2022-03-31T14:07:24.000Z
bookops_worldcat/_session.py
BookOps-CAT/bookops-worldcat
879f91f9fe929246c0c07ed771979f31a59288b3
[ "MIT" ]
6
2020-04-27T23:25:15.000Z
2020-10-05T23:35:07.000Z
# -*- coding: utf-8 -*- """ Base session class to allow extention of functionality to Worldcat Search API and others. """ from typing import Optional, Tuple, Union import requests from . import __title__, __version__ # type: ignore from bookops_worldcat.errors import WorldcatSessionError class WorldcatSession(re...
26.74359
77
0.620326
ffb21fb619bf4c8f7aaedf12e139a017b8a1ea1c
3,053
py
Python
mmsegmentation/mmcv/ops/__init__.py
jfzhuang/ST_Memory
f253c05b7ecb37a1cbe9f312a628ba30b4555230
[ "MIT" ]
null
null
null
mmsegmentation/mmcv/ops/__init__.py
jfzhuang/ST_Memory
f253c05b7ecb37a1cbe9f312a628ba30b4555230
[ "MIT" ]
null
null
null
mmsegmentation/mmcv/ops/__init__.py
jfzhuang/ST_Memory
f253c05b7ecb37a1cbe9f312a628ba30b4555230
[ "MIT" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. from .bbox import bbox_overlaps from .border_align import BorderAlign, border_align from .box_iou_rotated import box_iou_rotated from .carafe import CARAFE, CARAFENaive, CARAFEPack, carafe, carafe_naive from .cc_attention import CrissCrossAttention from .contour_expand im...
33.184783
106
0.756305
ffb2492f615a28473cd7dc68ad8ea579936585af
7,209
py
Python
adoctor-check-scheduler/adoctor_check_scheduler/tests/unit/test_task_manager.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
adoctor-check-scheduler/adoctor_check_scheduler/tests/unit/test_task_manager.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
adoctor-check-scheduler/adoctor_check_scheduler/tests/unit/test_task_manager.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
#!/usr/bin/python3 # ****************************************************************************** # Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved. # licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a c...
44.5
99
0.550284
ffb267d57e2c1483c676ac63c7ff0f802a504913
647
py
Python
pywal/scripts/gtk_reload.py
blahsd/pywal
6e94d880a09c335d538e3660b4f70aff9b8e0490
[ "MIT" ]
9
2019-03-22T05:28:05.000Z
2021-10-08T05:29:57.000Z
pywal/scripts/gtk_reload.py
blahsd/pywal
6e94d880a09c335d538e3660b4f70aff9b8e0490
[ "MIT" ]
null
null
null
pywal/scripts/gtk_reload.py
blahsd/pywal
6e94d880a09c335d538e3660b4f70aff9b8e0490
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 """ Small Python 2 script to reload GTK2 themes. This uses Python2 since this requires 'send_clientmessage_toall()' which isn't available in Python 3. Original source: https://crunchbang.org/forums/viewtopic.php?id=39646 """ try: import gtk except ImportError: print("error: GTK reload r...
23.107143
69
0.718702
ffb26d86638aaf839df698b8abb9c49f2d6f9a2f
3,511
py
Python
appengine/findit/model/suspected_cl_confidence.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/model/suspected_cl_confidence.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/model/suspected_cl_confidence.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from google.appengine.ext import ndb from gae_libs.model.versioned_model import VersionedModel from libs.time_util import GetUTCNow class ConfidenceInform...
36.572917
80
0.7636
ffb26ed57efdaec6d33603240e7e0d9f6e7b5ce3
2,534
py
Python
tests/test_part_kway.py
xuhao1/mgmetis
35ff409f6d6d94103a122a8aec8c86788e20b1c6
[ "MIT" ]
4
2020-10-30T17:06:37.000Z
2022-03-23T06:05:09.000Z
tests/test_part_kway.py
xuhao1/mgmetis
35ff409f6d6d94103a122a8aec8c86788e20b1c6
[ "MIT" ]
3
2020-04-16T19:17:26.000Z
2022-02-13T06:17:05.000Z
tests/test_part_kway.py
xuhao1/mgmetis
35ff409f6d6d94103a122a8aec8c86788e20b1c6
[ "MIT" ]
3
2019-10-21T08:27:13.000Z
2021-08-02T14:28:07.000Z
# -*- coding: utf-8 -*- import numpy as np import pytest try: from mgmetis.parmetis import part_kway from mpi4py import MPI comm = MPI.COMM_WORLD has_mpi = True except (ImportError, ModuleNotFoundError): has_mpi = False def create_graph(dtype=None): # NOTE: test the example in the documentat...
30.166667
127
0.582478
ffb28bb417f9804b786893a720fcedd47f4853d2
1,017
py
Python
repos/spiketoolkit/spiketoolkit/curation/curation_gui.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
repos/spiketoolkit/spiketoolkit/curation/curation_gui.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
repos/spiketoolkit/spiketoolkit/curation/curation_gui.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
import ipywidgets as widgets from ipywidgets import interact class CurationGUI(widgets.DOMWidget): def __init__(self, sorting): ''' Parameters ---------- sorting ''' widgets.Widget.__init__(self) # To prevent automatic figure display when execution of the ce...
26.076923
77
0.576205
ffb3122f5b526c403a537fc7e2d88fda76411dec
13,767
py
Python
gpMgmt/test/behave_utils/PgHba.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
9
2018-04-20T03:31:01.000Z
2020-05-13T14:10:53.000Z
gpMgmt/test/behave_utils/PgHba.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
36
2017-09-21T09:12:27.000Z
2020-06-17T16:40:48.000Z
gpMgmt/test/behave_utils/PgHba.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
32
2017-08-31T12:50:52.000Z
2022-03-01T07:34:53.000Z
#!python """ Copyright (C) 2004-2017 Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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 Li...
36.324538
189
0.567008
ffb365d128ed52f58aaf4851d2c9a75dfd84eaa5
779
py
Python
py/cidoc_crm_types/properties/p17_was_motivated_by.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p17_was_motivated_by.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
py/cidoc_crm_types/properties/p17_was_motivated_by.py
minorg/cidoc-crm-types
9018bdbf0658e4d28a87bc94543e467be45d8aa5
[ "Apache-2.0" ]
null
null
null
from .p15_was_influenced_by import P15WasInfluencedBy from dataclasses import dataclass @dataclass class P17WasMotivatedBy(P15WasInfluencedBy): """ Scope note: This property describes an item or items that are regarded as a reason for carrying out the E7 Activity. For example, the discovery of a large hoard of t...
29.961538
143
0.750963
ffb37d538f922b56b0c1499147b6aafa15d03287
5,135
py
Python
zipline/examples/pairtrade.py
saeedamen/zipline
f30c249e0e95a3d43f54553f5c15e4508accc64e
[ "Apache-2.0" ]
3
2016-05-30T12:34:07.000Z
2017-10-09T18:33:48.000Z
zipline/examples/pairtrade.py
saeedamen/zipline
f30c249e0e95a3d43f54553f5c15e4508accc64e
[ "Apache-2.0" ]
null
null
null
zipline/examples/pairtrade.py
saeedamen/zipline
f30c249e0e95a3d43f54553f5c15e4508accc64e
[ "Apache-2.0" ]
6
2016-05-30T17:05:51.000Z
2021-01-27T09:42:50.000Z
#!/usr/bin/env python # # Copyright 2013 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
36.942446
77
0.632132
ffb37db96c269842823e2bdb80172033a7c468fa
945
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/webhook_paged.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/webhook_paged.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_05_01_preview/models/webhook_paged.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
33.75
141
0.577778
ffb37e75c41452d6f64045f820e5fc2a1ea5932f
4,331
py
Python
TA-zscaler-api/bin/ta_zscaler_api/aob_py3/splunktaucclib/rest_handler/endpoint/__init__.py
LetMeR00t/TA-zscaler-api
9a2cee3954bf75a814bb057cf36eb2b2b4c093f6
[ "MIT" ]
4
2022-03-04T11:11:30.000Z
2022-03-07T09:55:07.000Z
TA-zscaler-api/bin/ta_zscaler_api/aob_py3/splunktaucclib/rest_handler/endpoint/__init__.py
LetMeR00t/TA-zscaler-api
9a2cee3954bf75a814bb057cf36eb2b2b4c093f6
[ "MIT" ]
null
null
null
TA-zscaler-api/bin/ta_zscaler_api/aob_py3/splunktaucclib/rest_handler/endpoint/__init__.py
LetMeR00t/TA-zscaler-api
9a2cee3954bf75a814bb057cf36eb2b2b4c093f6
[ "MIT" ]
null
null
null
# # Copyright 2021 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
24.890805
84
0.60725
ffb3964def4fdae433ea12bb9debe2ea687f6946
543
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/operations/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/operations/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/version-tolerant/Expected/AcceptanceTests/XmsErrorResponseVersionTolerant/xmserrorresponseversiontolerant/operations/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
38.785714
94
0.552486
ffb399690a2d96354f8c4abb92304ad3d571a824
313
py
Python
oscar/lib/python2.7/site-packages/pip/_vendor/cachecontrol/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pip/_vendor/cachecontrol/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pip/_vendor/cachecontrol/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""CacheControl import Interface. Make it easy to import from cachecontrol without long namespaces. """ __author__ = 'Eric Larson' __email__ = 'eric@ionrock.org' __version__ = '0.11.7' from .wrapper import CacheControl from .adapter import CacheControlAdapter from .controller import CacheController
26.083333
66
0.766773
ffb3efa848831b3080a8a219fa659e77a83e55ca
980
py
Python
bay_opt/optimize.py
arbrasington/Optimization-Methods
e8035a887b4ba1a3a93338d49e8de4045019f093
[ "MIT" ]
null
null
null
bay_opt/optimize.py
arbrasington/Optimization-Methods
e8035a887b4ba1a3a93338d49e8de4045019f093
[ "MIT" ]
null
null
null
bay_opt/optimize.py
arbrasington/Optimization-Methods
e8035a887b4ba1a3a93338d49e8de4045019f093
[ "MIT" ]
null
null
null
import os import numpy as np import matplotlib.pyplot as plt from gpr import GaussianProcess from space import Space from opt import Optimizer inputs = {i: [int, [0, 10]] for i in range(10)} def f(x): return np.sum(x) # initialize surrogate n_init = 25 n_iters = 50 gp = GaussianProcess() space = Space(inputs)...
19.215686
55
0.62551
ffb43365327dca553aff6dfe553bae1b6c1d458c
731
py
Python
setup.py
cpmech/tlga
55c5b62f270dc26fc022ae9e41726bba0d01f1f7
[ "BSD-3-Clause" ]
null
null
null
setup.py
cpmech/tlga
55c5b62f270dc26fc022ae9e41726bba0d01f1f7
[ "BSD-3-Clause" ]
null
null
null
setup.py
cpmech/tlga
55c5b62f270dc26fc022ae9e41726bba0d01f1f7
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2012 Dorival de Moraes Pedroso. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from setuptools import setup, find_packages setup( name = 'tlga', version = '1.0.0', author = 'Dorival M Ped...
31.782609
64
0.577291
ffb4538588d44571690169035e4e07c6c105377d
4,617
py
Python
geokey_wegovnow/tests/test_utils.py
ExCiteS/geokey-wegonow
66df7e17fa3eb2d8da2e56e39236b019f98a2a08
[ "MIT" ]
null
null
null
geokey_wegovnow/tests/test_utils.py
ExCiteS/geokey-wegonow
66df7e17fa3eb2d8da2e56e39236b019f98a2a08
[ "MIT" ]
2
2017-02-22T13:20:29.000Z
2018-11-07T16:39:33.000Z
geokey_wegovnow/tests/test_utils.py
ExCiteS/geokey-wegonow
66df7e17fa3eb2d8da2e56e39236b019f98a2a08
[ "MIT" ]
null
null
null
"""Test all utils.""" from importlib import import_module from django.test import TestCase from django.conf import settings from django.http import HttpRequest from django.contrib.sites.models import Site from allauth.socialaccount.models import SocialAccount from allauth_uwum.views import UWUMAdapter, UWUMView fro...
33.456522
78
0.654104
ffb45a21b8881638a5b7be1fa1d41bc424c7aaf1
37
py
Python
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/DailyChallenge/DCModTowerPathRestriction/dc_mod_tower_path_restriction.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/DailyChallenge/DCModTowerPathRestriction/dc_mod_tower_path_restriction.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/DailyChallenge/DCModTowerPathRestriction/dc_mod_tower_path_restriction.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class DCModTowerPathRestriction: pass
37
37
0.918919
ffb499da98f643a963b9fc86bb68c9044170fc0b
15,486
py
Python
gslib/tests/test_mb.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
null
null
null
gslib/tests/test_mb.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
null
null
null
gslib/tests/test_mb.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
45.280702
80
0.652267
ffb4aa3a280c614c2d35f86efb17956461899ec7
3,287
py
Python
chirun/plastex/enumitem.py
sthagen/chirun-ncl-chirun
45897319d5203b9867b5d6e00b2db1aa90a6580c
[ "Apache-2.0" ]
5
2021-12-06T15:57:24.000Z
2022-01-24T20:34:00.000Z
chirun/plastex/enumitem.py
sthagen/chirun-ncl-chirun
45897319d5203b9867b5d6e00b2db1aa90a6580c
[ "Apache-2.0" ]
38
2021-12-09T13:16:46.000Z
2022-03-30T11:42:13.000Z
chirun/plastex/enumitem.py
sthagen/chirun-ncl-chirun
45897319d5203b9867b5d6e00b2db1aa90a6580c
[ "Apache-2.0" ]
1
2022-01-17T17:41:35.000Z
2022-01-17T17:41:35.000Z
from plasTeX import Command, encoding from plasTeX.Base.LaTeX.Lists import List from chirun.plastex.overrides.lists import numToRoman import re class enumerate_(List): macroName = 'enumerate' args = '[ options:dict:nox ]' refLabel = None class item(List.item): def invoke(self, tex): ...
30.435185
75
0.512017
ffb526da44e8e649aad4dea9714d1e4d0d1847a3
7,961
py
Python
test/test_parser_rdfstar.py
RDFLib/rdflib-rdfstar
c2ff299e624f40576a2f38e1a946e06c9fca766c
[ "BSD-3-Clause" ]
1
2022-03-02T10:25:44.000Z
2022-03-02T10:25:44.000Z
test/test_parser_rdfstar.py
RDFLib/rdflib-rdfstar
c2ff299e624f40576a2f38e1a946e06c9fca766c
[ "BSD-3-Clause" ]
3
2022-03-02T05:43:12.000Z
2022-03-29T23:29:26.000Z
test/test_parser_rdfstar.py
RDFLib/rdflib-rdfstar
c2ff299e624f40576a2f38e1a946e06c9fca766c
[ "BSD-3-Clause" ]
1
2022-03-15T22:05:24.000Z
2022-03-15T22:05:24.000Z
import pytest from pathlib import Path from shutil import copyfile from tempfile import TemporaryDirectory from rdflib.exceptions import ParserError from rdflib import Graph from rdflib.util import guess_format from rdflib.plugin import register from rdflib.parser import Parser register( "ttls", Parser, ...
37.375587
108
0.691119
ffb52edd6433e09dc77762e4bd3ab5f52d566119
129
py
Python
tests/__init__.py
anosillus/auto_setupper
185d7597b7a926a23ecaac6ea75ab6c38f2a111a
[ "MIT" ]
null
null
null
tests/__init__.py
anosillus/auto_setupper
185d7597b7a926a23ecaac6ea75ab6c38f2a111a
[ "MIT" ]
null
null
null
tests/__init__.py
anosillus/auto_setupper
185d7597b7a926a23ecaac6ea75ab6c38f2a111a
[ "MIT" ]
null
null
null
"""Top-level package for auto_setupper.""" __author__ = """anosillus""" __email__ = 'anosillus@gmail.com' __version__ = '0.1.0'
21.5
42
0.697674
ffb5511ff8fc1cbc3558607ea7b6b1b7a76c1653
3,713
py
Python
src/pybricks/hubs.py
TheVinhLuong102/pybricks-api
1259d5d33acb41b383445a4b1776b38084efb481
[ "MIT" ]
51
2020-04-02T10:03:45.000Z
2022-03-27T23:49:39.000Z
src/pybricks/hubs.py
LEGO-Robotics/Pybricks-API
1259d5d33acb41b383445a4b1776b38084efb481
[ "MIT" ]
77
2020-03-22T17:32:14.000Z
2022-03-28T18:02:43.000Z
src/pybricks/hubs.py
LEGO-Robotics/Pybricks-API
1259d5d33acb41b383445a4b1776b38084efb481
[ "MIT" ]
25
2020-03-18T23:35:17.000Z
2022-01-01T12:52:01.000Z
# SPDX-License-Identifier: MIT # Copyright (c) 2018-2020 The Pybricks Authors """LEGO® Programmable Hubs.""" from ._common import (Speaker as _Speaker, Battery as _Battery, ColorLight as _ColorLight, Keypad as _Keypad, LightMatrix as _LightMatrix, IMU as _IMU, ...
30.434426
79
0.63345
ffb5aadfcd3a8e4d933c090896cb42541a42d32f
7,084
py
Python
src/python/etl.py
ilyakhruschev/f1
987efdbba40e4fdf06813b2a0ce7442e6e2a4385
[ "MIT" ]
null
null
null
src/python/etl.py
ilyakhruschev/f1
987efdbba40e4fdf06813b2a0ce7442e6e2a4385
[ "MIT" ]
null
null
null
src/python/etl.py
ilyakhruschev/f1
987efdbba40e4fdf06813b2a0ce7442e6e2a4385
[ "MIT" ]
null
null
null
#!/Users/iiyakhruschev/opt/anaconda3/bin python # coding: utf-8 import pandas as pd import os import translators as ts from datetime import datetime from langdetect import detect from json_parsers import * from sqlalchemy import create_engine from pymongo import MongoClient # logging logging.basicConfig(filename='log...
37.089005
126
0.625071
ffb5b68c9566726786973f8e9393757c360c548f
6,289
py
Python
.config/polybar/polybar-scripts/pomo-bar.py
Waishnav/dotfiles
d962a2f0c6e149759f1567787dc9a7a20a88b863
[ "Unlicense" ]
16
2021-09-13T05:19:51.000Z
2022-03-27T00:51:53.000Z
.config/polybar/polybar-scripts/pomo-bar.py
Waishnav/dotfiles
d962a2f0c6e149759f1567787dc9a7a20a88b863
[ "Unlicense" ]
null
null
null
.config/polybar/polybar-scripts/pomo-bar.py
Waishnav/dotfiles
d962a2f0c6e149759f1567787dc9a7a20a88b863
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 # -*- coding: UTF-8 -*- ############################################################################## # AUTHOR: [Loopzen](https://github.com/loopzen/) # DATE: 2018-10-09 # DESCRIPTION: Pomodoro timer to polybar # - Counter of all your completed pomodoros # - Desktop notifications # REQUERIMENTS: # -...
28.328829
80
0.579424
ffb5bf2bff3b8c5020259badfa93ffde03f4c758
1,178
py
Python
Expand_Access/NetworkMapper/network_mapper.py
CyberThulhu22/Python-Pentest-TTPs
483547400555cbd1ff502cb2860cba155a394f34
[ "MIT" ]
2
2022-02-14T18:54:01.000Z
2022-02-23T03:53:13.000Z
Expand_Access/NetworkMapper/network_mapper.py
CyberThulhu22/Python-Pentest-TTPs
483547400555cbd1ff502cb2860cba155a394f34
[ "MIT" ]
null
null
null
Expand_Access/NetworkMapper/network_mapper.py
CyberThulhu22/Python-Pentest-TTPs
483547400555cbd1ff502cb2860cba155a394f34
[ "MIT" ]
1
2022-01-05T04:19:05.000Z
2022-01-05T04:19:05.000Z
#!/usr/bin/env python3 -tt #-*- coding: UTF-8 -*- """ NAME: network_mapper.py VERSION: 0.0.1 AUTHOR: Jesse Leverett (CyberThulhu) STATUS: Building Initial code framework DESCRIPTION: TO-DO: COPYRIGHT © 2021 Jesse Leverett """ # Imports import sys import argparse # Added Variables __author__ = "Jesse Leverett" __copy...
22.653846
163
0.725806
ffb5bff6c8c2a93eedfec23a6680421d769abc0e
6,985
py
Python
pydemic/clinical_models/hospitalization_with_overflow.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
3
2020-05-10T23:52:41.000Z
2021-08-31T14:38:24.000Z
pydemic/clinical_models/hospitalization_with_overflow.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
1
2020-09-27T03:26:51.000Z
2022-03-30T12:18:08.000Z
pydemic/clinical_models/hospitalization_with_overflow.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
1
2020-10-01T04:07:39.000Z
2020-10-01T04:07:39.000Z
import numpy as np import pandas as pd import sidekick as sk from scipy.integrate import cumtrapz from sidekick import placeholder as _ from .hospitalization_with_delay import HospitalizationWithDelay from ..utils import param_property, sliced from ..mixins.info import Event class HospitalizationWithOverflow(Hospita...
36.005155
87
0.665712
ffb6112ab0d061752a7c1fea043f9847e745f0ba
11,231
py
Python
handlers/in_processing/message_processing.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
handlers/in_processing/message_processing.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
handlers/in_processing/message_processing.py
itcosplay/cryptobot
6890cfde64a631bf0e4db55f6873a2217212d801
[ "MIT" ]
null
null
null
from aiogram.types import CallbackQuery from aiogram.types import Message from aiogram.dispatcher import FSMContext from data import all_emoji from data import sticker from loader import dp, bot from loader import sheet from states import Processing from utils import get_data_request_short from utils import notify_som...
31.110803
96
0.615707
ffb61e38cf630fd752faf5ed30f0b4d68e183f25
26,624
py
Python
tests/api_connexion/endpoints/test_dag_endpoint.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
1
2021-03-03T07:00:02.000Z
2021-03-03T07:00:02.000Z
tests/api_connexion/endpoints/test_dag_endpoint.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
36
2021-11-26T00:08:49.000Z
2021-11-26T00:09:33.000Z
tests/api_connexion/endpoints/test_dag_endpoint.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
3
2020-06-30T02:38:17.000Z
2022-01-19T06:14: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...
35.17041
110
0.541504
ffb64f6b61b6d661eb34930995e534ffbe56e711
1,729
py
Python
tests/smac3/comparison.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
2
2021-09-06T02:06:22.000Z
2021-12-09T10:46:56.000Z
tests/smac3/comparison.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
null
null
null
tests/smac3/comparison.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from smac3_svm_cv import run_one_exp as smac3_svm_opt from xbbo_svm_cv import run_one_exp as xbbo_svm_opt from smac3_synthetic import run_one_exp as smac3_synthetic_opt from xbbo_synthetic import run_one_exp as xbbo_synthetic_opt if __name__ == "__main__": rng = ...
35.285714
75
0.663389
ffb65114904c416f700201c23962fe0103b2cbc9
1,855
py
Python
main/web/controller/rest/user.py
sotheara-leang/xFlask
b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0
[ "MIT" ]
2
2020-02-11T08:29:49.000Z
2020-02-17T10:24:36.000Z
main/web/controller/rest/user.py
sotheara-leang/xFlask
b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0
[ "MIT" ]
null
null
null
main/web/controller/rest/user.py
sotheara-leang/xFlask
b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0
[ "MIT" ]
null
null
null
from injector import inject from main.model.user import User from main.service.user import UserService from main.web.form.user import UserForm, UserPageForm from xflask.sqlalchemy.util import Page from xflask.web import route from xflask.web.controller import Controller from xflask.web.response import Response class...
30.409836
105
0.637736
ffb67c5d5780c20a48623adde8f0e537aedd2483
154
py
Python
personal/views.py
florimondmanca/personal-api
6300f965d3f51d1bf5f10cf1eb15d673bd627631
[ "MIT" ]
4
2018-08-17T08:06:06.000Z
2020-02-20T15:15:56.000Z
personal/views.py
florimondmanca/personal-api
6300f965d3f51d1bf5f10cf1eb15d673bd627631
[ "MIT" ]
2
2018-10-08T15:59:58.000Z
2018-10-20T16:50:13.000Z
personal/views.py
florimondmanca/personal-api
6300f965d3f51d1bf5f10cf1eb15d673bd627631
[ "MIT" ]
1
2019-09-14T23:15:10.000Z
2019-09-14T23:15:10.000Z
"""Project views.""" from django.views.generic import RedirectView class IndexView(RedirectView): """Home page.""" pattern_name = "post-list"
15.4
45
0.688312
ffb67da3a6a9b412b3d8862df9db5695897c0a57
5,217
py
Python
modellib/py_src/probe.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
modellib/py_src/probe.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
modellib/py_src/probe.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2020 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unt...
38.080292
125
0.545141
ffb68ddb667089b19a5af54b3eb92839eb787546
21,005
py
Python
formulae/matrices.py
teucer/formulae
a94684a53f58be05ae468226305ef056f177af8e
[ "MIT" ]
null
null
null
formulae/matrices.py
teucer/formulae
a94684a53f58be05ae468226305ef056f177af8e
[ "MIT" ]
null
null
null
formulae/matrices.py
teucer/formulae
a94684a53f58be05ae468226305ef056f177af8e
[ "MIT" ]
null
null
null
# pylint: disable=relative-beyond-top-level import logging import textwrap import numpy as np import pandas as pd from .environment import Environment from .model_description import model_description from .utils import flatten_list _log = logging.getLogger("formulae") class DesignMatrices: """A wrapper of the ...
35.481419
100
0.610378
ffb6ba37b9cd5fb2f69235c499f16a64e20d4e70
6,225
py
Python
OneClick.py
ddbourgin/bookworm_db
ce51c2ef1da7dbf2628236ad1da6066280308241
[ "MIT" ]
1
2020-09-23T13:14:43.000Z
2020-09-23T13:14:43.000Z
OneClick.py
ddbourgin/bookworm_db
ce51c2ef1da7dbf2628236ad1da6066280308241
[ "MIT" ]
null
null
null
OneClick.py
ddbourgin/bookworm_db
ce51c2ef1da7dbf2628236ad1da6066280308241
[ "MIT" ]
null
null
null
#!/usr/bin/env python import MySQLdb import re import sys import json import os import ConfigParser from subprocess import call # These four libraries define the Bookworm-specific methods. from bookworm.MetaParser import * from bookworm.CreateDatabase import * # Pull a method from command line input. try: method...
34.776536
127
0.674217
ffb7128d416bd96f8a41625106b7853117fb8d2e
21,037
py
Python
metalibm_core/code_generation/gappa_code_generator.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
2
2019-02-18T13:42:04.000Z
2021-03-12T18:54:53.000Z
metalibm_core/code_generation/gappa_code_generator.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
null
null
null
metalibm_core/code_generation/gappa_code_generator.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################### # This file is part of metalibm (https://github.com/kalray/metalibm) ############################################################################### # MIT License # # Copyright (c) 2018 Kalray # # Permission is here...
46.439294
198
0.649094
ffb722389532898ca589626c84dc1aa32cba555f
2,297
py
Python
source/Ising.py
swyang50066/Ising-model-simulation
dcb8762db272746d10bdfda689030dcc677b562b
[ "MIT" ]
null
null
null
source/Ising.py
swyang50066/Ising-model-simulation
dcb8762db272746d10bdfda689030dcc677b562b
[ "MIT" ]
null
null
null
source/Ising.py
swyang50066/Ising-model-simulation
dcb8762db272746d10bdfda689030dcc677b562b
[ "MIT" ]
null
null
null
import numpy as np def init_spin_state_2d(nsize=16): """Initialize spin state""" return 2*np.random.randint(2, size=(nsize, nsize)) - 1 def mcmh_algorithm(state, beta=1): """Apply Monte Carlo Metropolis-Hastings algorithm""" # Get input dimensions height, width = state.shape energy = 0 ...
30.223684
62
0.510231
ffb7230f639ac58124ab4943e3400632a1944261
2,253
py
Python
brian2/core/namespace.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
brian2/core/namespace.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
13
2015-10-05T15:33:42.000Z
2015-11-18T08:31:42.000Z
brian2/core/namespace.py
moritzaugustin/brian2
d98ea0cb4af0c9426e71c8ee7659ddb13aea8593
[ "BSD-2-Clause" ]
null
null
null
''' Implementation of the namespace system, used to resolve the identifiers in model equations of `NeuronGroup` and `Synapses` ''' import inspect import itertools import numbers import weakref import numpy as np from brian2.utils.logger import get_logger from brian2.units.fundamentalunits import standard_unit_registe...
29.644737
82
0.659121
ffb725cbaad2639e16a249da953a3046f2eaba15
73,621
py
Python
lambdas/service/app.py
DataBiosphere/azul
abcaa7c6a04f1f5b8fd74e449e254eff6c433913
[ "Apache-2.0" ]
17
2018-07-20T02:53:35.000Z
2022-01-11T12:27:31.000Z
lambdas/service/app.py
DataBiosphere/azul
abcaa7c6a04f1f5b8fd74e449e254eff6c433913
[ "Apache-2.0" ]
3,887
2018-06-29T15:23:02.000Z
2022-03-31T23:29:37.000Z
lambdas/service/app.py
DataBiosphere/azul
abcaa7c6a04f1f5b8fd74e449e254eff6c433913
[ "Apache-2.0" ]
21
2018-07-06T03:17:33.000Z
2022-02-18T04:10:02.000Z
import base64 import hashlib from inspect import ( signature, ) import json import logging.config import re from typing import ( Any, Callable, Mapping, Optional, Sequence, Union, ) import urllib.parse from botocore.exceptions import ( ClientError, ) import chalice # noinspection PyPack...
38.224818
140
0.585838
ffb74c555e6d7dc81bb4fdbe8b8516573255ed28
1,199
py
Python
var/spack/repos/builtin/packages/py-bbp-analysis-framework/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/py-bbp-analysis-framework/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-bbp-analysis-framework/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2018 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 PyBbpAnalysisFramework(PythonPackage): """Bbp analysis framework.""" homepage = 'http...
36.333333
89
0.713928
ffb7983f2e09432ec5c8e1cafb687feaa4ea413a
10,275
py
Python
wavenet_vocoder/mixture.py
entn-at/clari_wavenet_vocoder
c1c290237898f17f3006b6ecbd4bad3d61d631a8
[ "MIT" ]
54
2018-07-25T03:02:22.000Z
2022-03-04T06:50:02.000Z
wavenet_vocoder/mixture.py
entn-at/clari_wavenet_vocoder
c1c290237898f17f3006b6ecbd4bad3d61d631a8
[ "MIT" ]
2
2018-09-13T09:39:11.000Z
2018-09-20T09:29:16.000Z
wavenet_vocoder/mixture.py
entn-at/clari_wavenet_vocoder
c1c290237898f17f3006b6ecbd4bad3d61d631a8
[ "MIT" ]
14
2018-07-28T03:00:31.000Z
2021-01-06T08:51:23.000Z
# coding: utf-8 # Code is adapted from: # https://github.com/pclucas14/pixel-cnn-pp # https://github.com/openai/pixel-cnn from __future__ import with_statement, print_function, absolute_import import math import numpy as np import torch from torch import nn from torch.autograd import Variable from torch.nn import fu...
35.431034
113
0.613041
ffb7a03464231f6cbc1fb14515063b00b5dfc2b4
1,651
py
Python
setup.py
falkerson/gerrit-check
28c2f17ba69e45ea4198db6f1d0ffaa35a75d522
[ "Apache-2.0" ]
11
2016-04-11T02:17:40.000Z
2021-03-25T16:14:52.000Z
setup.py
falkerson/gerrit-check
28c2f17ba69e45ea4198db6f1d0ffaa35a75d522
[ "Apache-2.0" ]
11
2016-07-27T09:08:26.000Z
2018-12-11T18:58:07.000Z
setup.py
falkerson/gerrit-check
28c2f17ba69e45ea4198db6f1d0ffaa35a75d522
[ "Apache-2.0" ]
12
2016-07-20T13:10:21.000Z
2021-03-25T14:03:54.000Z
#!/usr/bin/env python # Copyright 2016 Amazon.com, Inc. or its # affiliates. 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. A copy of the License # is located at # # http://aws.amazon.com/apache2.0/ # # or in...
37.522727
78
0.710478
ffb7b36b9733027bbfdc34a9261c227a8003a3ed
3,814
py
Python
appengine/findit/pipelines/compile_failure/test/identify_compile_try_job_culprit_pipeline_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/pipelines/compile_failure/test/identify_compile_try_job_culprit_pipeline_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/pipelines/compile_failure/test/identify_compile_try_job_culprit_pipeline_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import mock from dto.dict_of_basestring import DictOfBasestring from gae_libs.pipelines import pipeline_handlers from libs.list_of_basestring import ListOfB...
35.314815
80
0.696644
ffb7df0b41e7770eaf0bf1732614904c97aec3a0
1,179
py
Python
0x06-python-classes/5-square.py
FatChicken277/holbertonschool-higher_level_programming
520d6310a5e2a874f8c5f5185d0fb769b6412e7c
[ "CNRI-Python" ]
null
null
null
0x06-python-classes/5-square.py
FatChicken277/holbertonschool-higher_level_programming
520d6310a5e2a874f8c5f5185d0fb769b6412e7c
[ "CNRI-Python" ]
null
null
null
0x06-python-classes/5-square.py
FatChicken277/holbertonschool-higher_level_programming
520d6310a5e2a874f8c5f5185d0fb769b6412e7c
[ "CNRI-Python" ]
null
null
null
#!/usr/bin/python3 """Create and define the class "Square". This module creates an class called "Square" that defines a square. Typical usage example: var = Square() or var = Square(arg) """ class Square: """Defines a Square. Defines a square and its values subject to certain conditions. Attribu...
23.58
68
0.581001
ffb7f153a33965db37d3dba15c11b3646a02f7bb
1,127
py
Python
config.py
zacharycohn/pants
6d7b0d8aa3de02414f06e063310694fc8910e52f
[ "CC0-1.0" ]
49
2015-08-24T14:25:16.000Z
2020-05-07T13:41:26.000Z
config.py
zacharycohn/AutoAPI
6d7b0d8aa3de02414f06e063310694fc8910e52f
[ "CC0-1.0" ]
91
2015-08-04T18:18:12.000Z
2017-09-15T23:33:49.000Z
config.py
zacharycohn/AutoAPI
6d7b0d8aa3de02414f06e063310694fc8910e52f
[ "CC0-1.0" ]
21
2016-01-29T20:39:31.000Z
2021-08-29T02:27:19.000Z
import json import logging import os logger = logging.getLogger(__name__) def parse_bool(value, default=False): if isinstance(value, bool): return value parsed = json.loads(value.lower()) if isinstance(parsed, bool): return parsed logger.warn('Value "{0}" cannot be coerced to boolean'...
32.2
79
0.679681
ffb7f915cb55ad59e698a8fd515c593d868fa339
8,850
py
Python
appengine/findit/services/flake_failure/lookback_algorithm.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/services/flake_failure/lookback_algorithm.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/services/flake_failure/lookback_algorithm.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import math from dto.commit_id_range import CommitID from dto.commit_id_range import CommitIDRange from dto.int_range import IntRange from services import g...
38.986784
80
0.706215
ffb82d5563e035ab25609aa1f44a0b1c2e95409d
64,238
py
Python
hopic/cli/__init__.py
LaudateCorpus1/hopic
f4e924b9162a47ec0abbcbd191924539377b7435
[ "Apache-2.0" ]
null
null
null
hopic/cli/__init__.py
LaudateCorpus1/hopic
f4e924b9162a47ec0abbcbd191924539377b7435
[ "Apache-2.0" ]
1
2021-09-14T03:57:51.000Z
2021-09-14T03:57:51.000Z
hopic/cli/__init__.py
LaudateCorpus1/hopic
f4e924b9162a47ec0abbcbd191924539377b7435
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 - 2021 TomTom N.V. # # 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...
41.231065
158
0.599972
ffb835367854d50286efdbd6f05b2ac6a7ded0b3
343
py
Python
pycalc/MAVProxy/modules/lib/graphdefinition.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
null
null
null
pycalc/MAVProxy/modules/lib/graphdefinition.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
8
2021-01-28T19:26:22.000Z
2022-03-24T18:07:24.000Z
pycalc/MAVProxy/modules/lib/graphdefinition.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
null
null
null
''' GraphDefinition class ''' class GraphDefinition(object): '''a pre-defined graph''' def __init__(self, name, expression, description, expressions, filename): self.name = name self.expression = expression self.description = description self.expressions = expressions se...
26.384615
77
0.667638
ffb837a0ab3f59140899dbebffef9c2291ecb317
239
py
Python
zerver/exceptions.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
1
2017-07-27T19:49:12.000Z
2017-07-27T19:49:12.000Z
zerver/exceptions.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
11
2020-06-05T18:43:08.000Z
2022-03-02T14:55:12.000Z
zerver/exceptions.py
tobby2002/zulip
66e7c455759f9368bae16b9a604cf63f8e3524cd
[ "Apache-2.0" ]
1
2021-06-10T15:12:52.000Z
2021-06-10T15:12:52.000Z
from __future__ import absolute_import from django.core.exceptions import PermissionDenied class RateLimited(PermissionDenied): def __init__(self, msg=""): # type: (str) -> None super(RateLimited, self).__init__(msg)
26.555556
51
0.723849
ffb87f9e3994d20241aea38bf62bb96b2462dab6
11,752
py
Python
tests/test_util.py
exhuma/x690
42c1c62b15ba9883204af96bfa7d8f88da469dd1
[ "MIT" ]
null
null
null
tests/test_util.py
exhuma/x690
42c1c62b15ba9883204af96bfa7d8f88da469dd1
[ "MIT" ]
null
null
null
tests/test_util.py
exhuma/x690
42c1c62b15ba9883204af96bfa7d8f88da469dd1
[ "MIT" ]
2
2021-07-09T10:11:28.000Z
2021-07-15T06:40:49.000Z
# pylint: skip-file from unittest import TestCase import pytest from x690.util import ( Length, TypeClass, TypeInfo, TypeNature, decode_length, encode_length, get_value_slice, visible_octets, wrap, ) from .conftest import assert_bytes_equal class TestTypeInfoDecoding(TestCase):...
32.10929
79
0.625681
ffb89084e25cf4056252ec255b31257258518dfb
7,128
py
Python
python_modules/dagster/dagster_tests/general_tests/utils_tests/test_solid_isolation.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/general_tests/utils_tests/test_solid_isolation.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster_tests/general_tests/utils_tests/test_solid_isolation.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import re import pytest from dagster import ( DagsterInvariantViolationError, DagsterTypeCheckDidNotPass, Field, InputDefinition, Int, ModeDefinition, OutputDefinition, composite_solid, lambda_solid, resource, solid, ) from dagster.core.test_utils import nesting_composite_p...
27.84375
98
0.680976
ffb89f892f3e33923bff732f1ad3a3d4bd7cd0a0
2,204
py
Python
src/test_only_plugins/jira_ac/migrations/0001_initial.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
src/test_only_plugins/jira_ac/migrations/0001_initial.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
src/test_only_plugins/jira_ac/migrations/0001_initial.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import sentry.db.models.fields.bounded import sentry.db.models.fields.foreignkey class Migration(migrations.Migration): # This flag is used to mark that a migration shouldn't be automatically run in # pro...
41.584906
88
0.593466
ffb89fcc7874109f69b47507751a370e8eb4dc68
1,661
py
Python
src/djshop/apps/base/views.py
diegojromerolopez/djshop
3fe623532228006e96269bd0f21c7b7d380c3a1a
[ "MIT" ]
null
null
null
src/djshop/apps/base/views.py
diegojromerolopez/djshop
3fe623532228006e96269bd0f21c7b7d380c3a1a
[ "MIT" ]
1
2017-05-08T17:05:00.000Z
2018-04-04T11:55:30.000Z
src/djshop/apps/base/views.py
diegojromerolopez/djshop
3fe623532228006e96269bd0f21c7b7d380c3a1a
[ "MIT" ]
2
2017-04-25T10:32:57.000Z
2020-05-04T16:12:08.000Z
from django.http import HttpResponseRedirect from django.shortcuts import render from django.urls import reverse from djshop.apps.base.forms import DeleteForm # Creation of object def new(request, instance, form_class, template_path, ok_url): if request.method == "POST": form = form_class(request.POST, ...
31.339623
85
0.680915
ffb8c64e2061362e3f129360d6a79e2efdd1552b
1,433
py
Python
custom_components/openhab/coordinator.py
kubawolanin/ha-openhab
aa67440f0f646abe0a1d31e73a6ba9aff35038c0
[ "MIT" ]
9
2021-11-05T06:53:10.000Z
2022-01-21T08:00:02.000Z
custom_components/openhab/coordinator.py
kubawolanin/ha-openhab
aa67440f0f646abe0a1d31e73a6ba9aff35038c0
[ "MIT" ]
19
2021-11-05T14:53:43.000Z
2022-01-26T13:15:16.000Z
custom_components/openhab/coordinator.py
kubawolanin/ha-openhab
aa67440f0f646abe0a1d31e73a6ba9aff35038c0
[ "MIT" ]
null
null
null
"""Data update coordinator for integration openHAB.""" from __future__ import annotations from typing import Any from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed from .api import ...
31.844444
88
0.676902
ffb8f4701b46bcc3f0fbb67764fe6b8107ef77a1
7,573
py
Python
chapter-5/app/chat/consumers.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
chapter-5/app/chat/consumers.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
chapter-5/app/chat/consumers.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
# app/chat/consumers.py from channels.generic.websocket import JsonWebsocketConsumer from django.template.loader import render_to_string from asgiref.sync import async_to_sync from channels.auth import login, logout from django.contrib.auth.models import User from .models import Client, Room, Message class ChatConsum...
40.935135
199
0.579955
ffb905c92e624a4c0fe006b022e5bb465dc32864
318
py
Python
tflite/TensorType.py
szha/tensorflow-onnx
25f8b0c78074784fcc33c1d068911f8363581e6c
[ "MIT" ]
null
null
null
tflite/TensorType.py
szha/tensorflow-onnx
25f8b0c78074784fcc33c1d068911f8363581e6c
[ "MIT" ]
null
null
null
tflite/TensorType.py
szha/tensorflow-onnx
25f8b0c78074784fcc33c1d068911f8363581e6c
[ "MIT" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite class TensorType(object): FLOAT32 = 0 FLOAT16 = 1 INT32 = 2 UINT8 = 3 INT64 = 4 STRING = 5 BOOL = 6 INT16 = 7 COMPLEX64 = 8 INT8 = 9 FLOAT64 = 10 COMPLEX128 = 11 UINT64 = 12
15.9
68
0.59434
ffb93027ed48dd2106c702758917c0846f20cb1c
56,373
py
Python
tensorflow/tools/docs/parser.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/tools/docs/parser.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/tools/docs/parser.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
32.68
87
0.677416
ffb945a23691ffd7378203b00c4e8aecbe8474ad
41
py
Python
btd6_memory_info/generated/SteamNative/StartPlaytimeTrackingResult_t/start_playtime_tracking_result_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/SteamNative/StartPlaytimeTrackingResult_t/start_playtime_tracking_result_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/SteamNative/StartPlaytimeTrackingResult_t/start_playtime_tracking_result_t.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class StartPlaytimeTrackingResult_t: pass
41
41
0.926829
ffb96cf987731dbea01d3135acfcb564bdc1c35a
12,322
py
Python
lingua_franca/lang/format_da.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
1
2020-08-13T12:21:56.000Z
2020-08-13T12:21:56.000Z
lingua_franca/lang/format_da.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
3
2021-06-08T21:06:32.000Z
2022-01-13T02:22:38.000Z
lingua_franca/lang/format_da.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
1
2020-08-13T12:21:58.000Z
2020-08-13T12:21:58.000Z
# # Copyright 2017 Mycroft AI Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
31.037783
78
0.529865
ffb9ac97329e681d27c2b2a41ac32db83264fcec
13,990
py
Python
codegen_sources/wrappers/models.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
codegen_sources/wrappers/models.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
codegen_sources/wrappers/models.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import os import torch import torch.nn as nn import torch.nn.functional as F from torch.nn import CrossEntropyLoss, MSELoss fr...
36.623037
119
0.647534
ffb9c9be48158e699c513393052283f9899aa872
39,567
py
Python
vnpy/trader/ui/widget.py
jojoquant/jonpy
58692f8fbf398aab7be915a63d0a376e2e0e664c
[ "MIT" ]
5
2020-05-19T07:32:39.000Z
2022-03-14T09:09:48.000Z
vnpy/trader/ui/widget.py
jojoquant/jonpy
58692f8fbf398aab7be915a63d0a376e2e0e664c
[ "MIT" ]
null
null
null
vnpy/trader/ui/widget.py
jojoquant/jonpy
58692f8fbf398aab7be915a63d0a376e2e0e664c
[ "MIT" ]
3
2020-04-02T08:30:17.000Z
2020-05-03T12:12:05.000Z
""" Basic widgets for UI. """ import csv import platform from enum import Enum from typing import Any, Dict from copy import copy from tzlocal import get_localzone from PyQt5 import QtCore, QtGui, QtWidgets, Qt import importlib_metadata import vnpy from vnpy.event import Event, EventEngine from ..constant import Dir...
31.908871
87
0.594081
ffb9cbbdb0d2e81f08da563eae2c8c852a1fc204
28,877
py
Python
lib/galaxy/web/form_builder.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
lib/galaxy/web/form_builder.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
lib/galaxy/web/form_builder.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
""" Classes for generating HTML forms """ import logging from six import string_types from cgi import escape from galaxy.util import restore_text, unicodify log = logging.getLogger(__name__) class BaseField(object): def __init__(self, name, value=None, label=None, **kwds): self.name = name self....
41.135328
188
0.557745
ffb9d8eaf499d1e63d2ca5877f2076b3ef77bf27
10,420
py
Python
infinisdk/infinibox/infinibox.py
kobutton/infinisdk
4ae5c66a2d7926636a52cb0a1452f9a2809b2ec2
[ "BSD-3-Clause" ]
null
null
null
infinisdk/infinibox/infinibox.py
kobutton/infinisdk
4ae5c66a2d7926636a52cb0a1452f9a2809b2ec2
[ "BSD-3-Clause" ]
null
null
null
infinisdk/infinibox/infinibox.py
kobutton/infinisdk
4ae5c66a2d7926636a52cb0a1452f9a2809b2ec2
[ "BSD-3-Clause" ]
null
null
null
import itertools import os import weakref import gossip from mitba import cached_method from sentinels import NOTHING from urlobject import URLObject as URL from .._compat import iteritems from ..core.api import APITarget from ..core.config import config, get_ini_option from ..core.exceptions import CacheMiss, Versio...
33.612903
113
0.666507
ffb9f58d8fced34f75f7958294abe7606aad225d
21,145
py
Python
src/panoptes/utils/serial/handlers/protocol_arduinosimulator.py
danjampro/panoptes-utils
ff51019cdd0e188cf5e8d8d70fc3579776a31716
[ "MIT" ]
3
2019-03-26T03:35:46.000Z
2021-08-16T16:59:12.000Z
src/panoptes/utils/serial/handlers/protocol_arduinosimulator.py
danjampro/panoptes-utils
ff51019cdd0e188cf5e8d8d70fc3579776a31716
[ "MIT" ]
254
2019-03-29T05:42:54.000Z
2022-02-18T05:03:09.000Z
src/panoptes/utils/serial/handlers/protocol_arduinosimulator.py
danjampro/panoptes-utils
ff51019cdd0e188cf5e8d8d70fc3579776a31716
[ "MIT" ]
9
2019-03-25T09:55:35.000Z
2021-05-18T02:45:17.000Z
"""Provides a simple simulator for telemetry_board.ino or camera_board.ino. We use the pragma "no cover" in several places that happen to never be reached or that would only be reached if the code was called directly, i.e. not in the way it is intended to be used. """ import copy import datetime import queue import r...
40.585413
99
0.597872
ffba000b8f24415ccc410ffdcfaac3792fc50a8f
4,579
py
Python
niapy/algorithms/basic/fpa.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
null
null
null
niapy/algorithms/basic/fpa.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
null
null
null
niapy/algorithms/basic/fpa.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
null
null
null
# encoding=utf8 import logging from niapy.algorithms.algorithm import Algorithm from niapy.util import levy_flight logging.basicConfig() logger = logging.getLogger('niapy.algorithms.basic') logger.setLevel('INFO') __all__ = ['FlowerPollinationAlgorithm'] class FlowerPollinationAlgorithm(Algorithm): r"""Impleme...
34.689394
205
0.633544
ffba4dcec3a6c1f767e0d0dd453f3d16869ce2dd
7,692
py
Python
taf/testlib/lxc.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
10
2016-12-16T00:05:58.000Z
2018-10-30T17:48:25.000Z
taf/testlib/lxc.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
40
2017-01-04T23:07:05.000Z
2018-04-16T19:52:02.000Z
taf/testlib/lxc.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
23
2016-12-30T05:03:53.000Z
2020-04-01T08:40:24.000Z
# Copyright (c) 2011 - 2017, Intel Corporation. # # 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 agre...
44.982456
159
0.596334
ffba85967492f8eff6a028f1c03df253648660d2
3,560
py
Python
tests/integration/test_integration_lids_policy.py
joshuaguite/cloudpassage-halo-python-sdk
ab8775377c9e99ed89d335ee44a92553fce49eb7
[ "BSD-3-Clause" ]
8
2016-10-24T12:37:32.000Z
2019-06-01T10:00:18.000Z
tests/integration/test_integration_lids_policy.py
joshuaguite/cloudpassage-halo-python-sdk
ab8775377c9e99ed89d335ee44a92553fce49eb7
[ "BSD-3-Clause" ]
109
2016-08-09T04:51:48.000Z
2020-02-11T02:33:35.000Z
tests/integration/test_integration_lids_policy.py
joshuaguite/cloudpassage-halo-python-sdk
ab8775377c9e99ed89d335ee44a92553fce49eb7
[ "BSD-3-Clause" ]
14
2016-01-23T00:10:30.000Z
2021-07-07T21:13:56.000Z
import cloudpassage import json import os from cloudpassage.utility import Utility as utility policy_file_name = "core-system-centos-v1-1.lids.json" config_file_name = "portal.yaml.local" tests_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../")) config_file = os.path.join(tests_dir, "configs/", confi...
40
75
0.673596
ffbae0fabd85b4573d5163ae1b1d71c8d69e399c
738
py
Python
scripts/python/sig_list.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2020-06-03T15:59:50.000Z
2020-12-21T11:11:57.000Z
scripts/python/sig_list.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
null
null
null
scripts/python/sig_list.py
OSADP/Pikalert-Vehicle-Data-Translator-
295da604408f6f13af0301b55476a81311459386
[ "Apache-2.0" ]
2
2019-10-02T06:47:23.000Z
2020-02-02T18:32:23.000Z
#!/usr/bin/env python #/*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* # * Copyright (c) 1995-2002 UCAR # * University Corporation for Atmospheric Research(UCAR) # * National Center for Atmospheric Research(NCAR) # * Research Applications Program(RAP) # * P.O.Box 3000, Boulder, Colorado, 80307-3000, USA # * ...
49.2
280
0.51897
ffbae1bfa8a7fcd8fcc601adf9bbf3c16f4c343b
697
py
Python
python_practice/looping.py
cowofevil/python_practice
48effc1e67aaa454b285c512cc243ba1694b0889
[ "Apache-2.0" ]
null
null
null
python_practice/looping.py
cowofevil/python_practice
48effc1e67aaa454b285c512cc243ba1694b0889
[ "Apache-2.0" ]
null
null
null
python_practice/looping.py
cowofevil/python_practice
48effc1e67aaa454b285c512cc243ba1694b0889
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- def looping_challenge_one(): """Print the numbers 1 - 10 using a loop Please print each number on a separate line ex: 1 2 3 ... """ def looping_challenge_two(): """Given the variable colors_of_the_rainbow Please print every other colo...
21.78125
92
0.632712
ffbae4c1a019e1a3eab2f2c23aa143a7d24f4b03
1,493
py
Python
__init__.py
mdvandamme/PoussePousseEditData
1864cd7ddad7002c050c2296b2d90ea817e12f57
[ "MIT" ]
null
null
null
__init__.py
mdvandamme/PoussePousseEditData
1864cd7ddad7002c050c2296b2d90ea817e12f57
[ "MIT" ]
null
null
null
__init__.py
mdvandamme/PoussePousseEditData
1864cd7ddad7002c050c2296b2d90ea817e12f57
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ /*************************************************************************** ParcoursGrille A QGIS plugin Parcoursd'une grille ------------------- begin : 2018-07-09 copyright : (C) 2018...
41.472222
77
0.390489
ffbaf9f1e284fe8109dd7447c4bf834c2b5a4d53
3,460
py
Python
genrl/utils/data_bandits/covertype_bandit.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
390
2020-05-03T17:34:02.000Z
2022-03-05T11:29:07.000Z
genrl/utils/data_bandits/covertype_bandit.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
306
2020-05-03T05:53:53.000Z
2022-03-12T00:27:28.000Z
genrl/utils/data_bandits/covertype_bandit.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
64
2020-05-05T20:23:30.000Z
2022-03-30T08:43:10.000Z
from pathlib import Path from typing import Tuple import pandas as pd import torch from genrl.utils.data_bandits.base import DataBasedBandit from genrl.utils.data_bandits.utils import ( download_data, fetch_zipped_data_without_header, ) URL = ( "https://archive.ics.uci.edu/ml/machine-learning-databases/c...
32.641509
87
0.628324
ffbafc16137478be1bb23c61c08ca661c66fd708
2,192
py
Python
tests/test_pydent/test_session/test_interface_queries.py
aquariumbio/trident
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
5
2019-01-21T11:12:05.000Z
2020-03-05T20:52:14.000Z
tests/test_pydent/test_session/test_interface_queries.py
aquariumbio/pydent
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
28
2020-11-18T02:07:09.000Z
2021-06-08T15:49:41.000Z
tests/test_pydent/test_session/test_interface_queries.py
aquariumbio/trident
d1712cae544103fb145e3171894e4b35141f6813
[ "MIT" ]
2
2021-02-27T19:23:45.000Z
2021-09-14T10:29:07.000Z
import pytest import requests from pydent import AqSession from pydent.aqhttp import AqHTTP from pydent.exceptions import TridentRequestError def test_where_queries_should_return_empty_array(monkeypatch, mock_login_post): """Empty where queries should return empty arrays. Here, we replaces AqHTTP.post with ...
29.621622
80
0.705292
ffbb225be9a180f6cbb16af060c4e37dbe987ced
1,033
py
Python
no_ood_manifold_mixup.py
jjgarciac/ANN-Calibration
4541541b4b5d78badfdb495e0cec75ee8005d212
[ "MIT" ]
null
null
null
no_ood_manifold_mixup.py
jjgarciac/ANN-Calibration
4541541b4b5d78badfdb495e0cec75ee8005d212
[ "MIT" ]
null
null
null
no_ood_manifold_mixup.py
jjgarciac/ANN-Calibration
4541541b4b5d78badfdb495e0cec75ee8005d212
[ "MIT" ]
null
null
null
import os ''' datasets = [ 'iris', 'heart', 'arrhythmia', #'abalone', 'wine', 'segment', #'sensorless_drive', ] ''' datasets = ['phishing', 'moon', 'htru2', 'mushroom', 'arcene', ...
25.195122
109
0.476283
ffbb4c64309e679abb2185804f4799f5a0c2c889
222
py
Python
Scheduling-Algorithm/SimpleSchedule.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
1
2021-01-10T12:06:26.000Z
2021-01-10T12:06:26.000Z
Scheduling-Algorithm/SimpleSchedule.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
null
null
null
Scheduling-Algorithm/SimpleSchedule.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
null
null
null
import threading def works(list_of_works): ''' This work is :param list_of_works: :return: ''' def thread_1(): print("threading 1 ") def thread_2(): pass if __name__ == "__main__": pass
12.333333
26
0.599099
ffbb60e00e5197dcd0ab37967dcd191a4b6fe339
14,648
py
Python
artifact/gem5art/artifact/artifact.py
darchr/gem5art
4a0f47d1103ff68883bb0707cd888c6ac9ade775
[ "BSD-3-Clause" ]
19
2020-02-05T08:26:30.000Z
2022-03-04T09:08:37.000Z
artifact/gem5art/artifact/artifact.py
darchr/gem5art
4a0f47d1103ff68883bb0707cd888c6ac9ade775
[ "BSD-3-Clause" ]
93
2019-10-28T22:17:25.000Z
2021-07-01T10:20:28.000Z
artifact/gem5art/artifact/artifact.py
darchr/gem5art
4a0f47d1103ff68883bb0707cd888c6ac9ade775
[ "BSD-3-Clause" ]
15
2020-02-05T09:30:19.000Z
2021-07-29T04:50:46.000Z
# Copyright (c) 2019 The Regents of the University of California # 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 lis...
37.462916
91
0.57728
ffbb65f96eb44efe5c7a3369e1c8d1bd41fbac4a
1,824
py
Python
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/task_run_request.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/task_run_request.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_04_01/models/task_run_request.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
35.764706
76
0.608553
ffbb816d74d45ad2f9ea4c57539e74586547e535
3,318
py
Python
cockroach/util.py
abhishekgahlot/cockroach-python
72903f583da182530e208cf41644d74e1a7ef505
[ "Apache-2.0" ]
1
2015-11-05T19:20:27.000Z
2015-11-05T19:20:27.000Z
cockroach/util.py
abhishekgahlot/cockroach-python
72903f583da182530e208cf41644d74e1a7ef505
[ "Apache-2.0" ]
null
null
null
cockroach/util.py
abhishekgahlot/cockroach-python
72903f583da182530e208cf41644d74e1a7ef505
[ "Apache-2.0" ]
null
null
null
import logging import random import time try: import enum # >= py34 except ImportError: import enum34 as enum # < py34 # _RETRY_JITTER specifies random jitter to add to backoff # durations. Specified as a percentage of the backoff. _RETRY_JITTER = 0.15 class RetryStatus(enum.Enum): # BREAK indicates t...
38.137931
93
0.672694
ffbbae61efb9a33dc7a213e0d9bd598218cfa57c
902
py
Python
test/webapi/test_main.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
null
null
null
test/webapi/test_main.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
null
null
null
test/webapi/test_main.py
TomBlock/cate
3924300a9d85f09fd40bc67b9f8a220230788d1c
[ "MIT" ]
1
2019-02-14T13:49:37.000Z
2019-02-14T13:49:37.000Z
import json import os import unittest from tornado.testing import AsyncHTTPTestCase from cate.webapi.main import create_application NETCDF_TEST_FILE = os.path.join(os.path.dirname(__file__), '..', 'data', 'precip_and_temp.nc') # For usage of the tornado.testing.AsyncHTTPTestCase see http://www.tornadoweb.org/en/sta...
34.692308
105
0.713969
ffbbf78291acf5f4f5c325420525bfe20137806a
5,364
py
Python
cloud_browser/views.py
UrbanDaddy/django-cloud-browser
509cfee0da4a37409bd6f3aee3c9d85bd8cf0402
[ "MIT" ]
null
null
null
cloud_browser/views.py
UrbanDaddy/django-cloud-browser
509cfee0da4a37409bd6f3aee3c9d85bd8cf0402
[ "MIT" ]
null
null
null
cloud_browser/views.py
UrbanDaddy/django-cloud-browser
509cfee0da4a37409bd6f3aee3c9d85bd8cf0402
[ "MIT" ]
null
null
null
"""Cloud browser views.""" from django.http import HttpResponse, Http404 from django.shortcuts import render_to_response from django.template import RequestContext from django.utils.importlib import import_module from cloud_browser.app_settings import settings from cloud_browser.cloud import get_connection, get_connec...
34.606452
78
0.635906
ffbc0097ec5323079d7e9fc61dda05eea884a206
27,835
py
Python
workflows/pipe-common/pipeline/autoscaling/azureprovider.py
cmbkoko1989/cloud-pipeline
9af1218151ef02f87915726eb92c0cc626f7ab11
[ "Apache-2.0" ]
null
null
null
workflows/pipe-common/pipeline/autoscaling/azureprovider.py
cmbkoko1989/cloud-pipeline
9af1218151ef02f87915726eb92c0cc626f7ab11
[ "Apache-2.0" ]
null
null
null
workflows/pipe-common/pipeline/autoscaling/azureprovider.py
cmbkoko1989/cloud-pipeline
9af1218151ef02f87915726eb92c0cc626f7ab11
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/) # # 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 appli...
48.074266
169
0.610095
ffbc4bd57a3a06531e36e3eddc142febf2c57d02
9,499
py
Python
fluid/neural_machine_translation/transformer/train.py
wojtuss/models
5d1dc2ff7d3355984c469f0906d24447b58a5ffe
[ "Apache-2.0" ]
null
null
null
fluid/neural_machine_translation/transformer/train.py
wojtuss/models
5d1dc2ff7d3355984c469f0906d24447b58a5ffe
[ "Apache-2.0" ]
null
null
null
fluid/neural_machine_translation/transformer/train.py
wojtuss/models
5d1dc2ff7d3355984c469f0906d24447b58a5ffe
[ "Apache-2.0" ]
null
null
null
import os import time import numpy as np import paddle import paddle.fluid as fluid from model import transformer, position_encoding_init from optim import LearningRateScheduler from config import TrainTaskConfig, ModelHyperParams, pos_enc_param_names, \ encoder_input_data_names, decoder_input_data_names, lab...
44.38785
80
0.627434
ffbc816c130c1fa793b6f126033c1bd6a67474bd
1,963
py
Python
python3/keras/Test.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
2
2020-09-29T04:09:41.000Z
2020-10-18T13:33:36.000Z
python3/keras/Test.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
null
null
null
python3/keras/Test.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
1
2021-12-26T04:55:55.000Z
2021-12-26T04:55:55.000Z
import numpy as np import pandas as pd from keras.models import Sequential from keras.utils import np_utils from keras.layers.core import Dense, Activation, Dropout train = pd.read_csv('/media/nahid/New Volume/GitHub/Keras/train.csv') labels = train.ix[:, 0].values.astype('int32') # ix is deprecated.(অসমর্থিত) x_tra...
31.15873
103
0.718288
ffbc8fe66e860ec2aef629c2fc449aeeb56989d5
1,110
py
Python
setup.py
steven-lang/bottr
c1b92becc31adfbd5a7b77179b852a51da70b193
[ "MIT" ]
12
2018-07-05T05:48:08.000Z
2021-11-19T18:07:49.000Z
setup.py
slang03/bottr
c1b92becc31adfbd5a7b77179b852a51da70b193
[ "MIT" ]
1
2020-09-04T02:25:27.000Z
2020-10-06T16:33:45.000Z
setup.py
slang03/bottr
c1b92becc31adfbd5a7b77179b852a51da70b193
[ "MIT" ]
3
2019-07-16T21:41:00.000Z
2020-09-04T02:27:10.000Z
from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='bottr', version='0.1.4', description='Simple Reddit Bot Library', long_description=readme(), url='http://github.com/slang03/bottr', author='Steven Lang', author_email=...
30
52
0.567568
ffbcb4b3d506e3d5488b1fa997a8295f42532828
41,185
py
Python
improver/psychrometric_calculations/psychrometric_calculations.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
null
null
null
improver/psychrometric_calculations/psychrometric_calculations.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
null
null
null
improver/psychrometric_calculations/psychrometric_calculations.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
38.3473
92
0.631395
ffbcdf5eddf73c2261103b3362d672197e672c9b
1,428
py
Python
test/test_nice_size.py
Grismar/py7za
1cfcbd6661e37d6088034b6950b0ef8444747214
[ "MIT" ]
null
null
null
test/test_nice_size.py
Grismar/py7za
1cfcbd6661e37d6088034b6950b0ef8444747214
[ "MIT" ]
null
null
null
test/test_nice_size.py
Grismar/py7za
1cfcbd6661e37d6088034b6950b0ef8444747214
[ "MIT" ]
null
null
null
import unittest from py7za import nice_size, size_to_int from py7za._nice_size import SI_UNITS, BIN_UNITS class TestWalker(unittest.TestCase): def test_nice_size_basic(self): self.assertEqual(nice_size(999, si=True), '999 B') self.assertEqual(nice_size(1000, si=True), '1.0 kB') self.assert...
37.578947
76
0.636555
ffbce01f87b3888f9daecc6fb888ef9537b80872
3,596
py
Python
atom/electron/python/electron_api/models/ach_card_request_co.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/electron/python/electron_api/models/ach_card_request_co.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/electron/python/electron_api/models/ach_card_request_co.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Electron API The Hydrogen Electron API # noqa: E501 OpenAPI spec version: 1.3.1 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from electron_api.configuratio...
29
97
0.594271
ffbceadc4ba8f9f8c73985a20b9ee1c0c036de72
16,627
py
Python
ocimatic/core.py
OCIoficial/ocimatic
8e0a134059b2f2d0a2f3ef68253bb7fc046e6c84
[ "Beerware" ]
null
null
null
ocimatic/core.py
OCIoficial/ocimatic
8e0a134059b2f2d0a2f3ef68253bb7fc046e6c84
[ "Beerware" ]
14
2016-11-06T20:22:23.000Z
2021-12-09T21:19:40.000Z
ocimatic/core.py
OCIoficial/ocimatic
8e0a134059b2f2d0a2f3ef68253bb7fc046e6c84
[ "Beerware" ]
1
2020-10-11T04:47:41.000Z
2020-10-11T04:47:41.000Z
# coding=UTF-8 import json import os import re import shutil import subprocess import tempfile from pathlib import Path from typing import Iterable, List, Optional, Tuple, TypedDict import ocimatic from ocimatic import pjson, ui from ocimatic.checkers import Checker, CppChecker, DiffChecker from ocimatic.dataset impor...
37.961187
100
0.599146
ffbcf5a0602b939277214cad4292daabfc499e95
3,247
py
Python
Calibration.py
Hongyil1/NAO-Robot-Handwriting
f3e8b79bfa75672daa1b27172338d5d7862bd58d
[ "MIT" ]
3
2018-10-19T10:29:36.000Z
2021-06-09T12:46:00.000Z
Calibration.py
Hongyil1/NAO-Robot-Handwriting
f3e8b79bfa75672daa1b27172338d5d7862bd58d
[ "MIT" ]
1
2019-07-19T04:18:54.000Z
2019-07-19T04:18:54.000Z
Calibration.py
Hongyil1/NAO-Robot-Handwriting
f3e8b79bfa75672daa1b27172338d5d7862bd58d
[ "MIT" ]
2
2021-02-24T07:14:05.000Z
2021-11-09T17:44:53.000Z
""" Calibration module helps people to put the tablet to an appropriate place. The edge of tablet should align with red guideline. """ import Image import ImageTk import vision_definitions import Tkinter as tk from naoqi import ALProxy class Calibration(): def __init__(self, root): # Di...
32.47
88
0.612873
ffbd1d9c8aa424ab3a06ce80dd20a00eda5296ea
883
py
Python
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 04/ch04_rec08_fill_under.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
26
2016-08-25T01:33:36.000Z
2022-03-20T11:33:31.000Z
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 04/ch04_rec08_fill_under.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
null
null
null
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 04/ch04_rec08_fill_under.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
31
2016-08-16T15:32:46.000Z
2021-01-26T19:16:48.000Z
import matplotlib.pyplot as plt import numpy as np x = np.arange(0.0, 2, 0.01) y1 = np.sin(np.pi*x) y2 = 1.7*np.sin(4*np.pi*x) fig = plt.figure() axes1 = fig.add_subplot(211) axes1.plot(x, y1, x, y2, color='grey') axes1.fill_between(x, y1, y2, where=y2<=y1, facecolor='blue', interpolate=True) axes1.fill_between(x, y1...
33.961538
79
0.703284
ffbd2e998219b24cc01ee7a7bfc0d78fedfeb846
1,363
py
Python
RLV/torch_rlv/visualizer/plot.py
simonr98/Reinforcement-Learning-with-Videos
e40cec6b8d817276375e940696b290fc4e1e8bc7
[ "MIT" ]
null
null
null
RLV/torch_rlv/visualizer/plot.py
simonr98/Reinforcement-Learning-with-Videos
e40cec6b8d817276375e940696b290fc4e1e8bc7
[ "MIT" ]
null
null
null
RLV/torch_rlv/visualizer/plot.py
simonr98/Reinforcement-Learning-with-Videos
e40cec6b8d817276375e940696b290fc4e1e8bc7
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from matplotlib.backends.backend_pdf import PdfPages import matplotlib.animation as animation import imageio def plot_learning_curve(x, scores, figure_file): running_avg = np.zeros(len(scores)) for i in range(len(running_avg)): running_avg[i] = np.mea...
26.72549
76
0.625092
ffbd625057c5be71cc02f167764dfd072f3f5bc0
4,786
py
Python
projects/seadata/backend/tests/test_orders.py
mdantonio/seadatacloud
34b93e6967d9e253b4cba3d832be650d3e4e31eb
[ "MIT" ]
null
null
null
projects/seadata/backend/tests/test_orders.py
mdantonio/seadatacloud
34b93e6967d9e253b4cba3d832be650d3e4e31eb
[ "MIT" ]
null
null
null
projects/seadata/backend/tests/test_orders.py
mdantonio/seadatacloud
34b93e6967d9e253b4cba3d832be650d3e4e31eb
[ "MIT" ]
null
null
null
from faker import Faker from restapi.tests import API_URI, FlaskClient from tests.custom import SeadataTests class TestApp(SeadataTests): def test_01(self, client: FlaskClient, faker: Faker) -> None: # GET /api/orders/my_order_id # PUT /api/orders/my_order_id r = client.get(f"{API_URI}/or...
36.534351
86
0.59298
ffbd705f5c93f763bcad351edfc198c507d6a520
2,958
py
Python
source/geometry/registration.py
swyang50066/algorithm-python
77b88763ac2d9c01bb6b35da607ca75e9c7e9116
[ "MIT" ]
3
2021-09-15T13:33:27.000Z
2021-11-24T01:30:52.000Z
source/geometry/registration.py
swyang50066/algorithm-python
77b88763ac2d9c01bb6b35da607ca75e9c7e9116
[ "MIT" ]
null
null
null
source/geometry/registration.py
swyang50066/algorithm-python
77b88763ac2d9c01bb6b35da607ca75e9c7e9116
[ "MIT" ]
null
null
null
import cv2 import numpy as np from numpy.linalg import solve def _calcJointEntropy(x, y): """ Return intensity based informations """ pxy, _, _ = np.histogram2d(x, y, bins=128, range=[[1,255], [1,255]]) pxy = pxy / np.sum(pxy) px ...
28.718447
78
0.550034
ffbd70a9e46e53deef5ad9c41ea4661be8f2f8bb
4,855
py
Python
my_api/settings.py
StephenGrey/covid_data
8651460734a9aa21b5106896ab98c47491eadb3c
[ "MIT" ]
null
null
null
my_api/settings.py
StephenGrey/covid_data
8651460734a9aa21b5106896ab98c47491eadb3c
[ "MIT" ]
null
null
null
my_api/settings.py
StephenGrey/covid_data
8651460734a9aa21b5106896ab98c47491eadb3c
[ "MIT" ]
null
null
null
""" Django settings for my_api project. Generated by 'django-admin startproject' using Django 3.0.7. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os fro...
26.823204
91
0.626365
ffbd80f96242b1fb67bf2ca1a0fdc8904956d517
824
py
Python
board/migrations/0002_auto_20210415_1811.py
shift-board/shiftboard
1e49a93d70a18a1f799d5bf2101ca67eb79031a9
[ "MIT" ]
1
2021-04-25T18:27:22.000Z
2021-04-25T18:27:22.000Z
board/migrations/0002_auto_20210415_1811.py
shift-board/shiftboard
1e49a93d70a18a1f799d5bf2101ca67eb79031a9
[ "MIT" ]
16
2021-04-14T00:44:32.000Z
2021-05-02T22:23:01.000Z
board/migrations/0002_auto_20210415_1811.py
shift-board/shiftboard
1e49a93d70a18a1f799d5bf2101ca67eb79031a9
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-04-15 22:11 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('board', '0001_initial'), ] operations = [ migrations.RenameField( model_name='post', old_name='description...
23.542857
84
0.536408
ffbd8cf82472e4a619c060e9f5345428f4971f93
11,922
py
Python
ninja/operation.py
fcortes/django-ninja
c29a5ae298ec22e25f8ee49c7787bd8a311bac78
[ "MIT" ]
null
null
null
ninja/operation.py
fcortes/django-ninja
c29a5ae298ec22e25f8ee49c7787bd8a311bac78
[ "MIT" ]
null
null
null
ninja/operation.py
fcortes/django-ninja
c29a5ae298ec22e25f8ee49c7787bd8a311bac78
[ "MIT" ]
null
null
null
from typing import ( TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Optional, Sequence, Tuple, Type, Union, cast, ) import django import pydantic from django.http import HttpRequest, HttpResponse, HttpResponseNotAllowed from django.http.response import HttpResponseB...
34.258621
98
0.606022
ffbd91f0df7292542c39f755b909aef41adc75f8
1,750
py
Python
app/covidbed/validator/resource.py
dbaelipro/coordination-dispo-lits
d252df23f570f6a83a5c6af36056ed5f2cf02fe0
[ "MIT" ]
2
2020-05-10T16:06:17.000Z
2020-05-10T16:10:03.000Z
app/covidbed/validator/resource.py
dbaelipro/coordination-dispo-lits
d252df23f570f6a83a5c6af36056ed5f2cf02fe0
[ "MIT" ]
8
2020-04-07T16:36:51.000Z
2020-04-26T10:34:26.000Z
app/covidbed/validator/resource.py
dbaelipro/coordination-dispo-lits
d252df23f570f6a83a5c6af36056ed5f2cf02fe0
[ "MIT" ]
4
2020-04-18T22:53:33.000Z
2021-06-04T09:31:13.000Z
from marshmallow import Schema, fields, validate class Human(Schema): reanimators_count = fields.Integer(required=False) need_staff = fields.Integer(required=False, validate=validate.OneOf([1, 0])) class Supply(Schema): respirators_count = fields.Integer(required=False) efp2_masks_count = fields.Int...
36.458333
80
0.756571