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
d38c29f52b40e951d49b1e350345234b2a6592db
572
py
Python
algorithms/TrackR-CNN/mots_tools/mots_common/images_to_txt.py
Diego-Barbulo/TrackR-CNN
12eeaca0bd1903ee28822bd2341456404b6e0af4
[ "MIT" ]
1
2022-03-25T08:57:52.000Z
2022-03-25T08:57:52.000Z
algorithms/TrackR-CNN/mots_tools/mots_common/images_to_txt.py
Diego-Barbulo/TrackR-CNN
12eeaca0bd1903ee28822bd2341456404b6e0af4
[ "MIT" ]
null
null
null
algorithms/TrackR-CNN/mots_tools/mots_common/images_to_txt.py
Diego-Barbulo/TrackR-CNN
12eeaca0bd1903ee28822bd2341456404b6e0af4
[ "MIT" ]
1
2022-03-25T08:58:19.000Z
2022-03-25T08:58:19.000Z
import sys from mots_common.io import load_sequences, load_seqmap, write_sequences if __name__ == "__main__": if len(sys.argv) != 4: print("Usage: python images_to_txt.py gt_img_folder gt_txt_output_folder seqmap") sys.exit(1) gt_img_folder = sys.argv[1] gt_txt_output_folder = sys.argv[2] ...
30.105263
86
0.723776
d38e40999aab7b5c93fbc4223d42505d8ef713d4
707
py
Python
assets/migrations/0014_auto_20161105_1739.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
null
null
null
assets/migrations/0014_auto_20161105_1739.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
11
2020-03-24T15:29:46.000Z
2022-03-11T23:14:48.000Z
assets/migrations/0014_auto_20161105_1739.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models
28.28
105
0.637907
d38e59555b55370c405b1d51851796ba7dbc18c5
695
py
Python
pythontuts/nestedlists.py
antfarmar/hackerrank
87aa6ec8abd35746f209efdaa29b1799fd03baaa
[ "Unlicense" ]
1
2021-09-09T02:02:53.000Z
2021-09-09T02:02:53.000Z
pythontuts/nestedlists.py
antfarmar/hackerrank
87aa6ec8abd35746f209efdaa29b1799fd03baaa
[ "Unlicense" ]
null
null
null
pythontuts/nestedlists.py
antfarmar/hackerrank
87aa6ec8abd35746f209efdaa29b1799fd03baaa
[ "Unlicense" ]
null
null
null
#import sys #file = sys.stdin file = open( r".\data\nestedlists.txt" ) data = file.read().strip().split()[1:] records = [ [data[i], float(data[i+1])] for i in range(0, len(data), 2) ] print(records) low = min([r[1] for r in records]) dif = min([r[1] - low for r in records if r[1] != low]) print(dif) names = [ r[0] for...
25.740741
73
0.623022
d38f0abfb6dad1b66224355d43de5f31e2448b16
1,856
py
Python
src/koala/logging.py
hugovk/koala
a493b8159d559c39ef39d755d4e50a7bcc9bd4e5
[ "BSD-3-Clause" ]
4
2020-02-14T03:51:47.000Z
2022-02-01T03:53:50.000Z
src/koala/logging.py
hugovk/koala
a493b8159d559c39ef39d755d4e50a7bcc9bd4e5
[ "BSD-3-Clause" ]
278
2020-02-13T00:34:20.000Z
2022-03-31T11:56:09.000Z
src/koala/logging.py
hugovk/koala
a493b8159d559c39ef39d755d4e50a7bcc9bd4e5
[ "BSD-3-Clause" ]
12
2020-02-12T23:56:04.000Z
2022-01-20T01:39:35.000Z
# -*- coding: utf-8 -*- """ Logging configuration functions """ from logbook import NullHandler, FileHandler, NestedSetup from logbook.more import ColorizedStderrHandler from logbook.queues import ThreadedWrapperHandler def logging_options(parser): """Add cli options for logging to parser""" LOG_LEVELS = ("cr...
31.457627
76
0.657328
d3903637fa8b57e3aab7d4a1d3f9885bab2aabda
34
py
Python
build/lib/abp/adaptives/dqn/__init__.py
LinearZoetrope/abp
2459c1b4d77606c1d70715ce8378d738ba102f37
[ "MIT" ]
null
null
null
build/lib/abp/adaptives/dqn/__init__.py
LinearZoetrope/abp
2459c1b4d77606c1d70715ce8378d738ba102f37
[ "MIT" ]
1
2018-10-17T03:28:08.000Z
2018-10-17T03:28:08.000Z
build/lib/abp/adaptives/dqn/__init__.py
Zaerei/abp
2459c1b4d77606c1d70715ce8378d738ba102f37
[ "MIT" ]
null
null
null
from .adaptive import DQNAdaptive
17
33
0.852941
d391cc09726af2cc48341fbff68008cd2eedea8a
8,451
py
Python
test/testfiles.py
mvz/vb2py
6ea046f6fc202527a1b3fcd3ef5a67b969dea715
[ "BSD-3-Clause" ]
2
2015-12-01T10:52:36.000Z
2021-04-20T05:15:01.000Z
test/testfiles.py
mvz/vb2py
6ea046f6fc202527a1b3fcd3ef5a67b969dea715
[ "BSD-3-Clause" ]
4
2016-07-18T18:28:24.000Z
2016-07-19T08:30:14.000Z
test/testfiles.py
mvz/vb2py
6ea046f6fc202527a1b3fcd3ef5a67b969dea715
[ "BSD-3-Clause" ]
3
2015-07-15T21:08:19.000Z
2021-02-25T09:39:12.000Z
from testframework import * import os import vb2py.utils PATH = vb2py.utils.rootPath() # << File tests >> (1 of 14) # Open with Input tests.append((r""" Open "%s" For Input As #3 Input #3, a Input #3, b Input #3, c, d, e Input #3, f, g Close #3 """ % vb2py.utils.relativePath("test/testread.txt"), {'a' : 'Can you hear ...
20.121429
83
0.595196
d3921bbf727327b6abcb686de351663bb6fe7b42
181
py
Python
Reinforcement_Learning/gym-environments/setup.py
SpencerPao/ComputerVision
807ce1a1bb651a7a2248f074ab3caab95ea56a96
[ "MIT" ]
1
2021-11-22T21:52:35.000Z
2021-11-22T21:52:35.000Z
Reinforcement_Learning/gym-environments/setup.py
SpencerPao/ComputerVision
807ce1a1bb651a7a2248f074ab3caab95ea56a96
[ "MIT" ]
2
2021-11-23T02:02:56.000Z
2021-12-19T01:04:38.000Z
Reinforcement_Learning/gym-environments/setup.py
SpencerPao/ComputerVision
807ce1a1bb651a7a2248f074ab3caab95ea56a96
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='gym_dinorun', version='0.1', install_requires=['gym', 'selenium', 'numpy', 'pillow', 'pyvirtualdisplay', 'matplotlib'] )
25.857143
95
0.651934
d395a54f3004f10283773579ea5b4ac7ad799fb1
2,234
py
Python
openstack_dashboard/test/api_tests/cinder_tests.py
dreamhost/horizon
55569d540e6c1a6957d5127f9bae6a699ed60823
[ "Apache-2.0" ]
3
2017-02-13T15:11:01.000Z
2021-07-28T08:28:09.000Z
openstack_dashboard/test/api_tests/cinder_tests.py
yongquanf/horizon
9aad7fd6f66588fed7c27b720642e47a4a12854b
[ "Apache-2.0" ]
10
2015-02-19T20:27:04.000Z
2017-05-15T15:04:32.000Z
openstack_dashboard/test/api_tests/cinder_tests.py
yongquanf/horizon
9aad7fd6f66588fed7c27b720642e47a4a12854b
[ "Apache-2.0" ]
4
2015-05-05T08:17:28.000Z
2020-02-05T10:47:06.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Red Hat, 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 # #...
39.192982
78
0.715309
d3963f0cda7e231690d35ea142f4ffd430047c44
144
py
Python
admin-portal/queues/apps.py
oakbani/ksdp-portal
8f44b3cb0081a7f31b9c8121883dd51945a05520
[ "MIT" ]
null
null
null
admin-portal/queues/apps.py
oakbani/ksdp-portal
8f44b3cb0081a7f31b9c8121883dd51945a05520
[ "MIT" ]
null
null
null
admin-portal/queues/apps.py
oakbani/ksdp-portal
8f44b3cb0081a7f31b9c8121883dd51945a05520
[ "MIT" ]
1
2021-09-19T10:58:17.000Z
2021-09-19T10:58:17.000Z
from django.apps import AppConfig
20.571429
56
0.756944
d396697591d214281a9fa0a4c6107036bc957349
964
py
Python
tests/test_cron.py
acuros/noopy
aa128466068bfcdcd4be3aa16c1bdd48fd9e5a23
[ "MIT" ]
11
2016-01-16T06:00:39.000Z
2016-05-24T02:25:58.000Z
tests/test_cron.py
acuros/noopy
aa128466068bfcdcd4be3aa16c1bdd48fd9e5a23
[ "MIT" ]
4
2016-01-23T07:00:47.000Z
2016-05-09T02:49:26.000Z
tests/test_cron.py
acuros/noopy
aa128466068bfcdcd4be3aa16c1bdd48fd9e5a23
[ "MIT" ]
null
null
null
import pytest from noopy.cron.rule import RateEventRule, BaseEventRule, TimeEventRule from noopy.decorators import cron def test_rate_rule(rate_5_mins_rule): assert len(BaseEventRule.rules) == 0 assert rate_5_mins_rule.expression == 'rate(5 minutes)' def test_time_rule(time_5pm_rule): assert len(Bas...
25.368421
71
0.724066
d3969c2344d1fd1927504d6b7d57dcf4c82c4a97
5,420
py
Python
eCommerce/DoorDash/accountChecker.py
MiyakoYakota/PythonCheckers
275c8b674e3ee284548fcd0512f432792e0d8b6d
[ "Unlicense" ]
5
2021-02-24T23:37:52.000Z
2021-08-18T06:39:30.000Z
eCommerce/DoorDash/accountChecker.py
MiyakoYakota/PythonCheckers
275c8b674e3ee284548fcd0512f432792e0d8b6d
[ "Unlicense" ]
null
null
null
eCommerce/DoorDash/accountChecker.py
MiyakoYakota/PythonCheckers
275c8b674e3ee284548fcd0512f432792e0d8b6d
[ "Unlicense" ]
1
2021-03-26T06:21:20.000Z
2021-03-26T06:21:20.000Z
import requests import random import json from multiprocessing import Pool # Multi-Threading from multiprocessing import freeze_support # Windows Support requests.packages.urllib3.disable_warnings() accounts = [line.rstrip('\n') for line in open("combo.txt", 'r')] proxies = [line.rstrip('\n') for line in open("proxie...
43.015873
254
0.632103
d3969f3939b66414fab78446df9b5e37a00ed217
1,097
py
Python
Day1/solution.py
pbragapassarelli/Advent-of-Code-2020
6524449c0832e87aa6a94e67162378d315ec2386
[ "MIT" ]
null
null
null
Day1/solution.py
pbragapassarelli/Advent-of-Code-2020
6524449c0832e87aa6a94e67162378d315ec2386
[ "MIT" ]
null
null
null
Day1/solution.py
pbragapassarelli/Advent-of-Code-2020
6524449c0832e87aa6a94e67162378d315ec2386
[ "MIT" ]
null
null
null
import numpy as np data_file = 'input.txt' items = parse_input(data_file) solution1 = solver1(items) solution2 = solver2(items) print(f'The 2 items that sum to 2020 multiplied together is equal to {solution1}.') print(f'The 3 items that sum to 2020 multiplied together is equal to {solution2}.')
21.94
83
0.548769
d3970e3b64f228131e6989e131e2293b5c3f4cea
2,206
py
Python
analysis/log_analysis/check_util.py
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
1,178
2020-09-10T17:15:42.000Z
2022-03-31T14:59:35.000Z
analysis/log_analysis/check_util.py
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
1
2020-05-22T05:22:35.000Z
2020-05-22T05:22:35.000Z
analysis/log_analysis/check_util.py
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
107
2020-09-10T17:29:30.000Z
2022-03-18T09:00:14.000Z
# Copyright 2020 Makani Technologies LLC # # 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...
32.441176
77
0.729828
d3979bc7f150cc1b30133b1b6f53958cab7914a1
1,732
py
Python
resource/views.py
madre/PersonalWeb
27d88a3c6c4f86028887b0455b60eceeeb663e25
[ "Apache-2.0" ]
null
null
null
resource/views.py
madre/PersonalWeb
27d88a3c6c4f86028887b0455b60eceeeb663e25
[ "Apache-2.0" ]
null
null
null
resource/views.py
madre/PersonalWeb
27d88a3c6c4f86028887b0455b60eceeeb663e25
[ "Apache-2.0" ]
null
null
null
#coding=utf-8 """ __create_time__ = '13-10-18' __author__ = 'Madre' """ from django.shortcuts import get_object_or_404 from django.views.generic import ListView, DetailView from resource.models import Resource, Topic
29.355932
77
0.680139
d397b6b538c4e3913d34403efb0770025b618578
1,560
py
Python
tools/dota/dota_image.py
liuyanyi/mmdetection
d2003536af6f08cb9bd7a75e0444eef03ace4bb3
[ "Apache-2.0" ]
null
null
null
tools/dota/dota_image.py
liuyanyi/mmdetection
d2003536af6f08cb9bd7a75e0444eef03ace4bb3
[ "Apache-2.0" ]
null
null
null
tools/dota/dota_image.py
liuyanyi/mmdetection
d2003536af6f08cb9bd7a75e0444eef03ace4bb3
[ "Apache-2.0" ]
null
null
null
import os from argparse import ArgumentParser from mmdet.apis import (inference_detector, init_detector) if __name__ == '__main__': args = parse_args() main(args)
31.836735
76
0.608974
d39a467396d68d59b013218c77d34986d2e3fa03
6,698
py
Python
tx/tx_builder/bitcoin/cust_claim.py
fakecoinbase/boltlabs-incslashlibzkchannels
c0b43790c637f4ffd2956193b16f9ddcea94a3a4
[ "MIT" ]
68
2020-01-18T22:07:57.000Z
2022-02-03T02:30:55.000Z
tx/tx_builder/bitcoin/cust_claim.py
fakecoinbase/boltlabs-incslashlibzkchannels
c0b43790c637f4ffd2956193b16f9ddcea94a3a4
[ "MIT" ]
2
2020-04-29T02:02:49.000Z
2021-04-08T11:23:48.000Z
tx/tx_builder/bitcoin/cust_claim.py
fakecoinbase/boltlabs-incslashlibzkchannels
c0b43790c637f4ffd2956193b16f9ddcea94a3a4
[ "MIT" ]
3
2021-04-04T05:04:16.000Z
2022-01-26T10:14:46.000Z
# p2wsh input (2-of-2 multisig) # p2wpkh output import argparse import hashlib import ecdsa def hash160(s): '''sha256 followed by ripemd160''' return hashlib.new('ripemd160', hashlib.sha256(s).digest()).digest() ################################ parser = argparse.ArgumentParser() parser.add_argument("--cust_...
30.584475
132
0.711854
d39bd950032d2e2a2529a4b93df171309d5e27e8
31
py
Python
test03.py
akim0919/Feedback
9d511e11931c82dd767ff1c80104268062d3338f
[ "MIT" ]
null
null
null
test03.py
akim0919/Feedback
9d511e11931c82dd767ff1c80104268062d3338f
[ "MIT" ]
null
null
null
test03.py
akim0919/Feedback
9d511e11931c82dd767ff1c80104268062d3338f
[ "MIT" ]
null
null
null
b = 10; c = 20; a=b+c; print(a)
10.333333
15
0.483871
d39cc89da2fe3f755861ff009c6692cb7c53603a
9,539
py
Python
nessus_download_merge_and_upload.py
jfbethlehem/Scripts
043a1713d6666950f9cd2bf9b67aa3408865cdb5
[ "BSD-3-Clause" ]
null
null
null
nessus_download_merge_and_upload.py
jfbethlehem/Scripts
043a1713d6666950f9cd2bf9b67aa3408865cdb5
[ "BSD-3-Clause" ]
null
null
null
nessus_download_merge_and_upload.py
jfbethlehem/Scripts
043a1713d6666950f9cd2bf9b67aa3408865cdb5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # requires python3 #ensure destpath exists and url, merged_folder_id, username and password are correct #redhat: scl enable rh-python34 -- python3 /root/nessus_download_merge_and_upload.py #debian: python3 /root/nessus_download_merge_and_upload.py import requests, json, sys, os, getpass, time,...
38.46371
119
0.542824
d39cdaa5b37326dbdc6348bf90bcf9d2d3630188
3,162
py
Python
examples/generate_index.py
WilliamIX/BioCRNPyler
737e87fc99510071bb4b1b6141b2043243c25673
[ "BSD-3-Clause" ]
2
2022-01-12T19:56:25.000Z
2022-03-07T17:03:46.000Z
examples/generate_index.py
WilliamIX/BioCRNPyler
737e87fc99510071bb4b1b6141b2043243c25673
[ "BSD-3-Clause" ]
41
2018-10-13T20:31:49.000Z
2019-08-14T14:59:55.000Z
examples/generate_index.py
BuildACell/bioCRNpyler
737e87fc99510071bb4b1b6141b2043243c25673
[ "BSD-3-Clause" ]
2
2018-10-19T23:46:56.000Z
2018-11-19T19:31:08.000Z
import sys import inspect import biocrnpyler from os import listdir from os.path import isfile from os.path import join # Get lists of bioCRNpyler objects of different types species = [ (n, o) for (n, o) in inspect.getmembers(sys.modules["biocrnpyler"]) if inspect.isclass(o) and issubclass(o, biocrnpyler.Speci...
29.009174
77
0.63346
d39d6f40bb4f840201871e9deed72b467b9e58e6
3,998
py
Python
src/datamgr/datamanager/collection/common/process_nodes/datamodel.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/datamgr/datamanager/collection/common/process_nodes/datamodel.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/datamgr/datamanager/collection/common/process_nodes/datamodel.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE is licensed under the MIT License. License for BK-BASE : ---------------------------------------------------------------...
37.018519
111
0.669085
d3a01df5042d3b5b926bb9ab84e5cc8b7a1afdf6
1,304
py
Python
tilescraper.py
azaroth42/iiif-harvester
42202bb2edfbaceab594755b26ee75a81baa7212
[ "Apache-2.0" ]
2
2015-08-14T07:36:33.000Z
2019-03-18T00:10:02.000Z
tilescraper.py
azaroth42/iiif-harvester
42202bb2edfbaceab594755b26ee75a81baa7212
[ "Apache-2.0" ]
null
null
null
tilescraper.py
azaroth42/iiif-harvester
42202bb2edfbaceab594755b26ee75a81baa7212
[ "Apache-2.0" ]
null
null
null
from PIL import Image import json, StringIO, requests import time import robotparser import re import sys host = "http://dlss-dev-azaroth.stanford.edu/" service = host + "services/iiif/f1rc/" resp = requests.get(service + "info.json") js = json.loads(resp.text) h = js['height'] w = js['width'] img = Image.new("RGB", ...
25.076923
72
0.680982
d3a16d8c155d791b21ae38f094534bf735e04c1d
3,353
py
Python
lab09/fusion_gui.py
chinesefirewall/Robotics
4afec3e12f88b0a92cf870ec62787f8a0682a38a
[ "MIT" ]
1
2020-09-11T12:46:22.000Z
2020-09-11T12:46:22.000Z
lab09/fusion_gui.py
chinesefirewall/Robotics
4afec3e12f88b0a92cf870ec62787f8a0682a38a
[ "MIT" ]
null
null
null
lab09/fusion_gui.py
chinesefirewall/Robotics
4afec3e12f88b0a92cf870ec62787f8a0682a38a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This file imports your code from localization_logic.py and uses class Visualisation from visualisation.py. Additionally, it imports code from sensor_fusion.py file. You can change the code at your own risk! """ import easygopigo3 as go import signal import pyqtgraph a...
29.672566
149
0.698479
d3a1a2d7710ed6f28bb8bbf86045de75345d5240
348
py
Python
api/mira/api_config.py
tnc-ca-geo/animl-ml
95aeb1e99fddf7199692144ef3425340d6b8dc3c
[ "MIT" ]
1
2020-03-28T02:10:25.000Z
2020-03-28T02:10:25.000Z
api/mira/api_config.py
tnc-ca-geo/animl-ml
95aeb1e99fddf7199692144ef3425340d6b8dc3c
[ "MIT" ]
46
2020-03-18T22:44:30.000Z
2022-03-12T00:51:44.000Z
api/mira/api_config.py
tnc-ca-geo/animl-ml
95aeb1e99fddf7199692144ef3425340d6b8dc3c
[ "MIT" ]
null
null
null
""" MIRA API config """ MODELS = [ { "endpoint_name": "mira-large", "classes": ["fox", "skunk", "empty"] }, { "endpoint_name": "mira-small", "classes": ["rodent", "empty"] } ] HEADERS = { "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Headers": "Content-Type", "Access-Cont...
17.4
51
0.566092
d3a1d8fc62c8a6f30f970e9bb73197489ee49062
702
py
Python
examples/gpio.py
nzsmith1/CapableRobot_USBHub_Driver
1ec323c485be25f122ace7be20fccba39cdec517
[ "MIT" ]
16
2019-07-01T23:47:22.000Z
2022-02-14T21:16:33.000Z
examples/gpio.py
d-c-d/CapableRobot_USBHub_Driver
27579ac028bc2e71ce94983c7183d18fc82422a4
[ "MIT" ]
2
2020-01-08T08:30:39.000Z
2022-02-23T00:49:09.000Z
examples/gpio.py
d-c-d/CapableRobot_USBHub_Driver
27579ac028bc2e71ce94983c7183d18fc82422a4
[ "MIT" ]
6
2020-01-07T15:37:23.000Z
2022-02-07T08:25:36.000Z
import os, sys, inspect, logging, time lib_folder = os.path.join(os.path.split(inspect.getfile( inspect.currentframe() ))[0], '..') lib_load = os.path.realpath(os.path.abspath(lib_folder)) if lib_load not in sys.path: sys.path.insert(0, lib_load) import capablerobot_usbhub hub = capablerobot_usbhub.USBHub() ##...
27
92
0.692308
d3a22369e4aa53efec521f3dd343a0ada49809f4
3,545
py
Python
AdventOfCode2019/day05.py
Matematik411/Advent-of-Code-Practice
f556ae8b84526368184f72a811949ec1fd4b686e
[ "MIT" ]
null
null
null
AdventOfCode2019/day05.py
Matematik411/Advent-of-Code-Practice
f556ae8b84526368184f72a811949ec1fd4b686e
[ "MIT" ]
null
null
null
AdventOfCode2019/day05.py
Matematik411/Advent-of-Code-Practice
f556ae8b84526368184f72a811949ec1fd4b686e
[ "MIT" ]
null
null
null
start = input() # part one inputs_1 = [1] computer = Int_code(start, inputs_1) computer.run(0) # part two inputs_2 = [5] computer = Int_code(start, inputs_2) computer.run(0) # # test # inputs = [3] # computer = Int_code(start, inputs) # computer.run(0)
27.695313
87
0.414386
d3a2ec6e173d0fb72a68a3b63d9761d99c77b5bc
175
py
Python
src/misc/exceptions.py
KirtusJ/BirdBot
4440364caefa6ec9acf1bc7cf38605b1d90de20e
[ "MIT" ]
null
null
null
src/misc/exceptions.py
KirtusJ/BirdBot
4440364caefa6ec9acf1bc7cf38605b1d90de20e
[ "MIT" ]
null
null
null
src/misc/exceptions.py
KirtusJ/BirdBot
4440364caefa6ec9acf1bc7cf38605b1d90de20e
[ "MIT" ]
null
null
null
from discord.ext import commands
21.875
42
0.834286
d3a3634cf150b07141931e314ae22846c615fab5
1,012
py
Python
setup.py
HurricaneLabs/python-pycinga
52b04367c3948cac11ee77d466df6222d0d30034
[ "MIT" ]
4
2018-02-08T21:19:04.000Z
2020-12-17T23:31:57.000Z
setup.py
HurricaneLabs/python-pycinga
52b04367c3948cac11ee77d466df6222d0d30034
[ "MIT" ]
3
2018-03-05T17:15:24.000Z
2019-06-28T14:17:55.000Z
setup.py
HurricaneLabs/python-pycinga
52b04367c3948cac11ee77d466df6222d0d30034
[ "MIT" ]
2
2019-08-25T17:14:27.000Z
2020-05-31T09:47:27.000Z
from setuptools import setup # Get the long description by reading the README try: readme_content = open("README.rst").read() except Exception as e: readme_content = "" # Create the actual setup method setup( name="pycinga", version="1.0.0", description="Python library to write Icinga plugins.", ...
31.625
71
0.667984
d3a3af9d53824b3acab405765cd51062c38ff21a
4,177
py
Python
fluorelax/fluorelax.py
darianyang/fluorelax
4ca816aa157f23c84eb4cc6085200668723d1426
[ "BSD-3-Clause" ]
null
null
null
fluorelax/fluorelax.py
darianyang/fluorelax
4ca816aa157f23c84eb4cc6085200668723d1426
[ "BSD-3-Clause" ]
null
null
null
fluorelax/fluorelax.py
darianyang/fluorelax
4ca816aa157f23c84eb4cc6085200668723d1426
[ "BSD-3-Clause" ]
1
2022-03-27T18:24:49.000Z
2022-03-27T18:24:49.000Z
""" Main call. TODO: - parallize the mda processing portion? (dask) """ import numpy as np import matplotlib.pyplot as plt import MDAnalysis as mda from command_line import create_cmd_arguments, handle_command_line from calc_relax import Calc_19F_Relaxation from calc_fh_dists import Calc_FH_Dists from plot_relax imp...
33.95935
113
0.620541
d3a43004f9dd4f6906f4f5c48fff5899dc1d9936
6,404
py
Python
neural/neural.py
pqn/neural
505d8fb1c58868a7292c40caab4a22b577615886
[ "BSD-3-Clause" ]
2
2016-12-21T04:53:31.000Z
2016-12-21T04:53:48.000Z
neural/neural.py
pqn/neural
505d8fb1c58868a7292c40caab4a22b577615886
[ "BSD-3-Clause" ]
null
null
null
neural/neural.py
pqn/neural
505d8fb1c58868a7292c40caab4a22b577615886
[ "BSD-3-Clause" ]
1
2020-05-24T13:07:48.000Z
2020-05-24T13:07:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division import numpy as np from scipy.optimize import fmin_bfgs
47.437037
182
0.601655
d3a54274149fad5dcc05653ba4572f66ebc4a288
4,734
py
Python
tests/test_beacon_client.py
HikaruG/spectroscope
fa132044b95ca7e3a93d56f51ae80af743b9e8a3
[ "Apache-2.0" ]
null
null
null
tests/test_beacon_client.py
HikaruG/spectroscope
fa132044b95ca7e3a93d56f51ae80af743b9e8a3
[ "Apache-2.0" ]
3
2021-07-26T10:03:12.000Z
2021-07-26T11:48:47.000Z
tests/test_beacon_client.py
HikaruG/spectroscope
fa132044b95ca7e3a93d56f51ae80af743b9e8a3
[ "Apache-2.0" ]
1
2021-07-19T07:44:08.000Z
2021-07-19T07:44:08.000Z
import unittest from unittest.mock import Mock, call from ethereumapis.v1alpha1 import beacon_chain_pb2, validator_pb2 from spectroscope.clients.beacon_client import BeaconChainStreamer from spectroscope.model import ChainTimestamp, Event, ValidatorIdentity from spectroscope.model.update import ( ValidatorBalanceU...
34.554745
84
0.649556
d3a5d6c9ee0959d8b6a152abcf1fe990458d7e86
1,519
py
Python
src/box.py
ertugrullKara/GarbageDetector
68e267e4036ef05c603c1193462b5230b6751857
[ "MIT" ]
1
2019-05-21T01:06:42.000Z
2019-05-21T01:06:42.000Z
src/box.py
ertugrullKara/GarbageDetector
68e267e4036ef05c603c1193462b5230b6751857
[ "MIT" ]
8
2020-01-28T21:41:58.000Z
2022-03-11T23:17:50.000Z
src/box.py
ertugrullKara/GarbageDetector
68e267e4036ef05c603c1193462b5230b6751857
[ "MIT" ]
null
null
null
import numpy as np
23.015152
90
0.581962
d3a7986a5b2016d4c1b0a5d77ceeb0476e0f3297
904
py
Python
cplusplus/level1_single_api/4_op_dev/1_custom_op/cmake/util/insert_op_info.py
Dedederek/samples
31d99de20af2f7046556e0f48c4b789b99e422f8
[ "Apache-2.0" ]
5
2021-02-26T17:58:12.000Z
2022-03-15T06:21:28.000Z
cplusplus/level1_single_api/4_op_dev/1_custom_op/cmake/util/insert_op_info.py
Dedederek/samples
31d99de20af2f7046556e0f48c4b789b99e422f8
[ "Apache-2.0" ]
null
null
null
cplusplus/level1_single_api/4_op_dev/1_custom_op/cmake/util/insert_op_info.py
Dedederek/samples
31d99de20af2f7046556e0f48c4b789b99e422f8
[ "Apache-2.0" ]
5
2021-03-22T21:13:11.000Z
2021-09-24T06:52:33.000Z
# -*- coding: utf-8 -*- """ Created on Feb 28 20:56:45 2020 Copyright (c) Huawei Technologies Co., Ltd. 2019. All rights reserved. """ import json import os import sys if __name__ == '__main__': if len(sys.argv) != 3: print(sys.argv) print('argv error, inert_op_info.py your_op_file lib_op_file') ...
26.588235
70
0.559735
d3a81b924210e6b5f2ecf0bea93f3ef9cc255120
16,982
py
Python
tests/contour_extractors/test_utils.py
yamathcy/motif
3f43568e59f0879fbab5ef278e9e687b7cac3dd6
[ "MIT" ]
21
2016-08-22T22:00:49.000Z
2020-03-29T04:15:19.000Z
tests/contour_extractors/test_utils.py
yamathcy/motif
3f43568e59f0879fbab5ef278e9e687b7cac3dd6
[ "MIT" ]
22
2016-08-28T01:07:08.000Z
2018-02-07T14:38:26.000Z
tests/contour_extractors/test_utils.py
yamathcy/motif
3f43568e59f0879fbab5ef278e9e687b7cac3dd6
[ "MIT" ]
3
2017-01-12T10:04:27.000Z
2022-01-06T13:25:48.000Z
"""Tests for motif/contour_extractors/utils.py """ import unittest import numpy as np from motif.contour_extractors import utils
31.565056
79
0.554469
d3a9236251a872a4b147f5fa34a60d6f71d1589b
667
py
Python
unit_workaround.py
ltfish/nose2
e47363dad10056cf906daf387613c21d74f37e56
[ "BSD-2-Clause" ]
null
null
null
unit_workaround.py
ltfish/nose2
e47363dad10056cf906daf387613c21d74f37e56
[ "BSD-2-Clause" ]
null
null
null
unit_workaround.py
ltfish/nose2
e47363dad10056cf906daf387613c21d74f37e56
[ "BSD-2-Clause" ]
null
null
null
""" Python 2.7 Multiprocessing Unittest workaround. ===================================================================== Due the manner in which multiprocessing is handled on windows and the fact that __main__.py are actually called __main__ This workaround bypasses the fact that the calling unittest script is called...
29
69
0.704648
d3a9d2cef0c7d22cdcf1bc095a7461abc0d258d2
363
py
Python
test/test_application.py
ChreSyr/baopig
6264ab9a851b1ed0a031292abe7f159a53b3fc5e
[ "MIT" ]
null
null
null
test/test_application.py
ChreSyr/baopig
6264ab9a851b1ed0a031292abe7f159a53b3fc5e
[ "MIT" ]
null
null
null
test/test_application.py
ChreSyr/baopig
6264ab9a851b1ed0a031292abe7f159a53b3fc5e
[ "MIT" ]
null
null
null
import unittest import docs as bp if __name__ == '__main__': unittest.main()
19.105263
46
0.650138
d3aa1468d93ea00d98bf717e852d3d27cc0997a2
7,969
py
Python
lib/googlecloudsdk/gcloud/sdktools/root/info.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/gcloud/sdktools/root/info.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/gcloud/sdktools/root/info.py
IsaacHuang/google-cloud-sdk
52afa5d1a75dff08f4f5380c5cccc015bf796ca5
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Google Inc. All Rights Reserved. """A command that prints out information about your gcloud environment.""" import os import StringIO import sys import textwrap from googlecloudsdk.calliope import base from googlecloudsdk.core import config from googlecloudsdk.core import log from googlecloudsdk.cor...
32.659836
79
0.654913
d3aa5533cd819bec8e09e75cda19441c06cdc1f9
269
py
Python
api/admin_urls.py
chenxiaoli/auth21
a2b15ecb883416e011da03d6ec066459fa28f693
[ "MIT" ]
null
null
null
api/admin_urls.py
chenxiaoli/auth21
a2b15ecb883416e011da03d6ec066459fa28f693
[ "MIT" ]
null
null
null
api/admin_urls.py
chenxiaoli/auth21
a2b15ecb883416e011da03d6ec066459fa28f693
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls import include, url from .user_admin_views import UserAdminListViewSet user_admin_list=UserAdminListViewSet.as_view({ "get":"get" }) urlpatterns = ( url(r'^user$', user_admin_list, name='user-admin-list'), )
15.823529
60
0.702602
d3aa7a46e2eb468c36ac6cd5574de318dee4cff0
283
py
Python
kubernetes_typed/client/models/v1_empty_dir_volume_source.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
22
2020-12-10T13:06:02.000Z
2022-02-13T21:58:15.000Z
kubernetes_typed/client/models/v1_empty_dir_volume_source.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
4
2021-03-08T07:06:12.000Z
2022-03-29T23:41:45.000Z
kubernetes_typed/client/models/v1_empty_dir_volume_source.py
nikhiljha/kubernetes-typed
4f4b969aa400c88306f92560e56bda6d19b2a895
[ "Apache-2.0" ]
2
2021-09-05T19:18:28.000Z
2022-03-14T02:56:17.000Z
# Code generated by `typeddictgen`. DO NOT EDIT. """V1EmptyDirVolumeSourceDict generated type.""" from typing import TypedDict V1EmptyDirVolumeSourceDict = TypedDict( "V1EmptyDirVolumeSourceDict", { "medium": str, "sizeLimit": str, }, total=False, )
21.769231
48
0.678445
d3aafbadefc12b6d1ab958ddf0138fdc7ba0663d
5,537
py
Python
omstools/RNAseq/lncRNA/classify/get_gene_cat_v3.py
bioShaun/OM004script
d604b565ae220f2ec7bfba7a8ef44018e7a33c12
[ "MIT" ]
null
null
null
omstools/RNAseq/lncRNA/classify/get_gene_cat_v3.py
bioShaun/OM004script
d604b565ae220f2ec7bfba7a8ef44018e7a33c12
[ "MIT" ]
null
null
null
omstools/RNAseq/lncRNA/classify/get_gene_cat_v3.py
bioShaun/OM004script
d604b565ae220f2ec7bfba7a8ef44018e7a33c12
[ "MIT" ]
1
2018-05-06T03:14:39.000Z
2018-05-06T03:14:39.000Z
import pandas as pd import numpy as np import click import os PRIORITY = ('Read-through', 'Protein coding', 'Pseudogene', 'TUCP', 'lncrna', 'lncRNA', 'other', 'ncRNA,other') type_map = { 'other': 'lncRNA', 'ncRNA,other': 'lncRNA', 'lncrna': 'lncRNA', 'protein_coding': 'Protein coding', ...
38.451389
83
0.642767
d3ab32f767c6d6e9a4d044cf91516005f20c48e6
1,236
py
Python
awsf_cwl_v1/split_num.py
pkerpedjiev/tibanna
8d8333bc7757076914c2bafbd68ee24c4ad611f6
[ "MIT" ]
null
null
null
awsf_cwl_v1/split_num.py
pkerpedjiev/tibanna
8d8333bc7757076914c2bafbd68ee24c4ad611f6
[ "MIT" ]
null
null
null
awsf_cwl_v1/split_num.py
pkerpedjiev/tibanna
8d8333bc7757076914c2bafbd68ee24c4ad611f6
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import csv if __name__ == "__main__": import argparse parser = argparse.ArgumentParser(description="Arguments") parser.add_argument("-c", "--chrom", help="Chrom.size file, tab-delimited") parser.add_argument("-M", "--max_split_size", help="Maximum split size") args...
24.72
80
0.590615
d3ac9b1c75059ea7b2c543d6cbf7a13cdd193523
94
py
Python
bcbio/picard/metrics.py
a113n/bcbio-nextgen
1d4afef27ad2e84a4ecb6145ccc5058f2abb4616
[ "MIT" ]
418
2015-01-01T18:21:17.000Z
2018-03-02T07:26:28.000Z
bcbio/picard/metrics.py
ahmedelhosseiny/bcbio-nextgen
b5618f3c100a1a5c04bd5c8acad8f96d0587e41c
[ "MIT" ]
1,634
2015-01-04T11:43:43.000Z
2018-03-05T18:06:39.000Z
bcbio/picard/metrics.py
ahmedelhosseiny/bcbio-nextgen
b5618f3c100a1a5c04bd5c8acad8f96d0587e41c
[ "MIT" ]
218
2015-01-26T05:58:18.000Z
2018-03-03T05:50:05.000Z
# Back compatibility -- use broad subdirectory for new code from bcbio.broad.metrics import *
31.333333
59
0.787234
d3adf0ba5a755617d8f7bd91e07d748b2daa5d68
1,019
py
Python
databases/loja.py
danielicapui/programa-o-avancada
d0e5b876b951ae04a46ffcda0dc0143e3f7114d9
[ "MIT" ]
null
null
null
databases/loja.py
danielicapui/programa-o-avancada
d0e5b876b951ae04a46ffcda0dc0143e3f7114d9
[ "MIT" ]
null
null
null
databases/loja.py
danielicapui/programa-o-avancada
d0e5b876b951ae04a46ffcda0dc0143e3f7114d9
[ "MIT" ]
null
null
null
from utills import * conn,cur=start("loja") produtos_p="produto_id integer primary key autoincrement,nome text,valor real,categoria_id integer,constraint fk_categorias foreign key (categoria_id) references categorias(categoria_id)" criarTabela("categorias","categoria_id integer primary key, categoria text") criarTabela...
39.192308
187
0.673209
d3ae6c9a673c6e6d9173068f735788f9baf4cdf3
140
py
Python
bbb/templatetags/is_bbb_mod.py
cmd-ev/voctoconf
5d2c1ca4f1da01b66983f5a562eb8eb6babe0452
[ "MIT" ]
21
2020-08-24T13:27:03.000Z
2021-10-15T09:17:46.000Z
bbb/templatetags/is_bbb_mod.py
cmd-ev/voctoconf
5d2c1ca4f1da01b66983f5a562eb8eb6babe0452
[ "MIT" ]
null
null
null
bbb/templatetags/is_bbb_mod.py
cmd-ev/voctoconf
5d2c1ca4f1da01b66983f5a562eb8eb6babe0452
[ "MIT" ]
5
2020-08-25T16:34:51.000Z
2021-02-19T04:48:10.000Z
from django import template register = template.Library()
17.5
34
0.771429
d3ae9079796610b93f0f40736e8da6576b598166
1,538
py
Python
main/qtdashboard/obsolete/grab_handle.py
Hijtec/Breach_rides_elevator
8cdb9fec16ff4458d1505f8da08fb67e86ef0c1a
[ "MIT" ]
1
2020-03-18T08:58:32.000Z
2020-03-18T08:58:32.000Z
main/qtdashboard/obsolete/grab_handle.py
Hijtec/Breach_rides_elevator
8cdb9fec16ff4458d1505f8da08fb67e86ef0c1a
[ "MIT" ]
2
2020-04-17T00:25:39.000Z
2020-04-18T11:51:37.000Z
main/qtdashboard/obsolete/grab_handle.py
Hijtec/Breach_rides_elevator
8cdb9fec16ff4458d1505f8da08fb67e86ef0c1a
[ "MIT" ]
1
2020-04-17T00:09:25.000Z
2020-04-17T00:09:25.000Z
# This Python file uses the following encoding: utf-8 import cv2 from multiprocessing import shared_memory import numpy as np import time videoObject = Video(id = 1, camera_number = 0) frame = videoObject.read_next_video_frame() time.sleep(5) #frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) print(...
27.963636
85
0.583875
d3af3caa6c9db054915893aae3c8cc506266ac99
8,437
py
Python
analysis/config/config_UltraLegacy18.py
cms-btv-pog/jet-tagging-sf
c418e13aa4eac5522818d5f5ad3db2a0c81ec52e
[ "Apache-2.0" ]
3
2020-01-22T08:30:14.000Z
2021-12-27T18:47:43.000Z
analysis/config/config_UltraLegacy18.py
cms-btv-pog/jet-tagging-sf
c418e13aa4eac5522818d5f5ad3db2a0c81ec52e
[ "Apache-2.0" ]
null
null
null
analysis/config/config_UltraLegacy18.py
cms-btv-pog/jet-tagging-sf
c418e13aa4eac5522818d5f5ad3db2a0c81ec52e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import scinum as sn import numpy as np
37.331858
126
0.620244
d3b01feaa36c37cf9d815ac17249c1a9664b696f
8,557
py
Python
TD3_based_DRL/TD3IARL.py
wujingda/Human-in-the-loop-Deep-Reinforcement-Learning-Hug-DRL-
d00667017d586fbfc6487bd6ac8dd5396acae0d1
[ "MIT" ]
8
2021-07-13T10:05:42.000Z
2022-03-06T03:06:21.000Z
TD3_based_DRL/TD3IARL.py
wujingda/Human-in-the-loop-Deep-Reinforcement-Learning
d00667017d586fbfc6487bd6ac8dd5396acae0d1
[ "MIT" ]
null
null
null
TD3_based_DRL/TD3IARL.py
wujingda/Human-in-the-loop-Deep-Reinforcement-Learning
d00667017d586fbfc6487bd6ac8dd5396acae0d1
[ "MIT" ]
null
null
null
''' This algorithm is a IA-RL implementation on off-policy TD3 algorithm, to check the original IA-RL algorithm you can refer to https://arxiv.org/abs/1811.06187. Since it is a baseline algorithm, the descriptions are mostly omitted, please visit the HUGTD3.py for more implementation details ''' import pickle import n...
38.545045
133
0.621479
6c8f9d33f676329666350cb8e333eb9373e829db
4,477
py
Python
qihu.py
Yumore/getapks
b79744152629bed58f01ea39bb409e55b8b6d9ee
[ "MIT" ]
2
2021-07-03T22:59:02.000Z
2021-07-05T12:15:01.000Z
qihu.py
Yumore/getapks
b79744152629bed58f01ea39bb409e55b8b6d9ee
[ "MIT" ]
null
null
null
qihu.py
Yumore/getapks
b79744152629bed58f01ea39bb409e55b8b6d9ee
[ "MIT" ]
null
null
null
#!/usr/bin/evn python # jojo_xia import os import re import socket from urllib import request from urllib.error import ContentTooShortError import apk_info import data_utils import file_utils socket.setdefaulttimeout(30)
44.326733
163
0.51463
6c90866da3558fa85354b9fb39f92f13564b2e73
469
py
Python
src/py_call.py
Lucien-MG/htools
c7cce486a101b182b03f0ac69e168b767a5c8d16
[ "MIT" ]
null
null
null
src/py_call.py
Lucien-MG/htools
c7cce486a101b182b03f0ac69e168b767a5c8d16
[ "MIT" ]
null
null
null
src/py_call.py
Lucien-MG/htools
c7cce486a101b182b03f0ac69e168b767a5c8d16
[ "MIT" ]
null
null
null
#/bin/python3 import os import subprocess # Const: with open("config",'r') as conf: VENV_A = conf.read() PYTHON="python" PYTHON3_VENV_A = os.path.join(VENV_A, "bin", "python3") PIP="" PIP_VENV_A= os.path.join(VENV_A, "bin", "pip3") # Functions:
17.37037
55
0.697228
6c90ae6d334508870ec397a68e356d8b100c2c9c
2,900
py
Python
dramkit/_tmp/utils_lottery.py
Genlovy-Hoo/dramkit
fa3d2f35ebe9effea88a19e49d876b43d3c5c4c7
[ "MIT" ]
null
null
null
dramkit/_tmp/utils_lottery.py
Genlovy-Hoo/dramkit
fa3d2f35ebe9effea88a19e49d876b43d3c5c4c7
[ "MIT" ]
null
null
null
dramkit/_tmp/utils_lottery.py
Genlovy-Hoo/dramkit
fa3d2f35ebe9effea88a19e49d876b43d3c5c4c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import time import numpy as np import pandas as pd def get_1bet_nums(n, Pmax, Pmin=1, **kwargs): ''' Parameters ---------- n: Pmax: Pmin: Returns ------- bet_nums: ''' # bet_nums = np.random.choice(range(Pmin, Pmax+1), siz...
29.292929
91
0.53069
6c921bf76ccad8c233e5e7ae6b187fed9a3a6457
1,500
py
Python
src/negotiating_agent/venv/lib/python3.8/site-packages/geniusweb/bidspace/AllBidsList.py
HahaBill/CollaborativeAI
f771cd2f34774c74c58e49a7e983d6244ea35eff
[ "MIT" ]
1
2022-02-17T19:14:46.000Z
2022-02-17T19:14:46.000Z
src/negotiating_agent/venv/lib/python3.8/site-packages/geniusweb/bidspace/AllBidsList.py
HahaBill/CollaborativeAI
f771cd2f34774c74c58e49a7e983d6244ea35eff
[ "MIT" ]
null
null
null
src/negotiating_agent/venv/lib/python3.8/site-packages/geniusweb/bidspace/AllBidsList.py
HahaBill/CollaborativeAI
f771cd2f34774c74c58e49a7e983d6244ea35eff
[ "MIT" ]
null
null
null
from typing import Dict, List from tudelft.utilities.immutablelist.AbstractImmutableList import AbstractImmutableList from tudelft.utilities.immutablelist.ImmutableList import ImmutableList from tudelft.utilities.immutablelist.Outer import Outer from geniusweb.issuevalue.Bid import Bid from geniusweb.issuevalue.Domai...
34.090909
95
0.696
6c9355764a56246685f8f050d7a2762e9242d568
18,061
py
Python
broker/jobs/tests/handover.py
yiu31802/ave
e46fc357f9464d5beaf42568a74bb95e6b1b8037
[ "BSD-3-Clause" ]
17
2016-11-16T08:09:49.000Z
2021-08-12T06:38:09.000Z
broker/jobs/tests/handover.py
yiu31802/ave
e46fc357f9464d5beaf42568a74bb95e6b1b8037
[ "BSD-3-Clause" ]
null
null
null
broker/jobs/tests/handover.py
yiu31802/ave
e46fc357f9464d5beaf42568a74bb95e6b1b8037
[ "BSD-3-Clause" ]
12
2016-11-20T15:34:03.000Z
2020-08-04T00:26:11.000Z
# Copyright (C) 2013 Sony Mobile Communications AB. # All rights, including trade secret rights, reserved. import json import time import traceback from ave.network.process import Process from ave.network.exceptions import * from ave.broker._broker import validate_serialized, RemoteBroker, Broker from ave.brok...
31.410435
82
0.634406
6c961f209eec16468ab70082c8a348fbaef551da
3,250
py
Python
app/v1/core/auth/__init__.py
speduardo/flask-boilerplate
d50d8d0f15a08c4905a2029b0ae9637489624c9a
[ "MIT" ]
1
2020-05-26T01:53:58.000Z
2020-05-26T01:53:58.000Z
app/v1/core/auth/__init__.py
speduardo/flask-boilerplate
d50d8d0f15a08c4905a2029b0ae9637489624c9a
[ "MIT" ]
null
null
null
app/v1/core/auth/__init__.py
speduardo/flask-boilerplate
d50d8d0f15a08c4905a2029b0ae9637489624c9a
[ "MIT" ]
null
null
null
from flask import jsonify from flask_jwt_extended import JWTManager from app.v1.messages import MSG_INVALID_CREDENTIALS, MSG_TOKEN_EXPIRED from app.v1.modules.users.daos import UserDAO jwt = JWTManager() def init_app(app, **kwargs): # pylint: disable=unused-argument """ Auth extension initialization po...
19.117647
70
0.638154
6c97c8909880bfcfc2e504aa9472d6979242b5cd
3,845
py
Python
plogical/CyberCPLogFileWriter.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
plogical/CyberCPLogFileWriter.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
plogical/CyberCPLogFileWriter.py
uzairAK/serverom-panel
3dcde05ad618e6bef280db7d3180f926fe2ab1db
[ "MIT" ]
null
null
null
import subprocess import time import socket import os import smtplib
34.330357
115
0.530299
6c98706e61936bfb19561cc8e9e0f4a5b6b8ad20
38
py
Python
tensorflow-extensions/dataset/__init__.py
king-michael/tensorflow-extensions
c563d022e95d063f221a1b030db112039b9c407e
[ "MIT" ]
null
null
null
tensorflow-extensions/dataset/__init__.py
king-michael/tensorflow-extensions
c563d022e95d063f221a1b030db112039b9c407e
[ "MIT" ]
null
null
null
tensorflow-extensions/dataset/__init__.py
king-michael/tensorflow-extensions
c563d022e95d063f221a1b030db112039b9c407e
[ "MIT" ]
null
null
null
from .NumpyDataset import NumpyDataset
38
38
0.894737
6c9944dc5b1ae363873ef1748ed4ad89a74178d6
261
py
Python
register_classes.py
Iherrbenza/SMB100A_Python
80af83faa306a31f323869c2d20f121bb941d85b
[ "BSD-3-Clause" ]
null
null
null
register_classes.py
Iherrbenza/SMB100A_Python
80af83faa306a31f323869c2d20f121bb941d85b
[ "BSD-3-Clause" ]
null
null
null
register_classes.py
Iherrbenza/SMB100A_Python
80af83faa306a31f323869c2d20f121bb941d85b
[ "BSD-3-Clause" ]
null
null
null
# @Date: 2020-04-05T14:08:33+10:00 # @Last modified time: 2020-04-08T18:40:22+10:00 from labscript_devices import register_classes register_classes( 'SMB100A', BLACS_tab='labscript_devices.SMB100A.blacs_tabs.SMB100ATab', runviewer_parser=None )
23.727273
64
0.754789
6c9aaddf3d7ed095cb1f382721895fe2de325e0d
6,060
py
Python
src/clophfit/old/fit_titration_global.py
darosio/ClopHfit
00c7f228c3d443dfc776efe50a0f09473c05aa63
[ "BSD-3-Clause" ]
null
null
null
src/clophfit/old/fit_titration_global.py
darosio/ClopHfit
00c7f228c3d443dfc776efe50a0f09473c05aa63
[ "BSD-3-Clause" ]
null
null
null
src/clophfit/old/fit_titration_global.py
darosio/ClopHfit
00c7f228c3d443dfc776efe50a0f09473c05aa63
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """Module for global fitting titrations (pH and cl) on 2 datasets """ import os import sys import argparse import numpy as np from lmfit import Parameters, Minimizer, minimize, conf_interval, report_fit import pandas as pd import matplotlib.pyplot as plt # from scipy import optimize def ci_repo...
34.827586
79
0.562211
6c9b0dde5a35f728bc75ac22cfb8000971c95236
487
py
Python
gehomesdk/erd/converters/advantium/erd_advantium_cook_time_remaining_converter.py
warrenrees/gehome
6a40f15cfd0738aa7e2ac74b2d8d87780fc07ec8
[ "MIT" ]
null
null
null
gehomesdk/erd/converters/advantium/erd_advantium_cook_time_remaining_converter.py
warrenrees/gehome
6a40f15cfd0738aa7e2ac74b2d8d87780fc07ec8
[ "MIT" ]
null
null
null
gehomesdk/erd/converters/advantium/erd_advantium_cook_time_remaining_converter.py
warrenrees/gehome
6a40f15cfd0738aa7e2ac74b2d8d87780fc07ec8
[ "MIT" ]
null
null
null
from datetime import timedelta from typing import Optional from ..abstract import ErdReadOnlyConverter from ..primitives import * from gehomesdk.erd.values.advantium import ErdAdvantiumCookTimeMinMax
40.583333
88
0.786448
6c9b2090dbcb8653a5e155d2427829cb5e811f8a
3,842
py
Python
examples/5_cells_iclamp/verification/pure_nrn.py
AllenInstitute/project7
901350cdf5c57a56b7efece2a309c72bdf5f2608
[ "BSD-3-Clause" ]
35
2018-04-10T13:54:27.000Z
2022-03-12T09:22:31.000Z
examples/5_cells_iclamp/verification/pure_nrn.py
AllenInstitute/project7
901350cdf5c57a56b7efece2a309c72bdf5f2608
[ "BSD-3-Clause" ]
92
2018-03-19T10:14:18.000Z
2022-01-29T15:21:47.000Z
examples/5_cells_iclamp/verification/pure_nrn.py
AllenInstitute/project7
901350cdf5c57a56b7efece2a309c72bdf5f2608
[ "BSD-3-Clause" ]
25
2018-03-16T23:14:42.000Z
2022-02-09T19:37:05.000Z
import os import sys import neuron import json from pprint import pprint from neuron import h import matplotlib.pyplot as plt import numpy as np import h5py ## Runs the 5 cell iclamp simulation but in NEURON for each individual cell # $ python pure_nrn.py <gid> neuron.load_mechanisms('../components/mechanisms') h.loa...
29.782946
98
0.615565
6c9bda41584725dcd1301c29489ba97f22a43be2
973
py
Python
tools/telemetry/telemetry/value/trace_unittest.py
sunjc53yy/chromium
049b380040949089c2a6e447b0cd0ac3c4ece38e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/telemetry/telemetry/value/trace_unittest.py
sunjc53yy/chromium
049b380040949089c2a6e447b0cd0ac3c4ece38e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/telemetry/telemetry/value/trace_unittest.py
sunjc53yy/chromium
049b380040949089c2a6e447b0cd0ac3c4ece38e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import unittest from telemetry.page import page_set from telemetry.timeline import tracing_timeline_data from telemetry.value import trace
30.40625
73
0.749229
6c9c91b60ebe4ebca7c9c3568600bab235877552
4,383
py
Python
utils.py
ruchikachavhan/instagan
3ce71f788d1ef266c06e124ce45adea99270c783
[ "MIT" ]
5
2019-12-03T16:28:18.000Z
2021-12-10T14:22:42.000Z
utils.py
bayesianGirl/instagan
3ce71f788d1ef266c06e124ce45adea99270c783
[ "MIT" ]
null
null
null
utils.py
bayesianGirl/instagan
3ce71f788d1ef266c06e124ce45adea99270c783
[ "MIT" ]
1
2019-10-20T01:23:49.000Z
2019-10-20T01:23:49.000Z
import torch.nn.parallel import torch.optim as optim import torch.utils.data import torch.nn as nn import torch.nn.functional as F import torchvision.datasets import torchvision.transforms as transforms import torchvision.utils as vutils from torch.autograd import Variable import matplotlib.pyplot as plt from PIL impo...
35.064
144
0.705225
6c9d70099a722ba2fbced930795b4aaa3c0d43d3
3,044
py
Python
Super_TF/Dataset_IO/Classification/Dataset_reader_classification.py
Dhruv-Mohan/Super_TF
c693663adc59947cb7d15bd42ff260b7d3de6bdc
[ "MIT" ]
8
2017-10-29T18:50:49.000Z
2020-09-23T10:55:27.000Z
Super_TF/Dataset_IO/Classification/Dataset_reader_classification.py
Dhruv-Mohan/Tensorflow_Playground
c693663adc59947cb7d15bd42ff260b7d3de6bdc
[ "MIT" ]
null
null
null
Super_TF/Dataset_IO/Classification/Dataset_reader_classification.py
Dhruv-Mohan/Tensorflow_Playground
c693663adc59947cb7d15bd42ff260b7d3de6bdc
[ "MIT" ]
1
2021-01-27T09:32:53.000Z
2021-01-27T09:32:53.000Z
from utils.Dataset_reader import Dataset_reader from Dataset_IO.Classification.Dataset_conifg_classification import Dataset_conifg_classification import Dataset_IO.Classification.Dataset_classification_pb2 as proto import tensorflow as tf import os #TODO: ADD TFRECORDS AND MEANPROTO READING CHECKS
42.873239
182
0.704993
6c9e0efa2a651b725cc3fc394a15a455183ea7b1
13,902
py
Python
yocto/poky/scripts/lib/recipetool/create_buildsys.py
jxtxinbing/ops-build
9008de2d8e100f3f868c66765742bca9fa98f3f9
[ "Apache-2.0" ]
2
2019-03-27T08:11:14.000Z
2020-02-22T20:40:24.000Z
yocto/poky/scripts/lib/recipetool/create_buildsys.py
jxtxinbing/ops-build
9008de2d8e100f3f868c66765742bca9fa98f3f9
[ "Apache-2.0" ]
39
2016-08-23T11:23:28.000Z
2017-04-07T08:00:52.000Z
yocto/poky/scripts/lib/recipetool/create_buildsys.py
jxtxinbing/ops-build
9008de2d8e100f3f868c66765742bca9fa98f3f9
[ "Apache-2.0" ]
1
2021-09-10T08:10:12.000Z
2021-09-10T08:10:12.000Z
# Recipe creation tool - create command build system handlers # # Copyright (C) 2014 Intel Corporation # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed...
43.44375
147
0.557186
6c9ec667c5b09f3ef883263c1e32204f673cefdd
431
py
Python
models/classification/_base_/ote_mobilenet_v3.py
openvinotoolkit/model_preparation_algorithm
8d36bf5944837b7a3d22fc2c3a4cb93423619fc2
[ "Apache-2.0" ]
null
null
null
models/classification/_base_/ote_mobilenet_v3.py
openvinotoolkit/model_preparation_algorithm
8d36bf5944837b7a3d22fc2c3a4cb93423619fc2
[ "Apache-2.0" ]
null
null
null
models/classification/_base_/ote_mobilenet_v3.py
openvinotoolkit/model_preparation_algorithm
8d36bf5944837b7a3d22fc2c3a4cb93423619fc2
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='ImageClassifier', backbone=dict( type='OTEMobileNetV3', mode='small', width_mult=1.0), neck=dict(type='GlobalAveragePooling'), head=dict( type='NonLinearClsHead', num_classes=1000, in_channels=576, hid_channels=...
25.352941
60
0.600928
6ca00e46178f8bac44744669d606c5898da9f6e3
2,254
py
Python
tools/rewrite_includes.py
Shachlan/skia
633db4db7672fd55b48ba1073256853e00f18d8c
[ "BSD-3-Clause" ]
6
2018-10-20T10:53:55.000Z
2021-12-25T07:58:57.000Z
tools/rewrite_includes.py
Shachlan/skia
633db4db7672fd55b48ba1073256853e00f18d8c
[ "BSD-3-Clause" ]
null
null
null
tools/rewrite_includes.py
Shachlan/skia
633db4db7672fd55b48ba1073256853e00f18d8c
[ "BSD-3-Clause" ]
9
2018-10-31T03:07:11.000Z
2021-08-06T08:53:21.000Z
#!/usr/bin/python2 # # Copyright 2019 Google Inc. # # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os roots = [ 'bench', 'dm', 'docs', 'example', 'experimental', 'fuzz', 'gm', 'include', 'modules', 'platform_tools/an...
28.531646
80
0.550577
6ca2384cbcb96f1ed16b80307991583b5132ac71
598
py
Python
unit_tests/test_class_query.py
usc-isi-i2/gaia-question-sparql
fb40ea6259686997ad9d805729fcca80516ddf92
[ "MIT" ]
null
null
null
unit_tests/test_class_query.py
usc-isi-i2/gaia-question-sparql
fb40ea6259686997ad9d805729fcca80516ddf92
[ "MIT" ]
null
null
null
unit_tests/test_class_query.py
usc-isi-i2/gaia-question-sparql
fb40ea6259686997ad9d805729fcca80516ddf92
[ "MIT" ]
null
null
null
import unittest import sys import os sys.path.append('../') from src.class_query import ClassQuery from src.query_tool import QueryTool, Mode base_path = os.path.dirname(__file__) cq = ClassQuery(base_path + '/sample_queries/class_queries.xml')
28.47619
78
0.712375
6ca2d2810d7b2ee27e8d82d4f639f5656c914f18
358
py
Python
garbage/reddit_Prog_Chal.py
wolfdale/Spaghetti-code
9e395345e1420b9db021b21131601191a869db1d
[ "MIT" ]
1
2018-05-18T16:07:11.000Z
2018-05-18T16:07:11.000Z
garbage/reddit_Prog_Chal.py
wolfdale/Spaghetti-code
9e395345e1420b9db021b21131601191a869db1d
[ "MIT" ]
5
2015-12-03T16:12:38.000Z
2020-05-05T14:07:00.000Z
garbage/reddit_Prog_Chal.py
wolfdale/Spaghetti-code
9e395345e1420b9db021b21131601191a869db1d
[ "MIT" ]
null
null
null
#[2015-10-26] Challenge #238 [Easy] Consonants and Vowels v=['a','e','i','o','u'] c=['b','c','d','f','g','h','j','k','l','m','n','p','q','r','s','t','v','w','x','y','z'] import random string = raw_input() word=[] for i in range (len(string)): if string[i] == 'v': word.append(random.choice(v)) else: word.append(ra...
23.866667
87
0.544693
6ca310acd08c527da6b679f5c06c920523479f83
899
py
Python
workflow_lib/fert.py
VUB-HYDR/2018_Chawanda_etal
46af26916806e2f61fd48d777f88b04da7fffbbe
[ "MIT" ]
14
2018-09-27T16:03:10.000Z
2021-04-15T06:09:21.000Z
workflow_lib/fert.py
VUB-HYDR/2018_Chawanda_etal
46af26916806e2f61fd48d777f88b04da7fffbbe
[ "MIT" ]
2
2019-10-24T14:03:41.000Z
2019-10-31T22:10:19.000Z
workflow_lib/fert.py
VUB-HYDR/2018_Chawanda_etal
46af26916806e2f61fd48d777f88b04da7fffbbe
[ "MIT" ]
7
2018-11-14T19:42:59.000Z
2021-08-16T07:09:50.000Z
import init_file as variables import cj_function_lib as cj from datetime import datetime fert_table = cj.extract_table_from_mdb(variables.QSWAT_MDB, "fert", variables.path + "\\fert.tmp~") fert = "" for fert_line in fert_table: fert += cj.trailing_spaces(4, fert_line.split(",")[1], 0) + cj.string_trailing_spaces...
56.1875
558
0.688543
6ca3a630c0fe54fea886a90464a43a242366158b
700
py
Python
transposition-decrypt.py
IamLucif3r/Cryptography
46f33f6a327e4a70f71043f011b768fa05c5ae1d
[ "MIT" ]
2
2021-07-20T05:14:30.000Z
2021-07-27T14:04:56.000Z
transposition-decrypt.py
IamLucif3r/Cryptography
46f33f6a327e4a70f71043f011b768fa05c5ae1d
[ "MIT" ]
null
null
null
transposition-decrypt.py
IamLucif3r/Cryptography
46f33f6a327e4a70f71043f011b768fa05c5ae1d
[ "MIT" ]
null
null
null
import math,pyperclip if __name__ == '__main__': main()
25.925926
91
0.63
6ca4810cddee9dd6efdb1f08786256b345cb7b79
10,163
py
Python
r80_apis.py
0dadj1an/r80python
d59f2c1b07c75e028d13859b17cea5929ee3562d
[ "Apache-2.0" ]
null
null
null
r80_apis.py
0dadj1an/r80python
d59f2c1b07c75e028d13859b17cea5929ee3562d
[ "Apache-2.0" ]
null
null
null
r80_apis.py
0dadj1an/r80python
d59f2c1b07c75e028d13859b17cea5929ee3562d
[ "Apache-2.0" ]
null
null
null
#!/bin/python import requests import json import pprint #remove https warning requests.packages.urllib3.disable_warnings() #url = "https://192.168.248.150/web_api/" #user = "api_user" #pw = "demo123" #main program #login and get the session id #sid=login(url,user,pw) #get all groups #add policy ...
30.428144
111
0.612024
6ca483bbe2141f7ed86e065c780223eb91383897
1,753
py
Python
pait/app/tornado/_pait.py
so1n/pait
dff33526bfaa5f801cbeff9907b89dfc9a091c71
[ "Apache-2.0" ]
19
2020-08-26T13:46:33.000Z
2022-02-22T07:48:29.000Z
pait/app/tornado/_pait.py
so1n/pait
dff33526bfaa5f801cbeff9907b89dfc9a091c71
[ "Apache-2.0" ]
1
2021-06-06T17:45:54.000Z
2021-06-06T17:45:54.000Z
pait/app/tornado/_pait.py
so1n/pait
dff33526bfaa5f801cbeff9907b89dfc9a091c71
[ "Apache-2.0" ]
1
2022-01-21T20:25:33.000Z
2022-01-21T20:25:33.000Z
from typing import Any, Type import aiofiles # type: ignore from tornado.web import RequestHandler from pait.app.base import BaseAppHelper from pait.core import Pait as _Pait from pait.g import config from pait.model import response from ._app_helper import AppHelper __all__ = ["pait", "Pait"] pait = Pait()
37.297872
99
0.74672
6ca602af912019bb59f184594f1a127acfb73000
222
py
Python
fund/items.py
suddi/fundscraper
8cd1962c643abe3a2bd3a5540550003550ed7201
[ "Apache-2.0" ]
1
2021-10-30T16:09:34.000Z
2021-10-30T16:09:34.000Z
fund/items.py
suddi/fundscraper
8cd1962c643abe3a2bd3a5540550003550ed7201
[ "Apache-2.0" ]
1
2022-03-02T14:55:09.000Z
2022-03-02T14:55:09.000Z
fund/items.py
suddi/fundscraper
8cd1962c643abe3a2bd3a5540550003550ed7201
[ "Apache-2.0" ]
2
2019-02-25T02:47:07.000Z
2019-09-17T19:20:07.000Z
from scrapy.item import Field, Item # pylint: disable-msg=too-many-ancestors
18.5
40
0.626126
6ca6b8e0eb85324d9b371cf183d1159c92b39bc0
609
py
Python
src/brightness_options.py
imesut/alfred-yeelight-pbc
2678a2544d200c209afaa7d6dc383466f179966d
[ "Unlicense" ]
1
2021-08-09T09:47:00.000Z
2021-08-09T09:47:00.000Z
src/brightness_options.py
imesut/alfred-yeelight-pbc
2678a2544d200c209afaa7d6dc383466f179966d
[ "Unlicense" ]
1
2022-03-22T10:42:39.000Z
2022-03-30T19:46:53.000Z
src/brightness_options.py
imesut/alfred-yeelight-pbc
2678a2544d200c209afaa7d6dc383466f179966d
[ "Unlicense" ]
null
null
null
import json, yeelight, sys from utils import get_alfred_object, bulb, bulb_properties, current_brightness current_brigthness_index = round(int(current_brightness)/10) brightness_list = [0,10,20,30,40,50,60,70,80,90,100] brightness_list = brightness_list[current_brigthness_index:] + brightness_list[:current_brigthness_...
35.823529
105
0.763547
6ca7fb675928141bb07d0f78ee1eb39e58fe4eda
296
py
Python
NetCatKS/DProtocol/api/interfaces/storage/__init__.py
dimddev/NetCatKS-CP
2d9e72b2422e344569fd4eb154866b98e9707561
[ "BSD-2-Clause" ]
null
null
null
NetCatKS/DProtocol/api/interfaces/storage/__init__.py
dimddev/NetCatKS-CP
2d9e72b2422e344569fd4eb154866b98e9707561
[ "BSD-2-Clause" ]
null
null
null
NetCatKS/DProtocol/api/interfaces/storage/__init__.py
dimddev/NetCatKS-CP
2d9e72b2422e344569fd4eb154866b98e9707561
[ "BSD-2-Clause" ]
null
null
null
__author__ = 'dimd' from zope.interface import Interface, Attribute
21.142857
58
0.722973
6ca82b9f021001decf15eedc9de1f6ea177534be
3,616
py
Python
examples/rope_register_transfer.py
def670/lfd
9fef15f556cba49dd4b42c0c29505a4137f95fc5
[ "BSD-2-Clause" ]
36
2015-05-22T14:47:18.000Z
2021-07-27T15:30:36.000Z
examples/rope_register_transfer.py
jeffmahler/lfd
ecc6b934db098c0b1af9946454917b6dc911cb74
[ "BSD-2-Clause" ]
null
null
null
examples/rope_register_transfer.py
jeffmahler/lfd
ecc6b934db098c0b1af9946454917b6dc911cb74
[ "BSD-2-Clause" ]
13
2015-05-22T15:38:07.000Z
2021-07-28T03:20:35.000Z
#!/usr/bin/env python from __future__ import division import numpy as np from lfd.environment.simulation import DynamicSimulationRobotWorld from lfd.environment.simulation_object import XmlSimulationObject, BoxSimulationObject from lfd.environment import environment from lfd.environment import sim_util from lfd.demo...
44.097561
131
0.667035
6ca8ee4d2b9df9e74c5f808a6dbd90df33af6ec4
6,350
py
Python
data/IQAFolders.py
YuLvS/L2PIPS
6a165b1e5b3ecc1b3bee362a2834cadcad01ad96
[ "Apache-2.0" ]
3
2021-05-21T06:27:08.000Z
2021-08-28T14:52:03.000Z
data/IQAFolders.py
YuLvS/L2PIPS
6a165b1e5b3ecc1b3bee362a2834cadcad01ad96
[ "Apache-2.0" ]
1
2021-06-09T03:24:00.000Z
2021-06-09T13:40:17.000Z
data/IQAFolders.py
YuLvS/L2PIPS
6a165b1e5b3ecc1b3bee362a2834cadcad01ad96
[ "Apache-2.0" ]
1
2022-02-08T00:41:31.000Z
2022-02-08T00:41:31.000Z
import csv import os.path import random import numpy as np import scipy.io import torch import torchvision from torch.utils.data import Dataset # from .util import * from data.util import default_loader, read_img, augment, get_image_paths # TODO
35.47486
99
0.529134
6caacd92f800cd39592b48cdfb06a9aeead365f0
10,543
py
Python
sdk/python/pulumi_aws_native/elasticloadbalancingv2/listener.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/elasticloadbalancingv2/listener.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/elasticloadbalancingv2/listener.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
42.003984
134
0.650858
6cac424950d170e8ad4322e8527abbb434d47d28
5,606
py
Python
src/gluonts/nursery/few_shot_prediction/src/meta/datasets/datasets.py
RingoIngo/gluon-ts
62fb20c36025fc969653accaffaa783671709564
[ "Apache-2.0" ]
null
null
null
src/gluonts/nursery/few_shot_prediction/src/meta/datasets/datasets.py
RingoIngo/gluon-ts
62fb20c36025fc969653accaffaa783671709564
[ "Apache-2.0" ]
null
null
null
src/gluonts/nursery/few_shot_prediction/src/meta/datasets/datasets.py
RingoIngo/gluon-ts
62fb20c36025fc969653accaffaa783671709564
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
43.796875
200
0.698537
6cad74d49e4e9a08a93a53a5673e980c74cb3858
3,074
py
Python
tests/test_individual.py
viswanathareddya/Geektrust_in_family
197d4d0eadf191e1ef9d7d21d6d81d62645169c2
[ "MIT" ]
null
null
null
tests/test_individual.py
viswanathareddya/Geektrust_in_family
197d4d0eadf191e1ef9d7d21d6d81d62645169c2
[ "MIT" ]
null
null
null
tests/test_individual.py
viswanathareddya/Geektrust_in_family
197d4d0eadf191e1ef9d7d21d6d81d62645169c2
[ "MIT" ]
null
null
null
import unittest from Familytree.individual import Person from Familytree import variables if __name__ == '__main__': unittest.main()
37.487805
90
0.691282
6cae071fb0b7de70166dc34fefb63b3a8b59aa07
795
py
Python
examples/first_class_functions.py
HansVdb/pythonavd-d01
8434a7e211709f59994280501f0361951db5a05c
[ "BSD-2-Clause" ]
null
null
null
examples/first_class_functions.py
HansVdb/pythonavd-d01
8434a7e211709f59994280501f0361951db5a05c
[ "BSD-2-Clause" ]
null
null
null
examples/first_class_functions.py
HansVdb/pythonavd-d01
8434a7e211709f59994280501f0361951db5a05c
[ "BSD-2-Clause" ]
null
null
null
print(foo) # <function foo at 0x7f9b75de3f28> print(foo.__class__) # <class 'function'> bar = foo bar() # I'm a lovely foo()-function print(bar.__name__) # foo def do_something(what): """Executes a function :param what: name of the function to be executed """ what() do_something(foo) # I'm a lovel...
16.5625
53
0.660377
6caf177be60f963a1d158636a23493e44c9f3170
74,516
py
Python
sdk/python/pulumi_rancher2/auth_config_open_ldap.py
pulumi/pulumi-rancher2
7a98af8cf598b711084a7f46c0fe71b43ed7a8ac
[ "ECL-2.0", "Apache-2.0" ]
3
2020-03-23T15:59:11.000Z
2021-01-29T00:37:32.000Z
sdk/python/pulumi_rancher2/auth_config_open_ldap.py
pulumi/pulumi-rancher2
7a98af8cf598b711084a7f46c0fe71b43ed7a8ac
[ "ECL-2.0", "Apache-2.0" ]
76
2020-01-16T20:00:25.000Z
2022-03-31T20:30:08.000Z
sdk/python/pulumi_rancher2/auth_config_open_ldap.py
pulumi/pulumi-rancher2
7a98af8cf598b711084a7f46c0fe71b43ed7a8ac
[ "ECL-2.0", "Apache-2.0" ]
2
2020-03-27T17:39:59.000Z
2020-11-24T23:09:24.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
47.251744
227
0.668138
6cafccf60a626ceb56ed9cc31e56029cc75a3274
2,029
bzl
Python
apple/internal/testing/tvos_rules.bzl
LaudateCorpus1/rules_apple
f8b1da53a4b53af9c655a17a4e0cb86959c932d8
[ "Apache-2.0" ]
2
2020-07-01T20:21:48.000Z
2021-04-28T21:28:49.000Z
apple/internal/testing/tvos_rules.bzl
LaudateCorpus1/rules_apple
f8b1da53a4b53af9c655a17a4e0cb86959c932d8
[ "Apache-2.0" ]
null
null
null
apple/internal/testing/tvos_rules.bzl
LaudateCorpus1/rules_apple
f8b1da53a4b53af9c655a17a4e0cb86959c932d8
[ "Apache-2.0" ]
2
2021-06-03T10:06:19.000Z
2022-02-02T14:23:53.000Z
# Copyright 2019 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
32.206349
83
0.741252
6cb08150d3a19f5a4a7edf7874374e44e9a831c7
2,438
py
Python
cogs/calc.py
cmstevens02/Knight-Assistant
6e67b1ca38bc278e72196384a7fb7816e96db665
[ "MIT" ]
3
2021-02-23T23:35:08.000Z
2021-02-28T03:21:52.000Z
cogs/calc.py
nategaulke/Discord_Personal_Assistant
6e67b1ca38bc278e72196384a7fb7816e96db665
[ "MIT" ]
null
null
null
cogs/calc.py
nategaulke/Discord_Personal_Assistant
6e67b1ca38bc278e72196384a7fb7816e96db665
[ "MIT" ]
1
2021-04-27T16:06:21.000Z
2021-04-27T16:06:21.000Z
# This script was written by Conroy # import discord from discord.ext import commands # inherit from commands.Cog # this function connects this cog (via the Calc class) to the bot object def setup(bot): bot.add_cog(Calculations(bot))
30.475
88
0.562756
6cb14ca24710d5a32a25624affaf5fd44f64eda5
1,011
py
Python
monitoria-ilp/prova5/M7.py
gustavo-mendel/my-college-projects
ccc1285e1a6863312e275f973e728de231a9458a
[ "MIT" ]
3
2021-08-18T01:59:50.000Z
2021-08-28T00:19:07.000Z
monitoria-ilp/prova5/M7.py
gustavo-mendel/my-college-projects
ccc1285e1a6863312e275f973e728de231a9458a
[ "MIT" ]
4
2021-03-09T18:39:47.000Z
2021-03-26T00:01:56.000Z
monitoria-ilp/prova5/M7.py
gustavo-mendel/my-college-projects
ccc1285e1a6863312e275f973e728de231a9458a
[ "MIT" ]
1
2022-03-20T14:54:09.000Z
2022-03-20T14:54:09.000Z
n, m = [int(e) for e in input().split()] mat = [] for i in range(n): j = [int(e) for e in input().split()] mat.append(j) for i in range(n): for j in range(m): if mat[i][j] == 0: if i == 0: if mat[i][j+1] == 1 and mat[i][j-1] == 1 and mat[i+1][j] == 1: ...
29.735294
95
0.331355
6cb2edb7e1e29ba70850bedeb3eee19d43933ca6
72
py
Python
utils/__init__.py
DNL-inc/bit
b6f35e95b2b40a3eec308a2c7179a73eadad3556
[ "MIT" ]
1
2020-11-04T16:15:52.000Z
2020-11-04T16:15:52.000Z
utils/__init__.py
DNL-inc/bit
b6f35e95b2b40a3eec308a2c7179a73eadad3556
[ "MIT" ]
null
null
null
utils/__init__.py
DNL-inc/bit
b6f35e95b2b40a3eec308a2c7179a73eadad3556
[ "MIT" ]
null
null
null
from . import db_api from . import misc # from . import postpone_message
24
32
0.777778
6cb32f44a52f1c0281429f935c70345217dd11a0
5,105
py
Python
xero_python/appstore/models/plan.py
gavinwhyte/xero-python
53a028c3b7c51da1db203b616bf7b7a028a4a1d2
[ "MIT" ]
null
null
null
xero_python/appstore/models/plan.py
gavinwhyte/xero-python
53a028c3b7c51da1db203b616bf7b7a028a4a1d2
[ "MIT" ]
null
null
null
xero_python/appstore/models/plan.py
gavinwhyte/xero-python
53a028c3b7c51da1db203b616bf7b7a028a4a1d2
[ "MIT" ]
null
null
null
# coding: utf-8 """ Xero AppStore API These endpoints are for Xero Partners to interact with the App Store Billing platform # noqa: E501 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel
28.20442
126
0.56905
6cb33395406f43fe2ee837077f069c801b9bcf8e
2,167
py
Python
design_patterns/behavioral/command.py
Minkov/python-oop-2021-02
bd387dde165f4338eed66c4bc0b4b516ee085340
[ "MIT" ]
2
2021-02-22T22:55:31.000Z
2021-04-05T18:25:10.000Z
design_patterns/behavioral/command.py
Minkov/python-oop-2021-02
bd387dde165f4338eed66c4bc0b4b516ee085340
[ "MIT" ]
null
null
null
design_patterns/behavioral/command.py
Minkov/python-oop-2021-02
bd387dde165f4338eed66c4bc0b4b516ee085340
[ "MIT" ]
2
2021-04-05T18:35:11.000Z
2021-04-08T12:18:19.000Z
from abc import ABC, abstractmethod commands = [] values = [] while True: command_text = input() if command_text == 'END': break if command_text == 'REMOVE_LAST': command = RemoveLastCommand(values) elif command_text == 'REMOVE_FIRST': command = RemoveFirstCommand(value...
18.210084
49
0.646054
6cb3a9c787df62417130bfb457f73cad0e338334
2,537
py
Python
test/test_cnn/test_datum.py
DwangoMediaVillage/marltas_core
91a5caf75c2350a31d47d1b0408c817644a0d41e
[ "MIT" ]
9
2021-02-15T08:20:31.000Z
2022-01-04T09:29:35.000Z
test/test_cnn/test_datum.py
DwangoMediaVillage/marltas_core
91a5caf75c2350a31d47d1b0408c817644a0d41e
[ "MIT" ]
null
null
null
test/test_cnn/test_datum.py
DwangoMediaVillage/marltas_core
91a5caf75c2350a31d47d1b0408c817644a0d41e
[ "MIT" ]
1
2021-09-21T16:11:17.000Z
2021-09-21T16:11:17.000Z
import numpy as np from dqn.cnn.config import CNNConfigBase from dqn.cnn.datum import (Batch, Loss, SampleFromActor, SampleFromBuffer, split_sample_from_actor)
46.127273
117
0.69255
6cb3b777db4ea68cdf0e53c08d49eba00b76fc6c
6,943
py
Python
lib/python/zzvm/parser.py
m80126colin/zzvm
09440c1ae11dfdb433cef4b0133e403b1ae1b74b
[ "MIT" ]
19
2016-07-06T16:38:27.000Z
2021-01-30T02:20:26.000Z
lib/python/zzvm/parser.py
m80126colin/zzvm
09440c1ae11dfdb433cef4b0133e403b1ae1b74b
[ "MIT" ]
1
2016-07-08T13:37:12.000Z
2016-07-08T13:37:12.000Z
lib/python/zzvm/parser.py
m80126colin/zzvm
09440c1ae11dfdb433cef4b0133e403b1ae1b74b
[ "MIT" ]
3
2016-07-07T07:03:11.000Z
2018-01-01T00:55:59.000Z
import codecs import collections import io import os import re import struct from .instruction import Instruction from .opcode import Opcodes from .registers import Registers from .section import Section from .symbol import Symbol
30.451754
92
0.474867
6cb4cc84649164fc13d24146a17efcfc7d6676a4
2,120
py
Python
Ensemble_Movie.py
nchaparr/Sam_Output_Anls
c6736f7863b36d09738ac95b7cbde19ba69526cf
[ "MIT" ]
null
null
null
Ensemble_Movie.py
nchaparr/Sam_Output_Anls
c6736f7863b36d09738ac95b7cbde19ba69526cf
[ "MIT" ]
1
2015-04-18T14:47:49.000Z
2015-05-01T21:51:44.000Z
Ensemble_Movie.py
nchaparr/Sam_Output_Anls
c6736f7863b36d09738ac95b7cbde19ba69526cf
[ "MIT" ]
null
null
null
from netCDF4 import Dataset import glob,os.path import numpy as np from scipy.interpolate import UnivariateSpline from matplotlib import cm import matplotlib.pyplot as plt #import site #site.addsitedir('/tera/phil/nchaparr/SAM2/sam_main/python') #from Percentiles import * from matplotlib.patches import Patch import sys...
28.266667
130
0.706132
6cb51a7de1609a5a0779573c2a06a1856d668cd7
5,925
py
Python
examples/nlp/entity_linking/query_index.py
hamjam/NeMo
b3484d32e1317666151f931bfa39867d88ed8658
[ "Apache-2.0" ]
4,145
2019-09-13T08:29:43.000Z
2022-03-31T18:31:44.000Z
examples/nlp/entity_linking/query_index.py
hamjam/NeMo
b3484d32e1317666151f931bfa39867d88ed8658
[ "Apache-2.0" ]
2,031
2019-09-17T16:51:39.000Z
2022-03-31T23:52:41.000Z
examples/nlp/entity_linking/query_index.py
hamjam/NeMo
b3484d32e1317666151f931bfa39867d88ed8658
[ "Apache-2.0" ]
1,041
2019-09-13T10:08:21.000Z
2022-03-30T06:37:38.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
35.479042
119
0.683038
6cb6082d21894fda980ae156d9b789007e2949db
2,172
py
Python
packages/w3af/w3af/plugins/attack/payloads/tests/test_base_payload.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/plugins/attack/payloads/tests/test_base_payload.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/plugins/attack/payloads/tests/test_base_payload.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
""" test_Payload.py Copyright 2012 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License. w3af is distributed in the hope tha...
32.41791
92
0.662983
6cb7a3213f4aa75ec344787bff947c5e65c0af9d
1,700
py
Python
cvat/apps/iam/schema.py
ACHultman/cvat
01eaf362aa7e03f5623e80cb12ad0b9a429ae588
[ "Intel", "MIT" ]
4,197
2018-06-30T05:47:50.000Z
2020-09-08T07:34:22.000Z
cvat/apps/iam/schema.py
ACHultman/cvat
01eaf362aa7e03f5623e80cb12ad0b9a429ae588
[ "Intel", "MIT" ]
1,653
2018-07-04T00:10:44.000Z
2020-09-08T09:01:58.000Z
cvat/apps/iam/schema.py
ACHultman/cvat
01eaf362aa7e03f5623e80cb12ad0b9a429ae588
[ "Intel", "MIT" ]
1,253
2018-06-30T05:47:58.000Z
2020-09-08T02:19:52.000Z
# Copyright (C) 2022 Intel Corporation # # SPDX-License-Identifier: MIT from drf_spectacular.extensions import OpenApiFilterExtension, OpenApiAuthenticationExtension from drf_spectacular.plumbing import build_parameter_type from drf_spectacular.utils import OpenApiParameter # https://drf-spectacular.readthedocs.io/en...
38.636364
120
0.672941
6cbf415d6c7f56e53145504a706d0df172e83094
14,720
py
Python
clique_main_1.py
mccrimmonmd/clique
d6539a4530acf5c5cf85dac2eb520fa69f3a310a
[ "MIT" ]
null
null
null
clique_main_1.py
mccrimmonmd/clique
d6539a4530acf5c5cf85dac2eb520fa69f3a310a
[ "MIT" ]
null
null
null
clique_main_1.py
mccrimmonmd/clique
d6539a4530acf5c5cf85dac2eb520fa69f3a310a
[ "MIT" ]
null
null
null
""" Version 1: - It begins - For some reason, this version of the decision code (in Shape.move) just makes every shape move up and to the left """ from __future__ import division import pygame, pygame.locals, math, random RAND = random.Random() RAND.seed() UP = 0 DOWN = 1 RIGHT = 2 LEFT = 3 STAY = 4 PLAYER_MOVEM...
32.494481
83
0.531793
6cbfc8dcd6d97cc1be61ed0f0e63d726c3f60f59
111
py
Python
exercicios/ex110/teste.py
Matheus1199/python
c87859d4bf63ba0edea43d864fcbce4915da7e6a
[ "MIT" ]
null
null
null
exercicios/ex110/teste.py
Matheus1199/python
c87859d4bf63ba0edea43d864fcbce4915da7e6a
[ "MIT" ]
null
null
null
exercicios/ex110/teste.py
Matheus1199/python
c87859d4bf63ba0edea43d864fcbce4915da7e6a
[ "MIT" ]
null
null
null
import moeda p = float(input('Digite o preo: ')) t = int(input('Qual o valor da taxa? ')) moeda.resumo(p, t)
18.5
40
0.648649
6cc3d5d1de7a0cf11e4107bd74fe44f4807903f5
11,683
py
Python
DTSGUI/DetailLevels.py
pchan126/Blender_DTS_30
730dabe3d620b088811b86e34583e92ed30dd184
[ "MIT" ]
null
null
null
DTSGUI/DetailLevels.py
pchan126/Blender_DTS_30
730dabe3d620b088811b86e34583e92ed30dd184
[ "MIT" ]
null
null
null
DTSGUI/DetailLevels.py
pchan126/Blender_DTS_30
730dabe3d620b088811b86e34583e92ed30dd184
[ "MIT" ]
null
null
null
''' DetailLevels.py Copyright (c) 2008 Joseph Greenawalt(jsgreenawalt@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to us...
34.770833
218
0.714714
6cc4b53806510ef9be869b2f5f6842afec22d977
1,142
py
Python
python/loader/constants.py
msolonskyi/tennisAnalyzer
19e40fe27db498f094bcacd06cceb28af535d499
[ "MIT" ]
null
null
null
python/loader/constants.py
msolonskyi/tennisAnalyzer
19e40fe27db498f094bcacd06cceb28af535d499
[ "MIT" ]
null
null
null
python/loader/constants.py
msolonskyi/tennisAnalyzer
19e40fe27db498f094bcacd06cceb28af535d499
[ "MIT" ]
null
null
null
CONNECTION_STRING = '/@' CHUNK_SIZE = 100 BORDER_QTY = 5 # minimun matches per year per player for reload player ATP_URL_PREFIX = 'http://www.atpworldtour.com' DC_URL_PREFIX = 'https://www.daviscup.com' ATP_TOURNAMENT_SERIES = ('gs', '1000', 'atp', 'ch') DC_TOURNAMENT_SERIES = ('dc',) DURATION_IN_DAYS = 18 ATP_CSV_PAT...
23.306122
71
0.584063
6cc792bc4ec1495e2621de0b8e4ddb3c30f40b27
3,383
py
Python
hackerrank/graph/medium/journey-to-the-moon.py
johnklee/algprac
51a7c872806aec261c5e3db6cbac47ec34516b4d
[ "Apache-2.0" ]
null
null
null
hackerrank/graph/medium/journey-to-the-moon.py
johnklee/algprac
51a7c872806aec261c5e3db6cbac47ec34516b4d
[ "Apache-2.0" ]
null
null
null
hackerrank/graph/medium/journey-to-the-moon.py
johnklee/algprac
51a7c872806aec261c5e3db6cbac47ec34516b4d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python r''' https://www.hackerrank.com/challenges/journey-to-the-moon/problem ''' import math import os import random import re import sys # Complete the journeyToMoon function below. def journeyToMoon(n, astronaut): ndict = {} cty_list = [] # Create graph for a, b in astrona...
26.224806
84
0.514041
6cc8bee2c61fbd3d46a87dd9bd2c0c32252ff673
3,669
py
Python
utils/check-glossary.py
feddelegrand7/glosario
1bfe81174fe0ad5e375aaa7fea00fe8002958e97
[ "CC-BY-4.0" ]
null
null
null
utils/check-glossary.py
feddelegrand7/glosario
1bfe81174fe0ad5e375aaa7fea00fe8002958e97
[ "CC-BY-4.0" ]
null
null
null
utils/check-glossary.py
feddelegrand7/glosario
1bfe81174fe0ad5e375aaa7fea00fe8002958e97
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python ''' Check YAML file. Each _entry_ contains one or more _definitions_. ''' import sys import re import yaml from collections import Counter # Keys for entries and definitions. ENTRY_REQUIRED_KEYS = {'slug'} ENTRY_OPTIONAL_KEYS = {'ref'} ENTRY_LANGUAGE_KEYS = {'en', 'es', 'fr'} ENTRY_KEYS = ENTRY...
29.829268
79
0.621423
6cca5ceb0f53d242c817b044a0b125d5dee308d5
6,430
py
Python
src/SPARTACUS10/tests/test_spatial_silhouette.py
totie10/SPARTACUS10
ea708b159d30ddd1cb59a372595e76fb52bd7516
[ "MIT" ]
1
2021-05-23T10:38:16.000Z
2021-05-23T10:38:16.000Z
src/SPARTACUS10/tests/test_spatial_silhouette.py
totie10/SPARTACUS10
ea708b159d30ddd1cb59a372595e76fb52bd7516
[ "MIT" ]
null
null
null
src/SPARTACUS10/tests/test_spatial_silhouette.py
totie10/SPARTACUS10
ea708b159d30ddd1cb59a372595e76fb52bd7516
[ "MIT" ]
1
2021-07-19T05:07:30.000Z
2021-07-19T05:07:30.000Z
import pytest import numpy as np import pandas as pd from SPARTACUS10 import spatial_silhouette as spasi import sklearn.metrics as metrics import os def test_silhouette(): """ Does silhouette_coefficient() function produce the same results as silhouette_score() function from sklearn.me...
55.431034
166
0.719285
6ccc3a21c576fe1a0e44fce64e5401c4ac8e7df1
5,014
py
Python
main_app.py
christopher-chandler/image2pdf
ac2b8f7c359448a36ca81633e890c88d2b94a0be
[ "MIT" ]
1
2022-03-11T14:13:48.000Z
2022-03-11T14:13:48.000Z
main_app.py
christopher-chandler/i2pdf
ac2b8f7c359448a36ca81633e890c88d2b94a0be
[ "MIT" ]
null
null
null
main_app.py
christopher-chandler/i2pdf
ac2b8f7c359448a36ca81633e890c88d2b94a0be
[ "MIT" ]
null
null
null
# Standard import os import platform # Pip import typer import yaml from PIL import Image from PyPDF2 import PdfFileReader, PdfFileWriter from yaml.scanner import ScannerError from yaml.loader import SafeLoader # Custom from auxiliary.message_keys import MessageKeys as mk from auxiliary.file_explorer import FileExplo...
28.011173
79
0.640207