hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
89a82eceefa19fe720198d1e8ce3016e7a918467
44
py
Python
Zookeeper/Problems/The result of a game in Tic-Tac-Toe/task.py
fededev01/JetBrains-py
990ed446ffc0b6215471f8fa9772b5fd5dff1905
[ "Apache-2.0" ]
null
null
null
Zookeeper/Problems/The result of a game in Tic-Tac-Toe/task.py
fededev01/JetBrains-py
990ed446ffc0b6215471f8fa9772b5fd5dff1905
[ "Apache-2.0" ]
null
null
null
Zookeeper/Problems/The result of a game in Tic-Tac-Toe/task.py
fededev01/JetBrains-py
990ed446ffc0b6215471f8fa9772b5fd5dff1905
[ "Apache-2.0" ]
null
null
null
print("O X X") print("O X O") print("X O X")
14.666667
14
0.545455
0965259900d9b1795db6e6dda37a9ddbdecdfe0b
1,172
py
Python
fenci.py
xiepiaofeng/first-personal-work
7ad5a5f5b7c056a00a06203404cfa1f2a008d34c
[ "Apache-2.0" ]
null
null
null
fenci.py
xiepiaofeng/first-personal-work
7ad5a5f5b7c056a00a06203404cfa1f2a008d34c
[ "Apache-2.0" ]
null
null
null
fenci.py
xiepiaofeng/first-personal-work
7ad5a5f5b7c056a00a06203404cfa1f2a008d34c
[ "Apache-2.0" ]
null
null
null
import json import jieba def main(): times = {} # 每个词语出现次数 dataResults={} # 最后结果 results = [] realWords = [] # 去除停用词后的全部词 stopWords = [line.strip() for line in open('cn_stopwords.txt', encoding='UTF-8').readlines()] # 停用词 txt = open("list.txt", "r", encoding='utf-8')...
29.3
106
0.512799
109f7b513a6763d9454bb08508662a9a1556f84b
1,327
py
Python
backend/blog_backend/blog_backend/urls.py
iams7/Blog-App-using-Django-React
778bb29edab059f1f93a16e2d489a41f14749aeb
[ "MIT" ]
null
null
null
backend/blog_backend/blog_backend/urls.py
iams7/Blog-App-using-Django-React
778bb29edab059f1f93a16e2d489a41f14749aeb
[ "MIT" ]
null
null
null
backend/blog_backend/blog_backend/urls.py
iams7/Blog-App-using-Django-React
778bb29edab059f1f93a16e2d489a41f14749aeb
[ "MIT" ]
null
null
null
"""blog_backend URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
41.46875
77
0.710625
9808a7c5d3d5ba60d8c2937d101c225ce3e47b4d
2,468
py
Python
runner_tool/law_wind_generator.py
sus304/ForRocketWorkbench
453613ecde282cc8a2b481250f29e6de7438a230
[ "Apache-2.0" ]
null
null
null
runner_tool/law_wind_generator.py
sus304/ForRocketWorkbench
453613ecde282cc8a2b481250f29e6de7438a230
[ "Apache-2.0" ]
null
null
null
runner_tool/law_wind_generator.py
sus304/ForRocketWorkbench
453613ecde282cc8a2b481250f29e6de7438a230
[ "Apache-2.0" ]
null
null
null
import numpy as np class AreaWind: def __init__(self, area_config): wind_config = area_config.get('Law Wind') self.wind_exponatial = wind_config.get('Wind Characteristic Coefficient') self.height_wind_reference = wind_config.get('Reference Height [m]') self.wind_speed_min = wind_c...
50.367347
146
0.664911
f7f9d157d6be28ec0a55bec3f9919e77734d4177
1,382
py
Python
py_everything/search.py
Morgan-Phoenix/py_everything
a7bbaf19ee6007fcfbcfe9d03944ef621b9f9ac9
[ "MIT" ]
null
null
null
py_everything/search.py
Morgan-Phoenix/py_everything
a7bbaf19ee6007fcfbcfe9d03944ef621b9f9ac9
[ "MIT" ]
null
null
null
py_everything/search.py
Morgan-Phoenix/py_everything
a7bbaf19ee6007fcfbcfe9d03944ef621b9f9ac9
[ "MIT" ]
null
null
null
from typing import List, Any import os def searchFiles(keyword: str , path: str): """Search for files""" files: List[Any] = [] for root, dirs, files in os.walk(path): for file in files: if keyword in file: files.append(root + '\\' + str(file)) return files ...
30.711111
59
0.547033
6f590c33e08b208522c041d881728b6e9b7ff783
2,247
py
Python
homeassistant/components/linode/__init__.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
3
2019-10-15T16:55:31.000Z
2020-02-18T21:10:31.000Z
homeassistant/components/linode/__init__.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
39
2016-12-16T12:40:34.000Z
2017-02-13T17:53:42.000Z
homeassistant/components/linode/__init__.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
4
2019-10-15T21:03:53.000Z
2020-05-27T19:53:20.000Z
"""Support for Linode.""" from datetime import timedelta import logging import voluptuous as vol from homeassistant.const import CONF_ACCESS_TOKEN import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle _LOGGER = logging.getLogger(__name__) ATTR_CREATED = "created" ATTR_NODE_ID ...
24.423913
81
0.671117
08b6a3dd18ffc17c3622e69bfab70fb4715e3a26
429
py
Python
stayclean-2019-april/disqualify-all-not-checked-in.py
foobarbazblarg/stayclean
4cf78fd893edd7d493b7afdf9d1dc16416dc9d9d
[ "MIT" ]
1
2020-01-13T13:03:48.000Z
2020-01-13T13:03:48.000Z
stayclean-2020-may/disqualify-all-not-checked-in.py
foobarbazblarg/stayclean
4cf78fd893edd7d493b7afdf9d1dc16416dc9d9d
[ "MIT" ]
2
2021-04-06T18:40:31.000Z
2021-06-02T03:46:59.000Z
stayclean-2020-september/disqualify-all-not-checked-in.py
foobarbazblarg/stayclean
4cf78fd893edd7d493b7afdf9d1dc16416dc9d9d
[ "MIT" ]
null
null
null
#!/usr/bin/python # TODO: issues with new oauth2 stuff. Keep using older version of Python for now. # #!/usr/bin/env python from participantCollection import ParticipantCollection participants = ParticipantCollection() for participant in participants.participantsWhoAreStillIn(): if not participant.hasCheckedIn: ...
30.642857
82
0.769231
73aa31af75cd4d88d991c4d3919090c6a466702c
607
py
Python
bin/docs-create-example-outputs.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
1
2017-01-28T15:39:07.000Z
2017-01-28T15:39:07.000Z
bin/docs-create-example-outputs.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
4
2019-04-11T16:27:45.000Z
2019-04-11T23:56:30.000Z
bin/docs-create-example-outputs.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
2
2018-01-16T11:29:16.000Z
2020-05-13T16:48:26.000Z
#!/usr/bin/env python # # Searches through the whole doc/user tree and creates # all output files for the single examples. # from __future__ import print_function import os import sys import SConsExamples if __name__ == "__main__": print("Checking whether all example names are unique...") if SConsExamples.exa...
28.904762
117
0.719934
699af7a2ac7448affb518c2c242e7413cc2f2044
423
py
Python
workon/templatetags/workon_compress.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2018-01-19T16:08:54.000Z
2018-01-19T16:08:54.000Z
workon/templatetags/workon_compress.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2020-07-06T08:35:18.000Z
2020-07-06T08:35:18.000Z
workon/templatetags/workon_compress.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
4
2020-04-08T06:14:46.000Z
2020-12-11T14:28:06.000Z
from django.conf import settings __all__ = ['lazy_register'] def lazy_register(register): if "compressor" in settings.INSTALLED_APPS: @register.tag def compress(parser, token): from compressor.templatetags.compress import compress return compress(parser, token) else: try: @reg...
20.142857
62
0.685579
69bc8a02eff2232f5f672f8bbc06117de43ffbd4
270
py
Python
test_matplotlib/meshgrid.py
baijianhua/pymath
a96ebbd8c8ac646c436d8bf33cb01764a948255d
[ "MIT" ]
null
null
null
test_matplotlib/meshgrid.py
baijianhua/pymath
a96ebbd8c8ac646c436d8bf33cb01764a948255d
[ "MIT" ]
null
null
null
test_matplotlib/meshgrid.py
baijianhua/pymath
a96ebbd8c8ac646c436d8bf33cb01764a948255d
[ "MIT" ]
null
null
null
import numpy as np """ meshgrid的结果, 第一个是横坐标轴的数据的集合 第二个是纵坐标轴数据的集合 两者合起来构成一个网格点的集合 x[0]与y[0] 逐个元素组合,是四个点的坐标,这些点构成一条横线。纵坐标是y[i], 横坐标是x[i] """ grid_x, grid_y = np.meshgrid(np.linspace(-3, 3, 4), np.linspace(-3, 3, 4)) print(grid_x) print("-----------------") print(grid_y)
19.285714
74
0.674074
cf99e87365f8c3665919bc90f15a914a323c03bb
1,495
py
Python
products/main.py
tclasen/federation-playground
04be34eefd839013edddc27b621b8984617267cc
[ "MIT" ]
null
null
null
products/main.py
tclasen/federation-playground
04be34eefd839013edddc27b621b8984617267cc
[ "MIT" ]
null
null
null
products/main.py
tclasen/federation-playground
04be34eefd839013edddc27b621b8984617267cc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from ariadne import QueryType, graphql_sync, load_schema_from_path from ariadne.constants import PLAYGROUND_HTML from ariadne.contrib.federation import (FederatedObjectType, make_federated_schema) from flask import Flask, jsonify, request app = Flask(__na...
27.685185
88
0.693645
6f351189a883edcde72fee8737bcae5d26526196
10,461
py
Python
gpx_stats.py
ae137/MachineLearning
974564db6d2415e7533a61762f774fada1daadb2
[ "MIT" ]
2
2021-09-22T17:09:44.000Z
2021-12-08T21:25:06.000Z
gpx_stats.py
ae137/MachineLearning
974564db6d2415e7533a61762f774fada1daadb2
[ "MIT" ]
6
2021-08-08T18:11:11.000Z
2022-03-12T01:00:38.000Z
gpx_stats.py
ae137/HikingTimePredictor
974564db6d2415e7533a61762f774fada1daadb2
[ "MIT" ]
null
null
null
import collections from typing import List, Dict, Union import statistics from gpxpy import parse # type: ignore from gpxpy.gpx import GPXTrackSegment # type: ignore import numpy as np # type: ignore from config import DataPreparationConfig from gpx_data_utils import gpx_segment_to...
37.494624
115
0.673358
e9e04662168ad1330d9bb7d3b5a56375c24d2e25
40
py
Python
Problems/Taking turns/task.py
gabrielizalo/jetbrains-academy-zookeeper
467b43da3cb81f82987daf6b063eb2078d476d4f
[ "MIT" ]
null
null
null
Problems/Taking turns/task.py
gabrielizalo/jetbrains-academy-zookeeper
467b43da3cb81f82987daf6b063eb2078d476d4f
[ "MIT" ]
null
null
null
Problems/Taking turns/task.py
gabrielizalo/jetbrains-academy-zookeeper
467b43da3cb81f82987daf6b063eb2078d476d4f
[ "MIT" ]
null
null
null
print("""' '' ''' ' '' ''' ' '' '''""")
10
17
0.125
0babfcff5c729e3ca92099d03c73a35ce9d49303
4,725
py
Python
pywps/exceptions.py
ausecocloud/pywps
2451e6f2e34f815141bf35d24a99a2d817d6136c
[ "MIT" ]
null
null
null
pywps/exceptions.py
ausecocloud/pywps
2451e6f2e34f815141bf35d24a99a2d817d6136c
[ "MIT" ]
null
null
null
pywps/exceptions.py
ausecocloud/pywps
2451e6f2e34f815141bf35d24a99a2d817d6136c
[ "MIT" ]
null
null
null
################################################################## # Copyright 2018 Open Source Geospatial Foundation and others # # licensed under MIT, Please consult LICENSE.txt for details # ################################################################## """ OGC OWS and WPS Exceptions Based on OGC OWS, W...
29.53125
271
0.627725
7ffe30815bc6b1bda1c99d9cfae2e1fa5c3d6081
167
py
Python
config/interactor_config.py
xyla-io/raspador
4e77234239d44a83faf5c1d3a6d022a9e3861f25
[ "MIT" ]
null
null
null
config/interactor_config.py
xyla-io/raspador
4e77234239d44a83faf5c1d3a6d022a9e3861f25
[ "MIT" ]
null
null
null
config/interactor_config.py
xyla-io/raspador
4e77234239d44a83faf5c1d3a6d022a9e3861f25
[ "MIT" ]
null
null
null
interactor_config = { 'geckodriver_directory_path': 'path/to/directory/containing/geckodriver/executable', 'geckodriver_profile_path': 'path/to/firefox/profile', }
41.75
86
0.796407
f9c0113fcf9dd383ebc77d8452eba739704cd631
5,126
py
Python
tests/ticketing/test_badge_print_view.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
1
2021-03-14T11:56:47.000Z
2021-03-14T11:56:47.000Z
tests/ticketing/test_badge_print_view.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
180
2019-09-15T19:52:46.000Z
2021-11-06T23:48:01.000Z
tests/ticketing/test_badge_print_view.py
bethlakshmi/gbe-divio-djangocms-python2.7
6e9b2c894162524bbbaaf73dcbe927988707231d
[ "Apache-2.0" ]
null
null
null
from django.test import TestCase from django.test import Client from django.urls import reverse from tests.contexts import ( ClassContext, PurchasedTicketContext, ) from tests.factories.ticketing_factories import ( RoleEligibilityConditionFactory, TicketingEligibilityConditionFactory, TransactionFac...
38.253731
83
0.66309
a0e099dc9078fcdb2ef80edf5425d538a6c5e93a
2,373
py
Python
tests/test_value.py
artPlusPlus/punkin
0265b06d67463a5aaf27e0b2a771220d41cae5ee
[ "MIT" ]
1
2017-10-24T10:02:29.000Z
2017-10-24T10:02:29.000Z
tests/test_value.py
artPlusPlus/punkin
0265b06d67463a5aaf27e0b2a771220d41cae5ee
[ "MIT" ]
null
null
null
tests/test_value.py
artPlusPlus/punkin
0265b06d67463a5aaf27e0b2a771220d41cae5ee
[ "MIT" ]
null
null
null
from punkin import UNSET from punkin._value import Value def test_value_initialization(): value = Value('test') assert isinstance(value, Value) value = Value('test', setter=lambda x: x) assert value._setter != None assert isinstance(value, Value) def test_value_set_without_setter(): contex...
21
49
0.617362
fbc585b38cee12e8c01c12651ba3ce380041d4cd
2,520
py
Python
oslo_i18n/tests/test_factory.py
openstack/oslo.i18n
b031d17b2ffb38a3354dd15dd8a5ac7ca61b82e7
[ "Apache-2.0" ]
36
2015-01-29T20:10:46.000Z
2021-12-10T18:30:54.000Z
oslo_i18n/tests/test_factory.py
openstack/oslo.i18n
b031d17b2ffb38a3354dd15dd8a5ac7ca61b82e7
[ "Apache-2.0" ]
null
null
null
oslo_i18n/tests/test_factory.py
openstack/oslo.i18n
b031d17b2ffb38a3354dd15dd8a5ac7ca61b82e7
[ "Apache-2.0" ]
14
2015-02-02T15:11:03.000Z
2020-02-04T15:22:19.000Z
# Copyright 2012 Red Hat, Inc. # Copyright 2013 IBM Corp. # 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....
36
78
0.682937
0373a0b3229a398ae4b8378a2be24c2d9b2535ae
872
py
Python
src/21_busquedabinaria.py
EliazBobadilla/POO-y-Algoritmos-con-Python
497f7a294e26220828c325785abf0bac392c3a18
[ "MIT" ]
4
2021-02-28T17:18:10.000Z
2021-06-05T15:19:45.000Z
src/21_busquedabinaria.py
EliazBobadilla/POO-y-Algoritmos-con-Python
497f7a294e26220828c325785abf0bac392c3a18
[ "MIT" ]
null
null
null
src/21_busquedabinaria.py
EliazBobadilla/POO-y-Algoritmos-con-Python
497f7a294e26220828c325785abf0bac392c3a18
[ "MIT" ]
3
2021-02-28T17:18:12.000Z
2021-06-05T15:19:47.000Z
import random def busqueda_binaria(lista, comienzo, final, objetivo): print(f"buscando {objetivo} entre {lista[comienzo]} y {lista[final - 1]}") if comienzo > final: return False medio = (comienzo + final) // 2 if lista[medio] == objetivo: return True elif lista[medio] < objetivo...
30.068966
86
0.662844
a285f67843cf946abc02ee5166292e10463d88ca
6,692
py
Python
config/gunicorn.py
CoeJoder/Py-Stats-Webapp
2e3be2a728fa4578298217a98eba85bf5e170edd
[ "MIT" ]
null
null
null
config/gunicorn.py
CoeJoder/Py-Stats-Webapp
2e3be2a728fa4578298217a98eba85bf5e170edd
[ "MIT" ]
11
2020-03-24T16:43:31.000Z
2022-03-11T23:37:57.000Z
config/gunicorn.py
CoeJoder/Py-Stats-Webapp
2e3be2a728fa4578298217a98eba85bf5e170edd
[ "MIT" ]
null
null
null
# # Server socket # # bind - The socket to bind. # # A string of the form: 'HOST', 'HOST:PORT', 'unix:PATH'. # An IP is a valid HOST. # # backlog - The number of pending connections. This refers # to the number of clients that can be waiting to be # served. Exceeding this number results in t...
31.271028
81
0.672146
ae2588b8f602466a627a1c7f7823de8d529b3437
11,232
py
Python
preprocess.py
flying-Yan/GAAF
d241a5057e10acbdee00f61b5850f47e78694699
[ "MIT" ]
3
2021-12-14T15:38:08.000Z
2021-12-19T10:34:24.000Z
preprocess.py
flying-Yan/GAAF
d241a5057e10acbdee00f61b5850f47e78694699
[ "MIT" ]
1
2022-03-09T08:18:34.000Z
2022-03-09T08:18:34.000Z
preprocess.py
flying-Yan/GAAF
d241a5057e10acbdee00f61b5850f47e78694699
[ "MIT" ]
null
null
null
import torch import torchvision.transforms as transforms import random __imagenet_stats = {'mean': [0.485, 0.456, 0.406], 'std': [0.229, 0.224, 0.225]} __imagenet_pca = { 'eigval': torch.Tensor([0.2175, 0.0188, 0.0045]), 'eigvec': torch.Tensor([ [-0.5675, 0.7192, 0.4009], ...
33.528358
80
0.615919
26cbdc53d15cd8e1f5befbfef442bd9332f0eb07
2,748
py
Python
src/datasets/TinyImageNet.py
DennisMcWherter/SingleImageDataAugmentation
a5fb760ce852adcd89498fa8f8b5be1deaf03d26
[ "MIT" ]
null
null
null
src/datasets/TinyImageNet.py
DennisMcWherter/SingleImageDataAugmentation
a5fb760ce852adcd89498fa8f8b5be1deaf03d26
[ "MIT" ]
null
null
null
src/datasets/TinyImageNet.py
DennisMcWherter/SingleImageDataAugmentation
a5fb760ce852adcd89498fa8f8b5be1deaf03d26
[ "MIT" ]
null
null
null
import logging import numpy as np import os from pathlib import Path from sklearn.model_selection import train_test_split from sklearn.preprocessing import OneHotEncoder from ..datastructures import DataSample from ..interfaces import Dataset class TinyImageNetDataset(Dataset): def __init__(self, path, num_clas...
38.704225
124
0.687409
c5c05435dbb3aaca31ea0797cb3aeba90961e4fe
9,161
py
Python
rastervision/task/semantic_segmentation_config.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
1
2020-10-10T12:32:43.000Z
2020-10-10T12:32:43.000Z
rastervision/task/semantic_segmentation_config.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
null
null
null
rastervision/task/semantic_segmentation_config.py
carderne/raster-vision
915fbcd3263d8f2193e65c2cd0eb53e050a47a01
[ "Apache-2.0" ]
1
2021-12-02T08:07:21.000Z
2021-12-02T08:07:21.000Z
from copy import deepcopy from typing import (List, Dict, Tuple, Union) import rastervision as rv from rastervision.task import SemanticSegmentation from rastervision.core.class_map import (ClassMap, ClassItem) from rastervision.task import (TaskConfig, TaskConfigBuilder) from rastervision.protos.task_pb2 import TaskC...
42.022936
89
0.62384
7766390a7a4e861b893b56122846227f3879da59
58,231
py
Python
common/OpTestSystem.py
shilpasri/op-test-framework
d784def05ce64434869d456156b9409f9a5ac49f
[ "Apache-2.0" ]
null
null
null
common/OpTestSystem.py
shilpasri/op-test-framework
d784def05ce64434869d456156b9409f9a5ac49f
[ "Apache-2.0" ]
null
null
null
common/OpTestSystem.py
shilpasri/op-test-framework
d784def05ce64434869d456156b9409f9a5ac49f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: op-test-framework/common/OpTestSystem.py $ # # OpenPOWER Automated Test Project # # Contributors Listed Below - COPYRIGHT 2015,2017 # [+] International Business Machines Corp. # # # Licensed under the Apache License,...
40.892556
173
0.614724
1492e295662e1fd9ee8a38b9f5ac8f62b1abf7c5
1,244
py
Python
forestserviceprototype/specialuseform/migrations/0014_auto_20161215_1556.py
18F/forest-service-prototype
99b28a14e9ed28cb0050af1d2d1eabfdfa7fcdb3
[ "CC0-1.0" ]
7
2016-09-21T18:28:47.000Z
2020-04-10T08:07:48.000Z
forestserviceprototype/specialuseform/migrations/0014_auto_20161215_1556.py
18F/forest-service-prototype
99b28a14e9ed28cb0050af1d2d1eabfdfa7fcdb3
[ "CC0-1.0" ]
39
2016-09-22T17:04:15.000Z
2017-09-15T23:30:50.000Z
forestserviceprototype/specialuseform/migrations/0014_auto_20161215_1556.py
18F/forest-service-prototype
99b28a14e9ed28cb0050af1d2d1eabfdfa7fcdb3
[ "CC0-1.0" ]
6
2016-09-21T18:29:36.000Z
2021-02-14T09:58:35.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2016-12-15 15:56 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('specialuseform', '0013_auto_20161209_2011'), ] operations = [ migrations.Re...
30.341463
224
0.594855
3ea74aafdd140306ee4f432a58e4fae977a3a745
6,732
py
Python
using_torchvision_package/ResNet152/src/deploy_scripts/customize_service.py
Angus1996/HuaweiCloud_AI_Competition2019
08f4a262a7563bc26561acae8bfe3b41aab9af6b
[ "MIT" ]
3
2020-09-11T13:42:50.000Z
2020-12-02T08:09:04.000Z
using_torchvision_package/ResNet152/src/deploy_scripts/customize_service.py
Angus1996/HuaweiCloud_AI_Competition2019
08f4a262a7563bc26561acae8bfe3b41aab9af6b
[ "MIT" ]
null
null
null
using_torchvision_package/ResNet152/src/deploy_scripts/customize_service.py
Angus1996/HuaweiCloud_AI_Competition2019
08f4a262a7563bc26561acae8bfe3b41aab9af6b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from PIL import Image from collections import OrderedDict import torch import torch.nn.functional as F import torchvision.models as models import torchvision.transforms as transforms from model_service.pytorch_model_service import PTServingBaseService import time from metric.metrics_manager im...
35.431579
112
0.517231
24ae4b47b901cdf4c5cea365c04065a01cc028fb
4,489
py
Python
src/izi/forms/mixins.py
izi-core/izi-core
21176be2d41f0cf54ca954f294209c585f643dba
[ "BSD-3-Clause" ]
null
null
null
src/izi/forms/mixins.py
izi-core/izi-core
21176be2d41f0cf54ca954f294209c585f643dba
[ "BSD-3-Clause" ]
null
null
null
src/izi/forms/mixins.py
izi-core/izi-core
21176be2d41f0cf54ca954f294209c585f643dba
[ "BSD-3-Clause" ]
null
null
null
import phonenumbers from django import forms from django.core import validators from django.utils.translation import gettext_lazy as _ from phonenumber_field.phonenumber import PhoneNumber class PhoneNumberMixin(object): """Validation mixin for forms with a phone numbers, and optionally a country. It tries t...
40.441441
82
0.620628
d72301c49d84b9e893448f69b6ec07fda26524b5
334
py
Python
commons/decorators.py
theoctober19th/sangraha
a321f761f186b105163241b7a863a26272483385
[ "MIT" ]
1
2020-10-30T08:30:22.000Z
2020-10-30T08:30:22.000Z
commons/decorators.py
theoctober19th/sangraha
a321f761f186b105163241b7a863a26272483385
[ "MIT" ]
7
2021-03-30T13:53:25.000Z
2022-03-12T00:41:07.000Z
commons/decorators.py
theoctober19th/sangraha
a321f761f186b105163241b7a863a26272483385
[ "MIT" ]
null
null
null
from django.http import HttpResponseBadRequest def ajax_required(func): def wrap(request, *args, **kwargs): if request.is_ajax(): return func(request, *args, **kwargs) else: return HttpResponseBadRequest() wrap.__doc__ = func.__doc__ wrap.__name__ = func.__name__ ...
25.692308
49
0.649701
99ffab9aee599ea3c3f4ed4e474130bbc900814b
496
py
Python
dataset/reshape.py
luyunxi/Deeplab-V3-plus-tensorflow
012838d0feeb7d6616769f9533b11ae7ade09a1e
[ "MIT" ]
null
null
null
dataset/reshape.py
luyunxi/Deeplab-V3-plus-tensorflow
012838d0feeb7d6616769f9533b11ae7ade09a1e
[ "MIT" ]
null
null
null
dataset/reshape.py
luyunxi/Deeplab-V3-plus-tensorflow
012838d0feeb7d6616769f9533b11ae7ade09a1e
[ "MIT" ]
null
null
null
# coding = utf-8 import PIL.Image as Image import os def convert(dir,width,height): file_list = os.listdir(dir) print(file_list) for filename in file_list: path = '' path = dir+filename print(path) im = Image.open(path) out = im.resize((width,height),Image.ANTIALIAS)...
24.8
55
0.620968
bbb2b465af4dfb05ad9ae6d209f62b23bd0755a0
2,463
py
Python
multiagent/multi_discrete.py
tkarr21/multagent-particle-envs
a7bea4baae000232a28cdefefb192df327ecae4d
[ "MIT" ]
null
null
null
multiagent/multi_discrete.py
tkarr21/multagent-particle-envs
a7bea4baae000232a28cdefefb192df327ecae4d
[ "MIT" ]
null
null
null
multiagent/multi_discrete.py
tkarr21/multagent-particle-envs
a7bea4baae000232a28cdefefb192df327ecae4d
[ "MIT" ]
null
null
null
# An old version of OpenAI Gym's multi_discrete.py. (Was getting affected by Gym updates) # (https://github.com/openai/gym/blob/1fb81d4e3fb780ccf77fec731287ba07da35eb84/gym/spaces/multi_discrete.py) import numpy as np import gym #from gym.spaces import prng class MultiDiscrete(gym.Space): """ - The multi-dis...
51.3125
122
0.675599
94c5e5dcae393a4e047a23306db991df237a044b
323
py
Python
tests/envs/test_pendulum_image.py
pocokhc/simple_rl
765f12f392f87e6897027905d74f1bced6a2b7bf
[ "MIT" ]
1
2022-03-01T09:16:57.000Z
2022-03-01T09:16:57.000Z
tests/envs/test_pendulum_image.py
pocokhc/simple_rl
765f12f392f87e6897027905d74f1bced6a2b7bf
[ "MIT" ]
null
null
null
tests/envs/test_pendulum_image.py
pocokhc/simple_rl
765f12f392f87e6897027905d74f1bced6a2b7bf
[ "MIT" ]
null
null
null
import unittest from srl.test import TestEnv class Test(unittest.TestCase): def setUp(self) -> None: self.tester = TestEnv() def test_play(self): self.tester.play_test("PendulumImage-v0") if __name__ == "__main__": unittest.main(module=__name__, defaultTest="Test.test_play", verbosity=...
20.1875
77
0.693498
4e86d72bb06cbfb6fec6443b05e2df46734d07a4
2,264
py
Python
modules/ui/css.py
8ctopus/sublime_debugger
5f7567603ff0c7a4b3f6646e9a790234bf619818
[ "MIT" ]
null
null
null
modules/ui/css.py
8ctopus/sublime_debugger
5f7567603ff0c7a4b3f6646e9a790234bf619818
[ "MIT" ]
null
null
null
modules/ui/css.py
8ctopus/sublime_debugger
5f7567603ff0c7a4b3f6646e9a790234bf619818
[ "MIT" ]
null
null
null
from .. typecheck import * base_css = ''' html { font-size: 0.4rem; } body { padding: 1px; line-height: 1.0rem; font-size: 1.6rem; } .dark { --panel-color: color(var(--background) blend(black 90%)); --segment-color: color(var(--background) blend(black 75%)); --text-color: var(--foreground); --label-color: var...
22.64
64
0.675795
428b66cb86f706323c2c8b39e9274d45e431f3e0
332
py
Python
example/example/core/views.py
nicokant/django-htmx
4e5b9875404d34dc2e9386b5de8410f354980605
[ "MIT" ]
null
null
null
example/example/core/views.py
nicokant/django-htmx
4e5b9875404d34dc2e9386b5de8410f354980605
[ "MIT" ]
null
null
null
example/example/core/views.py
nicokant/django-htmx
4e5b9875404d34dc2e9386b5de8410f354980605
[ "MIT" ]
null
null
null
import time from django.shortcuts import render from django.views.decorators.http import require_http_methods def index(request): return render(request, "index.html") @require_http_methods(["DELETE", "POST", "PUT"]) def attribute_test(request): return render(request, "attribute_test.html", {"timestamp": ti...
23.714286
77
0.753012
9b1e3ec3557f28a21c2b9041a2d7323b77fddfc1
2,575
py
Python
cirq/circuits/insert_strategy.py
amdhacks/Cirq
49c256422bb2b05fb87a941b0b9aab180fb69a4b
[ "Apache-2.0" ]
1
2020-07-22T18:36:00.000Z
2020-07-22T18:36:00.000Z
cirq/circuits/insert_strategy.py
amdhacks/Cirq
49c256422bb2b05fb87a941b0b9aab180fb69a4b
[ "Apache-2.0" ]
null
null
null
cirq/circuits/insert_strategy.py
amdhacks/Cirq
49c256422bb2b05fb87a941b0b9aab180fb69a4b
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Cirq Developers # # 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 agreed to in ...
34.797297
80
0.721942
4d1d38164ad0c960df10ba2f63ca7dcd7d3fedeb
2,298
py
Python
gauged/drivers/interface.py
chriso/gauged
cda3bba2f3e92ce2fb4aa92132dcc0e689bf7976
[ "MIT" ]
37
2015-01-06T14:42:39.000Z
2021-06-13T22:07:23.000Z
gauged/drivers/interface.py
chriso/gauged
cda3bba2f3e92ce2fb4aa92132dcc0e689bf7976
[ "MIT" ]
5
2015-03-03T23:18:39.000Z
2015-11-05T21:27:28.000Z
gauged/drivers/interface.py
chriso/gauged
cda3bba2f3e92ce2fb4aa92132dcc0e689bf7976
[ "MIT" ]
3
2015-03-03T20:05:26.000Z
2015-10-23T02:00:57.000Z
""" Gauged https://github.com/chriso/gauged (MIT Licensed) Copyright 2014 (c) Chris O'Hara <cohara87@gmail.com> """ class DriverInterface(object): MAX_KEY = 1024 def create_schema(self): raise NotImplementedError def clear_schema(self): raise NotImplementedError def drop_schema(sel...
25.533333
76
0.693647
5ec913f6e72c1758ab054cc9e8df2a794c9fabb3
840
py
Python
train/models/mnist_classifier.py
DanielKalicki/homomorphic_mnist
954e9df2123527bfd266757f3b96897e405e5356
[ "BSD-3-Clause" ]
null
null
null
train/models/mnist_classifier.py
DanielKalicki/homomorphic_mnist
954e9df2123527bfd266757f3b96897e405e5356
[ "BSD-3-Clause" ]
null
null
null
train/models/mnist_classifier.py
DanielKalicki/homomorphic_mnist
954e9df2123527bfd266757f3b96897e405e5356
[ "BSD-3-Clause" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class MnistClassifier(nn.Module): def __init__(self, config): super(MnistClassifier, self).__init__() self.config = config self.h = self.config['image_h'] self.w = self.config['ima...
30
48
0.571429
a6d56cc678c382d7cbd8b551ae30bf83d1940498
30,085
py
Python
tools/pic_ds_map.py
jallib/jallib
5e6117bf9d518870194a6eeb26c2993b62eb4e8a
[ "Zlib", "BSD-3-Clause" ]
28
2015-04-23T07:30:11.000Z
2022-03-02T12:56:34.000Z
tools/pic_ds_map.py
jallib/Jallib
50eba5921cb24e21f3fa5d1f946e9ee9b6a25a71
[ "Zlib", "BSD-3-Clause" ]
43
2015-07-26T09:03:09.000Z
2021-12-19T19:16:49.000Z
tools/pic_ds_map.py
jallib/Jallib
50eba5921cb24e21f3fa5d1f946e9ee9b6a25a71
[ "Zlib", "BSD-3-Clause" ]
15
2015-05-20T06:44:04.000Z
2021-10-01T16:58:45.000Z
pic_ds = \ {u'10F200': u'40001239', u'10F202': u'40001239', u'10F204': u'40001239', u'10F206': u'40001239', u'10F220': u'40001270', u'10F222': u'40001270', u'10F320': u'40001585', u'10F322': u'40001585', u'10LF320': u'40001585', u'10LF322': u'40001585', u'12F1501': u'40001615', u'12F1571': u'40001723', u'12...
28.09057
78
0.569686
baf404b974e1bd82d3d11db3fe2cdd5951bd7c87
4,119
py
Python
tests/utils/test_vault.py
shul/mlrun
d99e08ba8dce9833fca3ab00cdd246d873cf16b6
[ "Apache-2.0" ]
null
null
null
tests/utils/test_vault.py
shul/mlrun
d99e08ba8dce9833fca3ab00cdd246d873cf16b6
[ "Apache-2.0" ]
null
null
null
tests/utils/test_vault.py
shul/mlrun
d99e08ba8dce9833fca3ab00cdd246d873cf16b6
[ "Apache-2.0" ]
null
null
null
import pytest from tests.conftest import ( examples_path, out_path, verify_state, ) from mlrun import new_task, get_run_db, mlconf, code_to_function, new_project from mlrun.utils.vault import VaultStore # Set a proper token value for Vault test user_token = "" # Set test secrets and configurations - you ...
34.041322
84
0.707453
4f73eae757500ce325728a8f06b107f1298a09ed
250
py
Python
meiduo_mall/meiduo_mall/apps/verifications/urls.py
RuanJylf/MeiDuo_Mall
06a570fb327e8d06934fc942266456c798a9aec2
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/verifications/urls.py
RuanJylf/MeiDuo_Mall
06a570fb327e8d06934fc942266456c798a9aec2
[ "MIT" ]
4
2021-06-08T23:42:00.000Z
2022-03-12T00:50:52.000Z
meiduo_mall/meiduo_mall/apps/verifications/urls.py
RuanJylf/MeiDuo_Mall
06a570fb327e8d06934fc942266456c798a9aec2
[ "MIT" ]
null
null
null
from django.conf.urls import url from verifications import views urlpatterns = [ url(r'^image_codes/(?P<image_code_id>[\w-]+)/$', views.ImageCodeView.as_view()), url(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/$', views.SMSCodeView.as_view()), ]
25
84
0.676
e8cc3c7a210a8d51ab82e0c96dabdb9068a295bb
2,015
py
Python
bootcamp_module09/create_core.py
Justawayx/bisb-bootcamp-2021-module09
46c146e2ffdeebf3b95abcd8fe382f982ce67cb6
[ "BSD-3-Clause" ]
3
2020-10-02T22:26:31.000Z
2021-06-02T18:26:47.000Z
bootcamp_module09/create_core.py
d-laub/bisb-bootcamp-2021-module09
46c146e2ffdeebf3b95abcd8fe382f982ce67cb6
[ "BSD-3-Clause" ]
2
2020-09-24T20:11:03.000Z
2020-09-24T23:51:53.000Z
bootcamp_module09/create_core.py
d-laub/bisb-bootcamp-2021-module09
46c146e2ffdeebf3b95abcd8fe382f982ce67cb6
[ "BSD-3-Clause" ]
18
2020-09-23T23:24:57.000Z
2020-12-03T19:52:49.000Z
import shutil from importlib import resources from pkg_resources import resource_filename from jinja2 import Template def get_test_template(package, resource): template_lines = resources.open_text(package, resource) return Template(''.join(template_lines)) def create_core_file_with_tests(module): star...
31.484375
78
0.626303
e61fbbed1ba8a0382a00744e849510b5a63fad65
5,223
py
Python
tests/test_kinesis.py
sstarcher/cloud-custodian
fc5b51019e9c15d0582089133d080bceee489a94
[ "Apache-2.0" ]
1
2019-06-11T19:43:28.000Z
2019-06-11T19:43:28.000Z
tests/test_kinesis.py
sstarcher/cloud-custodian
fc5b51019e9c15d0582089133d080bceee489a94
[ "Apache-2.0" ]
null
null
null
tests/test_kinesis.py
sstarcher/cloud-custodian
fc5b51019e9c15d0582089133d080bceee489a94
[ "Apache-2.0" ]
1
2019-06-11T19:43:30.000Z
2019-06-11T19:43:30.000Z
# Copyright 2016-2017 Capital One Services, 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 ...
35.053691
88
0.546621
d19daa1dce6e734e536116cbf8e53f9a5990b49b
18,867
py
Python
reports.py
lagvier/echo-sense
fe8ab921e7f61c48b224f0cc2832103a395a6cf7
[ "MIT" ]
null
null
null
reports.py
lagvier/echo-sense
fe8ab921e7f61c48b224f0cc2832103a395a6cf7
[ "MIT" ]
null
null
null
reports.py
lagvier/echo-sense
fe8ab921e7f61c48b224f0cc2832103a395a6cf7
[ "MIT" ]
1
2019-02-20T13:22:22.000Z
2019-02-20T13:22:22.000Z
import urllib, sys, os import traceback import tools from models import * from constants import * from google.appengine.api import logservice from google.appengine.runtime import DeadlineExceededError import cloudstorage as gcs import gc import xlwt import traceback import csv import json from decorators import deferre...
42.208054
221
0.577834
553f891eff41163edbfdf733ef530ea7d16d5a1c
3,020
py
Python
python/federatedml/ensemble/boosting/hetero/hetero_fast_secureboost_plan.py
hubert-he/FATE
6758e150bd7ca7d6f788f9a7a8c8aea7e6500363
[ "Apache-2.0" ]
3,787
2019-08-30T04:55:10.000Z
2022-03-31T23:30:07.000Z
python/federatedml/ensemble/boosting/hetero/hetero_fast_secureboost_plan.py
JavaGreenHands/FATE
ea1e94b6be50c70c354d1861093187e523af32f2
[ "Apache-2.0" ]
1,439
2019-08-29T16:35:52.000Z
2022-03-31T11:55:31.000Z
python/federatedml/ensemble/boosting/hetero/hetero_fast_secureboost_plan.py
JavaGreenHands/FATE
ea1e94b6be50c70c354d1861093187e523af32f2
[ "Apache-2.0" ]
1,179
2019-08-29T16:18:32.000Z
2022-03-31T12:55:38.000Z
from typing import Tuple, List from federatedml.util import LOGGER from federatedml.util import consts tree_type_dict = { 'guest_feat_only': 0, # use only guest feature to build this tree 'host_feat_only': 1, # use only host feature to build this tree 'normal_tree': 2, # a normal decision tree 'lay...
31.134021
93
0.669205
a0af426dfe37060bcd3a7dcb2ea9dba6843f0894
3,792
py
Python
wsi-cls/thyroid_dataset.py
PingjunChen/ThyroidGeneralWSI
ee3adaa4c3aa7c56d3cc5bd7b44d99894578beee
[ "MIT" ]
2
2020-05-02T16:37:13.000Z
2020-05-04T20:44:17.000Z
wsi-cls/thyroid_dataset.py
PingjunChen/frozen-thyroid-cls
ee3adaa4c3aa7c56d3cc5bd7b44d99894578beee
[ "MIT" ]
null
null
null
wsi-cls/thyroid_dataset.py
PingjunChen/frozen-thyroid-cls
ee3adaa4c3aa7c56d3cc5bd7b44d99894578beee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os, sys import numpy as np import deepdish as dd import math, random import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data.dataset import Dataset from thyroid_config import multi_class_map_dict from thyroid_config import folder_map_dict, folder_revers...
39.5
139
0.647679
8f907916941d27447c9556d23a29f02b18b0c21c
6,147
py
Python
bokeh/models/markers.py
jinzhugao/bokeh
b31ee4b4259f09a834f4a2b831a34fbaabfe3893
[ "BSD-3-Clause" ]
1
2018-09-19T02:08:13.000Z
2018-09-19T02:08:13.000Z
bokeh/models/markers.py
Le-Lapin9/bokeh
d5993d95aeeaf93ef15f61bb35fdd7fcaea3dfe0
[ "BSD-3-Clause" ]
null
null
null
bokeh/models/markers.py
Le-Lapin9/bokeh
d5993d95aeeaf93ef15f61bb35fdd7fcaea3dfe0
[ "BSD-3-Clause" ]
null
null
null
''' Display a variety of simple scatter marker shapes whose attributes can be associated with data columns from ``ColumnDataSources``. The full list of markers built into Bokeh is given below: * :class:`~bokeh.models.markers.Asterisk` * :class:`~bokeh.models.markers.Circle` * :class:`~bokeh.models.markers.CircleCross...
32.015625
100
0.693672
88dbdeea3a8b0e9bf10cdd3734f8bbe885307ff9
11,652
py
Python
test/tornado_tests/test_motor_client.py
onovy/motor
24120b947493a6272f49e1164054191f999fe5f2
[ "Apache-2.0" ]
null
null
null
test/tornado_tests/test_motor_client.py
onovy/motor
24120b947493a6272f49e1164054191f999fe5f2
[ "Apache-2.0" ]
null
null
null
test/tornado_tests/test_motor_client.py
onovy/motor
24120b947493a6272f49e1164054191f999fe5f2
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2015 MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
35.962963
80
0.66126
6319da99852d923b9f99efaf705592f542629ac1
2,631
py
Python
Codes/data_consolidation.py
shreyansh26/Malware-Classification-Project
ae467d3c5073c3090ad6e8f408ee103fcb7f19a4
[ "MIT" ]
5
2019-04-12T18:13:23.000Z
2022-01-27T16:23:02.000Z
Codes/data_consolidation.py
shreyansh26/Malware-Classification-Project
ae467d3c5073c3090ad6e8f408ee103fcb7f19a4
[ "MIT" ]
null
null
null
Codes/data_consolidation.py
shreyansh26/Malware-Classification-Project
ae467d3c5073c3090ad6e8f408ee103fcb7f19a4
[ "MIT" ]
2
2019-04-12T18:13:22.000Z
2021-11-09T00:56:39.000Z
from multiprocessing import Pool import os import gzip from csv import writer import six read_mode, write_mode = ('r', 'w') if six.PY2 else ('rt','wt') path = '/media/shreyansh/Seagate Backup Plus Drive/Data/Datasets/Malware Classification Dataset' #Path to project os.chdir(path) if six.PY2: from itertools impo...
32.085366
114
0.535158
539b15a7f53e9f05d0022aacff7eb41c4bb77ba8
38,209
bzl
Python
pkg/rpm_pfg.bzl
nacl/rules_pkg
e5d1ed4e23b291073d8a9058a671a1bd9664f230
[ "Apache-2.0" ]
123
2017-12-27T12:19:41.000Z
2022-03-16T12:36:30.000Z
pkg/rpm_pfg.bzl
nacl/rules_pkg
e5d1ed4e23b291073d8a9058a671a1bd9664f230
[ "Apache-2.0" ]
401
2018-01-09T17:49:44.000Z
2022-03-30T20:25:49.000Z
pkg/rpm_pfg.bzl
nacl/rules_pkg
e5d1ed4e23b291073d8a9058a671a1bd9664f230
[ "Apache-2.0" ]
112
2017-12-28T16:11:58.000Z
2022-03-28T06:24:31.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...
37.718657
175
0.624539
d777e0ab1ccc265068051291e14b260befc66cf9
4,166
py
Python
alipay/aop/api/domain/VoucherTemplateLiteInfo.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/VoucherTemplateLiteInfo.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/VoucherTemplateLiteInfo.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import * class VoucherTemplateLiteInfo(object): def __init__(self): self._activate_time = None self._create_time = None self._publish_end_time = None self._publish_...
31.801527
87
0.613058
232c4b9f9326248d625732361df16623b524a9d1
907
py
Python
nni/algorithms/nas/pytorch/cream/utils.py
duchengyao/nni
b40d512da0fb279e44eb59ecda64958743630712
[ "MIT" ]
null
null
null
nni/algorithms/nas/pytorch/cream/utils.py
duchengyao/nni
b40d512da0fb279e44eb59ecda64958743630712
[ "MIT" ]
null
null
null
nni/algorithms/nas/pytorch/cream/utils.py
duchengyao/nni
b40d512da0fb279e44eb59ecda64958743630712
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import torch.distributed as dist def accuracy(output, target, topk=(1,)): """ Computes the precision@k for the specified values of k """ maxk = max(topk) batch_size = target.size(0) _, pred = output.topk(maxk, 1, Tru...
23.868421
67
0.637266
1b46e966f5d2fae63fd3a160b31ae218af233978
69,107
py
Python
cinder/volume/drivers/xio.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/xio.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
2
2018-10-25T13:04:01.000Z
2019-08-17T13:15:24.000Z
cinder/volume/drivers/xio.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
2
2018-10-17T13:32:50.000Z
2018-11-08T08:39:39.000Z
# Copyright (c) 2014 X-IO. # 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 app...
42.293146
79
0.576917
3219e2cc6e7850775a0ce0e17d6a6680d9a988d2
2,342
py
Python
cmsplugin_cascade/bootstrap4/card.py
angonyfox/djangocms-cascade
dd18e9bf4d77528dd5d87e0718ecc7edec61e2c0
[ "MIT" ]
null
null
null
cmsplugin_cascade/bootstrap4/card.py
angonyfox/djangocms-cascade
dd18e9bf4d77528dd5d87e0718ecc7edec61e2c0
[ "MIT" ]
null
null
null
cmsplugin_cascade/bootstrap4/card.py
angonyfox/djangocms-cascade
dd18e9bf4d77528dd5d87e0718ecc7edec61e2c0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals try: from html.parser import HTMLParser # py3 except ImportError: from HTMLParser import HTMLParser # py2 from django.forms import widgets from django.utils.functional import cached_property from django.utils.html import format_html from django...
30.415584
88
0.710931
5cee7d6c2365f4a8926f498d7dd927474a929352
2,575
py
Python
demos/ExtendedHSNEDemo/CompositeImageViewer.py
biovault/nptsne
9f70726d26ae49a0c5f8c6fe3f081234dbfa69ab
[ "Apache-2.0" ]
30
2019-10-25T06:09:38.000Z
2022-03-12T08:29:17.000Z
demos/ExtendedHSNEDemo/CompositeImageViewer.py
biovault/nptsne
9f70726d26ae49a0c5f8c6fe3f081234dbfa69ab
[ "Apache-2.0" ]
13
2019-08-07T16:57:19.000Z
2022-03-13T10:26:18.000Z
demos/ExtendedHSNEDemo/CompositeImageViewer.py
biovault/nptsne
9f70726d26ae49a0c5f8c6fe3f081234dbfa69ab
[ "Apache-2.0" ]
2
2019-11-11T13:07:30.000Z
2020-03-11T06:00:16.000Z
# -*- coding: utf-8 -*- """View data as a composite (average) of multiple grayscale frames""" import numpy as np import matplotlib.pyplot as plt import matplotlib.style as mplstyle from matplotlib.backends.backend_qt5agg import FigureCanvas from matplotlib.figure import Figure class CompositeImageViewer(FigureCanvas)...
37.318841
81
0.633786
6f92af96cb66c12c7b90ac7da8b56d07b4b9cc40
38,113
py
Python
numpy/distutils/fcompiler/__init__.py
ewmoore/numpy
665a00aec896344cfb12599add600f27a5f519d3
[ "BSD-3-Clause" ]
30
2015-02-18T14:07:00.000Z
2021-12-11T15:19:01.000Z
numpy/distutils/fcompiler/__init__.py
ewmoore/numpy
665a00aec896344cfb12599add600f27a5f519d3
[ "BSD-3-Clause" ]
16
2015-01-01T23:17:24.000Z
2015-04-18T23:49:27.000Z
numpy/distutils/fcompiler/__init__.py
ewmoore/numpy
665a00aec896344cfb12599add600f27a5f519d3
[ "BSD-3-Clause" ]
31
2015-03-11T20:04:07.000Z
2020-11-02T13:56:59.000Z
"""numpy.distutils.fcompiler Contains FCompiler, an abstract base class that defines the interface for the numpy.distutils Fortran compiler abstraction model. Terminology: To be consistent, where the term 'executable' is used, it means the single file, like 'gcc', that is executed, and should be a string. In contras...
38.614995
112
0.594836
bf826a6797b4ace83b08ec15336e168ca3a3b28d
2,610
py
Python
fourlang/operators.py
recski/wikt2def
21e759456558bcc964b2857b807724ea66d7f5af
[ "MIT" ]
null
null
null
fourlang/operators.py
recski/wikt2def
21e759456558bcc964b2857b807724ea66d7f5af
[ "MIT" ]
11
2019-05-14T11:05:25.000Z
2020-09-29T12:42:31.000Z
fourlang/operators.py
recski/wikt2def
21e759456558bcc964b2857b807724ea66d7f5af
[ "MIT" ]
1
2020-05-13T16:26:13.000Z
2020-05-13T16:26:13.000Z
from .concept import Concept class Operator(object): """The abstract superclass of the operator hierarchy.""" def __init__(self, working_area=None): """The working area is that of the enclosing Construction.""" self.working_area = working_area def act(self, seq): """ Acts ...
35.753425
76
0.624904
90de146dc3c0708eebb56dc32dfafc1065b9a1a6
413
py
Python
nft_authentication/wsgi.py
enriqueaylagas/nft-backend-main
4132e13716e9304d1c89793845e9815b1a8183cb
[ "MIT" ]
null
null
null
nft_authentication/wsgi.py
enriqueaylagas/nft-backend-main
4132e13716e9304d1c89793845e9815b1a8183cb
[ "MIT" ]
null
null
null
nft_authentication/wsgi.py
enriqueaylagas/nft-backend-main
4132e13716e9304d1c89793845e9815b1a8183cb
[ "MIT" ]
null
null
null
""" WSGI config for nft_authentication project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('D...
24.294118
78
0.79661
d1a9918abc3494bf188f25bc0e40cce246c7c150
11,014
py
Python
egs/wsj/s5/utils/nnet/make_nnet_proto.py
jxzhanggg/kaldi-trunk
03fbab26e5714a990e1b6dee9475d4a282a42ccc
[ "Apache-2.0" ]
428
2019-04-08T04:34:00.000Z
2022-03-18T08:44:31.000Z
egs/wsj/s5/utils/nnet/make_nnet_proto.py
jxzhanggg/kaldi-trunk
03fbab26e5714a990e1b6dee9475d4a282a42ccc
[ "Apache-2.0" ]
46
2019-04-07T23:38:53.000Z
2022-02-19T12:06:12.000Z
egs/wsj/s5/utils/nnet/make_nnet_proto.py
jxzhanggg/kaldi-trunk
03fbab26e5714a990e1b6dee9475d4a282a42ccc
[ "Apache-2.0" ]
89
2019-04-08T18:17:25.000Z
2022-03-31T02:39:45.000Z
#!/usr/bin/env python # Copyright 2014 Brno University of Technology (author: Karel Vesely) # 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 # ...
50.990741
163
0.678772
c91d46a0683aab404ee7d5ec905efcd6e2f14a51
2,486
py
Python
gatsby-sites-validator/utils.py
Archive-42/a-whole-bunch-o-gatsby-templates
8950e626aae4960c5558281590a600948fd7dcc2
[ "MIT" ]
null
null
null
gatsby-sites-validator/utils.py
Archive-42/a-whole-bunch-o-gatsby-templates
8950e626aae4960c5558281590a600948fd7dcc2
[ "MIT" ]
null
null
null
gatsby-sites-validator/utils.py
Archive-42/a-whole-bunch-o-gatsby-templates
8950e626aae4960c5558281590a600948fd7dcc2
[ "MIT" ]
null
null
null
import requests import os import logging from datetime import datetime from urllib.parse import urlparse from github import Github, GithubException from dotenv import load_dotenv from tqdm import tqdm from terminaltables import AsciiTable load_dotenv() token = os.getenv("GITHUB_TOKEN") g = Github(token) divider_leng...
27.021739
78
0.627112
f25a7d1046d0f981684b067dfac6d056261562a4
9,155
py
Python
mmpose/models/losses/multi_loss_factory.py
jcwon0/BlurHPE
c97a57e92a8a7f171b0403aee640222a32513562
[ "Apache-2.0" ]
null
null
null
mmpose/models/losses/multi_loss_factory.py
jcwon0/BlurHPE
c97a57e92a8a7f171b0403aee640222a32513562
[ "Apache-2.0" ]
null
null
null
mmpose/models/losses/multi_loss_factory.py
jcwon0/BlurHPE
c97a57e92a8a7f171b0403aee640222a32513562
[ "Apache-2.0" ]
null
null
null
# ------------------------------------------------------------------------------ # Adapted from https://github.com/HRNet/HigherHRNet-Human-Pose-Estimation # Original licence: Copyright (c) Microsoft, under the MIT License. # ------------------------------------------------------------------------------ import tor...
35.761719
81
0.538722
284274d98d2c375316de420d156fc82d3eb9bde8
318
py
Python
cron_manager/views.py
MelanieFJNR/Blitz-API
9a6daecd158fe07a6aeb80cbf586781eb688f0f9
[ "MIT" ]
3
2019-10-22T00:16:49.000Z
2021-07-15T07:44:43.000Z
cron_manager/views.py
MelanieFJNR/Blitz-API
9a6daecd158fe07a6aeb80cbf586781eb688f0f9
[ "MIT" ]
1,183
2018-04-19T18:40:30.000Z
2022-03-31T21:05:05.000Z
cron_manager/views.py
MelanieFJNR/Blitz-API
9a6daecd158fe07a6aeb80cbf586781eb688f0f9
[ "MIT" ]
12
2018-04-17T19:16:42.000Z
2022-01-27T00:19:59.000Z
from rest_framework import viewsets from rest_framework.permissions import IsAdminUser from .models import ( Task ) from . import serializers class TaskViewSet(viewsets.ModelViewSet): serializer_class = serializers.TaskSerializer queryset = Task.objects.all() permission_classes = [IsAdminUser]
18.705882
50
0.77673
7cd7cd52bcef51cb2d696c3f63cd64e17e03cf7f
1,866
py
Python
data.py
nivethsaran/BookStore
3ca98db3fae47bce1eccafbd9f99651c219f8486
[ "MIT" ]
null
null
null
data.py
nivethsaran/BookStore
3ca98db3fae47bce1eccafbd9f99651c219f8486
[ "MIT" ]
null
null
null
data.py
nivethsaran/BookStore
3ca98db3fae47bce1eccafbd9f99651c219f8486
[ "MIT" ]
null
null
null
import re from urllib3.exceptions import InsecureRequestWarning import warnings import urllib3 import sqlite3 import json import requests import os from bs4 import BeautifulSoup warnings.simplefilter('ignore', InsecureRequestWarning) ROOT_FOLDER = os.path.dirname(os.path.abspath(__file__)) bookstore = os.path.join(ROOT...
35.884615
103
0.652197
10eef1dcc21a758ac69a472dc98be8631ad1e560
554
py
Python
tests/web/conftest.py
eckelj/planetmint
c7086a1982d781cb7ace62f1dff5cd63ed016ae0
[ "Apache-2.0" ]
null
null
null
tests/web/conftest.py
eckelj/planetmint
c7086a1982d781cb7ace62f1dff5cd63ed016ae0
[ "Apache-2.0" ]
null
null
null
tests/web/conftest.py
eckelj/planetmint
c7086a1982d781cb7ace62f1dff5cd63ed016ae0
[ "Apache-2.0" ]
null
null
null
# Copyright © 2020 Interplanetary Database Association e.V., # Planetmint and IPDB software contributors. # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # Code is Apache-2.0 and docs are CC-BY-4.0 import pytest @pytest.fixture def app(request): from planetmint.web import server from planetmint.lib imp...
27.7
74
0.723827
dd2cb784c75fcc8d8f0c5e82aa7e970e23c591c5
1,220
py
Python
app/events/store.py
tuenut/bezier_curves_editor
5050b028c41839e59a8f479896340746b6cb9fdb
[ "MIT" ]
null
null
null
app/events/store.py
tuenut/bezier_curves_editor
5050b028c41839e59a8f479896340746b6cb9fdb
[ "MIT" ]
null
null
null
app/events/store.py
tuenut/bezier_curves_editor
5050b028c41839e59a8f479896340746b6cb9fdb
[ "MIT" ]
null
null
null
from __future__ import annotations import logging from collections import defaultdict from typing import Dict from app.events.subscriptions import EventSubscription logger = logging.getLogger(__name__) class SubscriptionsStore: __store: Dict[int, Dict[str, EventSubscription]] __stored_indices: Dict[str, ...
29.047619
77
0.719672
41ab137661c195aef09242885200e17db6d8df88
5,050
py
Python
tests/src/python/test_qgsnetworkcontentfetcherregistry.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
tests/src/python/test_qgsnetworkcontentfetcherregistry.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
tests/src/python/test_qgsnetworkcontentfetcherregistry.py
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
1
2021-12-25T08:40:30.000Z
2021-12-25T08:40:30.000Z
# -*- coding: utf-8 -*- """QGIS Unit tests for QgsNetworkContentFetcherRegistry .. note:: This program 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; either version 2 of the License, or (at your option) any late...
35.069444
112
0.675842
1c4a6da9e32f2fa4fbbdec55c0b23a5795f8a579
9,407
py
Python
tools/telemetry/telemetry/timeline/thread.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-11-28T10:46:52.000Z
2019-11-28T10:46:52.000Z
tools/telemetry/telemetry/timeline/thread.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/telemetry/telemetry/timeline/thread.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-27T11:15:39.000Z
2016-08-17T14:19:56.000Z
# 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 telemetry.timeline.async_slice as async_slice_module import telemetry.timeline.event_container as event_container import telemetry.timeline.flow_event ...
35.90458
80
0.672691
9987dd6d410d562f835c28c7cb7c3760b7b3cc11
628
py
Python
core/migrations/0006_auto_20210420_1928.py
pman06/recipe-project
3f9c9c47cbbce49363e0770a4f333232fb2f59a7
[ "MIT" ]
null
null
null
core/migrations/0006_auto_20210420_1928.py
pman06/recipe-project
3f9c9c47cbbce49363e0770a4f333232fb2f59a7
[ "MIT" ]
null
null
null
core/migrations/0006_auto_20210420_1928.py
pman06/recipe-project
3f9c9c47cbbce49363e0770a4f333232fb2f59a7
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-20 19:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0005_recipe'), ] operations = [ migrations.RenameField( model_name='recipe', old_name='tag', new...
22.428571
63
0.542994
098e62dde64c68e6698040fbb6bcf0b09acf544e
4,263
py
Python
tests/fabric/test_settings.py
praveendhac/nephos
f4b43d53c1eebe5c0d4474e4bd5cbbf0a7abcba0
[ "Apache-2.0" ]
null
null
null
tests/fabric/test_settings.py
praveendhac/nephos
f4b43d53c1eebe5c0d4474e4bd5cbbf0a7abcba0
[ "Apache-2.0" ]
null
null
null
tests/fabric/test_settings.py
praveendhac/nephos
f4b43d53c1eebe5c0d4474e4bd5cbbf0a7abcba0
[ "Apache-2.0" ]
1
2020-12-06T19:55:45.000Z
2020-12-06T19:55:45.000Z
from unittest import mock import pytest from nephos.fabric.settings import check_cluster, get_namespace, load_config class TestCheckCluster: @mock.patch('nephos.fabric.settings.context_get') def test_check_cluster(self, mock_context_get): mock_context_get.side_effect = [ {'context': {'cl...
36.127119
111
0.622332
908f325357352b1b38e0add60d6f3662e618fd15
30,117
bzl
Python
kotlin/internal/jvm/compile.bzl
geaden/rules_kotlin
73bba49c3337d60232674795c44af75dd52fc911
[ "Apache-2.0" ]
null
null
null
kotlin/internal/jvm/compile.bzl
geaden/rules_kotlin
73bba49c3337d60232674795c44af75dd52fc911
[ "Apache-2.0" ]
null
null
null
kotlin/internal/jvm/compile.bzl
geaden/rules_kotlin
73bba49c3337d60232674795c44af75dd52fc911
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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...
35.599291
136
0.628283
b12c58e94e506190d87364eaa4aa542c8d77eeb8
1,322
py
Python
urban_sound_python/librosa_feature_config.py
n1oftheabove/urban-sound-classification
3702e9144fd98802db524851dc8b98c44b81ddf7
[ "MIT" ]
null
null
null
urban_sound_python/librosa_feature_config.py
n1oftheabove/urban-sound-classification
3702e9144fd98802db524851dc8b98c44b81ddf7
[ "MIT" ]
null
null
null
urban_sound_python/librosa_feature_config.py
n1oftheabove/urban-sound-classification
3702e9144fd98802db524851dc8b98c44b81ddf7
[ "MIT" ]
null
null
null
from urban_sound_python.librosa_feature_generation import * # provide here which librosa features to calculate & their statistical metrics librosa_config = {'chroma': {'func':calc_chroma, 'measures': [np.std, np.mean] }, 'mfcc': {'func':calc_mfcc, ...
36.722222
78
0.425113
934b95641c2b7a7c7db1a8c1e4f77f171d0f945b
23,331
py
Python
pipelines/wdl-HLA-typing/OptiTypePipeline.py
Chun-Jie-Group/pipelines
28d2b48574e0057607f52915a829b32374ec274f
[ "MIT" ]
3
2018-10-25T13:28:52.000Z
2018-11-07T11:29:20.000Z
pipelines/wdl-HLA-typing/OptiTypePipeline.py
Chun-Jie-Group/pipelines
28d2b48574e0057607f52915a829b32374ec274f
[ "MIT" ]
null
null
null
pipelines/wdl-HLA-typing/OptiTypePipeline.py
Chun-Jie-Group/pipelines
28d2b48574e0057607f52915a829b32374ec274f
[ "MIT" ]
2
2018-12-13T09:09:49.000Z
2019-12-26T14:40:41.000Z
# coding=utf-8 """ ################################################################### OptiType: precision HLA typing from next-generation sequencing data ################################################################### Authors: András Szolek, Benjamin Schubert, Christopher Mohr Date: August 2017 Version: 1.3.1 L...
53.267123
6,125
0.622219
833ec1d83c27dcfef50660b5783cf667ef7cb34a
770
py
Python
bots/discussion_monitor.py
elnuno/reddit_bots
492ef0de87d45cecf1bc6a0f4782d184f8b69246
[ "MIT" ]
null
null
null
bots/discussion_monitor.py
elnuno/reddit_bots
492ef0de87d45cecf1bc6a0f4782d184f8b69246
[ "MIT" ]
null
null
null
bots/discussion_monitor.py
elnuno/reddit_bots
492ef0de87d45cecf1bc6a0f4782d184f8b69246
[ "MIT" ]
1
2020-07-14T03:52:05.000Z
2020-07-14T03:52:05.000Z
from time import time import praw selected_sub = 'all' start = time() reddit = praw.Reddit( client_id='client_id', client_secret='client_secret', password='password', user_agent='user_agent', username='username' ) def handle(comment): keywords = ['kitten', 'cat', 'kitty'] if any(keyword i...
24.0625
70
0.664935
febfcee98bb8d297e75654f05f0a2925b2342b00
705
py
Python
robo_gym/utils/exceptions.py
akeaveny/robo-gym
9ad8cf2e7adf12062b1bc5e62afb2938f70d02a9
[ "MIT" ]
4
2021-03-12T11:26:45.000Z
2021-09-22T20:39:29.000Z
robo_gym/utils/exceptions.py
akeaveny/robo-gym
9ad8cf2e7adf12062b1bc5e62afb2938f70d02a9
[ "MIT" ]
null
null
null
robo_gym/utils/exceptions.py
akeaveny/robo-gym
9ad8cf2e7adf12062b1bc5e62afb2938f70d02a9
[ "MIT" ]
null
null
null
class InvalidStateError(Exception): def __init__(self, message = "The environment state received is not contained in the observation space."): self.message = message def __str__(self): return self.message class RobotServerError(Exception): def __init__(self, service): if service == ...
37.105263
110
0.641135
0e90444fca9d748e9f3c8d0540b48e6eba1bb543
2,053
py
Python
azure/mgmt/network/v2017_09_01/models/connectivity_issue.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
azure/mgmt/network/v2017_09_01/models/connectivity_issue.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
azure/mgmt/network/v2017_09_01/models/connectivity_issue.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
37.327273
77
0.608378
85e939be42b5d16e16b7a33d25b8ec7cd6c0c503
1,229
py
Python
utils/model_util.py
waynshang/stock_institution
72b0374ed148f1bdb4e276422a095411ab564455
[ "MIT" ]
1
2021-05-29T11:08:09.000Z
2021-05-29T11:08:09.000Z
utils/model_util.py
waynshang/stock_institution
72b0374ed148f1bdb4e276422a095411ab564455
[ "MIT" ]
1
2021-08-03T12:36:46.000Z
2021-08-03T12:36:46.000Z
utils/model_util.py
waynshang/stock_institution
72b0374ed148f1bdb4e276422a095411ab564455
[ "MIT" ]
null
null
null
from datetime import date, datetime def row2list(model, rows, exclude_columns): d = [] for row in rows: d.append(model2dict(model, row, exclude_columns)) return d def model2dict(model, data, exclude_columns): columns = list(set(model.__table__.columns.keys())-set(exclude_columns)) return {c:...
35.114286
91
0.735557
fa3a1703e51c1774ded50ddf96211df20e1b1d01
47,032
py
Python
django/db/models/base.py
ericholscher/django
b9a90b371c90a987ed57f7a4a7cc1274c432b438
[ "BSD-3-Clause" ]
1
2015-11-08T11:42:08.000Z
2015-11-08T11:42:08.000Z
django/db/models/base.py
ericholscher/django
b9a90b371c90a987ed57f7a4a7cc1274c432b438
[ "BSD-3-Clause" ]
null
null
null
django/db/models/base.py
ericholscher/django
b9a90b371c90a987ed57f7a4a7cc1274c432b438
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import copy import sys from functools import update_wrapper from django.utils.six.moves import zip import django.db.models.manager # Imported to register signal handler. from django.conf import settings from django.core.exceptions import (ObjectDoesNotExist, MultipleObject...
43.628942
166
0.598869
63f19a2394f1329fc871ee5bb61d5080e0dd088e
480
py
Python
v1/cloud/supabase.py
trisongz/fileio
2812e13003b79e8d19b5aa1f4e16feb2cd48b115
[ "MIT" ]
null
null
null
v1/cloud/supabase.py
trisongz/fileio
2812e13003b79e8d19b5aa1f4e16feb2cd48b115
[ "MIT" ]
null
null
null
v1/cloud/supabase.py
trisongz/fileio
2812e13003b79e8d19b5aa1f4e16feb2cd48b115
[ "MIT" ]
null
null
null
from fileio.cloud import auth from fileio.configs import CloudConfig from fileio.static.classes import SupabaseConfig from supabase_py import create_client def _auth_supabase( supabase_url: str = CloudConfig.SupabaseURL, supabase_key: str = CloudConfig.SupabaseKey, ): auth.SUPABASE_AUTH = SupabaseCon...
34.285714
84
0.79375
d68e57ef92fb73f0717969bf0cf9eca69d43b134
18,488
py
Python
falco/wfsc.py
kian1377/falco-python
a9666629845fc72957cd89339f924b9cfb7ce6f5
[ "Apache-2.0" ]
4
2019-05-22T22:24:01.000Z
2021-07-21T13:32:36.000Z
falco/wfsc.py
kian1377/falco-python
a9666629845fc72957cd89339f924b9cfb7ce6f5
[ "Apache-2.0" ]
11
2018-06-22T01:05:07.000Z
2021-11-03T13:46:25.000Z
falco/wfsc.py
kian1377/falco-python
a9666629845fc72957cd89339f924b9cfb7ce6f5
[ "Apache-2.0" ]
2
2018-06-21T23:58:06.000Z
2021-07-13T21:25:23.000Z
"""WFSC Loop Function.""" import numpy as np import os import time import pickle import matplotlib.pyplot as plt import falco def loop(mp, out): """ Loop over the estimator and controller for WFSC. Parameters ---------- mp : falco.config.ModelParameters Structure of model parameters ...
40.812362
159
0.546787
66fb3825a1c68fbd9109a2b8f737ccc565bb54fc
3,295
py
Python
tensor2tensor/envs/gym_spaces_utils.py
vishwas1234567/tensor2tensor
d62e2ee1b069d3d9b327d4d2dd6f9e50b7e62bb3
[ "Apache-2.0" ]
null
null
null
tensor2tensor/envs/gym_spaces_utils.py
vishwas1234567/tensor2tensor
d62e2ee1b069d3d9b327d4d2dd6f9e50b7e62bb3
[ "Apache-2.0" ]
null
null
null
tensor2tensor/envs/gym_spaces_utils.py
vishwas1234567/tensor2tensor
d62e2ee1b069d3d9b327d4d2dd6f9e50b7e62bb3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
28.903509
79
0.739302
2f815424253e1568d66bf40e95a67961705c997a
1,738
py
Python
nipype/utils/spm_docs.py
carlohamalainen/nipype
0c4f587946f48277de471b1801b60bd18fdfb775
[ "BSD-3-Clause" ]
1
2018-04-18T12:13:37.000Z
2018-04-18T12:13:37.000Z
nipype/utils/spm_docs.py
ito-takuya/nipype
9099a5809487b55868cdec82a719030419cbd6ba
[ "BSD-3-Clause" ]
null
null
null
nipype/utils/spm_docs.py
ito-takuya/nipype
9099a5809487b55868cdec82a719030419cbd6ba
[ "BSD-3-Clause" ]
1
2020-02-19T13:47:05.000Z
2020-02-19T13:47:05.000Z
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Grab documentation from spm.""" import os from nipype.interfaces import matlab def grab_doc(task_name): """Grab the SPM documentation for the given SPM task named `task_name` Parameters -...
29.457627
78
0.616226
fa7188bb16c84fd06bc9ccc152b215f01c4907ad
8,045
py
Python
src/tests/list_values_test.py
tomgilbertson/script-server-v1
bbdf289d3d993a0c81f20c36bce5f3eb064b0261
[ "Apache-2.0", "CC0-1.0" ]
833
2016-09-08T13:27:36.000Z
2022-03-27T07:10:48.000Z
src/tests/list_values_test.py
tomgilbertson/script-server-v1
bbdf289d3d993a0c81f20c36bce5f3eb064b0261
[ "Apache-2.0", "CC0-1.0" ]
528
2016-05-23T09:17:04.000Z
2022-03-30T12:45:50.000Z
src/tests/list_values_test.py
tomgilbertson/script-server-v1
bbdf289d3d993a0c81f20c36bce5f3eb064b0261
[ "Apache-2.0", "CC0-1.0" ]
214
2016-09-08T14:46:41.000Z
2022-03-25T01:04:14.000Z
import os import unittest from parameterized import parameterized from config.script.list_values import DependantScriptValuesProvider, FilesProvider, ScriptValuesProvider from tests import test_utils from tests.test_utils import create_parameter_model from utils import file_utils from utils.process_utils import Execu...
41.045918
119
0.641392
a61c5ed61f119d8e9dc1223a44da273f9fcf4f43
6,809
py
Python
setup/classifier.py
daoducanhc/Weed-and-Plant_Segmentation
3bf7900409a49bac4e60e54fc31431b5720a9f15
[ "MIT" ]
null
null
null
setup/classifier.py
daoducanhc/Weed-and-Plant_Segmentation
3bf7900409a49bac4e60e54fc31431b5720a9f15
[ "MIT" ]
null
null
null
setup/classifier.py
daoducanhc/Weed-and-Plant_Segmentation
3bf7900409a49bac4e60e54fc31431b5720a9f15
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from .loss import DiceCELoss import torch.optim as optim import numpy as np import time class WeedClassifier(): def __init__(self, model, device): self.model = model self.device = device self.criterion = DiceCELoss() ...
32.578947
103
0.527978
e20b34063218cdab65f8064f21747399c4a84336
6,739
py
Python
Utilities/Drawing.py
MaximilianJanetschek/Urban_Intermodal_Transportation
632caf668636448dc9290d54cf1c7b527c68a957
[ "MIT" ]
null
null
null
Utilities/Drawing.py
MaximilianJanetschek/Urban_Intermodal_Transportation
632caf668636448dc9290d54cf1c7b527c68a957
[ "MIT" ]
null
null
null
Utilities/Drawing.py
MaximilianJanetschek/Urban_Intermodal_Transportation
632caf668636448dc9290d54cf1c7b527c68a957
[ "MIT" ]
null
null
null
import os import networkx as nx from Utilities.Data_Retrieval import * import matplotlib.pyplot as plt import osmnx as ox import folium from IPython.display import IFrame from Utilities.General_Function import * class Drawing: name = str() networkInstance = int() Graph = nx.MultiDiGraph() nodes_pos =...
46.475862
118
0.61656
ff2f17d4808a0012637f0cdc915a116ad03ec9d0
2,481
py
Python
BlogManage/blog/serializer.py
ahriknow/ahriknow
817b5670c964e01ffe19ed182ce0a7b42e17ce09
[ "MIT" ]
null
null
null
BlogManage/blog/serializer.py
ahriknow/ahriknow
817b5670c964e01ffe19ed182ce0a7b42e17ce09
[ "MIT" ]
3
2021-03-19T01:28:43.000Z
2021-04-08T19:57:19.000Z
BlogManage/blog/serializer.py
ahriknow/ahriknow
817b5670c964e01ffe19ed182ce0a7b42e17ce09
[ "MIT" ]
null
null
null
from rest_framework import serializers from rest_framework.pagination import PageNumberPagination from BlogManage.blog.models import Tab, Category, Tag, Article, Comment class PageArticle(PageNumberPagination): page_size = 10 max_page_size = 100 page_size_query_param = 'size' page_query_param = 'page'...
26.393617
96
0.681983
c1bc940845ed2075969be7cffa5aa273559aae84
2,254
py
Python
sketchy/controllers/validators.py
scriptsrc/sketchy
802d61a1f56e68d3bebea7196765f8ff8ecd9727
[ "Apache-2.0" ]
null
null
null
sketchy/controllers/validators.py
scriptsrc/sketchy
802d61a1f56e68d3bebea7196765f8ff8ecd9727
[ "Apache-2.0" ]
1
2021-03-31T20:13:32.000Z
2021-03-31T20:13:32.000Z
sketchy/controllers/validators.py
scriptsrc/sketchy
802d61a1f56e68d3bebea7196765f8ff8ecd9727
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Netflix, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
34.676923
164
0.6748
7c025ad6d6faa8e570f615bde4c635bf7fd6eaee
8,190
py
Python
selfdrive/car/nissan/values.py
GratefulJinx77/comma
f16e30a44ff5026f1aee502f44f525db2de31d5b
[ "MIT" ]
null
null
null
selfdrive/car/nissan/values.py
GratefulJinx77/comma
f16e30a44ff5026f1aee502f44f525db2de31d5b
[ "MIT" ]
16
2022-01-02T01:38:29.000Z
2022-03-30T13:58:33.000Z
selfdrive/car/nissan/values.py
GratefulJinx77/comma
f16e30a44ff5026f1aee502f44f525db2de31d5b
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Dict, List, Union from enum import Enum from selfdrive.car import dbc_dict from selfdrive.car.docs_definitions import CarInfo, Harness from cereal import car Ecu = car.CarParams.Ecu class CarControllerParams: ANGLE_DELTA_BP = [0., 5., 15.] ANGLE_DELTA_V = [5.,...
58.085106
1,341
0.564713
79ad767cb78be28c920348e8add9e29257db2ec0
1,396
py
Python
towel/mt/auth.py
timgates42/towel
d00fb74e3bc8724a45704378c3cd40444bb36259
[ "BSD-3-Clause" ]
null
null
null
towel/mt/auth.py
timgates42/towel
d00fb74e3bc8724a45704378c3cd40444bb36259
[ "BSD-3-Clause" ]
null
null
null
towel/mt/auth.py
timgates42/towel
d00fb74e3bc8724a45704378c3cd40444bb36259
[ "BSD-3-Clause" ]
null
null
null
""" Authentication backend which preloads access and client models ============================================================== """ from __future__ import absolute_import, unicode_literals from django.contrib.auth.models import User from towel.auth import ModelBackend as _ModelBackend from towel.mt import access_m...
29.702128
75
0.628223
86b74aafbfde378c65a8a37400712648ff5f5ddd
1,121
py
Python
setup.py
foliant-docs/foliantcontrib.removeexcess
f6e038e565fffa65b987458cb3749cc2bc2a6242
[ "MIT" ]
null
null
null
setup.py
foliant-docs/foliantcontrib.removeexcess
f6e038e565fffa65b987458cb3749cc2bc2a6242
[ "MIT" ]
null
null
null
setup.py
foliant-docs/foliantcontrib.removeexcess
f6e038e565fffa65b987458cb3749cc2bc2a6242
[ "MIT" ]
null
null
null
from setuptools import setup SHORT_DESCRIPTION = 'Preprocessor for Foliant to remove excessive Markdown files before build.' try: with open('README.md', encoding='utf8') as readme: LONG_DESCRIPTION = readme.read() except FileNotFoundError: LONG_DESCRIPTION = SHORT_DESCRIPTION setup( name='foli...
28.025
95
0.665477
ca2469ea0a4cc94637de8535d811782aefca6cf0
54,890
py
Python
tests/python/relay/test_pass_convert_op_layout.py
YSHsieh7777/tvm
b51973fb48deb34ff725bf1206f1b683f8bc2773
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
40
2021-06-14T23:14:46.000Z
2022-03-21T14:32:23.000Z
tests/python/relay/test_pass_convert_op_layout.py
YSHsieh7777/tvm
b51973fb48deb34ff725bf1206f1b683f8bc2773
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
14
2021-06-08T03:15:54.000Z
2022-02-01T23:50:24.000Z
tests/python/relay/test_pass_convert_op_layout.py
YSHsieh7777/tvm
b51973fb48deb34ff725bf1206f1b683f8bc2773
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
11
2021-06-14T05:56:18.000Z
2022-02-27T06:52:07.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.587272
98
0.532009
01d70721ea8d336609682a54f1fcb6f87e8fd7cf
2,631
py
Python
project_euler/validate_solutions.py
AjaySinghPanwar/Python
a0bac6ab65b70bca4886962bde8d4c922a90c63a
[ "MIT" ]
14
2020-10-03T05:43:48.000Z
2021-11-01T21:02:26.000Z
project_euler/validate_solutions.py
AjaySinghPanwar/Python
a0bac6ab65b70bca4886962bde8d4c922a90c63a
[ "MIT" ]
1
2020-10-01T10:27:43.000Z
2020-10-01T10:46:44.000Z
project_euler/validate_solutions.py
AjaySinghPanwar/Python
a0bac6ab65b70bca4886962bde8d4c922a90c63a
[ "MIT" ]
12
2020-10-03T05:44:19.000Z
2022-01-16T05:37:54.000Z
#!/usr/bin/env python3 import importlib.util import json import pathlib from types import ModuleType from typing import Generator import pytest PROJECT_EULER_DIR_PATH = pathlib.Path.cwd().joinpath("project_euler") PROJECT_EULER_ANSWERS_PATH = PROJECT_EULER_DIR_PATH.joinpath( "project_euler_answers.json" ) with o...
38.691176
91
0.68339
2ee336cafdd7ec051050b7b456726b9831f34be0
5,816
py
Python
Tools/grmm/lib/jython/Lib/uu.py
arne-cl/codra-rst-parser
a03631aace2146da2fed0c0c8f0a3fe1c8c5483d
[ "Apache-2.0" ]
8
2016-11-24T09:38:31.000Z
2021-04-23T13:04:48.000Z
front-end/testsuite-python-lib/Python-2.2/Lib/uu.py
MalloyPower/parsing-python
b2bca5eed07ea2af7a2001cd4f63becdfb0570be
[ "MIT" ]
1
2019-01-16T00:58:12.000Z
2019-12-30T14:33:16.000Z
Tools/grmm/lib/jython/Lib/uu.py
arne-cl/codra-rst-parser
a03631aace2146da2fed0c0c8f0a3fe1c8c5483d
[ "Apache-2.0" ]
4
2018-12-04T12:21:05.000Z
2021-02-05T08:00:14.000Z
#! /usr/bin/env python # Copyright 1994 by Lance Ellinghouse # Cathedral City, California Republic, United States of America. # All Rights Reserved # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, # provide...
30.291667
72
0.589065
f3c6342cabe976272bdedad0dd736984c13c277d
100
py
Python
starterbot/lib/python2.7/site-packages/slackclient/version.py
Nishesh1412/SlackBot-SS
d43d384d49b02845f071bcccd6ddd209b14efe96
[ "MIT" ]
1
2018-03-24T08:28:08.000Z
2018-03-24T08:28:08.000Z
starterbot/lib/python2.7/site-packages/slackclient/version.py
Nishesh1412/SlackBot-SS
d43d384d49b02845f071bcccd6ddd209b14efe96
[ "MIT" ]
null
null
null
starterbot/lib/python2.7/site-packages/slackclient/version.py
Nishesh1412/SlackBot-SS
d43d384d49b02845f071bcccd6ddd209b14efe96
[ "MIT" ]
1
2019-03-03T07:43:25.000Z
2019-03-03T07:43:25.000Z
# see: http://legacy.python.org/dev/peps/pep-0440/#public-version-identifiers __version__ = '1.0.5'
33.333333
77
0.74
b18db1628f2928117cece5056cddccd66f7becf3
9,798
py
Python
sdk/python/pulumi_aws/xray/sampling_rule.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/xray/sampling_rule.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/xray/sampling_rule.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# 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 json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class Sampli...
51.568421
300
0.676363
413334e4d2d593fd61aec1383e385645dd464cd1
691
py
Python
library/python/number-theory/factorize_trial.py
hamukichi/SunflowerSeeds
b4cd56766d2f0aba1c33637c96e56820ca7ea949
[ "MIT" ]
null
null
null
library/python/number-theory/factorize_trial.py
hamukichi/SunflowerSeeds
b4cd56766d2f0aba1c33637c96e56820ca7ea949
[ "MIT" ]
null
null
null
library/python/number-theory/factorize_trial.py
hamukichi/SunflowerSeeds
b4cd56766d2f0aba1c33637c96e56820ca7ea949
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Compute the prime factorization of the given integer by trial division. Verification: [NTL_1_A](https://onlinejudge.u-aizu.ac.jp/status/users/hamukichi/submissions/1/NTL_1_A/judge/4571073/Python3) """ import math def factorize_trial_division(n): """Compute the prime factorization of t...
25.592593
124
0.615051
528776bed28bbb7004250b33fab9c11b0d1c4edb
771
py
Python
resources/dot_PyCharm/system/python_stubs/-762174762/PySide/QtCore/POINT.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
1
2020-04-20T02:27:20.000Z
2020-04-20T02:27:20.000Z
resources/dot_PyCharm/system/python_stubs/cache/16012662ddca113c1f50140f9e0d3bd290a511015767475cf362e5267760f062/PySide/QtCore/POINT.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
resources/dot_PyCharm/system/python_stubs/cache/16012662ddca113c1f50140f9e0d3bd290a511015767475cf362e5267760f062/PySide/QtCore/POINT.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
# encoding: utf-8 # module PySide.QtCore # from C:\Python27\lib\site-packages\PySide\QtCore.pyd # by generator 1.147 # no doc # imports import Shiboken as __Shiboken class POINT(__Shiboken.Object): # no doc def __copy__(self, *args, **kwargs): # real signature unknown pass def __init__(self, *ar...
25.7
91
0.653696
67e719f5842ae750a387df45d2d44d6f16a9d691
163
py
Python
flaskplotlib/__init__.py
cerickson/flask-matplotlib-tutorial
b5f3ddb722a890fe0dc34d966401adb6c9199b77
[ "MIT" ]
10
2018-02-06T23:36:14.000Z
2021-02-15T16:06:58.000Z
flaskplotlib/__init__.py
cerickson/flask-matplotlib-tutorial
b5f3ddb722a890fe0dc34d966401adb6c9199b77
[ "MIT" ]
null
null
null
flaskplotlib/__init__.py
cerickson/flask-matplotlib-tutorial
b5f3ddb722a890fe0dc34d966401adb6c9199b77
[ "MIT" ]
1
2018-07-19T13:49:45.000Z
2018-07-19T13:49:45.000Z
from flask import Flask from flaskplotlib.views import client app = Flask(__name__) app.register_blueprint(client) app.config.from_object('flaskplotlib.config')
20.375
45
0.822086
1fe0cc188e808e5e0bb8d3068bb11a0edcee4591
5,483
py
Python
tests/test_dynunet.py
LucasFidon/MONAI
a7ef9d567775dd7a222f93bab08191c0e3532c92
[ "Apache-2.0" ]
null
null
null
tests/test_dynunet.py
LucasFidon/MONAI
a7ef9d567775dd7a222f93bab08191c0e3532c92
[ "Apache-2.0" ]
null
null
null
tests/test_dynunet.py
LucasFidon/MONAI
a7ef9d567775dd7a222f93bab08191c0e3532c92
[ "Apache-2.0" ]
1
2020-06-11T13:03:02.000Z
2020-06-11T13:03:02.000Z
# Copyright 2020 MONAI Consortium # 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, s...
39.446043
91
0.558453
d6d5ad6aa9e240c0ac0d9f450fe91806c09b4746
323
py
Python
story/version.py
jayvdb/cli
6e03af2b2d1e6d6f0188d405617a95dca86072c8
[ "Apache-2.0" ]
null
null
null
story/version.py
jayvdb/cli
6e03af2b2d1e6d6f0188d405617a95dca86072c8
[ "Apache-2.0" ]
null
null
null
story/version.py
jayvdb/cli
6e03af2b2d1e6d6f0188d405617a95dca86072c8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from pkg_resources import DistributionNotFound, get_distribution try: version = get_distribution('story').version compiler_version = get_distribution('storyscript').version except DistributionNotFound: # package is not installed version = 'unknown' compiler_version = 'unknow...
29.363636
64
0.74613
6650c6a88798e9815b48e3d4256a0db60be4453c
529
py
Python
pastepwn/analyzers/databasedumpanalyzer.py
DaRuudii/pastepwn
f21e82f703c6c5e9bd8b3dbc5d75d4d90583fa63
[ "MIT" ]
null
null
null
pastepwn/analyzers/databasedumpanalyzer.py
DaRuudii/pastepwn
f21e82f703c6c5e9bd8b3dbc5d75d4d90583fa63
[ "MIT" ]
null
null
null
pastepwn/analyzers/databasedumpanalyzer.py
DaRuudii/pastepwn
f21e82f703c6c5e9bd8b3dbc5d75d4d90583fa63
[ "MIT" ]
1
2019-10-09T13:09:17.000Z
2019-10-09T13:09:17.000Z
# -*- coding: utf-8 -*- from .regexanalyzer import RegexAnalyzer class DatabaseDumpAnalyzer(RegexAnalyzer): """Analyzer to match database dump""" name = "DatabaseDumpAnalyzer" def __init__(self, actions): """ Analyzer to match database dump :param actions: A single action or a lis...
31.117647
90
0.606805
abb987b952e9ec1315fab539efaa98ed19676262
18,970
py
Python
ads/model/framework/xgboost_model.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
20
2022-02-22T19:07:09.000Z
2022-03-16T17:21:42.000Z
ads/model/framework/xgboost_model.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
ads/model/framework/xgboost_model.py
oracle/accelerated-data-science
d594ed0c8c1365daf4cf9e860daebc760fa9a24b
[ "UPL-1.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*-- # Copyright (c) 2022 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ import os from typing import Any, Dict, List, Optional, Tuple, Union import numpy as np import pandas as pd from a...
37.713718
120
0.602952
ac155b732277bce453ced4e0c728cda48a044eae
23,956
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/aio/operations/_service_endpoint_policy_definitions_operations.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/aio/operations/_service_endpoint_policy_definitions_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/aio/operations/_service_endpoint_policy_definitions_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
55.198157
285
0.702747