hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
568979c3540fb895b7123992cee08fb92ad9a85d
121
py
Python
crash_course/ch10/write_message.py
dantin/python-by-example
5769c7a332ebd60fd54e477b6813f2f2a0f3f37f
[ "BSD-3-Clause" ]
null
null
null
crash_course/ch10/write_message.py
dantin/python-by-example
5769c7a332ebd60fd54e477b6813f2f2a0f3f37f
[ "BSD-3-Clause" ]
null
null
null
crash_course/ch10/write_message.py
dantin/python-by-example
5769c7a332ebd60fd54e477b6813f2f2a0f3f37f
[ "BSD-3-Clause" ]
null
null
null
filename = 'tmp/programming.txt' with open(filename, 'w') as file_object: file_object.write('I love programming.')
20.166667
44
0.719008
6dc97ac246ab36a1f3508db4887d9a3c0fa62fbc
8,777
py
Python
python/pyspark/ml/image.py
wangyeweikuer/spark
731aa2cdf8a78835621fbf3de2d3492b27711d1a
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2022-02-10T11:30:07.000Z
2022-02-14T18:26:30.000Z
python/pyspark/ml/image.py
nyingping/spark
ca7200b0008dc6101a252020e6c34ef7b72d81d6
[ "Apache-2.0" ]
6
2018-06-14T11:15:27.000Z
2019-01-27T12:11:23.000Z
python/pyspark/ml/image.py
nyingping/spark
ca7200b0008dc6101a252020e6c34ef7b72d81d6
[ "Apache-2.0" ]
6
2022-01-24T20:07:59.000Z
2022-01-25T16:11:34.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
32.268382
99
0.61946
47f974ac2c3e65d8e072ffd1c2ecd953eabef15a
769
py
Python
inst/python/python_segmentation.py
jiajic/Giotto_site_suite
63bb7dc53e25d3058359af9695bbc00ef558ec35
[ "MIT" ]
1
2021-09-30T21:33:37.000Z
2021-09-30T21:33:37.000Z
inst/python/python_segmentation.py
jiajic/Giotto_site_suite
63bb7dc53e25d3058359af9695bbc00ef558ec35
[ "MIT" ]
null
null
null
inst/python/python_segmentation.py
jiajic/Giotto_site_suite
63bb7dc53e25d3058359af9695bbc00ef558ec35
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Feb 7 01:00:00 2022 @author: rafaelspeixoto """ from deepcell.applications import Mesmer from matplotlib import pyplot as plt import numpy as np import glob def python_create_mesmer_app(): # Create model app = Mesmer() print('Training Reso...
24.806452
98
0.720416
0691db83cd3a8a8254d5c50f0c4b2883a7664f0d
20,727
py
Python
backend/webserver/api/datasets.py
d-wei-of-sensyn/coco-annotator
dc80a7b3d4fabc0ca742aac6abdec6dc08d02412
[ "MIT" ]
null
null
null
backend/webserver/api/datasets.py
d-wei-of-sensyn/coco-annotator
dc80a7b3d4fabc0ca742aac6abdec6dc08d02412
[ "MIT" ]
null
null
null
backend/webserver/api/datasets.py
d-wei-of-sensyn/coco-annotator
dc80a7b3d4fabc0ca742aac6abdec6dc08d02412
[ "MIT" ]
null
null
null
from flask import request from flask_restplus import Namespace, Resource, reqparse, inputs from flask_login import login_required, current_user from werkzeug.datastructures import FileStorage from mongoengine.errors import NotUniqueError from mongoengine.queryset.visitor import Q from threading import Thread from goog...
35.071066
135
0.625464
ba8cfd9eafcedb0a47985b6147eb60f163389775
8,314
py
Python
qiskit/result/models.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
1
2021-10-05T11:56:53.000Z
2021-10-05T11:56:53.000Z
qiskit/result/models.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
24
2021-01-27T08:20:27.000Z
2021-07-06T09:42:28.000Z
qiskit/result/models.py
gadial/qiskit-terra
0fc83f44a6e80969875c738b2cee7bc33223e45f
[ "Apache-2.0" ]
4
2021-10-05T12:07:27.000Z
2022-01-28T18:37:28.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
37.61991
81
0.595502
0d95fc25ed799eea7d7f7c28b16587e2c325fafe
79,645
py
Python
tests/snapshots/snap_test_playground.py
drewsynan/ariadne_django
836b783a7240eed0ee03b7db1bbb7c5ff2843fb4
[ "BSD-3-Clause" ]
null
null
null
tests/snapshots/snap_test_playground.py
drewsynan/ariadne_django
836b783a7240eed0ee03b7db1bbb7c5ff2843fb4
[ "BSD-3-Clause" ]
2
2021-04-12T05:29:42.000Z
2021-04-15T22:24:19.000Z
tests/snapshots/snap_test_playground.py
drewsynan/ariadne_django
836b783a7240eed0ee03b7db1bbb7c5ff2843fb4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import Snapshot snapshots = Snapshot() snapshots['test_async_playground_html_is_served_on_get_request 1'] = b'<!DOCTYPE html>\n\n<html>\n\n<head>\n <meta charset=utf-8 />\n <meta name="view...
4,685
19,882
0.634855
fdb0aa0798d6bb32d011bb6d39aef935a4cfcf1d
4,799
py
Python
integrationtest/vm/virtualrouter/ipsec/test_create_ipsec_pfs_dh_group_17.py
bgerxx/woodpecker
fdc51245945cc9be4d1f028988079213eb99b2ad
[ "Apache-2.0" ]
null
null
null
integrationtest/vm/virtualrouter/ipsec/test_create_ipsec_pfs_dh_group_17.py
bgerxx/woodpecker
fdc51245945cc9be4d1f028988079213eb99b2ad
[ "Apache-2.0" ]
null
null
null
integrationtest/vm/virtualrouter/ipsec/test_create_ipsec_pfs_dh_group_17.py
bgerxx/woodpecker
fdc51245945cc9be4d1f028988079213eb99b2ad
[ "Apache-2.0" ]
null
null
null
''' Test IPsec creation when pfs is dh-group17 @author: Glody ''' import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.test_state as test_state import zstackwoodpecker.operations.ipsec_operations as ipsec_ops import zstackwoodpecker.operations...
44.435185
162
0.740363
23626b64b945e8f09cff70e661353be2428ec6b9
97,599
py
Python
visualiser/generators/okitGenerator.py
streamnsight/oci-designer-toolkit
6e2ee10b441500177773ad97ce1717fd7219feb9
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
visualiser/generators/okitGenerator.py
streamnsight/oci-designer-toolkit
6e2ee10b441500177773ad97ce1717fd7219feb9
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
visualiser/generators/okitGenerator.py
streamnsight/oci-designer-toolkit
6e2ee10b441500177773ad97ce1717fd7219feb9
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. """Provide Module Description """ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# __author__ = "Andrew Hopkinson...
56.743605
223
0.661318
114b48229983e196f593fc30b6a11fe034ecdcd7
580
py
Python
django_slugify_processor/__about__.py
develtech/django-slugify-processors
768b773e05d9b85166ac69dfe97a9982b3b3651e
[ "MIT" ]
null
null
null
django_slugify_processor/__about__.py
develtech/django-slugify-processors
768b773e05d9b85166ac69dfe97a9982b3b3651e
[ "MIT" ]
1
2022-03-09T00:38:44.000Z
2022-03-09T00:38:44.000Z
django_slugify_processor/__about__.py
develtech/django-slugify-processors
768b773e05d9b85166ac69dfe97a9982b3b3651e
[ "MIT" ]
null
null
null
__title__ = "django-slugify-processor" __package_name__ = "django_slugify_processor" __version__ = "1.1.1" __description__ = "pipeline for slugification edgecases in django" __email__ = "tony@git-pull.com" __pypi__ = "https://pypi.python.org/pypi/django-slugify-processor" __github__ = "http://github.com/tony/django-slu...
44.615385
71
0.777586
51e784cb8a20481f427b419b4dbe8c3e7feb7572
23,547
py
Python
bzt/modules/grinder.py
ddhoot09/taurus
f5f9987bf492b253f515bb3c8f7d8bbfbba7df19
[ "Apache-2.0" ]
1
2018-04-09T21:12:41.000Z
2018-04-09T21:12:41.000Z
bzt/modules/grinder.py
ddhoot09/taurus
f5f9987bf492b253f515bb3c8f7d8bbfbba7df19
[ "Apache-2.0" ]
4
2018-05-10T21:30:01.000Z
2018-05-11T01:45:21.000Z
bzt/modules/grinder.py
ddhoot09/taurus
f5f9987bf492b253f515bb3c8f7d8bbfbba7df19
[ "Apache-2.0" ]
1
2020-03-06T21:01:44.000Z
2020-03-06T21:01:44.000Z
""" Module holds all stuff regarding Grinder tool usage Copyright 2015 BlazeMeter 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 require...
41.094241
119
0.623009
fc0e91b187afa3b0c34f34a853e6ef8449fe25fd
4,419
py
Python
banana/interfaces/sklearn.py
tclose/nianalysis
314b7ade1d36d52817aa1de14ce1be22c5996a8e
[ "Apache-2.0" ]
2
2019-11-14T01:02:26.000Z
2022-03-17T01:47:01.000Z
banana/interfaces/sklearn.py
tclose/nianalysis
314b7ade1d36d52817aa1de14ce1be22c5996a8e
[ "Apache-2.0" ]
18
2019-04-03T04:25:55.000Z
2020-06-08T06:00:56.000Z
banana/interfaces/sklearn.py
tclose/nianalysis
314b7ade1d36d52817aa1de14ce1be22c5996a8e
[ "Apache-2.0" ]
4
2018-05-23T07:13:02.000Z
2018-08-24T04:05:31.000Z
from nipype.interfaces.base import (BaseInterface, BaseInterfaceInputSpec, traits, File, TraitedSpec) import nibabel as nib import numpy as np from sklearn.decomposition import FastICA as fICA from nipype.utils.filemanip import split_filename import os class FastICAInputSpec(BaseI...
35.926829
79
0.559855
9ca817c144ebd48c5e10545aab5f82c19fde5c35
472
py
Python
PycharmProjects/pythonteste/ex028a.py
caioalexleme/Curso_Python
6394f60689531c7431765538f1b699aabbf4acb2
[ "MIT" ]
3
2021-07-09T20:41:47.000Z
2021-11-17T10:25:01.000Z
PycharmProjects/pythonteste/ex028a.py
caioalexleme/Curso_Python
6394f60689531c7431765538f1b699aabbf4acb2
[ "MIT" ]
null
null
null
PycharmProjects/pythonteste/ex028a.py
caioalexleme/Curso_Python
6394f60689531c7431765538f1b699aabbf4acb2
[ "MIT" ]
1
2021-09-09T20:24:07.000Z
2021-09-09T20:24:07.000Z
from random import randint from time import sleep computador = randint(0, 5) #Faz o computador pensar print('-=-' * 20) print('Vou pensar em um nº entre 0 e 5. Tente adivinhar...') print('-=-' * 20) jogador = int(input('Em que número eu pensei? ')) #Jogador tenta adivinhar print('PROCESSANDO...') sleep(2) if jogador ==...
33.714286
83
0.692797
d9203d7312e85d812f3adf4d178c9ee8e3a3f612
4,283
py
Python
examples/wave-2d/wave_2d_numba.py
uw-ipd/numba
26dde2b28cadda403a5549a84dc1698900b23f74
[ "BSD-2-Clause" ]
140
2017-07-15T21:17:44.000Z
2022-03-19T00:56:05.000Z
examples/wave-2d/wave_2d_numba.py
uw-ipd/numba
26dde2b28cadda403a5549a84dc1698900b23f74
[ "BSD-2-Clause" ]
24
2017-07-24T16:25:35.000Z
2021-12-08T17:54:38.000Z
examples/wave-2d/wave_2d_numba.py
uw-ipd/numba
26dde2b28cadda403a5549a84dc1698900b23f74
[ "BSD-2-Clause" ]
50
2017-07-15T21:15:16.000Z
2021-12-12T15:27:05.000Z
# # Copyright (c) 2017 Intel Corporation # SPDX-License-Identifier: BSD-2-Clause # # This code was ported from a Julia implementation as part of the # ParallelAccelerator Julia package which in turn was ported from a # MATLAB implementation available at # https://www.piso.at/julius/programming/octave-2d-wave-equation...
34.264
161
0.473033
b20d6bd4006a6bb8cf6f6496f2c7ab5b70f83aa3
2,108
py
Python
aiida/backends/djsite/db/migrations/0028_remove_node_prefix.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
1
2016-09-12T10:51:00.000Z
2016-09-12T10:51:00.000Z
aiida/backends/djsite/db/migrations/0028_remove_node_prefix.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
17
2020-03-11T17:04:05.000Z
2020-05-01T09:34:45.000Z
aiida/backends/djsite/db/migrations/0028_remove_node_prefix.py
louisponet/aiida-core
3214236df66a3792ee57fe38a06c0c3bb65861ab
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
40.538462
120
0.520873
39846cd2ad412e0582075b6565a344cf17142409
2,696
py
Python
sdk/python/tests/utils/online_read_write_test.py
tpvasconcelos/feast
37971a455f955149db00644c49a3a0944ca24bc6
[ "Apache-2.0" ]
810
2018-12-25T15:16:11.000Z
2020-05-14T09:49:40.000Z
sdk/python/tests/utils/online_read_write_test.py
tpvasconcelos/feast
37971a455f955149db00644c49a3a0944ca24bc6
[ "Apache-2.0" ]
701
2018-12-21T05:18:43.000Z
2020-05-16T01:30:21.000Z
sdk/python/tests/utils/online_read_write_test.py
tpvasconcelos/feast
37971a455f955149db00644c49a3a0944ca24bc6
[ "Apache-2.0" ]
155
2018-12-22T11:05:04.000Z
2020-05-14T07:33:41.000Z
from datetime import datetime, timedelta from typing import Optional from feast.feature_store import FeatureStore from feast.protos.feast.types.EntityKey_pb2 import EntityKey as EntityKeyProto from feast.protos.feast.types.Value_pb2 import Value as ValueProto def basic_rw_test( store: FeatureStore, view_name: st...
34.564103
95
0.593843
8b8544972e528cb2b6d26417437207468681cb3f
691,108
py
Python
Lib/pydoc_data/topics.py
CerfVert94/cpython
7f1807bf9c4239ef26522c7737ab8f38db3b41be
[ "0BSD" ]
2
2020-02-13T06:41:07.000Z
2022-02-14T09:28:02.000Z
Lib/pydoc_data/topics.py
CerfVert94/cpython
7f1807bf9c4239ef26522c7737ab8f38db3b41be
[ "0BSD" ]
1
2022-01-06T16:51:46.000Z
2022-01-06T16:51:46.000Z
Lib/pydoc_data/topics.py
docmarionum1/pyvcs-python
f62cf1a76d51302f342319d446d6fbf3c60f29c3
[ "0BSD" ]
1
2022-02-25T21:54:28.000Z
2022-02-25T21:54:28.000Z
# -*- coding: utf-8 -*- # Autogenerated by Sphinx on Mon Jun 28 10:13:28 2021 topics = {'assert': 'The "assert" statement\n' '**********************\n' '\n' 'Assert statements are a convenient way to insert debugging ' 'assertions\n' 'into a program:\n' ...
48.938394
118
0.437152
f7068076351b8074e629a22d9147251c2d37a1fd
759
py
Python
stanza/__init__.py
danielhers/stanza
d747a7b781da203c286ec51e3842fecb8b0abb15
[ "Apache-2.0" ]
1
2021-02-28T00:18:45.000Z
2021-02-28T00:18:45.000Z
stanza/__init__.py
danielhers/stanza
d747a7b781da203c286ec51e3842fecb8b0abb15
[ "Apache-2.0" ]
null
null
null
stanza/__init__.py
danielhers/stanza
d747a7b781da203c286ec51e3842fecb8b0abb15
[ "Apache-2.0" ]
1
2020-07-13T17:56:33.000Z
2020-07-13T17:56:33.000Z
from stanza.pipeline.core import Pipeline from stanza.models.common.doc import Document from stanza.utils.resources import download from stanza._version import __version__, __resources_version__ import logging.config logging.config.dictConfig( { "version": 1, "disable_existing_loggers": False, ...
27.107143
67
0.513834
a9b7e11b03e4cccb774658f862a06d03511832b6
23,204
py
Python
tests/hwsim/test_ibss.py
bjackman/hostap
e11a701885a6497624bb0153ff6ebdc210807c37
[ "Unlicense" ]
106
2019-04-11T03:18:10.000Z
2022-02-11T10:48:47.000Z
tests/hwsim/test_ibss.py
bjackman/hostap
e11a701885a6497624bb0153ff6ebdc210807c37
[ "Unlicense" ]
8
2021-12-10T10:58:03.000Z
2022-03-15T10:28:16.000Z
tests/hwsim/test_ibss.py
bjackman/hostap
e11a701885a6497624bb0153ff6ebdc210807c37
[ "Unlicense" ]
31
2019-04-11T05:21:41.000Z
2021-08-10T17:55:36.000Z
# IBSS test cases # Copyright (c) 2013-2015, Jouni Malinen <j@w1.fi> # # This software may be distributed under the terms of the BSD license. # See README for more details. from remotehost import remote_compatible import logging logger = logging.getLogger() import time import re import subprocess import hwsim_utils f...
39.195946
254
0.65006
20b2b6dd93755a1ef037320a808e8b060630048c
581
py
Python
frappe/desk/doctype/system_console/test_system_console.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
frappe/desk/doctype/system_console/test_system_console.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
frappe/desk/doctype/system_console/test_system_console.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import unittest import frappe class TestSystemConsole(unittest.TestCase): def test_system_console(self): system_console = frappe.get_doc("System Console") system_console....
25.26087
85
0.755594
83878e6975ae53705449332e7d55c3989fbb8713
629
py
Python
bin/Package/MakeFilePackageBase.py
juergenhoetzel/craft
9d3fe6dc07f2307e8f8212c8981b980a9d2d28fd
[ "BSD-2-Clause" ]
55
2016-11-20T17:08:19.000Z
2022-03-11T22:19:43.000Z
bin/Package/MakeFilePackageBase.py
juergenhoetzel/craft
9d3fe6dc07f2307e8f8212c8981b980a9d2d28fd
[ "BSD-2-Clause" ]
17
2017-09-20T07:52:17.000Z
2021-12-03T10:03:00.000Z
bin/Package/MakeFilePackageBase.py
juergenhoetzel/craft
9d3fe6dc07f2307e8f8212c8981b980a9d2d28fd
[ "BSD-2-Clause" ]
29
2016-12-10T15:00:11.000Z
2021-12-02T12:54:05.000Z
# # copyright (c) 2010 Ralf Habacker <ralf.habacker@freenet.de> # from BuildSystem.MakeFileBuildSystem import * from Package.PackageBase import * from Packager.TypePackager import * from Source.MultiSource import * class MakeFilePackageBase(PackageBase, MultiSource, MakeFileBuildSystem, TypePackager): """provides...
33.105263
87
0.756757
8462b939e9176ccf576db47eb0afd59748a863c5
46
py
Python
devolearn/embryo_segmentor/__init__.py
sparkingdark/devolearn
4dfaa2c97b1b928fcebc111a16dc1813c9ee78b1
[ "MIT" ]
1
2020-11-17T20:40:45.000Z
2020-11-17T20:40:45.000Z
devolearn/embryo_segmentor/__init__.py
sparkingdark/devolearn
4dfaa2c97b1b928fcebc111a16dc1813c9ee78b1
[ "MIT" ]
null
null
null
devolearn/embryo_segmentor/__init__.py
sparkingdark/devolearn
4dfaa2c97b1b928fcebc111a16dc1813c9ee78b1
[ "MIT" ]
null
null
null
from .embryo_segmentor import embryo_segmentor
46
46
0.913043
836afb9e4e1489848ea25732851adf6536e2d54c
70,948
py
Python
anytask/courses/tests.py
neychev/anytask
a79d8a5c1c2dbd8a5a70254aa05ba339fa5eddab
[ "MIT" ]
null
null
null
anytask/courses/tests.py
neychev/anytask
a79d8a5c1c2dbd8a5a70254aa05ba339fa5eddab
[ "MIT" ]
1
2021-03-01T07:42:38.000Z
2021-03-01T09:14:10.000Z
anytask/courses/tests.py
bcskda/anytask
5a359dcb669b689fc5a4f1705f2c88cd031ab37d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from django.test import TestCase from django.contrib.auth.models import User from django.conf import settings from schools.models import School from courses.models import Course, IssueField, FilenameExtension, CourseMarkSystem, MarkField, IssueStatusSystem, \ DefaultTeacher...
46.92328
119
0.633647
c1004e165182d4bd1862d14e1ef48c4a5d34a7eb
1,197
py
Python
nesi/vendors/KeyMile/accessPoints/root/fan/fanCommandProcessor.py
inexio/NESi
920b23ccaf293733b4b571e4df27929c036257f7
[ "BSD-2-Clause" ]
30
2020-09-03T06:02:38.000Z
2022-03-11T16:34:18.000Z
nesi/vendors/KeyMile/accessPoints/root/fan/fanCommandProcessor.py
inexio/NESi
920b23ccaf293733b4b571e4df27929c036257f7
[ "BSD-2-Clause" ]
2
2021-01-15T10:33:23.000Z
2021-02-21T21:04:37.000Z
nesi/vendors/KeyMile/accessPoints/root/fan/fanCommandProcessor.py
inexio/NESi
920b23ccaf293733b4b571e4df27929c036257f7
[ "BSD-2-Clause" ]
3
2020-12-19T09:11:19.000Z
2022-02-07T22:15:34.000Z
# This file is part of the NESi software. # # Copyright (c) 2020 # Original Software Design by Ilya Etingof <https://github.com/etingof>. # # Software adapted by inexio <https://github.com/inexio>. # - Janis Groß <https://github.com/unkn0wn-user> # - Philip Konrath <https://github.com/Connyko65> # - Alexander Dincher <...
32.351351
74
0.685881
ba88b4ff76c809f146beb122baea671dc1d57111
2,386
py
Python
TBC/utility/SSH.py
rackerlabs/trial-by-combat
36f81e4a13c9497d91d62f47405151f00a6c75b7
[ "Apache-2.0" ]
2
2016-08-08T19:43:40.000Z
2016-12-26T23:00:35.000Z
TBC/utility/SSH.py
rackerlabs/trial-by-combat
36f81e4a13c9497d91d62f47405151f00a6c75b7
[ "Apache-2.0" ]
null
null
null
TBC/utility/SSH.py
rackerlabs/trial-by-combat
36f81e4a13c9497d91d62f47405151f00a6c75b7
[ "Apache-2.0" ]
null
null
null
import os import sys import subprocess class SSH: def __init__(self, address, username, password): self.username = username self.password = password self.address = address # check the validity of the connection command = ['sshpass', '-p' + self.password, ...
37.28125
110
0.559933
0b4e83f13ac51e679de94af980999cca8390e673
15,982
py
Python
pandas/core/indexing.py
takluyver/pandas
6c820b4b1a3b945d52cffbd9a4d40a582c077b5d
[ "BSD-3-Clause" ]
null
null
null
pandas/core/indexing.py
takluyver/pandas
6c820b4b1a3b945d52cffbd9a4d40a582c077b5d
[ "BSD-3-Clause" ]
null
null
null
pandas/core/indexing.py
takluyver/pandas
6c820b4b1a3b945d52cffbd9a4d40a582c077b5d
[ "BSD-3-Clause" ]
null
null
null
# pylint: disable=W0223 from pandas.core.common import _asarray_tuplesafe from pandas.core.index import Index, MultiIndex import pandas.core.common as com import numpy as np # "null slice" _NS = slice(None, None) class IndexingError(Exception): pass class _NDFrameIndexer(object): def __init__(self, obj)...
31.522682
79
0.540921
2e6ff4f61aa2ce2410b468756b990b5eeb53ff7f
3,615
py
Python
scibeam/tests/test_tofseries.py
SuperYuLu/SciBeam
80601adda9288fd32efeedf5b1de015761c1f8e5
[ "MIT" ]
3
2020-07-31T09:24:46.000Z
2021-03-01T23:59:51.000Z
scibeam/tests/test_tofseries.py
SuperYuLu/SciBeam
80601adda9288fd32efeedf5b1de015761c1f8e5
[ "MIT" ]
12
2018-05-14T18:40:14.000Z
2019-02-06T22:51:33.000Z
scibeam/tests/test_tofseries.py
SuperYuLu/SciBeam
80601adda9288fd32efeedf5b1de015761c1f8e5
[ "MIT" ]
null
null
null
# test_tofseries.py --- # # Filename: test_tofseries.py # Description: # unittests of tofseries # Author: Yu Lu # Email: yulu@utexas.edu # Github: https://github.com/SuperYuLu # # Created: Sat Jul 21 07:25:44 2018 (-0500) # Version: # Last-Updated: Tue Jul 31 22:30:18 2018 (-0500) # ...
35.792079
125
0.598893
4262ba4fabcf0be371f0f2cbf8c33828427e2c4a
1,814
py
Python
tests/functional/test_inventories.py
AKhodus/adcm
98dbf22af3f1c6afa94505e9acaff0ac4088a602
[ "Apache-2.0" ]
null
null
null
tests/functional/test_inventories.py
AKhodus/adcm
98dbf22af3f1c6afa94505e9acaff0ac4088a602
[ "Apache-2.0" ]
null
null
null
tests/functional/test_inventories.py
AKhodus/adcm
98dbf22af3f1c6afa94505e9acaff0ac4088a602
[ "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...
45.35
92
0.739802
7bddabe22d056ee1aa994d7f46ed996a51915669
1,777
py
Python
setup.py
Robert-sktai/skt
3075c1f4875f9acba927a53c7a2d0e1f7eb302dc
[ "MIT" ]
null
null
null
setup.py
Robert-sktai/skt
3075c1f4875f9acba927a53c7a2d0e1f7eb302dc
[ "MIT" ]
null
null
null
setup.py
Robert-sktai/skt
3075c1f4875f9acba927a53c7a2d0e1f7eb302dc
[ "MIT" ]
null
null
null
import setuptools def load_long_description(): with open("README.md", "r") as f: long_description = f.read() return long_description # Start dependencies group air = [ "bayesian-optimization==1.1.0", "catboost<1.0.0", "plotnine<1.0.0", "shap==0.35.0", "gensim==3.8.1", "torch=...
25.028169
64
0.55937
948fd5c3470d4a89fca8fdf5b111431761ec0178
11,853
py
Python
tools/annotation_tools/text_to_tree_tool/annotation_tool_B.py
kandluis/droidlet
3851f0bdac7bc63100cfbcf1c206a94658790352
[ "MIT" ]
null
null
null
tools/annotation_tools/text_to_tree_tool/annotation_tool_B.py
kandluis/droidlet
3851f0bdac7bc63100cfbcf1c206a94658790352
[ "MIT" ]
null
null
null
tools/annotation_tools/text_to_tree_tool/annotation_tool_B.py
kandluis/droidlet
3851f0bdac7bc63100cfbcf1c206a94658790352
[ "MIT" ]
null
null
null
""" Copyright (c) Facebook, Inc. and its affiliates. """ MAX_WORDS = 40 CSS_SCRIPT = """ <script> var node = document.createElement('style'); """ for i in range(MAX_WORDS): CSS_SCRIPT += """ if (! "${{word{i}}}") {{ node.innerHTML += '.word{i} {{ display: none }} ' }} """.format( ...
41.444056
193
0.610394
49873fde847132c08a1c0d0a26a1711b91936e05
1,260
py
Python
catboost/benchmarks/kaggle/rossmann-store-sales/lightgbm_experiment_sklearn_random_cv.py
HeyLey/catboost
f472aed90604ebe727537d9d4a37147985e10ec2
[ "Apache-2.0" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
catboost/benchmarks/kaggle/rossmann-store-sales/lightgbm_experiment_sklearn_random_cv.py
HeyLey/catboost
f472aed90604ebe727537d9d4a37147985e10ec2
[ "Apache-2.0" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
catboost/benchmarks/kaggle/rossmann-store-sales/lightgbm_experiment_sklearn_random_cv.py
HeyLey/catboost
f472aed90604ebe727537d9d4a37147985e10ec2
[ "Apache-2.0" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
#!/usr/bin/env python import os.path import scipy.stats import config import experiment_lib import lightgbm as lgb class LightGBMExperimentRandomSearchCV(experiment_lib.ExperimentRandomSearchCV): def __init__(self, **kwargs): super(LightGBMExperimentRandomSearchCV, self).__init__(**kwargs) def g...
29.302326
105
0.7
0173631d8222244a6760ae44449064c61cb50ee0
457
py
Python
examples/hela_cells.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
examples/hela_cells.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
examples/hela_cells.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
""" Display 48-bit rgb """ import numpy as np from skimage.io import imread import napari hela = imread('data/cells/hela-cells.tif') h_f = hela.astype('float') h_s = h_f / h_f.max() scaled = np.round(255 * h_s).astype('int') print(hela.shape, hela.max(), h_f.max(), h_s.max(), scaled.max(), scaled.dtype.kind) with n...
20.772727
84
0.669584
b9f5d1045be94cfdc23ad272d7247a3bc62a9199
4,465
py
Python
xmael_node.py
Xsmael/blockchain-votes
895524f71c66ae74bd398fb41f675ba979f22621
[ "MIT" ]
1
2020-10-31T15:55:01.000Z
2020-10-31T15:55:01.000Z
xmael_node.py
Xsmael/blockchain-votes
895524f71c66ae74bd398fb41f675ba979f22621
[ "MIT" ]
null
null
null
xmael_node.py
Xsmael/blockchain-votes
895524f71c66ae74bd398fb41f675ba979f22621
[ "MIT" ]
1
2020-10-31T00:14:02.000Z
2020-10-31T00:14:02.000Z
import datetime as date import json from flask import Flask, request from block_util import create_genesis_block from block import Block import requests import sys from pow import proof_of_work node = Flask(__name__) # A completely random address of the owner of this node miner_address = "q3nf394hjg-random-miner-addr...
27.732919
95
0.662486
c7f6c0e9ccb717bf5b4d5bb6b3525f2596ae9971
1,223
py
Python
rpi_sidecar/system/sys_info.py
nelnet-team/rpi-sidec
dc2426dc04244f0a92e99f90eb656509e2ed9065
[ "MIT" ]
null
null
null
rpi_sidecar/system/sys_info.py
nelnet-team/rpi-sidec
dc2426dc04244f0a92e99f90eb656509e2ed9065
[ "MIT" ]
null
null
null
rpi_sidecar/system/sys_info.py
nelnet-team/rpi-sidec
dc2426dc04244f0a92e99f90eb656509e2ed9065
[ "MIT" ]
null
null
null
# See LICENSE.rst for details. # PYTHON_ARGCOMPLETE_OK import os import sys import time from datetime import datetime import psutil def bytes2human(n): """ >>> bytes2human(10000) '9K' >>> bytes2human(100001221) '95M' """ symbols = ('K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y') prefix = {} ...
24.46
76
0.546198
1c83db7b2e4ea93ada035f282a092fc16ae0ff24
4,239
py
Python
pahelix/datasets/clintox_dataset.py
agave233/PaddleHelix
e5578f72c2a203a27d9df7da111f1ced826c1429
[ "Apache-2.0" ]
454
2020-11-21T01:02:45.000Z
2022-03-29T12:53:40.000Z
pahelix/datasets/clintox_dataset.py
chupvl/PaddleHelix
6e082f89b8090c3c360593d40a08bffc884165dd
[ "Apache-2.0" ]
161
2020-12-12T06:35:54.000Z
2022-03-27T11:31:13.000Z
pahelix/datasets/clintox_dataset.py
chupvl/PaddleHelix
6e082f89b8090c3c360593d40a08bffc884165dd
[ "Apache-2.0" ]
108
2020-12-07T09:01:10.000Z
2022-03-31T14:42:29.000Z
#!/usr/bin/python #-*-coding:utf-8-*- # Copyright (c) 2020 PaddlePaddle 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/...
38.536364
518
0.704411
812dc7650bbe712690b89b9a7bea5ffa7f90acfe
27,841
py
Python
python/ray/data/read_api.py
takeshi-yoshimura/ray
cc577c10edbfc8b4248e2776947e1e0d5dbf4585
[ "Apache-2.0" ]
null
null
null
python/ray/data/read_api.py
takeshi-yoshimura/ray
cc577c10edbfc8b4248e2776947e1e0d5dbf4585
[ "Apache-2.0" ]
21
2022-02-04T21:02:54.000Z
2022-03-26T07:12:56.000Z
python/ray/data/read_api.py
takeshi-yoshimura/ray
cc577c10edbfc8b4248e2776947e1e0d5dbf4585
[ "Apache-2.0" ]
null
null
null
import itertools import os import logging from typing import ( List, Any, Dict, Union, Optional, Tuple, Callable, TypeVar, TYPE_CHECKING, ) import uuid import numpy as np if TYPE_CHECKING: import pyarrow import pandas import dask import mars import modin imp...
32.67723
88
0.650444
f0ae6b99737c183528ddf466836b8519f9d42d0b
903
py
Python
tests_group/test_group.py
werbk/task-3.8
6f63e495714400c63ed7714798cd9be083a425a2
[ "Apache-2.0" ]
null
null
null
tests_group/test_group.py
werbk/task-3.8
6f63e495714400c63ed7714798cd9be083a425a2
[ "Apache-2.0" ]
null
null
null
tests_group/test_group.py
werbk/task-3.8
6f63e495714400c63ed7714798cd9be083a425a2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from group_lib import Group from tests_contract.contract_lib import connection def test_create_group(app): """Validation of correct create test group (All field fill up)""" app.group.create(Group(group_name='test', group_header='test', group_footer='test')) app.group.click_group_...
28.21875
104
0.728682
76377f46c6d8069b610297d59bd0a50d7d0ed9ae
8,125
py
Python
simpletransformers/language_modeling/language_modeling_utils.py
potpath/simpletransformers
76f1df524c046760fd2938839f014e88678b2a27
[ "Apache-2.0" ]
null
null
null
simpletransformers/language_modeling/language_modeling_utils.py
potpath/simpletransformers
76f1df524c046760fd2938839f014e88678b2a27
[ "Apache-2.0" ]
null
null
null
simpletransformers/language_modeling/language_modeling_utils.py
potpath/simpletransformers
76f1df524c046760fd2938839f014e88678b2a27
[ "Apache-2.0" ]
null
null
null
import logging import os import pickle from multiprocessing import Pool from typing import Tuple import torch from tokenizers.processors import BertProcessing from torch.utils.data import Dataset from tqdm.auto import tqdm from transformers import PreTrainedTokenizer logger = logging.getLogger(__name__) def encode(...
43.918919
119
0.608492
a4dfc1cd76f8e3e847d18476014683ebef6b4f8c
2,410
py
Python
examples/hello_world/cim/hello_streamlit.py
Meroy9819/maro
700030fac764123613c2aeeddb5c260b7fd1d5f1
[ "MIT" ]
null
null
null
examples/hello_world/cim/hello_streamlit.py
Meroy9819/maro
700030fac764123613c2aeeddb5c260b7fd1d5f1
[ "MIT" ]
null
null
null
examples/hello_world/cim/hello_streamlit.py
Meroy9819/maro
700030fac764123613c2aeeddb5c260b7fd1d5f1
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # Enable realtime data streaming with following statements. from maro.simulator import Env from maro.simulator.scenarios.cim.common import Action, ActionType if __name__ == "__main__": start_tick = 0 durations = 100 # 100 days op...
37.65625
111
0.6361
f23ad503c50d8610ae4ea31541db2fca765c184a
9,862
py
Python
cde/density_estimator/NKDE.py
tobikuhlmann/Conditional_Density_Estimation
5e64fca31e0f8aafac43cfca7a37f70edb4d90fe
[ "MIT" ]
null
null
null
cde/density_estimator/NKDE.py
tobikuhlmann/Conditional_Density_Estimation
5e64fca31e0f8aafac43cfca7a37f70edb4d90fe
[ "MIT" ]
null
null
null
cde/density_estimator/NKDE.py
tobikuhlmann/Conditional_Density_Estimation
5e64fca31e0f8aafac43cfca7a37f70edb4d90fe
[ "MIT" ]
null
null
null
import numpy as np from sklearn.preprocessing import normalize from scipy.stats import multivariate_normal import scipy.optimize as optimize import warnings from cde.utils.misc import norm_along_axis_1 from .BaseDensityEstimator import BaseDensityEstimator from cde.utils.async_executor import execute_batch_async_pdf f...
37.785441
143
0.692253
6e620f416304fc6be309fc416b82a9fb49963cd0
32,769
py
Python
setup.py
drago-f5a/airflow
c71f707d24a9196d33b91a7a2a9e3384698e5193
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
setup.py
drago-f5a/airflow
c71f707d24a9196d33b91a7a2a9e3384698e5193
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
setup.py
drago-f5a/airflow
c71f707d24a9196d33b91a7a2a9e3384698e5193
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# # 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...
32.541212
109
0.659312
efa0cf1d3efea4a6065e036c3a451c605ff5ae86
4,637
py
Python
saleor/graphql/account/schema.py
igoryok-zp/saleor
3a6fe51c068aca991331d6eb43317102ed68ed09
[ "CC-BY-4.0" ]
2
2019-07-27T22:56:14.000Z
2021-09-08T14:37:38.000Z
saleor/graphql/account/schema.py
igoryok-zp/saleor
3a6fe51c068aca991331d6eb43317102ed68ed09
[ "CC-BY-4.0" ]
1
2020-04-27T01:00:45.000Z
2020-04-27T01:00:45.000Z
saleor/graphql/account/schema.py
techonomics69/saleor
fd4cf8531b65fed24b742d51bec8f015d61f3efc
[ "CC-BY-4.0" ]
1
2021-04-15T07:16:34.000Z
2021-04-15T07:16:34.000Z
import graphene from graphql_jwt.decorators import login_required, permission_required from ..core.fields import FilterInputConnectionField from ..core.types import FilterInputObjectType from ..descriptions import DESCRIPTIONS from .bulk_mutations import CustomerBulkDelete, StaffBulkDelete, UserBulkSetActive from .enu...
33.121429
88
0.742506
eaa5916d03b7f1b8119699a9d0d4277b671c19cd
1,295
py
Python
team-cinnamon/bot/extensions/extension.py
Tortoise-Community/Hata-bot
86ff9f5cbbb625dc9c5493853022c7296303f794
[ "MIT" ]
1
2021-01-15T17:08:28.000Z
2021-01-15T17:08:28.000Z
team-cinnamon/bot/extensions/extension.py
Tortoise-Community/hata-bot
86ff9f5cbbb625dc9c5493853022c7296303f794
[ "MIT" ]
1
2020-11-18T04:38:07.000Z
2020-11-18T12:02:59.000Z
team-cinnamon/bot/extensions/extension.py
Tortoise-Community/hata-bot
86ff9f5cbbb625dc9c5493853022c7296303f794
[ "MIT" ]
6
2020-11-05T00:01:22.000Z
2020-11-17T22:30:43.000Z
# simple extensions built on classes class Wrapped: def __init__(self, func, load): self.func = func self._load = load def __get__(self, instance, owner): return self.func.__get__(instance, owner) # binds the method to the instance ensuring that the # `self` argument is...
26.979167
60
0.634749
a465aca18f24278ed09a7ae31f175354e1ec67ad
519
py
Python
molecule/default/tests/test_config.py
konekto/ansible-gitlab-runner
e4260155676f229b5b6624bb4b42ad4d57117fc8
[ "MIT" ]
null
null
null
molecule/default/tests/test_config.py
konekto/ansible-gitlab-runner
e4260155676f229b5b6624bb4b42ad4d57117fc8
[ "MIT" ]
null
null
null
molecule/default/tests/test_config.py
konekto/ansible-gitlab-runner
e4260155676f229b5b6624bb4b42ad4d57117fc8
[ "MIT" ]
null
null
null
import os import toml import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_hosts_file(host): with host.sudo(): f = host.file('/srv/gitlab-runner/config/config.toml') assert f.e...
24.714286
93
0.697495
2a2360b8e0437c68d5e88b60e064f6b4e87e3c88
9,688
py
Python
examples/pytorch/question_generation/fused_embedding_construction.py
stjordanis/graph4nlp
c6ebde32bc77d3a7b78f86a93f19b1c057963ffa
[ "Apache-2.0" ]
1
2021-06-18T06:18:16.000Z
2021-06-18T06:18:16.000Z
examples/pytorch/question_generation/fused_embedding_construction.py
stjordanis/graph4nlp
c6ebde32bc77d3a7b78f86a93f19b1c057963ffa
[ "Apache-2.0" ]
null
null
null
examples/pytorch/question_generation/fused_embedding_construction.py
stjordanis/graph4nlp
c6ebde32bc77d3a7b78f86a93f19b1c057963ffa
[ "Apache-2.0" ]
1
2021-08-29T12:48:47.000Z
2021-08-29T12:48:47.000Z
import numpy as np import torch import torch.nn as nn from graph4nlp.pytorch.modules.utils import constants as Constants from graph4nlp.pytorch.modules.graph_construction.embedding_construction import * class FusedEmbeddingConstruction(EmbeddingConstructionBase): """Initial graph embedding construction class. ...
42.678414
116
0.612717
83f3fc87940927de2d751ad56e95ecef704edc60
2,172
py
Python
footprint_airflow/dags/lending/lending_asset/load_data_lending_repay.py
footprint-network/footprint-analytics
5de4932ce1c21860785edcce90ffdf097b6f9921
[ "MIT" ]
null
null
null
footprint_airflow/dags/lending/lending_asset/load_data_lending_repay.py
footprint-network/footprint-analytics
5de4932ce1c21860785edcce90ffdf097b6f9921
[ "MIT" ]
null
null
null
footprint_airflow/dags/lending/lending_asset/load_data_lending_repay.py
footprint-network/footprint-analytics
5de4932ce1c21860785edcce90ffdf097b6f9921
[ "MIT" ]
1
2021-09-20T22:31:20.000Z
2021-09-20T22:31:20.000Z
import os from config import project_config from utils.common import read_file from lending.lending_asset.loan_data_lending_basic import LoanDataLendingBasic from datetime import datetime from utils.date_util import DateUtil class LendingRepay(LoanDataLendingBasic): task_name = 'lending_repay' table_name = '...
38.785714
117
0.535451
a4875f873a7ad097d02733784db5ebc36c6ceb6d
1,959
py
Python
py/delete_campaign_interactions.py
paulokuong/api-examples
930af7b9d850ef4583d66388d6925dc9147a1e23
[ "MIT" ]
null
null
null
py/delete_campaign_interactions.py
paulokuong/api-examples
930af7b9d850ef4583d66388d6925dc9147a1e23
[ "MIT" ]
null
null
null
py/delete_campaign_interactions.py
paulokuong/api-examples
930af7b9d850ef4583d66388d6925dc9147a1e23
[ "MIT" ]
null
null
null
''' Please note that this file is an example, not an official Lotame-supported tool. The Support team at Lotame does not provide support for this script, as it's only meant to serve as a guide to help you use the Services API. Filename: delete_campaign_interactions.py Author: Brett Coker Python...
26.835616
78
0.627361
2e25070550afb64bf5d3b0be4d8158d5c0ab7af7
4,601
py
Python
tests/integration/states/ssh.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
1
2016-12-20T20:11:21.000Z
2016-12-20T20:11:21.000Z
tests/integration/states/ssh.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
tests/integration/states/ssh.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
''' Test the ssh_known_hosts state ''' # Import python libs import os import shutil # Import Salt Testing libs from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import salt libs import integration KNOWN_HOSTS = os.path.join(integration.TMP, 'known_hosts') GITHUB_FINGERPRINT = '16:27:ac...
31.731034
78
0.578787
5ce413d6253b4657c2f192b4dcf20336cabd743c
357
py
Python
examples/example.py
MySixSenses/aio-mc-rcon
f1806a0eba3de26606b1c1accacf5a9f2464e184
[ "MIT" ]
21
2020-11-06T22:35:12.000Z
2022-01-01T04:46:33.000Z
examples/example.py
MySixSenses/aio-mc-rcon
f1806a0eba3de26606b1c1accacf5a9f2464e184
[ "MIT" ]
3
2021-06-23T22:43:23.000Z
2021-11-17T19:19:34.000Z
examples/example.py
MySixSenses/aio-mc-rcon
f1806a0eba3de26606b1c1accacf5a9f2464e184
[ "MIT" ]
4
2021-02-06T19:18:31.000Z
2021-11-17T16:51:11.000Z
from aiomcrcon import Client import asyncio async def main(): password = input("Password? ") command = input("Command? ") client = Client("xenonmc.ml", 25566, password) await client.connect() response = await client.send_cmd(command) print(response) await client.close() if __name__ ==...
17.85
50
0.663866
b2582ad27f7f94b2e16ad830e5716613e4bc8c7a
151
py
Python
pages/views.py
AranaFireheartSNHU/IT221FAAa20-IntroToDjango
2cd5e1ffce4c2b7e9ff6c1e057c509a8b7c050d2
[ "MIT" ]
null
null
null
pages/views.py
AranaFireheartSNHU/IT221FAAa20-IntroToDjango
2cd5e1ffce4c2b7e9ff6c1e057c509a8b7c050d2
[ "MIT" ]
null
null
null
pages/views.py
AranaFireheartSNHU/IT221FAAa20-IntroToDjango
2cd5e1ffce4c2b7e9ff6c1e057c509a8b7c050d2
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse def homePageView(request): return HttpResponse('<h1>Hello, World!</h1>')
25.166667
49
0.774834
4e7bfb1b70459770e67f45109754845b5f49bda6
5,382
py
Python
docs/source/conf.py
wwf6688/TensorFlow.NET
d84c439810f0402d3e5088472bd451f05ead6093
[ "Apache-2.0" ]
1
2019-03-08T03:04:32.000Z
2019-03-08T03:04:32.000Z
docs/source/conf.py
wwf6688/TensorFlow.NET
d84c439810f0402d3e5088472bd451f05ead6093
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
wwf6688/TensorFlow.NET
d84c439810f0402d3e5088472bd451f05ead6093
[ "Apache-2.0" ]
1
2019-02-25T06:10:58.000Z
2019-02-25T06:10:58.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
29.9
79
0.651616
86d432bfd5107db30242bc65f1832d2c45dbaebd
2,242
py
Python
tests/conftest.py
timhughes/example-fastapi-sqlachemy-pytest
0e95544c2fa8418bf17653089a7667d61a8b8b5b
[ "MIT" ]
29
2020-04-14T14:00:02.000Z
2022-03-11T11:04:44.000Z
tests/conftest.py
sourabhsinha396/example-fastapi-sqlachemy-pytest
27c109ddb1dcea077cd960d35de50647765f0a62
[ "MIT" ]
1
2020-08-12T16:56:03.000Z
2020-08-12T16:56:03.000Z
tests/conftest.py
timhughes/example-fastapi-sqlachemy-pytest
0e95544c2fa8418bf17653089a7667d61a8b8b5b
[ "MIT" ]
10
2020-04-25T20:40:47.000Z
2022-01-26T02:55:20.000Z
import os from typing import Any, Generator import pytest from example.db.session import DBBase from example.main import get_application from example.routers.utils.db import get_db from fastapi import FastAPI from fastapi.testclient import TestClient from sqlalchemy import create_engine from sqlalchemy.orm import sess...
29.5
82
0.719893
49bb4a2c66e37f69533b39f615fc756ea9f486ed
3,687
py
Python
regime_hmm_backtest.py
LahanO/trend-following-experiments
373bee192fadf2b2ce61e2a7bdd3f4a44c659b40
[ "MIT" ]
null
null
null
regime_hmm_backtest.py
LahanO/trend-following-experiments
373bee192fadf2b2ce61e2a7bdd3f4a44c659b40
[ "MIT" ]
null
null
null
regime_hmm_backtest.py
LahanO/trend-following-experiments
373bee192fadf2b2ce61e2a7bdd3f4a44c659b40
[ "MIT" ]
null
null
null
# regime_hmm_backtest.py import datetime import pickle import click import numpy as np from qstrader import settings from qstrader.compat import queue from qstrader.price_parser import PriceParser from qstrader.price_handler.yahoo_daily_csv_bar import YahooDailyCsvBarPriceHandler from qstrader.strategy i...
34.783019
92
0.73176
ad57b4c9adfb5263b2563450e6c7168bf8f9ebf5
430
py
Python
exam/notes/notes/users_notes/urls.py
Beshkov/Python_Web_Basics
29f46a159387f224547609f62b26ff6c8d75c0fa
[ "MIT" ]
null
null
null
exam/notes/notes/users_notes/urls.py
Beshkov/Python_Web_Basics
29f46a159387f224547609f62b26ff6c8d75c0fa
[ "MIT" ]
null
null
null
exam/notes/notes/users_notes/urls.py
Beshkov/Python_Web_Basics
29f46a159387f224547609f62b26ff6c8d75c0fa
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path from notes.users_notes.views import index, add_note, delete_note, edit_note, note_details urlpatterns = [ path('', index, name='index'), path('add/', add_note, name='add'), path('edit/<int:pk>', edit_note, name='edit note'), path('delete/<i...
33.076923
89
0.688372
65a792e116a80e8d70f38526ca3d4067727f9d65
471
py
Python
env/lib/python3.8/site-packages/plotly/validators/layout/angularaxis/_showline.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/layout/angularaxis/_showline.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/layout/angularaxis/_showline.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, plotly_name="showline", parent_name="layout.angularaxis", **kwargs ): super(ShowlineValidator, self).__init__( plotly_name=plotly_name, parent...
31.4
80
0.643312
c401d3443c28b10a14426fea5067ff5e6b9ca50c
3,446
py
Python
apps/museums/migrations/0001_initial.py
Guest007/vgid
bb03c4e2bc879a553c1830928528b0bc5d2ba679
[ "MIT" ]
null
null
null
apps/museums/migrations/0001_initial.py
Guest007/vgid
bb03c4e2bc879a553c1830928528b0bc5d2ba679
[ "MIT" ]
7
2015-09-13T14:35:42.000Z
2015-09-13T15:51:47.000Z
apps/museums/migrations/0001_initial.py
Guest007/vgid
bb03c4e2bc879a553c1830928528b0bc5d2ba679
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import sorl.thumbnail.fields import core.models import ckeditor.fields class Migration(migrations.Migration): dependencies = [ ('events', '0001_initial'), ('core', '0001_initial'), ] ...
74.913043
333
0.674405
fbcb517824033bc95ab893ae4c7c9a07a9c6092b
11,525
py
Python
tools/android/loading/wpr_backend_unittest.py
google-ar/chromium
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
tools/android/loading/wpr_backend_unittest.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tools/android/loading/wpr_backend_unittest.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# 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. import contextlib import httplib import os import shutil import tempfile import unittest from device_setup import _WprHost from options import OPTIONS from ...
42.062044
80
0.63167
8d190febbdd787641bc9e1641a0a3a0cedb49864
1,053
py
Python
train_results.py
vgliner/Chlng_20_Sub
169d098e5315510df83ad988c7e2067317cef4cf
[ "BSD-2-Clause" ]
null
null
null
train_results.py
vgliner/Chlng_20_Sub
169d098e5315510df83ad988c7e2067317cef4cf
[ "BSD-2-Clause" ]
null
null
null
train_results.py
vgliner/Chlng_20_Sub
169d098e5315510df83ad988c7e2067317cef4cf
[ "BSD-2-Clause" ]
null
null
null
from typing import NamedTuple, List class BatchResult(NamedTuple): """ Represents the result of training for a single batch: the loss and number of correct classifications. """ loss: float num_correct: int num_TP: int num_TN: int num_FP: int num_FN: int Fbeta: float Gbe...
21.489796
76
0.659069
2b906bacb5f3117fe3f9b1780f271a5dd78e7e4e
26,940
py
Python
auth-api/tests/utilities/factory_scenarios.py
karthik-aot/sbc-auth
f24028040fda67d4f10ae9b608b8832c15d2a8ad
[ "Apache-2.0" ]
null
null
null
auth-api/tests/utilities/factory_scenarios.py
karthik-aot/sbc-auth
f24028040fda67d4f10ae9b608b8832c15d2a8ad
[ "Apache-2.0" ]
null
null
null
auth-api/tests/utilities/factory_scenarios.py
karthik-aot/sbc-auth
f24028040fda67d4f10ae9b608b8832c15d2a8ad
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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.435239
114
0.547587
43d830c11dbcd8e727762ff389d99757d8e4e33e
660
py
Python
customers_api/api/tests.py
lsantosdemoura/customers-API
cc3e2291514004318cc88de1cf12d6cd0fb8f014
[ "MIT" ]
null
null
null
customers_api/api/tests.py
lsantosdemoura/customers-API
cc3e2291514004318cc88de1cf12d6cd0fb8f014
[ "MIT" ]
5
2021-04-08T20:01:20.000Z
2022-02-10T09:05:09.000Z
customers_api/api/tests.py
lsantosdemoura/customers-API
cc3e2291514004318cc88de1cf12d6cd0fb8f014
[ "MIT" ]
null
null
null
import json from django.urls import reverse from rest_framework import status import pytest from core.models import Customer from core.models import FavoriteList from api.serializers import CustomerSerializer @pytest.mark.django_db(transaction=True) class TestCustomerViews: @pytest.fixture def customer_1(se...
22.758621
46
0.671212
8073158b84a641b9fca85710397f2f342e9e7449
5,546
py
Python
test/functional/wallet_import_with_label.py
stamhe/bitcoin-abc
a1ba303c6b4f164ae94612e83b824e564405a96e
[ "MIT" ]
1,266
2017-05-02T07:02:29.000Z
2022-03-31T17:15:44.000Z
test/functional/wallet_import_with_label.py
EGYVOICE/bitcoin-abc-avalanche
e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c
[ "MIT" ]
426
2017-05-07T12:40:52.000Z
2022-03-29T18:12:01.000Z
test/functional/wallet_import_with_label.py
EGYVOICE/bitcoin-abc-avalanche
e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c
[ "MIT" ]
721
2017-05-07T10:36:11.000Z
2022-03-15T09:07:48.000Z
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the behavior of RPC importprivkey on set and unset labels of addresses. It tests different cases in wh...
35.101266
79
0.599531
6ba006c99afcd9f2abac42a2d5660fb2c4ae1621
2,764
py
Python
bindings/python/ensmallen/datasets/networkrepository/sw100040d3trial3.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/networkrepository/sw100040d3trial3.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/networkrepository/sw100040d3trial3.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 SW-1000-4-0d3-trial3. The graph is automatically retrieved from the NetworkRepository repository. References --------------------- Please cite the following if you use the data: ```bib @inproceedings{nr, title = {The Network Data Repository w...
29.094737
94
0.657381
cadea6f46d403dd5d6d4ea073d1142c4a92d6959
74
py
Python
apis/common/config/development.py
sunil28rana/flask-imdb-sample-project
df28655327a42c0ec28e485d64ebbc5d525275e7
[ "MIT" ]
null
null
null
apis/common/config/development.py
sunil28rana/flask-imdb-sample-project
df28655327a42c0ec28e485d64ebbc5d525275e7
[ "MIT" ]
null
null
null
apis/common/config/development.py
sunil28rana/flask-imdb-sample-project
df28655327a42c0ec28e485d64ebbc5d525275e7
[ "MIT" ]
1
2020-10-22T10:31:00.000Z
2020-10-22T10:31:00.000Z
from .default import Default class DevelopmentConfig(Default): pass
12.333333
33
0.77027
87cc8bb905737ea64fbbe513879ace6dd2e082d6
1,536
py
Python
doc/source/tutorial/examples/normdiscr_plot1.py
gdmcbain/scipy
846e9cd501bba8c5b23f218f37c88ce962c38bef
[ "BSD-3-Clause" ]
9,095
2015-01-02T18:24:23.000Z
2022-03-31T20:35:31.000Z
doc/source/tutorial/examples/normdiscr_plot1.py
gdmcbain/scipy
846e9cd501bba8c5b23f218f37c88ce962c38bef
[ "BSD-3-Clause" ]
11,500
2015-01-01T01:15:30.000Z
2022-03-31T23:07:35.000Z
doc/source/tutorial/examples/normdiscr_plot1.py
gdmcbain/scipy
846e9cd501bba8c5b23f218f37c88ce962c38bef
[ "BSD-3-Clause" ]
5,838
2015-01-05T11:56:42.000Z
2022-03-31T23:21:19.000Z
import numpy as np import matplotlib.pyplot as plt from scipy import stats npoints = 20 # number of integer support points of the distribution minus 1 npointsh = npoints // 2 npointsf = float(npoints) nbound = 4 # bounds for the truncated normal normbound = (1 + 1/npointsf) * nbound # actual bounds of truncated nor...
34.909091
79
0.686849
17cf1ca5603bf3bd86cdb939a2427e2f3c0965ac
22,891
py
Python
colcon_core/shell/__init__.py
colcon/colcon-core
7d930eaa58342a0c1579b3614a945ea484640f7d
[ "Apache-2.0" ]
76
2017-04-27T23:13:57.000Z
2022-03-25T10:02:11.000Z
colcon_core/shell/__init__.py
colcon/colcon-core
7d930eaa58342a0c1579b3614a945ea484640f7d
[ "Apache-2.0" ]
442
2018-03-13T16:45:28.000Z
2022-03-30T22:47:42.000Z
colcon_core/shell/__init__.py
colcon/colcon-core
7d930eaa58342a0c1579b3614a945ea484640f7d
[ "Apache-2.0" ]
34
2018-06-22T09:56:34.000Z
2022-03-26T23:46:42.000Z
# Copyright 2016-2019 Dirk Thomas # Licensed under the Apache License, Version 2.0 from asyncio import CancelledError from collections import OrderedDict import locale import os from pathlib import Path import re import sys import traceback import warnings from colcon_core.environment_variable import EnvironmentVaria...
37.587849
79
0.641082
05ce7a64ea5ee03babf58c97d8a4a3f459841db9
18,718
py
Python
eventgui.py
PALab/stalta
f1a243dafc18a4cceb81b5168a761289dde211ee
[ "MIT" ]
3
2017-03-01T06:00:10.000Z
2019-04-10T02:50:27.000Z
eventgui.py
PALab/stalta
f1a243dafc18a4cceb81b5168a761289dde211ee
[ "MIT" ]
null
null
null
eventgui.py
PALab/stalta
f1a243dafc18a4cceb81b5168a761289dde211ee
[ "MIT" ]
1
2020-02-21T07:16:51.000Z
2020-02-21T07:16:51.000Z
'''eventgui.py -- gui for programstalta.py usage: python eventgui.py [options] options: -h print this ''' version = "0.55" lastchangedate = "2014-12-14" import sys import getopt import posixpath as pp import pprint from Tkinter import * # from ttk import * import tkFont import tkF...
37.586345
81
0.497863
db7681c1a36c74129ae385ee7d53af5141f50c95
1,799
py
Python
py2/layers/loss_funcs/loss.py
ti-ginkgo/Severstal
57f37dc61cfd910b575afa7dc51094c94e3511c0
[ "MIT" ]
2
2020-01-08T02:58:18.000Z
2020-01-28T16:42:00.000Z
py2/layers/loss_funcs/loss.py
ti-ginkgo/Severstal
57f37dc61cfd910b575afa7dc51094c94e3511c0
[ "MIT" ]
null
null
null
py2/layers/loss_funcs/loss.py
ti-ginkgo/Severstal
57f37dc61cfd910b575afa7dc51094c94e3511c0
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, '../..') import torch.nn as nn from torch.nn import BCEWithLogitsLoss, BCELoss from layers.loss_funcs import lovasz_losses as L def dice_score(prob, truth, threshold=0.5): num = prob.size(0) prob = prob > threshold truth = truth > 0.5 prob = prob.view(num, -1) tru...
27.676923
125
0.612563
3d4c560860416cbe844a333adf135178219599de
961
py
Python
sections/4.3-sets.py
Cygnut/python-tutorial
9a8049cf2a8239bfd0fe7e2cb33fdf134b7d7e16
[ "MIT" ]
null
null
null
sections/4.3-sets.py
Cygnut/python-tutorial
9a8049cf2a8239bfd0fe7e2cb33fdf134b7d7e16
[ "MIT" ]
null
null
null
sections/4.3-sets.py
Cygnut/python-tutorial
9a8049cf2a8239bfd0fe7e2cb33fdf134b7d7e16
[ "MIT" ]
null
null
null
"""sets are like dicts mashed up with lists: - Every item appears only once uniquely. - They are unordered - They are unindexed """ # %% # Even though we construct the set with the value '1' specified multiple times, the constructed # object only contains it once. some_set = {1, 2, 4, 5, 1, 1, 1, 1} print(some_set) ...
22.348837
101
0.649324
86d729bbeffd24de4e95022155306952ba8ac955
977
py
Python
fastmri_recon/tests/models/subclassed_models/updnet_test.py
lesteve/fastmri-reproducible-benchmark
8c9289c825c498ad0c4220d44d7270a98845ddb8
[ "MIT" ]
null
null
null
fastmri_recon/tests/models/subclassed_models/updnet_test.py
lesteve/fastmri-reproducible-benchmark
8c9289c825c498ad0c4220d44d7270a98845ddb8
[ "MIT" ]
null
null
null
fastmri_recon/tests/models/subclassed_models/updnet_test.py
lesteve/fastmri-reproducible-benchmark
8c9289c825c498ad0c4220d44d7270a98845ddb8
[ "MIT" ]
null
null
null
import pytest import tensorflow as tf from fastmri_recon.models.subclassed_models.updnet import UPDNet @pytest.mark.parametrize('model_kwargs, n_phase_encoding', [ ({}, 320), ({}, 550), ({'primal_only': True}, 320), ]) def test_pdnet_init_and_call(model_kwargs, n_phase_encoding): model = UPDNet(**mod...
31.516129
78
0.654043
7bbff5d05e6ccf700c91be16eca45b7e752d1873
3,919
py
Python
analysis.py
kirichoi/metaMEG
eb9bb8d071feb9c3a8677d31c2e86129a1806d74
[ "MIT" ]
null
null
null
analysis.py
kirichoi/metaMEG
eb9bb8d071feb9c3a8677d31c2e86129a1806d74
[ "MIT" ]
null
null
null
analysis.py
kirichoi/metaMEG
eb9bb8d071feb9c3a8677d31c2e86129a1806d74
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ CCR analysis extension module Kiri Choi (c) 2018 """ import tellurium as te import roadrunner import numpy as np from scipy import signal from sklearn import neighbors import plotting as pt import networkx as nx def getWeights(dist): """ """ def ensembleFluxControlCoefficient(...
23.052941
91
0.609849
d33b4cd6d05592ae28adf846e090ab36960bcac2
5,368
py
Python
kubernetes_asyncio/client/models/v1_nfs_volume_source.py
dineshsonachalam/kubernetes_asyncio
d57e9e9be11f6789e1ce8d5b161acb64d29acf35
[ "Apache-2.0" ]
1
2021-02-25T04:36:18.000Z
2021-02-25T04:36:18.000Z
kubernetes_asyncio/client/models/v1_nfs_volume_source.py
hubo1016/kubernetes_asyncio
d57e9e9be11f6789e1ce8d5b161acb64d29acf35
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/v1_nfs_volume_source.py
hubo1016/kubernetes_asyncio
d57e9e9be11f6789e1ce8d5b161acb64d29acf35
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1.12.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import si...
31.028902
189
0.594076
19b5df7532e3050d8dee29c858c1dd090f207733
13,870
py
Python
gym_guppy/guppies/_couzin_guppies.py
gregorgebhardt/gym-guppy
ba94881e7b70c0333fdbed82117b7ac8e2487a07
[ "MIT" ]
1
2021-09-25T10:40:04.000Z
2021-09-25T10:40:04.000Z
gym_guppy/guppies/_couzin_guppies.py
gregorgebhardt/gym-guppy
ba94881e7b70c0333fdbed82117b7ac8e2487a07
[ "MIT" ]
null
null
null
gym_guppy/guppies/_couzin_guppies.py
gregorgebhardt/gym-guppy
ba94881e7b70c0333fdbed82117b7ac8e2487a07
[ "MIT" ]
null
null
null
import abc import numpy as np from typing import List from numba import jit, njit from scipy.spatial import cKDTree from gym_guppy.guppies import TurnBoostAgent, ConstantVelocityAgent, Agent, Guppy from gym_guppy.tools import Feedback from gym_guppy.tools.math import rotation, row_norm _ZOR = 0.005 # zone of repul...
35.839793
118
0.629849
5f15e258671ef34ed08ebba186e84596c151170b
82
py
Python
fluid/__init__.py
AmberLJC/Fluid
85dee374eb2a1c96fecea83d5484ad83d1739e95
[ "Apache-2.0" ]
12
2021-03-10T15:36:04.000Z
2022-01-07T16:07:24.000Z
fluid/__init__.py
AmberLJC/Fluid
85dee374eb2a1c96fecea83d5484ad83d1739e95
[ "Apache-2.0" ]
2
2022-01-07T16:03:36.000Z
2022-01-14T08:21:06.000Z
fluid/__init__.py
AmberLJC/Fluid
85dee374eb2a1c96fecea83d5484ad83d1739e95
[ "Apache-2.0" ]
3
2021-05-16T03:15:08.000Z
2021-12-10T11:50:16.000Z
from . import scheduler # noqa: F401 # from scheduler import FluidBandScheduler
20.5
42
0.780488
65cf7959e15e507dc9dc33e1b70c94e20fb625dd
626
py
Python
tests/test_graph.py
severstal-digital/typed-blocks
276e65d22772057ba58198332406274d06b87788
[ "Apache-2.0" ]
null
null
null
tests/test_graph.py
severstal-digital/typed-blocks
276e65d22772057ba58198332406274d06b87788
[ "Apache-2.0" ]
null
null
null
tests/test_graph.py
severstal-digital/typed-blocks
276e65d22772057ba58198332406274d06b87788
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from blocks import Event, Graph from blocks import processor @dataclass class MyEvent(Event): x: int @dataclass class MyOtherEvent(MyEvent): y: float @processor def printer(event: MyEvent) -> MyOtherEvent: print(event) return MyOtherEvent(event.x, 1.0) def test_...
17.885714
44
0.723642
3f83f57dab423968ad99277228d7e63a4d9fc18f
1,872
py
Python
GUI/ReemCodes/BabyG/GamesBabyG.py
UAEU-IRI/std_googleAssistant
0eb9a7bf01b000262a58c794ca2a7ae694c46cf5
[ "MIT" ]
2
2018-11-29T15:52:16.000Z
2019-01-17T20:38:02.000Z
GUI/ReemCodes/BabyG/GamesBabyG.py
UAEU-IRI/std_googleAssistant
0eb9a7bf01b000262a58c794ca2a7ae694c46cf5
[ "MIT" ]
4
2019-01-08T07:12:23.000Z
2019-12-29T23:09:24.000Z
GUI/ReemCodes/BabyG/GamesBabyG.py
UAEU-IRI/std_googleAssistant
0eb9a7bf01b000262a58c794ca2a7ae694c46cf5
[ "MIT" ]
1
2019-01-11T11:38:29.000Z
2019-01-11T11:38:29.000Z
from tkinter import * from subprocess import call def Color(): root.destroy() call(['python', 'C:/Users/Reemy/Documents/GitHub/std_googleAssistant/GUI/Codes/BabyG/colorGameBabyG.py']) def TicTacToe(): root.destroy() call(['python', 'C:/Users/Reemy/Documents/GitHub/std_googleAssistant/GUI/Codes/BabyG/t...
40.695652
109
0.729701
c836096913fa11bdf9ea1a0980d4e5ace732d0be
7,956
bzl
Python
bazel/envoy_test.bzl
theduderog/envoy
50df654f5f10382f5a4d64e9b77eb6d35a008593
[ "Apache-2.0" ]
1
2019-07-06T03:33:55.000Z
2019-07-06T03:33:55.000Z
bazel/envoy_test.bzl
theduderog/envoy
50df654f5f10382f5a4d64e9b77eb6d35a008593
[ "Apache-2.0" ]
null
null
null
bazel/envoy_test.bzl
theduderog/envoy
50df654f5f10382f5a4d64e9b77eb6d35a008593
[ "Apache-2.0" ]
null
null
null
# DO NOT LOAD THIS FILE. Load envoy_build_system.bzl instead. # Envoy test targets. This includes both test library and test binary targets. load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar") load(":envoy_binary.bzl", "envoy_cc_binary") load( ":envoy_internal.bzl", "envoy_copts", "envoy_external_...
30.957198
125
0.561589
969df9e15ce1326cea9a5aba6ded38e3588a8464
9,673
py
Python
vbox/src/VBox/ValidationKit/testmanager/webui/wuiadmintestgroup.py
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
vbox/src/VBox/ValidationKit/testmanager/webui/wuiadmintestgroup.py
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
vbox/src/VBox/ValidationKit/testmanager/webui/wuiadmintestgroup.py
Nurzamal/rest_api_docker
a9cc01dfc235467d490d9663755b33ef6990bdd8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # $Id: wuiadmintestgroup.py 69111 2017-10-17 14:26:02Z vboxsync $ """ Test Manager WUI - Test Groups. """ __copyright__ = \ """ Copyright (C) 2012-2017 Oracle Corporation This file is part of VirtualBox Open Source Edition (OSE), as available from http://www.virtualbox.org. This file is free ...
51.452128
127
0.57004
58f9e96832e1c985bf3a124fabec4c15048273f2
1,489
py
Python
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_iaas_vm_restore_operation_request_py3.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_iaas_vm_restore_operation_request_py3.py
kushan2018/azure-sdk-for-python
08a9296207281f4e90e23cf7a30173863accc867
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/validate_iaas_vm_restore_operation_request_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
38.179487
110
0.660175
4c98ef6155414ecffc2f0ad2cd889c7ea78b4804
52
py
Python
sparcur/__init__.py
tgbugs/sparc-curation
d5f9942e26dc780e2584a9944ab1e639e249f85b
[ "MIT" ]
null
null
null
sparcur/__init__.py
tgbugs/sparc-curation
d5f9942e26dc780e2584a9944ab1e639e249f85b
[ "MIT" ]
1
2019-02-27T23:47:28.000Z
2019-02-27T23:47:28.000Z
sparcur/__init__.py
tgbugs/sparc-curation
d5f9942e26dc780e2584a9944ab1e639e249f85b
[ "MIT" ]
null
null
null
__version__ = '0.0.1.dev3' __internal_version__ = 4
17.333333
26
0.75
5d57c288b4b034e8ffd201735beb984f8d2fbdd6
3,709
py
Python
scrape.py
gopal131072/WormScraper
5722db2e3f21960a2353cd867e4795823c89ed4e
[ "MIT" ]
1
2017-06-16T17:27:11.000Z
2017-06-16T17:27:11.000Z
scrape.py
gopal131072/WormScraper
5722db2e3f21960a2353cd867e4795823c89ed4e
[ "MIT" ]
null
null
null
scrape.py
gopal131072/WormScraper
5722db2e3f21960a2353cd867e4795823c89ed4e
[ "MIT" ]
null
null
null
import bs4 as bs import urllib.request import sys import os from collections import OrderedDict # Dictionary to store sitemap. ScraperURL = [] # Reads which web series to scrape. # Changes input to lower case for ease of use. option = sys.argv[1].lower() if len(sys.argv) > 2: # The directory to store the output ...
37.09
110
0.702885
730cb04f98cb2f915f41e5a08031920d569d00c8
5,392
py
Python
praw/models/auth.py
CrackedP0t/praw
9e9d68c73c900c6c0581bbf246df06a06ee44e53
[ "BSD-2-Clause" ]
4
2018-09-28T01:47:53.000Z
2021-02-13T20:21:14.000Z
praw/models/auth.py
CrackedP0t/praw
9e9d68c73c900c6c0581bbf246df06a06ee44e53
[ "BSD-2-Clause" ]
4
2018-09-19T06:27:24.000Z
2018-09-22T00:44:41.000Z
praw/models/auth.py
CrackedP0t/praw
9e9d68c73c900c6c0581bbf246df06a06ee44e53
[ "BSD-2-Clause" ]
null
null
null
"""Provide the Auth class.""" from prawcore import (Authorizer, ImplicitAuthorizer, UntrustedAuthenticator, session) from .base import PRAWBase from ..exceptions import ClientException class Auth(PRAWBase): """Auth provides an interface to Reddit's authorization.""" @property def l...
45.310924
79
0.667099
1c4120c7b5399be0aa1163989112029f5ed99d31
7,810
py
Python
src/sage/groups/abelian_gps/dual_abelian_group_element.py
sensen1/sage
d6c5cd9be78cc448ee4c54bac93385b1244a234c
[ "BSL-1.0" ]
1
2021-03-15T21:45:56.000Z
2021-03-15T21:45:56.000Z
src/sage/groups/abelian_gps/dual_abelian_group_element.py
sensen1/sage
d6c5cd9be78cc448ee4c54bac93385b1244a234c
[ "BSL-1.0" ]
null
null
null
src/sage/groups/abelian_gps/dual_abelian_group_element.py
sensen1/sage
d6c5cd9be78cc448ee4c54bac93385b1244a234c
[ "BSL-1.0" ]
null
null
null
""" Elements (characters) of the dual group of a finite Abelian group To obtain the dual group of a finite Abelian group, use the :meth:`~sage.groups.abelian_gps.abelian_group.dual_group` method:: sage: F = AbelianGroup([2,3,5,7,8], names="abcde") sage: F Multiplicative Abelian group isomorphic to C2 x C3...
32.677824
108
0.559667
147814f389c34abd4bedb72f5e0b4c722f099701
16,522
py
Python
v1/fast.py
sriharivishnu/FlappyBird-RL
3ab91e8f4c3ed2e13d441e6e657eb904370a8c48
[ "MIT" ]
null
null
null
v1/fast.py
sriharivishnu/FlappyBird-RL
3ab91e8f4c3ed2e13d441e6e657eb904370a8c48
[ "MIT" ]
null
null
null
v1/fast.py
sriharivishnu/FlappyBird-RL
3ab91e8f4c3ed2e13d441e6e657eb904370a8c48
[ "MIT" ]
null
null
null
# data = pygame.surfarray.array3d(pygame.display.get_surface()) from itertools import cycle import random import sys import matplotlib.pyplot as plt import pygame import numpy as np import cv2 from skimage import color as colour from skimage.transform import resize, downscale_local_mean from pygame.locals import...
42.040712
178
0.578078
00592253653ec7405b4e6ece5d466cc3d4e29cfa
2,468
py
Python
utils/metrics/lr.py
henrylao/P3-SemanticSegmentation
2211eaf32da5ad2220b6d72fe1e5e36f485a36c2
[ "MIT" ]
1
2022-03-18T09:14:51.000Z
2022-03-18T09:14:51.000Z
utils/metrics/lr.py
henrylao/P3-SemanticSegmentation
2211eaf32da5ad2220b6d72fe1e5e36f485a36c2
[ "MIT" ]
null
null
null
utils/metrics/lr.py
henrylao/P3-SemanticSegmentation
2211eaf32da5ad2220b6d72fe1e5e36f485a36c2
[ "MIT" ]
2
2021-11-17T01:03:07.000Z
2021-11-30T11:12:05.000Z
from __future__ import print_function, division import math def init_params_lr(net, opt): """ :param net: :param opt: :return: """ bias_params = [] unbiased_params = [] for key, value in dict(net.named_parameters()).items(): if value.requires_grad: if "bias" in key...
28.045455
117
0.626823
6064116ecb46a0b8fc459db18469d674c4e419b8
8,065
py
Python
src/oci/autoscaling/models/auto_scaling_policy.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/autoscaling/models/auto_scaling_policy.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/autoscaling/models/auto_scaling_policy.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
30.900383
245
0.641785
fad1781ccc57d0404cc6b59b1f82d90a8228303d
4,790
py
Python
features/steps/slides.py
handwriter/python-pptx
22351c6f9fe637cadddca3461c4899af7d439711
[ "MIT" ]
1
2020-03-20T01:47:10.000Z
2020-03-20T01:47:10.000Z
features/steps/slides.py
handwriter/python-pptx
22351c6f9fe637cadddca3461c4899af7d439711
[ "MIT" ]
null
null
null
features/steps/slides.py
handwriter/python-pptx
22351c6f9fe637cadddca3461c4899af7d439711
[ "MIT" ]
null
null
null
# encoding: utf-8 """Gherkin step implementations for slide collection-related features.""" from __future__ import absolute_import, division, print_function, unicode_literals from behave import given, when, then from pptx import Presentation from helpers import test_pptx # given ====================...
32.585034
83
0.715449
93db63be0fbb951373b1932b7f83c84649ebd9c7
173
py
Python
pymatgen/io/xtb/__init__.py
naik-aakash/pymatgen
394e0d71bf1d1025fcf75498cbb16aa3f41ce78c
[ "MIT" ]
1
2022-03-24T04:12:16.000Z
2022-03-24T04:12:16.000Z
pymatgen/io/xtb/__init__.py
naik-aakash/pymatgen
394e0d71bf1d1025fcf75498cbb16aa3f41ce78c
[ "MIT" ]
null
null
null
pymatgen/io/xtb/__init__.py
naik-aakash/pymatgen
394e0d71bf1d1025fcf75498cbb16aa3f41ce78c
[ "MIT" ]
null
null
null
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This package implements modules for input and output to and from CREST """
24.714286
70
0.757225
9e89c9539f70814a53f98d383eb30a03ee70c996
4,558
py
Python
tests/test_cookiecutter_local_no_input.py
xyb/cookiecutter
449f8771650a3daab7c8163b015576eae26150b8
[ "BSD-3-Clause" ]
null
null
null
tests/test_cookiecutter_local_no_input.py
xyb/cookiecutter
449f8771650a3daab7c8163b015576eae26150b8
[ "BSD-3-Clause" ]
null
null
null
tests/test_cookiecutter_local_no_input.py
xyb/cookiecutter
449f8771650a3daab7c8163b015576eae26150b8
[ "BSD-3-Clause" ]
null
null
null
"""Test cookiecutter for work without any input. Tests in this file execute `cookiecutter()` with `no_input=True` flag and verify result with different settings in `cookiecutter.json`. """ import os import textwrap from pathlib import Path import pytest from cookiecutter import main, utils @pytest.fixture(scope='f...
32.791367
83
0.661474
e3db2f6850fd69836c669ce83eeabb0522f8b6a1
40,563
py
Python
python/gui/mapdisplay.py
hmeine/geomap
66463aaad5ff9132b017cd019cc428a910590334
[ "MIT" ]
5
2016-11-29T03:13:32.000Z
2021-12-02T03:11:19.000Z
python/gui/mapdisplay.py
hmeine/geomap
66463aaad5ff9132b017cd019cc428a910590334
[ "MIT" ]
7
2018-08-15T14:26:37.000Z
2019-03-27T10:03:15.000Z
python/gui/mapdisplay.py
hmeine/geomap
66463aaad5ff9132b017cd019cc428a910590334
[ "MIT" ]
2
2018-08-27T12:41:05.000Z
2021-03-15T12:45:03.000Z
########################################################################## # # Copyright 2007-2019 by Hans Meine # # 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 w...
37.662953
142
0.574169
53887c1703d759be04a98f9b56c087ce0541d267
4,269
py
Python
followers_3level.py
Ghayasuddin/3-Level-Twitter-Data
18729d1858af91ed0686211bb3913b747cf70dab
[ "MIT" ]
null
null
null
followers_3level.py
Ghayasuddin/3-Level-Twitter-Data
18729d1858af91ed0686211bb3913b747cf70dab
[ "MIT" ]
null
null
null
followers_3level.py
Ghayasuddin/3-Level-Twitter-Data
18729d1858af91ed0686211bb3913b747cf70dab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Nov 9 15:21:36 2019 @author: Ghayasuddin Adam """ # importing libraries import json import logging import tweepy from tweepy import OAuthHandler import os import time try: if not os.path.exists('./followers/'): os.makedirs('./followers/') exce...
31.389706
111
0.575779
2df8ff3a03541035e6e8bf6fd5caab151cfdd372
126
py
Python
scripts/build_screen.py
1byte2bytes/Sydney.framework
f2f390ba778397c04c168fe3072eceb8c04278a0
[ "MIT" ]
null
null
null
scripts/build_screen.py
1byte2bytes/Sydney.framework
f2f390ba778397c04c168fe3072eceb8c04278a0
[ "MIT" ]
null
null
null
scripts/build_screen.py
1byte2bytes/Sydney.framework
f2f390ba778397c04c168fe3072eceb8c04278a0
[ "MIT" ]
null
null
null
# Copyright (c) Sydney Erickson 2017 import buildlib import buildsettings buildlib.build_configure("screen-4.6.2.tar.gz", "")
25.2
51
0.777778
276b830855ab02567b729f7b4f4282cc82c0bae3
8,729
py
Python
benchexec/test_tool_info.py
xvitovs1/benchexec
ad855061eea7847004703a031a16e8ce25d38cb5
[ "Apache-2.0" ]
2
2019-01-01T17:36:34.000Z
2019-04-05T06:19:56.000Z
benchexec/test_tool_info.py
xvitovs1/benchexec
ad855061eea7847004703a031a16e8ce25d38cb5
[ "Apache-2.0" ]
null
null
null
benchexec/test_tool_info.py
xvitovs1/benchexec
ad855061eea7847004703a031a16e8ce25d38cb5
[ "Apache-2.0" ]
null
null
null
# BenchExec is a framework for reliable benchmarking. # This file is part of BenchExec. # # Copyright (C) 2007-2015 Dirk Beyer # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the Lic...
40.412037
129
0.668691
e6e8ea9d5aeeb031237c5787a90189a2e328975d
1,180
py
Python
FileHandler/views.py
PineappleIOnic/NeonNetwork_Public
1868341ab5334e0966ce5c8a49cfbd272e88c1cf
[ "MIT" ]
null
null
null
FileHandler/views.py
PineappleIOnic/NeonNetwork_Public
1868341ab5334e0966ce5c8a49cfbd272e88c1cf
[ "MIT" ]
2
2019-08-30T12:37:43.000Z
2019-08-30T12:40:46.000Z
FileHandler/views.py
PineappleIOnic/NeonNetwork_Public
1868341ab5334e0966ce5c8a49cfbd272e88c1cf
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.template import RequestContext from django.http import HttpResponseRedirect from django.urls import reverse from users.models import CustomUser from FileHandler.forms import DocumentForm from django.contrib.auth.decorators import login_required import os def _delete_f...
30.25641
57
0.668644
caaa860ac5c9dab7ea458fb692f61bdd74f0fb56
2,073
py
Python
docs/source/conf.py
my-HenryS/pdc
132d1f5a270769cd83529f719f6ab56bb3facbcb
[ "BSD-3-Clause-LBNL" ]
null
null
null
docs/source/conf.py
my-HenryS/pdc
132d1f5a270769cd83529f719f6ab56bb3facbcb
[ "BSD-3-Clause-LBNL" ]
null
null
null
docs/source/conf.py
my-HenryS/pdc
132d1f5a270769cd83529f719f6ab56bb3facbcb
[ "BSD-3-Clause-LBNL" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
39.113208
159
0.676797
0a349354975c859a28895ca27ff8c48be5b25fa3
1,112
py
Python
app/python-soccer-dao/src/dataset_generator.py
GabriSartor/soccer-beat-the-machine
464de23bf6cf9c30b60a71ae8f0c3305645d40fd
[ "MIT" ]
null
null
null
app/python-soccer-dao/src/dataset_generator.py
GabriSartor/soccer-beat-the-machine
464de23bf6cf9c30b60a71ae8f0c3305645d40fd
[ "MIT" ]
null
null
null
app/python-soccer-dao/src/dataset_generator.py
GabriSartor/soccer-beat-the-machine
464de23bf6cf9c30b60a71ae8f0c3305645d40fd
[ "MIT" ]
null
null
null
import configparser import os import time import sys import json from datetime import date, timedelta from pg_dao import pgDAO def initPGConn(config): print("Instantiating PostgreSQL DAO") dao = pgDAO() print("Setting psycopg2 connection options") dao.config(config) print("Creating DB connection ...
25.860465
80
0.646583
fc4792e61045b1f2c2682d6836275db93194f4c5
24,351
py
Python
ruzzle.py
davisp/ruzzle-solver
12bf9314b5f5d45e52c179181172eaf09a171836
[ "MIT" ]
null
null
null
ruzzle.py
davisp/ruzzle-solver
12bf9314b5f5d45e52c179181172eaf09a171836
[ "MIT" ]
null
null
null
ruzzle.py
davisp/ruzzle-solver
12bf9314b5f5d45e52c179181172eaf09a171836
[ "MIT" ]
null
null
null
#!/usr/bin/env python import threading import time import cv2 import numpy as np import pytesseract OCR_SIZE = (500, 500) TESSERACT_CONFIG="-c tessedit_char_whitelist=ABCDEFGHIJKLMNOPQRSTUVWXYZ" DEBUG = 0 class BoardExtractor(object): def __init__(self, frame): # Constants self.shape = frame.sh...
32.12533
111
0.499692
74117b7c0dbd3ed1fa38973d2baca9b09092dd29
3,594
py
Python
examples/example_cubes_workchain.py
eimrek/aiida-gaussian
9fd5b934ee00eaf029f102acfe6b28a21c0c9f2f
[ "MIT" ]
3
2020-07-09T19:18:12.000Z
2021-02-08T06:51:02.000Z
examples/example_cubes_workchain.py
eimrek/aiida-gaussian
9fd5b934ee00eaf029f102acfe6b28a21c0c9f2f
[ "MIT" ]
3
2020-07-17T11:52:34.000Z
2022-02-15T07:39:25.000Z
examples/example_cubes_workchain.py
eimrek/aiida-gaussian
9fd5b934ee00eaf029f102acfe6b28a21c0c9f2f
[ "MIT" ]
1
2020-07-16T06:20:22.000Z
2020-07-16T06:20:22.000Z
# -*- coding: utf-8 -*- # pylint: disable=invalid-name """ Run the Gaussian cubes workchain """ from __future__ import print_function from __future__ import absolute_import import ase.io import numpy as np import sys import click import matplotlib.pyplot as plt from aiida.engine import run, run_get_node from aiida....
29.459016
80
0.617696
f896e6a5ed7e80cef31f6e9e701401c9453b74e1
891
py
Python
scripts/rendering.py
mattiastofte/nightfall
dc289f09d2a34d3dea243116cceb24df5e2f0779
[ "MIT" ]
null
null
null
scripts/rendering.py
mattiastofte/nightfall
dc289f09d2a34d3dea243116cceb24df5e2f0779
[ "MIT" ]
null
null
null
scripts/rendering.py
mattiastofte/nightfall
dc289f09d2a34d3dea243116cceb24df5e2f0779
[ "MIT" ]
1
2021-01-15T19:09:02.000Z
2021-01-15T19:09:02.000Z
import os import math import pygame from pygame.locals import * import random from pathlib import Path # COLORS BLACK = (0, 0, 0) WHITE = (255, 255, 255) # VARAIBLES camera = [0,0] camera_pos = [0,400] # FUNCTIONS def Update_Camera_Pos(pos): camera_pos[0] = pos[0] camera_pos[1] = pos[1] Floor_Camera() d...
20.72093
98
0.653199
2d17d1cf3c7633f3416553e0175eb72bd4b7a08c
245
py
Python
conan_example_project/c/conanfile.py
disroop/mumoco
befa7f1c83c3880be6696f96b5cdb9b094b1a8cb
[ "MIT" ]
3
2021-05-29T23:26:48.000Z
2022-01-12T16:20:47.000Z
conan_example_project/c/conanfile.py
disroop/mumoco
befa7f1c83c3880be6696f96b5cdb9b094b1a8cb
[ "MIT" ]
72
2021-05-26T19:04:40.000Z
2022-03-31T17:18:00.000Z
conan_example_project/c/conanfile.py
disroop/mumoco
befa7f1c83c3880be6696f96b5cdb9b094b1a8cb
[ "MIT" ]
1
2021-05-30T15:34:40.000Z
2021-05-30T15:34:40.000Z
from conans import CMake, ConanFile, tools class CConan(ConanFile): name = "democ" python_requires = "disroopbase/0.1@disroop/development" python_requires_extend = "disroopbase.Base" requires = "demob/0.1@disroop/development"
24.5
59
0.734694
7d752bed109a64440e1f920d80776c8f517fd525
754
py
Python
external/openCrashedTempFile.py
aaronfang/small-Scripts
890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d
[ "MIT" ]
1
2018-03-08T16:34:00.000Z
2018-03-08T16:34:00.000Z
external/openCrashedTempFile.py
aaronfang/personal_scripts
890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d
[ "MIT" ]
null
null
null
external/openCrashedTempFile.py
aaronfang/personal_scripts
890b10ab19fa9cdf2415aaf2dc08b81cc64fc79d
[ "MIT" ]
null
null
null
from pymel.core import * import maya.cmds as mc import os,glob class FindFileError(Exception):pass # find the latest ma temp_dir = os.environ.get('temp') latest_ma = str() latest_time = long(0) for f in glob.glob(temp_dir+r'\*.ma'): f_t = long(os.stat(f).st_ctime) if latest_time < f_t: latest_time,lat...
27.925926
151
0.66313
035ab36ad8ada2b29b11d3569b27ad05de286350
6,195
py
Python
tencentcloud/cls/v20201016/errorcodes.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
null
null
null
tencentcloud/cls/v20201016/errorcodes.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
null
null
null
tencentcloud/cls/v20201016/errorcodes.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
26.361702
85
0.83293