hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a03e018d6f0824e05a9d8e6a88a97f990d466cd
11,812
py
Python
oscarapi/serializers/fields.py
samitnuk/django-oscar-api
71f9ba268e17c6ab64b18e848f26b73cf45cf444
[ "BSD-3-Clause" ]
null
null
null
oscarapi/serializers/fields.py
samitnuk/django-oscar-api
71f9ba268e17c6ab64b18e848f26b73cf45cf444
[ "BSD-3-Clause" ]
null
null
null
oscarapi/serializers/fields.py
samitnuk/django-oscar-api
71f9ba268e17c6ab64b18e848f26b73cf45cf444
[ "BSD-3-Clause" ]
null
null
null
import logging import operator from os.path import basename, join from io import BytesIO from urllib.parse import urlsplit from urllib.request import urlopen from django.conf import settings from django.db import IntegrityError from django.utils.translation import ugettext as _ from django.core.exceptions import Obje...
38.855263
88
0.617846
4a03e05f316bb4ff8fd2f0427024d667319645d1
4,234
py
Python
handle_openstreetmap_v3_cropped_image.py
bogeunnet/Handle_openstreetmap
f81150f8011433f2fa5a52983661bca019c52d34
[ "MIT" ]
3
2019-03-07T02:21:55.000Z
2019-03-07T02:28:59.000Z
handle_openstreetmap_v3_cropped_image.py
bogeunnet/Handle_openstreetmap
f81150f8011433f2fa5a52983661bca019c52d34
[ "MIT" ]
null
null
null
handle_openstreetmap_v3_cropped_image.py
bogeunnet/Handle_openstreetmap
f81150f8011433f2fa5a52983661bca019c52d34
[ "MIT" ]
1
2019-03-07T02:24:45.000Z
2019-03-07T02:24:45.000Z
import os import math from PIL import Image import urllib.request from io import BytesIO def deg2num(lat_deg, lon_deg, zoom): lat_rad = math.radians(lat_deg) n = 2.0 ** zoom xtile = int((lon_deg + 180.0) / 360.0 * n) ytile = int((1.0 - math.log(math.tan(lat_rad) + (1 / math.cos(lat_rad))) / math.pi) / ...
27.855263
107
0.627539
4a03e091cd16b8042efd643d1e89990b2d4f9ea2
1,697
py
Python
face_recognizer.py
siddhartboss/-Real-Time-Face-Mask-Detection-Email-Authentication-with-Age-Prediction
d88f7bb0bb5ba89e69c3b645a3f93175c3839cdf
[ "MIT" ]
null
null
null
face_recognizer.py
siddhartboss/-Real-Time-Face-Mask-Detection-Email-Authentication-with-Age-Prediction
d88f7bb0bb5ba89e69c3b645a3f93175c3839cdf
[ "MIT" ]
null
null
null
face_recognizer.py
siddhartboss/-Real-Time-Face-Mask-Detection-Email-Authentication-with-Age-Prediction
d88f7bb0bb5ba89e69c3b645a3f93175c3839cdf
[ "MIT" ]
null
null
null
import cv2 import numpy as np import os recognizer = cv2.face.LBPHFaceRecognizer_create() recognizer.read('trainer.yml') face_cascade_Path = "haarcascade_frontalface_default.xml" faceCascade = cv2.CascadeClassifier(face_cascade_Path) font = cv2.FONT_HERSHEY_SIMPLEX id = 0 # names related to ids: The names associa...
29.258621
90
0.605775
4a03e09983d0058578d51ce27329ef11e938e61c
19,255
py
Python
central_computer/TrackingCode/track.py
ACSLab/pheeno_robot_code
d9b64ea1a4e3f5b0ddf26a0cbf00e7d5b08df6e5
[ "BSD-3-Clause" ]
2
2017-05-08T20:43:43.000Z
2018-04-08T02:50:12.000Z
central_computer/TrackingCode/track.py
ACSLab/pheeno_robot_code
d9b64ea1a4e3f5b0ddf26a0cbf00e7d5b08df6e5
[ "BSD-3-Clause" ]
null
null
null
central_computer/TrackingCode/track.py
ACSLab/pheeno_robot_code
d9b64ea1a4e3f5b0ddf26a0cbf00e7d5b08df6e5
[ "BSD-3-Clause" ]
1
2017-07-07T05:20:07.000Z
2017-07-07T05:20:07.000Z
# Import NumPy Libraries import numpy as np from numpy import average as avg from numpy import subtract as sub # Import System Libraries import math import time import csv import sys from optparse import OptionParser import socket # Import OpenCV Libraries import cv2 # Debug? DEBUG = False DISPLAY_TAGS = True # Co...
29.806502
123
0.580317
4a03e107cd01bd8ce3ff2d4fbd2be87ab74212a4
1,487
py
Python
setup.py
masora1030/eigoyurusan
fa82044a2dc2f0f1f7454f5394e6d68fa923c289
[ "MIT" ]
9
2020-07-16T08:14:24.000Z
2021-02-12T04:16:36.000Z
setup.py
masora1030/eigoyurusan
fa82044a2dc2f0f1f7454f5394e6d68fa923c289
[ "MIT" ]
3
2020-07-22T15:21:04.000Z
2021-11-23T23:21:30.000Z
setup.py
masora1030/eigoyurusan
fa82044a2dc2f0f1f7454f5394e6d68fa923c289
[ "MIT" ]
2
2020-07-22T21:51:26.000Z
2021-05-09T20:36:56.000Z
"""The setup script.""" from __future__ import absolute_import from __future__ import unicode_literals import setuptools with open('README.md') as readme_file: readme = readme_file.read() requirements = ['Click>=7.0', 'setuptools', 'pdfminer', 'selenium', ...
30.346939
69
0.619368
4a03e35bbbb9413105b97da2ba115b7490468334
414
py
Python
config.py
ndonyemark/TheNewsAPI
3a22877a4fe027daf17198b413a111829bf1908f
[ "Unlicense" ]
null
null
null
config.py
ndonyemark/TheNewsAPI
3a22877a4fe027daf17198b413a111829bf1908f
[ "Unlicense" ]
null
null
null
config.py
ndonyemark/TheNewsAPI
3a22877a4fe027daf17198b413a111829bf1908f
[ "Unlicense" ]
null
null
null
import os class Config(): SECRET_KEY = os.environ.get("SECRET_KEY") NEWS_BASE_URL = "https://newsapi.org/v2/sources?apiKey={}" NEWS_ARTICLES_URL = "https://newsapi.org/v2/everything?q={}&apiKey={}" API_KEY = os.environ.get("API_KEY") class ProdConfig(Config): pass class DevConfig(Config): ...
18.818182
74
0.673913
4a03e3afb90f6f942c4d4ec9cf954958de50aaf5
6,659
py
Python
django_smartstaticfiles/settings.py
niall-byrne/django-smartstaticfiles
0573eb758d044610c062fb0b3c3822202621e9f4
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-06-21T19:40:12.000Z
2018-06-21T19:40:12.000Z
django_smartstaticfiles/settings.py
niall-byrne/django-smartstaticfiles
0573eb758d044610c062fb0b3c3822202621e9f4
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-01-18T21:13:03.000Z
2019-01-19T22:19:38.000Z
django_smartstaticfiles/settings.py
niall-byrne/django-smartstaticfiles
0573eb758d044610c062fb0b3c3822202621e9f4
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-11-27T10:40:05.000Z
2019-11-27T10:40:05.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import re from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.signals import setting_changed from django.utils.module_loading import import_string from django.utils.six import iteritems, iterkeys set...
35.994595
97
0.66091
4a03e40f196f46b9f400217ef023628f758ece43
376
py
Python
foobar_end.py
alexroat/foobar_challange
8e5ac6dd88fad710b06419a12186ba29be1735bd
[ "MIT" ]
null
null
null
foobar_end.py
alexroat/foobar_challange
8e5ac6dd88fad710b06419a12186ba29be1735bd
[ "MIT" ]
null
null
null
foobar_end.py
alexroat/foobar_challange
8e5ac6dd88fad710b06419a12186ba29be1735bd
[ "MIT" ]
null
null
null
import base64 MESSAGE = ''' GksWDREMBAcSS0VCUkgGBgQNEV9eT0YXDgAJHRMIFBFGTF9YVQoSAAQJCB0WSE1URgkDHh0dFQdG TF9YVQYPFxMJAREQAwRTTUxCGREHCBEXCQgdHBtGVFtMQg0cAw4XCgkBX15PRgYADgcRBhxGVFtM QgsTCQRTTUxCHh0ARlRbTEIPGwFAUxw= ''' KEY = 'alexroat' result = [] for i, c in enumerate(base64.b64decode(MESSAGE)): result.append(c...
26.857143
186
0.800532
4a03e4cb9eca36ed4ffe7b488ed9f4555e5b0597
1,690
py
Python
pettingzoo/gamma/prison/manual_control.py
AnanthHari/PettingZoo
c147c2992a067fd529570db0bea6a0324f01ee6e
[ "MIT" ]
null
null
null
pettingzoo/gamma/prison/manual_control.py
AnanthHari/PettingZoo
c147c2992a067fd529570db0bea6a0324f01ee6e
[ "MIT" ]
null
null
null
pettingzoo/gamma/prison/manual_control.py
AnanthHari/PettingZoo
c147c2992a067fd529570db0bea6a0324f01ee6e
[ "MIT" ]
null
null
null
import pygame import numpy as np def manual_control(**kwargs): from .prison import env as _env env = _env(**kwargs) env.reset() x = 0 y = 0 while True: agent_actions = np.array([1 for _ in range(8)]) num_actions = 0 test_done = False for event in pygame.event.ge...
30.727273
67
0.468047
4a03e52c12f79002669b1f8333aa0fa131bd481e
657
py
Python
Dataset/Leetcode/train/2/115.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/2/115.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/2/115.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, l1: ListNode, l2: ListNode) -> ListNode: l1_list = [] l2_list = [] while l1 or l2: if l1: l1_list.append(l1.val) l1 = l1.next if l2: l2_list.append(l2.val) l2 = l2.next ...
29.863636
107
0.430746
4a03e5d5c1b486a2361dc7fc146f5549b21fa7d5
12,491
py
Python
tests/webuploader/test_import_study.py
EBI-Metagenomics/ebi-metagenomics-api
1f028902fe493583c5c8191dd5dae92cca9e15a9
[ "Apache-2.0" ]
null
null
null
tests/webuploader/test_import_study.py
EBI-Metagenomics/ebi-metagenomics-api
1f028902fe493583c5c8191dd5dae92cca9e15a9
[ "Apache-2.0" ]
null
null
null
tests/webuploader/test_import_study.py
EBI-Metagenomics/ebi-metagenomics-api
1f028902fe493583c5c8191dd5dae92cca9e15a9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2020 EMBL - European Bioinformatics Institute # # 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/LICEN...
43.674825
106
0.677848
4a03e5f60862953c87d4fa20a7e4b461da282c08
811
py
Python
microproxy/layer/proxy/replay.py
mike820324/microProxy
64c7c5add4759c6e105b9438cd18c0f8c930c7a3
[ "MIT" ]
20
2016-04-17T08:43:26.000Z
2021-05-31T04:01:27.000Z
microproxy/layer/proxy/replay.py
mike820324/microProxy
64c7c5add4759c6e105b9438cd18c0f8c930c7a3
[ "MIT" ]
237
2016-04-17T07:07:08.000Z
2017-01-26T09:15:52.000Z
microproxy/layer/proxy/replay.py
mike820324/microProxy
64c7c5add4759c6e105b9438cd18c0f8c930c7a3
[ "MIT" ]
5
2016-04-16T14:22:45.000Z
2019-11-27T04:41:55.000Z
from tornado import gen from microproxy.protocol import tls from microproxy.layer.base import ProxyLayer class ReplayLayer(ProxyLayer): def __init__(self, context, **kwargs): super(ReplayLayer, self).__init__(context, **kwargs) @gen.coroutine def process_and_return_context(self): dest_st...
30.037037
85
0.639951
4a03e7676e838e15b7bb60b1750821ed269066d4
213
py
Python
upwind/cython/setup.py
pletzer/fidibench
d6465445d6fb3ffd20b53419dc7f833650071e93
[ "MIT" ]
7
2018-02-02T21:12:56.000Z
2020-09-10T01:07:18.000Z
upwind/cython/setup.py
pletzer/fidibench
d6465445d6fb3ffd20b53419dc7f833650071e93
[ "MIT" ]
3
2020-09-09T23:17:00.000Z
2020-09-15T02:11:33.000Z
upwind/cython/setup.py
pletzer/fidibench
d6465445d6fb3ffd20b53419dc7f833650071e93
[ "MIT" ]
2
2019-01-31T22:15:40.000Z
2022-03-30T02:08:30.000Z
from distutils.core import setup from Cython.Build import cythonize import numpy # python setup.py build_ext --inplace setup( ext_modules = cythonize("upwind5.pyx"), include_dirs=[numpy.get_include()], )
21.3
43
0.755869
4a03e7d9cd4f11e3d04793ba351d5d429c65174d
1,594
py
Python
cac/optimizer.py
WadhwaniAI/cac-test-release
066c554a354f0043f8ac83c9d6421a8397b17ba5
[ "Apache-2.0" ]
24
2021-05-13T13:34:27.000Z
2022-03-02T13:52:29.000Z
cac/optimizer.py
WadhwaniAI/cac-test-release
066c554a354f0043f8ac83c9d6421a8397b17ba5
[ "Apache-2.0" ]
2
2021-07-09T08:21:31.000Z
2022-02-11T15:30:55.000Z
cac/optimizer.py
WadhwaniAI/cac-test-release
066c554a354f0043f8ac83c9d6421a8397b17ba5
[ "Apache-2.0" ]
6
2021-06-10T07:47:48.000Z
2022-01-27T07:36:09.000Z
"""Defines Factory object to register various optimizers""" from typing import Any import math from abc import ABC, abstractmethod from cac.factory import Factory from torch.optim import Adam, SGD, AdamW from torch.optim.lr_scheduler import ReduceLROnPlateau, StepLR, CyclicLR, \ OneCycleLR, MultiStepLR optimizer_f...
30.653846
75
0.749059
4a03e98aa4e1146a4e3fe97385fc18f1a42ae731
10,693
py
Python
mesonbuild/ast/introspection.py
mpoquet/meson
cc8af259c813e239292cccb60bacfbc7641e12a9
[ "Apache-2.0" ]
null
null
null
mesonbuild/ast/introspection.py
mpoquet/meson
cc8af259c813e239292cccb60bacfbc7641e12a9
[ "Apache-2.0" ]
null
null
null
mesonbuild/ast/introspection.py
mpoquet/meson
cc8af259c813e239292cccb60bacfbc7641e12a9
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Meson development team # 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 ...
44.18595
174
0.653325
4a03ea1d61b8ed4a5c81f96cc83f0acb28c3cd82
6,417
py
Python
test/test.py
WiseLabCMU/slam3d
9d7d17b3b1f172b906da8f0244fe2022c4b9d02c
[ "BSD-3-Clause" ]
4
2019-12-05T13:00:30.000Z
2021-12-27T20:02:24.000Z
test/test.py
DaAwesomeP/slam3d
9140a9c992b09bc8a2c64d600004107638981fb9
[ "BSD-3-Clause" ]
1
2022-02-21T13:33:44.000Z
2022-02-21T13:33:44.000Z
test/test.py
DaAwesomeP/slam3d
9140a9c992b09bc8a2c64d600004107638981fb9
[ "BSD-3-Clause" ]
4
2021-06-18T17:54:14.000Z
2021-06-18T21:15:51.000Z
#!/usr/bin/env python """ test.py Created by Perry Naseck on 6/25/21. Copyright (c) 2021, Wireless Sensing and Embedded Systems Lab, Carnegie Mellon University All rights reserved. This source code is licensed under the BSD-3-Clause license found in the LICENSE file in the root directory of this source tree. """ imp...
31
114
0.678043
4a03eaa55d4b748f6367d3eb7a96ead2ba989b4e
899
py
Python
servers/python/tcp-server.py
opdev1004/boxrpg-unity
c0c4779ba9e15d7c79cd5e8518b5211467cab4e9
[ "MIT" ]
null
null
null
servers/python/tcp-server.py
opdev1004/boxrpg-unity
c0c4779ba9e15d7c79cd5e8518b5211467cab4e9
[ "MIT" ]
null
null
null
servers/python/tcp-server.py
opdev1004/boxrpg-unity
c0c4779ba9e15d7c79cd5e8518b5211467cab4e9
[ "MIT" ]
null
null
null
import socket from _thread import * import sys server = "192.168.1.14" port = 5555 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: s.bind((server, port)) except socket.error as e: str(e) s.listen(2) print("Waiting for a connection, Server started") def threaded_client(conn): conn.send(str.en...
20.906977
53
0.562848
4a03eb1e75962746f91e81d1c64afe00412aac39
3,310
py
Python
AnimalGalary/settings.py
myyrakle/AnimalGalary
f0886e4837e26fbb59d31c361c7fbe751c2dd762
[ "MIT" ]
null
null
null
AnimalGalary/settings.py
myyrakle/AnimalGalary
f0886e4837e26fbb59d31c361c7fbe751c2dd762
[ "MIT" ]
null
null
null
AnimalGalary/settings.py
myyrakle/AnimalGalary
f0886e4837e26fbb59d31c361c7fbe751c2dd762
[ "MIT" ]
null
null
null
""" Django settings for AnimalGalary project. Generated by 'django-admin startproject' using Django 3.0.2. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import ...
25.859375
91
0.68852
4a03ecbe70524b77dd1c11db0c9a781262a8844e
3,627
py
Python
fraud_poc/data/training_data.py
leosmerling-hopeit/fraud-poc
cd4448d0a957e5fd5ebfadda46b8100db30aca90
[ "Apache-2.0" ]
2
2020-08-03T13:14:07.000Z
2021-05-20T19:43:09.000Z
fraud_poc/data/training_data.py
leosmerling-hopeit/fraud-poc
cd4448d0a957e5fd5ebfadda46b8100db30aca90
[ "Apache-2.0" ]
1
2022-02-26T09:12:35.000Z
2022-02-26T09:12:35.000Z
fraud_poc/data/training_data.py
leosmerling-hopeit/fraud-poc
cd4448d0a957e5fd5ebfadda46b8100db30aca90
[ "Apache-2.0" ]
3
2020-12-18T13:24:22.000Z
2021-05-20T19:43:10.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: 04_training-data.ipynb (unless otherwise specified). __all__ = ['__steps__', 'logger', 'run'] # Cell from typing import Dict from datetime import datetime, timezone, timedelta import random import math import dask.dataframe as dd import numpy as np from hopeit.app.context ...
37.78125
156
0.661428
4a03ed036a5b0052eb9d662f72cc98b524fba829
1,511
py
Python
aashe_bulletin/urls.py
AASHE/aashe-bulletin
e93a62d4bb08addf5edfa8875b099b3b5a8072df
[ "MIT" ]
null
null
null
aashe_bulletin/urls.py
AASHE/aashe-bulletin
e93a62d4bb08addf5edfa8875b099b3b5a8072df
[ "MIT" ]
9
2017-03-11T18:29:43.000Z
2020-02-24T18:49:30.000Z
aashe_bulletin/urls.py
AASHE/aashe-bulletin
e93a62d4bb08addf5edfa8875b099b3b5a8072df
[ "MIT" ]
1
2020-02-26T22:12:49.000Z
2020-02-26T22:12:49.000Z
import django.contrib.auth.views from django.conf.urls import patterns, include, url from django.contrib import admin from bulletin.tools.plugins.views.story import StoryListView from views import (AllItemsView, FAQView, LatestNewsFeedView, NoSearchForYouView, ...
23.984127
60
0.583058
4a03edf8d1e31b58b6d55cbeb11f01faf9baee75
4,836
py
Python
lib/hmmlearn/tests/test_multinomial_hmm.py
Freakwill/hmmlearn
74b87fad84b2d7215a14bd60b14a1fd9aa1d4605
[ "BSD-3-Clause" ]
null
null
null
lib/hmmlearn/tests/test_multinomial_hmm.py
Freakwill/hmmlearn
74b87fad84b2d7215a14bd60b14a1fd9aa1d4605
[ "BSD-3-Clause" ]
null
null
null
lib/hmmlearn/tests/test_multinomial_hmm.py
Freakwill/hmmlearn
74b87fad84b2d7215a14bd60b14a1fd9aa1d4605
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pytest from hmmlearn import hmm from . import assert_log_likelihood_increasing, normalized class TestMultinomialAgainstWikipedia: """ Examples from Wikipedia: - http://en.wikipedia.org/wiki/Hidden_Markov_model - http://en.wikipedia.org/wiki/Viterbi_algorithm """ de...
37.2
76
0.592225
4a03edfcfff5fcee319a5948599731f487161456
46,479
py
Python
app/main/views/service_settings.py
GouvQC/notification-admin
5707d8526668e0800ede256db925bdec6f58455d
[ "MIT" ]
null
null
null
app/main/views/service_settings.py
GouvQC/notification-admin
5707d8526668e0800ede256db925bdec6f58455d
[ "MIT" ]
null
null
null
app/main/views/service_settings.py
GouvQC/notification-admin
5707d8526668e0800ede256db925bdec6f58455d
[ "MIT" ]
null
null
null
from collections import OrderedDict from datetime import datetime from flask import ( abort, current_app, flash, jsonify, redirect, render_template, request, session, url_for, ) from flask_babel import _ from flask_login import current_user from notifications_python_client.errors im...
38.097541
128
0.702382
4a03ee265496a5d9beb1ef281c794d582893ae95
5,518
py
Python
tests/notebooks.py
colour-science/trimesh
ee5db2ac81b2357886d854dfa1436b5e4ec5e8d8
[ "MIT" ]
2
2019-12-10T22:40:58.000Z
2022-01-28T03:49:11.000Z
tests/notebooks.py
colour-science/trimesh
ee5db2ac81b2357886d854dfa1436b5e4ec5e8d8
[ "MIT" ]
1
2020-03-27T14:21:14.000Z
2020-03-27T15:25:49.000Z
tests/notebooks.py
colour-science/trimesh
ee5db2ac81b2357886d854dfa1436b5e4ec5e8d8
[ "MIT" ]
1
2021-05-01T04:05:02.000Z
2021-05-01T04:05:02.000Z
import os import sys import json import inspect import subprocess import numpy as np # current working directory cwd = os.path.dirname(os.path.abspath( inspect.getfile(inspect.currentframe()))) def load_notebook(file_obj): """ Load an ipynb file into a cleaned and stripped string that can be ran with...
28.297436
80
0.569047
4a03ee9eb5b9f1623408d903facb0c0ce55d9557
2,904
py
Python
src/knarrow/cli/__main__.py
InCogNiTo124/knarrow
b0a19273a27e68899d982bcc0bf0938c60d3ec26
[ "Apache-2.0" ]
2
2021-10-10T11:12:53.000Z
2021-12-14T13:55:30.000Z
src/knarrow/cli/__main__.py
InCogNiTo124/knarrow
b0a19273a27e68899d982bcc0bf0938c60d3ec26
[ "Apache-2.0" ]
17
2021-09-30T21:51:28.000Z
2022-03-27T23:33:17.000Z
src/knarrow/cli/__main__.py
InCogNiTo124/knarrow
b0a19273a27e68899d982bcc0bf0938c60d3ec26
[ "Apache-2.0" ]
null
null
null
from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser from collections import Counter from functools import partial from pathlib import Path from knarrow import find_knee def gte_0(value): x = float(value) assert x >= 0.0 return x METHODS = [ "angle", "c_method", "distance", ...
32.629213
115
0.608471
4a03eee3d357a7cbaff2f4dbd00169ec329e7f8f
28,339
py
Python
model.py
fzohra/despurold
bf526d608c38e29c025309f1e4925598f161286e
[ "Apache-2.0" ]
null
null
null
model.py
fzohra/despurold
bf526d608c38e29c025309f1e4925598f161286e
[ "Apache-2.0" ]
null
null
null
model.py
fzohra/despurold
bf526d608c38e29c025309f1e4925598f161286e
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 DeepMind Technologies Limited # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
46.686985
170
0.702071
4a03effe2dbaad3fca0ae68f0e87afb9c07381bc
673
py
Python
git/progress.py
phts/ImprovedGit
b811b4c7bf6c92441fe53f85abfb7c3c20608704
[ "MIT" ]
null
null
null
git/progress.py
phts/ImprovedGit
b811b4c7bf6c92441fe53f85abfb7c3c20608704
[ "MIT" ]
null
null
null
git/progress.py
phts/ImprovedGit
b811b4c7bf6c92441fe53f85abfb7c3c20608704
[ "MIT" ]
null
null
null
import sublime, sublime_plugin import functools, threading class Progress(): def __init__(self, thread, message, message_done): self.thread = thread self.message = message self.message_done = message_done self.add = 1 self.size = 8 sublime.set_timeout(lambda: self.run(0), 100) def run(self, i): if n...
22.433333
82
0.679049
4a03f06eb7c631ce63720c0924968d7b49290186
443
py
Python
mayan/apps/lock_manager/migrations/0002_auto_20150604_2219.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
2
2021-09-12T19:41:19.000Z
2021-09-12T19:41:20.000Z
mayan/apps/lock_manager/migrations/0002_auto_20150604_2219.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
37
2021-09-13T01:00:12.000Z
2021-10-02T03:54:30.000Z
mayan/apps/lock_manager/migrations/0002_auto_20150604_2219.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
1
2021-09-22T13:17:30.000Z
2021-09-22T13:17:30.000Z
from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('lock_manager', '0001_initial'), ] operations = [ migrations.AlterField( model_name='lock', name='name', field=models.CharField( ...
23.315789
64
0.525959
4a03f3aa4c07db2b06f8e0854a2aa7b0e7cd742e
400
py
Python
interactive_terminal_flashcards.py
pramttl/adaptive-flashcards-algorithm
d94a3c5388dfe51d21cf6c157a7b656f83a9a33f
[ "Apache-2.0" ]
2
2017-04-10T12:02:53.000Z
2017-06-30T18:04:20.000Z
interactive_terminal_flashcards.py
pramttl/adaptive-flashcards-algorithm
d94a3c5388dfe51d21cf6c157a7b656f83a9a33f
[ "Apache-2.0" ]
null
null
null
interactive_terminal_flashcards.py
pramttl/adaptive-flashcards-algorithm
d94a3c5388dfe51d21cf6c157a7b656f83a9a33f
[ "Apache-2.0" ]
null
null
null
from api import * algo = FlashcardAlgorithm() while True: cue = algo.draw_card() print cue try: s = int(raw_input()) except: # If user entered non integer, quit print "Quitting.." break if s == 0: print "** ", print algo.card[cue] , pri...
16.666667
43
0.47
4a03f3bff25fa0072b32871bc065212058692686
14,266
py
Python
tests/msisdn_api.py
fossabot/DIRBS-Core-1
70bf72e2e6dda6e0d7a20cf744300930d88ee70c
[ "PostgreSQL", "Unlicense" ]
null
null
null
tests/msisdn_api.py
fossabot/DIRBS-Core-1
70bf72e2e6dda6e0d7a20cf744300930d88ee70c
[ "PostgreSQL", "Unlicense" ]
null
null
null
tests/msisdn_api.py
fossabot/DIRBS-Core-1
70bf72e2e6dda6e0d7a20cf744300930d88ee70c
[ "PostgreSQL", "Unlicense" ]
3
2019-10-24T11:40:06.000Z
2022-02-24T07:34:00.000Z
""" MSISDN API unit tests. Copyright (c) 2018-2019 Qualcomm Technologies, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: - Redistributions of...
50.05614
120
0.680779
4a03f43f50c386aa25a91d9182d5b53de3bcc1a2
2,516
py
Python
util/plot_utils.py
fmassa/detr
7613beb10a530ca0ab836f2c8845d0501f5bf063
[ "Apache-2.0" ]
9
2021-10-05T14:14:32.000Z
2022-02-25T13:10:24.000Z
util/plot_utils.py
fmassa/detr
7613beb10a530ca0ab836f2c8845d0501f5bf063
[ "Apache-2.0" ]
2
2021-12-02T05:51:43.000Z
2021-12-02T11:35:03.000Z
util/plot_utils.py
fmassa/detr
7613beb10a530ca0ab836f2c8845d0501f5bf063
[ "Apache-2.0" ]
1
2020-10-16T13:00:56.000Z
2020-10-16T13:00:56.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ Plotting utilities to visualize training logs. """ import torch import pandas as pd from pathlib import Path import seaborn as sns import matplotlib.pyplot as plt def plot_logs(logs, fields=('class_error', 'loss_bbox_unscaled', 'mAP'), ewm_col...
38.121212
118
0.573132
4a03f4bdd92eb206a12751658da1a8b3b806e6e7
1,628
py
Python
owlbot.py
DFrenkel/google-api-python-client
b3e1fd4df954547eb79195424bccc25adb3030bb
[ "Apache-2.0" ]
3,469
2018-09-12T19:54:02.000Z
2022-03-31T17:53:12.000Z
owlbot.py
DFrenkel/google-api-python-client
b3e1fd4df954547eb79195424bccc25adb3030bb
[ "Apache-2.0" ]
835
2018-09-12T10:40:13.000Z
2022-03-31T15:19:06.000Z
owlbot.py
DFrenkel/google-api-python-client
b3e1fd4df954547eb79195424bccc25adb3030bb
[ "Apache-2.0" ]
1,329
2018-09-11T15:06:09.000Z
2022-03-31T17:53:04.000Z
# Copyright 2020 Google 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 in writing, ...
35.391304
78
0.615479
4a03f513c6535fac0be26a5bbd01b55c89fa4eed
534
py
Python
flint/nn/modules/flatten.py
Renovamen/tinyark
da536e8f8132ef531c5bef3feebd3178c1877fce
[ "MIT" ]
15
2021-02-08T16:01:52.000Z
2021-02-10T07:49:26.000Z
flint/nn/modules/flatten.py
Renovamen/tinyark
da536e8f8132ef531c5bef3feebd3178c1877fce
[ "MIT" ]
null
null
null
flint/nn/modules/flatten.py
Renovamen/tinyark
da536e8f8132ef531c5bef3feebd3178c1877fce
[ "MIT" ]
2
2021-05-10T06:40:45.000Z
2021-05-10T14:47:03.000Z
from flint import Tensor from .module import Module from .. import functional as F class Flatten(Module): """ Flatten the input. Does not affect the batch size. NOTE: If inputs are shaped ``(batch,)`` without a feature axis, then flattening adds an extra channel dimension and output shape ...
28.105263
81
0.646067
4a03f914c07ef70f2c4da5204a6d2862b2ab3857
1,370
py
Python
notes/algo-ds-practice/problems/bst/compute_height_after_insert.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
6
2020-07-05T05:15:19.000Z
2021-01-24T20:17:14.000Z
notes/algo-ds-practice/problems/bst/compute_height_after_insert.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
null
null
null
notes/algo-ds-practice/problems/bst/compute_height_after_insert.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
2
2020-09-14T06:46:37.000Z
2021-06-15T09:17:21.000Z
''' You have a list of unique integers `arr`. You have to insert these integers into a BST in that order. You have to return another list `height` such that `height[i]` is the height of arr[i] in the BST. Example: arr = [10, 5, 2, 7, 15] heights = [1, 2, 3, 3, 2] SOLUTION: We can just insert into a BST and then tell...
45.666667
113
0.656934
4a03f967d3e4c4a48197f53ff8ff8fadefe50546
3,866
py
Python
superset/examples/multiformat_time_series.py
whelan9453/incubator-superset
4e3cea45a5136a28442eea50fddc6cf423a9ddd5
[ "Apache-2.0" ]
1
2019-10-28T18:26:39.000Z
2019-10-28T18:26:39.000Z
superset/examples/multiformat_time_series.py
whelan9453/incubator-superset
4e3cea45a5136a28442eea50fddc6cf423a9ddd5
[ "Apache-2.0" ]
8
2020-03-24T17:59:51.000Z
2022-03-29T22:27:47.000Z
superset/examples/multiformat_time_series.py
whelan9453/incubator-superset
4e3cea45a5136a28442eea50fddc6cf423a9ddd5
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.327586
70
0.606053
4a03fa7d563ebcda1f4e06140f718630853d0ddb
4,264
py
Python
LastFMExample/lastfm.py
AndreasTraut/-Visualization-of-Data-with-Python
c78a9bc8b51cc2c8e9d6b07a75a225d5db05053f
[ "MIT" ]
2
2020-02-13T14:20:43.000Z
2020-12-23T07:22:47.000Z
LastFMExample/lastfm.py
AndreasTraut/-Visualization-of-Data-with-Python
c78a9bc8b51cc2c8e9d6b07a75a225d5db05053f
[ "MIT" ]
3
2020-01-18T17:00:42.000Z
2020-04-07T06:28:58.000Z
LastFMExample/lastfm.py
AndreasTraut/-Visualization-of-Data-with-Python
c78a9bc8b51cc2c8e9d6b07a75a225d5db05053f
[ "MIT" ]
1
2022-02-19T17:13:48.000Z
2022-02-19T17:13:48.000Z
# -*- coding: utf-8 -*- """ Created on Thu Feb 6 18:46:07 2020 In this example I downloaded my complete history of played songs since 2016 from www.last.fm (66'955 songs in total) and re-built some of these nice statistics and figues, which last.fm provides. This are for example a bar-plot with monthly aggregates ...
43.070707
106
0.677533
4a03fb1d8d1eb3d3f42100b260010a77dd8c829e
2,937
py
Python
pyalp/sequence/checkerboard.py
BaptisteLefebvre/pyalp
05cb8ff9e66f95ed9c70a8ab8a91c78794f7350a
[ "MIT" ]
1
2020-11-09T09:23:11.000Z
2020-11-09T09:23:11.000Z
pyalp/sequence/checkerboard.py
BaptisteLefebvre/pyalp
05cb8ff9e66f95ed9c70a8ab8a91c78794f7350a
[ "MIT" ]
null
null
null
pyalp/sequence/checkerboard.py
BaptisteLefebvre/pyalp
05cb8ff9e66f95ed9c70a8ab8a91c78794f7350a
[ "MIT" ]
1
2020-11-09T09:23:19.000Z
2020-11-09T09:23:19.000Z
import numpy from .base import Sequence class Checkerboard(Sequence): """TODO add doc... TODO complete... """ def __init__(self, check_size=30, n_checks=10, rate=50.0, n_repetitions=None, seed=None): # Save input parameters self.check_size = check_size # px self.n_checks = n...
39.689189
113
0.625468
4a03fb2761b4ca3cf4e99d5dd1156188be6186d9
4,937
py
Python
dagon/peer2peer/node.py
JuanBarron/dagonstar
23e24ceb27e868c70461a9c573dadfb86eb96486
[ "Apache-2.0" ]
null
null
null
dagon/peer2peer/node.py
JuanBarron/dagonstar
23e24ceb27e868c70461a9c573dadfb86eb96486
[ "Apache-2.0" ]
null
null
null
dagon/peer2peer/node.py
JuanBarron/dagonstar
23e24ceb27e868c70461a9c573dadfb86eb96486
[ "Apache-2.0" ]
null
null
null
import hashlib from flask import Flask from flask import request import json import sys import requests import os import socket from time import sleep app = Flask(__name__) # nodes ip = "localhost" m = 10 ID = int(sys.argv[1]) #workflow PortBase=int(sys.argv[2]) SuscribedNodes=[] Records = [] Transversal_Records =...
30.103659
91
0.627912
4a03fba52bd9e715adca6f383e7e494bbc503484
2,049
py
Python
raiden/network/utils.py
karlb/raiden
61ade0559add1a97588ae6bdedd5e0b99ed41de3
[ "MIT" ]
1
2018-10-27T11:30:06.000Z
2018-10-27T11:30:06.000Z
raiden/network/utils.py
karlb/raiden
61ade0559add1a97588ae6bdedd5e0b99ed41de3
[ "MIT" ]
null
null
null
raiden/network/utils.py
karlb/raiden
61ade0559add1a97588ae6bdedd5e0b99ed41de3
[ "MIT" ]
null
null
null
from itertools import count from time import sleep from typing import Optional import psutil import requests from requests import RequestException def get_free_port(address: str, initial_port: int): """Find an unused TCP port in a specified range. This should not be used in misson-critical applications - a...
28.859155
87
0.603709
4a03fbc5031a4c3a28c2fad64f45cd0ca67e1f85
13,101
py
Python
tests/test_BaseTransform.py
OrtnerMichael/magPyLib
4c7e7f56f6e0b915ec0e024c172c460fa80126e5
[ "BSD-2-Clause" ]
null
null
null
tests/test_BaseTransform.py
OrtnerMichael/magPyLib
4c7e7f56f6e0b915ec0e024c172c460fa80126e5
[ "BSD-2-Clause" ]
null
null
null
tests/test_BaseTransform.py
OrtnerMichael/magPyLib
4c7e7f56f6e0b915ec0e024c172c460fa80126e5
[ "BSD-2-Clause" ]
null
null
null
import numpy as np import pytest from scipy.spatial.transform import Rotation as R import magpylib as magpy from magpylib._src.obj_classes.class_BaseTransform import apply_move from magpylib._src.obj_classes.class_BaseTransform import apply_rotation @pytest.mark.parametrize( ( "description", "old...
32.428218
101
0.432791
4a03fbcec81a1833ab604906837c84b5d2d1f09c
1,348
py
Python
mozart/services/api_v02/service.py
hysds/mozart
44ed1b70114d65d8fe10c56ce4ef22460764f882
[ "Apache-2.0" ]
1
2019-10-18T21:30:28.000Z
2019-10-18T21:30:28.000Z
mozart/services/api_v02/service.py
hysds/mozart
44ed1b70114d65d8fe10c56ce4ef22460764f882
[ "Apache-2.0" ]
6
2019-10-22T05:17:32.000Z
2021-03-08T22:51:05.000Z
mozart/services/api_v02/service.py
hysds/mozart
44ed1b70114d65d8fe10c56ce4ef22460764f882
[ "Apache-2.0" ]
3
2018-04-08T19:13:42.000Z
2019-02-07T18:58:04.000Z
from __future__ import print_function from __future__ import unicode_literals from __future__ import division from __future__ import absolute_import from builtins import int from builtins import str from future import standard_library standard_library.install_aliases() from flask import Blueprint from flask_restx impo...
28.083333
80
0.815282
4a03fbecb70b4255bfd7f26089ee30d4d61424cf
4,822
py
Python
src/TimeSeries/TimeSeriesForecast.py
rudyn2/wine_market_temporal_prediction
ab51dbdaa75dfd532eaef3f712ca21f3117c6d74
[ "MIT" ]
null
null
null
src/TimeSeries/TimeSeriesForecast.py
rudyn2/wine_market_temporal_prediction
ab51dbdaa75dfd532eaef3f712ca21f3117c6d74
[ "MIT" ]
null
null
null
src/TimeSeries/TimeSeriesForecast.py
rudyn2/wine_market_temporal_prediction
ab51dbdaa75dfd532eaef3f712ca21f3117c6d74
[ "MIT" ]
null
null
null
import abc from typing import Tuple import pandas as pd from src.TimeSeries.TimeSeries import TimeSeries class ResultsNotFound(Exception): def __init__(self, name: str): super(ResultsNotFound, self).__init__(f"There are not SARIMAX models fitted for: {name}. Please, fit before" ...
42.672566
118
0.570095
4a03fe972d4b4c4c898667cb107897aaea889540
3,181
py
Python
feincms/contrib/fields.py
youPickItUp/feincms
eb7b09b745da0773c1cd8bea6ebb3f7c28edc8b3
[ "BSD-3-Clause" ]
325
2015-01-07T08:20:09.000Z
2022-03-22T02:55:13.000Z
feincms/contrib/fields.py
youPickItUp/feincms
eb7b09b745da0773c1cd8bea6ebb3f7c28edc8b3
[ "BSD-3-Clause" ]
148
2015-01-09T06:19:35.000Z
2022-01-07T15:36:35.000Z
feincms/contrib/fields.py
youPickItUp/feincms
eb7b09b745da0773c1cd8bea6ebb3f7c28edc8b3
[ "BSD-3-Clause" ]
109
2015-01-13T09:30:20.000Z
2022-01-03T09:24:07.000Z
from __future__ import absolute_import, unicode_literals import json import logging from distutils.version import LooseVersion import six from django import forms, get_version from django.core.serializers.json import DjangoJSONEncoder from django.db import models class JSONFormField(forms.fields.CharField): def...
31.49505
87
0.62276
4a03fed8ed17aea0c44d18208757fbd359a58b5c
255
py
Python
src/api-engine/api/lib/agent/network_base.py
hyperledger-gerrit-archive/cello
52ce6439a391ee65cec76934c1d7b0475543a1e4
[ "Apache-2.0" ]
865
2017-01-12T21:51:37.000Z
2022-03-26T16:39:16.000Z
src/api-engine/api/lib/agent/network_base.py
hyperledger-gerrit-archive/cello
52ce6439a391ee65cec76934c1d7b0475543a1e4
[ "Apache-2.0" ]
226
2017-02-06T08:36:24.000Z
2022-03-30T06:13:46.000Z
src/api-engine/api/lib/agent/network_base.py
hyperledger-gerrit-archive/cello
52ce6439a391ee65cec76934c1d7b0475543a1e4
[ "Apache-2.0" ]
506
2017-02-08T06:11:18.000Z
2022-03-10T04:25:25.000Z
# # SPDX-License-Identifier: Apache-2.0 # import abc class NetworkBase(object): __metaclass__ = abc.ABCMeta def __init__(self, *args, **kwargs): pass @abc.abstractmethod def generate_config(self, *args, **kwargs): pass
15.9375
47
0.647059
4a03ffc7fb0c4f7167238b77a6f49a16c7ebbf4f
7,467
py
Python
tools/python/google/httpd_utils.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
tools/python/google/httpd_utils.py
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tools/python/google/httpd_utils.py
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/env python # Copyright (c) 2011 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. """A class to help start/stop a local apache http server.""" import logging import optparse import os import subprocess import sys...
37.149254
80
0.663453
4a04003c579272f9536bd6b44ab8e58a767c4d4d
2,080
py
Python
testing_project/study_stock.py
giwon-bae/giwon-bae.github.io
28474af641e4aadf0fcd1c421a1226495551c5d6
[ "MIT" ]
null
null
null
testing_project/study_stock.py
giwon-bae/giwon-bae.github.io
28474af641e4aadf0fcd1c421a1226495551c5d6
[ "MIT" ]
null
null
null
testing_project/study_stock.py
giwon-bae/giwon-bae.github.io
28474af641e4aadf0fcd1c421a1226495551c5d6
[ "MIT" ]
null
null
null
import win32com.client # 연결 여부 체크 objCpCybos = win32com.client.Dispatch("CpUtil.CpCybos") bConnect = objCpCybos.IsConnect if (bConnect == 0): print("PLUS가 정상적으로 연결되지 않음. ") exit() # 현재가 객체 구하기 objStockMst = win32com.client.Dispatch("DsCbo1.StockMst") objStockMst.SetInputValue(0, 'A005930') #종목 코드 - 삼성전자 o...
27.368421
76
0.707212
4a04015a025134b708a21418535f4993c58f8ed6
714
py
Python
pyfermod/stats/stats_expon_rvs.py
josborne-noaa/PyFerret
8496508e9902c0184898522e9f89f6caea6d4539
[ "Unlicense" ]
44
2016-03-18T22:05:31.000Z
2021-12-23T01:50:09.000Z
pyfermod/stats/stats_expon_rvs.py
josborne-noaa/PyFerret
8496508e9902c0184898522e9f89f6caea6d4539
[ "Unlicense" ]
88
2016-08-19T08:05:37.000Z
2022-03-28T23:29:21.000Z
pyfermod/stats/stats_expon_rvs.py
josborne-noaa/PyFerret
8496508e9902c0184898522e9f89f6caea6d4539
[ "Unlicense" ]
24
2016-02-07T18:12:06.000Z
2022-02-19T09:06:17.000Z
""" Returns the array of random variates for the Exponential probability distribution using the given arrays for the abscissa or template values and each of the parameters values. """ import numpy import pyferret import pyferret.stats DISTRIB_NAME = "Exponential" FUNC_NAME = "rvs" def ferret_init(id): """ In...
24.62069
70
0.717087
4a04022f9d30cb844584e6d050ac96bfc5815897
7,565
py
Python
src/python_op3/soccer/ball_follower.py
culdo/python-op3
59a068ae4c8694778126aebc2ab553963b82493b
[ "MIT" ]
5
2019-08-06T07:28:10.000Z
2022-01-30T17:00:41.000Z
src/python_op3/soccer/ball_follower.py
culdo/python-op3
59a068ae4c8694778126aebc2ab553963b82493b
[ "MIT" ]
2
2019-08-06T15:54:42.000Z
2021-04-21T02:40:36.000Z
src/python_op3/soccer/ball_follower.py
culdo/python-op3
59a068ae4c8694778126aebc2ab553963b82493b
[ "MIT" ]
5
2020-09-25T10:03:51.000Z
2021-10-18T06:19:43.000Z
import rospy from math import pi, tan from geometry_msgs.msg import Point from op3_walking_module_msgs.msg import WalkingParam from op3_walking_module_msgs.srv import GetWalkingParam class BallFollower(object): def __init__(self): self.ball_position = Point() self.current_walking_param_ = WalkingP...
38.994845
124
0.618771
4a040271f61fd13585c7468151f2eedf6480c220
1,070
py
Python
models/metrics/factory.py
valeoai/BEEF
f1c5f3708ba91f6402dd05814b76dca1d9012942
[ "Apache-2.0" ]
4
2021-05-31T16:53:35.000Z
2021-11-30T03:03:34.000Z
models/metrics/factory.py
valeoai/BEEF
f1c5f3708ba91f6402dd05814b76dca1d9012942
[ "Apache-2.0" ]
3
2022-02-02T20:41:56.000Z
2022-02-24T11:47:44.000Z
models/metrics/factory.py
valeoai/BEEF
f1c5f3708ba91f6402dd05814b76dca1d9012942
[ "Apache-2.0" ]
null
null
null
from bootstrap.lib.options import Options from .bdd import BDDDrive from .map import mAP from .futuretraj import FutureTraj from .bdd_caption import CaptionMetrics from .multimetrics import MultiMetrics def factory(engine, mode): opt = Options()['model.metric'] if opt['name'] == 'map': metric = mAP(e...
34.516129
110
0.648598
4a0402bbdbb16e5434ffe2d3cebb896ac587e99d
14,122
py
Python
control/excalibur/parameter.py
dls-controls/excalibur-detector
11811d6e4b2e6ce7413037e9489999799551ff8d
[ "Apache-2.0" ]
null
null
null
control/excalibur/parameter.py
dls-controls/excalibur-detector
11811d6e4b2e6ce7413037e9489999799551ff8d
[ "Apache-2.0" ]
22
2017-05-19T09:29:02.000Z
2021-07-22T12:35:33.000Z
control/excalibur/parameter.py
dls-controls/excalibur-detector
11811d6e4b2e6ce7413037e9489999799551ff8d
[ "Apache-2.0" ]
5
2018-04-23T14:57:38.000Z
2020-10-20T12:50:34.000Z
''' Created on Mar 21, 2017 @author: tcn45 ''' from collections import OrderedDict from .fem_api_parameters import * FEM_RTN_INTERNALERROR = -1 FEM_RTN_CONNECTION_CLOSED = 10000 FEM_RTN_TIMEOUT = 10001 CHIPS_PER_FEM = FEM_CHIPS_PER_STRIPE_X FEM_PIXELS_PER_CHIP = FEM_PIXELS_PER_CHIP_X * FEM_PIXELS_PER_CHIP_Y ParamP...
67.894231
132
0.719586
4a04041574de53092e04324cecd61638a9313d5b
6,120
py
Python
contrib/devtools/test-security-check.py
VaderCoinProject/vadercoin
b513c794b014d40e5aad281dd1f54845c46d216c
[ "MIT" ]
null
null
null
contrib/devtools/test-security-check.py
VaderCoinProject/vadercoin
b513c794b014d40e5aad281dd1f54845c46d216c
[ "MIT" ]
null
null
null
contrib/devtools/test-security-check.py
VaderCoinProject/vadercoin
b513c794b014d40e5aad281dd1f54845c46d216c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2020 The Vadercoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Test script for security-check.py ''' import os import subprocess import unittest from utils import...
60
193
0.653758
4a04046841492db246505026d3bd40c5cd8b0a49
87,073
py
Python
hata/discord/events/handling_helpers.py
m0nk3ybraindead/hata
f87ed3d7009eeae31d6ea158772efd33775c7b1c
[ "0BSD" ]
1
2022-03-02T03:59:57.000Z
2022-03-02T03:59:57.000Z
hata/discord/events/handling_helpers.py
m0nk3ybraindead/hata
f87ed3d7009eeae31d6ea158772efd33775c7b1c
[ "0BSD" ]
null
null
null
hata/discord/events/handling_helpers.py
m0nk3ybraindead/hata
f87ed3d7009eeae31d6ea158772efd33775c7b1c
[ "0BSD" ]
null
null
null
__all__ = ('EventHandlerBase', 'EventWaitforBase', 'eventlist', ) from functools import partial as partial_func from types import FunctionType from scarletio import ( CallableAnalyzer, MethodLike, RemovedDescriptor, RichAttributeErrorBaseType, Task, WaitTillAll, WeakKeyDictionary, is_coroutine_function ) from...
32.87014
120
0.530555
4a04046b79ffc27d56e2bdb76759bfa9acef8b02
738
py
Python
src/adafruit_blinka/board/hifive_unleashed.py
Jcc99/Adafruit_Blinka
41f8155bab83039ed9d45276addd3d501e83f3e6
[ "MIT" ]
294
2018-06-30T19:08:27.000Z
2022-03-26T21:08:47.000Z
src/adafruit_blinka/board/hifive_unleashed.py
Jcc99/Adafruit_Blinka
41f8155bab83039ed9d45276addd3d501e83f3e6
[ "MIT" ]
421
2018-06-30T20:54:46.000Z
2022-03-31T15:08:37.000Z
src/adafruit_blinka/board/hifive_unleashed.py
Jcc99/Adafruit_Blinka
41f8155bab83039ed9d45276addd3d501e83f3e6
[ "MIT" ]
234
2018-07-23T18:49:16.000Z
2022-03-28T16:59:48.000Z
"""Pin definitions for the Hifive Unleashed.""" from adafruit_blinka.microcontroller.hfu540 import pin GPIO_A = pin.GPIO0 GPIO_B = pin.GPIO1 GPIO_C = pin.GPIO2 GPIO_D = pin.GPIO3 GPIO_E = pin.GPIO4 GPIO_F = pin.GPIO5 GPIO_G = pin.GPIO6 GPIO_H = pin.GPIO7 GPIO_I = pin.GPIO8 GPIO_J = pin.GPIO9 GPIO_K = pin.GPIO15 UART...
19.421053
54
0.769648
4a0405988e45b0c9c30d38323fc0614d9284d24b
7,302
py
Python
tanjun/errors.py
ashwinvin/Tanjun
e16e28a3be7b809762e2cdc583ae9fe9edf8a0ab
[ "BSD-3-Clause" ]
null
null
null
tanjun/errors.py
ashwinvin/Tanjun
e16e28a3be7b809762e2cdc583ae9fe9edf8a0ab
[ "BSD-3-Clause" ]
null
null
null
tanjun/errors.py
ashwinvin/Tanjun
e16e28a3be7b809762e2cdc583ae9fe9edf8a0ab
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # cython: language_level=3 # BSD 3-Clause License # # Copyright (c) 2020-2021, Faster Speeding # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of sour...
29.443548
111
0.684196
4a0407d6c5f7e43e5ae23f9a4e5cb97b58c613aa
1,187
py
Python
setup.py
adamltyson/movement
0ced58511091b935ef6974c9ee258de81fb15da8
[ "MIT" ]
1
2020-04-06T10:13:48.000Z
2020-04-06T10:13:48.000Z
setup.py
adamltyson/movement
0ced58511091b935ef6974c9ee258de81fb15da8
[ "MIT" ]
null
null
null
setup.py
adamltyson/movement
0ced58511091b935ef6974c9ee258de81fb15da8
[ "MIT" ]
null
null
null
from setuptools import setup, find_namespace_packages requirements = ["imlib", "numpy"] setup( name="movement", version="0.0.4", description="Movement analysis", install_requires=requirements, extras_require={ "dev": [ "sphinx", "recommonmark", "sphinx_r...
28.261905
65
0.561078
4a040847485cd63a4c2f1efcd50554a308d79b25
217
py
Python
104_manejoCadenas/metodoIsspace.py
josuerojasq/netacad_python
510c3a026f83e499144d91c00edc5045a8304a08
[ "MIT" ]
null
null
null
104_manejoCadenas/metodoIsspace.py
josuerojasq/netacad_python
510c3a026f83e499144d91c00edc5045a8304a08
[ "MIT" ]
null
null
null
104_manejoCadenas/metodoIsspace.py
josuerojasq/netacad_python
510c3a026f83e499144d91c00edc5045a8304a08
[ "MIT" ]
null
null
null
#El método "isspace()" identifica espacios en blanco solamente # no tiene en cuenta ningún otro caracter (el resultado es entonces False). print(' \n '.isspace()) print(" ".isspace()) print("mooo mooo mooo".isspace())
43.4
75
0.728111
4a0408d8a3bf38d6d0f548e50ddd5044eab47a04
260
py
Python
rentcar/rentcar/doctype/dafatar_pesananan/dafatar_pesananan.py
Anelka-Lazuardi/rentcar
4859ae046edc377ba5094102aab426e03c54f754
[ "MIT" ]
null
null
null
rentcar/rentcar/doctype/dafatar_pesananan/dafatar_pesananan.py
Anelka-Lazuardi/rentcar
4859ae046edc377ba5094102aab426e03c54f754
[ "MIT" ]
null
null
null
rentcar/rentcar/doctype/dafatar_pesananan/dafatar_pesananan.py
Anelka-Lazuardi/rentcar
4859ae046edc377ba5094102aab426e03c54f754
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2019, MIDB and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class DafatarPesananan(Document): pass
23.636364
49
0.773077
4a0409b0c778315a481851abf8f74d98a770857c
5,630
py
Python
AutomatedTesting/Gem/PythonTests/Atom/TestSuite_Main.py
TheKeaver/o3de
3791149c6bb18d007ee375f592bdd031871f793d
[ "Apache-2.0", "MIT" ]
1
2021-07-15T14:22:36.000Z
2021-07-15T14:22:36.000Z
AutomatedTesting/Gem/PythonTests/Atom/TestSuite_Main.py
TheKeaver/o3de
3791149c6bb18d007ee375f592bdd031871f793d
[ "Apache-2.0", "MIT" ]
null
null
null
AutomatedTesting/Gem/PythonTests/Atom/TestSuite_Main.py
TheKeaver/o3de
3791149c6bb18d007ee375f592bdd031871f793d
[ "Apache-2.0", "MIT" ]
null
null
null
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ import pytest from ly_test_tools.o3de.editor_test import EditorSharedTest, EditorTestSuite @pytest.mark.param...
48.956522
115
0.817229
4a040a660fcfffc519b91fba781077cdeec73c35
13,579
py
Python
python+numpy.py
dearli123/awesome-DeepLearning
ed7423074582acfb22617d32507e167fb2193cd8
[ "Apache-2.0" ]
null
null
null
python+numpy.py
dearli123/awesome-DeepLearning
ed7423074582acfb22617d32507e167fb2193cd8
[ "Apache-2.0" ]
null
null
null
python+numpy.py
dearli123/awesome-DeepLearning
ed7423074582acfb22617d32507e167fb2193cd8
[ "Apache-2.0" ]
null
null
null
Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> # 导入需要用到的package import numpy as np import json # 读入训练数据 datafile = './work/housing.data' data = np.fromfile(datafile, sep=' ') data # 读入...
29.519565
95
0.571397
4a040ad5c60b39da414822113985c76574a1a69e
738
py
Python
tools/chrome_proxy/common/chrome_proxy_shared_page_state.py
google-ar/chromium
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
tools/chrome_proxy/common/chrome_proxy_shared_page_state.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tools/chrome_proxy/common/chrome_proxy_shared_page_state.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.page.shared_page_state import SharedPageState class ChromeProxySharedPageState(SharedPageState): """Overides SharePageState to disable repl...
38.842105
77
0.791328
4a040c3720ce94bc0e56e8f69ef907d7f642b7ab
711
py
Python
tests/test_urls.py
vetalpaprotsky/python-project-lvl3
b456b50181911de4a3e5bf6c17332c14b5e47565
[ "MIT" ]
null
null
null
tests/test_urls.py
vetalpaprotsky/python-project-lvl3
b456b50181911de4a3e5bf6c17332c14b5e47565
[ "MIT" ]
null
null
null
tests/test_urls.py
vetalpaprotsky/python-project-lvl3
b456b50181911de4a3e5bf6c17332c14b5e47565
[ "MIT" ]
1
2021-02-01T18:01:10.000Z
2021-02-01T18:01:10.000Z
import pytest from page_loader.urls import url_to_file_name @pytest.mark.parametrize( 'url,expected', [ ('http://test.com', 'test-com.html'), ('https://test.com', 'test-com.html'), ('//test.com', 'test-com.html'), ('http://test.com/', 'test-com.html'), ('http://test.com...
33.857143
78
0.587904
4a040c752b6855d9eb1f7ae0b18c784cac353717
1,933
py
Python
commands/findduplicatetracks.py
syphar/rekordboxcleanup
d8a7ec654517afc5bc9f20ef74bbf81e4f5bfad9
[ "MIT" ]
null
null
null
commands/findduplicatetracks.py
syphar/rekordboxcleanup
d8a7ec654517afc5bc9f20ef74bbf81e4f5bfad9
[ "MIT" ]
2
2021-03-31T19:27:42.000Z
2021-12-13T20:23:08.000Z
commands/findduplicatetracks.py
syphar/rekordboxcleanup
d8a7ec654517afc5bc9f20ef74bbf81e4f5bfad9
[ "MIT" ]
null
null
null
import collections import re import click from lxml import etree from commands.common import create_playlist, write_xml REMIX_PATTERNS = ( re.compile(r'^(.*)\((.*)remix\)$', re.IGNORECASE), re.compile(r'^(.*)\((.*)mix\)$', re.IGNORECASE), re.compile(r'^(.*)\-(.*)remix$', re.IGNORECASE), re.compile(r'...
21.241758
63
0.58717
4a040d18b8dff85068de7dae00fd337e0ab76d5e
2,834
py
Python
mlfinlab/__init__.py
nautiism/mlfinlab
b9beb1500c1938591eff7cfae2cdc4c3aa783f54
[ "BSD-3-Clause" ]
null
null
null
mlfinlab/__init__.py
nautiism/mlfinlab
b9beb1500c1938591eff7cfae2cdc4c3aa783f54
[ "BSD-3-Clause" ]
null
null
null
mlfinlab/__init__.py
nautiism/mlfinlab
b9beb1500c1938591eff7cfae2cdc4c3aa783f54
[ "BSD-3-Clause" ]
null
null
null
""" Package based on the text book: Advances in Financial Machine Learning, by Marcos Lopez de Prado """ import webbrowser import textwrap import mlfinlab.cross_validation as cross_validation import mlfinlab.data_structures as data_structures import mlfinlab.multi_product as multi_product import mlfinlab.filters.filte...
47.233333
120
0.787932
4a040d25650285c3a6eb8ab3902a403f887bf38d
2,893
py
Python
scripts/startx.py
mengdi-li/robotic-occlusion-reasoning
741072a7f454c308ae034716cd58ab45038e65af
[ "MIT" ]
5
2021-11-25T13:18:14.000Z
2021-12-21T13:10:45.000Z
scripts/startx.py
mengdi-li/robotic-occlusion-reasoning
741072a7f454c308ae034716cd58ab45038e65af
[ "MIT" ]
null
null
null
scripts/startx.py
mengdi-li/robotic-occlusion-reasoning
741072a7f454c308ae034716cd58ab45038e65af
[ "MIT" ]
null
null
null
# from https://github.com/allenai/allenact/blob/main/scripts/startx.py import atexit import os import platform import re import shlex import subprocess import tempfile # Turning off automatic black formatting for this script as it breaks quotes. # fmt: off def pci_records(): records = [] command = shlex.sp...
28.362745
129
0.625994
4a040e6e994952854e60307ff2148cb2002baa4b
1,092
py
Python
TBC/types/Table.py
rackerlabs/trial-by-combat
36f81e4a13c9497d91d62f47405151f00a6c75b7
[ "Apache-2.0" ]
2
2016-08-08T19:43:40.000Z
2016-12-26T23:00:35.000Z
TBC/types/Table.py
rackerlabs/trial-by-combat
36f81e4a13c9497d91d62f47405151f00a6c75b7
[ "Apache-2.0" ]
null
null
null
TBC/types/Table.py
rackerlabs/trial-by-combat
36f81e4a13c9497d91d62f47405151f00a6c75b7
[ "Apache-2.0" ]
null
null
null
class Table(object): """ Represents a SQL table """ def __init__(self, name, columns=()): """ :param name: the name of the table :param columns: columns to add to the table. Columns may optionally be added later using the add_column() function """ self...
27.3
81
0.545788
4a040eb1f43a1c23de28be6363857e73c35468ce
176
py
Python
ExercíciosDoModulo1dePythonColoridos/ex014.py
BossNX/ExerciciosDePython
27c79d284794f65f94d3a07de11429d665ec92da
[ "MIT" ]
null
null
null
ExercíciosDoModulo1dePythonColoridos/ex014.py
BossNX/ExerciciosDePython
27c79d284794f65f94d3a07de11429d665ec92da
[ "MIT" ]
null
null
null
ExercíciosDoModulo1dePythonColoridos/ex014.py
BossNX/ExerciciosDePython
27c79d284794f65f94d3a07de11429d665ec92da
[ "MIT" ]
null
null
null
c = float(input('Qual é a temperatura atual em °C? ')) f = c * 9 / 5 + 32 print('A temperatura \033[34;4m{:.1f}°C\033[m é equivalente à \033[31;4m{:.1f}°F\033[m'.format(c, f))
44
101
0.613636
4a040f462ded206feb330b9aa56e3ee054b5f122
1,203
py
Python
examples/hopv/hopv_graph_conv.py
hl2500/deepchem
09ed9c04110eb822c2d6c9be61c27da4939896f6
[ "MIT" ]
2
2021-04-01T01:17:53.000Z
2021-10-04T16:46:13.000Z
examples/hopv/hopv_graph_conv.py
evenhe/deepchem
9d0fc5554b286117ae08b21b3f15877b06a1009e
[ "MIT" ]
null
null
null
examples/hopv/hopv_graph_conv.py
evenhe/deepchem
9d0fc5554b286117ae08b21b3f15877b06a1009e
[ "MIT" ]
1
2021-04-06T20:32:02.000Z
2021-04-06T20:32:02.000Z
""" Script that trains graph-conv models on HOPV dataset. """ from __future__ import print_function from __future__ import division from __future__ import unicode_literals import numpy as np from deepchem.models import GraphConvModel np.random.seed(123) import tensorflow as tf tf.set_random_seed(123) import deepchem...
25.0625
79
0.786367
4a040f82b96beb721b6ac9818e2d9e2aeda70d9e
326
py
Python
instance/config.py
OpenUpSA/odac-victim-empowerment
7eb6d533e5445da1af3a90741cf3adbd4210e09d
[ "Apache-2.0" ]
null
null
null
instance/config.py
OpenUpSA/odac-victim-empowerment
7eb6d533e5445da1af3a90741cf3adbd4210e09d
[ "Apache-2.0" ]
null
null
null
instance/config.py
OpenUpSA/odac-victim-empowerment
7eb6d533e5445da1af3a90741cf3adbd4210e09d
[ "Apache-2.0" ]
null
null
null
import os.path as op import logging LOG_LEVEL = logging.DEBUG LOGGER_NAME = "msg_handler_logger" # make sure this is not the same as the name of the package to avoid conflicts with Flask's own logger DEBUG = True # If this is true, then replies get logged to file, rather than hitting the vumi API. ONLINE_LAST_MINUT...
40.75
138
0.776074
4a0410e6b7a97be5555db09da08a170170e11e33
4,557
py
Python
camelot/admin/table.py
FrDeGraux/camelot
56aa93f774edbb0c31a21109e187cf81f49a68d8
[ "BSD-3-Clause" ]
12
2020-08-02T17:00:37.000Z
2022-01-22T17:49:23.000Z
camelot/admin/table.py
FrDeGraux/camelot
56aa93f774edbb0c31a21109e187cf81f49a68d8
[ "BSD-3-Clause" ]
124
2020-08-19T15:03:54.000Z
2022-03-31T07:12:16.000Z
camelot/admin/table.py
FrDeGraux/camelot
56aa93f774edbb0c31a21109e187cf81f49a68d8
[ "BSD-3-Clause" ]
17
2020-04-25T19:22:20.000Z
2022-01-25T08:46:19.000Z
# ============================================================================ # # Copyright (C) 2007-2016 Conceptive Engineering bvba. # www.conceptive.be / info@conceptive.be # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following condition...
38.294118
83
0.630898
4a0410e6de5a249ede2751e1148dff8106fabd41
3,961
py
Python
auto_smart_commit/auto_smart_commit.py
deferred/auto-smart-commit
9214447d65894260e6bddd01af47ec45670e1b81
[ "MIT" ]
null
null
null
auto_smart_commit/auto_smart_commit.py
deferred/auto-smart-commit
9214447d65894260e6bddd01af47ec45670e1b81
[ "MIT" ]
null
null
null
auto_smart_commit/auto_smart_commit.py
deferred/auto-smart-commit
9214447d65894260e6bddd01af47ec45670e1b81
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re import sys from datetime import datetime from math import floor from subprocess import check_output from typing import NoReturn, Optional def run_command(command: str) -> str: try: stdout: str = check_output(command.split()).decode("utf-8").strip() except Exception: ...
34.443478
94
0.661449
4a0410ffc523ce1e5d6dd016f71ecb30f244b946
2,274
py
Python
src/lib/crawler/finder.py
SohailAlvi/vault_scanner
72358cbc9f1bc5ac8b9b7373dca2cb2fc1dce3de
[ "MIT" ]
null
null
null
src/lib/crawler/finder.py
SohailAlvi/vault_scanner
72358cbc9f1bc5ac8b9b7373dca2cb2fc1dce3de
[ "MIT" ]
null
null
null
src/lib/crawler/finder.py
SohailAlvi/vault_scanner
72358cbc9f1bc5ac8b9b7373dca2cb2fc1dce3de
[ "MIT" ]
null
null
null
#! /usr/bin/python from html.parser import HTMLParser import urllib.request import urllib.response import urllib.parse import urllib.error import colors class Linkfinder(HTMLParser): def __init__(self, base_url): super().__init__() self.base_url = base_url self.links = set() def han...
27.071429
101
0.559807
4a0411ce8b1cf41df7c6e0d45a6f208faef91a05
2,302
py
Python
test/functional/sample_ta/Splunk_TA_mysolarwinds/bin/splunk_ta_mysolarwinds_rh_settings.py
isabella232/addonfactory-cloudconnect-library
ba01a5492e0d6f185954f6906b4f506325838fa4
[ "Apache-2.0" ]
null
null
null
test/functional/sample_ta/Splunk_TA_mysolarwinds/bin/splunk_ta_mysolarwinds_rh_settings.py
isabella232/addonfactory-cloudconnect-library
ba01a5492e0d6f185954f6906b4f506325838fa4
[ "Apache-2.0" ]
null
null
null
test/functional/sample_ta/Splunk_TA_mysolarwinds/bin/splunk_ta_mysolarwinds_rh_settings.py
isabella232/addonfactory-cloudconnect-library
ba01a5492e0d6f185954f6906b4f506325838fa4
[ "Apache-2.0" ]
null
null
null
import splunk_ta_mysolarwinds_import_declare from splunktaucclib.rest_handler.endpoint import ( field, validator, RestModel, MultipleModel, ) from splunktaucclib.rest_handler import admin_external, util from splunktaucclib.rest_handler.admin_external import AdminExternalHandler util.remove_http_proxy...
23.489796
373
0.565595
4a0411d63ad58f53cd52fb5a61ad75877dd04b65
897
py
Python
share/qt/clean_mac_info_plist.py
Blaksmith/FuMPCoin
641ddb00cf232de591c7715d0f0001765ea02ef9
[ "MIT" ]
null
null
null
share/qt/clean_mac_info_plist.py
Blaksmith/FuMPCoin
641ddb00cf232de591c7715d0f0001765ea02ef9
[ "MIT" ]
null
null
null
share/qt/clean_mac_info_plist.py
Blaksmith/FuMPCoin
641ddb00cf232de591c7715d0f0001765ea02ef9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Jonas Schnelli, 2013 # make sure the Bitcoin-Qt.app contains the right plist (including the right version) # fix made because of serval bugs in Qt mac deployment (https://bugreports.qt-project.org/browse/QTBUG-21267) from string import Template from datetime import date bitcoinDir = "./"; inF...
29.9
109
0.725753
4a04128fca6990ce3fb96026a5fb0bf2d08f3a78
1,358
py
Python
fizzbuzz/fizzbuzz.py
sotetsuk/python-dev-tutorial
aec676b78720b6de6eae29709c48eeac65fdb41b
[ "MIT" ]
6
2020-12-17T09:31:23.000Z
2022-03-30T07:57:23.000Z
fizzbuzz/fizzbuzz.py
sotetsuk/python-dev-tutorial
aec676b78720b6de6eae29709c48eeac65fdb41b
[ "MIT" ]
12
2020-11-08T01:50:30.000Z
2020-12-17T12:27:05.000Z
fizzbuzz/fizzbuzz.py
sotetsuk/python-dev-tutorial
aec676b78720b6de6eae29709c48eeac65fdb41b
[ "MIT" ]
4
2020-12-22T09:51:16.000Z
2021-01-21T11:49:37.000Z
import sys import click def fizzbuzz(n: int, fizz: int = 3, buzz: int = 5) -> str: """Fizz Buzz function. >>> fizzbuzz(3) 'Fizz' >>> fizzbuzz(5) 'Buzz' >>> fizzbuzz(15) 'FizzBuzz' >>> fizzbuzz(2) '2' """ if n % fizz == 0 and n % buzz == 0: return "FizzBuzz" eli...
28.291667
85
0.576583
4a0415f0e34fbdf9217a61d1d38d0a8a91f549a2
8,163
py
Python
site-packages/cheroot/workers/threadpool.py
lego-cloud/MDMPy
dc676a5d2245a14b9b98a2ac2dba64ff0bf61800
[ "Python-2.0", "OLDAP-2.7" ]
2
2017-09-30T13:32:53.000Z
2017-10-02T10:41:46.000Z
site-packages/cheroot/workers/threadpool.py
lego-cloud/MDMPy
dc676a5d2245a14b9b98a2ac2dba64ff0bf61800
[ "Python-2.0", "OLDAP-2.7" ]
1
2017-04-22T22:24:36.000Z
2017-04-22T22:24:36.000Z
site-packages/cheroot/workers/threadpool.py
lego-cloud/MDMPy
dc676a5d2245a14b9b98a2ac2dba64ff0bf61800
[ "Python-2.0", "OLDAP-2.7" ]
2
2017-04-22T22:23:09.000Z
2021-06-09T03:03:52.000Z
"""A thread-based worker pool.""" import threading import time import sys import socket from six.moves import queue __all__ = ['WorkerThread', 'ThreadPool'] class TrueyZero(object): """An object which equals and does math like the integer 0 but evals True. """ def __add__(self, other): retu...
34.154812
78
0.543918
4a04169a9f7ab92450d599b041019de0382e103f
7,509
py
Python
depccg/tools/ja/data.py
justheuristic/depccg
9a60ead5804dc3f03edaf25418a7aa1378d54c17
[ "MIT" ]
null
null
null
depccg/tools/ja/data.py
justheuristic/depccg
9a60ead5804dc3f03edaf25418a7aa1378d54c17
[ "MIT" ]
null
null
null
depccg/tools/ja/data.py
justheuristic/depccg
9a60ead5804dc3f03edaf25418a7aa1378d54c17
[ "MIT" ]
null
null
null
import logging import json from collections import defaultdict from pathlib import Path from depccg.tools.ja.reader import read_ccgbank logging.basicConfig(format='%(asctime)s - %(levelname)s - %(name)s - %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) UNK = "*UNKNOWN*" ST...
34.444954
83
0.548808
4a0416aba2b8ec694c3b5a3fb2a96ed29372b3d4
13,335
py
Python
qiskit/transpiler/passmanager.py
dmquinones/qiskit-terra
f8fdfc514b051b4a37f7ac738b9716aecba8fc37
[ "Apache-2.0" ]
1
2021-10-13T14:37:54.000Z
2021-10-13T14:37:54.000Z
qiskit/transpiler/passmanager.py
errvnd/qiskit-terra
c9c6d46cae3e48f06f4513be9dc0de3a49128424
[ "Apache-2.0" ]
null
null
null
qiskit/transpiler/passmanager.py
errvnd/qiskit-terra
c9c6d46cae3e48f06f4513be9dc0de3a49128424
[ "Apache-2.0" ]
2
2020-02-10T16:34:18.000Z
2020-05-22T08:37:07.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2018. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any ...
39.336283
99
0.624747
4a0416cd69fd06474a155dd2763588c0f705a0d2
29,824
py
Python
Jumpscale/clients/blockchain/tfchain/tests/7_balance_drain.py
threefoldtech/JumpscaleX
5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa
[ "Apache-2.0" ]
2
2019-05-09T07:21:25.000Z
2019-08-05T06:37:53.000Z
Jumpscale/clients/blockchain/tfchain/tests/7_balance_drain.py
threefoldtech/JumpscaleX
5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa
[ "Apache-2.0" ]
664
2018-12-19T12:43:44.000Z
2019-08-23T04:24:42.000Z
Jumpscale/clients/blockchain/tfchain/tests/7_balance_drain.py
threefoldtech/jumpscale10
5fb073a82aeb0e66fc7d9660c45a1e31bc094bfa
[ "Apache-2.0" ]
7
2019-05-03T07:14:37.000Z
2019-08-05T12:36:52.000Z
from Jumpscale import j from Jumpscale.clients.blockchain.tfchain.stub.ExplorerClientStub import TFChainExplorerGetClientStub def main(self): """ to run: kosmos 'j.clients.tfchain.test(name="balance_drain")' """ # create a tfchain client for devnet c = j.clients.tfchain.new("mydevclient", n...
451.878788
23,232
0.837882
4a0416d6fe1903f944a1540a6910feb9e525d8af
5,496
py
Python
pyiwfm/reader.py
dwr-psandhu/pyiwfm
aa06c014f9e6365946b035d39ac0464c2bee6045
[ "MIT" ]
1
2022-03-25T16:05:58.000Z
2022-03-25T16:05:58.000Z
pyiwfm/reader.py
dwr-psandhu/pyiwfm
aa06c014f9e6365946b035d39ac0464c2bee6045
[ "MIT" ]
null
null
null
pyiwfm/reader.py
dwr-psandhu/pyiwfm
aa06c014f9e6365946b035d39ac0464c2bee6045
[ "MIT" ]
null
null
null
from collections import namedtuple import pandas as pd import os import re def read_elements(file): with open(file, 'r') as fh: line = fh.readline() while line.find('IE') < 0 and line.find('IDE(1)') < 0: line = fh.readline() fh.readline() dfe = pd.read_csv(fh, sep='\s+'...
31.768786
88
0.571143
4a0417080906315f6da60feff89413e2f17e2bf6
1,521
py
Python
third_party/mox3/mox3/tests/test_stubout.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/mox3/mox3/tests/test_stubout.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
third_party/mox3/mox3/tests/test_stubout.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
# Unit tests for stubout. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
30.42
74
0.724523
4a041726be2588b408a6a52efd2cfde1529cdba5
1,040
py
Python
test/python/crash.py
webosce/umediaserver
988605735c1e35937fbfb7ac28422dee678d70d6
[ "Apache-2.0" ]
8
2018-03-17T22:28:05.000Z
2021-11-16T15:29:06.000Z
test/python/crash.py
webosce/umediaserver
988605735c1e35937fbfb7ac28422dee678d70d6
[ "Apache-2.0" ]
1
2021-05-21T22:51:00.000Z
2021-05-21T22:51:00.000Z
test/python/crash.py
webosce/umediaserver
988605735c1e35937fbfb7ac28422dee678d70d6
[ "Apache-2.0" ]
4
2018-03-22T18:48:22.000Z
2021-11-16T15:29:08.000Z
import Queue import argparse import sys from uMediaServer.uMediaClient import MediaPlayer def wait_reply(recv, tags, timeout = 5): while tags: try: (ev, data) = recv.get(timeout = timeout) except Queue.Empty: raise Exception('operation timeout') try: tags.remove(ev)...
29.714286
88
0.646154
4a0418bfc0e3107a51051aa12ed432ce65e71782
2,014
py
Python
fibonacci/app/views.py
shiminsh/callhub-fibonacci
869374878b2d5793e19c0f53879d2f89ffca7044
[ "MIT" ]
null
null
null
fibonacci/app/views.py
shiminsh/callhub-fibonacci
869374878b2d5793e19c0f53879d2f89ffca7044
[ "MIT" ]
null
null
null
fibonacci/app/views.py
shiminsh/callhub-fibonacci
869374878b2d5793e19c0f53879d2f89ffca7044
[ "MIT" ]
null
null
null
from django.shortcuts import render from app.models import Fibonacci from django.core.cache import cache # Create your views here. fib_matrix = [[1,1], [1,0]] def matrix_square(A, mod): return mat_mult(A,A,mod) def mat_mult(A,B, mod): if mod is not None: return [[(A[0][0]*B[0][0] + A[0][1]*...
27.972222
106
0.527309
4a0419e4ffc1ce852c16b3819ca069d797ca5230
448
py
Python
backend/models/validators.py
gogaz/coach_royale
fc6b9f9021c2470a8bcd8aa27dffef8ec079364c
[ "MIT" ]
10
2018-11-08T08:29:17.000Z
2021-11-02T11:55:49.000Z
backend/models/validators.py
gogaz/coach_royale
fc6b9f9021c2470a8bcd8aa27dffef8ec079364c
[ "MIT" ]
138
2018-09-14T03:47:51.000Z
2022-02-01T18:33:09.000Z
backend/models/validators.py
gogaz/coach_royale
fc6b9f9021c2470a8bcd8aa27dffef8ec079364c
[ "MIT" ]
null
null
null
import re from django.core.validators import RegexValidator def comma_separated_token_list_validator(sep=',', message=None, code='invalid'): regexp = re.compile(r'^[\w_-]+(?:%(sep)s[\w_-]+)*\Z' % { 'sep': re.escape(sep), }) return RegexValidator(regexp, message=message, code=code) validate_comma...
29.866667
80
0.703125
4a0419f993ca0c0090e802b58041c53460e350b8
2,038
py
Python
var/spack/repos/builtin/packages/intel-oneapi-dpl/package.py
QianJianhua1/spack
363536fd929d2aee280e07780ff6c98498d7be46
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/intel-oneapi-dpl/package.py
QianJianhua1/spack
363536fd929d2aee280e07780ff6c98498d7be46
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/intel-oneapi-dpl/package.py
QianJianhua1/spack
363536fd929d2aee280e07780ff6c98498d7be46
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import platform from spack import * @IntelOneApiPackage.update_description class IntelOneapiDpl(IntelOneApiLibraryPack...
39.960784
123
0.679588
4a041a5671fa279f33e47b5ee80d783c112fe87b
6,970
py
Python
Question_semaseg/answers/transposeconv_pytorch.py
skn047/DeepLearningMugenKnock
73d2b903816b380d56020c8336041883bc0d131c
[ "MIT" ]
1
2021-11-07T13:14:41.000Z
2021-11-07T13:14:41.000Z
Question_semaseg/answers/transposeconv_pytorch.py
skn047/DeepLearningMugenKnock
73d2b903816b380d56020c8336041883bc0d131c
[ "MIT" ]
null
null
null
Question_semaseg/answers/transposeconv_pytorch.py
skn047/DeepLearningMugenKnock
73d2b903816b380d56020c8336041883bc0d131c
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F import argparse import cv2 import numpy as np from glob import glob import matplotlib.pyplot as plt num_classes = 2 img_height, img_width = 64, 64#572, 572 out_height, out_width = 64, 64#388, 388 GPU = False torch.manual_seed(0) class Mynet(torch.nn.Module): def __...
29.914163
122
0.535151
4a041a92120d14085969928b59066e7bc6ce70f5
4,680
py
Python
networkx/algorithms/components/weakly_connected.py
rakschahsa/networkx
6cac55b1064c3c346665f9281680fa3b66442ad0
[ "BSD-3-Clause" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
SLpackage/private/thirdparty/pythonpkgs/networkx/networkx_2.2/lib/python2.7/site-packages/networkx/algorithms/components/weakly_connected.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
SLpackage/private/thirdparty/pythonpkgs/networkx/networkx_2.2/lib/python2.7/site-packages/networkx/algorithms/components/weakly_connected.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
1
2020-04-21T11:12:19.000Z
2020-04-21T11:12:19.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2004-2018 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. # # Authors: Aric Hagberg (hagberg@lanl.gov) # Christopher Ellison """Weakly connected components."""...
24.123711
91
0.628846
4a041b0efa34b195358f4de9ef6e22276262ff99
2,917
py
Python
grim/spells/time/time_line_chart.py
banjtheman/grimoire
949fec396afeb73b74c2667bebd64453b179cc4e
[ "Apache-2.0" ]
null
null
null
grim/spells/time/time_line_chart.py
banjtheman/grimoire
949fec396afeb73b74c2667bebd64453b179cc4e
[ "Apache-2.0" ]
5
2021-03-10T00:55:21.000Z
2022-02-26T20:53:49.000Z
grim/spells/time/time_line_chart.py
banjtheman/grimoire
949fec396afeb73b74c2667bebd64453b179cc4e
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import altair as alt import streamlit as st import sys, argparse, logging import json import time def spell(spell_inputs): mana = spell_inputs st.markdown("## Create the graph you would like to animate") time_col = st.selectbox("Select time column", mana.columns) ...
33.918605
101
0.59856
4a041b3c27880e30daff1ca9f5c2793502adf9fe
548
py
Python
survey/urls.py
HiroshiFuu/cs-balloting
565eb3ee88769d88b27705828c10c7b5be964ef5
[ "MIT" ]
null
null
null
survey/urls.py
HiroshiFuu/cs-balloting
565eb3ee88769d88b27705828c10c7b5be964ef5
[ "MIT" ]
null
null
null
survey/urls.py
HiroshiFuu/cs-balloting
565eb3ee88769d88b27705828c10c7b5be964ef5
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from django.urls import path, re_path from survey import views app_name = 'survey' urlpatterns = [ path('voting_result_json/<int:survey_id>/', views.voting_result_json, name='voting_result_json'), path('surveys/', views.surveys, name='surveys'), path('survey/<int:survey_id>/', ...
34.25
121
0.713504
4a041b4c82b8f214eae520eb8c09f863a6e53e15
27,478
py
Python
Thai_DNN_inverse_model_SW_1700_revised_1.py
rimalim2009/DNN_inverse_2004IOT_Thailand
23c7e5deee9b349d5427277811500f8756110484
[ "MIT" ]
null
null
null
Thai_DNN_inverse_model_SW_1700_revised_1.py
rimalim2009/DNN_inverse_2004IOT_Thailand
23c7e5deee9b349d5427277811500f8756110484
[ "MIT" ]
null
null
null
Thai_DNN_inverse_model_SW_1700_revised_1.py
rimalim2009/DNN_inverse_2004IOT_Thailand
23c7e5deee9b349d5427277811500f8756110484
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # SW 1700 # In[1]: import numpy as np import os #import ipdb def connect_dataset(file_list, icond_file_list, outputdir, topodx=15, roi=2500, offset=5000,gclass_num=5,test_data_num=500): """ 複数のデータセットを連結する """ #ipdb.set_trace() #Re...
36.784471
164
0.688478
4a041bf479b369a42b1cbf73c6ac8e50646b8599
7,660
py
Python
uncertainty_metrics/tensorflow/information_criteria.py
krishnajalan/uncertainty-metrics
b6df9f7a817bf9b2207e4b020dde4a5de6d1b16e
[ "Apache-2.0" ]
null
null
null
uncertainty_metrics/tensorflow/information_criteria.py
krishnajalan/uncertainty-metrics
b6df9f7a817bf9b2207e4b020dde4a5de6d1b16e
[ "Apache-2.0" ]
null
null
null
uncertainty_metrics/tensorflow/information_criteria.py
krishnajalan/uncertainty-metrics
b6df9f7a817bf9b2207e4b020dde4a5de6d1b16e
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Uncertainty Metrics 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 appl...
39.895833
101
0.738642
4a041c12d7c9b1593e3539e02af0004ec31540f5
6,325
py
Python
python/miind/miind_api/LifMeshGenerator.py
dekamps/miind
4b321c62c2bd27eb0d5d8336a16a9e840ba63856
[ "MIT" ]
13
2015-09-15T17:28:25.000Z
2022-03-22T20:26:47.000Z
python/miind/miind_api/LifMeshGenerator.py
dekamps/miind
4b321c62c2bd27eb0d5d8336a16a9e840ba63856
[ "MIT" ]
41
2015-08-25T07:50:55.000Z
2022-03-21T16:20:37.000Z
python/miind/miind_api/LifMeshGenerator.py
dekamps/miind
4b321c62c2bd27eb0d5d8336a16a9e840ba63856
[ "MIT" ]
9
2015-09-14T20:52:07.000Z
2022-03-08T12:18:18.000Z
import miind.mesh3 as mesh import miind.writemesh as writemesh import numpy as np class LifMeshGenerator: '''This class helps to generate a leaky-integrate-and-fire mesh. The neural parameters are: tau_m: :membrane time constant V_rest: :resting potential V_threshold: :threshold potential...
51.008065
173
0.531067
4a041c2f68f5b8d16ff4a40b828e550a8e8c550f
1,013
py
Python
src/saml2/entity_category/at_egov_pvp2.py
cnelson/pysaml2
a30e51c271e27e4411a0243b65adbf5d7a3abb07
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/pysaml2-4.4.0/src/saml2/entity_category/at_egov_pvp2.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/pysaml2-4.4.0/src/saml2/entity_category/at_egov_pvp2.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
__author__ = 'rhoerbe' #2013-09-05 # Entity Categories specifying the PVP eGov Token as of "PVP2-Allgemein V2.1.0", http://www.ref.gv.at/ EGOVTOKEN = ["PVP-VERSION", "PVP-PRINCIPAL-NAME", "PVP-GIVENNAME", "PVP-BIRTHDATE", "PVP-USERID", "PVP-GID", ...
26.657895
102
0.53998
4a041c48983bc1138f859f2436e145d8c373f439
6,727
py
Python
framework/helpers/argument_parser.py
lukovnikov/transformer_generalization
a538bfbba6877cd7a21e710f2535df2e9236ba52
[ "MIT" ]
47
2021-08-30T00:41:15.000Z
2022-01-24T02:49:17.000Z
framework/helpers/argument_parser.py
xdever/modules
efdb8790b074862581e035c9ab5bf889440a8023
[ "BSD-3-Clause" ]
6
2020-10-19T23:57:23.000Z
2022-03-12T00:51:58.000Z
framework/helpers/argument_parser.py
xdever/modules
efdb8790b074862581e035c9ab5bf889440a8023
[ "BSD-3-Clause" ]
5
2021-09-04T23:51:51.000Z
2022-03-10T14:03:24.000Z
import os import json import argparse import re from ..data_structures.dotdict import create_recursive_dot_dict def none_parser(other_parser): def fn(x): if x.lower() == "none": return None return other_parser(x) return fn class ArgumentParser: _type = type @staticmetho...
31.288372
116
0.558198
4a041c95f7ffac596869f6c7efd7d6f3fa0dc87b
170
py
Python
telegram_bot/intergration/weather/const.py
daya0576/telegran_bot_weather
96df65cd607704fb5dbf89e13b2a130ca8cb0018
[ "MIT" ]
null
null
null
telegram_bot/intergration/weather/const.py
daya0576/telegran_bot_weather
96df65cd607704fb5dbf89e13b2a130ca8cb0018
[ "MIT" ]
null
null
null
telegram_bot/intergration/weather/const.py
daya0576/telegran_bot_weather
96df65cd607704fb5dbf89e13b2a130ca8cb0018
[ "MIT" ]
null
null
null
WEATHER_2D_MESSAGE_TEMPLATE = """\ 📍{location} 今天{d1},白天{d1_pretty} 明天{d2},白天{d2_pretty} {extra} """ WEATHER_6H_MESSAGE_TEMPLATE = """\ 📍{location} {hours} """
11.333333
34
0.647059
4a041de30004a347d0b828ec1ca89108ab2eed17
5,052
py
Python
game/Cards.py
tcikezu/durakula
cd8afb80c871d9dbe054050e0a4d426947d854b3
[ "MIT" ]
1
2020-01-28T06:41:23.000Z
2020-01-28T06:41:23.000Z
game/Cards.py
tcikezu/durakula
cd8afb80c871d9dbe054050e0a4d426947d854b3
[ "MIT" ]
null
null
null
game/Cards.py
tcikezu/durakula
cd8afb80c871d9dbe054050e0a4d426947d854b3
[ "MIT" ]
null
null
null
import numpy as np from collections import deque import random import copy _CARD_MAP_FULL = np.array([['D0', 'D1', 'D2', 'D3', 'D4', 'D5', 'D6', 'D7', 'D8', 'D9', 'D10', 'D11', 'D12'], ['C0', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'C8', 'C9', 'C10', 'C11' , 'C12'], ['H0', 'H1'...
36.875912
161
0.565914
4a041ee37f8a2d16f66089b942f08f0d57833b46
2,267
py
Python
caldavclientlibrary/protocol/webdav/tests/test_options.py
LaudateCorpus1/ccs-caldavclientlibrary
5b1db7f3b49f03ba715f7286f71ddb9f54ddddac
[ "Apache-2.0" ]
49
2016-08-22T17:34:34.000Z
2021-11-08T09:47:45.000Z
caldavclientlibrary/protocol/webdav/tests/test_options.py
DalavanCloud/ccs-caldavclientlibrary
ce8d554b8a0bcb13468f2dc87eef77da2302d6b3
[ "Apache-2.0" ]
null
null
null
caldavclientlibrary/protocol/webdav/tests/test_options.py
DalavanCloud/ccs-caldavclientlibrary
ce8d554b8a0bcb13468f2dc87eef77da2302d6b3
[ "Apache-2.0" ]
18
2017-01-21T22:28:04.000Z
2022-03-26T11:57:30.000Z
## # Copyright (c) 2007-2016 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
30.226667
91
0.683282
4a041f297aa0f00ac20853dc1356da00954725e3
2,634
py
Python
azure-quantum/setup.py
eionblanc/qdk-python
086901e46da147253e0aee5238844b08d20c3fd2
[ "MIT" ]
3
2021-09-08T08:51:45.000Z
2021-09-08T08:52:27.000Z
azure-quantum/setup.py
eionblanc/qdk-python
086901e46da147253e0aee5238844b08d20c3fd2
[ "MIT" ]
null
null
null
azure-quantum/setup.py
eionblanc/qdk-python
086901e46da147253e0aee5238844b08d20c3fd2
[ "MIT" ]
1
2021-07-13T21:45:12.000Z
2021-07-13T21:45:12.000Z
#!/bin/env python # -*- coding: utf-8 -*- ## # setup.py: Installs Python host functionality for azure-quantum. ## # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. ## # IMPORTS # import setuptools import os import distutils # VERSION INFORMATION # # Our build process sets ...
31.73494
94
0.670084
4a042237f64eeacd4caa644c6af43c8f399e368e
11,595
py
Python
utttpy/game/ultimate_tic_tac_toe.py
bdotgradb/uttt
ab812918b75fdb0efac24fb007989d01e539c484
[ "Apache-2.0" ]
28
2021-12-10T20:06:32.000Z
2022-02-01T00:20:52.000Z
utttpy/game/ultimate_tic_tac_toe.py
bdotgradb/uttt
ab812918b75fdb0efac24fb007989d01e539c484
[ "Apache-2.0" ]
null
null
null
utttpy/game/ultimate_tic_tac_toe.py
bdotgradb/uttt
ab812918b75fdb0efac24fb007989d01e539c484
[ "Apache-2.0" ]
2
2021-12-10T20:34:31.000Z
2021-12-22T02:53:51.000Z
from __future__ import annotations from typing import List, Optional from utttpy.game.action import Action from utttpy.game.constants import ( STATE_SIZE, NEXT_SYMBOL_STATE_INDEX, CONSTRAINT_STATE_INDEX, UTTT_RESULT_STATE_INDEX, X_STATE_VALUE, O_STATE_VALUE, DRAW_STATE_VALUE, UNCONSTRA...
39.845361
104
0.573954
4a04232704ce529e3e4da8bdfb3fa9dce87a9bbc
1,529
py
Python
common/directory.py
Suryavf/SelfDrivingCar
362ac830516366b1c31ef01ea0456eb99f0d9722
[ "MIT" ]
11
2019-08-14T18:55:13.000Z
2021-09-10T05:54:49.000Z
common/directory.py
Suryavf/TVAnet
97170e81d7c1a0f683a0fdaae4c42989350823fc
[ "MIT" ]
3
2020-05-05T15:20:20.000Z
2021-06-22T07:47:26.000Z
common/directory.py
Suryavf/TVAnet
97170e81d7c1a0f683a0fdaae4c42989350823fc
[ "MIT" ]
1
2020-12-18T15:46:09.000Z
2020-12-18T15:46:09.000Z
ImitationModel = ['Basic','Multimodal','Codevilla18','Codevilla19','Kim2017','Experimental','ExpBranch','Approach'] Encoder = ['CNN5', 'CNN5Max', 'ResNet50', 'WideResNet50', 'VGG19', 'EfficientNetB0', 'EfficientNetB1', 'EfficientNetB2', 'EfficientNetB3'] Decoder = ['BasicDecoder', 'DualDecoder', 'TVADecod...
101.933333
149
0.683453
4a0423a77d2b8395a54db48e4eeb4a63716e0ff1
1,428
py
Python
currencies.py
EnidVyshka/BeyondPricingCodingChallenge
002b0acf5599e37eb849900b0c09640ce1cee668
[ "MIT" ]
null
null
null
currencies.py
EnidVyshka/BeyondPricingCodingChallenge
002b0acf5599e37eb849900b0c09640ce1cee668
[ "MIT" ]
null
null
null
currencies.py
EnidVyshka/BeyondPricingCodingChallenge
002b0acf5599e37eb849900b0c09640ce1cee668
[ "MIT" ]
null
null
null
from dataclasses import dataclass, asdict import requests import ast YOUR_APP_ID = "c445eedf3afd4694bce32d580a9186f8" decoded_request = requests.get( "https://openexchangerates.org/api/latest.json?app_id={}".format(YOUR_APP_ID) ).content.decode("utf-8") exchange_dict = ast.literal_eval(decoded_request) @dataclas...
25.052632
81
0.636555
4a04241ddaa761c62b06fab0d7f20e977c70f011
7,067
py
Python
my_library/dataset_readers/full_classifier_reader.py
OnlpLab/Event-Based-Modality
6e6932bf8d8e8f790f3baff0b89c38eb376854b8
[ "Apache-2.0" ]
null
null
null
my_library/dataset_readers/full_classifier_reader.py
OnlpLab/Event-Based-Modality
6e6932bf8d8e8f790f3baff0b89c38eb376854b8
[ "Apache-2.0" ]
1
2022-03-27T13:38:35.000Z
2022-03-28T16:20:45.000Z
my_library/dataset_readers/full_classifier_reader.py
OnlpLab/Modality
6e6932bf8d8e8f790f3baff0b89c38eb376854b8
[ "Apache-2.0" ]
null
null
null
from typing import Dict, List, Union import logging import json from overrides import overrides from allennlp.common.file_utils import cached_path from allennlp.data.dataset_readers.dataset_reader import DatasetReader from allennlp.data.fields import LabelField, TextField, Field, ListField, MetadataField from allennlp...
46.493421
154
0.606339