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
d62341d7ceb4199dfb459c2b083fea4f1fac07a1
2,311
py
Python
ExtentionPackages/cryptography/x509/name.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
2
2020-02-05T04:57:55.000Z
2021-03-03T23:29:30.000Z
ExtentionPackages/cryptography/x509/name.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
4
2017-10-24T21:47:53.000Z
2019-09-22T13:12:57.000Z
ExtentionPackages/cryptography/x509/name.py
hongsofwing/PyQYT-master
9a112d9adbf9885a8b7535b7ef7759b60a0f9a29
[ "CNRI-Python" ]
2
2019-06-17T11:51:56.000Z
2020-07-25T08:29:56.000Z
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import six from cryptography import utils from cryptography.x509.oid imp...
27.511905
79
0.626136
2b920faf0ae8f628eca9234cf8c606cea5cc3135
954
py
Python
isi_sdk_8_0_1/test/test_providers_file_file_item.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_0_1/test/test_providers_file_file_item.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_0_1/test/test_providers_file_file_item.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 4 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_0_1 from i...
23.268293
101
0.721174
d671579ced2d51da190ba6ef2b52308725f7b3b0
1,056
py
Python
pyNastran/gui/plugins/auto_wireframe.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
293
2015-03-22T20:22:01.000Z
2022-03-14T20:28:24.000Z
pyNastran/gui/plugins/auto_wireframe.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
512
2015-03-14T18:39:27.000Z
2022-03-31T16:15:43.000Z
pyNastran/gui/plugins/auto_wireframe.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
136
2015-03-19T03:26:06.000Z
2022-03-25T22:14:54.000Z
from pyNastran.gui.plugins.module import Module class AutoWireframe(Module): def __init__(self, gui): Module.__init__(self, gui) self._create_menu_items = self.gui._create_menu_items self.gui.create_menu_items = self._create_menu_items #def get_tools_checkables(self): #return [...
35.2
79
0.616477
d402679205241424453ea545bc608c9a1d9e6ea9
172
py
Python
ppci/lang/ocaml/__init__.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
ppci/lang/ocaml/__init__.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
ppci/lang/ocaml/__init__.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
from .cmo import read_file from .gen_ir import ocaml_to_ir __all__ = ['read_file', 'ocaml_to_ir'] if __name__ == '__main__': import sys read_file(sys.argv[0])
14.333333
38
0.697674
1aa536eaadca5143fc91b1d58cfee726006bff7d
277
py
Python
Chapter_5/projectContainer/appFolder/views.py
santarini/DjangoForBegin
aa0ae235d0c44269946a26276b7082d67a45f89d
[ "MIT" ]
null
null
null
Chapter_5/projectContainer/appFolder/views.py
santarini/DjangoForBegin
aa0ae235d0c44269946a26276b7082d67a45f89d
[ "MIT" ]
null
null
null
Chapter_5/projectContainer/appFolder/views.py
santarini/DjangoForBegin
aa0ae235d0c44269946a26276b7082d67a45f89d
[ "MIT" ]
null
null
null
from django.views.generic import ListView, DetailView from .models import Post class BlogListView(ListView): model = Post template_name = 'home.html' class BlogDetailView(DetailView): model = Post template_name = 'post_detail.html' # Create your views here.
21.307692
53
0.743682
aca9b70362b24a09a6b9fbb5f31f0c388889c306
3,200
py
Python
mthree/utils.py
mtreinish/mthree
031393e6f7461e9702ece1215023816571d70723
[ "Apache-2.0" ]
null
null
null
mthree/utils.py
mtreinish/mthree
031393e6f7461e9702ece1215023816571d70723
[ "Apache-2.0" ]
null
null
null
mthree/utils.py
mtreinish/mthree
031393e6f7461e9702ece1215023816571d70723
[ "Apache-2.0" ]
null
null
null
# This code is part of Mthree. # # (C) Copyright IBM 2021. # # 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 derivative wo...
29.906542
77
0.640938
d529f609b5115f11aff49c4539526d0fef413262
2,499
py
Python
tests/test_http_cookies.py
Digenis/scrapy
a7b86137d03c57cc6a91fd02b56ebb76fa9f4faa
[ "BSD-3-Clause" ]
1
2015-08-25T09:42:58.000Z
2015-08-25T09:42:58.000Z
tests/test_http_cookies.py
Digenis/scrapy
a7b86137d03c57cc6a91fd02b56ebb76fa9f4faa
[ "BSD-3-Clause" ]
null
null
null
tests/test_http_cookies.py
Digenis/scrapy
a7b86137d03c57cc6a91fd02b56ebb76fa9f4faa
[ "BSD-3-Clause" ]
1
2019-07-17T09:23:13.000Z
2019-07-17T09:23:13.000Z
from six.moves.urllib.parse import urlparse from unittest import TestCase from scrapy.http import Request, Response from scrapy.http.cookies import WrappedRequest, WrappedResponse class WrappedRequestTest(TestCase): def setUp(self): self.request = Request("http://www.example.com/page.html", ...
36.217391
84
0.680272
4d9d2c1bf2cb2f659a080daa2814476de8fcfc65
17,493
py
Python
kuryr_kubernetes/utils.py
scilla0531/kuryr-kubernetes
22dbcae14bdb24b37c1f819947d0072e4b015a5e
[ "Apache-2.0" ]
null
null
null
kuryr_kubernetes/utils.py
scilla0531/kuryr-kubernetes
22dbcae14bdb24b37c1f819947d0072e4b015a5e
[ "Apache-2.0" ]
null
null
null
kuryr_kubernetes/utils.py
scilla0531/kuryr-kubernetes
22dbcae14bdb24b37c1f819947d0072e4b015a5e
[ "Apache-2.0" ]
null
null
null
# 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 # distributed under t...
34.099415
79
0.668382
f55e634838ad3840b3c18237563655558b987899
5,191
py
Python
mesh2sh/geometry.py
le-Greg/mesh2sh
b61a0d53fa7c4f2474ce6ca54cd00622eeafe330
[ "MIT" ]
null
null
null
mesh2sh/geometry.py
le-Greg/mesh2sh
b61a0d53fa7c4f2474ce6ca54cd00622eeafe330
[ "MIT" ]
null
null
null
mesh2sh/geometry.py
le-Greg/mesh2sh
b61a0d53fa7c4f2474ce6ca54cd00622eeafe330
[ "MIT" ]
null
null
null
import torch def face_area(vertices, faces): """ Computes area of each faces using cross product Args: vertices (torch.tensor): Vx3, xyz coordinates of vertices faces (torch.tensor): Fx3, index of vertices for each face Returns: (torch.tensor): F, area of each face """ ...
36.300699
116
0.629936
093522deced8ad0d8a99267999bc7c443225d594
9,966
py
Python
pysnmp-with-texts/ZYXEL-DHCP-CLIENT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ZYXEL-DHCP-CLIENT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ZYXEL-DHCP-CLIENT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ZYXEL-DHCP-CLIENT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZYXEL-DHCP-CLIENT-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:49:20 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
114.551724
1,255
0.791892
a2c4ec97f0de83056e9bb135045dbb610fa07ab8
111
py
Python
data/Classes/Status.py
GoProduction/Employee_Management_System
7d766b9244ddb5105ecf6e0c85773f2a38a2f979
[ "MIT" ]
null
null
null
data/Classes/Status.py
GoProduction/Employee_Management_System
7d766b9244ddb5105ecf6e0c85773f2a38a2f979
[ "MIT" ]
null
null
null
data/Classes/Status.py
GoProduction/Employee_Management_System
7d766b9244ddb5105ecf6e0c85773f2a38a2f979
[ "MIT" ]
null
null
null
class Status: def __init__(self, statusID, name): self.statusID = statusID self.name = name
27.75
39
0.630631
fdbff73d2fbcd4cb784cf96308b1998fb11f291f
385
py
Python
_modules_tests/unit/kafka_test.py
nokia/saltstack-formulas
41f46dbb91622dc0eb05bfba5d2d4a0a10d4c130
[ "Apache-2.0" ]
9
2016-04-12T05:22:55.000Z
2022-03-01T14:48:07.000Z
_modules_tests/unit/kafka_test.py
nokia/saltstack-formulas
41f46dbb91622dc0eb05bfba5d2d4a0a10d4c130
[ "Apache-2.0" ]
null
null
null
_modules_tests/unit/kafka_test.py
nokia/saltstack-formulas
41f46dbb91622dc0eb05bfba5d2d4a0a10d4c130
[ "Apache-2.0" ]
5
2016-02-28T03:45:33.000Z
2021-11-05T14:55:01.000Z
import __builtin__ import kafka import unittest import logging class TestingKafkaFunctions(unittest.TestCase): def setUp(self): __builtin__.__pillar__ = {} __builtin__.__grains__ = {} __builtin__.__salt__ = {} logging.basicConfig() def test_format_option(self): self.as...
24.0625
79
0.683117
3641362ae724f4595a91b96357d26d9db55843e5
26,168
py
Python
symbolic_functionals/syfes/symbolic/enhancement_factors.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-19T04:26:12.000Z
2022-03-19T04:26:12.000Z
symbolic_functionals/syfes/symbolic/enhancement_factors.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
symbolic_functionals/syfes/symbolic/enhancement_factors.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
39.588502
80
0.674603
398da95798c635695c6076307201a4047ca7b282
16,908
py
Python
src/plotall.py
tokudaek/epidspread
5129ee9fe1f7ed69118b14290b1a3d19a79977c5
[ "MIT" ]
null
null
null
src/plotall.py
tokudaek/epidspread
5129ee9fe1f7ed69118b14290b1a3d19a79977c5
[ "MIT" ]
null
null
null
src/plotall.py
tokudaek/epidspread
5129ee9fe1f7ed69118b14290b1a3d19a79977c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Plot the results from lattice-sir.py """ import argparse import logging import os from os.path import join as pjoin from logging import debug, info import datetime import numpy as np import pandas as pd import scipy import scipy.stats from sklearn.preprocessing import StandardScaler import m...
35.298539
146
0.557074
438f02fa7d6f802e743eaae7a4a3d0f6cefc42b2
434
py
Python
services/api/flask_app/tests/__init__.py
jakkso/flask_translator
eae2f53e611c15f1c43d34bee1bfb047e66e9fad
[ "MIT" ]
null
null
null
services/api/flask_app/tests/__init__.py
jakkso/flask_translator
eae2f53e611c15f1c43d34bee1bfb047e66e9fad
[ "MIT" ]
null
null
null
services/api/flask_app/tests/__init__.py
jakkso/flask_translator
eae2f53e611c15f1c43d34bee1bfb047e66e9fad
[ "MIT" ]
null
null
null
""" Contains test fixture for testing endpoints """ import pytest from settings import Config from flask_app import create_app, db @pytest.fixture() def app(): """ Fixture for running tests :return: """ test_config = {"TESTING": True, "SQLALCHEMY_DATABASE_URI": Config.TESTING_DB_URL} app = cr...
19.727273
85
0.672811
8524d198e26c05399dea7f35b53b9fd8cf78d4e4
2,793
py
Python
src/fastbt/tradebook.py
uberdeveloper/fastbt
0a056e269b9ce65a282bfb764e3b0de2245739f0
[ "MIT" ]
21
2018-10-17T20:59:26.000Z
2021-12-21T15:42:15.000Z
src/fastbt/tradebook.py
uberdeveloper/fastbt
0a056e269b9ce65a282bfb764e3b0de2245739f0
[ "MIT" ]
1
2021-07-19T15:16:41.000Z
2021-07-20T14:15:25.000Z
src/fastbt/tradebook.py
uberdeveloper/fastbt
0a056e269b9ce65a282bfb764e3b0de2245739f0
[ "MIT" ]
10
2018-08-27T11:01:25.000Z
2022-02-17T11:04:19.000Z
from collections import Counter, defaultdict class TradeBook: """ TO DO: Add open, long, short positions """ def __init__(self, name="tradebook"): self._name = name self._trades = defaultdict(list) self._values = Counter() self._positions = Counter() def __rep...
24.716814
84
0.526674
d35a22f1517e3cd75f03b23469f63513a213d631
2,095
py
Python
afinipy/base_class.py
RUrlus/afinipy
d5eb1d447c45d17016c476d30cc9be08a1c50632
[ "BSD-3-Clause" ]
6
2019-07-22T13:37:40.000Z
2022-01-04T09:46:54.000Z
afinipy/base_class.py
RUrlus/afinipy
d5eb1d447c45d17016c476d30cc9be08a1c50632
[ "BSD-3-Clause" ]
6
2018-08-09T16:35:11.000Z
2019-04-15T11:19:44.000Z
afinipy/base_class.py
RUrlus/afinipy
d5eb1d447c45d17016c476d30cc9be08a1c50632
[ "BSD-3-Clause" ]
2
2021-02-20T13:54:24.000Z
2021-03-02T22:07:48.000Z
"""Baseclass for writer functions.""" from __future__ import absolute_import import os import textwrap class BaseClass(object): """Base class for writing inits.""" def __init__(self): """Empty placeholder.""" pass def write_init(self): """Write the imports string and all_udefs l...
27.933333
75
0.535084
938d424e9caf5cce5c2d54a92fa0907affc02b39
3,547
py
Python
bindings/python/ensmallen/datasets/string/tepidibacterformicigenesdsm15518.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/tepidibacterformicigenesdsm15518.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/tepidibacterformicigenesdsm15518.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Tepidibacter formicigenes DSM 15518. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: pro...
33.780952
223
0.682831
6b30ccd8dff35268d834344afd1c01411dd06d88
1,290
py
Python
src/sensor_salinity/sensor_salinity/salinity_data_publisher_node.py
NathanLec/Sensors_drivers_BROV2
3ddd39bc1616caabea5646e90cf9c9a5199fe432
[ "MIT" ]
null
null
null
src/sensor_salinity/sensor_salinity/salinity_data_publisher_node.py
NathanLec/Sensors_drivers_BROV2
3ddd39bc1616caabea5646e90cf9c9a5199fe432
[ "MIT" ]
null
null
null
src/sensor_salinity/sensor_salinity/salinity_data_publisher_node.py
NathanLec/Sensors_drivers_BROV2
3ddd39bc1616caabea5646e90cf9c9a5199fe432
[ "MIT" ]
1
2022-03-03T15:15:53.000Z
2022-03-03T15:15:53.000Z
from rclpy.node import Node # tsys01 needed in order to utilize the BlueRobotics TSYS01 Python Library which must be installed from sensor_salinity import catlas01 from sensor_interfaces.msg import Salinity class SalinityDataPublisher(Node): # Initializer def __init__(self): super().__init__('Salini...
36.857143
98
0.666667
a416ad78e8f9a6e0216c35973de775e7810ff048
451
py
Python
colour/examples/quality/examples_ssi.py
aurelienpierre/colour
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
[ "BSD-3-Clause" ]
null
null
null
colour/examples/quality/examples_ssi.py
aurelienpierre/colour
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
[ "BSD-3-Clause" ]
null
null
null
colour/examples/quality/examples_ssi.py
aurelienpierre/colour
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
[ "BSD-3-Clause" ]
null
null
null
"""Showcases *Academy Spectral Similarity Index* (SSI) computations.""" import colour from colour.utilities import message_box message_box("Academy Spectral Similarity Index Computations") message_box( 'Computing the "CIE Illuminant B" "Academy Spectral Similarity Index (SSI)" ' 'with "CIE Standard Illuminan...
26.529412
81
0.742794
48b4def87b1a791a5e8a24544862f3c95550ca20
9,106
py
Python
qiskit_metal/qlibrary/tlines/mixed_path.py
huggingworld/qiskit-metal
70c4f970d7f72c11e04878cb9d2a23411954e171
[ "Apache-2.0" ]
null
null
null
qiskit_metal/qlibrary/tlines/mixed_path.py
huggingworld/qiskit-metal
70c4f970d7f72c11e04878cb9d2a23411954e171
[ "Apache-2.0" ]
null
null
null
qiskit_metal/qlibrary/tlines/mixed_path.py
huggingworld/qiskit-metal
70c4f970d7f72c11e04878cb9d2a23411954e171
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2021. # # 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...
45.079208
212
0.631891
3bde957edf7daea4f2f9ef5d4412f124e3910024
13,560
py
Python
models/components/attention/_ForcedAttention.py
ErikHumphrey/sustain-seq2seq
c4787f0ca1047d01385e4fa4ffde59c6a8ab4cc4
[ "Apache-2.0" ]
4
2019-05-09T19:47:48.000Z
2020-04-11T13:58:31.000Z
models/components/attention/_ForcedAttention.py
ErikHumphrey/sustain-seq2seq
c4787f0ca1047d01385e4fa4ffde59c6a8ab4cc4
[ "Apache-2.0" ]
null
null
null
models/components/attention/_ForcedAttention.py
ErikHumphrey/sustain-seq2seq
c4787f0ca1047d01385e4fa4ffde59c6a8ab4cc4
[ "Apache-2.0" ]
4
2018-12-05T01:52:22.000Z
2019-11-01T01:01:52.000Z
import os, sys, math sys.path.insert(0, '../../..') import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import scipy.stats class Attention(nn.Module): def __init__(self, encoder_size, decoder_size, device, type="additive"): """ Attention module. T...
46.279863
241
0.587979
29fa4cb6a574ade0ecece76912cd2ea72b484131
1,938
py
Python
neptune/new/internal/streams/std_capture_background_job.py
michalsustr/neptune-client
98858859f26d6b4e3aa59fbf6be63ff97e1abd9a
[ "Apache-2.0" ]
null
null
null
neptune/new/internal/streams/std_capture_background_job.py
michalsustr/neptune-client
98858859f26d6b4e3aa59fbf6be63ff97e1abd9a
[ "Apache-2.0" ]
null
null
null
neptune/new/internal/streams/std_capture_background_job.py
michalsustr/neptune-client
98858859f26d6b4e3aa59fbf6be63ff97e1abd9a
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2020, Neptune Labs Sp. z o.o. # # 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 agr...
31.770492
79
0.74613
26132a2f84f731f12755e0cfd949bc25b24d897a
1,331
py
Python
cmscalibration/utils/config.py
mxsg/CMS-Model-Calibration
f7f85e863190f7a7ef0922dca4d0a8f8178e5a9e
[ "MIT" ]
null
null
null
cmscalibration/utils/config.py
mxsg/CMS-Model-Calibration
f7f85e863190f7a7ef0922dca4d0a8f8178e5a9e
[ "MIT" ]
null
null
null
cmscalibration/utils/config.py
mxsg/CMS-Model-Calibration
f7f85e863190f7a7ef0922dca4d0a8f8178e5a9e
[ "MIT" ]
null
null
null
""" Configuration management module. Loads JSON configuration files and provides values in its global namespace. """ import json import logging import os def load_config(config_path): """ Load a configuration file from JSON. """ logging.debug("Loading configuration from path {}".format(config_path)) if ...
30.953488
91
0.699474
2ea0325ab1de66008c14a06bdc1ee84379421e26
3,931
py
Python
milking_cowmask/architectures/shake.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
milking_cowmask/architectures/shake.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
milking_cowmask/architectures/shake.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
30.952756
79
0.700076
5cd039d0109925af49046d4a2b897ded47dcd2f8
818
py
Python
webscraping_basic/13_selenium.py
tunealog/python-web-scraping
0d625fb610f5a0979a008c2e2c9ddd31d8ef9c17
[ "MIT" ]
null
null
null
webscraping_basic/13_selenium.py
tunealog/python-web-scraping
0d625fb610f5a0979a008c2e2c9ddd31d8ef9c17
[ "MIT" ]
null
null
null
webscraping_basic/13_selenium.py
tunealog/python-web-scraping
0d625fb610f5a0979a008c2e2c9ddd31d8ef9c17
[ "MIT" ]
null
null
null
# Python Web Scraping # Title : Selenium # Date : 2020-08-28 # Creator : tunealog from selenium import webdriver from selenium.webdriver.common.keys import Keys browser = webdriver.Chrome() # "./chromedriver.exe" browser.get("https://www.naver.com/") elem = browser.find_element_by_class_name("link_login") elem.click...
26.387097
55
0.746944
775fd950436dcb0bf3b45a90137947243db88feb
953
py
Python
installer/core/providers/aws/boto3/cloudwatch_log.py
jonico/pacbot
ecb94fb987147098bc5b359772fad264619b3099
[ "Apache-2.0" ]
1,165
2018-10-05T19:07:34.000Z
2022-03-28T19:34:27.000Z
installer/core/providers/aws/boto3/cloudwatch_log.py
jonico/pacbot
ecb94fb987147098bc5b359772fad264619b3099
[ "Apache-2.0" ]
334
2018-10-10T14:00:41.000Z
2022-03-19T16:32:08.000Z
installer/core/providers/aws/boto3/cloudwatch_log.py
jtimberlake/pacbot
5a25dc15882324583860630e773af2e2647dd5fa
[ "Apache-2.0" ]
268
2018-10-05T19:53:25.000Z
2022-03-31T07:39:47.000Z
from core.providers.aws.boto3 import prepare_aws_client_with_given_cred import boto3 def get_logs_client(aws_auth_cred): """ Returns the client object for AWS Cloudwatch Log Args: aws_auth (dict): Dict containing AWS credentials Returns: obj: AWS Cloudwatch Event Log Obj """ ...
27.228571
80
0.711438
d650738874802c7280aa761b74efab4470d7e0d3
10,072
py
Python
venv/Lib/site-packages/keystoneclient/tests/unit/v2_0/test_users.py
prasoon-uta/IBM-coud-storage
82a6876316715efbd0b492d0d467dde0ab26a56b
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/keystoneclient/tests/unit/v2_0/test_users.py
prasoon-uta/IBM-coud-storage
82a6876316715efbd0b492d0d467dde0ab26a56b
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/keystoneclient/tests/unit/v2_0/test_users.py
prasoon-uta/IBM-coud-storage
82a6876316715efbd0b492d0d467dde0ab26a56b
[ "Apache-2.0" ]
1
2020-07-21T02:18:23.000Z
2020-07-21T02:18: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...
33.350993
79
0.503177
499727983e78031caecad8b3dcad6fb2229bc4db
4,058
py
Python
tools/redeem_check.py
commerceblock/asset-mapping
ba33f2698ba7a9f7f1c59fea531cad919ed34fa3
[ "MIT" ]
3
2019-06-12T16:43:10.000Z
2021-09-20T06:46:20.000Z
tools/redeem_check.py
cryptopoly/asset-mapping
d61b196066fadc54f1a1600fb72ef7c5627db3e4
[ "MIT" ]
41
2019-05-03T14:52:45.000Z
2019-10-25T09:07:15.000Z
tools/redeem_check.py
cryptopoly/asset-mapping
d61b196066fadc54f1a1600fb72ef7c5627db3e4
[ "MIT" ]
3
2019-06-12T16:44:14.000Z
2021-11-09T20:32:18.000Z
#!/usr/bin/env python import amap.mapping as am import bitcoin as bc from datetime import datetime import amap.rpchost as rpc import time import boto3 import sys import json import requests # Connecting to Ocean client rpcport = 8332 rpcuser = 'ocean' rpcpassword = 'oceanp...
29.405797
94
0.642188
25711d81194b40bc2b6d0ba074e28cdcfaf6e15f
23
py
Python
tests/models/__init__.py
fajril/petrocast
7f26059f472bd436056307e6d2bb62d8b694111f
[ "Apache-2.0" ]
null
null
null
tests/models/__init__.py
fajril/petrocast
7f26059f472bd436056307e6d2bb62d8b694111f
[ "Apache-2.0" ]
null
null
null
tests/models/__init__.py
fajril/petrocast
7f26059f472bd436056307e6d2bb62d8b694111f
[ "Apache-2.0" ]
null
null
null
from petrocast import *
23
23
0.826087
1c79d877f848a807b59139905f83708344bd6d36
3,983
py
Python
src/mysql_adapter.py
Pacmed/icu-prediction-api
5b4756441e0d2692713f480eeefaa9d3d792bfd0
[ "MIT" ]
1
2019-04-02T06:58:10.000Z
2019-04-02T06:58:10.000Z
src/mysql_adapter.py
Pacmed/icu-prediction-api
5b4756441e0d2692713f480eeefaa9d3d792bfd0
[ "MIT" ]
null
null
null
src/mysql_adapter.py
Pacmed/icu-prediction-api
5b4756441e0d2692713f480eeefaa9d3d792bfd0
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ICU Prediction API: MySQL adapter. Author: Bas Vonk Date: 2019-04-01 """ import MySQLdb from src.config import MYSQL_CONFIG from time import sleep import logging import coloredlogs MAX_RETRIES = 10 LOGGER = logging.getLogger('MySQL adapter') coloredlogs.install(logger=LOGGER) class My...
26.912162
89
0.570926
61e13ae1db94d8c05156d4b241999992a3a0f7db
17,539
py
Python
src/keypair_permissions/models.py
backupbrain/drf-keypair-permissions
d3e427b4780b20033d66d934d22dbb9ce7f439f5
[ "0BSD" ]
2
2021-05-19T23:01:32.000Z
2021-05-20T10:57:17.000Z
src/keypair_permissions/models.py
backupbrain/drf-keypair-permissions
d3e427b4780b20033d66d934d22dbb9ce7f439f5
[ "0BSD" ]
null
null
null
src/keypair_permissions/models.py
backupbrain/drf-keypair-permissions
d3e427b4780b20033d66d934d22dbb9ce7f439f5
[ "0BSD" ]
null
null
null
from django.db import models from django.db.models.signals import pre_save from .exceptions import ( MissingHttpHeaderException, InvalidAuthorizationTypeFormatException, InvalidAuthorizationTypeException, InvalidAuthorizationKeyParameterException, MissingKeyIdParameterException, MissingAlgorithm...
40.043379
126
0.666743
a1fb16e16d8cb6792c08b0e74121e3606c419009
2,507
py
Python
openstack/compute/v2/keypair.py
gthiemonge/openstacksdk
e1c6f233eb6b07f488fe4acded72312d8d265b33
[ "Apache-2.0" ]
null
null
null
openstack/compute/v2/keypair.py
gthiemonge/openstacksdk
e1c6f233eb6b07f488fe4acded72312d8d265b33
[ "Apache-2.0" ]
null
null
null
openstack/compute/v2/keypair.py
gthiemonge/openstacksdk
e1c6f233eb6b07f488fe4acded72312d8d265b33
[ "Apache-2.0" ]
1
2021-03-12T14:28:28.000Z
2021-03-12T14:28:28.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 # distributed under t...
38.569231
78
0.682888
c90658eb1b991325b2baa02a80ba750bd11a6279
379
py
Python
ipyloading/__init__.py
fitoprincipe/ipyloading
43c91557917502677dfdd8c264389880d7155e8d
[ "MIT" ]
1
2020-11-15T13:11:24.000Z
2020-11-15T13:11:24.000Z
ipyloading/__init__.py
fitoprincipe/ipyloading
43c91557917502677dfdd8c264389880d7155e8d
[ "MIT" ]
null
null
null
ipyloading/__init__.py
fitoprincipe/ipyloading
43c91557917502677dfdd8c264389880d7155e8d
[ "MIT" ]
null
null
null
# coding=utf-8 """ Loading widgets. Main resource: https://loading.io/css/ """ from __future__ import absolute_import, division, print_function __version__ = "0.0.1" __title__ = "ipyloading" __summary__ = "Loading widgets" __uri__ = "" __author__ = "Rodrigo E. Principe" __email__ = "fitoprincipe82@gmail.com" __lic...
21.055556
64
0.736148
38aa345786b18f06e595277b13ca908881bc656c
50,886
py
Python
bert_new_kfold/bert_12.py
Harlen520/NCPQA
5d94d38bc5ab4824e7172c3f81121396db9754a3
[ "Apache-2.0" ]
12
2020-12-16T08:42:03.000Z
2022-03-11T16:38:24.000Z
bert_new_kfold/bert_12.py
Harlen520/NCPQA
5d94d38bc5ab4824e7172c3f81121396db9754a3
[ "Apache-2.0" ]
null
null
null
bert_new_kfold/bert_12.py
Harlen520/NCPQA
5d94d38bc5ab4824e7172c3f81121396db9754a3
[ "Apache-2.0" ]
3
2020-12-16T08:42:34.000Z
2020-12-16T08:46:22.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy...
42.797309
134
0.611445
fc7587c0728fafa54a2b33a5d69c1035a42d7a5f
921
py
Python
xlsxwriter/test/comparison/test_hyperlink11.py
timgates42/XlsxWriter
129044ed821de67895b4562c6b71f90eba5be6b4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_hyperlink11.py
timgates42/XlsxWriter
129044ed821de67895b4562c6b71f90eba5be6b4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_hyperlink11.py
timgates42/XlsxWriter
129044ed821de67895b4562c6b71f90eba5be6b4
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2020, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
26.314286
110
0.627579
513a5ff9466c34e62a7d7530ca2b75b9f1c57418
1,092
py
Python
tests/unit/test_models/test_submodels/test_thermal/test_x_lumped/test_x_lumped_1D_current_collector.py
jedgedrudd/PyBaMM
79c9d34978382d50e09adaf8bf74c8fa4723f759
[ "BSD-3-Clause" ]
1
2019-10-29T19:06:04.000Z
2019-10-29T19:06:04.000Z
tests/unit/test_models/test_submodels/test_thermal/test_x_lumped/test_x_lumped_1D_current_collector.py
jedgedrudd/PyBaMM
79c9d34978382d50e09adaf8bf74c8fa4723f759
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_models/test_submodels/test_thermal/test_x_lumped/test_x_lumped_1D_current_collector.py
jedgedrudd/PyBaMM
79c9d34978382d50e09adaf8bf74c8fa4723f759
[ "BSD-3-Clause" ]
null
null
null
# # Test x-lumped submodel with 1D current collectors # import pybamm import tests import unittest from tests.unit.test_models.test_submodels.test_thermal.coupled_variables import ( coupled_variables, ) class TestCurrentCollector1D(unittest.TestCase): def test_public_functions(self): param = pybamm....
27.3
83
0.685897
6005c454c41abf72372cf7ae6ab8a33d93dce45a
2,336
py
Python
wtoolzargs/ordering/scanner.py
e-k-m/wtoolzargs
edd1e932852aee1e8b56eb8e09739b7f48c638b6
[ "MIT" ]
null
null
null
wtoolzargs/ordering/scanner.py
e-k-m/wtoolzargs
edd1e932852aee1e8b56eb8e09739b7f48c638b6
[ "MIT" ]
null
null
null
wtoolzargs/ordering/scanner.py
e-k-m/wtoolzargs
edd1e932852aee1e8b56eb8e09739b7f48c638b6
[ "MIT" ]
null
null
null
from wtoolzargs.common import exceptions from wtoolzargs.common import token_ from wtoolzargs.ordering import tokentype ScanError = exceptions.ScanError TT = tokentype.TokenType Token = token_.Token class Scanner(object): def __init__(self, source): self.source = source self.tokens = [] s...
25.955556
67
0.543664
8d684f88721b969f8c7c07dbf8101613beab996a
1,866
py
Python
tests/test_api.py
systemallica/django-belt
3035a8bad26a108d9c78daaccb81ab8a9a9ebd41
[ "MIT" ]
2
2019-10-08T08:56:46.000Z
2020-10-10T08:29:43.000Z
tests/test_api.py
systemallica/django-belt
3035a8bad26a108d9c78daaccb81ab8a9a9ebd41
[ "MIT" ]
null
null
null
tests/test_api.py
systemallica/django-belt
3035a8bad26a108d9c78daaccb81ab8a9a9ebd41
[ "MIT" ]
2
2019-10-08T08:59:54.000Z
2021-03-18T18:15:38.000Z
from test_plus import APITestCase from tests.app.constants import DRAFT, PUBLISHED from tests.factories import BlogFactory, PostFactory class PostAPITestCase(APITestCase): def test_list_serializer(self): PostFactory.create_batch(size=10) self.get("api_v1:post-list") self.response_200() ...
34.555556
80
0.660236
886c78a2e1eb515bb2ad0cb756835b404e384e22
3,541
py
Python
app/main/views.py
IJaccojwang/moringapitch
775b235aa80194ab4bbf685faf9953a927c6d8d2
[ "MIT" ]
1
2019-11-13T14:48:48.000Z
2019-11-13T14:48:48.000Z
app/main/views.py
badruu/moringapitch
775b235aa80194ab4bbf685faf9953a927c6d8d2
[ "MIT" ]
null
null
null
app/main/views.py
badruu/moringapitch
775b235aa80194ab4bbf685faf9953a927c6d8d2
[ "MIT" ]
5
2019-05-04T00:07:02.000Z
2020-02-26T12:03:56.000Z
from flask import render_template, request, redirect, url_for, abort from flask_login import login_required, current_user from . import main from .forms import PitchForm, CommentForm from ..models import Pitch, Comment, Star from .. import db import markdown2 @main.route('/') def index(): ''' View root page f...
33.093458
165
0.698955
727675724fb1e9ef93467bfb8b06390c76216a9d
2,792
py
Python
src/gcn/datasets.py
ssmehta/GCN-retention-time-predictions
0ed17afa70d363033025cb4cc7b940ff3cb9ed8d
[ "MIT" ]
7
2021-09-14T08:27:21.000Z
2022-03-10T11:53:00.000Z
src/gcn/datasets.py
ssmehta/GCN-retention-time-predictions
0ed17afa70d363033025cb4cc7b940ff3cb9ed8d
[ "MIT" ]
null
null
null
src/gcn/datasets.py
ssmehta/GCN-retention-time-predictions
0ed17afa70d363033025cb4cc7b940ff3cb9ed8d
[ "MIT" ]
3
2021-11-14T15:01:47.000Z
2022-03-31T04:28:09.000Z
import tensorflow as tf from typing import Optional from base_classes import datasets class GCNDataset(datasets.BaseDataset): def __init__(self, filenames: str = '../input/tfrecords/train.tfrec', batch_size: int = 128, training: bool = False, k...
34.04878
82
0.587034
fb192eef74aa1f49ff5763de550d743929419794
13,395
py
Python
psychsim/pwl/matrix.py
pynadath/psychsim
c7b2b92e6ff8b83b2e832acda02c4baafabdf06f
[ "MIT" ]
23
2016-04-08T08:21:12.000Z
2022-03-15T02:49:12.000Z
psychsim/pwl/matrix.py
pynadath/psychsim
c7b2b92e6ff8b83b2e832acda02c4baafabdf06f
[ "MIT" ]
3
2019-07-22T16:29:07.000Z
2020-11-06T07:00:16.000Z
psychsim/pwl/matrix.py
pynadath/psychsim
c7b2b92e6ff8b83b2e832acda02c4baafabdf06f
[ "MIT" ]
12
2015-06-07T00:41:31.000Z
2020-01-10T15:04:43.000Z
import copy from xml.dom.minidom import Document,Node from psychsim.probability import Distribution from psychsim.pwl.vector import * from psychsim.pwl.keys import CONSTANT,makeFuture class KeyedMatrix(dict): def __init__(self,arg={}): self._keysIn = None self._keysOut = None if isinstanc...
35.815508
156
0.553789
a9903423abed48a5b689594640d4fc0b6ee70f55
3,503
py
Python
tsp.py
antenna-three/or-tools
f93b3c246080cbdb6d2dc46e0922d4a2b49182c7
[ "Apache-2.0" ]
null
null
null
tsp.py
antenna-three/or-tools
f93b3c246080cbdb6d2dc46e0922d4a2b49182c7
[ "Apache-2.0" ]
null
null
null
tsp.py
antenna-three/or-tools
f93b3c246080cbdb6d2dc46e0922d4a2b49182c7
[ "Apache-2.0" ]
null
null
null
""" This program is a modification based on work created and shared by Google (https://developers.google.com/readme/policies) and used according to terms described in the Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0). The original code can be found in https://developers.google.com/optimization/routin...
35.03
232
0.682272
69df7200e526c8d8b65be6d7a65277f8c778106b
24,060
py
Python
misc/tools/generateDS-2.7a/tests/anysimpletype1_sup.py
zeehio/META-SHARE
b796769629734353a63d98db72c84617f725e544
[ "BSD-3-Clause" ]
11
2015-07-13T13:36:44.000Z
2021-11-15T08:07:25.000Z
misc/tools/generateDS-2.7a/tests/anysimpletype1_sup.py
zeehio/META-SHARE
b796769629734353a63d98db72c84617f725e544
[ "BSD-3-Clause" ]
13
2015-03-21T14:08:31.000Z
2021-05-18T18:47:58.000Z
misc/tools/generateDS-2.7a/tests/anysimpletype1_sup.py
zeehio/META-SHARE
b796769629734353a63d98db72c84617f725e544
[ "BSD-3-Clause" ]
12
2015-01-07T02:16:50.000Z
2021-05-18T08:25:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated by generateDS.py. # import sys import getopt import re as re_ etree_ = None Verbose_import_ = False ( XMLParser_import_none, XMLParser_import_lxml, XMLParser_import_elementtree ) = range(3) XMLParser_import_library = None try: # lxml fro...
38.009479
107
0.605902
d655b791a1345bb1306e112ea34a2969f3edb52d
1,714
py
Python
IMU/VTK-6.2.0/Examples/VisualizationAlgorithms/Python/deciFran.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
4
2016-03-30T14:31:52.000Z
2019-02-02T05:01:32.000Z
IMU/VTK-6.2.0/Examples/VisualizationAlgorithms/Python/deciFran.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
null
null
null
IMU/VTK-6.2.0/Examples/VisualizationAlgorithms/Python/deciFran.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
2
2019-08-30T23:36:13.000Z
2019-11-08T16:52:01.000Z
#!/usr/bin/env python # This example shows how to use decimation to reduce a polygonal # mesh. We also use mesh smoothing and generate surface normals to # give a pleasing result. import vtk from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # We start by reading some data that was o...
32.339623
70
0.76196
6594292363898a9f44fa0d767dd4983bd6063cad
1,369
py
Python
neo/Core/State/StorageKey.py
volekerb/neo-python
5bdded2c339219355cf1d31ae58653b0f94c6e51
[ "MIT" ]
387
2017-07-17T18:25:54.000Z
2021-11-18T06:19:47.000Z
neo/Core/State/StorageKey.py
volekerb/neo-python
5bdded2c339219355cf1d31ae58653b0f94c6e51
[ "MIT" ]
967
2017-08-19T15:48:03.000Z
2021-06-01T21:42:39.000Z
neo/Core/State/StorageKey.py
volekerb/neo-python
5bdded2c339219355cf1d31ae58653b0f94c6e51
[ "MIT" ]
286
2017-07-17T03:44:36.000Z
2021-11-18T06:19:32.000Z
from neo.Core.IO.Mixins import SerializableMixin import mmh3 from neo.Core.BigInteger import BigInteger class StorageKey(): def __init__(self, script_hash=None, key=None): """ Create an instance. Args: script_hash (UInt160): key (bytes): """ self.S...
21.730159
76
0.540541
ce0ba8febee40312cb0493faef184621600b44d0
3,317
py
Python
lab_examples/lab6_np_cheatsheet.py
anthony-walker/me499
1ec5761a822956b4e18f83b3e0cda93715b74b3e
[ "BSD-3-Clause" ]
11
2020-03-31T21:27:19.000Z
2022-01-11T09:50:13.000Z
lab_examples/lab6_np_cheatsheet.py
anthony-walker/me499
1ec5761a822956b4e18f83b3e0cda93715b74b3e
[ "BSD-3-Clause" ]
null
null
null
lab_examples/lab6_np_cheatsheet.py
anthony-walker/me499
1ec5761a822956b4e18f83b3e0cda93715b74b3e
[ "BSD-3-Clause" ]
5
2020-05-13T05:47:23.000Z
2021-09-27T18:43:25.000Z
import numpy as np # Basic array definition, and shortcuts for creating common arrays array_1d = np.array([1, 2, 3]) array_2d = np.array([[1, 4, 3], [1, 5, 9]]) # 2 x 3 array zeros = np.zeros((3, 4)) identity = np.identity(4) rand = np.random.uniform(0, 1, size=(100, 3)) points = np.linspace(1, 2, 100) # Basic inf...
45.438356
117
0.547784
729a3fe1200e5bd18757c1e785a550941ebc70bb
3,353
py
Python
MyMxOnline/apps/organization/migrations/0001_initial.py
xgq07/Django
a3bfa4fa0ebfc3cdcbc59bcaa810507889050d3b
[ "MIT" ]
null
null
null
MyMxOnline/apps/organization/migrations/0001_initial.py
xgq07/Django
a3bfa4fa0ebfc3cdcbc59bcaa810507889050d3b
[ "MIT" ]
null
null
null
MyMxOnline/apps/organization/migrations/0001_initial.py
xgq07/Django
a3bfa4fa0ebfc3cdcbc59bcaa810507889050d3b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2019-03-31 14:12 from __future__ import unicode_literals import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ ...
46.569444
138
0.574411
707996a81d12163148a7b75e9bf5f8751dd1d3d1
10,037
py
Python
classroom.py
JuicyRibs/python_classroom
841b32de7961d76068b140b479223f7607e037de
[ "MIT" ]
null
null
null
classroom.py
JuicyRibs/python_classroom
841b32de7961d76068b140b479223f7607e037de
[ "MIT" ]
null
null
null
classroom.py
JuicyRibs/python_classroom
841b32de7961d76068b140b479223f7607e037de
[ "MIT" ]
null
null
null
import datetime import os users = [] bookingList = [] def programInit(): with open("userdata.csv") as userdata: for line in userdata: info = line.split(sep=",") # print(info) if (len(info) > 1): std = student(info[0], info[1], info[2], info[3...
34.491409
143
0.541696
4b8654301351a0cec364110c11cc43bc73d3ca18
1,127
py
Python
test/test_team.py
trc492/FrcDataAnalytics
4af82445ad9e10c47318104006aa25937681c18b
[ "MIT" ]
null
null
null
test/test_team.py
trc492/FrcDataAnalytics
4af82445ad9e10c47318104006aa25937681c18b
[ "MIT" ]
null
null
null
test/test_team.py
trc492/FrcDataAnalytics
4af82445ad9e10c47318104006aa25937681c18b
[ "MIT" ]
null
null
null
# coding: utf-8 """ The Blue Alliance API v3 # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account...
27.487805
381
0.693878
59292fd8c1ee55259684ef2f29c2de1e73e018b6
926
py
Python
tests/formatters/xchatlog.py
ir4n6/plaso
010f9cbdfc82e21ed6658657fd09a7b44115c464
[ "Apache-2.0" ]
null
null
null
tests/formatters/xchatlog.py
ir4n6/plaso
010f9cbdfc82e21ed6658657fd09a7b44115c464
[ "Apache-2.0" ]
null
null
null
tests/formatters/xchatlog.py
ir4n6/plaso
010f9cbdfc82e21ed6658657fd09a7b44115c464
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the XChat log file event formatter.""" from __future__ import unicode_literals import unittest from plaso.formatters import xchatlog from tests.formatters import test_lib class XChatLogFormatterTest(test_lib.EventFormatterTestCase): """Tests for the XChat l...
24.368421
61
0.741901
8dbd0e843f113172289289004d0105b1ffa118da
54,711
py
Python
electrum_vtc/util.py
samdisk11/electrum
4fffb4328a1764b5cd969b5c733e67bced2548a0
[ "MIT" ]
null
null
null
electrum_vtc/util.py
samdisk11/electrum
4fffb4328a1764b5cd969b5c733e67bced2548a0
[ "MIT" ]
2
2022-01-11T17:19:40.000Z
2022-01-14T16:32:23.000Z
electrum_vtc/util.py
samdisk11/electrum
4fffb4328a1764b5cd969b5c733e67bced2548a0
[ "MIT" ]
2
2022-01-13T05:04:16.000Z
2022-01-14T11:48:39.000Z
# Electrum - lightweight Bitcoin client # Copyright (C) 2011 Thomas Voegtlin # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights t...
33.018105
108
0.627863
524a0e50b7b58223c2b81c7de7ce3b75203d8a87
228
py
Python
votos/settings/local.py
PyBAQ/temii
5fb596bf5b289b82648c11304aaf2ed02590c8be
[ "Apache-2.0" ]
1
2018-10-27T19:40:34.000Z
2018-10-27T19:40:34.000Z
votos/settings/local.py
PyBAQ/temii
5fb596bf5b289b82648c11304aaf2ed02590c8be
[ "Apache-2.0" ]
45
2017-03-17T15:59:21.000Z
2021-06-10T23:44:58.000Z
votos/settings/local.py
PyBAQ/temii
5fb596bf5b289b82648c11304aaf2ed02590c8be
[ "Apache-2.0" ]
5
2017-08-28T03:25:02.000Z
2021-05-29T01:40:44.000Z
from .base import * DEBUG = True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'local.sqlite3'), } } INSTALLED_APPS += [ 'django_extensions', ]
14.25
56
0.583333
bb39887e9ee03547df50452079f91a07f8594eb7
2,121
py
Python
modules/tools/rosbag/dump_gpsbin.py
zhulianhai/apollo
ab47e53dff2a9fe836ac69fdf783a654a0220802
[ "Apache-2.0" ]
7
2017-07-07T07:56:13.000Z
2019-03-06T06:27:00.000Z
modules/tools/rosbag/dump_gpsbin.py
zhulianhai/apollo
ab47e53dff2a9fe836ac69fdf783a654a0220802
[ "Apache-2.0" ]
null
null
null
modules/tools/rosbag/dump_gpsbin.py
zhulianhai/apollo
ab47e53dff2a9fe836ac69fdf783a654a0220802
[ "Apache-2.0" ]
2
2017-07-07T07:56:15.000Z
2018-08-10T17:13:34.000Z
#!/usr/bin/env python ############################################################################### # Copyright 2018 The Apollo 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 ...
31.191176
79
0.648751
8d46c2ad276e9dafe3796ccb14052c80295ce3a0
644
py
Python
Lib/plat-mac/appletrunner.py
jasonadu/Python-2.5
93e24b88564de120b1296165b5c55975fdcb8a3c
[ "PSF-2.0" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
Lib/plat-mac/appletrunner.py
jasonadu/Python-2.5
93e24b88564de120b1296165b5c55975fdcb8a3c
[ "PSF-2.0" ]
1
2021-04-11T15:01:12.000Z
2021-04-11T15:01:12.000Z
Lib/plat-mac/appletrunner.py
jasonadu/Python-2.5
93e24b88564de120b1296165b5c55975fdcb8a3c
[ "PSF-2.0" ]
2
2016-04-04T14:31:33.000Z
2018-03-09T22:39:02.000Z
#!/usr/bin/env python # This file is meant as an executable script for running applets. # BuildApplet will use it as the main executable in the .app bundle if # we are not running in a framework build. import os import sys for name in ["__rawmain__.py", "__rawmain__.pyc", "__main__.py", "__main__.pyc"]: realmain =...
35.777778
81
0.686335
818ba5ea71834dd937ba040b9ef3d7b1940f4a00
643
py
Python
dvc/command/install.py
0xflotus/dvc
940731941d834138019d77d8300e2e3aea8c78aa
[ "Apache-2.0" ]
2
2021-09-22T15:31:46.000Z
2021-11-17T10:40:07.000Z
dvc/command/install.py
tdeboissiere/dvc
99ef6081c119336d83473a7cdffc2e780bbcdd68
[ "Apache-2.0" ]
null
null
null
dvc/command/install.py
tdeboissiere/dvc
99ef6081c119336d83473a7cdffc2e780bbcdd68
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import dvc.logger as logger from dvc.command.base import CmdBase class CmdInstall(CmdBase): def run_cmd(self): try: self.project.install() except Exception: logger.error("failed to install dvc hooks") return 1 ret...
24.730769
59
0.66874
1e86c88beea0b1477bd64f30100edb9984a1c4e8
5,602
py
Python
tests/utils/GraphicalUnitTester.py
Pow3r5/manim
2972a64342aa5ae72977b444f653b05250ab1f8f
[ "MIT" ]
2
2022-03-31T08:31:00.000Z
2022-03-31T08:31:43.000Z
tests/utils/GraphicalUnitTester.py
Pow3r5/manim
2972a64342aa5ae72977b444f653b05250ab1f8f
[ "MIT" ]
21
2022-03-02T15:25:49.000Z
2022-03-07T11:15:45.000Z
tests/utils/GraphicalUnitTester.py
DD2480-Group-10/manim
e147a9fc6c117332221e42437481f3efba76499a
[ "MIT" ]
null
null
null
from __future__ import annotations import logging import os import numpy as np from manim import config, tempconfig from manim.renderer.opengl_renderer import OpenGLRenderer class GraphicalUnitTester: """Class used to test the animations. Parameters ---------- scene_class : :class:`~.Scene` ...
37.346667
119
0.609425
94cc42a6cbbdedc473bb27c9671b02a23294f7cf
385
py
Python
Personal scripts/Web/open.py
powplowdevs/2021-2022-Projects
1b704e9dbb2768a3acf271b2de87ccb28ab8b933
[ "MIT" ]
null
null
null
Personal scripts/Web/open.py
powplowdevs/2021-2022-Projects
1b704e9dbb2768a3acf271b2de87ccb28ab8b933
[ "MIT" ]
null
null
null
Personal scripts/Web/open.py
powplowdevs/2021-2022-Projects
1b704e9dbb2768a3acf271b2de87ccb28ab8b933
[ "MIT" ]
null
null
null
import socketserver import http.server import urllib PORT = 9097 class MyProxy(http.server.SimpleHTTPRequestHandler): def do_GET(self): url=self.path[1:] self.send_response(200) self.end_headers() self.copyfile(urllib.urlopen(url), self.wfile) httpd = socketserver.ForkingTCPServer(('', PORT),...
24.0625
58
0.735065
f9f91287cbd754ccd06f470c9812906e4dd5a61a
3,206
py
Python
test_game.py
4enzo/learning_py
6f0bc7b974fd7cdb9138a5c41ebaec339373513f
[ "MIT" ]
null
null
null
test_game.py
4enzo/learning_py
6f0bc7b974fd7cdb9138a5c41ebaec339373513f
[ "MIT" ]
null
null
null
test_game.py
4enzo/learning_py
6f0bc7b974fd7cdb9138a5c41ebaec339373513f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 2018-07-21 @author: Enzo ''' class Person(object): """人的类""" def __init__(self,name): super(Person,self).__init__() self.name = name self.gun = None #保存枪的对象引用 self.hp = 100 #血量 def anzhuang_zidan(self,dan_jia,zi_dan): """把子弹装到...
20.683871
69
0.551466
c5e703baee5ef4fcab569bfc55f679ab395452af
1,179
py
Python
src/compas_rv/interface/interact.py
Rippmann/rv
59e8621c7ebccafaa9c848c2c98729841e85996c
[ "MIT" ]
null
null
null
src/compas_rv/interface/interact.py
Rippmann/rv
59e8621c7ebccafaa9c848c2c98729841e85996c
[ "MIT" ]
null
null
null
src/compas_rv/interface/interact.py
Rippmann/rv
59e8621c7ebccafaa9c848c2c98729841e85996c
[ "MIT" ]
null
null
null
import scriptcontext as sc import rhinoscriptsyntax as rs import Rhino import System import time from compas.datastructures.mesh import Mesh from compas.utilities import geometric_key from compas.geometry import centroid_points from compas_rv.commands._config import verboseprint if __name__ == "__main__": la...
21.833333
76
0.622561
3455dca66dd969ded8d2ceae4c2358d087fc61e2
20,487
py
Python
test/dialect/test_firebird.py
ewengillies/sqlalchemy
cbfa1363d7201848a56e7209146e81b9c51aa8af
[ "MIT" ]
6
2019-02-18T12:42:44.000Z
2020-11-11T23:10:17.000Z
test/dialect/test_firebird.py
oladimejiala/sqlalchemy
cbfa1363d7201848a56e7209146e81b9c51aa8af
[ "MIT" ]
null
null
null
test/dialect/test_firebird.py
oladimejiala/sqlalchemy
cbfa1363d7201848a56e7209146e81b9c51aa8af
[ "MIT" ]
2
2021-06-12T01:38:00.000Z
2021-09-05T21:18:29.000Z
from sqlalchemy import Column from sqlalchemy import Computed from sqlalchemy import exc from sqlalchemy import Float from sqlalchemy import func from sqlalchemy import insert from sqlalchemy import Integer from sqlalchemy import MetaData from sqlalchemy import schema from sqlalchemy import select from sqlalchemy impor...
32.467512
78
0.583346
19f7c282750650724b64030511a15e7a84e76415
439
py
Python
oxe-api/test/resource/public/test_get_public_article_enums.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
oxe-api/test/resource/public/test_get_public_article_enums.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
oxe-api/test/resource/public/test_get_public_article_enums.py
CybersecurityLuxembourg/openxeco
8d4e5578bde6a07f5d6d569b16b4de224abf7bf0
[ "BSD-2-Clause" ]
null
null
null
from test.BaseCase import BaseCase class TestGetPublicArticleEnums(BaseCase): def test_ok(self): response = self.application.get('/public/get_public_article_enums') self.assertEqual(200, response.status_code) self.assertEqual({ 'status': ['DRAFT', 'UNDER REVIEW', 'PUBLIC', '...
29.266667
81
0.630979
79ad379db1086d086263f3618202632e9ae46bcf
2,416
py
Python
kubernetes/ansible/dynamic_inventory.py
Otus-DevOps-2021-08/asm-n_microservices
f55f80ed4216eeae4367f506cc1749603a9ec3d5
[ "MIT" ]
null
null
null
kubernetes/ansible/dynamic_inventory.py
Otus-DevOps-2021-08/asm-n_microservices
f55f80ed4216eeae4367f506cc1749603a9ec3d5
[ "MIT" ]
null
null
null
kubernetes/ansible/dynamic_inventory.py
Otus-DevOps-2021-08/asm-n_microservices
f55f80ed4216eeae4367f506cc1749603a9ec3d5
[ "MIT" ]
1
2022-01-28T08:26:25.000Z
2022-01-28T08:26:25.000Z
#!/usr/bin/python3 import os import json import subprocess TERRAFORM_STATE_DIR = "../terraform/" def ReadTerraformState(terraformDir: str) -> dict: oldCwd = os.getcwd() terraformState = dict() try: os.chdir(terraformDir) terraformStateJson = subprocess.run(["terraform", "show", "-json"], ...
28.761905
98
0.650248
89a21646c9691a54aba1af1fbc1985b1d197722b
1,865
py
Python
argoverse/utils/ffmpeg_utils.py
ajinkyakhoche/argoverse-api
b1730f9e4377325436f3364abb4c1fe54ec71b0a
[ "MIT" ]
1
2020-11-29T00:43:28.000Z
2020-11-29T00:43:28.000Z
argoverse/utils/ffmpeg_utils.py
ajinkyakhoche/argoverse-api
b1730f9e4377325436f3364abb4c1fe54ec71b0a
[ "MIT" ]
null
null
null
argoverse/utils/ffmpeg_utils.py
ajinkyakhoche/argoverse-api
b1730f9e4377325436f3364abb4c1fe54ec71b0a
[ "MIT" ]
null
null
null
# <Copyright 2019, Argo AI, LLC. Released under the MIT license.> from argoverse.utils.subprocess_utils import run_command """ Create a high-quality video using the encoder x264. For x264, the valid Constant Rate Factor (crf) range is 0-51. The range of the quantizer scale is 0-51: where 0 is lossless, 23 is defaul...
33.909091
104
0.671314
5cd48f2b421e5896fb26975af16189ec2e269d06
875
py
Python
crab/plugins/behaviours/parent_constraint.py
ldunham1/crab
98daba4bbda7e64a14eee9549cf0a7660bc5b9a8
[ "MIT" ]
null
null
null
crab/plugins/behaviours/parent_constraint.py
ldunham1/crab
98daba4bbda7e64a14eee9549cf0a7660bc5b9a8
[ "MIT" ]
null
null
null
crab/plugins/behaviours/parent_constraint.py
ldunham1/crab
98daba4bbda7e64a14eee9549cf0a7660bc5b9a8
[ "MIT" ]
null
null
null
import pymel.core as pm import crab # ------------------------------------------------------------------------------ class ParentConstraintBehaviour(crab.Behaviour): identifier = 'Parent Constraint' version = 1 # -------------------------------------------------------------------------- def __init__...
30.172414
80
0.473143
ca11982ce238fdd6c3c542384892314fdff4092a
1,896
py
Python
astropy/io/registry/compat.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
1
2019-03-11T12:26:49.000Z
2019-03-11T12:26:49.000Z
astropy/io/registry/compat.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
1
2019-10-09T18:54:27.000Z
2019-10-09T18:54:27.000Z
astropy/io/registry/compat.py
MatiasRepetto/astropy
689f9d3b063145150149e592a879ee40af1fac06
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import functools import sys from .core import UnifiedIORegistry __all__ = ["register_reader", "register_writer", "register_identifier", # noqa: F822 "unregister_reader", "unregister_writer", "unregister_identifier", "get_reader", ...
30.580645
85
0.670886
fced85d6ec8340439e82ca0e06cb5d4ec8d501ba
6,033
py
Python
appengine/config_service/services_test.py
maruel/swarming
8ab7568635fcbfd85a01884b64704fc2a1ac13c7
[ "Apache-2.0" ]
74
2015-04-01T02:35:15.000Z
2021-12-17T22:10:56.000Z
appengine/config_service/services_test.py
maruel/swarming
8ab7568635fcbfd85a01884b64704fc2a1ac13c7
[ "Apache-2.0" ]
123
2015-04-01T04:02:57.000Z
2022-03-02T12:49:55.000Z
appengine/config_service/services_test.py
maruel/swarming
8ab7568635fcbfd85a01884b64704fc2a1ac13c7
[ "Apache-2.0" ]
32
2015-04-03T01:40:47.000Z
2021-11-13T15:20:13.000Z
#!/usr/bin/env vpython # Copyright 2015 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. from test_env import future import test_env test_env.setup_test_env() import mock import logging from components import n...
31.586387
78
0.634842
222bb7fb38a0ce0e68b5fff9534cf2f158865713
5,180
py
Python
experiments/kdd-exps/experiment_DynaQNN_130_Feb10_2317.py
huangxf14/deepnap
b4627ce1b9022d4f946d9b98d8d1622965cb7968
[ "BSD-3-Clause" ]
10
2018-08-22T21:37:18.000Z
2021-12-09T02:52:03.000Z
experiments/kdd-exps/experiment_DynaQNN_130_Feb10_2317.py
zhuwenxing/deepnap
0c460b43e91915ba295598780638cca89dd1dd26
[ "BSD-3-Clause" ]
null
null
null
experiments/kdd-exps/experiment_DynaQNN_130_Feb10_2317.py
zhuwenxing/deepnap
0c460b43e91915ba295598780638cca89dd1dd26
[ "BSD-3-Clause" ]
16
2018-01-15T03:07:18.000Z
2021-03-09T06:42:14.000Z
# System built-in modules import time from datetime import datetime import sys import os from multiprocessing import Pool # Project dependency modules import pandas as pd pd.set_option('mode.chained_assignment', None) # block warnings due to DataFrame value assignment import lasagne # Project modules sys.path.append('...
34.078947
103
0.68861
1f1f41541505f239fce3e277296e41ea6f0db5d1
3,859
py
Python
scripts/annotation_coco.py
RulerOf/keras-yolo3
8d091cf42b2f126626ad8610adf31293225b7daa
[ "MIT" ]
37
2018-10-20T15:50:18.000Z
2021-06-18T14:31:50.000Z
scripts/annotation_coco.py
RulerOf/keras-yolo3
8d091cf42b2f126626ad8610adf31293225b7daa
[ "MIT" ]
34
2019-04-10T18:59:08.000Z
2021-03-24T11:08:36.000Z
scripts/annotation_coco.py
RulerOf/keras-yolo3
8d091cf42b2f126626ad8610adf31293225b7daa
[ "MIT" ]
13
2019-08-29T08:19:05.000Z
2021-09-20T10:13:31.000Z
""" Creating training file from COCO dataset >> wget -O ~/Data/train2014.zip http://images.cocodataset.org/zips/train2014.zip >> wget -O ~/Data/val2014.zip http://images.cocodataset.org/zips/val2014.zip >> wget -O ~/Data/annotations_trainval2014.zip http://images.cocodataset.org/annotations/annotations_trainval2014.zi...
34.150442
117
0.609484
9e2b1cd90b691f2b4798bd26e0192cf2e934424e
9,359
py
Python
baselines/a2c/a2c.py
cmu-rl/baselines
9bcf8f8a0323399d09f48eaa18c035550e30b531
[ "MIT" ]
null
null
null
baselines/a2c/a2c.py
cmu-rl/baselines
9bcf8f8a0323399d09f48eaa18c035550e30b531
[ "MIT" ]
null
null
null
baselines/a2c/a2c.py
cmu-rl/baselines
9bcf8f8a0323399d09f48eaa18c035550e30b531
[ "MIT" ]
null
null
null
import time import functools import tensorflow as tf from baselines import logger from baselines.common import set_global_seeds, explained_variance from baselines.common import tf_util from baselines.common.policies import build_policy from baselines.a2c.utils import Scheduler, find_trainable_variables from baselin...
39.995726
186
0.651138
dd5b1de66e5227da7fc14bf60503fccd7d16b71f
19,040
py
Python
pyfda/input_widgets/file_io.py
gilbert0571/pyFDA
d2fe5e29b446399439eafdcb1541cb692d7e62e4
[ "MIT" ]
1
2020-01-04T07:42:15.000Z
2020-01-04T07:42:15.000Z
pyfda/input_widgets/file_io.py
gilbert0571/pyFDA
d2fe5e29b446399439eafdcb1541cb692d7e62e4
[ "MIT" ]
null
null
null
pyfda/input_widgets/file_io.py
gilbert0571/pyFDA
d2fe5e29b446399439eafdcb1541cb692d7e62e4
[ "MIT" ]
1
2020-01-04T07:42:42.000Z
2020-01-04T07:42:42.000Z
# -*- coding: utf-8 -*- """ Widget for exporting / importing and saving / loading filter data Author: Christian Muenker """ from __future__ import print_function, division, unicode_literals, absolute_import import sys, os, io import logging logger = logging.getLogger(__name__) from pyfda.pyfda_qt_lib import (qstyle_w...
41.754386
122
0.508141
d0f798c18ae870a57654ad010b7d4b72541836f9
5,830
py
Python
tests/components/mqtt_json/test_device_tracker.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
6
2020-07-18T16:33:25.000Z
2021-09-26T09:52:04.000Z
tests/components/mqtt_json/test_device_tracker.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
47
2020-07-23T07:13:11.000Z
2022-03-31T06:01:46.000Z
tests/components/mqtt_json/test_device_tracker.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
3
2020-10-18T07:08:40.000Z
2021-06-21T02:26:00.000Z
"""The tests for the JSON MQTT device tracker platform.""" import json import logging import os import pytest from homeassistant.components.device_tracker.legacy import ( DOMAIN as DT_DOMAIN, YAML_DEVICES, ) from homeassistant.const import CONF_PLATFORM from homeassistant.setup import async_setup_component f...
30.207254
85
0.686449
984c0fef7bca804ca6e9ad623aa0c98f90988086
3,268
py
Python
kubernetes/client/models/extensions_v1beta1_allowed_csi_driver.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/extensions_v1beta1_allowed_csi_driver.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/extensions_v1beta1_allowed_csi_driver.py
itholic/python
dffe577a062e17057270ae80fa677ffd83e9d183
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.7 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Extensions...
28.172414
124
0.574357
68441f1ee563ef408408e1e969a5928cedf091fb
10,204
py
Python
king_phisher/client/windows/plugin_manager.py
SKsample/king-phisher
7233d1ffa3db836bafb33efc43d682bb69335671
[ "BSD-3-Clause" ]
3
2018-12-17T02:54:18.000Z
2021-07-07T15:46:04.000Z
king_phisher/client/windows/plugin_manager.py
SKsample/king-phisher
7233d1ffa3db836bafb33efc43d682bb69335671
[ "BSD-3-Clause" ]
null
null
null
king_phisher/client/windows/plugin_manager.py
SKsample/king-phisher
7233d1ffa3db836bafb33efc43d682bb69335671
[ "BSD-3-Clause" ]
4
2017-09-14T03:02:40.000Z
2019-06-25T02:58:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # king_phisher/client/windows/plugin_manager.py # # 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...
37.653137
121
0.752842
50d2247d7b8793d5fc9bed886a22815711dca724
24,086
py
Python
phy/cluster/views/base.py
ycanerol/phy
7a247f926dd5bf5d8ab95fe138e8f4a0db11b068
[ "BSD-3-Clause" ]
null
null
null
phy/cluster/views/base.py
ycanerol/phy
7a247f926dd5bf5d8ab95fe138e8f4a0db11b068
[ "BSD-3-Clause" ]
null
null
null
phy/cluster/views/base.py
ycanerol/phy
7a247f926dd5bf5d8ab95fe138e8f4a0db11b068
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Manual clustering views.""" # ----------------------------------------------------------------------------- # Imports # ----------------------------------------------------------------------------- from functools import partial import gc import logging import numpy as np from phylib.uti...
36.438729
99
0.611974
cd1cfffebc300d44d640789feca319ee18c44a84
2,074
py
Python
ars/run_policy.py
david-lindner/ARS
acfe403ebe90c157d61690a9498597244853fc78
[ "BSD-2-Clause" ]
null
null
null
ars/run_policy.py
david-lindner/ARS
acfe403ebe90c157d61690a9498597244853fc78
[ "BSD-2-Clause" ]
null
null
null
ars/run_policy.py
david-lindner/ARS
acfe403ebe90c157d61690a9498597244853fc78
[ "BSD-2-Clause" ]
null
null
null
""" Code to load a policy and generate rollout data. Adapted from https://github.com/berkeleydeeprlcourse. Example usage: python run_policy.py ../trained_policies/Humanoid-v1/policy_reward_11600/lin_policy_plus.npz Humanoid-v1 --render \ --num_rollouts 20 """ import numpy as np import gym def main():...
28.027027
119
0.6027
7c23f34be21c326848c36eb36a8da747cd50ce6d
15,308
py
Python
gerador.py
JoaoVitorAlcantara/Gerador-de-Senha10
98d58b47301dac36e2bf59dfa622fb71510f3b86
[ "MIT" ]
1
2021-01-05T22:31:35.000Z
2021-01-05T22:31:35.000Z
gerador.py
JoaoVitorAlcantara/Gerador-de-senha
98d58b47301dac36e2bf59dfa622fb71510f3b86
[ "MIT" ]
null
null
null
gerador.py
JoaoVitorAlcantara/Gerador-de-senha
98d58b47301dac36e2bf59dfa622fb71510f3b86
[ "MIT" ]
1
2021-01-05T23:22:56.000Z
2021-01-05T23:22:56.000Z
from random import sample, choice import sys from time import sleep print('='*140) sleep(0.5) print('{} {:^140} {}'.format('\033[33m', 'Bem Vindo ao Gerador de Senhas!','\033[m')) sleep(0.5) print('='*140) sleep(0.5) print('{0}A OPÇÃO PERSONALIZADA RETORNARÁ COMBINAÇÕES DE UMA SENHA DEFINIDA ANTERIORMENTE, ENQUANTO A A...
43.862464
215
0.375098
632dd2491524f58970af943dfe942791cd47514d
18,409
py
Python
zarr/creation.py
m-novikov/zarr-python
f22888361fb603c093e2fcbb3eff94536909dc0a
[ "MIT" ]
null
null
null
zarr/creation.py
m-novikov/zarr-python
f22888361fb603c093e2fcbb3eff94536909dc0a
[ "MIT" ]
null
null
null
zarr/creation.py
m-novikov/zarr-python
f22888361fb603c093e2fcbb3eff94536909dc0a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from warnings import warn import numpy as np from numcodecs.registry import codec_registry from zarr.core import Array from zarr.errors import (err_array_not_found, err_contains_array, err_contains_group) from zarr.n5 import N5Store from zarr.storage import (DirectoryS...
33.654479
90
0.626867
12d3112fe781bb0ada00c6a0fd41718ce07a1234
10,776
py
Python
angular/conf.py
ramiroluz/training
75a002ae9966cdabf6de918f1576f2b21b0992cf
[ "CC-BY-4.0" ]
null
null
null
angular/conf.py
ramiroluz/training
75a002ae9966cdabf6de918f1576f2b21b0992cf
[ "CC-BY-4.0" ]
null
null
null
angular/conf.py
ramiroluz/training
75a002ae9966cdabf6de918f1576f2b21b0992cf
[ "CC-BY-4.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Documentation documentation build configuration file, created by # sphinx-quickstart on Thu Aug 18 17:52:49 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file....
29.362398
80
0.705642
030aac126d9e409b3eba7b1ca33e194bfd283480
10,998
py
Python
iqmon/primitives/image_reduction.py
joshwalawender/IQMon
d6b7df9f489b94a197e4faeb53785f3f30d248df
[ "BSD-2-Clause" ]
9
2017-08-04T04:02:52.000Z
2021-03-15T23:01:04.000Z
iqmon/primitives/image_reduction.py
joshwalawender/IQMon
d6b7df9f489b94a197e4faeb53785f3f30d248df
[ "BSD-2-Clause" ]
9
2022-01-10T03:04:44.000Z
2022-01-10T03:04:46.000Z
iqmon/primitives/image_reduction.py
joshwalawender/IQMon
d6b7df9f489b94a197e4faeb53785f3f30d248df
[ "BSD-2-Clause" ]
5
2015-07-01T00:46:21.000Z
2018-11-19T11:05:24.000Z
from pathlib import Path from datetime import datetime, timedelta import numpy as np from astropy import units as u from astropy import stats from astropy.time import Time from astropy.nddata import CCDData import ccdproc from keckdrpframework.primitives.base_primitive import BasePrimitive from .utils import pre_co...
39.419355
111
0.547463
c0b9de3ae94caa0c39b2e2209aae1d021d04845c
958
py
Python
src/datasimu/service/FixedLoadService.py
SubhasisDutta/Data-Simulator
0b8d4856f1d902c8173c99d6166aa757fbc8eac3
[ "MIT" ]
null
null
null
src/datasimu/service/FixedLoadService.py
SubhasisDutta/Data-Simulator
0b8d4856f1d902c8173c99d6166aa757fbc8eac3
[ "MIT" ]
null
null
null
src/datasimu/service/FixedLoadService.py
SubhasisDutta/Data-Simulator
0b8d4856f1d902c8173c99d6166aa757fbc8eac3
[ "MIT" ]
null
null
null
''' Created on Sep 23, 2015 @author: Subhasis ''' import datetime from random import randint from datasimu.generator.RecordGenerator import RecordGenerator class FixedLoadService(object): ''' This will generate variable timestamp based record based on load patern. ''' def __init__(self, manager,conf...
24.564103
81
0.561587
5367828546172cd5e0977e7eb025b0fb441386c8
452
py
Python
concrete_settings/setting_registry.py
coordt/concrete-settings
b444c3f1f8cdbe30135c1978876215e04ebc7622
[ "MIT" ]
5
2020-04-25T12:18:33.000Z
2021-03-26T18:51:33.000Z
concrete_settings/setting_registry.py
coordt/concrete-settings
b444c3f1f8cdbe30135c1978876215e04ebc7622
[ "MIT" ]
13
2019-03-20T10:42:39.000Z
2021-07-07T08:01:05.000Z
concrete_settings/setting_registry.py
coordt/concrete-settings
b444c3f1f8cdbe30135c1978876215e04ebc7622
[ "MIT" ]
3
2020-04-25T08:53:29.000Z
2021-07-06T19:15:52.000Z
from typing import Dict, Type from .setting import Setting class SettingRegistry: def __init__(self): self._registry: Dict[Type, Type[Setting]] = {} def register_setting(self, type_hint: Type, setting_cls: Type[Setting]): self._registry[type_hint] = setting_cls def get_setting_class_for...
25.111111
76
0.716814
705d849d9738455c0c12e9c0c41ca5987fbc9f0c
2,852
py
Python
asreview/models/feature_extraction/tfidf.py
DominiqueMaciejewski/asreview
eb1066074613a5f6f930ff610ff92184e9244f4f
[ "Apache-2.0" ]
280
2020-02-06T12:40:16.000Z
2022-03-19T21:13:55.000Z
asreview/models/feature_extraction/tfidf.py
DominiqueMaciejewski/asreview
eb1066074613a5f6f930ff610ff92184e9244f4f
[ "Apache-2.0" ]
519
2020-02-06T12:08:29.000Z
2022-03-31T16:02:01.000Z
asreview/models/feature_extraction/tfidf.py
DominiqueMaciejewski/asreview
eb1066074613a5f6f930ff610ff92184e9244f4f
[ "Apache-2.0" ]
77
2020-03-06T15:22:08.000Z
2022-03-30T11:21:06.000Z
# Copyright 2019-2021 The ASReview 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 appl...
38.026667
80
0.671459
7ba4c458f8659e157a93868dd20e53ce7b560811
5,408
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure/mgmt/network/v2017_09_01/models/express_route_circuit.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure/mgmt/network/v2017_09_01/models/express_route_circuit.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.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 ...
50.074074
343
0.693787
72df647d06c71e16243b2c6d7f3b3d68c6e994cc
2,780
py
Python
datazen/classes/data_repository.py
vkottler/datazen
e493a0427b0686811f8aeb719bae035f999c8a57
[ "MIT" ]
2
2021-02-17T00:16:07.000Z
2022-02-27T00:14:12.000Z
datazen/classes/data_repository.py
vkottler/datazen
e493a0427b0686811f8aeb719bae035f999c8a57
[ "MIT" ]
53
2020-11-02T07:10:21.000Z
2022-03-29T09:04:01.000Z
datazen/classes/data_repository.py
vkottler/datazen
e493a0427b0686811f8aeb719bae035f999c8a57
[ "MIT" ]
null
null
null
""" datazen - An interface for managing on-disk data by loading it and making discrete changes. """ # built-in from contextlib import contextmanager import logging import os import threading from typing import Iterator # third-party import git # internal from datazen.compile import write_dir from datazen.l...
31.590909
79
0.611151
b5d0ae29a1eac33deb7f4986adf8551ea7344005
9,722
py
Python
zaza/openstack/utilities/os_versions.py
nicholasnjihian/zaza-openstack-tests
59d5d24acf7e95ddcb18f224a975715e925a0109
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
zaza/openstack/utilities/os_versions.py
nicholasnjihian/zaza-openstack-tests
59d5d24acf7e95ddcb18f224a975715e925a0109
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
zaza/openstack/utilities/os_versions.py
nicholasnjihian/zaza-openstack-tests
59d5d24acf7e95ddcb18f224a975715e925a0109
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2018 Canonical Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
25.251948
79
0.463793
f5f4ac4ad98283baacd6c5917b7d64860c4334f7
37,930
py
Python
lib/spack/spack/test/concretize.py
liphardt/spack
8584006008a8c9eaa1bc6b67617ab7d1acda24ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
lib/spack/spack/test/concretize.py
liphardt/spack
8584006008a8c9eaa1bc6b67617ab7d1acda24ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
lib/spack/spack/test/concretize.py
liphardt/spack
8584006008a8c9eaa1bc6b67617ab7d1acda24ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# 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) import sys import pytest import archspec.cpu import llnl.util.lang import spack.architecture import spack.concretize im...
37.93
87
0.613393
3fd540165543d883477d523db0d335015b37eb73
11,337
py
Python
vnpy/gateway/oanda/oanda_gateway.py
matthew77/vnpy
bffcdac7e3547ae5fea1fa0fdfc27b9163c92120
[ "MIT" ]
null
null
null
vnpy/gateway/oanda/oanda_gateway.py
matthew77/vnpy
bffcdac7e3547ae5fea1fa0fdfc27b9163c92120
[ "MIT" ]
null
null
null
vnpy/gateway/oanda/oanda_gateway.py
matthew77/vnpy
bffcdac7e3547ae5fea1fa0fdfc27b9163c92120
[ "MIT" ]
null
null
null
""" gateway for Oanda """ from datetime import datetime from vnpy.trader.gateway import BaseGateway from vnpy.api.rest import RestClient, Request from vnpy.trader.constant import ( Direction, Exchange, OrderType, Product, Status, Offset, Interval ) from vnpy.trader.object import ( Tick...
28.413534
118
0.551028
81d494043227a311b3efccb22c1fc6fe80612b4a
764
bzl
Python
source/bazel/deps/ubuntu_20_04_clang_11_sysroot/get.bzl
luxe/CodeLang-compiler
78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a
[ "MIT" ]
1
2019-01-06T08:45:46.000Z
2019-01-06T08:45:46.000Z
source/bazel/deps/ubuntu_20_04_clang_11_sysroot/get.bzl
luxe/CodeLang-compiler
78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a
[ "MIT" ]
264
2015-11-30T08:34:00.000Z
2018-06-26T02:28:41.000Z
source/bazel/deps/ubuntu_20_04_clang_11_sysroot/get.bzl
UniLang/compiler
c338ee92994600af801033a37dfb2f1a0c9ca897
[ "MIT" ]
null
null
null
# Do not edit this file directly. # It was auto-generated by: code/programs/reflexivity/reflexive_refresh load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") def ubuntu2004Clang11Sysroot(): http_archive( name = "ubuntu_20_0...
44.941176
127
0.752618
5e2b5ed6e6c19522325852c6d9296574688d363b
2,180
py
Python
app/__init__.py
davospots/NewsApp
e017f90e2187caf618b51173a99eaf6b92baf56e
[ "MIT" ]
null
null
null
app/__init__.py
davospots/NewsApp
e017f90e2187caf618b51173a99eaf6b92baf56e
[ "MIT" ]
null
null
null
app/__init__.py
davospots/NewsApp
e017f90e2187caf618b51173a99eaf6b92baf56e
[ "MIT" ]
null
null
null
from flask import Flask, render_template from newsapi import NewsApiClient app = Flask(__name__) @app.route('/') def index(): newsapi = NewsApiClient(api_key='599b8f291b15419aa4293f30f62920d2') # top headlines top_headlines = newsapi.get_top_headlines(sources='') # sports category sports_cate...
26.585366
87
0.664679
013996f716a03afe270572f01205e1629a109b72
157
py
Python
dags/tasks/get_listings.py
jsmithdataanalytics/house_price_tracker
a4795db21c25c014f45ff6742c5bb30ad26ded75
[ "MIT" ]
1
2020-04-23T00:48:52.000Z
2020-04-23T00:48:52.000Z
dags/tasks/get_listings.py
jsmithdataanalytics/house_price_tracker
a4795db21c25c014f45ff6742c5bb30ad26ded75
[ "MIT" ]
null
null
null
dags/tasks/get_listings.py
jsmithdataanalytics/house_price_tracker
a4795db21c25c014f45ff6742c5bb30ad26ded75
[ "MIT" ]
null
null
null
from property.zoopla import Zoopla from utils import db def get_listings(): db.insert_or_replace(table_name='Listings', items=Zoopla().get_listings())
22.428571
78
0.77707
d02cf394175709f07e61fa6f7d1fd1bba222cd3a
2,371
py
Python
akka-docs/rst/conf.py
RafalSladek/akka
ad8ab128c4e1edd763d384a354c736a11e40ea80
[ "Apache-2.0" ]
null
null
null
akka-docs/rst/conf.py
RafalSladek/akka
ad8ab128c4e1edd763d384a354c736a11e40ea80
[ "Apache-2.0" ]
null
null
null
akka-docs/rst/conf.py
RafalSladek/akka
ad8ab128c4e1edd763d384a354c736a11e40ea80
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Akka documentation build configuration file. # import sys, os # -- General configuration ----------------------------------------------------- sys.path.append(os.path.abspath('../_sphinx/exts')) extensions = ['sphinx.ext.todo', 'includecode', 'includecode2'] templates_path = ['_templates...
26.943182
80
0.648671
7471326947969dbab10dd8cf9c94082e80478ece
37,987
py
Python
sphinx/writers/text.py
farisachugthai/sphinx
315bffeedf12e6592ed473a9314d896bfee85145
[ "BSD-2-Clause" ]
null
null
null
sphinx/writers/text.py
farisachugthai/sphinx
315bffeedf12e6592ed473a9314d896bfee85145
[ "BSD-2-Clause" ]
null
null
null
sphinx/writers/text.py
farisachugthai/sphinx
315bffeedf12e6592ed473a9314d896bfee85145
[ "BSD-2-Clause" ]
null
null
null
""" sphinx.writers.text ~~~~~~~~~~~~~~~~~~~ Custom docutils writer for plain text. :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import math import os import re import textwrap from itertools import chain, groupby from typing import (T...
32.219678
94
0.580067
677c054ec1df4b16bfae7f9fdcdee3c9ea4a23c1
364
py
Python
setup.py
syusui-s/mcnotify
28572078dfd39939bf6c6dba2afda84430642b52
[ "MIT" ]
2
2016-09-11T00:05:27.000Z
2019-04-20T12:03:11.000Z
setup.py
syusui-s/mcnotify
28572078dfd39939bf6c6dba2afda84430642b52
[ "MIT" ]
null
null
null
setup.py
syusui-s/mcnotify
28572078dfd39939bf6c6dba2afda84430642b52
[ "MIT" ]
1
2019-03-03T04:22:00.000Z
2019-03-03T04:22:00.000Z
from setuptools import setup setup( name = 'mcnotify', version = '1.0.1', author = 'Shusui Moyatani', author_email = 'syusui.s@gmail.com', url = 'https://github.com/syusui-s/mcnotify', license = ['MIT'], description = 'Minecraft status notifier', scripts = ['scripts/mcnotify_update'], ...
24.266667
49
0.631868
09609a25f821fff0e90c01a7093e271da9a0b1c7
1,090
py
Python
scripts/cropid.py
isabellekazarian/ID-card-text-detect
83dae2936b68bf52b1c41ad196f98f87a6fb1c8c
[ "MIT" ]
1
2021-02-08T18:41:04.000Z
2021-02-08T18:41:04.000Z
scripts/cropid.py
isabellekazarian/ID-card-text-detect
83dae2936b68bf52b1c41ad196f98f87a6fb1c8c
[ "MIT" ]
null
null
null
scripts/cropid.py
isabellekazarian/ID-card-text-detect
83dae2936b68bf52b1c41ad196f98f87a6fb1c8c
[ "MIT" ]
1
2020-12-27T16:21:37.000Z
2020-12-27T16:21:37.000Z
import cv2 import matplotlib.pyplot as plt from keras.optimizers import Adam from model.iou_loss import IoU import os from keras.models import load_model from utils import image from utils import metrics INPUT_FILE = "test.jpg" OUTPUT_MASK = "output.jpg" OUTPUT_FILE = "id.jpg" MODEL_FILE = "unet_model_whole_100epochs...
24.222222
79
0.658716
f92efd4126bad2f610a4b1f94b0565f578c8fa83
706
py
Python
src/Server/model/categorymodel.py
SkyLapse/DMS
a8906498e2801f7f022d7d2d72d90ba2be6f0d21
[ "MIT" ]
null
null
null
src/Server/model/categorymodel.py
SkyLapse/DMS
a8906498e2801f7f022d7d2d72d90ba2be6f0d21
[ "MIT" ]
null
null
null
src/Server/model/categorymodel.py
SkyLapse/DMS
a8906498e2801f7f022d7d2d72d90ba2be6f0d21
[ "MIT" ]
1
2019-10-29T01:56:18.000Z
2019-10-29T01:56:18.000Z
__author__ = 'SkyLapse' from model.basemodel import BaseModel from datetime import datetime class CategoryModel(BaseModel): def get_collection(self): return self.db['categories'] def _populate(self, item): return { "name": item["name"], "description": item["description...
29.416667
51
0.505666
7b8fffc21af3fb21fd3bdf45adbc7f330520bb80
1,825
py
Python
sevdesk/client/models/book_invoice_json_body_check_account.py
HpLightcorner/SevDesk-Python-Client
303ca8dddd78da4291e7d23692ccfb147c7ba31a
[ "MIT" ]
null
null
null
sevdesk/client/models/book_invoice_json_body_check_account.py
HpLightcorner/SevDesk-Python-Client
303ca8dddd78da4291e7d23692ccfb147c7ba31a
[ "MIT" ]
null
null
null
sevdesk/client/models/book_invoice_json_body_check_account.py
HpLightcorner/SevDesk-Python-Client
303ca8dddd78da4291e7d23692ccfb147c7ba31a
[ "MIT" ]
null
null
null
from typing import Any, Dict, List, Type, TypeVar import attr T = TypeVar("T", bound="BookInvoiceJsonBodyCheckAccount") @attr.s(auto_attribs=True) class BookInvoiceJsonBodyCheckAccount: """The check account on which should be booked. Attributes: id (int): The id of the check account on which should...
27.651515
95
0.633973
9d9f1a5c0e9404b16d3b36646ec5c5af11fc955a
4,382
py
Python
utils/fit_uv_ext_fm90.py
karllark/spitzer_mir_ext
72b5af2610761b1056f966299c48f37714d3486c
[ "BSD-3-Clause" ]
null
null
null
utils/fit_uv_ext_fm90.py
karllark/spitzer_mir_ext
72b5af2610761b1056f966299c48f37714d3486c
[ "BSD-3-Clause" ]
9
2018-01-02T15:27:38.000Z
2020-12-08T18:47:07.000Z
utils/fit_uv_ext_fm90.py
karllark/spitzer_mir_ext
72b5af2610761b1056f966299c48f37714d3486c
[ "BSD-3-Clause" ]
1
2021-02-10T22:34:23.000Z
2021-02-10T22:34:23.000Z
import matplotlib.pyplot as plt import numpy as np import argparse import warnings # from multiprocessing import Pool # using a Pool does not work in this setup it seems from astropy.modeling.fitting import LevMarLSQFitter from astropy.modeling.fitting import _fitter_to_model_params import astropy.units as u from mo...
31.078014
87
0.663852
3a40117aa93067bb7f5d21857eec986b52f77742
1,396
py
Python
recipe/serializers.py
kazi-akib-abdullah/recipe-app-api
05d6834ad681412bad21039228256cb8495e9441
[ "MIT" ]
null
null
null
recipe/serializers.py
kazi-akib-abdullah/recipe-app-api
05d6834ad681412bad21039228256cb8495e9441
[ "MIT" ]
null
null
null
recipe/serializers.py
kazi-akib-abdullah/recipe-app-api
05d6834ad681412bad21039228256cb8495e9441
[ "MIT" ]
null
null
null
from rest_framework import serializers from core.models import Tag, Ingredient, Recipe class TagSerializer(serializers.ModelSerializer): """Serializer for tag objects""" class Meta: model = Tag fields = ('id', 'name') read_only_fields = ('id',) class IngredientSerializer(serializer...
25.851852
88
0.654728
d25e68597279d9cc589b9f373394bccf358d21cd
3,415
py
Python
tests/util/test_location.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
tests/util/test_location.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/util/test_location.py
Vaarlion/core
f3de8b9f28de01abf72c0f5bb0b457eb1841f201
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""Test Home Assistant location util methods.""" from unittest.mock import Mock, patch import aiohttp import pytest import homeassistant.util.location as location_util from tests.common import load_fixture # Paris COORDINATES_PARIS = (48.864716, 2.349014) # New York COORDINATES_NEW_YORK = (40.730610, -73.935242) #...
30.491071
87
0.714788