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
33970a05b428501631a1a2df6da2c091decab5ac
9,033
py
Python
bparrot/models.py
AM2i9/blurple-parrot
b9b93783884f5d09d3c850a09f9d29c0bf20fb61
[ "MIT" ]
null
null
null
bparrot/models.py
AM2i9/blurple-parrot
b9b93783884f5d09d3c850a09f9d29c0bf20fb61
[ "MIT" ]
null
null
null
bparrot/models.py
AM2i9/blurple-parrot
b9b93783884f5d09d3c850a09f9d29c0bf20fb61
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import List class DictLoader: @classmethod def from_dict(cls, data: dict): return cls(**data) class Embed: """ A Discord Embed object """ def __init__( self, *, title: str = None, description: str = None, ...
22.194103
86
0.553305
5f2e3a0f9c99b4680c10e297f836c14800e4441c
1,273
py
Python
profiles_api/serializers.py
MrSor9ry/profiles-rest-api
6ca8ba2f4bd473a68815829c3987f6459acf05de
[ "MIT" ]
null
null
null
profiles_api/serializers.py
MrSor9ry/profiles-rest-api
6ca8ba2f4bd473a68815829c3987f6459acf05de
[ "MIT" ]
null
null
null
profiles_api/serializers.py
MrSor9ry/profiles-rest-api
6ca8ba2f4bd473a68815829c3987f6459acf05de
[ "MIT" ]
null
null
null
from rest_framework import serializers from profiles_api import models class HelloSerializer( serializers.Serializer ): name = serializers.CharField( max_length=10 ) class UserProfileSerializer(serializers.ModelSerializer): class Meta: model = models.UserProfile fields =('id','email','name...
25.979592
68
0.618225
d7b74524234b858dced679365709d3f63fd5f35b
8,906
py
Python
scripts/piped-work/pipeclient.py
abelinked/tenacity
8733f591aaac2c5108e421afb2202bbcd9d129ca
[ "CC-BY-3.0" ]
4,949
2021-07-06T20:30:13.000Z
2022-03-31T13:44:14.000Z
scripts/piped-work/pipeclient.py
abelinked/tenacity
8733f591aaac2c5108e421afb2202bbcd9d129ca
[ "CC-BY-3.0" ]
492
2021-07-06T20:35:31.000Z
2022-03-25T19:06:42.000Z
scripts/piped-work/pipeclient.py
abelinked/tenacity
8733f591aaac2c5108e421afb2202bbcd9d129ca
[ "CC-BY-3.0" ]
273
2021-07-06T20:52:02.000Z
2022-03-29T17:26:05.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Automate Audacity via mod-script-pipe. Pipe Client may be used as a command-line script to send commands to Audacity via the mod-script-pipe interface, or loaded as a module. Requires Python 2.7 or later. Python 3 strongly recommended. ====================== Command ...
29.986532
78
0.579385
bb1a9e8d3a437e495f5ecdbe9f7ba039c700f8b3
2,676
py
Python
imageviewer.py
akash7883/Tkinter-Tutorials
1cb0b1c4320b7e2a3d11b94818177bba269b5420
[ "Apache-2.0" ]
null
null
null
imageviewer.py
akash7883/Tkinter-Tutorials
1cb0b1c4320b7e2a3d11b94818177bba269b5420
[ "Apache-2.0" ]
null
null
null
imageviewer.py
akash7883/Tkinter-Tutorials
1cb0b1c4320b7e2a3d11b94818177bba269b5420
[ "Apache-2.0" ]
null
null
null
''' sticky is used to make our label sticked in specific direction relief =SUNKEN is used to make special type of border box with a line over it anchor is used with sticky to make text move in specific direction according to sticky ''' from tkinter import * from PIL import ImageTk,Image root=Tk() root.title...
32.634146
142
0.701794
099c6503e2f69a525567db6d0fd58808e35400cb
229
py
Python
src/gui/handlers/systemhandler.py
spaceconcordia/csdc3
86d70a3eb677f23f6b38346f335b8d88d027f612
[ "MIT" ]
null
null
null
src/gui/handlers/systemhandler.py
spaceconcordia/csdc3
86d70a3eb677f23f6b38346f335b8d88d027f612
[ "MIT" ]
null
null
null
src/gui/handlers/systemhandler.py
spaceconcordia/csdc3
86d70a3eb677f23f6b38346f335b8d88d027f612
[ "MIT" ]
null
null
null
import tornado.web class SystemHandler(tornado.web.RequestHandler): def get(self): self.render('index.html', section='system') def post(self): self.write({ "status" : "Ario boy" }) self.finish()
22.9
51
0.624454
fc791e3871e82ac575ce388183f8a21b55eae128
4,180
py
Python
src/town/a4.py
bethington/botty
62a8cc02055cf01f0481a328e6c94fe84a6529a6
[ "MIT" ]
5
2021-12-26T17:46:17.000Z
2022-02-10T00:11:38.000Z
src/town/a4.py
bethington/botty
62a8cc02055cf01f0481a328e6c94fe84a6529a6
[ "MIT" ]
null
null
null
src/town/a4.py
bethington/botty
62a8cc02055cf01f0481a328e6c94fe84a6529a6
[ "MIT" ]
1
2022-02-12T23:30:02.000Z
2022-02-12T23:30:02.000Z
from char import IChar from town.i_act import IAct from screen import grab from npc_manager import Npc, open_npc_menu, press_npc_btn from pather import Pather, Location from typing import Union from template_finder import TemplateFinder from utils.misc import wait from ui_manager import ScreenObjects, is_visible clas...
44.946237
123
0.68756
99f56d284569ebeaebc3764c0a1a23f61681bfbf
14,765
py
Python
fastybird_shelly_connector/clients/coap.py
FastyBird/shelly-connector
afbd75da091f96854fa09d3750d9f75406c5bf39
[ "Apache-2.0" ]
null
null
null
fastybird_shelly_connector/clients/coap.py
FastyBird/shelly-connector
afbd75da091f96854fa09d3750d9f75406c5bf39
[ "Apache-2.0" ]
null
null
null
fastybird_shelly_connector/clients/coap.py
FastyBird/shelly-connector
afbd75da091f96854fa09d3750d9f75406c5bf39
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Copyright 2021. FastyBird s.r.o. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
32.379386
110
0.44829
4cc731cd8ae47d9730f49a806c649282a1edc5a4
2,433
py
Python
plug-ins/mitsuba/materials/difftrans.py
hpd/MitsubaForMaya
2d1a53f6243fbeb51dbdb7bf152aabcf25fd9999
[ "MIT" ]
22
2015-11-24T03:21:28.000Z
2020-10-20T08:24:13.000Z
plug-ins/mitsuba/materials/difftrans.py
hpd/MitsubaForMaya
2d1a53f6243fbeb51dbdb7bf152aabcf25fd9999
[ "MIT" ]
null
null
null
plug-ins/mitsuba/materials/difftrans.py
hpd/MitsubaForMaya
2d1a53f6243fbeb51dbdb7bf152aabcf25fd9999
[ "MIT" ]
5
2015-11-28T11:46:28.000Z
2020-09-10T08:31:13.000Z
import sys import maya.OpenMaya as OpenMaya import maya.OpenMayaMPx as OpenMayaMPx kPluginNodeName = "MitsubaDiffuseTransmitterShader" kPluginNodeClassify = "shader/surface" kPluginNodeId = OpenMaya.MTypeId(0x8700D) class difftrans(OpenMayaMPx.MPxNode): def __init__(self): OpenMayaMPx.MPxNode.__init__(sel...
29.670732
91
0.67612
223d1143168e974427d98138c92a63ff5f85c2b4
459
py
Python
backend/catalogue/migrations/0004_auto_20160628_1030.py
ThreeDRadio/intranet
b8c6ab177d508816da624d5063337cbd475fee9a
[ "MIT" ]
null
null
null
backend/catalogue/migrations/0004_auto_20160628_1030.py
ThreeDRadio/intranet
b8c6ab177d508816da624d5063337cbd475fee9a
[ "MIT" ]
1
2016-10-31T11:17:13.000Z
2016-10-31T11:17:13.000Z
backend/catalogue/migrations/0004_auto_20160628_1030.py
ThreeDRadio/intranet
b8c6ab177d508816da624d5063337cbd475fee9a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('catalogue', '0003_auto_20160628_1027'), ] operations = [ migrations.AlterField( model_name='cdcomment', ...
22.95
104
0.625272
f1becbcc8db313a3b7fdb0a3c6ee8a460f89a7b9
2,651
py
Python
tests/exchange/test_bittrex.py
darwinli/buylowsellhigh_catalyst
f7a143cb78c614d2d347742375e8bb4d76221d5c
[ "Apache-2.0" ]
1
2018-01-25T23:49:06.000Z
2018-01-25T23:49:06.000Z
tests/exchange/test_bittrex.py
darwinli/buylowsellhigh_catalyst
f7a143cb78c614d2d347742375e8bb4d76221d5c
[ "Apache-2.0" ]
null
null
null
tests/exchange/test_bittrex.py
darwinli/buylowsellhigh_catalyst
f7a143cb78c614d2d347742375e8bb4d76221d5c
[ "Apache-2.0" ]
null
null
null
from catalyst.exchange.bittrex.bittrex import Bittrex from catalyst.finance.order import Order from base import BaseExchangeTestCase from logbook import Logger from catalyst.exchange.exchange_utils import get_exchange_auth log = Logger('test_bittrex') class BittrexTestCase(BaseExchangeTestCase): @classmethod ...
29.455556
75
0.609959
96bb7199990ae2409f06690b31b9c149460c4256
256
py
Python
account/urls.py
rsys-teamx/django-2fa-qna
d64c7ff64054437ff08b555a106ab52113091232
[ "MIT" ]
null
null
null
account/urls.py
rsys-teamx/django-2fa-qna
d64c7ff64054437ff08b555a106ab52113091232
[ "MIT" ]
null
null
null
account/urls.py
rsys-teamx/django-2fa-qna
d64c7ff64054437ff08b555a106ab52113091232
[ "MIT" ]
null
null
null
from django.urls import path from rest_framework.authtoken import views import account.views as view urlpatterns = [ path(r"home/", view.HomePage.as_view(), name="home"), path("api-token-auth/", views.obtain_auth_token, name="api-tokn-auth"), ]
23.272727
75
0.726563
17c7c07ed38ef46d12c2a66410e0044affaa5b1b
679
py
Python
ryu/__init__.py
horms/ryu
8728c11e1280b9c6bd4b7a68c5d2fbe4ec5f2ad3
[ "Apache-2.0" ]
1
2018-04-19T08:04:59.000Z
2018-04-19T08:04:59.000Z
ryu/__init__.py
horms/ryu
8728c11e1280b9c6bd4b7a68c5d2fbe4ec5f2ad3
[ "Apache-2.0" ]
null
null
null
ryu/__init__.py
horms/ryu
8728c11e1280b9c6bd4b7a68c5d2fbe4ec5f2ad3
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2012 Nippon Telegraph and Telephone Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
35.736842
69
0.752577
0f5799c2dca3b402ce44977e781e00c206a8205b
15,983
py
Python
tools/validator.py
Son-Typ/selfie-1
0077b5bf1f568a6dc520a1fa20ed1fdd20935cec
[ "BSD-2-Clause" ]
1
2021-03-23T15:20:51.000Z
2021-03-23T15:20:51.000Z
tools/validator.py
Son-Typ/selfie-1
0077b5bf1f568a6dc520a1fa20ed1fdd20935cec
[ "BSD-2-Clause" ]
3
2020-10-14T15:56:44.000Z
2020-10-28T10:16:59.000Z
tools/validator.py
Son-Typ/selfie-1
0077b5bf1f568a6dc520a1fa20ed1fdd20935cec
[ "BSD-2-Clause" ]
1
2021-11-04T12:19:31.000Z
2021-11-04T12:19:31.000Z
#!/usr/bin/env python3 # #################### INFO ########################################################### # This program is written as part of Christoph Siller's bachelor thesis. # Validator is an automated checker for error inputs of C* code. # It contains a parser for Boolectors witness format. # A C* file is t...
34.078891
129
0.553463
59b4279a9776c160c710ec4303fcbbe05a556610
885
py
Python
Mundo #03/ex-078-a017-maior-menor-listas.py
freitasSystemOutPrint/Python3
e5e88fbe8e7e0c5472573d2c901844270385194b
[ "MIT" ]
1
2020-06-02T07:31:16.000Z
2020-06-02T07:31:16.000Z
Mundo #03/ex-078-a017-maior-menor-listas.py
freitasSystemOutPrint/Python3
e5e88fbe8e7e0c5472573d2c901844270385194b
[ "MIT" ]
null
null
null
Mundo #03/ex-078-a017-maior-menor-listas.py
freitasSystemOutPrint/Python3
e5e88fbe8e7e0c5472573d2c901844270385194b
[ "MIT" ]
null
null
null
listanum = [] maior = 0 menor = 0 for c in range(0,5): listanum.append(int(input(f'Digite um valor para a posicao {c}'))) if c == 0: mai = men = listanum[c] else: if listanum[c] > mai: mai = listanum[c] if listanum[c] < men: men = listanum[c] print('=-' *30) p...
27.65625
70
0.59548
5098c3812873b892820678d441adc0eaf920b13a
2,447
py
Python
validate_hostname_test_vectors.py
jakeogh/validate-hostname
d0ed079a6a0aa8a1acdb1064c23bcb3d87575e77
[ "MIT" ]
2
2020-09-09T12:48:21.000Z
2020-10-30T17:14:27.000Z
validate_hostname_test_vectors.py
jakeogh/hostname-validate
d0ed079a6a0aa8a1acdb1064c23bcb3d87575e77
[ "MIT" ]
null
null
null
validate_hostname_test_vectors.py
jakeogh/hostname-validate
d0ed079a6a0aa8a1acdb1064c23bcb3d87575e77
[ "MIT" ]
1
2022-03-21T02:07:39.000Z
2022-03-21T02:07:39.000Z
#!/usr/bin/env python3 def get_test_vectors(): test_vectors = [] # valid names that pass test_vectors.append(('lwn.net', True, "standard domain")) test_vectors.append(('lwn.net.', True, "standard domain with trailing dot")) test_vectors.append(('l-w-n.n-e-t', True, "valid use of dashes")) test...
54.377778
128
0.628525
b79a342698a3fbcf55ef2a274af5087722094b99
315
py
Python
tpDcc/tools/renamer/dccs/unreal/server.py
tpRigToolkit/tpRigToolkit-tools-renamer
62b7f1b569406c710a5ffc56a7e70d27d2df4b42
[ "MIT" ]
3
2020-04-22T21:54:33.000Z
2020-10-16T20:02:45.000Z
tpDcc/tools/renamer/dccs/unreal/server.py
tpRigToolkit/tpRigToolkit-tools-renamer
62b7f1b569406c710a5ffc56a7e70d27d2df4b42
[ "MIT" ]
1
2019-07-08T19:07:38.000Z
2019-07-08T19:07:38.000Z
tpDcc/tools/renamer/dccs/unreal/server.py
tpRigToolkit/tpRigToolkit-tools-renamer
62b7f1b569406c710a5ffc56a7e70d27d2df4b42
[ "MIT" ]
1
2018-11-12T16:09:40.000Z
2018-11-12T16:09:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains tpDcc-tools-renamer server implementation for 3ds Max """ from __future__ import print_function, division, absolute_import from tpDcc import dcc from tpDcc.core import server class RenamerServer(server.DccServer, object): PORT = 16231
19.6875
74
0.752381
8cbfa4a681ab68d2cdad52fe0fd3811204d8d339
34,686
py
Python
sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_configurations_operations.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_configurations_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_configurations_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
46.186418
320
0.672577
30628bef879644b898c1b144ef1b13444086ff30
3,138
py
Python
plots_lib/runtime_plots.py
cmimprota/ASL-SIFT
e6e489e9cc06746e2ab8cd11193fc9fc0112e5df
[ "Zlib" ]
1
2021-12-30T14:59:43.000Z
2021-12-30T14:59:43.000Z
plots_lib/runtime_plots.py
cmimprota/ASL-SIFT
e6e489e9cc06746e2ab8cd11193fc9fc0112e5df
[ "Zlib" ]
null
null
null
plots_lib/runtime_plots.py
cmimprota/ASL-SIFT
e6e489e9cc06746e2ab8cd11193fc9fc0112e5df
[ "Zlib" ]
1
2021-04-12T11:13:32.000Z
2021-04-12T11:13:32.000Z
import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import math from read_logs import get_resolutions_in_pixels, get_resolutions_in_labels from architecture_config import config as arch_conf class RuntimePlot: def __init__(self, y_max, meas_method): self.title = "Runtime " ...
38.740741
177
0.636711
22a63d880144b415beb9e781efae0a99c5e764cc
3,608
py
Python
huaweicloud-sdk-live/huaweicloudsdklive/v2/model/transcode_spec.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-live/huaweicloudsdklive/v2/model/transcode_spec.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-live/huaweicloudsdklive/v2/model/transcode_spec.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six class TranscodeSpec: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is j...
26.144928
187
0.540743
b3c7dcb07066a72e28b0a5f54cd40eee76487930
2,818
py
Python
marcador/views.py
jpirates1/Django_dev_pro
996f0a3fa24f7934cdda2a13eb00a047d4df037a
[ "Apache-2.0" ]
null
null
null
marcador/views.py
jpirates1/Django_dev_pro
996f0a3fa24f7934cdda2a13eb00a047d4df037a
[ "Apache-2.0" ]
null
null
null
marcador/views.py
jpirates1/Django_dev_pro
996f0a3fa24f7934cdda2a13eb00a047d4df037a
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.core.exceptions import PermissionDenied from django.shortcuts import get_object_or_404, redirect, render from .forms import BookmarkForm from .models import Bookmark def bookmark_list(request): bookm...
35.670886
72
0.675656
946e2a6af64d83e5427d33ba23309f8f7f8a112a
785
py
Python
cat_face_detection.py
jitendrasb24/Face-Detection-OpenCV
518aa4d5e2f31733ebe534d26d459b8987dcb3ec
[ "MIT" ]
1
2021-07-30T21:58:24.000Z
2021-07-30T21:58:24.000Z
cat_face_detection.py
jitendrasb24/Face-Recognitation-OpenCV
518aa4d5e2f31733ebe534d26d459b8987dcb3ec
[ "MIT" ]
null
null
null
cat_face_detection.py
jitendrasb24/Face-Recognitation-OpenCV
518aa4d5e2f31733ebe534d26d459b8987dcb3ec
[ "MIT" ]
1
2021-09-02T15:27:18.000Z
2021-09-02T15:27:18.000Z
# Importing Libraries import cv2 import sys # Declaring path of image file imagePath = 'Input_cats_Image.jpg' # Reading image from image path image = cv2.imread(imagePath) # Using prebuilt XML Classifiers faceCascade = cv2.CascadeClassifier('haarcascade_frontal_cat_face.xml') # Converting image to gray...
25.322581
73
0.704459
31469cd693e6b38764c9f32251c5d7332f5ec0c6
1,515
py
Python
SARSAMountainCar/sarsa.py
lucaslehnert/sarsa-mountaincar
1b1545aa78ccfa1c900ced6d3b5302cff3f09519
[ "MIT" ]
null
null
null
SARSAMountainCar/sarsa.py
lucaslehnert/sarsa-mountaincar
1b1545aa78ccfa1c900ced6d3b5302cff3f09519
[ "MIT" ]
null
null
null
SARSAMountainCar/sarsa.py
lucaslehnert/sarsa-mountaincar
1b1545aa78ccfa1c900ced6d3b5302cff3f09519
[ "MIT" ]
null
null
null
''' Created on Apr 2, 2016 @author: Lucas Lehnert (lucas.lehnert@mail.mcgill.ca) ''' import numpy as np class SARSA( object ): def __init__( self, alpha, traceLambda, pi, phi, initTheta, actionSpace, gamma ): self.__alpha = alpha self.__lambda = traceLambda self.__pi = pi self.__p...
32.934783
104
0.619802
f1b2ae46dd18e9c262c04c0d695760f8b3ea00dc
13,104
py
Python
world.py
sahilbhatia17/batch-active-preference-based-learning
f6b7734942f80d0ec39eda57352263e2f11fa180
[ "MIT" ]
21
2018-09-30T07:09:57.000Z
2022-01-13T11:07:08.000Z
world.py
sahilbhatia17/batch-active-preference-based-learning
f6b7734942f80d0ec39eda57352263e2f11fa180
[ "MIT" ]
1
2019-05-22T15:31:18.000Z
2019-05-22T15:37:07.000Z
world.py
sahilbhatia17/batch-active-preference-based-learning
f6b7734942f80d0ec39eda57352263e2f11fa180
[ "MIT" ]
7
2019-03-19T07:52:22.000Z
2021-03-30T22:06:14.000Z
import lane import car import math import feature import dynamics import visualize import utils_driving as utils import sys import theano as th import theano.tensor as tt import numpy as np import shelve th.config.optimizer_verbose = False th.config.allow_gc = False th.config.optimizer = 'fast_compile' class Object(o...
42.135048
189
0.594704
ca768fd785fdea2af528869699cca9cf36a24491
270
py
Python
apps/documents/urls.py
dnetochaves/repense_rh
ba549bdadc90c088f258d9d640bd59fd696bb705
[ "MIT" ]
null
null
null
apps/documents/urls.py
dnetochaves/repense_rh
ba549bdadc90c088f258d9d640bd59fd696bb705
[ "MIT" ]
3
2021-01-22T06:05:42.000Z
2021-02-16T10:06:36.000Z
apps/documents/urls.py
dnetochaves/repense_rh
ba549bdadc90c088f258d9d640bd59fd696bb705
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = "documents" urlpatterns = [ path('document-create/', views.DocumentCreate.as_view(), name='document-create'), path('document-list/', views.DocumentList.as_view(), name='document-list'), ]
22.5
80
0.685185
c929a7c0b791dc00e164a5c2426ff0b35b246a70
2,450
py
Python
Algorithme/01.14DaysToCrackAlgo/Day2/SquareSortedArray.py
pengfei99/python_leetcode
2cb76a4e6a51877c261d26c30f20286b3934a65e
[ "MIT" ]
null
null
null
Algorithme/01.14DaysToCrackAlgo/Day2/SquareSortedArray.py
pengfei99/python_leetcode
2cb76a4e6a51877c261d26c30f20286b3934a65e
[ "MIT" ]
null
null
null
Algorithme/01.14DaysToCrackAlgo/Day2/SquareSortedArray.py
pengfei99/python_leetcode
2cb76a4e6a51877c261d26c30f20286b3934a65e
[ "MIT" ]
null
null
null
""" Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order. Example 1: Input: nums = [-4,-1,0,3,10] Output: [0,1,9,16,100] Explanation: After squaring, the array becomes [16,1,0,9,100]. After sorting, it becomes [0,1,9,16,100]. Example...
25.789474
137
0.582857
236fa743794e1943587bb66130a8aa6cd7a4df5d
866
py
Python
generate_parentheses.py
jaebradley/leetcode.py
64634cc7d0e975ddd163f35acb18cc92960b8eb5
[ "MIT" ]
null
null
null
generate_parentheses.py
jaebradley/leetcode.py
64634cc7d0e975ddd163f35acb18cc92960b8eb5
[ "MIT" ]
2
2019-11-13T19:55:49.000Z
2019-11-13T19:55:57.000Z
generate_parentheses.py
jaebradley/leetcode.py
64634cc7d0e975ddd163f35acb18cc92960b8eb5
[ "MIT" ]
null
null
null
""" https://leetcode.com/problems/generate-parentheses/ Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: [ "((()))", "(()())", "(())()", "()(())", "()()()" ] """ class Solution(object): def generatePar...
22.205128
103
0.562356
5eb2ac4f1d79c3749220e549252785f2fc6d57d0
1,729
py
Python
saleor/order/forms.py
jdruiter/saleor
9393ac20bd3e82c8ec1f17f6e47e3d7379f20419
[ "BSD-3-Clause" ]
null
null
null
saleor/order/forms.py
jdruiter/saleor
9393ac20bd3e82c8ec1f17f6e47e3d7379f20419
[ "BSD-3-Clause" ]
1
2022-02-10T14:46:00.000Z
2022-02-10T14:46:00.000Z
saleor/order/forms.py
jdruiter/saleor
9393ac20bd3e82c8ec1f17f6e47e3d7379f20419
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django import forms from django.conf import settings from django.utils.translation import pgettext_lazy from payments import PaymentStatus from .models import Payment from ..registration.forms import SignupForm class PaymentMethodsForm(forms.Form): method = forms.Cho...
33.25
76
0.6738
5033118dd105f7d641d34c89238b867df639c9ef
1,677
py
Python
ver1_0/openassembly/pirate_flags/models.py
fragro/Open-Assembly
e9679ff5e7ae9881fa5781d763288ed2f40b014d
[ "BSD-3-Clause" ]
1
2015-11-05T08:22:19.000Z
2015-11-05T08:22:19.000Z
ver1_0/openassembly/pirate_flags/models.py
fragro/Open-Assembly
e9679ff5e7ae9881fa5781d763288ed2f40b014d
[ "BSD-3-Clause" ]
null
null
null
ver1_0/openassembly/pirate_flags/models.py
fragro/Open-Assembly
e9679ff5e7ae9881fa5781d763288ed2f40b014d
[ "BSD-3-Clause" ]
1
2018-02-03T18:25:41.000Z
2018-02-03T18:25:41.000Z
from django.db import models from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes import generic import datetime import django.dispatch from django.contrib import admin from django.utils.translation import ugettext as _ from django.contrib.auth.models import User from pirate_signa...
37.266667
93
0.717352
d929ea9ace992e5f092b79cafae28753db2ee751
5,827
py
Python
examples/oauth/config.py
mikitex70/Flask-AppBuilder
42217923a13db1e053e79f90d6dfbfaa40da856d
[ "BSD-3-Clause" ]
null
null
null
examples/oauth/config.py
mikitex70/Flask-AppBuilder
42217923a13db1e053e79f90d6dfbfaa40da856d
[ "BSD-3-Clause" ]
null
null
null
examples/oauth/config.py
mikitex70/Flask-AppBuilder
42217923a13db1e053e79f90d6dfbfaa40da856d
[ "BSD-3-Clause" ]
null
null
null
import os from flask_appbuilder.security.manager import ( AUTH_OID, AUTH_REMOTE_USER, AUTH_DB, AUTH_LDAP, AUTH_OAUTH, ) basedir = os.path.abspath(os.path.dirname(__file__)) # Your App secret key SECRET_KEY = "\2\1thisismyscretkey\1\2\e\y\y\h" # The SQLAlchemy connection string. SQLALCHEMY_DATABAS...
36.192547
124
0.608546
5c6a298fc192e551d2b93a0825d3a08775dd2747
7,754
py
Python
lisp.py
dastels/ulisp-swank
aa9397d7af0e00ed73d58393a2e71f8eb8268c8c
[ "MIT" ]
5
2020-01-12T03:24:47.000Z
2021-06-27T17:24:24.000Z
lisp.py
dastels/ulisp-swank
aa9397d7af0e00ed73d58393a2e71f8eb8268c8c
[ "MIT" ]
1
2019-12-26T19:43:39.000Z
2019-12-26T19:43:39.000Z
lisp.py
dastels/ulisp-swank
aa9397d7af0e00ed73d58393a2e71f8eb8268c8c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import re __all__ = ['BOOL_PATTERN', 'NUMBER_PATTERN', 'cons', 'lbool', 'llist', 'lstring', 'quoted', 'symbol', 'DOT_OPERATOR', 'LispReader', 'LispWritter', 'read_lisp', 'write_lisp'] BOOL_PATTERN = re.compile(r"^('?t|'?nil)\b") NUMBER_PATTERN = re.compile...
28.825279
79
0.536239
f79516b4badd8e476171aaf3e2c52cd54545384f
9,265
py
Python
docs/conf.py
fmaussion/acinn_litsem
de9eccbda1eb09a1cef4c258c499873a7153d5db
[ "MIT" ]
null
null
null
docs/conf.py
fmaussion/acinn_litsem
de9eccbda1eb09a1cef4c258c499873a7153d5db
[ "MIT" ]
null
null
null
docs/conf.py
fmaussion/acinn_litsem
de9eccbda1eb09a1cef4c258c499873a7153d5db
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # acinn_litsem documentation build configuration file, created by # sphinx-quickstart on Sun Mar 6 00:28:19 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this...
32.170139
79
0.717971
e09bc0657ee3c66bbdd5d0e9036bd23a2315fad4
1,205
py
Python
Bot.py
EnzoBeth/debo
da26c1aaa2c16cf90a01ba06f16322e31c0d08d6
[ "MIT" ]
1
2021-04-18T11:11:53.000Z
2021-04-18T11:11:53.000Z
Bot.py
EnzoBeth/debo
da26c1aaa2c16cf90a01ba06f16322e31c0d08d6
[ "MIT" ]
null
null
null
Bot.py
EnzoBeth/debo
da26c1aaa2c16cf90a01ba06f16322e31c0d08d6
[ "MIT" ]
null
null
null
# WARNING : I Don't recommend you to touch that part of the code, only edit if you know what you are doing # You can easily break the bot by touching an setting import discord from discord.ext import commands import settings intents = discord.Intents.default() # Cogs list cogs: list = ["Functions.Fun.game...
35.441176
120
0.687137
e1190f7e24a27829dcece45d47510241ab708b0c
2,015
py
Python
stable/_downloads/b8b640ac53613fd2e6736012370c214c/plot_meg_sensors.py
drammock/mne-tools.github.io
5d3a104d174255644d8d5335f58036e32695e85d
[ "BSD-3-Clause" ]
1
2020-11-05T21:30:15.000Z
2020-11-05T21:30:15.000Z
stable/_downloads/b8b640ac53613fd2e6736012370c214c/plot_meg_sensors.py
drammock/mne-tools.github.io
5d3a104d174255644d8d5335f58036e32695e85d
[ "BSD-3-Clause" ]
4
2016-06-04T15:28:08.000Z
2016-12-22T14:23:13.000Z
stable/_downloads/b8b640ac53613fd2e6736012370c214c/plot_meg_sensors.py
drammock/mne-tools.github.io
5d3a104d174255644d8d5335f58036e32695e85d
[ "BSD-3-Clause" ]
1
2020-01-07T03:16:59.000Z
2020-01-07T03:16:59.000Z
""" ====================================== Plotting sensor layouts of MEG systems ====================================== Show sensor layouts of different MEG systems. """ # Author: Eric Larson <larson.eric.d@gmail.com> # # License: BSD (3-clause) import os.path as op from mayavi import mlab import mne from mne.io i...
35.350877
73
0.622829
ccd1709e3f79985f9daf110bf282b5dd7d7ab4ce
4,681
py
Python
service/stack-transformer/amr_pb2.py
lifengjin/transition-amr-parser
ec1f854fda520de97fc4e4c5f5e03133aab0560f
[ "Apache-2.0" ]
1
2021-07-08T08:24:21.000Z
2021-07-08T08:24:21.000Z
service/stack-transformer/amr_pb2.py
lifengjin/transition-amr-parser
ec1f854fda520de97fc4e4c5f5e03133aab0560f
[ "Apache-2.0" ]
null
null
null
service/stack-transformer/amr_pb2.py
lifengjin/transition-amr-parser
ec1f854fda520de97fc4e4c5f5e03133aab0560f
[ "Apache-2.0" ]
1
2021-07-08T08:24:22.000Z
2021-07-08T08:24:22.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: amr.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_datab...
27.215116
320
0.739372
fad0dcefbb53b77a31c9fdde51043f2c0cb280e1
3,374
py
Python
setup_mnist.py
luh0907/nn_breaking_detection
6e810a5296bea3c6ef975b4e62caa2d94e992b81
[ "BSD-2-Clause" ]
77
2017-11-05T01:02:57.000Z
2022-01-31T06:54:44.000Z
setup_mnist.py
luh0907/nn_breaking_detection
6e810a5296bea3c6ef975b4e62caa2d94e992b81
[ "BSD-2-Clause" ]
1
2017-11-15T08:53:02.000Z
2017-11-15T08:53:02.000Z
setup_mnist.py
luh0907/nn_breaking_detection
6e810a5296bea3c6ef975b4e62caa2d94e992b81
[ "BSD-2-Clause" ]
26
2017-11-02T02:05:39.000Z
2021-11-03T08:24:07.000Z
## setup_mnist.py -- code to set up the MNIST dataset ## ## Copyright (C) 2017, Nicholas Carlini <nicholas@carlini.com>. ## ## This program is licenced under the BSD 2-Clause licence, ## contained in the LICENCE file in this directory. import tensorflow as tf import numpy as np import os import pickle import gzip impo...
35.145833
100
0.612922
fc0bc653227ee80fd97da9ff989290ce0d861398
1,481
py
Python
examples/python/jhd1313m1-lcd.py
whpenner/upm
3168c61d8613da62ecc7598517a1decf533d5fe7
[ "MIT" ]
1
2017-09-22T01:41:30.000Z
2017-09-22T01:41:30.000Z
bsp/intel/peripheral/libupm/examples/python/rgb-lcd.py
Keneral/ahardware
9a8a025f7c9471444c9e271bbe7f48182741d710
[ "Unlicense" ]
null
null
null
bsp/intel/peripheral/libupm/examples/python/rgb-lcd.py
Keneral/ahardware
9a8a025f7c9471444c9e271bbe7f48182741d710
[ "Unlicense" ]
1
2018-02-24T19:09:04.000Z
2018-02-24T19:09:04.000Z
#!/usr/bin/python # Author: Brendan Le Foll <brendan.le.foll@intel.com> # Copyright (c) 2014 Intel Corporation. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, includin...
37.974359
72
0.765699
50ec5417043b24181448bf9f79d762a9c9fdbf8b
5,393
py
Python
game.py
AdrienCos/royal_game_of_ur
4e95135954280a61726e257a2eb935a855d5df6d
[ "MIT" ]
null
null
null
game.py
AdrienCos/royal_game_of_ur
4e95135954280a61726e257a2eb935a855d5df6d
[ "MIT" ]
null
null
null
game.py
AdrienCos/royal_game_of_ur
4e95135954280a61726e257a2eb935a855d5df6d
[ "MIT" ]
null
null
null
import pygame, time from pygame.locals import * from random import randint from dice import * from board import * from player import * from constants import * class App: def __init__(self): self._running = True self._display_surf = None self.size = self.width, self.height = WINWIDTH, WINHE...
40.548872
109
0.543853
fbbade2cac3de094dfbcc1f7c7a10a8d2e3c2ba2
338
py
Python
tests/internal_bench/arrayop-3-bytearray_inplace.py
sebastien-riou/micropython
116c15842fd48ddb77b0bc016341d936a0756573
[ "MIT" ]
13,648
2015-01-01T01:34:51.000Z
2022-03-31T16:19:53.000Z
tests/internal_bench/arrayop-3-bytearray_inplace.py
sebastien-riou/micropython
116c15842fd48ddb77b0bc016341d936a0756573
[ "MIT" ]
7,092
2015-01-01T07:59:11.000Z
2022-03-31T23:52:18.000Z
tests/internal_bench/arrayop-3-bytearray_inplace.py
sebastien-riou/micropython
116c15842fd48ddb77b0bc016341d936a0756573
[ "MIT" ]
4,942
2015-01-02T11:48:50.000Z
2022-03-31T19:57:10.000Z
# Array operation # Type: bytearray, inplace operation using for. What's good about this # method is that it doesn't require any extra memory allocation. import bench def test(num): for i in iter(range(num // 10000)): arr = bytearray(b"\0" * 1000) for i in range(len(arr)): arr[i] += 1 ...
22.533333
70
0.639053
c2d99967a4b4e4bdc3d0191174a859b27cecc05b
47,182
py
Python
tests/test_core.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
tests/test_core.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/test_core.py
andersop91/core
0e0ef0aa17073609eae7c974cf4c73306b7c414b
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""Test to verify that Home Assistant core works.""" # pylint: disable=protected-access import asyncio from datetime import datetime, timedelta import functools import logging import os from tempfile import TemporaryDirectory from unittest.mock import MagicMock, Mock, PropertyMock, patch import pytest import voluptuou...
29.415212
106
0.670128
0c9219983a4038376a8e0bbdea99e9f0ef64c7f1
8,687
py
Python
nova/tests/unit/compute/test_stats.py
nicholaskuechler/nova
ff412c3888b234eb123161cc4e6d0d0d69c0004e
[ "Apache-2.0" ]
4
2015-04-13T14:52:41.000Z
2018-02-03T19:32:13.000Z
nova/tests/unit/compute/test_stats.py
nicholaskuechler/nova
ff412c3888b234eb123161cc4e6d0d0d69c0004e
[ "Apache-2.0" ]
5
2016-07-11T20:59:47.000Z
2020-07-28T09:56:35.000Z
nova/tests/unit/compute/test_stats.py
nicholaskuechler/nova
ff412c3888b234eb123161cc4e6d0d0d69c0004e
[ "Apache-2.0" ]
3
2018-01-29T00:44:44.000Z
2020-07-24T01:19:20.000Z
# Copyright (c) 2012 OpenStack Foundation # 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 ...
38.268722
79
0.649822
15fbdcc0e9bd0ddcf578e66f43a9ebbfad802d6d
1,618
py
Python
AtC_Beg_Con_161-170/ABC169/F.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
AtC_Beg_Con_161-170/ABC169/F.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
AtC_Beg_Con_161-170/ABC169/F.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
import math, string, itertools, fractions, heapq, collections, re, array, bisect, copy, functools, random import sys from collections import deque, defaultdict, Counter; from heapq import heappush, heappop from itertools import permutations, combinations, product, accumulate, groupby from bisect import bisect_left, bis...
50.5625
124
0.600124
f21b1ab1b6b4f01192eef5d2630b5ec99d3f12fb
2,594
py
Python
controllers/message.py
metaa/Pushjet-Server-Api
daa5010a3fa30ccaaf5486106ca273b61c90a00a
[ "BSD-2-Clause" ]
null
null
null
controllers/message.py
metaa/Pushjet-Server-Api
daa5010a3fa30ccaaf5486106ca273b61c90a00a
[ "BSD-2-Clause" ]
null
null
null
controllers/message.py
metaa/Pushjet-Server-Api
daa5010a3fa30ccaaf5486106ca273b61c90a00a
[ "BSD-2-Clause" ]
1
2018-09-13T00:10:03.000Z
2018-09-13T00:10:03.000Z
from flask import Blueprint, jsonify, request from flask import current_app from utils import Error, has_uuid, has_secret, queue_zmq_message from shared import db from models import Subscription, Message, Gcm, Apns from datetime import datetime from config import zeromq_relay_uri, google_api_key, apns_cert_path from j...
30.162791
72
0.672706
8684fb57e1238ce0b856fd985484dc851631bfec
3,770
py
Python
travis_pypi_setup.py
ryananguiano/aioredis-timeseries
97ae0709df97df90fad76ffa9dd0c0fef3f8f92e
[ "MIT" ]
1
2021-03-03T18:47:56.000Z
2021-03-03T18:47:56.000Z
travis_pypi_setup.py
ryananguiano/aioredis-timeseries
97ae0709df97df90fad76ffa9dd0c0fef3f8f92e
[ "MIT" ]
null
null
null
travis_pypi_setup.py
ryananguiano/aioredis-timeseries
97ae0709df97df90fad76ffa9dd0c0fef3f8f92e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Update encrypted deploy password in Travis config file """ from __future__ import print_function import base64 import json import os from getpass import getpass import yaml from cryptography.hazmat.primitives.serialization import load_pem_public_key from cryptography.h...
30.650407
79
0.701326
6610dff909c8f386466a5dc9b96fc5ebfac2240a
767
py
Python
FilterOptions.py
Vehicom0607/OptionsScanner
2cf720edb1a32f8f9d682549ad777870ed9d3983
[ "MIT" ]
1
2020-12-18T13:15:48.000Z
2020-12-18T13:15:48.000Z
FilterOptions.py
Vehicom0607/OptionsScanner
2cf720edb1a32f8f9d682549ad777870ed9d3983
[ "MIT" ]
null
null
null
FilterOptions.py
Vehicom0607/OptionsScanner
2cf720edb1a32f8f9d682549ad777870ed9d3983
[ "MIT" ]
null
null
null
def filterOptions(options, ROI): from tqdm import tqdm from operator import itemgetter filtered_options = [] progress_bar = tqdm(total=len(options), disable=False) for option in options: progress_bar.update(1) # If expired if option[0]['delta'] == "NaN": continue ...
31.958333
61
0.57236
b492d756460f88dd168c02ad56306dc566540050
1,976
py
Python
lib/#bin/untitled14.py
dalbertweiss/DataPreprocessing
84d4cc73f8c34801ec68203a1be69bdb5cfcba3e
[ "MIT" ]
null
null
null
lib/#bin/untitled14.py
dalbertweiss/DataPreprocessing
84d4cc73f8c34801ec68203a1be69bdb5cfcba3e
[ "MIT" ]
null
null
null
lib/#bin/untitled14.py
dalbertweiss/DataPreprocessing
84d4cc73f8c34801ec68203a1be69bdb5cfcba3e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Feb 24 10:08:00 2022 @author: D.Albert-Weiss inspired by https://lbolla.info/pipelines-in-python.html """ from contextlib import contextmanager class StopPipeline(Exception): pass @contextmanager def close_on_exit(n): try: yield except Generat...
20.163265
66
0.504049
459ea062fce12011bc594034d021a4514db241c9
4,949
py
Python
src/enway_reach_rs_driver/parser.py
marceloparavisi/reach_rs_ros_driver
f0720b7125216071d86681182c1ad06d5c9dff61
[ "BSD-3-Clause" ]
15
2018-03-07T17:12:40.000Z
2022-01-05T08:17:04.000Z
src/enway_reach_rs_driver/parser.py
Greenzie/reach_rs_ros_driver
18be887a2a72ea0c74d0a3f3d857b8578700a466
[ "BSD-3-Clause" ]
4
2018-03-16T16:54:35.000Z
2022-03-30T17:54:47.000Z
src/enway_reach_rs_driver/parser.py
Greenzie/reach_rs_ros_driver
18be887a2a72ea0c74d0a3f3d857b8578700a466
[ "BSD-3-Clause" ]
25
2018-03-15T09:47:13.000Z
2022-03-31T20:25:30.000Z
# Software License Agreement (BSD License) # # Copyright (c) 2013, Eric Perko # 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 source code must retain the above copyrigh...
32.993333
84
0.674884
fed94db82fe1048565ed5b5dee0494a460925d0b
4,744
py
Python
django/contrib/auth/tests/test_basic.py
benjaoming/django
6dbe979b4d9396e1b307c7d27388c97c13beb21c
[ "BSD-3-Clause" ]
2
2015-01-21T15:45:07.000Z
2015-02-21T02:38:13.000Z
django/contrib/auth/tests/test_basic.py
HenriqueLR/django
d1ca70110f49f0be90206c8da516ac16aebc8c75
[ "BSD-3-Clause" ]
null
null
null
django/contrib/auth/tests/test_basic.py
HenriqueLR/django
d1ca70110f49f0be90206c8da516ac16aebc8c75
[ "BSD-3-Clause" ]
1
2020-05-25T08:55:19.000Z
2020-05-25T08:55:19.000Z
from __future__ import unicode_literals from django.apps import apps from django.contrib.auth import get_user_model from django.contrib.auth.models import User, AnonymousUser from django.contrib.auth.tests.custom_user import CustomUser from django.contrib.auth.tests.utils import skipIfCustomUser from django.core.excep...
39.533333
84
0.697091
05844402ef919b880b2fdc89190f226d9131e440
1,119
py
Python
Assignments/List Advanced/Exercise/08. Feed the Animals.py
KaloyankerR/python-fundamentals-repository
b8e69523ea7e6aa352e8398f0202e283374a0f7c
[ "MIT" ]
null
null
null
Assignments/List Advanced/Exercise/08. Feed the Animals.py
KaloyankerR/python-fundamentals-repository
b8e69523ea7e6aa352e8398f0202e283374a0f7c
[ "MIT" ]
null
null
null
Assignments/List Advanced/Exercise/08. Feed the Animals.py
KaloyankerR/python-fundamentals-repository
b8e69523ea7e6aa352e8398f0202e283374a0f7c
[ "MIT" ]
null
null
null
animals = {} areas = {} tokens = input() while tokens != "Last Info": tokens = tokens.split(":") cmd = tokens[0] animal = tokens[1] food = int(tokens[2]) area = tokens[3] if cmd == "Add": if animal not in animals: animals[animal] = food if area not in areas: ...
25.431818
75
0.504915
c1eca7022272c0e581b65737a20d35352d4eeeec
38,188
py
Python
mindspore/python/mindspore/ops/_op_impl/_custom_op/matmul_dds_grad_impl.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
5
2021-06-04T02:23:01.000Z
2021-12-13T10:41:07.000Z
mindspore/python/mindspore/ops/_op_impl/_custom_op/matmul_dds_grad_impl.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
null
null
null
mindspore/python/mindspore/ops/_op_impl/_custom_op/matmul_dds_grad_impl.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
1
2021-12-14T06:22:31.000Z
2021-12-14T06:22:31.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
59.206202
119
0.445925
8a003100053e5bd991d91c44da53b442228db178
1,527
py
Python
httpsig/requests_auth.py
remusao/httpsig
8712e9b026eb6053d42bc52612a3cc42380829df
[ "MIT" ]
36
2015-02-12T02:45:23.000Z
2021-03-02T21:16:11.000Z
httpsig/requests_auth.py
remusao/httpsig
8712e9b026eb6053d42bc52612a3cc42380829df
[ "MIT" ]
18
2015-01-16T15:15:11.000Z
2022-03-01T09:30:19.000Z
httpsig/requests_auth.py
remusao/httpsig
8712e9b026eb6053d42bc52612a3cc42380829df
[ "MIT" ]
18
2016-04-28T22:59:38.000Z
2021-09-27T19:15:41.000Z
import requests.auth try: # Python 3 from urllib.parse import urlparse except ImportError: # Python 2 from urlparse import urlparse from .sign import HeaderSigner class HTTPSignatureAuth(requests.auth.AuthBase): """ Sign a request using the http-signature scheme. https://github.com/joyent...
37.243902
77
0.633268
4166468dbca202ff6841ec3b8e1a3f07286c6161
15,515
py
Python
src/label_generation.py
andifunke/topic-labeling
f38ffce44fb1d661114bc53afb565ec61b61eae0
[ "Apache-2.0" ]
28
2019-02-05T23:01:32.000Z
2021-09-05T13:48:46.000Z
src/label_generation.py
andifunke/topic-labeling
f38ffce44fb1d661114bc53afb565ec61b61eae0
[ "Apache-2.0" ]
1
2022-02-11T23:26:59.000Z
2022-03-12T09:20:21.000Z
src/label_generation.py
andifunke/topic-labeling
f38ffce44fb1d661114bc53afb565ec61b61eae0
[ "Apache-2.0" ]
8
2019-08-30T02:23:50.000Z
2022-02-22T19:20:14.000Z
# coding: utf-8 import argparse import pickle import re from os.path import join, exists from time import time import pandas as pd from numpy import dot, float32 as REAL, sqrt, newaxis from gensim import matutils from gensim.models import Word2Vec, Doc2Vec from topic_reranking import METRICS from utils import init_l...
37.749392
105
0.655559
9107751cf1ed9ac6a2f21f0d31ccbc73089cd59a
3,137
py
Python
django/django_fundamentals/django_intro/SemiRestfulTvShows/SemiRestfulTvShows/settings.py
fatimaalheeh/python_stack
9ba84e6dc030a65494f105152a97f0a38aa2e4f3
[ "MIT" ]
null
null
null
django/django_fundamentals/django_intro/SemiRestfulTvShows/SemiRestfulTvShows/settings.py
fatimaalheeh/python_stack
9ba84e6dc030a65494f105152a97f0a38aa2e4f3
[ "MIT" ]
null
null
null
django/django_fundamentals/django_intro/SemiRestfulTvShows/SemiRestfulTvShows/settings.py
fatimaalheeh/python_stack
9ba84e6dc030a65494f105152a97f0a38aa2e4f3
[ "MIT" ]
null
null
null
""" Django settings for SemiRestfulTvShows project. Generated by 'django-admin startproject' using Django 2.2.4. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ i...
25.713115
91
0.699076
5a16a180fda5bbfd71a07b79d7e87eb8cc2b16f6
386
py
Python
teamcat_service/docker_build/target/one_step_build/teamcat/gatesidelib/unittest/simpleloggertest.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
6
2018-11-26T08:42:52.000Z
2020-06-01T08:33:48.000Z
teamcat_service/docker_build/target/one_step_build/teamcat/gatesidelib/unittest/simpleloggertest.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
null
null
null
teamcat_service/docker_build/target/one_step_build/teamcat/gatesidelib/unittest/simpleloggertest.py
zhangyin2088/Teamcat
be9be8d7c1e58c8d2d22ab78d25783d9aee4de71
[ "Apache-2.0" ]
1
2019-01-22T06:45:36.000Z
2019-01-22T06:45:36.000Z
#coding=utf-8 ''' Created on 2014-11-27 @author: Devuser ''' import unittest from gatesidelib.common.simplelogger import SimpleLogger class Test(unittest.TestCase): def testName(self): SimpleLogger.logger.error("fsdfsadfsdafsadfsadfdsa"); if __name__ == "__main__": #import sys;sys.argv =...
17.545455
61
0.686528
3257cbcd954b4b6466163408b0b6dbfb77cd9f53
1,021
py
Python
lpot/experimental/data/filters/__init__.py
intelkevinputnam/lpot-docs
1ff32b4d89074a6bd133ba531f7c0cea3b73152f
[ "Apache-2.0" ]
172
2021-09-14T18:34:17.000Z
2022-03-30T06:49:53.000Z
lpot/experimental/data/filters/__init__.py
intelkevinputnam/lpot-docs
1ff32b4d89074a6bd133ba531f7c0cea3b73152f
[ "Apache-2.0" ]
40
2021-09-14T02:26:12.000Z
2022-03-29T08:34:04.000Z
lpot/experimental/data/filters/__init__.py
intelkevinputnam/lpot-docs
1ff32b4d89074a6bd133ba531f7c0cea3b73152f
[ "Apache-2.0" ]
33
2021-09-15T07:27:25.000Z
2022-03-25T08:30:57.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2021 Intel Corporation # # 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 # # Unl...
34.033333
78
0.726738
5b9cb6a7a74366230d63177d3a591511537b5a6d
7,119
py
Python
code_alex/helpers/alex.py
alexmill/covid19demographics-fall
b53708883a0c091f7e4eaef3d270153d88fe11f9
[ "MIT" ]
null
null
null
code_alex/helpers/alex.py
alexmill/covid19demographics-fall
b53708883a0c091f7e4eaef3d270153d88fe11f9
[ "MIT" ]
null
null
null
code_alex/helpers/alex.py
alexmill/covid19demographics-fall
b53708883a0c091f7e4eaef3d270153d88fe11f9
[ "MIT" ]
2
2020-09-24T01:01:11.000Z
2020-10-06T19:17:43.000Z
from pathlib import Path import os, sys import requests as requests rq = requests import base64 import hashlib import datetime from bs4 import BeautifulSoup import dateutil.parser as dparser import json import pandas as pd import numpy as np import re import hjson #import html5lib import io import time project_root =...
35.954545
121
0.585897
94218d08e8e8470609ce78c3a40ff026715d3462
4,407
py
Python
test/test_session.py
5G-Center-Chinatelecom/vpp
63aafbbc2b2de65bf2839d59ca3a715df2e4a03f
[ "Apache-2.0" ]
44
2018-12-10T09:43:46.000Z
2022-03-18T13:30:10.000Z
test/test_session.py
5G-Center-Chinatelecom/vpp
63aafbbc2b2de65bf2839d59ca3a715df2e4a03f
[ "Apache-2.0" ]
63
2018-06-11T09:48:35.000Z
2021-01-05T09:11:03.000Z
test/test_session.py
5G-Center-Chinatelecom/vpp
63aafbbc2b2de65bf2839d59ca3a715df2e4a03f
[ "Apache-2.0" ]
30
2018-03-15T09:56:48.000Z
2021-07-13T01:58:00.000Z
#!/usr/bin/env python3 import unittest from framework import VppTestCase, VppTestRunner from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath class TestSession(VppTestCase): """ Session Test Case """ @classmethod def setUpClass(cls): super(TestSession, cls).setUpClass() @classmetho...
29.979592
75
0.582709
59597b5b2773d09916563e6da988d4fe4436908f
16,883
py
Python
fake_news/models/Heuristic/fftmaxPrepared23.py
monthie/cogmods
62af4b8bf2effb77f26a8877d6a89949164d83f0
[ "MIT" ]
null
null
null
fake_news/models/Heuristic/fftmaxPrepared23.py
monthie/cogmods
62af4b8bf2effb77f26a8877d6a89949164d83f0
[ "MIT" ]
11
2020-05-04T09:05:29.000Z
2021-04-08T13:22:34.000Z
fake_news/models/Heuristic/fftmaxPrepared23.py
monthie/cogmods
62af4b8bf2effb77f26a8877d6a89949164d83f0
[ "MIT" ]
12
2020-05-02T09:36:14.000Z
2021-06-22T08:10:45.000Z
#adjust import structure if started as script import os import sys PACKAGE_PARENT = '..' SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__)))) sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT))) """ News Item Processing model implementation. "...
66.996032
5,755
0.610614
a173bb3cc5f738959784e5f063f1ac268a09177b
2,471
py
Python
src/QueryHandler.py
tsjamm/WikiSearchMachine
0b023b9d7e6a4e1bf518d32ee38c029a21260c67
[ "X11", "MIT" ]
6
2015-06-15T14:56:37.000Z
2021-02-13T05:18:42.000Z
src/QueryHandler.py
tsjamm/WikiSearchMachine
0b023b9d7e6a4e1bf518d32ee38c029a21260c67
[ "X11", "MIT" ]
null
null
null
src/QueryHandler.py
tsjamm/WikiSearchMachine
0b023b9d7e6a4e1bf518d32ee38c029a21260c67
[ "X11", "MIT" ]
2
2017-10-18T06:44:08.000Z
2019-08-26T10:58:27.000Z
#!/usr/bin/python #coding: utf8 # Author: Sai Teja Jammalamadaka # PGSSP Student : IIIT-Hyderabad # Roll: 201350905 # Written for the Spring Semester 2015 IRE Course from sys import argv import TokenStemmer #script, infile, outfile = argv def parseQuery(queryString): tokensObject = {} tokensObject["type"] =...
37.439394
54
0.554027
7f59dc1cd7f8e1e741e1b3cd5d867c693c9559c9
5,705
py
Python
mdm/models.py
lordoftheflies/gargantula-scrapersite
0abcb82bf30540ac5cd57d5ec9178e692a1a2ca6
[ "Apache-2.0" ]
null
null
null
mdm/models.py
lordoftheflies/gargantula-scrapersite
0abcb82bf30540ac5cd57d5ec9178e692a1a2ca6
[ "Apache-2.0" ]
null
null
null
mdm/models.py
lordoftheflies/gargantula-scrapersite
0abcb82bf30540ac5cd57d5ec9178e692a1a2ca6
[ "Apache-2.0" ]
null
null
null
from django.db import models from django_pandas.managers import DataFrameManager from django.utils.translation import gettext as _ class AirportModel(models.Model): objects = DataFrameManager() code = models.CharField(max_length=3, unique=True) display_name = models.CharField(max_length=200, default=Non...
30.508021
92
0.673795
bcbfacd1726b363f94d94e75d0c943478d5c43ec
7,061
py
Python
data_generator.py
bleepbop/ESPN-9CAT-Analyzer
be4c04d1f80e741223ab81e335b357b4e8d19084
[ "MIT" ]
null
null
null
data_generator.py
bleepbop/ESPN-9CAT-Analyzer
be4c04d1f80e741223ab81e335b357b4e8d19084
[ "MIT" ]
null
null
null
data_generator.py
bleepbop/ESPN-9CAT-Analyzer
be4c04d1f80e741223ab81e335b357b4e8d19084
[ "MIT" ]
null
null
null
from nba_api.stats.endpoints import LeagueDashPlayerStats from nba_api.stats.static import players from espn_api.basketball import League from pandas import DataFrame import numpy import json import pandas as pd import math CATEGORIES = ['PTS', 'FGM', 'FGA', 'FTM', 'FTA', 'REB', 'AST', 'STL', 'BLK', 'TOV', 'FG_PCT',...
47.073333
189
0.632205
8fc43d8e99ad5a1b589fc694d0b04cfa5c3956ab
1,616
py
Python
cloudmesh/common/ssh/encrypt.py
jebeckford/cloudmesh-common
baccdc56a5e1258a4cf4b50503ccc9240f00de3c
[ "Apache-2.0" ]
null
null
null
cloudmesh/common/ssh/encrypt.py
jebeckford/cloudmesh-common
baccdc56a5e1258a4cf4b50503ccc9240f00de3c
[ "Apache-2.0" ]
null
null
null
cloudmesh/common/ssh/encrypt.py
jebeckford/cloudmesh-common
baccdc56a5e1258a4cf4b50503ccc9240f00de3c
[ "Apache-2.0" ]
null
null
null
import os from cloudmesh.common.util import path_expand class EncryptFile(object): def __init__(self, file_in, file_out, debug=False): self.data = { 'file': file_in, 'secret': file_out, 'pem': path_expand('~/.ssh/id_rsa.pub.pem'), 'key': path_expand(' ~/.ssh...
26.933333
103
0.578589
e3e38a293b29173b33ab51cdcc0e3cc9965db433
472
py
Python
2015/src/day_02.py
Stannislav/Advent-of-Code
b9571e71e1acedf74be3bb32f03c9877f57c48dd
[ "MIT" ]
2
2020-12-12T17:06:47.000Z
2021-12-15T04:06:57.000Z
2015/src/day_02.py
Stannislav/Advent-of-Code
b9571e71e1acedf74be3bb32f03c9877f57c48dd
[ "MIT" ]
null
null
null
2015/src/day_02.py
Stannislav/Advent-of-Code
b9571e71e1acedf74be3bb32f03c9877f57c48dd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from functools import reduce with open("../input/input_02.txt", 'r') as f: paper = 0 ribbon = 0 for line in f: sides = list(map(int, line.rstrip().split('x'))) surf = [sides[i] * sides[(i + 1) % 3] for i in range(3)] paper += 2 * sum(surf) + min(surf) ...
33.714286
83
0.552966
951559bc0bdf92948f288a52d3b28bb08eda1e91
372
py
Python
helper/populate_omim.py
PEDIA-Charite/PEDIA-workflow
f0ab0c7ed3833edb01ad0772ad294978b71feb64
[ "MIT" ]
9
2017-10-16T17:04:48.000Z
2021-11-03T13:09:11.000Z
helper/populate_omim.py
PEDIA-Charite/PEDIA-workflow
f0ab0c7ed3833edb01ad0772ad294978b71feb64
[ "MIT" ]
60
2017-05-22T15:43:06.000Z
2022-02-07T22:16:48.000Z
helper/populate_omim.py
PEDIA-Charite/PEDIA-workflow
f0ab0c7ed3833edb01ad0772ad294978b71feb64
[ "MIT" ]
9
2017-11-27T16:19:11.000Z
2021-01-24T03:48:08.000Z
from pprint import pprint import requests from lib.api import omim from lib.model import config def main(): '''Query list of phenotypic omim ids''' config_data = config.ConfigManager("config.ini") omim_internal = omim.Omim(config=config_data) r = omim_internal.construct_phenotypic_series_mapping() ...
19.578947
59
0.723118
d41099960fc0055974a5721cf94b2bbdce6e7b67
467
py
Python
CursoEmVideo/Python/Mundo 1/ex021.py
GabriellyBailon/Cursos
0fe82881638a48dabbfd5963db39d2a0b7d7e4c3
[ "MIT" ]
null
null
null
CursoEmVideo/Python/Mundo 1/ex021.py
GabriellyBailon/Cursos
0fe82881638a48dabbfd5963db39d2a0b7d7e4c3
[ "MIT" ]
null
null
null
CursoEmVideo/Python/Mundo 1/ex021.py
GabriellyBailon/Cursos
0fe82881638a48dabbfd5963db39d2a0b7d7e4c3
[ "MIT" ]
null
null
null
# Encontrar e executar um arquivo de audio aqui # Necessário: colar/colocar o arquivo mp3 ou o audio na pasta do projeto from pygame import mixer mixer.init(); # Inicia o módulo; mixer.music.load('ex021.mp3'); # Carrega o arquivo desejado; mixer.music.play(); # Executa a música; input("Agora você esc...
23.35
73
0.702355
a7b76baadbfd7c21e0316706af2deb5bf865184e
715
pyde
Python
sketches/shaunsim2/shaunsim2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/shaunsim2/shaunsim2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/shaunsim2/shaunsim2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
from config import Settings from shaun import Sheep from grass import Grass from random import randint s = Settings() sz = s.PATCHSIZE sheeps = [] lawn = [] def setup(): size(s.WIDTH, s.HEIGHT) this.surface.setTitle("Shaun das Schaf (2): Vom Schaf zur Schafherde") frameRate(s.FPS) for _ in range(20): ...
24.655172
78
0.615385
eb40e2104c2e6f249485fc2a43a37bd680225faa
1,265
py
Python
simple_virtual_world/server.py
quanghuyle3/Runners_Agent_Based_Model
aeb9336e25d6f7c72754a011b3031a3539baae55
[ "MIT" ]
null
null
null
simple_virtual_world/server.py
quanghuyle3/Runners_Agent_Based_Model
aeb9336e25d6f7c72754a011b3031a3539baae55
[ "MIT" ]
null
null
null
simple_virtual_world/server.py
quanghuyle3/Runners_Agent_Based_Model
aeb9336e25d6f7c72754a011b3031a3539baae55
[ "MIT" ]
null
null
null
from virtual_world import VirtualWorldModel from mesa.visualization.modules import CanvasGrid, ChartModule from mesa.visualization.ModularVisualization import ModularServer def cell(agent): portrayal = {'Shape': 'rect', 'Layer': 0, 'w': 1, 'h': 1, ...
27.5
68
0.552569
a686eb214da8aa33affefd20a64fbc39837e0c8e
18,456
py
Python
tests/integration/roster/test_ncaaf_roster.py
JosephDErwin/sportsreference
f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd
[ "MIT" ]
null
null
null
tests/integration/roster/test_ncaaf_roster.py
JosephDErwin/sportsreference
f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd
[ "MIT" ]
null
null
null
tests/integration/roster/test_ncaaf_roster.py
JosephDErwin/sportsreference
f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd
[ "MIT" ]
1
2020-07-08T16:05:25.000Z
2020-07-08T16:05:25.000Z
import mock import os import pandas as pd import pytest from flexmock import flexmock from sportsreference import utils from sportsreference.ncaaf.roster import Player, Roster from sportsreference.ncaaf.teams import Team def read_file(filename): filepath = os.path.join(os.path.dirname(__file__), 'ncaaf', filename...
37.436105
78
0.53912
3216602328dcece3ae52f534c772444f6d50ce19
7,892
py
Python
adv_coop_multiagent_pathfinding/pySpriteWorld/fast_rect_collision.py
tripincloud/MultiAgentAI
2d2348dcc2da2bce7c0635a83ea8456683fd0a3a
[ "MIT" ]
1
2021-12-30T07:00:05.000Z
2021-12-30T07:00:05.000Z
adv_coop_multiagent_pathfinding/pySpriteWorld/fast_rect_collision.py
tripincloud/MultiAgentAI
2d2348dcc2da2bce7c0635a83ea8456683fd0a3a
[ "MIT" ]
null
null
null
adv_coop_multiagent_pathfinding/pySpriteWorld/fast_rect_collision.py
tripincloud/MultiAgentAI
2d2348dcc2da2bce7c0635a83ea8456683fd0a3a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Feb 24 09:23:57 2016 @author: personne """ from __future__ import division,print_function import numpy as np """ TODO: - spécifier dans les sprites la liste des layers qui constituent des obstacles pour eux - les collisions: soit on définit une propriété "blocking_col...
33.159664
137
0.604536
8951c4812c0936c05ce68110554c01e92c843106
2,694
py
Python
src/Defends/CodeReview.py
serfend/project.ctf.awd.1910.py
0758004324f746840ad00dfc2117bac3a817b5c0
[ "Apache-2.0" ]
2
2019-10-13T04:25:58.000Z
2019-10-13T13:49:44.000Z
src/Defends/CodeReview.py
serfend/project.ctf.awd.1910.py
0758004324f746840ad00dfc2117bac3a817b5c0
[ "Apache-2.0" ]
null
null
null
src/Defends/CodeReview.py
serfend/project.ctf.awd.1910.py
0758004324f746840ad00dfc2117bac3a817b5c0
[ "Apache-2.0" ]
1
2019-10-13T04:26:03.000Z
2019-10-13T04:26:03.000Z
#执行代码审计 import os import json import Setting import re import chardet import Tools class ReviewResult: def __init__(self, path, line,patch,payload,desc): self.path=path self.line=line self.patch=patch self.payload=payload self.desc=desc print (f"hole was f...
41.446154
128
0.586488
44d3e74ae49e7a8b4ed1f5a15f57e837a37e9e85
1,684
py
Python
get_connection_status.py
mikeoertli/alfred-airpods-connector
f1af453035457ebb98ef4afdb0d1a799992c870a
[ "MIT" ]
1
2022-01-04T20:22:06.000Z
2022-01-04T20:22:06.000Z
get_connection_status.py
mikeoertli/alfred-airpods-connector
f1af453035457ebb98ef4afdb0d1a799992c870a
[ "MIT" ]
null
null
null
get_connection_status.py
mikeoertli/alfred-airpods-connector
f1af453035457ebb98ef4afdb0d1a799992c870a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import re import json import sys from bluetooth_status_parser_utils import get_connection_status from bluetooth_status_parser_utils import is_failed_status from bluetooth_status_parser_utils import create_menu_json from bluetooth_status_parser_utils import get_configured_mac from bluet...
31.185185
95
0.80285
6be46dde04542cd47e485d6759a13a4563fc5950
11,818
py
Python
experiments/relation_extraction/framework.py
zhihao-chen/NLP-experiments
c7512276050f5b8489adb4c745fa970ea8119646
[ "MIT" ]
4
2021-11-10T03:49:28.000Z
2022-03-24T02:18:44.000Z
experiments/relation_extraction/framework.py
zhihao-chen/NLP-experiments
c7512276050f5b8489adb4c745fa970ea8119646
[ "MIT" ]
null
null
null
experiments/relation_extraction/framework.py
zhihao-chen/NLP-experiments
c7512276050f5b8489adb4c745fa970ea8119646
[ "MIT" ]
1
2021-11-14T18:01:18.000Z
2021-11-14T18:01:18.000Z
# -*- coding: utf8 -*- """ ====================================== Project Name: news_relation_extraction File Name: framework Author: czh Create Date: 2021/6/22 -------------------------------------- Change Activity: ====================================== """ import torch.optim as optim from torch ...
45.279693
151
0.538078
0a7ba9269dc7caa8748a55fbefd692d2fbbbdeb7
4,702
py
Python
ax/modelbridge/transforms/unit_x.py
mpolson64/Ax-1
cf9e12cc1253efe0fc893f2620e99337e0927a26
[ "MIT" ]
null
null
null
ax/modelbridge/transforms/unit_x.py
mpolson64/Ax-1
cf9e12cc1253efe0fc893f2620e99337e0927a26
[ "MIT" ]
null
null
null
ax/modelbridge/transforms/unit_x.py
mpolson64/Ax-1
cf9e12cc1253efe0fc893f2620e99337e0927a26
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import TYPE_CHECKING, Dict, List, Optional, Tuple from ax.core.observation import ObservationData, Obser...
42.745455
88
0.624415
f27abd3f50b3b9b5034fcebedebeda2769dd5fdb
150,173
py
Python
pysnmp-with-texts/TIMETRA-IEEE8021-CFM-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/TIMETRA-IEEE8021-CFM-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/TIMETRA-IEEE8021-CFM-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module TIMETRA-IEEE8021-CFM-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TIMETRA-IEEE8021-CFM-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:17:50 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7....
187.71625
14,146
0.806756
e262e34c1c78203fed42a9f33a60d60976538d79
349
py
Python
cride/rides/migrations/0002_auto_20200116_0527.py
herchila/cride
db3946557d93e940386622d873b15425fbaae167
[ "MIT" ]
null
null
null
cride/rides/migrations/0002_auto_20200116_0527.py
herchila/cride
db3946557d93e940386622d873b15425fbaae167
[ "MIT" ]
3
2021-06-08T20:18:06.000Z
2022-03-11T23:57:22.000Z
cride/rides/migrations/0002_auto_20200116_0527.py
herchila/cride
db3946557d93e940386622d873b15425fbaae167
[ "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-01-16 05:27 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('rides', '0001_initial'), ] operations = [ migrations.RenameField( model_name='ride', old_name='raiting', new_nam...
18.368421
47
0.567335
57b75ff823d8a3dd650b49c7091a55fefe4a3867
61,869
py
Python
test/test_allkinds.py
grammatek/GreynirCorrect
4bdd006c0c866e06d5697772ff4aee34fdcae4f4
[ "MIT" ]
2
2022-02-15T19:58:34.000Z
2022-02-16T17:55:25.000Z
test/test_allkinds.py
grammatek/GreynirCorrect
4bdd006c0c866e06d5697772ff4aee34fdcae4f4
[ "MIT" ]
null
null
null
test/test_allkinds.py
grammatek/GreynirCorrect
4bdd006c0c866e06d5697772ff4aee34fdcae4f4
[ "MIT" ]
null
null
null
# type: ignore """ test_allkinds.py Tests for GreynirCorrect module Copyright (C) 2021 by Miðeind ehf. This software is licensed under the MIT License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
40.148605
149
0.647594
737485d8d075e4c1428ee01a682c413b6d1e0f44
22,641
py
Python
kinbot/heptane.py
rubenvdvijver/KinBot
5bbb29c087b53bc63ffbb1d393ab4e217390eb82
[ "BSD-3-Clause" ]
null
null
null
kinbot/heptane.py
rubenvdvijver/KinBot
5bbb29c087b53bc63ffbb1d393ab4e217390eb82
[ "BSD-3-Clause" ]
null
null
null
kinbot/heptane.py
rubenvdvijver/KinBot
5bbb29c087b53bc63ffbb1d393ab4e217390eb82
[ "BSD-3-Clause" ]
null
null
null
################################################### ## ## ## This file is part of the KinBot code v2.0 ## ## ## ## The contents are covered by the terms of the ## ## BSD 3-clause license included in the LICENSE ## ## file,...
39.444251
159
0.581379
375cb6d8f3fa59e550c20dc640512a971ec13bc3
15,958
py
Python
plaso/analysis/hash_tagging.py
jaegeral/plaso
10f22b88afe083ee954c146a077a3242203a987d
[ "Apache-2.0" ]
null
null
null
plaso/analysis/hash_tagging.py
jaegeral/plaso
10f22b88afe083ee954c146a077a3242203a987d
[ "Apache-2.0" ]
null
null
null
plaso/analysis/hash_tagging.py
jaegeral/plaso
10f22b88afe083ee954c146a077a3242203a987d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """This file contains the interface for analysis plugins.""" import abc import collections import queue import threading import time import requests from plaso.analysis import interface from plaso.analysis import logger from plaso.containers import events from plaso.lib import errors class ...
34.995614
80
0.709989
630dfc91850245fe83da778e925d1abf26861e3c
25,321
py
Python
v1.0.0.test/toontown/racing/DistributedRaceAI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v1.0.0.test/toontown/racing/DistributedRaceAI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v1.0.0.test/toontown/racing/DistributedRaceAI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
from direct.distributed import DistributedObjectAI from direct.directnotify import DirectNotifyGlobal from toontown.toonbase import ToontownGlobals from otp.otpbase.PythonUtil import nonRepeatingRandomList import DistributedGagAI, DistributedProjectileAI from direct.task import Task import random, time, Racer, RaceGlob...
38.955385
254
0.547806
4d3bea27f132b881458f12f400bb6357222d9f9f
9,634
py
Python
datalad/distributed/export_archive_ora.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/distributed/export_archive_ora.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
1
2020-12-01T20:13:51.000Z
2020-12-01T20:13:51.000Z
datalad/distributed/export_archive_ora.py
jwodder/datalad
2b92a764fdc64b750dad68eb51c817218a1ec153
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 et: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ...
35.160584
106
0.543596
332a308ab4ee91f58ce9dcf3fba883fa9d310295
1,572
py
Python
src/scrapy_utils/middlewares.py
dantin/scrapy-utils
584fd49ca6ef2ed0799541d6f9961736d196d595
[ "BSD-2-Clause" ]
null
null
null
src/scrapy_utils/middlewares.py
dantin/scrapy-utils
584fd49ca6ef2ed0799541d6f9961736d196d595
[ "BSD-2-Clause" ]
null
null
null
src/scrapy_utils/middlewares.py
dantin/scrapy-utils
584fd49ca6ef2ed0799541d6f9961736d196d595
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import logging import os import random from scrapy import signals from scrapy.downloadermiddlewares.useragent import UserAgentMiddleware logger = logging.getLogger(__name__) class RandomUserAgentMiddleware(UserAgentMiddleware): DEFAULT_USER_AGENT = os.path.normpath(os.path.dirname(__file...
35.727273
93
0.667303
fe5122de2294259fcca28917645ddd4e2a2c06a1
1,271
py
Python
scripts/build/luaTable.py
jdekarske/astrobee
c882f9f39719487770bbe7c7322d2ca7f71a1272
[ "Apache-2.0" ]
1
2021-11-11T17:13:32.000Z
2021-11-11T17:13:32.000Z
scripts/build/luaTable.py
LesterCovax/astrobee
608f6688c6f6088f1357fed9e68b45d68bc9ee2d
[ "Apache-2.0" ]
4
2021-08-01T17:13:15.000Z
2022-03-31T14:23:03.000Z
scripts/build/luaTable.py
LesterCovax/astrobee
608f6688c6f6088f1357fed9e68b45d68bc9ee2d
[ "Apache-2.0" ]
null
null
null
""" Output Python data structure as a Lua table constructor. """ from cStringIO import StringIO def q(s): return '"%s"' % s def ind(lvl): return ' ' * (lvl * 2) def dumpStream(out, d, lvl=0): def w(s): out.write(s) if isinstance(d, basestring): w(q(d)) elif isinstance(d, (l...
18.970149
56
0.353265
1c6802f14bbcc25959d6c39997ed15521c601f5f
960
py
Python
tests/test_json.py
leisure0808/ldfparser
6310985cbee2d3ea3b1153c2e5d6281309675760
[ "MIT" ]
23
2020-10-18T12:22:13.000Z
2022-03-10T10:59:28.000Z
tests/test_json.py
leisure0808/ldfparser
6310985cbee2d3ea3b1153c2e5d6281309675760
[ "MIT" ]
68
2020-09-28T11:23:29.000Z
2022-03-31T19:22:59.000Z
tests/test_json.py
leisure0808/ldfparser
6310985cbee2d3ea3b1153c2e5d6281309675760
[ "MIT" ]
10
2020-10-14T23:02:40.000Z
2022-01-15T14:29:10.000Z
import difflib import glob import json import os import warnings import pytest from ldfparser.parser import parse_ldf_to_dict ldf_directory = os.path.join(os.path.dirname(__file__), 'ldf') snapshot_directory = os.path.join(os.path.dirname(__file__), 'snapshot') ldf_files = glob.glob(ldf_directory + '/*.ldf') @pytest...
33.103448
90
0.721875
ae65324655e3792811c187fbe644df95d46ecbe2
3,630
py
Python
meta/utils/kmap-compiler.py
stevanson/pranaOS
8ba02b8469a796e70bf85e8d0cfc74d6018d964a
[ "BSD-2-Clause" ]
null
null
null
meta/utils/kmap-compiler.py
stevanson/pranaOS
8ba02b8469a796e70bf85e8d0cfc74d6018d964a
[ "BSD-2-Clause" ]
null
null
null
meta/utils/kmap-compiler.py
stevanson/pranaOS
8ba02b8469a796e70bf85e8d0cfc74d6018d964a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python3 import json import sys import struct KEYS = { "KEY_ESC": 0x01, "KEY_NUM1": 0x02, "KEY_NUM2": 0x03, "KEY_NUM3": 0x04, "KEY_NUM4": 0x05, "KEY_NUM5": 0x06, "KEY_NUM6": 0x07, "KEY_NUM7": 0x08, "KEY_NUM8": 0x09, "KEY_NUM9": 0x0A, "KEY_NUM0": 0x0B, "KEY_SYM...
24.362416
104
0.569421
9e60a1749960bf66ca4fde9eb590fc9ce6357bee
6,097
py
Python
wavefront_api_client/models/access_policy_rule_dto.py
httpsgithu/python-client
f85a530367cdabe458a11919ad35609b9bc0606b
[ "Apache-2.0" ]
null
null
null
wavefront_api_client/models/access_policy_rule_dto.py
httpsgithu/python-client
f85a530367cdabe458a11919ad35609b9bc0606b
[ "Apache-2.0" ]
null
null
null
wavefront_api_client/models/access_policy_rule_dto.py
httpsgithu/python-client
f85a530367cdabe458a11919ad35609b9bc0606b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Wavefront REST API Documentation <p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the W...
29.172249
409
0.584714
2b181b1a73ba25360ddbe0bc573b6e067183349d
7,476
py
Python
arviz/plots/backends/matplotlib/khatplot.py
FabioRosado/arviz
6b958cc5abeb0cc3a1186f4a3dbeeaba73b899ee
[ "Apache-2.0" ]
1
2021-06-13T00:29:11.000Z
2021-06-13T00:29:11.000Z
arviz/plots/backends/matplotlib/khatplot.py
FabioRosado/arviz
6b958cc5abeb0cc3a1186f4a3dbeeaba73b899ee
[ "Apache-2.0" ]
1
2021-07-23T19:32:21.000Z
2021-07-23T19:32:21.000Z
arviz/plots/backends/matplotlib/khatplot.py
FabioRosado/arviz
6b958cc5abeb0cc3a1186f4a3dbeeaba73b899ee
[ "Apache-2.0" ]
1
2019-03-02T03:23:12.000Z
2019-03-02T03:23:12.000Z
"""Matplotlib khatplot.""" import warnings import matplotlib as mpl import matplotlib.cm as cm import matplotlib.pyplot as plt import numpy as np from matplotlib.colors import to_rgba_array from ....stats.density_utils import histogram from ...plot_utils import _scale_fig_size, color_from_dim, set_xticklabels, vector...
32.224138
99
0.591894
ef0b1201b4d69de372e998e73189765d8ae3bc8d
8,594
py
Python
python/pyspark/pandas/tests/test_expanding.py
wangyeweikuer/spark
731aa2cdf8a78835621fbf3de2d3492b27711d1a
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
9
2019-11-20T09:44:22.000Z
2021-04-27T09:45:59.000Z
python/pyspark/pandas/tests/test_expanding.py
nyingping/spark
ca7200b0008dc6101a252020e6c34ef7b72d81d6
[ "Apache-2.0" ]
39
2018-09-25T21:57:04.000Z
2022-03-27T17:34:43.000Z
python/pyspark/pandas/tests/test_expanding.py
nyingping/spark
ca7200b0008dc6101a252020e6c34ef7b72d81d6
[ "Apache-2.0" ]
10
2016-10-12T09:04:47.000Z
2021-04-29T19:07:20.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
38.711712
99
0.583663
b92302130e6b97995e43d1b756da8f9e059fbe5c
4,827
py
Python
hummingbot/connector/exchange/dydx/dydx_api_token_configuration_data_source.py
csdenboer/hummingbot
8a799675a325ebdbb74d76b2a44472cdbf74d691
[ "Apache-2.0" ]
37
2020-07-08T03:44:26.000Z
2022-01-16T12:35:26.000Z
hummingbot/connector/exchange/dydx/dydx_api_token_configuration_data_source.py
csdenboer/hummingbot
8a799675a325ebdbb74d76b2a44472cdbf74d691
[ "Apache-2.0" ]
8
2020-10-01T05:17:54.000Z
2020-11-09T13:38:19.000Z
hummingbot/connector/exchange/dydx/dydx_api_token_configuration_data_source.py
csdenboer/hummingbot
8a799675a325ebdbb74d76b2a44472cdbf74d691
[ "Apache-2.0" ]
17
2021-04-07T21:29:46.000Z
2022-02-03T02:01:04.000Z
import aiohttp # import asyncio # import logging from decimal import Decimal from typing import ( Any, Dict, List, Tuple, # Optional ) from hummingbot.core.utils.async_utils import safe_ensure_future TOKEN_CONFIGURATIONS_URL = 'https://api.dydx.exchange/v2/markets' class DydxAPITokenConfiguratio...
44.284404
134
0.647607
82f4b95c1d5c0a19737d0067c86b6097f9ac5b54
6,690
py
Python
bot/cogs/leaderboard.py
Kobu/MasarykBOT
9a6b6a026b4f39afaca5ab509c90f6da09e169a0
[ "MIT" ]
13
2019-09-14T16:51:35.000Z
2021-03-03T22:20:44.000Z
bot/cogs/leaderboard.py
Kobu/MasarykBOT
9a6b6a026b4f39afaca5ab509c90f6da09e169a0
[ "MIT" ]
15
2019-09-29T19:25:31.000Z
2022-02-13T16:40:45.000Z
bot/cogs/leaderboard.py
Kobu/MasarykBOT
9a6b6a026b4f39afaca5ab509c90f6da09e169a0
[ "MIT" ]
15
2019-09-18T10:50:59.000Z
2022-02-11T20:55:19.000Z
import re from typing import Union, get_args from datetime import datetime from emoji import demojize, emojize from discord import TextChannel, Member, Embed from discord.ext import commands from discord.utils import get, escape_markdown class Emote(commands.Converter): REGEX = r":(\w+):(\d+)?" def __init__...
33.787879
106
0.575785
fa65cad0946f56f08f31bcba8d9ea39a6a4543a8
8,856
py
Python
veros/core/eke.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
111
2017-05-03T06:58:31.000Z
2019-11-10T14:36:48.000Z
veros/core/eke.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
48
2017-07-13T11:51:30.000Z
2019-11-12T15:43:32.000Z
veros/core/eke.py
AkasDutta/veros
9f530596a0148a398829050017de3e01a71261a0
[ "MIT" ]
16
2017-06-01T11:48:03.000Z
2019-07-16T00:27:58.000Z
from veros.core.operators import numpy as npx from veros import veros_kernel, veros_routine, KernelOutput from veros.variables import allocate from veros.core import utilities, advection from veros.core.operators import update, update_add, at @veros_routine def set_eke_diffusivities(state): vs = state.variables ...
35.566265
120
0.557814
cf1ab32f9a5ce2eab31997edd807d9ceeb1670f4
2,057
py
Python
model/model_16/model16.py
shihvictor/Cat-vs-Dog-Kaggle
6823aa9ba983e76c06dc868fd8b77d4c09bc691c
[ "MIT" ]
null
null
null
model/model_16/model16.py
shihvictor/Cat-vs-Dog-Kaggle
6823aa9ba983e76c06dc868fd8b77d4c09bc691c
[ "MIT" ]
null
null
null
model/model_16/model16.py
shihvictor/Cat-vs-Dog-Kaggle
6823aa9ba983e76c06dc868fd8b77d4c09bc691c
[ "MIT" ]
null
null
null
from keras.layers import Input, ZeroPadding2D, Conv2D, MaxPooling2D, Dropout, Flatten, Dense, Activation, BatchNormalization from keras.models import Model def model16(input_shape): """ Keras model :return: Keras model using Keras functional API https://keras.io/guides/functional_api/ """ # Input ...
36.087719
124
0.640739
c0b4af9fd79b84000dd841afbc914ee997bea1d3
153
py
Python
scrapers/MEL-melton/councillors.py
DemocracyClub/LGSF
21c2a049db08575e03db2fb63a8bccc8de0c636b
[ "MIT" ]
4
2018-10-17T13:30:08.000Z
2021-06-22T13:29:43.000Z
scrapers/MEL-melton/councillors.py
DemocracyClub/LGSF
21c2a049db08575e03db2fb63a8bccc8de0c636b
[ "MIT" ]
46
2018-10-15T13:47:48.000Z
2022-03-23T10:26:18.000Z
scrapers/MEL-melton/councillors.py
DemocracyClub/LGSF
21c2a049db08575e03db2fb63a8bccc8de0c636b
[ "MIT" ]
1
2018-10-15T13:36:03.000Z
2018-10-15T13:36:03.000Z
from lgsf.councillors.scrapers import ModGovCouncillorScraper class Scraper(ModGovCouncillorScraper): base_url = "https://democracy.melton.gov.uk"
25.5
61
0.810458
77fc6dd18d9a5878c4632a73900ffb94e39aa4c0
5,742
py
Python
blescan.py
olimpiurob/beaconreport
5d19db1bfbf863e0d717b5dbca06a5fb1b59fb9c
[ "MIT" ]
4
2016-10-18T20:15:35.000Z
2017-03-01T13:52:08.000Z
blescan.py
olimpiurob/beaconreport
5d19db1bfbf863e0d717b5dbca06a5fb1b59fb9c
[ "MIT" ]
1
2017-07-07T14:03:40.000Z
2017-07-07T19:33:35.000Z
blescan.py
olimpiurob/beaconreport
5d19db1bfbf863e0d717b5dbca06a5fb1b59fb9c
[ "MIT" ]
null
null
null
# BLE iBeaconScanner based on https://github.com/adamf/BLE/blob/master/ble-scanner.py # JCS 06/07/14 DEBUG = False # BLE scanner based on https://github.com/adamf/BLE/blob/master/ble-scanner.py # BLE scanner, based on https://code.google.com/p/pybluez/source/browse/trunk/examples/advanced/inquiry-with-rssi.py # https...
34.383234
116
0.664403
1602001706e3fa38f34f391364f65e2d6d89bd0f
733
py
Python
SearchUtility_Backend/SearchUtility.py
ramacpr/AnyDocSearch
1b3547f418be2fcc5e1f8ae8d83af61e7234dea3
[ "MIT" ]
1
2020-12-30T13:51:22.000Z
2020-12-30T13:51:22.000Z
SearchUtility_Backend/SearchUtility.py
ramacpr/AnyDocSearch
1b3547f418be2fcc5e1f8ae8d83af61e7234dea3
[ "MIT" ]
null
null
null
SearchUtility_Backend/SearchUtility.py
ramacpr/AnyDocSearch
1b3547f418be2fcc5e1f8ae8d83af61e7234dea3
[ "MIT" ]
null
null
null
import os import PDFTokenizer as pdftokenizer # get list of all PDF files in the path from SearchUtility_Backend.SearchUtilityLogger import SearchUtilityLogger input_folder_location = "D:\\Projects\\SearchUtility\\SearchUtility_Backend\\pdfFiles" FilesList = [] fullFilePath = "" logger = SearchUtilityLogger....
36.65
87
0.736698
8f3a1a0217b38ae73142b31b619caca37ec8570c
3,079
py
Python
app/app/settings.py
veiji/recipe-app-api
154c24dd1ca1c1f37021dec2cf14a16ac868c7c5
[ "MIT" ]
null
null
null
app/app/settings.py
veiji/recipe-app-api
154c24dd1ca1c1f37021dec2cf14a16ac868c7c5
[ "MIT" ]
null
null
null
app/app/settings.py
veiji/recipe-app-api
154c24dd1ca1c1f37021dec2cf14a16ac868c7c5
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # Bui...
25.446281
91
0.694057
fcf472a11eee7840be6c101327989107dc553499
2,052
py
Python
tests/test_api/test_query_handler.py
veken1199/CityLibraries
f1097c7b081acdd74f35c7aa04e2fed2ecb16e85
[ "MIT" ]
null
null
null
tests/test_api/test_query_handler.py
veken1199/CityLibraries
f1097c7b081acdd74f35c7aa04e2fed2ecb16e85
[ "MIT" ]
8
2019-02-13T03:42:19.000Z
2022-02-17T19:18:49.000Z
tests/test_api/test_query_handler.py
veken1199/CityLibraries
f1097c7b081acdd74f35c7aa04e2fed2ecb16e85
[ "MIT" ]
null
null
null
from unittest.mock import MagicMock import api.query_handler as query_handler from classes import ThreadsManager from constants import get_default_city_name from database import CrawlerCacheModel from tests import BaseTestCase from tests.data import expected_udm_crawler_data, expected_uqam_crawler_data, expected_conco...
38.716981
109
0.743665
68cbe7b183920300f6c15289dd35134b83b0de8f
8,867
py
Python
app/trivy.py
mms-gianni/klusterstatus
1659b9cbabda37a6820d9a64f2c084573f74062f
[ "Apache-2.0" ]
1
2020-08-18T12:32:31.000Z
2020-08-18T12:32:31.000Z
app/trivy.py
mms-gianni/klusterstatus
1659b9cbabda37a6820d9a64f2c084573f74062f
[ "Apache-2.0" ]
1
2020-05-26T19:53:31.000Z
2020-05-26T19:56:06.000Z
app/trivy.py
mms-gianni/klusterstatus
1659b9cbabda37a6820d9a64f2c084573f74062f
[ "Apache-2.0" ]
null
null
null
import subprocess import json import sys from cvss import CVSS2, CVSS3 import logging as log import os import pprint import uuid import re from datetime import datetime, timedelta class Trivy: repoCredentials = {} def __init__(self): print("INFO: Start Trivy analysis") self.repoCredentials = {...
48.190217
308
0.520018
2138e95445567e98fc9b2bc64ba56af55b25938d
7,518
py
Python
BasicES/ESv2.py
dkozel/starry-skies
43dddbf40c1da304b16533ba65d87e8b56e6053c
[ "Apache-2.0" ]
3
2021-01-27T21:28:04.000Z
2021-08-22T12:02:52.000Z
BasicES/ESv2.py
dkozel/starry-skies
43dddbf40c1da304b16533ba65d87e8b56e6053c
[ "Apache-2.0" ]
null
null
null
BasicES/ESv2.py
dkozel/starry-skies
43dddbf40c1da304b16533ba65d87e8b56e6053c
[ "Apache-2.0" ]
2
2017-07-29T00:28:55.000Z
2018-01-26T14:16:58.000Z
from random import * import numpy as np import matplotlib.pyplot as pyplot import channel_model as gnuradio import os numgen = int(raw_input("Please enter the number of generations: ")) arity = int(raw_input("Please enter the arity of the constellation: ")) noise_level = float(raw_input("Please enter the desired noise...
32.128205
140
0.707103
918ea40d7dfd3f7b25c7d6fb6e25ebee5fcc6e21
7,991
py
Python
sdk/python/pulumi_azure_native/network/v20160330/get_network_security_group.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20160330/get_network_security_group.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20160330/get_network_security_group.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
37.516432
229
0.65749
aa9425fde381fd2e6da26c4c24398e9117b6a14c
813
py
Python
datasets/util.py
McDo/LightFlowPytorch
219d7ba9ef1f7a2466041164ce341780888d554a
[ "MIT" ]
8
2019-08-09T16:13:20.000Z
2021-12-22T11:17:05.000Z
datasets/util.py
McDo/LightFlowPytorch
219d7ba9ef1f7a2466041164ce341780888d554a
[ "MIT" ]
1
2021-05-14T15:45:21.000Z
2021-05-14T15:45:21.000Z
datasets/util.py
McDo/LightFlowPytorch
219d7ba9ef1f7a2466041164ce341780888d554a
[ "MIT" ]
4
2019-12-23T09:02:40.000Z
2021-02-25T15:38:37.000Z
import numpy as np def split2list(images, split, default_split=0.9): if isinstance(split, str): with open(split) as f: split_values = [x.strip() == '1' for x in f.readlines()] assert(len(images) == len(split_values)) elif split is None: split_values = np.random.uniform(0, 1...
38.714286
87
0.637146
8ed26b6f018c4607ab1936132d5fa4a2c9204c4e
6,752
py
Python
examples/ObstacleAlarm/section_divide_peak.py
BoonthichaSaejia/depthai-python
7467eea56ff879aea81c80bf3e685efc91059934
[ "MIT" ]
null
null
null
examples/ObstacleAlarm/section_divide_peak.py
BoonthichaSaejia/depthai-python
7467eea56ff879aea81c80bf3e685efc91059934
[ "MIT" ]
null
null
null
examples/ObstacleAlarm/section_divide_peak.py
BoonthichaSaejia/depthai-python
7467eea56ff879aea81c80bf3e685efc91059934
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import cv2 import depthai as dai import numpy as np from scipy.signal import find_peaks def findPeak(list_depth, n_iter=10): arr_depth = np.array(list_depth) #width=35 is where the model cannot detect any peaks while it cannot see anything peaks, _ = find_peaks(arr_depth, prominence...
39.255814
157
0.603673