hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
d8bf094e28fe8390c3d84fdfd1c20be429c49d9e
98
py
Python
enthought/envisage/ui/action/action_set.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/envisage/ui/action/action_set.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/envisage/ui/action/action_set.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from envisage.ui.action.action_set import *
24.5
43
0.836735
d8bf5ee917ae885bfd0bb8ccd709db9a3391256d
7,353
py
Python
pypesto/objective/history.py
LukasSp/pyPESTO
f4260ff6cacce982bb25fe104e04fb761efdf0ec
[ "BSD-3-Clause" ]
null
null
null
pypesto/objective/history.py
LukasSp/pyPESTO
f4260ff6cacce982bb25fe104e04fb761efdf0ec
[ "BSD-3-Clause" ]
null
null
null
pypesto/objective/history.py
LukasSp/pyPESTO
f4260ff6cacce982bb25fe104e04fb761efdf0ec
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pandas as pd import time import os from .constants import MODE_FUN, MODE_RES, FVAL, GRAD, HESS, RES, SRES from .util import res_to_chi2, sres_to_schi2 from .options import ObjectiveOptions
29.412
78
0.543996
d8bfa4f07996ea7ea34f5cb3804de0e043161860
1,667
py
Python
Preprocess.py
yuchenmo/SceneCompletion
1fe9d208025ee5d75a05cb7392f38d26b4fc32a4
[ "MIT" ]
1
2020-07-14T13:52:45.000Z
2020-07-14T13:52:45.000Z
Preprocess.py
yuchenmo/SceneCompletion
1fe9d208025ee5d75a05cb7392f38d26b4fc32a4
[ "MIT" ]
null
null
null
Preprocess.py
yuchenmo/SceneCompletion
1fe9d208025ee5d75a05cb7392f38d26b4fc32a4
[ "MIT" ]
null
null
null
import numpy as np import os import os.path as op import cv2 from tqdm import tqdm import multiprocessing from FeatureExtractor import get_gist_C_implementation from utils import ensure_dir, info input_dir = "./dataset/raw_image" catalog = {} paths = [] feats = [] for (root, dirs, files) in os.walk(input_dir): fo...
28.741379
103
0.666467
d8c0ca9e336b129f3d4a5c72ff83a6eef593b36e
78
py
Python
iic/archs/__init__.py
felizang/IIC-pytorch3
c16928fd497089b3776c7dc3a2ac89b863314a62
[ "MIT" ]
1
2020-09-18T23:37:58.000Z
2020-09-18T23:37:58.000Z
iic/archs/__init__.py
felizang/IIC-pytorch3
c16928fd497089b3776c7dc3a2ac89b863314a62
[ "MIT" ]
null
null
null
iic/archs/__init__.py
felizang/IIC-pytorch3
c16928fd497089b3776c7dc3a2ac89b863314a62
[ "MIT" ]
null
null
null
from .cluster import * # from .segmentation import * # from .semisup import *
19.5
29
0.717949
d8c0e04d3ec6f09aec71072718afd9ee3c2cd73d
1,729
py
Python
ExtraCode/file2speech/file2speech.py
Codingmace/JARVIS
826d8eeaac9472511ffe5cae6f6924aa041cc723
[ "MIT" ]
1
2021-02-06T13:08:37.000Z
2021-02-06T13:08:37.000Z
ExtraCode/file2speech/file2speech.py
Codingmace/JARVIS
826d8eeaac9472511ffe5cae6f6924aa041cc723
[ "MIT" ]
null
null
null
ExtraCode/file2speech/file2speech.py
Codingmace/JARVIS
826d8eeaac9472511ffe5cae6f6924aa041cc723
[ "MIT" ]
null
null
null
from gtts import gTTS # convert text-to-speech import PyPDF2 # convert pdf-to-text from PIL import Image # process images import pytesseract # convert image to text import os # play audio file
32.018519
89
0.665124
d8c12a666e4427f212c22ec263167bf3dc9fbc7d
6,105
py
Python
python/treetagger-python/treetagger3.py
semplea/characters-meta
bf5a066b203648fec8658a76b79ddb3e5159b1ae
[ "MIT" ]
null
null
null
python/treetagger-python/treetagger3.py
semplea/characters-meta
bf5a066b203648fec8658a76b79ddb3e5159b1ae
[ "MIT" ]
null
null
null
python/treetagger-python/treetagger3.py
semplea/characters-meta
bf5a066b203648fec8658a76b79ddb3e5159b1ae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Natural Language Toolkit: Interface to the TreeTagger POS-tagger # # Copyright (C) Mirko Otto # Author: Mirko Otto <dropsy@gmail.com> """ A Python module for interfacing with the Treetagger by Helmut Schmid. """ import os from subprocess import Popen, PIPE from nltk.internals import find_bi...
35.911765
163
0.573792
d8c2c473329ee34a8c2d15d5bf24c94e18b5f1c1
751
py
Python
StickyDJ-Bot/src/util/configmaker.py
JCab09/StickyDJ-Bot
feaf2229a6729be6ad022f9105da19192e3a91d3
[ "WTFPL" ]
null
null
null
StickyDJ-Bot/src/util/configmaker.py
JCab09/StickyDJ-Bot
feaf2229a6729be6ad022f9105da19192e3a91d3
[ "WTFPL" ]
null
null
null
StickyDJ-Bot/src/util/configmaker.py
JCab09/StickyDJ-Bot
feaf2229a6729be6ad022f9105da19192e3a91d3
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 """ This class uses the yaml-parser in order to create the apropriate config-dictionary for the client who requested it Author: Jason Cabezuela """ from src.util.parser.yaml_parser import yaml_parser import string def getConfig(filepath, type = '.yaml', context = None): """PLACEHOLDER ...
24.225806
66
0.647137
d8c3cd712d592f39d12428d51a6c41a7fc38afb8
9,316
py
Python
qurkexp/join/pair-results.py
marcua/qurk_experiments
453c207ff50e730aefb6e1118e0f93e33babdb0b
[ "BSD-3-Clause" ]
1
2015-09-30T00:09:06.000Z
2015-09-30T00:09:06.000Z
qurkexp/join/pair-results.py
marcua/qurk_experiments
453c207ff50e730aefb6e1118e0f93e33babdb0b
[ "BSD-3-Clause" ]
null
null
null
qurkexp/join/pair-results.py
marcua/qurk_experiments
453c207ff50e730aefb6e1118e0f93e33babdb0b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys, os ROOT = os.path.abspath('%s/../..' % os.path.abspath(os.path.dirname(__file__))) sys.path.append(ROOT) os.environ['DJANGO_SETTINGS_MODULE'] = 'qurkexp.settings' from django.core.management import setup_environ from django.conf import settings from qurkexp.join.models import * from q...
46.348259
167
0.584908
d8c48b7d57359870b490a90227e4ef21b9bcd088
1,384
py
Python
exchange_plugin/consumer.py
FastyBird/application-exchange
66fedb46b684e5a2fa29e6d654cf7fb9df2b5ee5
[ "Apache-2.0" ]
null
null
null
exchange_plugin/consumer.py
FastyBird/application-exchange
66fedb46b684e5a2fa29e6d654cf7fb9df2b5ee5
[ "Apache-2.0" ]
null
null
null
exchange_plugin/consumer.py
FastyBird/application-exchange
66fedb46b684e5a2fa29e6d654cf7fb9df2b5ee5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Copyright 2021. FastyBird s.r.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 re...
29.446809
78
0.689306
d8c54062ff8343ff9ddf5caf6e861fe863f75af6
8,057
py
Python
plasmapy/utils/tests/test_checks.py
ludoro/PlasmaPy
69712cb40b8b588400301edfd6925d41d2f13eac
[ "BSD-2-Clause-Patent", "BSD-3-Clause" ]
1
2020-04-28T23:04:41.000Z
2020-04-28T23:04:41.000Z
plasmapy/utils/tests/test_checks.py
ludoro/PlasmaPy
69712cb40b8b588400301edfd6925d41d2f13eac
[ "BSD-2-Clause-Patent", "BSD-3-Clause" ]
null
null
null
plasmapy/utils/tests/test_checks.py
ludoro/PlasmaPy
69712cb40b8b588400301edfd6925d41d2f13eac
[ "BSD-2-Clause-Patent", "BSD-3-Clause" ]
null
null
null
"""Tests for methods relating to quantities.""" import numpy as np from astropy import units as u import pytest from ...constants import c from ..checks import ( _check_quantity, _check_relativistic, check_relativistic, check_quantity ) # (value, units, error) quantity_error_examples_default = [ # excep...
26.767442
79
0.655827
d8c60cdc79b62a601b3d9d8f934d4d82ef87f25f
807
py
Python
strategy/IStrategy.py
chung-ejy/longshot
c9ff1a6586546b496ed6ba2f0b43ff9cd68fa15d
[ "MIT" ]
null
null
null
strategy/IStrategy.py
chung-ejy/longshot
c9ff1a6586546b496ed6ba2f0b43ff9cd68fa15d
[ "MIT" ]
null
null
null
strategy/IStrategy.py
chung-ejy/longshot
c9ff1a6586546b496ed6ba2f0b43ff9cd68fa15d
[ "MIT" ]
1
2021-08-05T02:12:51.000Z
2021-08-05T02:12:51.000Z
from abc import ABCMeta, abstractmethod ## sources https://realpython.com/python-interface/ ## https://docs.python.org/3/library/abc.html
40.35
104
0.696406
d8c72861cbc53d6e825c48466db5462e47aed39b
10,511
py
Python
symbol_tables/LinearProbingHashST.py
okebinda/algorithms.python
b62d69a09fac4ca4e4b02ba99e4aae986e766e89
[ "MIT" ]
null
null
null
symbol_tables/LinearProbingHashST.py
okebinda/algorithms.python
b62d69a09fac4ca4e4b02ba99e4aae986e766e89
[ "MIT" ]
null
null
null
symbol_tables/LinearProbingHashST.py
okebinda/algorithms.python
b62d69a09fac4ca4e4b02ba99e4aae986e766e89
[ "MIT" ]
null
null
null
"""Symbol Table: Linear Probing Hash""" from collections.abc import MutableMapping from random import randrange if __name__ == "__main__": import unittest unittest.main()
31.851515
79
0.533727
d8c91d258814ef08bbfd7a0d619bcb60180cddf1
77
py
Python
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/wsgi.py
YE-Kits/cookiecutter-falcon
e7963cb6028dcefa18c82d473773162d57549d49
[ "MIT" ]
1
2020-06-13T09:15:31.000Z
2020-06-13T09:15:31.000Z
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/wsgi.py
YE-Kits/cookiecutter-falcon
e7963cb6028dcefa18c82d473773162d57549d49
[ "MIT" ]
null
null
null
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/wsgi.py
YE-Kits/cookiecutter-falcon
e7963cb6028dcefa18c82d473773162d57549d49
[ "MIT" ]
null
null
null
from {{cookiecutter.project_name}}.main import create_app app = create_app()
25.666667
57
0.792208
d8ca50d05d227a6bd61f471eef16a683056e344e
380
py
Python
test/test_sshtype.py
stribika/sshlabs
421e62433aab0e21456254a0b2c5feb830d0c77c
[ "Unlicense" ]
76
2015-01-24T19:18:31.000Z
2021-03-11T11:17:14.000Z
test/test_sshtype.py
stribika/sshlabs
421e62433aab0e21456254a0b2c5feb830d0c77c
[ "Unlicense" ]
8
2015-01-24T18:59:57.000Z
2017-06-07T13:07:34.000Z
test/test_sshtype.py
stribika/sshlabs
421e62433aab0e21456254a0b2c5feb830d0c77c
[ "Unlicense" ]
21
2015-01-24T18:56:52.000Z
2021-03-10T14:33:14.000Z
import sys import unittest sys.path.append("../main") from sshtype import *
23.75
78
0.665789
d8cba97cb8816c7aeda1bf733a60793f225c76f2
392
py
Python
eventlet_raft/tests/test_client.py
jason-ni/eventlet-raft
12d97d7b90f4ecd4849ecf5ca3e36dc3879e1d2b
[ "Apache-2.0" ]
3
2015-05-22T05:30:29.000Z
2016-01-06T10:14:31.000Z
eventlet_raft/tests/test_client.py
jason-ni/eventlet-raft
12d97d7b90f4ecd4849ecf5ca3e36dc3879e1d2b
[ "Apache-2.0" ]
null
null
null
eventlet_raft/tests/test_client.py
jason-ni/eventlet-raft
12d97d7b90f4ecd4849ecf5ca3e36dc3879e1d2b
[ "Apache-2.0" ]
null
null
null
from glob import glob import os from unittest import TestCase from nose.plugins.attrib import attr from ..client import RaftClient
19.6
48
0.683673
d8ccfdce9caee10035d22fbe4da0b0cf737f602c
1,852
py
Python
roc-prepare3.py
catherinekerr/ip-ensemble
a1ddcf0260d5a210dd55ae5faf015f3a8792c812
[ "Apache-2.0" ]
1
2020-07-25T10:55:21.000Z
2020-07-25T10:55:21.000Z
roc-prepare3.py
jmarecek/ip-ensemble
9a867373ea1c99c746debdc9d7aa3a76e00b2005
[ "Apache-2.0" ]
1
2019-10-16T20:18:26.000Z
2019-10-16T20:18:26.000Z
roc-prepare3.py
catherinekerr/ip-ensemble
a1ddcf0260d5a210dd55ae5faf015f3a8792c812
[ "Apache-2.0" ]
null
null
null
""" Construct the ROC plot. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license in the LICENSE file in the root directory of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. Any modifications or derivative works of this code must retain this copyright ...
30.360656
146
0.736501
d8cdcb34f2de4b4fe253e0157e6e96be141b7e33
3,478
py
Python
gbmplus/api/orders.py
markzuckerbergas/gbmplus-api-python
befed7adca61a970eeaabe8d6144f62fb2b234af
[ "MIT" ]
13
2021-12-20T22:41:49.000Z
2022-03-31T06:40:59.000Z
gbmplus/api/orders.py
markzuckerbergas/gbmplus-api-python
befed7adca61a970eeaabe8d6144f62fb2b234af
[ "MIT" ]
1
2022-01-14T23:49:09.000Z
2022-01-14T23:49:09.000Z
gbmplus/api/orders.py
markzuckerbergas/gbmplus-api-python
befed7adca61a970eeaabe8d6144f62fb2b234af
[ "MIT" ]
null
null
null
from datetime import datetime, timezone from ..exceptions import *
35.489796
127
0.570155
d8ce87361543046b3e946a41e20d9110add3b7a8
6,885
py
Python
phipkit/antigen_analysis.py
openvax/phipkit
267a9b0bb3b79b3ff416e07ce390e43b84a02be4
[ "Apache-2.0" ]
null
null
null
phipkit/antigen_analysis.py
openvax/phipkit
267a9b0bb3b79b3ff416e07ce390e43b84a02be4
[ "Apache-2.0" ]
null
null
null
phipkit/antigen_analysis.py
openvax/phipkit
267a9b0bb3b79b3ff416e07ce390e43b84a02be4
[ "Apache-2.0" ]
null
null
null
import collections import numpy import pandas import scipy from tqdm import tqdm from .common import say, reconstruct_antigen_sequences def compute_coverage(antigen, sequence, blast_df): """ Extract blast hits for some clones for a single antigen into a DataFrame indicating whether each clone aligns at...
32.942584
91
0.590704
d8cfe5c85d4c780f5fe5a04c1b84c01f4f74a9e3
1,818
py
Python
go/contacts/import_handlers.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/contacts/import_handlers.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/contacts/import_handlers.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
from go.contacts import tasks, utils from go.contacts.parsers import ContactFileParser
33.054545
78
0.735424
d8d0dac3189f36858eaf069e98424b57b51cf966
6,542
py
Python
model.py
cynthia3r/flower_image_classifier
bac89f88410642d164030fd60436597ba5270f20
[ "MIT" ]
1
2021-08-10T23:27:55.000Z
2021-08-10T23:27:55.000Z
model.py
cynthia3r/flower_image_classifier
bac89f88410642d164030fd60436597ba5270f20
[ "MIT" ]
null
null
null
model.py
cynthia3r/flower_image_classifier
bac89f88410642d164030fd60436597ba5270f20
[ "MIT" ]
null
null
null
import torch from torchvision import models import time ''' Functions related to training model ''' # TODO COMPLETED: Write a function that loads a checkpoint and rebuilds the model # Loading checkpoints (The function successfully loads a checkpoint and rebuilds the model) # Define Validation function for the mod...
37.382857
120
0.641394
d8d163fba6f3d79bbb87bf34a4ae8f44106e768f
324
py
Python
Python3/Tornado/apps/pg/PG_Deposit/test/test_request.py
youngqqcn/QBlockChainNotes
85122049024dc5555705bf016312491a51966621
[ "MIT" ]
24
2018-11-01T03:36:43.000Z
2022-03-28T08:20:30.000Z
Python3/Tornado/apps/pg/PG_Deposit/test/test_request.py
songning4/QBlockChainNotes
d65ede073f5a20f728f41cc6850409693820cdb1
[ "MIT" ]
57
2019-12-04T08:26:47.000Z
2022-03-08T07:35:15.000Z
Python3/Tornado/apps/pg/PG_Deposit/test/test_request.py
youngqqcn/QBlockChainNotes
85122049024dc5555705bf016312491a51966621
[ "MIT" ]
11
2019-01-04T08:41:57.000Z
2022-03-16T03:51:36.000Z
#!coding:utf8 #author:yqq #date:2020/8/14 0014 19:26 #description: import requests if __name__ == '__main__': main()
12.96
75
0.595679
d8d4111b5c5d9efbe753fdccc4f3bae97104b8fb
401
py
Python
test_project/test_project/settings_pytest.py
mpasternak/django-reciprocity
2bffe1ae6025675ae96bb9420e1f69cf48b414c6
[ "MIT" ]
1
2019-12-09T11:23:51.000Z
2019-12-09T11:23:51.000Z
test_project/test_project/settings_pytest.py
mpasternak/django-reciprocity
2bffe1ae6025675ae96bb9420e1f69cf48b414c6
[ "MIT" ]
7
2019-03-01T18:13:40.000Z
2022-02-12T14:44:51.000Z
test_project/test_project/settings_pytest.py
mpasternak/django-reciprocity
2bffe1ae6025675ae96bb9420e1f69cf48b414c6
[ "MIT" ]
null
null
null
# Settings for testing with included docker-compose and pytest from .settings import * # noqa # Subscribe from remote selenium container to docker-compose nginx container NGINX_PUSH_STREAM_PUB_HOST = "localhost" NGINX_PUSH_STREAM_PUB_PORT = "9080" # Subscribe from local TravisCI machine to docker-compose nginx cont...
33.416667
76
0.820449
d8d623e88b523d074fcb064df7ff09e465d2847b
1,823
py
Python
BrainML/optimizer.py
bogdan124/DeepML
ad5e904cc9fcd3c499bbca3538525d83fde003f5
[ "Apache-2.0" ]
null
null
null
BrainML/optimizer.py
bogdan124/DeepML
ad5e904cc9fcd3c499bbca3538525d83fde003f5
[ "Apache-2.0" ]
null
null
null
BrainML/optimizer.py
bogdan124/DeepML
ad5e904cc9fcd3c499bbca3538525d83fde003f5
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf def Adam(learning_rate=0.001,beta_1=0.9,beta_2=0.999,epsilon=1e-07,amsgrad=False,name='Adam'): """ Here you have the Adam Optimizer """ adam=tf.compat.v1.train.AdamOptimizer(learning_rate, beta_1, beta_2, epsilon, amsgrad,name ) return adam def Adadelta(learning_rate=0...
26.808824
109
0.659353
d8d75a885ccdd78207efcc9758ec253f7980e674
2,805
py
Python
tests/build_test_output.py
john-grando/pyExpandObjects
c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4
[ "BSD-3-Clause" ]
null
null
null
tests/build_test_output.py
john-grando/pyExpandObjects
c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4
[ "BSD-3-Clause" ]
1
2021-02-03T01:56:56.000Z
2021-02-03T01:56:56.000Z
tests/build_test_output.py
john-grando/pyExpandObjects
c08b1d1bc45684bc71c0f49b4d2f22c707cd4aa4
[ "BSD-3-Clause" ]
1
2022-01-11T18:31:05.000Z
2022-01-11T18:31:05.000Z
import os import pandas as pd base_project_path = os.path.dirname( os.path.dirname( os.path.abspath(__file__) ) ) if __name__ == "__main__": main()
32.241379
102
0.552941
d8d857f5c61e30e7fbb6c701c98c28a407e889a3
2,184
py
Python
UnitGenerServer.py
SachithS/UnitGener
165912afd050e6bc20ac988291c3311e4d351c8f
[ "MIT" ]
null
null
null
UnitGenerServer.py
SachithS/UnitGener
165912afd050e6bc20ac988291c3311e4d351c8f
[ "MIT" ]
null
null
null
UnitGenerServer.py
SachithS/UnitGener
165912afd050e6bc20ac988291c3311e4d351c8f
[ "MIT" ]
null
null
null
""" UnitGenerCore.py - Server of the UnitGener This file is responsible for creating the routes and the server of the UnitGener core module. Will create all the needed routes with params and initiate the server. @author Sachith Senarathne @version 1.0 @maintainer Sachith Senarathne @copyright ...
28.736842
96
0.742216
d8d8d2b359e3e55295ef066e6f3edd2c7fb3f2d5
288
py
Python
setup.py
Califrais/lights
cb4e3a0cbe64606f071ed02c06a9fc5db2681c1d
[ "MIT" ]
6
2021-01-15T14:23:33.000Z
2022-02-01T12:25:24.000Z
setup.py
Califrais/lights
cb4e3a0cbe64606f071ed02c06a9fc5db2681c1d
[ "MIT" ]
11
2020-12-18T13:16:34.000Z
2021-11-02T08:27:02.000Z
setup.py
Califrais/lights
cb4e3a0cbe64606f071ed02c06a9fc5db2681c1d
[ "MIT" ]
1
2021-08-12T23:07:07.000Z
2021-08-12T23:07:07.000Z
from setuptools import setup setup( name='lights', version='0.1', author="Van-Tuan Nguyen", description="ligths is a generalized joint model for high-dimensional multivariate longitudinal data and censored durations", url="https://github.com/Califrais/lights", )
28.8
129
0.71875
d8d9c33824013177ce2cb42af02ae9ad0e0bb0ac
443
py
Python
Task1F.py
Nikko10Have/CompLent
c701db38ebd014f7a43a91b749985468307da855
[ "MIT" ]
null
null
null
Task1F.py
Nikko10Have/CompLent
c701db38ebd014f7a43a91b749985468307da855
[ "MIT" ]
null
null
null
Task1F.py
Nikko10Have/CompLent
c701db38ebd014f7a43a91b749985468307da855
[ "MIT" ]
null
null
null
from floodsystem.stationdata import build_station_list from floodsystem.station import inconsistent_typical_range_stations from floodsystem.station import MonitoringStation # List of Stations stations = build_station_list() incon = inconsistent_typical_range_stations(stations) # Get names of inconsistent stations inc...
26.058824
67
0.832957
d8da595c175dc5992171e47a8fd68be6e3fb96a1
6,909
py
Python
pycg/machinery/imports.py
WenJinfeng/PyCG
b45e8e04fe697d8301cf27222a8f37646d69f168
[ "Apache-2.0" ]
121
2020-12-16T20:31:37.000Z
2022-03-21T20:32:43.000Z
pycg/machinery/imports.py
WenJinfeng/PyCG
b45e8e04fe697d8301cf27222a8f37646d69f168
[ "Apache-2.0" ]
24
2021-03-13T00:04:00.000Z
2022-03-21T17:28:11.000Z
pycg/machinery/imports.py
WenJinfeng/PyCG
b45e8e04fe697d8301cf27222a8f37646d69f168
[ "Apache-2.0" ]
19
2021-03-23T10:58:47.000Z
2022-03-24T19:46:50.000Z
# # Copyright (c) 2020 Vitalis Salis. # # 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, Vers...
31.262443
90
0.625561
d8dd54809c21d8cf9620d2ba180c2c372e914043
17,168
py
Python
aquarius/events/processors.py
oceanprotocol/provider-backend
f9e36e3d6b880de548c6b92c38d10d76daf369ba
[ "Apache-2.0" ]
null
null
null
aquarius/events/processors.py
oceanprotocol/provider-backend
f9e36e3d6b880de548c6b92c38d10d76daf369ba
[ "Apache-2.0" ]
1
2018-08-15T09:57:01.000Z
2018-08-15T09:57:01.000Z
aquarius/events/processors.py
oceanprotocol/provider-backend
f9e36e3d6b880de548c6b92c38d10d76daf369ba
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021 Ocean Protocol Foundation # SPDX-License-Identifier: Apache-2.0 # import copy import json import logging import os from abc import ABC from datetime import datetime from jsonsempai import magic # noqa: F401 from aquarius.ddo_checker.shacl_checker import validate_dict from aquarius.events.constants...
33.795276
119
0.603507
d8dd5a05bb62a31123a3f8b387779414b5fe1e30
822
py
Python
examples/mocsar_pl_cfg_human.py
cogitoergoread/muszi-macrohard.hu
e9bbd36b789e670f96622a3a2ba8327f0d897561
[ "MIT" ]
1
2021-05-27T03:40:37.000Z
2021-05-27T03:40:37.000Z
examples/mocsar_pl_cfg_human.py
cogitoergoread/muszi-macrohard.hu
e9bbd36b789e670f96622a3a2ba8327f0d897561
[ "MIT" ]
null
null
null
examples/mocsar_pl_cfg_human.py
cogitoergoread/muszi-macrohard.hu
e9bbd36b789e670f96622a3a2ba8327f0d897561
[ "MIT" ]
1
2022-02-24T11:25:22.000Z
2022-02-24T11:25:22.000Z
""" A toy example of playing against defined set of bots on Mocsr Using env "mocsar"-cfg Using 'human_mode' """ import rlcard3 # Make environment and enable human mode env = rlcard3.make('mocsar-cfg', config={'human_mode': True}) # Register agents agents = {"mocsar_random": 2, "mocsar_min": 2} env.model.create_agent...
27.4
62
0.654501
d8e061713db2c288586dc6014b12b5d47b5cd800
66
py
Python
drones/version.py
bugout-dev/drones
9af74215a93e364463b1373e7055735f0eef45b0
[ "Apache-2.0" ]
null
null
null
drones/version.py
bugout-dev/drones
9af74215a93e364463b1373e7055735f0eef45b0
[ "Apache-2.0" ]
5
2021-07-13T19:18:54.000Z
2021-08-25T11:11:17.000Z
drones/version.py
bugout-dev/drones
9af74215a93e364463b1373e7055735f0eef45b0
[ "Apache-2.0" ]
null
null
null
""" Drones library and API version. """ DRONES_VERSION = "0.1.2"
11
31
0.651515
d8e2fd2848561b86ff3b7a6c20a8073c7c4a9cfd
482
py
Python
utils/prepare_bcp.py
smeea/krcg-static
4e496c4ddff875f197be577458434b20b5215e2a
[ "MIT" ]
null
null
null
utils/prepare_bcp.py
smeea/krcg-static
4e496c4ddff875f197be577458434b20b5215e2a
[ "MIT" ]
null
null
null
utils/prepare_bcp.py
smeea/krcg-static
4e496c4ddff875f197be577458434b20b5215e2a
[ "MIT" ]
null
null
null
"""A convenience function to rename BCP images """ import os import re from krcg.parser import _CLAN
26.777778
72
0.564315
d8e36d5aa815a359788bc7a41f7707935bcae369
3,093
py
Python
openpype/hosts/houdini/vendor/husdoutputprocessors/stagingdir_processor.py
jonclothcat/OpenPype
d1208cbebc0a7f378de0062ccd653295c6399195
[ "MIT" ]
87
2021-05-07T08:40:46.000Z
2022-03-19T00:36:25.000Z
openpype/hosts/houdini/vendor/husdoutputprocessors/stagingdir_processor.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
1,019
2021-04-26T06:22:56.000Z
2022-03-31T16:30:43.000Z
openpype/hosts/houdini/vendor/husdoutputprocessors/stagingdir_processor.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
33
2021-04-29T12:35:54.000Z
2022-03-25T14:48:42.000Z
import hou import husdoutputprocessors.base as base import os output_processor = StagingDirOutputProcessor()
33.989011
78
0.634982
d8e38560501df3c2a7e1fcaff55b0d251d89e335
158
py
Python
modules/useless_print.py
ploggingdev/python_learn
0b056c0a57e21d9a0c86eb8bbd6e14b236e4d215
[ "MIT" ]
10
2017-06-23T07:30:52.000Z
2019-09-11T20:14:08.000Z
modules/useless_print.py
ploggingdev/python_learn
0b056c0a57e21d9a0c86eb8bbd6e14b236e4d215
[ "MIT" ]
null
null
null
modules/useless_print.py
ploggingdev/python_learn
0b056c0a57e21d9a0c86eb8bbd6e14b236e4d215
[ "MIT" ]
11
2017-01-12T15:34:17.000Z
2019-07-12T11:16:16.000Z
def useless_print(content): '''Print the argument recieved''' print(content) if __name__ == "__main__": import sys useless_print(sys.argv[1])
22.571429
37
0.677215
d8e3d77e68c95fabda4facfab3e43eb49416a652
923
py
Python
mit_d3m/db.py
micahjsmith/mit-d3m
a8138b2cc6329545bf3204f47cb39fe8faf7a44f
[ "MIT" ]
6
2018-11-26T09:48:49.000Z
2019-06-15T15:49:00.000Z
mit_d3m/db.py
micahjsmith/mit-d3m
a8138b2cc6329545bf3204f47cb39fe8faf7a44f
[ "MIT" ]
12
2019-01-21T19:07:33.000Z
2020-05-24T19:06:37.000Z
mit_d3m/db.py
micahjsmith/mit-d3m
a8138b2cc6329545bf3204f47cb39fe8faf7a44f
[ "MIT" ]
6
2018-11-26T09:48:52.000Z
2020-02-20T11:46:54.000Z
# -*- coding: utf-8 -*- import getpass import json import logging from pymongo import MongoClient LOGGER = logging.getLogger(__name__)
23.075
78
0.633803
d8e3de05ad69c6353ea7726191b1fe77d3b073d2
53,019
py
Python
src/StandAlone/inputs/MPM/Arenisca/Arenisca3/AreniscaTestSuite_PostProc.py
abagusetty/Uintah
fa1bf819664fa6f09c5a7cd076870a40816d35c9
[ "MIT" ]
3
2020-06-10T08:21:31.000Z
2020-06-23T18:33:16.000Z
src/StandAlone/inputs/MPM/Arenisca/Arenisca3/AreniscaTestSuite_PostProc.py
abagusetty/Uintah
fa1bf819664fa6f09c5a7cd076870a40816d35c9
[ "MIT" ]
null
null
null
src/StandAlone/inputs/MPM/Arenisca/Arenisca3/AreniscaTestSuite_PostProc.py
abagusetty/Uintah
fa1bf819664fa6f09c5a7cd076870a40816d35c9
[ "MIT" ]
2
2019-12-30T05:48:30.000Z
2020-02-12T16:24:16.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- import os import math import tempfile import numpy as np import subprocess as sub_proc #Plotting stuff below from matplotlib import rc import matplotlib.pyplot as plt from matplotlib import ticker SHOW_ON_MAKE = False #Useful constants sqrtThree = np.sqrt(3.0) twoTh...
35.607119
178
0.679304
d8e5e5365affa814e680e7a3e759ef346addbf29
5,156
py
Python
camDataSub.py
hodoemelem/A-Rapid-Prototyping-Framework-for-Human-Robot-Interaction
394f72bf894c17bedb5643145b977a3eaffdd5ad
[ "MIT" ]
2
2020-09-14T16:55:50.000Z
2020-09-17T09:51:26.000Z
camDataSub.py
Law101/A-Rapid-Prototyping-Framework-for-Human-Robot-Interaction
27f59601990fa2c48b2a0d1c6527885ebbf79cc3
[ "MIT" ]
null
null
null
camDataSub.py
Law101/A-Rapid-Prototyping-Framework-for-Human-Robot-Interaction
27f59601990fa2c48b2a0d1c6527885ebbf79cc3
[ "MIT" ]
2
2020-08-12T09:14:06.000Z
2020-08-17T19:43:25.000Z
#!~/.virtualenvs/cv420/bin/python # -*- coding: utf-8 -*- """ Author: Henry Ugochukwu Odoemelem Created: 4-May-2020 """ import serial import math from threading import Thread import rospy import time import numpy as np from std_msgs.msg import String ser = serial.Serial('/dev/ttyACM1',9600, timeout=5) # Ti MSP430 ...
30.152047
123
0.526377
d8e6fca1d00b035491b08b64577c6a5b8f8f18d3
850
py
Python
oop-intro/first-oop.py
BicycleWalrus/slop
300f994cb7d7a58a330fdac1afcd36ffd1da80ff
[ "MIT" ]
null
null
null
oop-intro/first-oop.py
BicycleWalrus/slop
300f994cb7d7a58a330fdac1afcd36ffd1da80ff
[ "MIT" ]
null
null
null
oop-intro/first-oop.py
BicycleWalrus/slop
300f994cb7d7a58a330fdac1afcd36ffd1da80ff
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """TPatrick | Alta3 Research Creating a simple dice program utilizing classes.""" from random import randint def main(): """Called at run time""" player1 = Player() player2 = Player() player1.roll() player2.roll() print(f"Player 1 rolled {player1.get_dice()}") ...
20.731707
59
0.590588
d8e7740d5edbf0356e3cb8d4bb1d76a9e629b9f0
513
py
Python
src/__main__.py
bahorn/backup_script
de5809779ddbba8cd4a767f79dfd929848cc2893
[ "MIT" ]
null
null
null
src/__main__.py
bahorn/backup_script
de5809779ddbba8cd4a767f79dfd929848cc2893
[ "MIT" ]
null
null
null
src/__main__.py
bahorn/backup_script
de5809779ddbba8cd4a767f79dfd929848cc2893
[ "MIT" ]
null
null
null
""" A tool to generate scripts using rclone to do backups. Allows some sanity checking over your config, etc. The scripts outputted are meant to be human readable. """ import sys import toml from config import Config from tool import BackupScript def main(args): """ Entry point for the tool """ cfg_...
19.730769
54
0.699805
d8e7ada0250ca8a5791afd83a8d12695f3d73cec
2,496
py
Python
auto_sync.py
AnonyZeus/face-detection
15c4df4f1d7f72b111fab253b29761ce515c1f65
[ "MIT" ]
null
null
null
auto_sync.py
AnonyZeus/face-detection
15c4df4f1d7f72b111fab253b29761ce515c1f65
[ "MIT" ]
null
null
null
auto_sync.py
AnonyZeus/face-detection
15c4df4f1d7f72b111fab253b29761ce515c1f65
[ "MIT" ]
null
null
null
import os import subprocess import argparse import ntpath import shutil from extract_embeddings import extract_data from train_model import train_model # construct the argument parser and parse the arguments ap = argparse.ArgumentParser() ap.add_argument('-p', '--path', required=True, help='path to gui...
32.842105
69
0.632612
d8e9bd22610fd3818aa67bc056c53e3bfa6d9b36
755
py
Python
python.py
Xsmael/blockhain-implementation
984e769c8dadb5c90216ebcf8cd98114a64b8a44
[ "MIT" ]
2
2020-10-23T09:05:39.000Z
2021-12-24T09:46:51.000Z
python.py
Xsmael/blockchain-implementation
984e769c8dadb5c90216ebcf8cd98114a64b8a44
[ "MIT" ]
null
null
null
python.py
Xsmael/blockchain-implementation
984e769c8dadb5c90216ebcf8cd98114a64b8a44
[ "MIT" ]
null
null
null
import json a= [1,2,3,4,5,6,7,8,9,10] print(a) b=[el*2 for el in a] # double everything print(b) print([el*10 for el in a]) # 10X everything print([el for el in a if el%2 ==0]) # filter even nums print([el for el in a if el%2 !=0]) # filter odd nums print([el for el in a if el%5 ==0]) # filter multiples of 5 c=...
19.358974
76
0.598675
d8eaad58d7b1814ad60313792da2ac68313e1f4a
17,355
py
Python
unlock/unlock/unlockvisitor.py
joshwatson/f-ing-around-with-binaryninja
2f7e907952a15305541820ac11ff0a86645c631d
[ "MIT" ]
88
2019-01-13T20:11:13.000Z
2022-02-08T01:13:46.000Z
unlock/unlock/unlockvisitor.py
joshwatson/f-ing-around-with-binaryninja
2f7e907952a15305541820ac11ff0a86645c631d
[ "MIT" ]
4
2019-03-20T03:02:49.000Z
2020-10-31T11:57:56.000Z
unlock/unlock/unlockvisitor.py
joshwatson/f-ing-around-with-binaryninja
2f7e907952a15305541820ac11ff0a86645c631d
[ "MIT" ]
10
2019-04-26T08:59:56.000Z
2020-08-19T03:19:27.000Z
# This script requires python 3 import operator as op import time from functools import partial from queue import Queue from threading import Event from math import floor from binaryninja import ( AnalysisCompletionEvent, Architecture, ArchitectureHook, BackgroundTaskThread, BasicBlock, BinaryD...
36.307531
156
0.587151
d8ebc194794e59dcd8ef162cae6d6b84fa4669ac
763
py
Python
dynamo/api/views.py
rendrom/django-dynamit
4280da60212ffd9ad6a8cb96a7eba0890a98fee5
[ "MIT" ]
3
2015-01-20T18:43:16.000Z
2015-12-09T06:46:55.000Z
dynamo/api/views.py
rendrom/django-dynamit
4280da60212ffd9ad6a8cb96a7eba0890a98fee5
[ "MIT" ]
null
null
null
dynamo/api/views.py
rendrom/django-dynamit
4280da60212ffd9ad6a8cb96a7eba0890a98fee5
[ "MIT" ]
null
null
null
# coding=utf-8 from dynamo.api.serializers import DynamicModelSerializer, DynamicModelFieldSerializer from dynamo.models import DynamicModel, DynamicModelField from rest_framework import viewsets from rest_framework import generics from rest_framework.renderers import TemplateHTMLRenderer, JSONRenderer, HTMLFormRendere...
33.173913
89
0.815203
d8ed26209b16c6c00b3fa2dd0c09b4e95248b9e4
2,610
py
Python
kfusiontables/models.py
kula1922/kfusiontables
149ddaddb95319a237bb94525db17b1b3a5ac66f
[ "BSD-3-Clause" ]
4
2016-04-10T10:27:36.000Z
2018-10-12T13:45:25.000Z
kfusiontables/models.py
kula1922/kfusiontables
149ddaddb95319a237bb94525db17b1b3a5ac66f
[ "BSD-3-Clause" ]
2
2020-06-05T17:30:32.000Z
2021-06-01T21:52:49.000Z
kfusiontables/models.py
kula1922/kfusiontables
149ddaddb95319a237bb94525db17b1b3a5ac66f
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.db.models.signals import post_save from django.utils.translation import ugettext_lazy as _ # class TestModel1(KFTModel): # test_field11 = models.CharField(max_length=255) # test_field12 = models.CharField(max_length=255) #...
27.1875
70
0.64023
d8ef265acf8897e2f70f1e1cd7424d751513cc0c
480
py
Python
cdk/stacks/bucket_stack.py
trdarr/ebooks2
f3aaa7ac90796405f23bdc7c08c3b1d79c03b57c
[ "Apache-2.0" ]
null
null
null
cdk/stacks/bucket_stack.py
trdarr/ebooks2
f3aaa7ac90796405f23bdc7c08c3b1d79c03b57c
[ "Apache-2.0" ]
null
null
null
cdk/stacks/bucket_stack.py
trdarr/ebooks2
f3aaa7ac90796405f23bdc7c08c3b1d79c03b57c
[ "Apache-2.0" ]
null
null
null
from aws_cdk import aws_s3 as s3 from aws_cdk import core
30
66
0.641667
d8f1098b74f0861cbf64404f75ae544f49b9969a
1,617
py
Python
src/products/migrations/0006_ShippableFullName.py
denkasyanov/education-backend
c796b6f2f1cc1cd09f83cab2ca0cc45344906ef5
[ "MIT" ]
151
2020-04-21T09:58:57.000Z
2021-09-12T09:01:21.000Z
src/products/migrations/0006_ShippableFullName.py
tlgtaa/education-backend
86f8af315f9cff2c1fd19406899d593fc0852124
[ "MIT" ]
163
2020-05-29T20:52:00.000Z
2021-09-11T12:44:56.000Z
src/products/migrations/0006_ShippableFullName.py
boochamoocha/education-backend
c6ffb0c00bc066c8f1e0a8c0ffe4d0215c7c416a
[ "MIT" ]
39
2020-04-21T12:28:16.000Z
2021-09-12T15:33:47.000Z
# Generated by Django 2.2.7 on 2019-11-15 21:48 from django.db import migrations, models
39.439024
177
0.622758
d8f21d41b8c07b30108c551d5f9b8476610f53e3
2,286
py
Python
convert_xml_to_xls.py
CharlesBuy/pyxmlspreadsheet
9ac2064c5c44a3800c3ff8892292d12fbd57d27b
[ "MIT" ]
null
null
null
convert_xml_to_xls.py
CharlesBuy/pyxmlspreadsheet
9ac2064c5c44a3800c3ff8892292d12fbd57d27b
[ "MIT" ]
null
null
null
convert_xml_to_xls.py
CharlesBuy/pyxmlspreadsheet
9ac2064c5c44a3800c3ff8892292d12fbd57d27b
[ "MIT" ]
null
null
null
# # - Very simple code to convert from office spreadsheet to xls # # Sneldev.com # import sys import xml.etree.ElementTree as ET import xlwt from dateutil.parser import parse #This Small Class convert a xml cell to a text and a style #as can be put in an xlwt worksheet def convert_xml_spreadsheet_to_xls(in_pat...
26.275862
76
0.701225
d8f42c7c77c2b0e46f931f93315cbe27842772f0
3,226
py
Python
01_tsv_to_csv_clean_fix.py
dmitry-dereshev/IMDb
4e6190c1cc7796cdb93c4d9371489f9456668d6f
[ "MIT" ]
null
null
null
01_tsv_to_csv_clean_fix.py
dmitry-dereshev/IMDb
4e6190c1cc7796cdb93c4d9371489f9456668d6f
[ "MIT" ]
null
null
null
01_tsv_to_csv_clean_fix.py
dmitry-dereshev/IMDb
4e6190c1cc7796cdb93c4d9371489f9456668d6f
[ "MIT" ]
null
null
null
# Part of IMDb project by Dmitry Dereshev. 2019 MIT Licence. # https://github.com/dmitry-dereshev/IMDb # This script looks through a folder to pick up .tsv files, remove '\N', and # convert them to Unicode-compliant .csv files. # Original data from: https://www.imdb.com/interfaces/ import pandas as pd import ...
41.896104
81
0.658091
d8fb49a90f9174322ebd083eba9983eb62d92ca9
5,461
py
Python
beryllia/util.py
examknow/beryllia
7d4bfeabe8864aa6de6afc60a89d43ff8cf150ec
[ "MIT" ]
null
null
null
beryllia/util.py
examknow/beryllia
7d4bfeabe8864aa6de6afc60a89d43ff8cf150ec
[ "MIT" ]
null
null
null
beryllia/util.py
examknow/beryllia
7d4bfeabe8864aa6de6afc60a89d43ff8cf150ec
[ "MIT" ]
null
null
null
import re, traceback from datetime import timedelta from ipaddress import ip_address, IPv4Address, IPv6Address from ipaddress import ip_network, IPv4Network, IPv6Network from typing import List, Optional, Set, Tuple, Union from ircrobots import Server from irctokens import build from ircchallenge import Ch...
30.005495
70
0.607215
d8fc2a47ff67867fbf24de3c6a0989cf0e7d1504
106
py
Python
app/order_api/__init__.py
peterboldizs/Hands-on-Microservices-with-Python-Order-Service
a5dede8a2c04ed9b748a65f33d183b96499e9c94
[ "MIT" ]
14
2019-02-13T00:08:33.000Z
2021-10-04T06:37:04.000Z
app/order_api/__init__.py
peterboldizs/Hands-on-Microservices-with-Python-Order-Service
a5dede8a2c04ed9b748a65f33d183b96499e9c94
[ "MIT" ]
1
2020-05-14T12:34:50.000Z
2020-10-25T17:45:51.000Z
app/order_api/__init__.py
peterboldizs/Hands-on-Microservices-with-Python-Order-Service
a5dede8a2c04ed9b748a65f33d183b96499e9c94
[ "MIT" ]
21
2019-01-26T09:53:47.000Z
2021-11-09T23:26:14.000Z
from flask import Blueprint order_api_blueprint = Blueprint('order_api', __name__) from . import routes
17.666667
54
0.801887
d8fedc190540c35b3a505fff6934e0015a2f67d4
136
py
Python
hookit/exc.py
xhs/hookit
f3be94779ce628583caf43663d22288f47588ea5
[ "BSD-2-Clause" ]
1
2020-04-06T20:53:27.000Z
2020-04-06T20:53:27.000Z
hookit/exc.py
xhs/hookit
f3be94779ce628583caf43663d22288f47588ea5
[ "BSD-2-Clause" ]
null
null
null
hookit/exc.py
xhs/hookit
f3be94779ce628583caf43663d22288f47588ea5
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __all__ = ['HookitConnectionError']
13.6
39
0.683824
d8ff6bd51bd1471d74da2d3d069253e4211178d6
861
py
Python
AutoRecon-main/autorecon/default-plugins/nmap-oracle.py
Nano-Techx/nano-tool
6907cbaa3251ba9e47ab634b6e1a656002b3672b
[ "Apache-2.0" ]
null
null
null
AutoRecon-main/autorecon/default-plugins/nmap-oracle.py
Nano-Techx/nano-tool
6907cbaa3251ba9e47ab634b6e1a656002b3672b
[ "Apache-2.0" ]
null
null
null
AutoRecon-main/autorecon/default-plugins/nmap-oracle.py
Nano-Techx/nano-tool
6907cbaa3251ba9e47ab634b6e1a656002b3672b
[ "Apache-2.0" ]
null
null
null
from autorecon.plugins import ServiceScan
47.833333
266
0.727062
2b00301fe4460a0816e4fff761378d681f7934fd
5,005
py
Python
samsungctl/upnp/UPNP_Device/upnp_class.py
p3g4asus/samsungctl
90756acc7ac210e37bbfa23dccf1ca3113e55154
[ "MIT" ]
135
2018-11-23T10:49:42.000Z
2022-03-20T05:42:40.000Z
samsungctl/upnp/UPNP_Device/upnp_class.py
p3g4asus/samsungctl
90756acc7ac210e37bbfa23dccf1ca3113e55154
[ "MIT" ]
114
2018-11-25T00:18:31.000Z
2022-02-24T02:33:59.000Z
samsungctl/upnp/UPNP_Device/upnp_class.py
p3g4asus/samsungctl
90756acc7ac210e37bbfa23dccf1ca3113e55154
[ "MIT" ]
42
2018-12-01T19:58:13.000Z
2021-11-13T16:35:46.000Z
# -*- coding: utf-8 -*- import requests import os from lxml import etree try: from urlparse import urlparse except ImportError: from urllib.parse import urlparse try: from .xmlns import strip_xmlns from .service import Service from .embedded_device import EmbeddedDevice from .instance_singlet...
29.615385
72
0.497303
2b01580378afa92e53e9be55b04e4282dd5ebf24
2,128
py
Python
sweden_crs_transformations/transformation/_transform_strategy_from_sweref99_or_rt90_to_wgs84_and_then_to_real_target.py
TomasJohansson/sweden_crs_transformations_4python
d4c0ae1bab2e0f505f3e6f948c1b31b3bf397f04
[ "MIT" ]
1
2021-10-02T20:05:59.000Z
2021-10-02T20:05:59.000Z
sweden_crs_transformations/transformation/_transform_strategy_from_sweref99_or_rt90_to_wgs84_and_then_to_real_target.py
TomasJohansson/sweden_crs_transformations_4python
d4c0ae1bab2e0f505f3e6f948c1b31b3bf397f04
[ "MIT" ]
null
null
null
sweden_crs_transformations/transformation/_transform_strategy_from_sweref99_or_rt90_to_wgs84_and_then_to_real_target.py
TomasJohansson/sweden_crs_transformations_4python
d4c0ae1bab2e0f505f3e6f948c1b31b3bf397f04
[ "MIT" ]
null
null
null
""" | Copyright (c) Tomas Johansson , http://www.programmerare.com | The code in this library is licensed with MIT. | The library is based on the C#.NET library 'sweden_crs_transformations_4net' (https://github.com/TomasJohansson/sweden_crs_transformations_4net) | which in turn is based on 'MightyLittleGeodesy' (https:...
60.8
146
0.795113
2b02c86c51be0110fc69ffb8a602eddb65cafeb9
14,832
py
Python
frontend/utils.py
fiamonci/covidapi
8640f07ed227a410592b57c3ee8f920de7e9efbc
[ "MIT" ]
null
null
null
frontend/utils.py
fiamonci/covidapi
8640f07ed227a410592b57c3ee8f920de7e9efbc
[ "MIT" ]
null
null
null
frontend/utils.py
fiamonci/covidapi
8640f07ed227a410592b57c3ee8f920de7e9efbc
[ "MIT" ]
null
null
null
import plotly.offline as py import plotly.graph_objs as go import plotly.figure_factory as ff import pandas as pd import numpy as np
48.950495
207
0.68541
2b042d2ba8d298c0c460075d008cdbddf6e17de2
1,349
py
Python
pyglobi/__init__.py
nicholac/pyglobi
aeebc6f80694e10dc8d23a8bb3ce030beaafaa2a
[ "MIT" ]
null
null
null
pyglobi/__init__.py
nicholac/pyglobi
aeebc6f80694e10dc8d23a8bb3ce030beaafaa2a
[ "MIT" ]
null
null
null
pyglobi/__init__.py
nicholac/pyglobi
aeebc6f80694e10dc8d23a8bb3ce030beaafaa2a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PyGlobi # TODO: """ PyGlobi Library ~~~~~~~~~~~~~~~~~~~~~ Python API for the Global Biotic Interactions (GloBI) dataset. Basic usage: >>> import pyglobi >>> ... """ import os import json import warnings from .__version__ import __title__, __description__, __url__, __version__ from ....
24.527273
110
0.704967
2b053c0e6b71e75465a34afd8fb4265916c8513c
1,023
py
Python
Kryptografie/Python/caesar.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
2
2020-09-24T12:11:16.000Z
2022-03-31T04:47:24.000Z
Kryptografie/Python/caesar.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
1
2021-02-27T15:06:27.000Z
2021-03-01T16:32:48.000Z
Kryptografie/Python/caesar.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
1
2021-02-24T05:12:35.000Z
2021-02-24T05:12:35.000Z
#print(ceasear_decode(ceasear_encode("HalloWelt", "F"), "F")) msg = """ MRN BRLQNAQNRC NRWNA PNQNRVBLQAROC MJAO WDA EXW MNA PNQNRVQJUCDWP MNB BLQUDNBBNUB JKQJNWPNW, WRLQC SNMXLQ EXW MNA PNQNRVQJUCDWP MNA ENABLQUDNBBNUDWPBVNCQXMN. """ for key in "ABCDEFGHIJKLMNOPQRSTUVWXYZ": #for key in "J": print(key + ": " + ce...
24.95122
61
0.560117
2b05907c4600d74b79aca24030c6eae03f6a269e
8,259
py
Python
tools/lathethreadingtool.py
codemakeshare/g-mint
1a7638631a2e212780a7de13dd8034ca1413fb1f
[ "Unlicense" ]
1
2020-03-04T22:30:18.000Z
2020-03-04T22:30:18.000Z
tools/lathethreadingtool.py
codemakeshare/g-mint
1a7638631a2e212780a7de13dd8034ca1413fb1f
[ "Unlicense" ]
null
null
null
tools/lathethreadingtool.py
codemakeshare/g-mint
1a7638631a2e212780a7de13dd8034ca1413fb1f
[ "Unlicense" ]
1
2020-06-26T18:55:26.000Z
2020-06-26T18:55:26.000Z
from guifw.abstractparameters import * from geometry import * from solids import * import multiprocessing as mp import time import pyclipper from polygons import * from gcode import * from collections import OrderedDict
48.582353
170
0.606974
2b060bdf689bdc4fce8834af57f1155f949eb1a2
3,737
py
Python
tests/fiaas_deploy_daemon/test_logsetup.py
ariadnarouco/fiaas-deploy-daemon
644c09e79f6f07bd85ca9153e731755836f7e454
[ "Apache-2.0" ]
57
2017-09-13T09:30:04.000Z
2022-03-23T12:00:56.000Z
tests/fiaas_deploy_daemon/test_logsetup.py
ariadnarouco/fiaas-deploy-daemon
644c09e79f6f07bd85ca9153e731755836f7e454
[ "Apache-2.0" ]
113
2019-02-26T16:10:13.000Z
2022-03-31T13:11:03.000Z
tests/fiaas_deploy_daemon/test_logsetup.py
ariadnarouco/fiaas-deploy-daemon
644c09e79f6f07bd85ca9153e731755836f7e454
[ "Apache-2.0" ]
30
2019-02-22T11:16:24.000Z
2022-03-21T22:37:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 # Copyright 2017-2019 The FIAAS 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 # # Unle...
39.336842
109
0.661226
2b066e4df5230c4aa951723634c68a3d9f727def
1,430
py
Python
vibromaf/signal/spectrum.py
hofbi/vibromaf
7678042d18fa3b4ab006283bdbd1b1cc6d84e822
[ "MIT" ]
1
2022-03-11T19:56:59.000Z
2022-03-11T19:56:59.000Z
vibromaf/signal/spectrum.py
hofbi/vibromaf
7678042d18fa3b4ab006283bdbd1b1cc6d84e822
[ "MIT" ]
null
null
null
vibromaf/signal/spectrum.py
hofbi/vibromaf
7678042d18fa3b4ab006283bdbd1b1cc6d84e822
[ "MIT" ]
null
null
null
"""Spectrum module""" import numpy as np from scipy.stats import norm def pow2db(power: np.array) -> np.array: """ Convert power to decibels https://de.mathworks.com/help/signal/ref/pow2db.html """ return 10.0 * np.log10(power) def db2pow(decibel: np.array) -> np.array: """ Convert deci...
27.5
93
0.678322
2b0823806306e95de80b37510219b6b55f6cacc5
1,484
py
Python
src/condor_tests/ornithology/io.py
sridish123/htcondor
481d975fd8602242f6a052aab04e20b0b560db89
[ "Apache-2.0" ]
217
2015-01-08T04:49:42.000Z
2022-03-27T10:11:58.000Z
src/condor_tests/ornithology/io.py
sridish123/htcondor
481d975fd8602242f6a052aab04e20b0b560db89
[ "Apache-2.0" ]
185
2015-05-03T13:26:31.000Z
2022-03-28T03:08:59.000Z
src/condor_tests/ornithology/io.py
sridish123/htcondor
481d975fd8602242f6a052aab04e20b0b560db89
[ "Apache-2.0" ]
133
2015-02-11T09:17:45.000Z
2022-03-31T07:28:54.000Z
# Copyright 2019 HTCondor Team, Computer Sciences Department, # University of Wisconsin-Madison, WI. # # 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/LICE...
29.68
74
0.703504
2b08787effb6f7bbb1ae2706ee9a8d4b32070149
1,057
py
Python
pfproject_py/pfgrid.py
assassin945/PixelFight
eca26825dcba17748a5f5c1e9f778aecd3824a4c
[ "Apache-2.0" ]
2
2018-06-27T09:14:18.000Z
2018-08-30T06:51:33.000Z
pfproject_py/pfgrid.py
assassin945/PixelFight
eca26825dcba17748a5f5c1e9f778aecd3824a4c
[ "Apache-2.0" ]
5
2018-07-23T14:41:14.000Z
2018-09-07T15:48:18.000Z
pfproject_py/pfgrid.py
assassin945/PixelFight
eca26825dcba17748a5f5c1e9f778aecd3824a4c
[ "Apache-2.0" ]
3
2018-07-17T08:11:52.000Z
2018-07-23T14:56:50.000Z
# !/usr/bin/env python3 # -*- coding:utf-8 -*- __author__ = 'Zhiquan Wang' __date__ = '2018/7/20 22:01' import taginfo
21.571429
81
0.631977
2b09e8fb8c2377d4b204c8e5bd9ec89132b62561
63
py
Python
example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/N/natural unit of mom.um in MeVc.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/N/natural unit of mom.um in MeVc.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/N/natural unit of mom.um in MeVc.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
1
2021-02-04T04:51:48.000Z
2021-02-04T04:51:48.000Z
constants.physical_constants["natural unit of mom.um in MeV/c"]
63
63
0.809524
2b0b1bcf8749b5f91f257d238294fcd8a57644ba
1,937
py
Python
tools/console.py
mhlyv/pico-chip8
79bc711efff5f3a41e2337479bac494d92e692e4
[ "MIT" ]
null
null
null
tools/console.py
mhlyv/pico-chip8
79bc711efff5f3a41e2337479bac494d92e692e4
[ "MIT" ]
null
null
null
tools/console.py
mhlyv/pico-chip8
79bc711efff5f3a41e2337479bac494d92e692e4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import serial import argparse parser = argparse.ArgumentParser() parser.add_argument("device", help="serial device to use") parser.add_argument("-b", "--baud-rate", type=int, default=115200, help="baud rate") args = parser.parse_args() with serial.Serial(args.device, a...
25.486842
59
0.560661
2b0ce403c03f0519f9677bbe421d799dc6a7ca76
1,056
py
Python
api/handler.py
ClayAssis/HEALTH-INSURANCE-CROSS-SELL-PREDICTION
58bac40dcadb2362d5d8e34432d9449f8da61847
[ "MIT" ]
3
2021-03-05T01:24:48.000Z
2021-11-12T08:45:34.000Z
api/handler.py
juniorcl/health-insurance-cross-sell
ccc87c2434515a76033d300318c88ad32ac9e4e9
[ "MIT" ]
null
null
null
api/handler.py
juniorcl/health-insurance-cross-sell
ccc87c2434515a76033d300318c88ad32ac9e4e9
[ "MIT" ]
null
null
null
import joblib import pandas as pd from crosssell.CrossSell import CrossSell from flask import Flask, request, Response ## Loading Model model = joblib.load('../models/linear_regression_cycle1.joblib') ## initialize API app = Flask(__name__) if __name__ == '__main__': app.run('0.0.0.0')
27.789474
75
0.641098
2b0dec138c697b4b42c64693eee5949362ef9ae5
1,348
py
Python
tests/models/FiBiNET_test.py
shenweichen/mlmodels
9564e05ce9b33d6bf2a15779ef6a42831869c390
[ "Apache-2.0" ]
null
null
null
tests/models/FiBiNET_test.py
shenweichen/mlmodels
9564e05ce9b33d6bf2a15779ef6a42831869c390
[ "Apache-2.0" ]
null
null
null
tests/models/FiBiNET_test.py
shenweichen/mlmodels
9564e05ce9b33d6bf2a15779ef6a42831869c390
[ "Apache-2.0" ]
null
null
null
import pytest from deepctr.models import FiBiNET from ..utils import check_model, SAMPLE_SIZE, get_test_data, get_test_data_estimator, check_estimator, TEST_Estimator if __name__ == "__main__": pass
31.348837
118
0.686944
2b0e26f01928bb2f1303c33ac10800c50f095491
2,139
py
Python
storm/internal_types/asgi/events.py
Rud356/Storm
18f8b7ac89babf9252da28c39c2cc84087f2afaf
[ "Apache-2.0" ]
1
2022-03-18T18:14:34.000Z
2022-03-18T18:14:34.000Z
storm/internal_types/asgi/events.py
Rud356/Storm
18f8b7ac89babf9252da28c39c2cc84087f2afaf
[ "Apache-2.0" ]
1
2021-12-23T19:39:27.000Z
2021-12-23T19:39:27.000Z
storm/internal_types/asgi/events.py
Rud356/Storm
18f8b7ac89babf9252da28c39c2cc84087f2afaf
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from .base_event import Event from .supported_types import ASGI_SUPPORTED_TYPES
23.505495
72
0.616176
2b0ea7efdc61f1404f5f267f63e7be99818357ef
68
py
Python
config/models/transformer.py
IdiosyncraticDragon/OpenNMT-tf
99f17c2c2436b45d8a730c662530f4428f9632ca
[ "MIT" ]
2
2018-09-28T14:44:59.000Z
2018-11-29T02:31:28.000Z
config/models/transformer.py
Nourhene95/Film_Translation
52538d992abcce044911ee945ffaabd1d12ffe9d
[ "MIT" ]
null
null
null
config/models/transformer.py
Nourhene95/Film_Translation
52538d992abcce044911ee945ffaabd1d12ffe9d
[ "MIT" ]
1
2019-06-17T21:36:56.000Z
2019-06-17T21:36:56.000Z
from opennmt.models.catalog import Transformer model = Transformer
17
46
0.838235
2b0f87558bc92d619153ec9ee193a6afb9815e65
486
py
Python
config.py
ilpan/feishu-errbot-backend
74f17d084a13d5d5f0e2963a88463836abc3d5ad
[ "MIT" ]
3
2021-01-14T02:14:26.000Z
2022-01-16T07:09:38.000Z
config.py
ilpan/feishu-errbot-backend
74f17d084a13d5d5f0e2963a88463836abc3d5ad
[ "MIT" ]
null
null
null
config.py
ilpan/feishu-errbot-backend
74f17d084a13d5d5f0e2963a88463836abc3d5ad
[ "MIT" ]
null
null
null
import logging BACKEND = 'Feishu' BOT_EXTRA_BACKEND_DIR = r'<path/to/feishu-errbot-backend>' BOT_DATA_DIR = r'<path/to/your/errbot/data/directory>' BOT_EXTRA_PLUGIN_DIR = r'<path/to/your/errbot/plugin/directory>' BOT_LOG_FILE = r'<path/to/your/errbot/logfile.log>' BOT_LOG_LEVEL = logging.INFO BOT_IDENTITY = { "...
23.142857
64
0.683128
2b105c6ec493d288ffb236a0479b79d6962b4217
2,422
py
Python
plotly/tests/test_core/test_graph_objs/test_frames.py
SamLau95/plotly.py
7dd4ddd4e18e79ff30cec3ef331fa2f8949ed1bd
[ "MIT" ]
2
2018-02-06T10:43:31.000Z
2018-08-11T02:43:38.000Z
plotly/tests/test_core/test_graph_objs/test_frames.py
SamLau95/plotly.py
7dd4ddd4e18e79ff30cec3ef331fa2f8949ed1bd
[ "MIT" ]
1
2022-02-17T16:47:20.000Z
2022-02-17T16:47:20.000Z
plotly/tests/test_core/test_graph_objs/test_frames.py
SamLau95/plotly.py
7dd4ddd4e18e79ff30cec3ef331fa2f8949ed1bd
[ "MIT" ]
2
2018-02-13T10:40:10.000Z
2021-06-04T11:15:53.000Z
from __future__ import absolute_import from unittest import TestCase from plotly import exceptions from plotly.graph_objs import Bar, Frames
30.275
75
0.526837
2b10c856b49f877d086d499a00dcb3bd008295be
317
py
Python
build/lib/pyhpeimc/version.py
HPNetworking/HP-Intelligent-Management-Center
4fba31827573587e03a6233c7db60f188038c8e5
[ "Apache-2.0" ]
13
2016-03-14T17:55:03.000Z
2021-03-26T07:18:26.000Z
build/lib/pyhpeimc/version.py
HPNetworking/HP-Intelligent-Management-Center
4fba31827573587e03a6233c7db60f188038c8e5
[ "Apache-2.0" ]
7
2016-08-04T17:39:11.000Z
2017-09-19T13:42:35.000Z
build/lib/pyhpeimc/version.py
HPNetworking/HP-Intelligent-Management-Center
4fba31827573587e03a6233c7db60f188038c8e5
[ "Apache-2.0" ]
17
2016-03-03T05:24:20.000Z
2022-03-10T08:16:31.000Z
def version(): """Function takes no aruguments and returns a STR value of the current version of the library. This value should match the value in the setup.py :param None :return str value of the current version of the library :rtype str >>> version() 1.0.33 """ print ('1.0.34')
28.818182
122
0.652997
2b121fd3a533e1e023e1b1b4e531b0bbc5c02d6c
621
py
Python
main.py
m-zakeri/ADAFEST
d13f73682aecded34b4e8fa203435e56dd7a280a
[ "MIT" ]
2
2022-01-04T14:47:35.000Z
2022-02-23T07:14:11.000Z
main.py
m-zakeri/ADAFEST
d13f73682aecded34b4e8fa203435e56dd7a280a
[ "MIT" ]
1
2021-03-20T07:25:30.000Z
2021-03-20T07:25:30.000Z
main.py
m-zakeri/ADAFEST
d13f73682aecded34b4e8fa203435e56dd7a280a
[ "MIT" ]
1
2022-02-23T07:14:13.000Z
2022-02-23T07:14:13.000Z
""" The main module of DAFEST project. ADAFEST is an abbreviation: 'A Data-Driven Approach to Estimating / Evaluating Software Testability' The full version of source code will be available as soon as the relevant paper(s) are published. """ # Main driver if __name__ == '__main__': Main.print_welcome('ADAFES...
20.7
101
0.648953
2b13cf925d2143fd46f25a0033b59099257a98a3
1,746
py
Python
rsm/scripts/download_ravdess.py
Cerenaut/rsm
33bf8a3a620b46b5180280f2ca5f0b28c168b806
[ "Apache-2.0" ]
null
null
null
rsm/scripts/download_ravdess.py
Cerenaut/rsm
33bf8a3a620b46b5180280f2ca5f0b28c168b806
[ "Apache-2.0" ]
null
null
null
rsm/scripts/download_ravdess.py
Cerenaut/rsm
33bf8a3a620b46b5180280f2ca5f0b28c168b806
[ "Apache-2.0" ]
null
null
null
"""Downloads the RAVDESS Video Dataset.""" import os import sys import zipfile import argparse import urllib.request NUM_ACTORS = 24 DATA_TYPES = ['song', 'speech'] BASE_DOWNLOAD_URL = 'https://zenodo.org/record/1188976/files/{0}?download=1' if __name__ == '__main__': parser = argparse.ArgumentParser(descriptio...
32.333333
76
0.667239
2b143c83842d129d2bd45478b75903d5f38b5a19
2,652
py
Python
src/gruenbeck/requests/__init__.py
xancoder/gruenbeck
f6d6e8a27156d56017227a5ed3b79e22eacd8cda
[ "MIT" ]
null
null
null
src/gruenbeck/requests/__init__.py
xancoder/gruenbeck
f6d6e8a27156d56017227a5ed3b79e22eacd8cda
[ "MIT" ]
null
null
null
src/gruenbeck/requests/__init__.py
xancoder/gruenbeck
f6d6e8a27156d56017227a5ed3b79e22eacd8cda
[ "MIT" ]
null
null
null
import random import xml.etree.ElementTree import requests if __name__ == '__main__': host_device = 'softliq-sc-ae-85-48' input_data = { 'D_Y_2_1': {'access': 'read', 'device': '', 'value': 'Int', 'unit': '[l]', 'code': '', 'note': 'gestern'}, 'D_Y_2_2': {'access': 'read', 'device': '', 'val...
47.357143
120
0.519608
2b15a1c0f5ad60d718b6c7f18324b75ebd770597
980
py
Python
lambdata_trevorjames/function_tests.py
trevorwjames/lamdata
d8d5cf76ca602b48378bb7fabf6fa449f1bcfbe3
[ "MIT" ]
null
null
null
lambdata_trevorjames/function_tests.py
trevorwjames/lamdata
d8d5cf76ca602b48378bb7fabf6fa449f1bcfbe3
[ "MIT" ]
null
null
null
lambdata_trevorjames/function_tests.py
trevorwjames/lamdata
d8d5cf76ca602b48378bb7fabf6fa449f1bcfbe3
[ "MIT" ]
2
2020-08-04T22:39:08.000Z
2020-08-04T22:54:45.000Z
""" Tests for python modules """ import unittest # testing two different functions in my package from lambdata_trevorjames.things import Character, Wizard # import from other modules for testing if __name__ == '__main__': # running tests in order to see results unittest.main()
27.222222
57
0.654082
2b16a535bcae8dcd09c9ae870ae1f7e59457011b
1,737
py
Python
barbados_stockex_scraper/spiders/bb_trading.py
chrisdev/barbados_stockex_scraper
ecc59f1a9492f409569cf32e544cd1313fd8ce12
[ "BSD-2-Clause" ]
1
2021-02-23T18:16:53.000Z
2021-02-23T18:16:53.000Z
barbados_stockex_scraper/spiders/bb_trading.py
chrisdev/barbados_stockex_scraper
ecc59f1a9492f409569cf32e544cd1313fd8ce12
[ "BSD-2-Clause" ]
null
null
null
barbados_stockex_scraper/spiders/bb_trading.py
chrisdev/barbados_stockex_scraper
ecc59f1a9492f409569cf32e544cd1313fd8ce12
[ "BSD-2-Clause" ]
null
null
null
from scrapy.spider import Spider from dateutil.parser import parse from datetime import date from barbados_stockex_scraper.items import PDFItem from dateutil import rrule from dateutil.rrule import MO, TU, WE, TH, FR
28.016129
77
0.520438
2b16f338f13153834cde006c723c1e402d28968c
1,472
py
Python
bin/tools/test_cam.py
wew84/cnn_hmi
c63e382e98cdd51957ff81a597736657414a6bfc
[ "BSD-3-Clause" ]
null
null
null
bin/tools/test_cam.py
wew84/cnn_hmi
c63e382e98cdd51957ff81a597736657414a6bfc
[ "BSD-3-Clause" ]
null
null
null
bin/tools/test_cam.py
wew84/cnn_hmi
c63e382e98cdd51957ff81a597736657414a6bfc
[ "BSD-3-Clause" ]
null
null
null
import rospy import numpy as np import timeit COMPRESSED = False if not COMPRESSED: from cv_bridge import CvBridge, CvBridgeError from sensor_msgs.msg import Image else: import numpy as np import cv2 from sensor_msgs.msg import CompressedImage
32.711111
99
0.593071
2b17035de60c15c61d7636a22a9a1746df778887
2,023
py
Python
amplify/backend/function/plateletImageResize/src/index.py
LamVu1/platelet
507a27d969dbaaaa07b1965304d9ad2d24d27c3e
[ "Apache-2.0" ]
17
2021-12-09T18:08:24.000Z
2022-03-01T16:47:11.000Z
amplify/backend/function/plateletImageResize/src/index.py
LamVu1/platelet
507a27d969dbaaaa07b1965304d9ad2d24d27c3e
[ "Apache-2.0" ]
42
2021-12-20T06:06:39.000Z
2022-03-31T15:03:17.000Z
amplify/backend/function/plateletImageResize/src/index.py
LamVu1/platelet
507a27d969dbaaaa07b1965304d9ad2d24d27c3e
[ "Apache-2.0" ]
3
2022-01-24T21:33:47.000Z
2022-03-01T01:13:23.000Z
import boto3 import os import uuid from urllib.parse import unquote_plus from PIL import Image s3_client = boto3.client('s3')
42.145833
119
0.726149
2b17a8352db68cd83f8a03d2583f377bb8f97052
2,572
py
Python
Source Code/10 fold cross validation using LightGBM .py
AbhibhavS/AE-LGBM
7d8b34d6ccde1ccd3d699b390062ae6e633262b4
[ "CC0-1.0" ]
null
null
null
Source Code/10 fold cross validation using LightGBM .py
AbhibhavS/AE-LGBM
7d8b34d6ccde1ccd3d699b390062ae6e633262b4
[ "CC0-1.0" ]
null
null
null
Source Code/10 fold cross validation using LightGBM .py
AbhibhavS/AE-LGBM
7d8b34d6ccde1ccd3d699b390062ae6e633262b4
[ "CC0-1.0" ]
null
null
null
import os import numpy as np import pandas as pd import math import lightgbm as lgb from sklearn.metrics import confusion_matrix #os.chdir('C:/Protein') # load or create your dataset Mydata = pd.read_csv("gbm_human.csv", header=0) Mydata.columns.name = None data = Mydata.drop(Mydata.columns[Mydata....
29.227273
118
0.573095
2b1b08509332211dbdbe0e4a8bf69d56ff2dbde5
796
py
Python
files/tag_analysis/test_grapher.py
AzureBlueCobalt/analyze-gelbooru
694b6e843c06942b3d6110e79e083b9ab71214b9
[ "MIT" ]
null
null
null
files/tag_analysis/test_grapher.py
AzureBlueCobalt/analyze-gelbooru
694b6e843c06942b3d6110e79e083b9ab71214b9
[ "MIT" ]
null
null
null
files/tag_analysis/test_grapher.py
AzureBlueCobalt/analyze-gelbooru
694b6e843c06942b3d6110e79e083b9ab71214b9
[ "MIT" ]
null
null
null
import numpy as np from sklearn.decomposition import PCA import matplotlib.pyplot as plt num_samples, num_dimensions = 100000, 100 X = np.random.rand(num_samples, num_dimensions) data_to_2d_heatmap(X)
25.677419
71
0.687186
2b1cf572c9e797e9fc55f7cc6186a4489a738b0b
4,693
py
Python
tensor2tensor/data_generators/tokenizer.py
vohoaiviet/tensor2tensor
c2bd023ab7fc8ca0f4c4138e955845537d10ca55
[ "Apache-2.0" ]
6
2017-10-10T13:36:39.000Z
2021-02-18T07:50:00.000Z
tensor2tensor/data_generators/tokenizer.py
vohoaiviet/tensor2tensor
c2bd023ab7fc8ca0f4c4138e955845537d10ca55
[ "Apache-2.0" ]
null
null
null
tensor2tensor/data_generators/tokenizer.py
vohoaiviet/tensor2tensor
c2bd023ab7fc8ca0f4c4138e955845537d10ca55
[ "Apache-2.0" ]
9
2017-07-25T11:29:06.000Z
2021-06-20T14:01:58.000Z
# Copyright 2017 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
31.07947
79
0.700831
2b1f1406a73cace34bef8e1667033a53df5a0e24
1,412
py
Python
built-in/ACL_PyTorch/Official/cv/DB_for_PyTorch/test/parse.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/ACL_PyTorch/Official/cv/DB_for_PyTorch/test/parse.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/ACL_PyTorch/Official/cv/DB_for_PyTorch/test/parse.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
41.529412
105
0.636686
2b1fa39d20f7750128e2a06b8ef41f905c26ad90
4,000
py
Python
scripts/run_scripts/main.py
ECP-copa/CabanaPIC
ac83e086cad3b6a3307abec26fb276ce7307143e
[ "BSD-3-Clause" ]
10
2019-07-30T18:52:55.000Z
2021-02-08T07:22:33.000Z
scripts/run_scripts/main.py
ECP-copa/CabanaPIC
ac83e086cad3b6a3307abec26fb276ce7307143e
[ "BSD-3-Clause" ]
28
2019-04-16T21:15:34.000Z
2021-02-08T20:16:44.000Z
scripts/run_scripts/main.py
ECP-copa/CabanaPIC
ac83e086cad3b6a3307abec26fb276ce7307143e
[ "BSD-3-Clause" ]
2
2019-05-08T17:30:01.000Z
2019-06-27T16:12:15.000Z
from git import Repo import subprocess import os, shutil # I use this later to lazily generate an error with a message repo_path = "../../" r = Repo(repo_path) repo_heads = r.heads # or it's alias: r.branches repo_heads_names = [h.name for h in repo_heads] #kokkos_src = '/Users/bird/kokkos/' #kokkos_install = '/User...
32.258065
150
0.6525
2b21765ae678a438c931925bbb17282476fb77e8
540
py
Python
clam/utils/converters.py
Clam-Bot/Clam
9b70dbf79f488ea15b7a2b3d8990252a647284e6
[ "MIT" ]
null
null
null
clam/utils/converters.py
Clam-Bot/Clam
9b70dbf79f488ea15b7a2b3d8990252a647284e6
[ "MIT" ]
3
2020-06-02T17:32:03.000Z
2020-06-26T04:50:51.000Z
clam/utils/converters.py
Clam-Bot/Clam
9b70dbf79f488ea15b7a2b3d8990252a647284e6
[ "MIT" ]
1
2020-06-01T14:28:37.000Z
2020-06-01T14:28:37.000Z
from discord.ext import commands from .formats import plural
30
119
0.662963
2b21c264b8b104047fd393b8623d64402d9f7dcd
822
py
Python
src/cfcs/__init__.py
KamasamaK/sublimetext-cfml
3730fca4679a5294234dfb3207eb41a4b313b87e
[ "MIT" ]
null
null
null
src/cfcs/__init__.py
KamasamaK/sublimetext-cfml
3730fca4679a5294234dfb3207eb41a4b313b87e
[ "MIT" ]
null
null
null
src/cfcs/__init__.py
KamasamaK/sublimetext-cfml
3730fca4679a5294234dfb3207eb41a4b313b87e
[ "MIT" ]
1
2022-02-28T17:09:43.000Z
2022-02-28T17:09:43.000Z
from .cfcs import build_project_cfcs from .completions import get_dot_completions from .documentation import get_inline_documentation, get_goto_cfml_file, get_completions_doc, get_method_preview from .di import CfmlDiPropertyCommand from .. import completions, inline_documentation, goto_cfml_file, method_preview from ....
41.1
112
0.868613
2b220604fec0a1c505bc7ef5ba3c302ac7413e97
2,956
py
Python
xeda/flows/vivado/vivado.py
XedaHQ/xeda
e5bea8663a9001d0e98f6b7a91575e13fba06493
[ "Apache-2.0" ]
16
2021-01-21T12:58:51.000Z
2022-02-26T22:43:56.000Z
xeda/flows/vivado/vivado.py
XedaHQ/xeda
e5bea8663a9001d0e98f6b7a91575e13fba06493
[ "Apache-2.0" ]
7
2021-01-18T03:19:41.000Z
2022-03-20T21:43:26.000Z
xeda/flows/vivado/vivado.py
kammoh/xeda
e5bea8663a9001d0e98f6b7a91575e13fba06493
[ "Apache-2.0" ]
3
2020-09-03T02:37:20.000Z
2020-09-10T14:25:49.000Z
# 2020 [Kamyar Mohajerani](mailto:kamyar@ieee.org) import html import logging from xeda.utils import try_convert from xml.etree import ElementTree from ..flow import Flow, DebugLevel from functools import reduce logger = logging.getLogger()
35.614458
159
0.57544
2b221e9fcd75b4225d8486366160ca6b79866358
566
py
Python
misago/misago/socialauth/admin/tests/test_providers_list.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
2
2021-03-06T21:06:13.000Z
2021-03-09T15:05:12.000Z
misago/misago/socialauth/admin/tests/test_providers_list.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
misago/misago/socialauth/admin/tests/test_providers_list.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
from django.urls import reverse admin_link = reverse("misago:admin:settings:socialauth:index")
28.3
88
0.805654
2b23375784ad3bea514af8c65d442d1167d296b3
1,059
py
Python
AoC20/day_01/__init__.py
a-recknagel/AoC20
7aa0013dc745bdc0ad357e1168b212bd065fd092
[ "MIT" ]
null
null
null
AoC20/day_01/__init__.py
a-recknagel/AoC20
7aa0013dc745bdc0ad357e1168b212bd065fd092
[ "MIT" ]
null
null
null
AoC20/day_01/__init__.py
a-recknagel/AoC20
7aa0013dc745bdc0ad357e1168b212bd065fd092
[ "MIT" ]
null
null
null
example_data = """\ 1721 979 366 299 675 1456\ """ data = """\ 1914 1931 1892 1584 1546 1988 1494 1709 1624 1755 1849 1430 1890 1675 1604 1580 1500 1277 1729 1456 2002 1075 1512 895 1843 1921 1904 1989 1407 1552 1714 757 1733 1459 1777 1440 1649 1409 1662 1968 1775 1998 1754 1938 1964 1415 1990 1997 1870 1664 1145 178...
5.018957
19
0.780925
2b2517c362cf2f3a86a36ce0643cc246ce4e7c00
130
py
Python
src/flax_extra/training/__init__.py
manifest/flax-extra
e19de992c7acefefca9ed4c9f7ce3e092943363a
[ "Apache-2.0" ]
null
null
null
src/flax_extra/training/__init__.py
manifest/flax-extra
e19de992c7acefefca9ed4c9f7ce3e092943363a
[ "Apache-2.0" ]
3
2021-08-10T04:59:35.000Z
2021-10-07T21:10:37.000Z
src/flax_extra/training/__init__.py
manifest/flax-extra
e19de992c7acefefca9ed4c9f7ce3e092943363a
[ "Apache-2.0" ]
null
null
null
r"""Training API.""" from flax_extra.training._loop import TrainLoop, TrainTask __all__ = [ "TrainLoop", "TrainTask", ]
14.444444
58
0.676923
2b251d64a22effcabaddc65ee837b6e1e8b83cc9
833
py
Python
users/management/commands/export_user.py
iloveitaly/crypto-index-fund-bot
2dba891a21aaa0e1d7aae8a54842e49e0bd2095e
[ "MIT" ]
37
2021-08-03T02:25:53.000Z
2022-03-30T16:11:31.000Z
users/management/commands/export_user.py
iloveitaly/crypto-index-fund-bot
2dba891a21aaa0e1d7aae8a54842e49e0bd2095e
[ "MIT" ]
40
2021-09-06T12:54:18.000Z
2022-03-28T03:22:00.000Z
users/management/commands/export_user.py
iloveitaly/crypto-index-fund-bot
2dba891a21aaa0e1d7aae8a54842e49e0bd2095e
[ "MIT" ]
6
2021-09-23T11:59:03.000Z
2022-03-22T04:06:09.000Z
import json from django.core.management.base import BaseCommand, CommandError from users.models import User
27.766667
73
0.683073
2b2780ff2364c405c910e94c9136eb2d8a40658f
4,533
py
Python
api-examples/dh_py_access/lib/dataset.py
evan1997123/PlanetOSDatathon
91c324619c05f28dcacc622d97369813926fb52d
[ "MIT" ]
87
2016-04-26T15:56:23.000Z
2022-03-09T12:11:43.000Z
api-examples/dh_py_access/lib/dataset.py
evan1997123/PlanetOSDatathon
91c324619c05f28dcacc622d97369813926fb52d
[ "MIT" ]
4
2019-04-23T13:43:40.000Z
2021-04-28T15:42:51.000Z
api-examples/dh_py_access/lib/dataset.py
evan1997123/PlanetOSDatathon
91c324619c05f28dcacc622d97369813926fb52d
[ "MIT" ]
51
2016-07-10T16:53:48.000Z
2022-03-16T09:35:49.000Z
# -*- coding: utf-8 -*- import requests import pandas as pd from netCDF4 import Dataset # from lib.parse_urls import parse_urls from . parse_urls import parse_urls
38.415254
171
0.595191
2b28c549db2999ddb7e4c4c20da3ef49d5acb82d
6,082
py
Python
contact_calc/stratify_hbonds.py
jpaggi/getcontacts
0d4f3f951b340a1ae7f8dbbb594aef70783827e9
[ "Apache-2.0" ]
null
null
null
contact_calc/stratify_hbonds.py
jpaggi/getcontacts
0d4f3f951b340a1ae7f8dbbb594aef70783827e9
[ "Apache-2.0" ]
null
null
null
contact_calc/stratify_hbonds.py
jpaggi/getcontacts
0d4f3f951b340a1ae7f8dbbb594aef70783827e9
[ "Apache-2.0" ]
null
null
null
############################################################################ # Copyright 2018 Anthony Ma & Stanford University # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may no...
41.657534
106
0.602269
2b297b7f8fbd1568c7e88ec11199c8002fce0e5f
3,879
py
Python
workshops/test/test_person.py
r-gaia-cs/swc-amy
b420810a8dd2399b522e070a4af46c428f545ffe
[ "MIT" ]
null
null
null
workshops/test/test_person.py
r-gaia-cs/swc-amy
b420810a8dd2399b522e070a4af46c428f545ffe
[ "MIT" ]
null
null
null
workshops/test/test_person.py
r-gaia-cs/swc-amy
b420810a8dd2399b522e070a4af46c428f545ffe
[ "MIT" ]
null
null
null
from django.core.urlresolvers import reverse from ..models import Person from .base import TestBase
41.265957
99
0.604022
2b2a2cb2f442f0c61a738971056437e441c211fd
340
py
Python
project_name/urls.py
hotbaby/django-project-skeleton
41ee89fa96e0df26157d5aea92ce9bcf731c0e13
[ "MIT" ]
1
2019-01-11T10:10:43.000Z
2019-01-11T10:10:43.000Z
project_name/urls.py
hotbaby/django-project-skeleton
41ee89fa96e0df26157d5aea92ce9bcf731c0e13
[ "MIT" ]
3
2018-12-18T12:15:28.000Z
2020-06-05T19:38:46.000Z
project_name/urls.py
hotbaby/django-project-skeleton
41ee89fa96e0df26157d5aea92ce9bcf731c0e13
[ "MIT" ]
null
null
null
"""{{ project_name }} URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ """ # Django imports from django.conf.urls import include, url urlpatterns = [ # Examples: # url(r'^blog/', include('blog.urls', na...
26.153846
77
0.694118
2b2b28c4e353e666464f155d20c16f44f9ef5fba
662
py
Python
moviebot/nlu/annotation/values.py
benebjoern/XAI_MovieBot
fbf47aba22081dd2efe9b89d5797da2dc143f15e
[ "MIT" ]
2
2021-05-27T09:48:04.000Z
2021-12-01T11:05:12.000Z
moviebot/nlu/annotation/values.py
benebjoern/XAI_MovieBot
fbf47aba22081dd2efe9b89d5797da2dc143f15e
[ "MIT" ]
20
2020-09-18T17:59:32.000Z
2021-04-12T11:09:29.000Z
moviebot/nlu/annotation/values.py
benebjoern/XAI_MovieBot
fbf47aba22081dd2efe9b89d5797da2dc143f15e
[ "MIT" ]
5
2020-09-10T19:49:25.000Z
2021-07-30T05:46:29.000Z
"""This file contains the list of possible slot values other than the values fetched from the database. This approach will help the dialogue state tracker to update state for specific type of slot values easily""" __author__ = 'Javeria Habib' from enum import Enum
30.090909
80
0.743202
2b2e9bbd7640827b468fb8a2bd395d4f19f2c1d7
802
py
Python
app.py
AbovePlanet302/logviewer
50c7802bda1d2f9f3319c1dacf4a89f622c2dcb7
[ "MIT" ]
null
null
null
app.py
AbovePlanet302/logviewer
50c7802bda1d2f9f3319c1dacf4a89f622c2dcb7
[ "MIT" ]
null
null
null
app.py
AbovePlanet302/logviewer
50c7802bda1d2f9f3319c1dacf4a89f622c2dcb7
[ "MIT" ]
3
2020-11-23T23:13:59.000Z
2021-11-02T19:12:22.000Z
import os from sanic import Sanic, response from motor.motor_asyncio import AsyncIOMotorClient from renderer import LogEntry app = Sanic(__name__) if __name__ == '__main__': app.run(host='0.0.0.0', port=os.getenv('PORT'))
25.870968
94
0.699501
2b2ed19738112a82286876bf711fa67e20143cb1
237
py
Python
tests/test_tours.py
DavidNKraemer/ams553-final-project
fc23fe5f126a8bd9ea593c0b339883ec71820a05
[ "MIT" ]
null
null
null
tests/test_tours.py
DavidNKraemer/ams553-final-project
fc23fe5f126a8bd9ea593c0b339883ec71820a05
[ "MIT" ]
null
null
null
tests/test_tours.py
DavidNKraemer/ams553-final-project
fc23fe5f126a8bd9ea593c0b339883ec71820a05
[ "MIT" ]
null
null
null
from src import tours import numpy as np tolerance = 1e-4
21.545455
67
0.607595
2b308c8701fc0641936b8ef2a3864754ef960765
1,289
py
Python
tests/app/storage/test_dynamo_api.py
uk-gov-mirror/ONSdigital.eq-survey-runner
b3a67a82347d024177f7fa6bf05499f47ece7ea5
[ "MIT" ]
27
2015-10-02T17:27:54.000Z
2021-04-05T12:39:16.000Z
tests/app/storage/test_dynamo_api.py
uk-gov-mirror/ONSdigital.eq-survey-runner
b3a67a82347d024177f7fa6bf05499f47ece7ea5
[ "MIT" ]
1,836
2015-09-16T09:59:03.000Z
2022-03-30T14:27:06.000Z
tests/app/storage/test_dynamo_api.py
uk-gov-mirror/ONSdigital.eq-survey-runner
b3a67a82347d024177f7fa6bf05499f47ece7ea5
[ "MIT" ]
20
2016-09-09T16:56:12.000Z
2021-11-12T06:09:27.000Z
from botocore.exceptions import ClientError from flask import current_app from app.storage import dynamo_api from tests.app.app_context_test_case import AppContextTestCase KEY = {'user_id': 'someuser'}
30.690476
106
0.709853
2b3105bc401831618b83dd86dab377681bcffe9d
2,062
py
Python
doobi/recc/serializers.py
bryanopew/doobi
45e98c7a0a8aceea7b13665da4d57f161fe78725
[ "MIT" ]
null
null
null
doobi/recc/serializers.py
bryanopew/doobi
45e98c7a0a8aceea7b13665da4d57f161fe78725
[ "MIT" ]
null
null
null
doobi/recc/serializers.py
bryanopew/doobi
45e98c7a0a8aceea7b13665da4d57f161fe78725
[ "MIT" ]
null
null
null
from . models import Cal_result, Foods, Profile, Recc_result from rest_framework import serializers
23.976744
60
0.555771
2b32f528d435bacb92f58da33b3b9a36bf562ce4
449
py
Python
Problema 2/Problema2.py
ItaloCcosccoAlvis/ADA-UNSA---Lab2
00b221f66d1a2149c83b4eb79bbedf3b35a1a2a9
[ "MIT" ]
null
null
null
Problema 2/Problema2.py
ItaloCcosccoAlvis/ADA-UNSA---Lab2
00b221f66d1a2149c83b4eb79bbedf3b35a1a2a9
[ "MIT" ]
null
null
null
Problema 2/Problema2.py
ItaloCcosccoAlvis/ADA-UNSA---Lab2
00b221f66d1a2149c83b4eb79bbedf3b35a1a2a9
[ "MIT" ]
1
2021-11-01T17:22:48.000Z
2021-11-01T17:22:48.000Z
# Problema 2 # Generar una arreglo invertido de n nmeros y despus buscar un elemento # Casos de prueba test1 = generateList(18) test2 = generateList(89) print(searchInvertArray(test1,78)) print(searchInvertArray(test2,15))
24.944444
74
0.681514