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
629d20ca0042c3dac8bb53e45b950962e6649a0a
5,394
py
Python
src/pytorch_metric_learning/losses/smoothap.py
interestingzhuo/pytorch-metric-learning
8344974974a6946ddf65e3f4c12e1c72763f17a4
[ "MIT" ]
188
2020-07-14T15:04:37.000Z
2022-03-18T11:58:59.000Z
src/Smooth_AP_loss.py
elias-ramzi/Smooth_AP
46b6cf0ddef2041345ec75f722673929d5ed5def
[ "MIT" ]
24
2020-07-25T07:27:49.000Z
2021-08-10T11:34:58.000Z
src/Smooth_AP_loss.py
elias-ramzi/Smooth_AP
46b6cf0ddef2041345ec75f722673929d5ed5def
[ "MIT" ]
32
2020-07-16T11:06:22.000Z
2022-03-12T18:19:56.000Z
# requirements: # python 3.x # torch = 1.1.0 import torch def sigmoid(tensor, temp=1.0): """ temperature controlled sigmoid takes as input a torch tensor (tensor) and passes it through a sigmoid, controlled by temperature: temp """ exponent = -tensor / temp # clamp the input tensor for sta...
41.813953
136
0.647757
6bc413a1631fcec745dd8ae99bc6dcf08e416fe8
3,018
py
Python
sport/solutions/bj/10448.py
Epikem/dev-tips
ed5a258334dd18ef505f51e320f7a9f5ee535cf9
[ "MIT" ]
null
null
null
sport/solutions/bj/10448.py
Epikem/dev-tips
ed5a258334dd18ef505f51e320f7a9f5ee535cf9
[ "MIT" ]
8
2020-04-03T15:33:54.000Z
2022-03-02T10:24:22.000Z
sport/solutions/bj/10448.py
Epikem/dev-tips
ed5a258334dd18ef505f51e320f7a9f5ee535cf9
[ "MIT" ]
null
null
null
false = False true = True null = None TEST = false try: import sys for arg in sys.argv: if(arg == 'test'): print('test mode') TEST = True pass except: pass def AddImports(libraryNames): for libname in libraryNames: if (type(libname) == type(tu...
24.942149
173
0.519218
f5418b6997ce1b81a0e5f944b2d87e9586638337
550
py
Python
GlobalHelper.py
825477418/XX
bf46e34749394002eec0fdc65e34c339ce022cab
[ "MIT" ]
null
null
null
GlobalHelper.py
825477418/XX
bf46e34749394002eec0fdc65e34c339ce022cab
[ "MIT" ]
1
2020-06-03T13:54:29.000Z
2020-06-03T13:54:29.000Z
GlobalHelper.py
825477418/XX
bf46e34749394002eec0fdc65e34c339ce022cab
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding:utf-8 -*- # @Time : 2018/7/7 2:01 # @Email : billsteve@126.com # @File : GlobalHelper.py # @Software : PyCharm import time import XX.DB.RedisHelper as credis import XX.String.StringHelper as cstr # 全局暂停功能 def global_sleep(ts=0, redis_conn=None, **kw): if not ...
27.5
97
0.645455
4bdceb212ed23928b06126eb6471a726df66a78c
765
py
Python
python/ql/test/query-tests/Security/lib/flask/__init__.py
robertbrignull/ql
2ecef33c9d2c9a66b5359b68437c3229fcf54964
[ "MIT" ]
26
2020-06-30T03:07:19.000Z
2022-03-31T03:57:23.000Z
python/ql/test/query-tests/Security/lib/flask/__init__.py
mdisec/codeql
791f31fa6514c18fcfcba1d685bc2d6393b6f6f6
[ "MIT" ]
2
2020-04-06T02:08:30.000Z
2020-04-06T02:08:31.000Z
python/ql/test/query-tests/Security/lib/flask/__init__.py
mdisec/codeql
791f31fa6514c18fcfcba1d685bc2d6393b6f6f6
[ "MIT" ]
10
2021-03-24T13:09:08.000Z
2022-02-10T07:39:30.000Z
from .globals import request from .globals import current_app class Flask(object): # Only some methods mocked, signature copied from # https://flask.palletsprojects.com/en/1.1.x/api/#flask.Flask def run(host=None, port=None, debug=None, load_dotenv=True, **options): pass def make_response(rv):...
24.677419
101
0.687582
f4f82ad2f8f47d833850437c2267e9c8faab3813
67
py
Python
myUtil/myRedis/__init__.py
mengyingzhou/FlexHTTP
40a931fa910f3709b9ff79ad5e10ce8c01c1c246
[ "BSD-3-Clause" ]
1
2022-03-16T17:19:10.000Z
2022-03-16T17:19:10.000Z
myUtil/myRedis/__init__.py
mengyingzhou/FlexHTTP
40a931fa910f3709b9ff79ad5e10ce8c01c1c246
[ "BSD-3-Clause" ]
null
null
null
myUtil/myRedis/__init__.py
mengyingzhou/FlexHTTP
40a931fa910f3709b9ff79ad5e10ce8c01c1c246
[ "BSD-3-Clause" ]
null
null
null
from .redis_row import RedisRow from .redis_table import RedisTable
33.5
35
0.865672
bd2d07e152d75d132183efda952b532e63221d8e
410
py
Python
example/simple.py
girishc13/docker-locust
b7b71d737e5f7c383f2fdef2fa2e9c3c8065c2da
[ "Apache-2.0" ]
194
2017-01-16T16:32:16.000Z
2022-03-29T04:25:39.000Z
example/simple.py
girishc13/docker-locust
b7b71d737e5f7c383f2fdef2fa2e9c3c8065c2da
[ "Apache-2.0" ]
109
2017-01-23T10:31:44.000Z
2021-06-01T10:41:58.000Z
example/simple.py
girishc13/docker-locust
b7b71d737e5f7c383f2fdef2fa2e9c3c8065c2da
[ "Apache-2.0" ]
68
2017-02-16T19:05:33.000Z
2021-09-18T16:01:18.000Z
from locust import HttpLocust from locust import TaskSet from locust import task # For HTML reporting from locust.web import app from src import report app.add_url_rule('/htmlreport', 'htmlreport', report.download_report) class SimpleBehavior(TaskSet): @task def index(self): self.client.get('/') cl...
19.52381
69
0.731707
0ea2742bb4374cb98406a9094825226fce5dfd96
35,431
py
Python
userbot/modules/scrapers.py
dedeeinheree/Man-Userbot
3f84ec55defc9c822513be34f42556ee70069a30
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/scrapers.py
dedeeinheree/Man-Userbot
3f84ec55defc9c822513be34f42556ee70069a30
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/scrapers.py
dedeeinheree/Man-Userbot
3f84ec55defc9c822513be34f42556ee70069a30
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-11-18T07:01:02.000Z
2021-11-18T07:01:02.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # # thanks to the owner of X-tra-Telegram for tts fix # # Recode by @mrismanaziz # FROM Man-Userbot # t.me/SharingUserbot...
32.989758
136
0.592109
2d537e68c0c2ae9afa9e1a562323f66969b4a194
1,757
py
Python
nikola/data/themes/base/messages/messages_bs.py
asmeurer/nikola
ea1c651bfed0fd6337f1d22cf8dd99899722912c
[ "MIT" ]
1,901
2015-01-02T02:49:51.000Z
2022-03-30T23:31:35.000Z
nikola/data/themes/base/messages/messages_bs.py
asmeurer/nikola
ea1c651bfed0fd6337f1d22cf8dd99899722912c
[ "MIT" ]
1,755
2015-01-01T08:17:16.000Z
2022-03-24T18:02:22.000Z
nikola/data/themes/base/messages/messages_bs.py
asmeurer/nikola
ea1c651bfed0fd6337f1d22cf8dd99899722912c
[ "MIT" ]
421
2015-01-02T18:06:37.000Z
2022-03-28T23:18:54.000Z
# -*- encoding:utf-8 -*- """Autogenerated file, do not edit. Submit translations on Transifex.""" MESSAGES = { "%d min remaining to read": "%d minuta preostalo za čitanje", "(active)": "(aktivno)", "Also available in:": "Takođe dostupan u:", "Archive": "Arhiva", "Atom feed": "", "Authors": "Aut...
35.14
72
0.595902
05ccd24debd44e59c4bef8d60f2fb3275a2e50ba
2,909
py
Python
src/config/common/tests/test_analytics_client.py
biswajit-mandal/contrail-controller
80c4a7e8515f7296b18ba4c21a439bd3daefcc4a
[ "Apache-2.0" ]
5
2015-01-08T17:34:41.000Z
2017-09-28T16:00:25.000Z
src/config/common/tests/test_analytics_client.py
biswajit-mandal/contrail-controller
80c4a7e8515f7296b18ba4c21a439bd3daefcc4a
[ "Apache-2.0" ]
2
2018-12-04T02:20:52.000Z
2018-12-22T06:16:30.000Z
src/config/common/tests/test_analytics_client.py
biswajit-mandal/contrail-controller
80c4a7e8515f7296b18ba4c21a439bd3daefcc4a
[ "Apache-2.0" ]
18
2017-01-12T09:28:44.000Z
2019-04-18T20:47:42.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2014 Cloudwatt # 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/l...
34.223529
78
0.607769
4cbf23f7bf1029ef8a3da82520f908398ffbff3e
346
py
Python
Olympiad Solutions/URI/1467.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
36
2019-12-27T08:23:08.000Z
2022-01-24T20:35:47.000Z
Olympiad Solutions/URI/1467.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
10
2019-11-13T02:55:18.000Z
2021-10-13T23:28:09.000Z
Olympiad Solutions/URI/1467.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
53
2020-08-15T11:08:40.000Z
2021-10-09T15:51:38.000Z
# Ivan Carvalho # Solution to https://www.urionlinejudge.com.br/judge/problems/view/1467 #!/usr/bin/env python2.7 # encoding : utf-8 while True: try: e = raw_input() if e in ["0 0 0","1 1 1"]: print "*" elif e in ["1 0 0","0 1 1"]: print "A" elif e in ["1 0 1","0 1 0"]: print "B" else: print "C" ...
19.222222
72
0.589595
cb02e21abd5dd43d214f96868619ec3b23eb9101
492
py
Python
product/migrations/0013_product_code_product.py
SergueiNK/oc_projet_p8
a2a3e3df7ecd048207f342343163a3aecf246423
[ "Unlicense" ]
null
null
null
product/migrations/0013_product_code_product.py
SergueiNK/oc_projet_p8
a2a3e3df7ecd048207f342343163a3aecf246423
[ "Unlicense" ]
3
2021-12-04T16:47:44.000Z
2021-12-04T19:25:31.000Z
product/migrations/0013_product_code_product.py
SergueiNK/oc_projet_p8
a2a3e3df7ecd048207f342343163a3aecf246423
[ "Unlicense" ]
null
null
null
# Generated by Django 3.2.6 on 2021-10-26 22:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0012_alter_product_product_name'), ] operations = [ migrations.AddField( model_name='product', name='code...
24.6
107
0.628049
a8e0e237ae94ac73d8abde7ca53318639b99b61c
1,474
py
Python
OnlySemWork/plot.py
rohun-tripati/UGP-Robotics
46517c6393724937cc2625252fd88036a1a3fef7
[ "Unlicense" ]
null
null
null
OnlySemWork/plot.py
rohun-tripati/UGP-Robotics
46517c6393724937cc2625252fd88036a1a3fef7
[ "Unlicense" ]
null
null
null
OnlySemWork/plot.py
rohun-tripati/UGP-Robotics
46517c6393724937cc2625252fd88036a1a3fef7
[ "Unlicense" ]
null
null
null
import numpy as np import sys import numpy.linalg as linalg import matplotlib.pyplot as plt from matplotlib import cm from mpl_toolkits.mplot3d import Axes3D import math def plotthis(num,ellips,ellarr, tree, adjval): #module from the net fig = plt.figure() ax = fig.add_subplot(111, projection='3d') for k in range(...
29.48
86
0.601085
6daa873cddfa2502c6d8e41ffaba39095657e070
1,020
py
Python
kubernetes/test/test_v1_resource_field_selector.py
jashandeep-sohi/kubernetes-python
e057f273069de445a2d5a250ac5fe37d79671f3b
[ "Apache-2.0" ]
1
2020-05-08T12:41:04.000Z
2020-05-08T12:41:04.000Z
kubernetes/test/test_v1_resource_field_selector.py
jashandeep-sohi/kubernetes-python
e057f273069de445a2d5a250ac5fe37d79671f3b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_resource_field_selector.py
jashandeep-sohi/kubernetes-python
e057f273069de445a2d5a250ac5fe37d79671f3b
[ "Apache-2.0" ]
2
2021-07-09T08:49:05.000Z
2021-08-03T18:08:36.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.10.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys i...
22.666667
105
0.72549
07395514772774691ef0ff993042d9bbd8e7dc0b
7,196
py
Python
daemonize.py
IloveKanade/k3daemonize
ac615704a34c358c7a8490013e8bc083e547e014
[ "MIT" ]
null
null
null
daemonize.py
IloveKanade/k3daemonize
ac615704a34c358c7a8490013e8bc083e547e014
[ "MIT" ]
2
2021-10-16T11:40:07.000Z
2022-03-23T06:57:44.000Z
daemonize.py
IloveKanade/k3daemonize
ac615704a34c358c7a8490013e8bc083e547e014
[ "MIT" ]
1
2021-08-18T07:48:38.000Z
2021-08-18T07:48:38.000Z
import errno import fcntl import logging import os import signal import sys import time import __main__ logger = logging.getLogger(__name__) class Daemon(object): def __init__(self, pidfile=None, stdin='/dev/null', stdout='/dev/null', stderr='...
26.167273
105
0.529878
bd5d9b8605c51d4fdbab510b566427379f31a499
18,565
py
Python
Math Police.py
RobinhoodDev/MathPolice
c73aadaeaee5ba45ebc4f3e3c8431a4a53ee531b
[ "MIT" ]
1
2021-10-20T11:48:50.000Z
2021-10-20T11:48:50.000Z
Math Police.py
RobinhoodDev/MathPolice
c73aadaeaee5ba45ebc4f3e3c8431a4a53ee531b
[ "MIT" ]
null
null
null
Math Police.py
RobinhoodDev/MathPolice
c73aadaeaee5ba45ebc4f3e3c8431a4a53ee531b
[ "MIT" ]
null
null
null
score = 0 score = int(score) print("Welcome to Math Police! Created by Robinhood#6198.") d = input("Which difficulty would you like to play?") if d == "Easy": print("Welcome to Math Police Easy!") print("Make sure you are ready to begin this quiz. Remember this quiz must be done in Python 3.") an...
28.214286
251
0.506168
f867ff8d13c45b30e961f2e59774a57e1d7b49b9
439
py
Python
django_website_database_project/django_website_database_project/asgi.py
RodneyMcCoy/store-website-database
d3d983ddb562eaa173e939f1f9df5a4f664a3227
[ "MIT" ]
null
null
null
django_website_database_project/django_website_database_project/asgi.py
RodneyMcCoy/store-website-database
d3d983ddb562eaa173e939f1f9df5a4f664a3227
[ "MIT" ]
null
null
null
django_website_database_project/django_website_database_project/asgi.py
RodneyMcCoy/store-website-database
d3d983ddb562eaa173e939f1f9df5a4f664a3227
[ "MIT" ]
null
null
null
""" ASGI config for django_website_database_project project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ....
25.823529
91
0.808656
7f929138a49bc1d2f5020e107362b46d24675447
64
py
Python
enthought/pyface/ui/null/action/tool_palette.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/pyface/ui/null/action/tool_palette.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/pyface/ui/null/action/tool_palette.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from pyface.ui.null.action.tool_palette import *
21.333333
48
0.796875
947f8908a77592dbea7a2a4f27e4897122948762
10,896
py
Python
tools/im2rec.py
xcgoner/ps-mxnet-new
958d0eb56f6a9b65371cd4c994b9c55a4efa449c
[ "Apache-2.0" ]
null
null
null
tools/im2rec.py
xcgoner/ps-mxnet-new
958d0eb56f6a9b65371cd4c994b9c55a4efa449c
[ "Apache-2.0" ]
null
null
null
tools/im2rec.py
xcgoner/ps-mxnet-new
958d0eb56f6a9b65371cd4c994b9c55a4efa449c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import os import sys curr_path = os.path.abspath(os.path.dirname(__file__)) sys.path.append(os.path.join(curr_path, "../python")) import mxnet as mx import random import argparse import cv2 import time def list_image(root, recursive, exts): image_list...
42.5625
114
0.558645
d9bc43080034344321fed96e1b4faf5ccf0d86ef
3,416
py
Python
applications/CoSimulationApplication/python_scripts/convergence_accelerators/convergence_accelerator_wrapper.py
alecontri/Kratos
9a003679c1a12a159466e6e61a371e1286f379ca
[ "BSD-4-Clause" ]
2
2020-12-22T11:50:11.000Z
2021-09-15T11:36:30.000Z
applications/CoSimulationApplication/python_scripts/convergence_accelerators/convergence_accelerator_wrapper.py
alecontri/Kratos
9a003679c1a12a159466e6e61a371e1286f379ca
[ "BSD-4-Clause" ]
1
2021-11-19T12:14:50.000Z
2021-11-19T12:14:50.000Z
applications/CoSimulationApplication/python_scripts/convergence_accelerators/convergence_accelerator_wrapper.py
philbucher/Kratos
1ceb900dbacfab344e27e32285250eafc52093ec
[ "BSD-4-Clause" ]
null
null
null
# CoSimulation imports from KratosMultiphysics.CoSimulationApplication.factories.convergence_accelerator_factory import CreateConvergenceAccelerator # Other imports import numpy as np class ConvergenceAcceleratorWrapper: """This class wraps the convergence accelerators such that they can be used "automized" =...
42.17284
132
0.717799
8d0644c080ada7551d7bb424d2965d4759a2fc58
4,623
py
Python
lib/sqlalchemy/__init__.py
lelit/sqlalchemy
55f930ef3d4e60bed02a2dad16e331fe42cfd12b
[ "MIT" ]
null
null
null
lib/sqlalchemy/__init__.py
lelit/sqlalchemy
55f930ef3d4e60bed02a2dad16e331fe42cfd12b
[ "MIT" ]
null
null
null
lib/sqlalchemy/__init__.py
lelit/sqlalchemy
55f930ef3d4e60bed02a2dad16e331fe42cfd12b
[ "MIT" ]
null
null
null
# sqlalchemy/__init__.py # Copyright (C) 2005-2019 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from . import util as _util # noqa from .inspection import inspect # noqa f...
31.664384
69
0.734372
423c0db0e168dafa8212b1dbabcf3bdb7576c0a8
7,825
py
Python
python/ray/serve/tests/test_backend_worker.py
AIX2/ray
91a1ac620012e0c779bf1bbf6983af22675cf26a
[ "Apache-2.0" ]
null
null
null
python/ray/serve/tests/test_backend_worker.py
AIX2/ray
91a1ac620012e0c779bf1bbf6983af22675cf26a
[ "Apache-2.0" ]
null
null
null
python/ray/serve/tests/test_backend_worker.py
AIX2/ray
91a1ac620012e0c779bf1bbf6983af22675cf26a
[ "Apache-2.0" ]
null
null
null
import asyncio import pytest import numpy as np import ray from ray import serve import ray.serve.context as context from ray.serve.backend_worker import create_backend_replica, wrap_to_ray_error from ray.serve.controller import TrafficPolicy from ray.serve.router import Router, RequestMetadata from ray.serve.config ...
30.447471
79
0.670671
c8f36ee3d8b51d41936d8d2c8d492b691bf0593c
243
py
Python
books_api/api/serializers.py
Ki6an/Django-REST-API
2171777209eb928f886d0e8ad713b02770f51276
[ "MIT" ]
null
null
null
books_api/api/serializers.py
Ki6an/Django-REST-API
2171777209eb928f886d0e8ad713b02770f51276
[ "MIT" ]
null
null
null
books_api/api/serializers.py
Ki6an/Django-REST-API
2171777209eb928f886d0e8ad713b02770f51276
[ "MIT" ]
null
null
null
from rest_framework import serializers from books.models import Book class BookSerializer(serializers.ModelSerializer): class Meta: model = Book fields = ('title', 'subtitle', 'author', 'isbn') # to add custom fields
22.090909
81
0.695473
5db1e25b3f75484a2b2f054ac9bb22e770b71fbd
3,079
py
Python
setup.py
davidaustinarcher/vulnpy
692703dae701197fd42ae7fc5a9d52f05a501550
[ "MIT" ]
null
null
null
setup.py
davidaustinarcher/vulnpy
692703dae701197fd42ae7fc5a9d52f05a501550
[ "MIT" ]
null
null
null
setup.py
davidaustinarcher/vulnpy
692703dae701197fd42ae7fc5a9d52f05a501550
[ "MIT" ]
null
null
null
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) try: with open(os.path.join(here, "README.md")) as f: README = f.read() except IOError: README = "" trigger_extras = {"PyYAML<6", "lxml>=4.3.1", "mock==3.*"} aiohttp_extras = {"aiohttp==3.7.*; pytho...
31.10101
82
0.6291
a0646f4e91fbeb3c11650234e95a9fa611d4447c
780
py
Python
src/gocept/month/adapter.py
gocept/gocept.month
a31d285edd631679d22680c432e3419b262ff9c8
[ "MIT" ]
null
null
null
src/gocept/month/adapter.py
gocept/gocept.month
a31d285edd631679d22680c432e3419b262ff9c8
[ "MIT" ]
3
2019-10-28T14:15:55.000Z
2021-04-19T11:22:20.000Z
src/gocept/month/adapter.py
gocept/gocept.month
a31d285edd631679d22680c432e3419b262ff9c8
[ "MIT" ]
null
null
null
from gocept.month import Month def Date(date): """Adapter between Date and Month. >>> from datetime import date >>> from zope.interface.verify import verifyObject >>> from gocept.month import IMonth >>> today = date.today() >>> verifyObject(IMonth, Date(today)) True >>> Date(today).m...
22.941176
54
0.605128
c9dfb33b4297f1333eb927d0cc373cfdef805635
4,161
py
Python
IMService/imsservice/src/main/resources/data/generate_es_user_docs.py
helenyu18/blue-marlin
668985fad1993a682808e271610c1cf2cec6a6f5
[ "Apache-2.0" ]
null
null
null
IMService/imsservice/src/main/resources/data/generate_es_user_docs.py
helenyu18/blue-marlin
668985fad1993a682808e271610c1cf2cec6a6f5
[ "Apache-2.0" ]
null
null
null
IMService/imsservice/src/main/resources/data/generate_es_user_docs.py
helenyu18/blue-marlin
668985fad1993a682808e271610c1cf2cec6a6f5
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, Futurewei Technologies # # 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 Lice...
35.262712
228
0.637106
bbfd6451fa1f80bc635734f661d56a4876e31f94
184
py
Python
aerende/__init__.py
Autophagy/recall
1386f2d74b6cb8b3ea52897f00a6e47d8154e3a8
[ "MIT" ]
10
2019-01-15T00:37:18.000Z
2020-09-01T04:59:26.000Z
aerende/__init__.py
Autophagy/recall
1386f2d74b6cb8b3ea52897f00a6e47d8154e3a8
[ "MIT" ]
1
2018-12-22T19:59:03.000Z
2019-04-04T14:55:37.000Z
aerende/__init__.py
Autophagy/recall
1386f2d74b6cb8b3ea52897f00a6e47d8154e3a8
[ "MIT" ]
1
2021-03-30T13:47:54.000Z
2021-03-30T13:47:54.000Z
# -*- coding: utf-8 -*- __title__ = "aerende" __author__ = "Mika Naylor (Autophagy)" __license__ = "MIT" __version__ = (0, 2, 0) version = "%s.%s.%s" % __version__ title = __title__
18.4
38
0.641304
abd268908046dfe13beb09a378149cc953106cc0
2,949
py
Python
codes/course7/demo405.py
BigShuang/big-shuang-python-introductory-course
c4fd1343c4c539567180072c749b68bda7c28075
[ "MIT" ]
null
null
null
codes/course7/demo405.py
BigShuang/big-shuang-python-introductory-course
c4fd1343c4c539567180072c749b68bda7c28075
[ "MIT" ]
null
null
null
codes/course7/demo405.py
BigShuang/big-shuang-python-introductory-course
c4fd1343c4c539567180072c749b68bda7c28075
[ "MIT" ]
null
null
null
class Person: def __init__(self, hp, attack, defence): self.hp = hp self.attack = attack self.defence = defence def hit(self, other): damage = self.attack - other.defence if damage > 0: other.hp -= damage def is_alive(self): return self.hp > 0 ...
23.592
86
0.519159
68208583509ae8383f91c28996b67bbe02ec1a4f
972
py
Python
src/pymor/tools/frozendict.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
src/pymor/tools/frozendict.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
src/pymor/tools/frozendict.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2016 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) # The following implementation is based on # http://code.activestate.com/recipes/414283-frozen-dic...
30.375
77
0.68107
50ca69a40d50b5777ec0079851968c1538f4b081
23,203
py
Python
src/genie/libs/parser/iosxr/show_eigrp.py
kacann/genieparser
76e19003199c393c59a33546726de3ff5486da80
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxr/show_eigrp.py
kacann/genieparser
76e19003199c393c59a33546726de3ff5486da80
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxr/show_eigrp.py
kacann/genieparser
76e19003199c393c59a33546726de3ff5486da80
[ "Apache-2.0" ]
1
2021-07-07T18:07:56.000Z
2021-07-07T18:07:56.000Z
''' show_eigrp.py IOSXR parser for the following commands * 'show eigrp ipv4 neighbors' * 'show eigrp ipv4 vrf {vrf} neighbors' * 'show eigrp ipv6 neighbors' * 'show eigrp ipv6 vrf {vrf} neighbors' * 'show eigrp ipv4 neighbors detail' * 'show eigrp ipv4 vrf {vrf} neighbors detail' ...
39.663248
90
0.423566
e28c67d5442a0603d8391b7e36b29ecea7ae1986
31,490
py
Python
hata/ext/command_utils/choose_menu.py
asleep-cult/hata
d6175edf12b1775098b8b0912f98a1fef2e31760
[ "0BSD" ]
null
null
null
hata/ext/command_utils/choose_menu.py
asleep-cult/hata
d6175edf12b1775098b8b0912f98a1fef2e31760
[ "0BSD" ]
null
null
null
hata/ext/command_utils/choose_menu.py
asleep-cult/hata
d6175edf12b1775098b8b0912f98a1fef2e31760
[ "0BSD" ]
1
2021-04-13T00:53:48.000Z
2021-04-13T00:53:48.000Z
# -*- coding: utf-8 -*- __all__ = ('ChooseMenu', ) from ...backend.futures import Task from ...discord.client_core import KOKORO from ...discord.emoji import BUILTIN_EMOJIS from ...discord.parsers import InteractionEvent from ...discord.message import Message from ...discord.channel import ChannelTextBase from ...disc...
43.980447
120
0.489965
f8af8756e1df706660a4d4e5c0a7b1ef9ef1e2d7
25,765
py
Python
yolov3/yolov4.py
5TechG-IT/5tg_ml_realTimeHumanDetection
d1fa9ee8f9602d8f14eb348036f17191c7d36b01
[ "MIT" ]
null
null
null
yolov3/yolov4.py
5TechG-IT/5tg_ml_realTimeHumanDetection
d1fa9ee8f9602d8f14eb348036f17191c7d36b01
[ "MIT" ]
null
null
null
yolov3/yolov4.py
5TechG-IT/5tg_ml_realTimeHumanDetection
d1fa9ee8f9602d8f14eb348036f17191c7d36b01
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow.keras.layers import Conv2D, Input, LeakyReLU, ZeroPadding2D, BatchNormalization, MaxPool2D from tensorflow.keras.regularizers import l2 from yolov3.configs import * STRIDES = np.array(YOLO_STRIDES) ANCHORS = (np.array(YOLO_ANCHORS).T/STRIDES).T...
45.201754
155
0.645954
e805211ad3f483682aee21facd5a3d5979a0dd91
530
py
Python
restaurateur/urls.py
FaHoLo/Star_burger
e0d13400a9bd3f8d7427f62dbc6375ca275ee158
[ "MIT" ]
null
null
null
restaurateur/urls.py
FaHoLo/Star_burger
e0d13400a9bd3f8d7427f62dbc6375ca275ee158
[ "MIT" ]
null
null
null
restaurateur/urls.py
FaHoLo/Star_burger
e0d13400a9bd3f8d7427f62dbc6375ca275ee158
[ "MIT" ]
1
2021-06-25T21:47:34.000Z
2021-06-25T21:47:34.000Z
from django.urls import path from django.shortcuts import redirect from . import views app_name = "restaurateur" urlpatterns = [ path('', lambda request: redirect('restaurateur:ProductsView')), path('products/', views.view_products, name="ProductsView"), path('restaurants/', views.view_restaurants, nam...
26.5
72
0.70566
846afd7b9018d603bc640de39444e34402aeda91
337
py
Python
doc/pyplots/annotation_basic.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
16
2016-06-14T19:45:35.000Z
2020-11-30T19:02:58.000Z
doc/pyplots/annotation_basic.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
7
2015-05-08T19:36:25.000Z
2015-06-30T15:32:17.000Z
doc/pyplots/annotation_basic.py
pierre-haessig/matplotlib
0d945044ca3fbf98cad55912584ef80911f330c6
[ "MIT", "PSF-2.0", "BSD-3-Clause" ]
14
2015-10-05T04:15:46.000Z
2020-06-11T18:06:02.000Z
import numpy as np import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) t = np.arange(0.0, 5.0, 0.01) s = np.cos(2*np.pi*t) line, = ax.plot(t, s, lw=2) ax.annotate('local max', xy=(2, 1), xytext=(3, 1.5), arrowprops=dict(facecolor='black', shrink=0.05), ) ax.set_ylim(...
19.823529
60
0.602374
e05e9cf02d33b705f9c5dca07e99d1c309de8d51
3,597
py
Python
ax/modelbridge/transforms/int_range_to_choice.py
sparks-baird/Ax
57ba8714902ac218eb87dc2f90090678aa307a43
[ "MIT" ]
null
null
null
ax/modelbridge/transforms/int_range_to_choice.py
sparks-baird/Ax
57ba8714902ac218eb87dc2f90090678aa307a43
[ "MIT" ]
null
null
null
ax/modelbridge/transforms/int_range_to_choice.py
sparks-baird/Ax
57ba8714902ac218eb87dc2f90090678aa307a43
[ "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, Set from ax.core.observation import ObservationData, Observa...
42.821429
88
0.624409
9cb50af21a2fe3cc181aae2512b98c0bce169aca
915
py
Python
read_tsip.py
ZigmundRat/python-TSIP
79414f212e0253716298f14a22f29a124e48fb51
[ "BSD-2-Clause" ]
7
2015-05-06T13:06:53.000Z
2019-12-11T11:05:25.000Z
read_tsip.py
ZigmundRat/python-TSIP
79414f212e0253716298f14a22f29a124e48fb51
[ "BSD-2-Clause" ]
35
2015-06-17T21:51:07.000Z
2021-12-07T20:05:25.000Z
read_tsip.py
ZigmundRat/python-TSIP
79414f212e0253716298f14a22f29a124e48fb51
[ "BSD-2-Clause" ]
10
2015-08-12T09:40:12.000Z
2022-02-09T10:58:12.000Z
#!/usr/bin/env python """ Read TSIP from a device of file. (c) Markus Juenemann, 2015 """ import sys import os.path import serial import tsip import time import binascii import logging logging.basicConfig(level=logging.INFO) def help(): sys.stderr.write("%s <file|device> [<baudrate>]\n") sys.exit(1) de...
15
59
0.549727
0cbd5b8b125dc48356cc1239cde6c2558e689021
3,032
py
Python
silicoin/rpc/rpc_client.py
zcomputerwiz/silicoin-light-wallet
1cdc3784effec229cc841a04655078b1d9913d33
[ "Apache-2.0" ]
null
null
null
silicoin/rpc/rpc_client.py
zcomputerwiz/silicoin-light-wallet
1cdc3784effec229cc841a04655078b1d9913d33
[ "Apache-2.0" ]
null
null
null
silicoin/rpc/rpc_client.py
zcomputerwiz/silicoin-light-wallet
1cdc3784effec229cc841a04655078b1d9913d33
[ "Apache-2.0" ]
null
null
null
import asyncio from ssl import SSLContext from typing import Dict, List, Optional, Any import aiohttp from silicoin.server.server import NodeType, ssl_context_for_client from silicoin.server.ssl_context import private_ssl_ca_paths from silicoin.types.blockchain_format.sized_bytes import bytes32 from silicoin.util.byt...
39.894737
115
0.690633
ee7d925680b56ae9b54ef367d34fb6f134949207
426
py
Python
rdd/WordCount.py
shubozhang/pyspark-tutorial
244f69bc75ad4238a00151dc7802bbb63e6f35e1
[ "MIT" ]
null
null
null
rdd/WordCount.py
shubozhang/pyspark-tutorial
244f69bc75ad4238a00151dc7802bbb63e6f35e1
[ "MIT" ]
null
null
null
rdd/WordCount.py
shubozhang/pyspark-tutorial
244f69bc75ad4238a00151dc7802bbb63e6f35e1
[ "MIT" ]
null
null
null
from pyspark import SparkContext, SparkConf if __name__ == "__main__": conf = SparkConf().setAppName("word count").setMaster("local[3]") sc = SparkContext(conf = conf) lines = sc.textFile("in/word_count.text") words = lines.flatMap(lambda line: line.split(" ")) wordCounts = words.cou...
26.625
69
0.629108
f8ec40a4a91fd3dd2ea6050e42a1b2fbb20d26f9
2,773
py
Python
yatube/posts/tests/test_forms.py
vlad7632/hw03_forms
6a4d212ac3753b61513bf1e20931990655a2e4d1
[ "MIT" ]
null
null
null
yatube/posts/tests/test_forms.py
vlad7632/hw03_forms
6a4d212ac3753b61513bf1e20931990655a2e4d1
[ "MIT" ]
null
null
null
yatube/posts/tests/test_forms.py
vlad7632/hw03_forms
6a4d212ac3753b61513bf1e20931990655a2e4d1
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import Client, TestCase from django.urls import reverse from posts.forms import Post, PostForm from posts.models import Group, Post User = get_user_model() class PostFormTest(TestCase): @classmethod def setUpClass(cls): super().setUpClas...
30.811111
60
0.538406
68a4b5571803c8a3ab51ac4820427b976f34943c
156,155
py
Python
netbox/dcim/tests/test_filtersets.py
peteeckel/netbox
06cb7f35f1698f6a0b43014e8bebe37a97237308
[ "Apache-2.0" ]
1
2022-03-11T09:38:32.000Z
2022-03-11T09:38:32.000Z
netbox/dcim/tests/test_filtersets.py
peteeckel/netbox
06cb7f35f1698f6a0b43014e8bebe37a97237308
[ "Apache-2.0" ]
null
null
null
netbox/dcim/tests/test_filtersets.py
peteeckel/netbox
06cb7f35f1698f6a0b43014e8bebe37a97237308
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.models import User from django.test import TestCase from dcim.choices import * from dcim.filtersets import * from dcim.models import * from ipam.models import ASN, IPAddress, RIR from tenancy.models import Tenant, TenantGroup from utilities.choices import ColorChoices from utilities.testing im...
48.240655
390
0.644821
8031fae69c226f98a26544a13f909b1f9cb52871
536
py
Python
python/141_linked_list_cycle.py
Tyler314/leetcode
53aaee13adfb91ae2f85f2db0208ddd94d81f643
[ "MIT" ]
null
null
null
python/141_linked_list_cycle.py
Tyler314/leetcode
53aaee13adfb91ae2f85f2db0208ddd94d81f643
[ "MIT" ]
null
null
null
python/141_linked_list_cycle.py
Tyler314/leetcode
53aaee13adfb91ae2f85f2db0208ddd94d81f643
[ "MIT" ]
null
null
null
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def hasCycle(self, head): """ :type head: ListNode :rtype: bool """ if not head: return False ...
24.363636
36
0.496269
7b64dcc0445d600224b0b28414fb018d11bc5bc5
6,092
py
Python
troposphere/serverless.py
ridha/troposphere
4dc132c1816f1903ba71a27070c27fdb010f486c
[ "BSD-2-Clause" ]
null
null
null
troposphere/serverless.py
ridha/troposphere
4dc132c1816f1903ba71a27070c27fdb010f486c
[ "BSD-2-Clause" ]
null
null
null
troposphere/serverless.py
ridha/troposphere
4dc132c1816f1903ba71a27070c27fdb010f486c
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2017, Fernando Freire <fernando.freire@nike.com> # All rights reserved. # # See LICENSE file for full license. import types from . import AWSObject, AWSProperty from .awslambda import Environment, VPCConfig, validate_memory_size from .dynamodb import ProvisionedThroughput, SSESpecification from .s3 im...
24.764228
79
0.613592
84657645a40f507e88db6fc69aa43a19d2c14048
8,112
py
Python
waypoint_nav/src/encoder_waypoint_localization.py
marcinolokk/DTU-R3-ROS
310f7dc6fbd53b49504112aabc2d5cac4c768660
[ "BSD-3-Clause" ]
2
2018-09-19T08:39:51.000Z
2019-08-07T15:55:49.000Z
waypoint_nav/src/encoder_waypoint_localization.py
marcinolokk/DTU-R3-ROS
310f7dc6fbd53b49504112aabc2d5cac4c768660
[ "BSD-3-Clause" ]
null
null
null
waypoint_nav/src/encoder_waypoint_localization.py
marcinolokk/DTU-R3-ROS
310f7dc6fbd53b49504112aabc2d5cac4c768660
[ "BSD-3-Clause" ]
6
2018-06-08T12:12:16.000Z
2019-12-11T13:21:13.000Z
#!/usr/bin/env python import rospy import math from pyproj import Proj from R3_functions import quat_rot, fit_in_rad, debug_info from bisect import bisect_left # TF libraries import tf import tf2_ros import tf2_msgs.msg import tf2_geometry_msgs # ROS messages from std_msgs.msg import String from sensor_msgs.msg impo...
45.573034
226
0.727934
bd89e70ef0f1ae97faab6d60af612063a44f7849
3,865
py
Python
examples/debug_test.py
designer-edu/designer
9c5d004e934300a30fb6d3148f4db313b69057df
[ "MIT" ]
3
2022-01-21T00:08:02.000Z
2022-03-09T19:00:26.000Z
examples/debug_test.py
designer-edu/designer
9c5d004e934300a30fb6d3148f4db313b69057df
[ "MIT" ]
5
2022-02-20T15:44:34.000Z
2022-03-05T15:57:25.000Z
examples/debug_test.py
designer-edu/designer
9c5d004e934300a30fb6d3148f4db313b69057df
[ "MIT" ]
null
null
null
from designer import * import random from designer.objects.image import Image WATER_DROP_SPEED = 5 PLANE_SPEED = 5 set_window_title(None) World = { 'fires': [DesignerObject], 'drops': [DesignerObject], 'plane': DesignerObject, 'score': int, 'counter': DesignerObject } def create_world(): pl...
24.15625
83
0.604916
eb91e56fffaadff5ef800a4db07ff524a64d3b95
131
py
Python
estimation/estimate_data.py
AnonTendim/si-library
f5f66e27b8db245c9f77c993bb1c1a38b1231d1d
[ "MIT" ]
1
2022-03-15T00:24:08.000Z
2022-03-15T00:24:08.000Z
estimation/estimate_data.py
AnonTendim/si-library
f5f66e27b8db245c9f77c993bb1c1a38b1231d1d
[ "MIT" ]
null
null
null
estimation/estimate_data.py
AnonTendim/si-library
f5f66e27b8db245c9f77c993bb1c1a38b1231d1d
[ "MIT" ]
1
2021-12-27T18:47:27.000Z
2021-12-27T18:47:27.000Z
import utils.diagnosis_utils def main(): path = 'data/' filename = 'sample_input' # TODO if __name__ == "__main__": main()
14.555556
28
0.664122
c9be83e932dedc42be6a3e3928a703831d590ec6
814
py
Python
Bugscan_exploits-master/exp_list/exp-560.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
11
2020-05-30T13:53:49.000Z
2021-03-17T03:20:59.000Z
Bugscan_exploits-master/exp_list/exp-560.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-13T03:25:18.000Z
2020-07-21T06:24:16.000Z
Bugscan_exploits-master/exp_list/exp-560.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-30T13:53:51.000Z
2020-12-01T21:44:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ POC Name : Joomla Spider Form Maker <=3.4 SQL References: http://www.exploit-db.com/exploits/34637/ Author : ko0zhi """ def assign(service, arg): if service == "joomla": return True, arg def audit(arg): payload = '/index.php?optio...
35.391304
233
0.652334
0be655fcbc69d87da1ec9717e667570932a1848d
1,952
py
Python
temas/Python3/correctores/listas/listas1.py
emartinm/TutorialesInteractivos
c0ef4d2c9449ea94e9a0ee4169faad5e47c874bc
[ "MIT" ]
2
2016-12-13T12:29:15.000Z
2017-02-09T11:06:24.000Z
temas/Python3/correctores/listas/listas1.py
emartinm/TutorialesInteractivos
c0ef4d2c9449ea94e9a0ee4169faad5e47c874bc
[ "MIT" ]
null
null
null
temas/Python3/correctores/listas/listas1.py
emartinm/TutorialesInteractivos
c0ef4d2c9449ea94e9a0ee4169faad5e47c874bc
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import sys from correctores.common.corrector_funciones import corrector_funciones ######################################################################## #### Esto es lo que hay que cambiar en cada problema: #### #### - epsilon: para comparar floats y complex, si lo necesitas ...
26.739726
101
0.512807
85b34771ebed60fe968fd1aab89d6d20c6ef783d
1,001
py
Python
generator/group.py
Margoburrito/python_training_hw
836c4445f1821bac4df76418a1c8178d18b616c1
[ "Apache-2.0" ]
null
null
null
generator/group.py
Margoburrito/python_training_hw
836c4445f1821bac4df76418a1c8178d18b616c1
[ "Apache-2.0" ]
null
null
null
generator/group.py
Margoburrito/python_training_hw
836c4445f1821bac4df76418a1c8178d18b616c1
[ "Apache-2.0" ]
null
null
null
from model.group import Group import random import string import os.path import jsonpickle import getopt import sys try: opts, args = getopt.getopt(sys.argv[1:], "n:f:", ["number of groups", "file"]) except getopt.GetoptError as err: getopt.usage() sys.exit(2) n = 5 f = "data/groups.json" for o, a in opt...
25.025
113
0.654346
368eb49f03f9e6eadabe92b733c0d09c13281ba9
841
py
Python
wechatpy/__init__.py
hunter007/wechatpy
5bd3587dde3a25d47bd72ba0b1949c2b47882fb7
[ "MIT" ]
null
null
null
wechatpy/__init__.py
hunter007/wechatpy
5bd3587dde3a25d47bd72ba0b1949c2b47882fb7
[ "MIT" ]
null
null
null
wechatpy/__init__.py
hunter007/wechatpy
5bd3587dde3a25d47bd72ba0b1949c2b47882fb7
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals import logging from wechatpy.client import WeChatClient # NOQA from wechatpy.component import ComponentOAuth, WeChatComponent # NOQA from wechatpy.exceptions import WeChatClientException, WeChatException, WeChatOAuthException, WeChatPayException # NOQA from ...
33.64
120
0.785969
be3add7fde6e211808e2d8fa8817664e248d06c5
97
py
Python
curso-em-video/resposta_usuario.py
mvrramos/Pogramacao-Python
4b289372aed3080c55a94beed3ea059619d51e48
[ "MIT" ]
null
null
null
curso-em-video/resposta_usuario.py
mvrramos/Pogramacao-Python
4b289372aed3080c55a94beed3ea059619d51e48
[ "MIT" ]
null
null
null
curso-em-video/resposta_usuario.py
mvrramos/Pogramacao-Python
4b289372aed3080c55a94beed3ea059619d51e48
[ "MIT" ]
null
null
null
# Substituir nome nome = input('Qual o seu nome?') print ('Olá', nome,'!Prazer em te conhecer')
19.4
44
0.670103
8b8a145022b79df3bd47a980ce6d18a5ffcf9bbb
1,540
py
Python
src/get_groundtruth.py
maumueller/ldp-jaccard
5b956a11b6bdbfebbc2e6c3ad730426ffaa6b071
[ "MIT" ]
1
2021-09-11T12:57:18.000Z
2021-09-11T12:57:18.000Z
src/get_groundtruth.py
maumueller/ldp-jaccard
5b956a11b6bdbfebbc2e6c3ad730426ffaa6b071
[ "MIT" ]
null
null
null
src/get_groundtruth.py
maumueller/ldp-jaccard
5b956a11b6bdbfebbc2e6c3ad730426ffaa6b071
[ "MIT" ]
null
null
null
from helpers import jaccard from dataset_reader import read_data import random import pickle import sys def to_set(X): Y = [set(x) for x in X.values()] return Y def bruteforce(X): distances = {} for i, x in enumerate(X): for j, y in enumerate(X): distances.setdefault(i, []).appen...
23.333333
75
0.597403
8eda6358c4f36029757b473193f92cb9bfc3af2a
3,178
py
Python
main.py
yash935/Discord-YouTube-Notifier
138164923380d90b30c4eb70d3f34b59a270d53d
[ "MIT" ]
null
null
null
main.py
yash935/Discord-YouTube-Notifier
138164923380d90b30c4eb70d3f34b59a270d53d
[ "MIT" ]
null
null
null
main.py
yash935/Discord-YouTube-Notifier
138164923380d90b30c4eb70d3f34b59a270d53d
[ "MIT" ]
null
null
null
import discord import time import asyncio import sys import os from Implementation import YouTuber from config import Config config = Config('config.yml') client = discord.Client() youtubers = config.getYouTubersList() if (config.getYouTubersNr() != 0) else sys.exit() if (config.getDiscordChannelNr() == 0):...
41.272727
195
0.592196
bbce2c403c6f555de8a6fb0c1df763953862b012
2,954
py
Python
google-trainer-code-only/train.py
teogenesmoura/pesquisaGoogle
6f3d5e90a316ada9a7060097da20f6b341b82ec4
[ "MIT" ]
null
null
null
google-trainer-code-only/train.py
teogenesmoura/pesquisaGoogle
6f3d5e90a316ada9a7060097da20f6b341b82ec4
[ "MIT" ]
null
null
null
google-trainer-code-only/train.py
teogenesmoura/pesquisaGoogle
6f3d5e90a316ada9a7060097da20f6b341b82ec4
[ "MIT" ]
null
null
null
import sys import csv import os # from subprocess import call from subprocess import Popen, PIPE, STDOUT import datetime now = datetime.datetime.strftime(datetime.datetime.now(), '%Y%m%d%H%M') folder = now + '-training' users_filename = 'input/users-prod.csv' f = open(users_filename, 'r') print('Reading %s file' % ...
29.247525
145
0.658091
1f2379e3e17b3da850cf5cc83694299db334bbbe
266
py
Python
hmtl/training/metrics/__init__.py
rahular/joint-coref-srl
cd85fb4e11af1a1ea400ed657d0a4511c1d6c6be
[ "MIT" ]
null
null
null
hmtl/training/metrics/__init__.py
rahular/joint-coref-srl
cd85fb4e11af1a1ea400ed657d0a4511c1d6c6be
[ "MIT" ]
null
null
null
hmtl/training/metrics/__init__.py
rahular/joint-coref-srl
cd85fb4e11af1a1ea400ed657d0a4511c1d6c6be
[ "MIT" ]
null
null
null
# coding: utf-8 from hmtl.training.metrics.relation_f1_measure import RelationF1Measure from hmtl.training.metrics.conll_coref_full_scores import ConllCorefFullScores from hmtl.training.metrics.accuracy import Accuracy from hmtl.training.metrics.f1_score import F1
38
78
0.868421
d1fe222808ca4d706df3b3dc7f5605463fd2a300
1,420
py
Python
snownlp/seg/seg.py
erning/snownlp
90c07d31269421d0868f34b37868380d44e034b6
[ "MIT" ]
1
2017-03-23T01:52:24.000Z
2017-03-23T01:52:24.000Z
snownlp/seg/seg.py
erning/snownlp
90c07d31269421d0868f34b37868380d44e034b6
[ "MIT" ]
null
null
null
snownlp/seg/seg.py
erning/snownlp
90c07d31269421d0868f34b37868380d44e034b6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals import codecs from ..utils.tnt import TnT from .y09_2047 import CharacterBasedGenerativeModel class Seg(object): def __init__(self, name='tnt'): if name == 'tnt': self.segger = TnT() ...
24.482759
59
0.505634
e4e93279b2808be757e128f9b6d703bff752725a
9,674
py
Python
unit_tests/logging/test_metric.py
Ofekmeister/google-cloud-python
07dd51bc447beca67b8da1c66f1dfb944ef70418
[ "Apache-2.0" ]
null
null
null
unit_tests/logging/test_metric.py
Ofekmeister/google-cloud-python
07dd51bc447beca67b8da1c66f1dfb944ef70418
[ "Apache-2.0" ]
null
null
null
unit_tests/logging/test_metric.py
Ofekmeister/google-cloud-python
07dd51bc447beca67b8da1c66f1dfb944ef70418
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
38.388889
77
0.658569
7dac23a2213d1fa709753bc3c927ab486417fce3
1,623
py
Python
mosaic/simulation/rules.py
JohnKurian/mosaic
bc985640844e10b9aded478d6ef7a5f286ab2d82
[ "BSD-3-Clause" ]
6
2018-09-17T13:27:46.000Z
2021-09-03T15:46:15.000Z
mosaic/simulation/rules.py
JohnKurian/mosaic
bc985640844e10b9aded478d6ef7a5f286ab2d82
[ "BSD-3-Clause" ]
null
null
null
mosaic/simulation/rules.py
JohnKurian/mosaic
bc985640844e10b9aded478d6ef7a5f286ab2d82
[ "BSD-3-Clause" ]
2
2019-11-21T13:17:11.000Z
2020-11-30T03:32:41.000Z
class BaseRule(): def __init__(self, applied_to = []): self.applied_to = applied_to def test(self, list_nodes = []): raise NotImplemented() class DependanceRule(BaseRule): def __init__(self, applied_to = [], parent = None): super(DependanceRule, self).__init__(applied_to=applied_t...
30.622642
89
0.60382
5a52341673c0bafe099d95b4e2f74733a21001f7
3,164
py
Python
tests/test_creation.py
TobiasSkovgaardJepsen/cookiecutter-data-science-research
6505e7d379c56184d55351d9f3610269a6b31ae6
[ "MIT" ]
null
null
null
tests/test_creation.py
TobiasSkovgaardJepsen/cookiecutter-data-science-research
6505e7d379c56184d55351d9f3610269a6b31ae6
[ "MIT" ]
11
2018-09-18T08:05:20.000Z
2018-11-15T12:31:57.000Z
tests/test_creation.py
TobiasSkovgaardJepsen/cookiecutter-data-science-research
6505e7d379c56184d55351d9f3610269a6b31ae6
[ "MIT" ]
null
null
null
import os import pytest from subprocess import check_output from conftest import system_check def no_curlies(filepath): """ Utility to make sure no curly braces appear in a file. That is, was jinja able to render everthing? """ with open(filepath, 'r') as f: data = f.read() template_s...
29.027523
78
0.564159
7bf6e7a308f937e7eb401f28fae9ffaca6bb2088
764
py
Python
python全栈/day40/day40-1pymysql的查询语句操作.py
Ringo-li/python_exercise_100
2c6c42b84a88ffbbac30c67ffbd7bad3418eda14
[ "MIT" ]
null
null
null
python全栈/day40/day40-1pymysql的查询语句操作.py
Ringo-li/python_exercise_100
2c6c42b84a88ffbbac30c67ffbd7bad3418eda14
[ "MIT" ]
null
null
null
python全栈/day40/day40-1pymysql的查询语句操作.py
Ringo-li/python_exercise_100
2c6c42b84a88ffbbac30c67ffbd7bad3418eda14
[ "MIT" ]
null
null
null
# 1.导入包 import pymysql if __name__ == "__main__": # 2.创建连接对象 conn = pymysql.connect(host="192.168.33.13", port = 3306, user = 'root', password = 'mysql', database = 'students', ...
21.222222
51
0.477749
2f264c2a13cb62173a4cd3b38e58cfa6f208e893
5,942
py
Python
evaluate_new-sample.py
edsonjunior14/mp_classification
dafbec182afc6e787911ec9cf0948a472477c368
[ "MIT" ]
5
2021-08-31T17:45:04.000Z
2022-01-14T18:40:08.000Z
evaluate_new-sample.py
edsonjunior14/mp_classification
dafbec182afc6e787911ec9cf0948a472477c368
[ "MIT" ]
null
null
null
evaluate_new-sample.py
edsonjunior14/mp_classification
dafbec182afc6e787911ec9cf0948a472477c368
[ "MIT" ]
3
2021-09-15T09:13:46.000Z
2022-03-09T09:17:28.000Z
# -*- coding: utf-8 -*- """ Created on Tue Jul 13 19:55:56 2021 @author: scien """ #Standard packages import os import numpy as np import pandas as pd #Graphics packages from matplotlib import pyplot as plt #ML modules from sklearn.model_selection import train_test_split from sklearn.preprocessing import LabelEncod...
28.985366
79
0.610401
7f0833abf1d427faf9adfed4404f5d616cae8b17
4,065
py
Python
emulation_system/emulation_system/compose_file_creator/errors.py
Opentrons/opentrons-emulation
aee3b362ef47190b35a1a99d040f5d87800e740b
[ "Apache-2.0" ]
3
2022-02-15T23:58:01.000Z
2022-03-17T19:32:15.000Z
emulation_system/emulation_system/compose_file_creator/errors.py
Opentrons/opentrons-emulation
aee3b362ef47190b35a1a99d040f5d87800e740b
[ "Apache-2.0" ]
23
2021-11-17T17:55:22.000Z
2022-03-29T19:15:20.000Z
emulation_system/emulation_system/compose_file_creator/errors.py
Opentrons/opentrons-emulation
aee3b362ef47190b35a1a99d040f5d87800e740b
[ "Apache-2.0" ]
null
null
null
"""One-stop shop for all errors.""" from typing import List, Set from emulation_system.compose_file_creator.settings.config_file_settings import Hardware class MountError(Exception): """Base mount exception.""" ... class NoMountsDefinedError(MountError): """Exception thrown when you try to load a mou...
31.757813
114
0.664207
5e7d3cac92a1a0f1bb8d7e3cd2e7224b16a485de
13,741
py
Python
bip39validator/__main__.py
ZenulAbidin/bip39validator
b78f2db6f46b56b408eef3a51e921e96247a9b46
[ "MIT" ]
3
2021-02-11T20:37:56.000Z
2021-06-11T03:29:15.000Z
bip39validator/__main__.py
ZenulAbidin/bip39validator
b78f2db6f46b56b408eef3a51e921e96247a9b46
[ "MIT" ]
4
2020-10-04T23:11:08.000Z
2020-12-23T00:32:52.000Z
bip39validator/__main__.py
ZenulAbidin/bip39validator
b78f2db6f46b56b408eef3a51e921e96247a9b46
[ "MIT" ]
null
null
null
# BIP39 Wordlist Validator - A tool to validate BIP39 wordlists in Latin # languages. # __main__.py: Main program # Copyright 2020 Ali Sherief # # 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 Softwar...
46.265993
106
0.582345
337818a37dd469363db2a54f88cfa5b3a3c50d1b
44,815
py
Python
src/benchmarks/gc/src/commonlib/bench_file.py
yuchong-pan/performance
be6e084cd07598c9276baecf6abb91d0d78e734c
[ "MIT" ]
null
null
null
src/benchmarks/gc/src/commonlib/bench_file.py
yuchong-pan/performance
be6e084cd07598c9276baecf6abb91d0d78e734c
[ "MIT" ]
null
null
null
src/benchmarks/gc/src/commonlib/bench_file.py
yuchong-pan/performance
be6e084cd07598c9276baecf6abb91d0d78e734c
[ "MIT" ]
null
null
null
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the MIT license. # See the LICENSE file in the project root for more information. """ A 'foo.yaml' file stores a specification of the tests to run. These may be generated by the `generate` command of `...
31.515471
100
0.674729
2f6cfdca2157309f9f6e99240875b43502de7847
3,192
py
Python
profiles_project/settings.py
evansjethro/profiles-rest-api
ae07be9ce5d48f63a96afed772db71e4488664af
[ "MIT" ]
null
null
null
profiles_project/settings.py
evansjethro/profiles-rest-api
ae07be9ce5d48f63a96afed772db71e4488664af
[ "MIT" ]
4
2021-03-19T01:30:22.000Z
2021-06-10T18:49:13.000Z
profiles_project/settings.py
evansjethro/profiles-rest-api
ae07be9ce5d48f63a96afed772db71e4488664af
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 3.0.4. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ imp...
25.741935
91
0.698308
35f4c2e254621d07c3b86b8a2565f9ce2ebde682
327
py
Python
setup.py
gsmadi/trinity-sentry-plugin
64f622eee97fe072240711cace13ff232565d2ff
[ "MIT" ]
null
null
null
setup.py
gsmadi/trinity-sentry-plugin
64f622eee97fe072240711cace13ff232565d2ff
[ "MIT" ]
null
null
null
setup.py
gsmadi/trinity-sentry-plugin
64f622eee97fe072240711cace13ff232565d2ff
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup( name='trinity-sentry-plugin', version='0.1.0', py_modules=['sentry_plugin'], entry_points={ 'trinity.plugins': 'sentry_plugin=sentry_plugin:SentryPlugin', }, install_requires=[ 'sentry-sdk==0.7.9' ...
21.8
70
0.620795
80c91c4b51a96e370a419f81acfe2ee024f7e31b
8,282
py
Python
cinder/volume/drivers/dell_emc/unity/driver.py
j-griffith/cinder
902719a46ed9b8f84f9753bd624ad59b5a968134
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/dell_emc/unity/driver.py
j-griffith/cinder
902719a46ed9b8f84f9753bd624ad59b5a968134
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/dell_emc/unity/driver.py
j-griffith/cinder
902719a46ed9b8f84f9753bd624ad59b5a968134
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 Dell Inc. or its subsidiaries. # 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 requi...
34.22314
79
0.636923
a8932ec26cfa3a12800a3dba3021888658994583
3,638
py
Python
host/greatfet/glitchkit/usb.py
grvvy/greatfet
e8098307960a60e34c27ed2903f7abc2252b4cce
[ "BSD-3-Clause" ]
328
2015-08-30T03:10:50.000Z
2022-03-31T12:47:48.000Z
host/greatfet/glitchkit/usb.py
grvvy/greatfet
e8098307960a60e34c27ed2903f7abc2252b4cce
[ "BSD-3-Clause" ]
231
2017-02-11T23:21:31.000Z
2022-03-27T23:07:43.000Z
host/greatfet/glitchkit/usb.py
grvvy/greatfet
e8098307960a60e34c27ed2903f7abc2252b4cce
[ "BSD-3-Clause" ]
94
2015-09-27T15:01:04.000Z
2022-02-26T15:41:20.000Z
# # This file is part of GreatFET # from __future__ import absolute_import import usb import time import codecs from .base import GlitchKitModule from ..protocol import vendor_requests # Quirk constant that helps us identify libusb's pipe errors, which bubble # up as generic USBErrors with errno 60 on affected pla...
28.20155
134
0.653931
8b06d8fc5ed8b8105fc46a7d5af782f9dbeb66fa
39,808
py
Python
fuji_server/controllers/fair_check.py
EOSC-synergy/FUJI_pipeline.sqaaas
589e8cc831c58d985076bf924b4ce1571c87209b
[ "MIT" ]
null
null
null
fuji_server/controllers/fair_check.py
EOSC-synergy/FUJI_pipeline.sqaaas
589e8cc831c58d985076bf924b4ce1571c87209b
[ "MIT" ]
null
null
null
fuji_server/controllers/fair_check.py
EOSC-synergy/FUJI_pipeline.sqaaas
589e8cc831c58d985076bf924b4ce1571c87209b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # MIT License # # Copyright (c) 2020 PANGAEA (https://www.pangaea.de/) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limita...
54.382514
159
0.665293
ba89c76b9ab60463cfdd24a54b619b97f7995b30
2,779
py
Python
ibis/backends/base/sql/alchemy/translator.py
harsharaj96/ibis
ab3de68eb6596eca5cc7cba8c3fdb583f6143a4e
[ "Apache-2.0" ]
null
null
null
ibis/backends/base/sql/alchemy/translator.py
harsharaj96/ibis
ab3de68eb6596eca5cc7cba8c3fdb583f6143a4e
[ "Apache-2.0" ]
null
null
null
ibis/backends/base/sql/alchemy/translator.py
harsharaj96/ibis
ab3de68eb6596eca5cc7cba8c3fdb583f6143a4e
[ "Apache-2.0" ]
1
2017-11-30T13:32:23.000Z
2017-11-30T13:32:23.000Z
import ibis import ibis.expr.operations as ops import ibis.expr.types as ir from ibis import util from ibis.backends.base.sql.compiler import ExprTranslator, QueryContext from .datatypes import ibis_type_to_sqla, to_sqla_type from .query_builder import to_sqlalchemy from .registry import fixed_arity, sqlalchemy_operat...
28.649485
78
0.68154
e16c3b49d8607d317962611838154deae984da20
482
py
Python
make-your-own-text-adventure-with-python/homework/automobile.py
learning-game-development/learning-python-game-development
326b72eadab0bfb14f70f295b492f76d139dde33
[ "Unlicense" ]
null
null
null
make-your-own-text-adventure-with-python/homework/automobile.py
learning-game-development/learning-python-game-development
326b72eadab0bfb14f70f295b492f76d139dde33
[ "Unlicense" ]
null
null
null
make-your-own-text-adventure-with-python/homework/automobile.py
learning-game-development/learning-python-game-development
326b72eadab0bfb14f70f295b492f76d139dde33
[ "Unlicense" ]
null
null
null
class Vehicle: def __init__(self): raise NotImplementedError("Do not create raw Vehicle objects.") def __str__(self): return "{} has {} wheels".format(self.name, self.wheels) class Motorcycle(Vehicle): def __init__(self, name): self.name = name self.wheels = 2 class Car(...
20.956522
71
0.63278
9dcc1021bb7510e147001bb10d64287fcb163850
1,504
py
Python
lib/aquilon/worker/commands/show_active_locks.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
7
2015-07-31T05:57:30.000Z
2021-09-07T15:18:56.000Z
lib/aquilon/worker/commands/show_active_locks.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
115
2015-03-03T13:11:46.000Z
2021-09-20T12:42:24.000Z
lib/aquilon/worker/commands/show_active_locks.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
13
2015-03-03T11:17:59.000Z
2021-09-09T09:16:41.000Z
# -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2008,2009,2010,2011,2012,2013,2015,2016 Contributor # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obt...
37.6
75
0.688165
dadafddbc6bf0eb3cdcc944880c03fb5f7107dde
92
py
Python
tests/modules/withenum.py
jjerphan/py2puml
b39dee92609440afea1301fe68c17f6cff5fa04f
[ "MIT" ]
null
null
null
tests/modules/withenum.py
jjerphan/py2puml
b39dee92609440afea1301fe68c17f6cff5fa04f
[ "MIT" ]
null
null
null
tests/modules/withenum.py
jjerphan/py2puml
b39dee92609440afea1301fe68c17f6cff5fa04f
[ "MIT" ]
null
null
null
from enum import Enum class TimeUnit(Enum): DAYS = 'd' HOURS = 'h' MINUTE = 'm'
15.333333
21
0.576087
a7df81b887e5acb5f25243723afff2b5af7b93ed
124
py
Python
django_manager/urls.py
gitliuhao/django_manager
8eedbccff525ba187ac08561b3116b59174dbd5b
[ "MIT" ]
2
2018-05-03T02:25:14.000Z
2018-05-06T11:05:03.000Z
django_manager/urls.py
gitliuhao/django_manager
8eedbccff525ba187ac08561b3116b59174dbd5b
[ "MIT" ]
null
null
null
django_manager/urls.py
gitliuhao/django_manager
8eedbccff525ba187ac08561b3116b59174dbd5b
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'upload$', views.upload, name='upload'), ]
24.8
50
0.677419
62b1cdb6275604233260f915ee0581e91bce7bcf
4,896
py
Python
kubernetes_asyncio/client/models/core_v1_event_series.py
tomplus/kubernetes-asyncio
11c3eb4d50ae822545572aa7b8c15f7153f65a1c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/core_v1_event_series.py
tomplus/kubernetes-asyncio
11c3eb4d50ae822545572aa7b8c15f7153f65a1c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/core_v1_event_series.py
tomplus/kubernetes-asyncio
11c3eb4d50ae822545572aa7b8c15f7153f65a1c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.23.6 Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except Im...
30.222222
124
0.605188
6d59da701657159ec9a44c85d6c9fa8c6bed7d93
1,510
py
Python
test/test_parser_yaml.py
fschrader1992/python-odml
48d83b7a3d4514100649b2338d3b018ba1db03fd
[ "BSD-4-Clause" ]
null
null
null
test/test_parser_yaml.py
fschrader1992/python-odml
48d83b7a3d4514100649b2338d3b018ba1db03fd
[ "BSD-4-Clause" ]
null
null
null
test/test_parser_yaml.py
fschrader1992/python-odml
48d83b7a3d4514100649b2338d3b018ba1db03fd
[ "BSD-4-Clause" ]
null
null
null
import os import unittest import yaml from odml.tools import dict_parser from odml.tools.parser_utils import ParserException, InvalidVersionException class TestYAMLParser(unittest.TestCase): def setUp(self): dir_path = os.path.dirname(os.path.realpath(__file__)) self.basepath = os.path.join(dir_...
30.816327
76
0.684768
cb96d13bd64021fde5b0bbb2a972c35262e833a4
2,497
py
Python
posthog/api/decide.py
Kacppian/posthog
faa0696e3219f9162a3fd59501e126a7cd79ec8c
[ "MIT" ]
null
null
null
posthog/api/decide.py
Kacppian/posthog
faa0696e3219f9162a3fd59501e126a7cd79ec8c
[ "MIT" ]
null
null
null
posthog/api/decide.py
Kacppian/posthog
faa0696e3219f9162a3fd59501e126a7cd79ec8c
[ "MIT" ]
null
null
null
from django.conf import settings from django.http import JsonResponse, HttpRequest from django.views.decorators.csrf import csrf_exempt from typing import Optional, List, Any, Dict from posthog.utils import cors_response from urllib.parse import urlparse from posthog.models import FeatureFlag, Team import json import b...
32.428571
85
0.655186
ee9729140a851b030f09698e5c872875b5c5cfa6
191
py
Python
launch.py
DmitriyKhudiakov/Compressor_calc_data
d623e54d01c8f157a4aedc2b8cab6e1a1ff5e44d
[ "MIT" ]
null
null
null
launch.py
DmitriyKhudiakov/Compressor_calc_data
d623e54d01c8f157a4aedc2b8cab6e1a1ff5e44d
[ "MIT" ]
null
null
null
launch.py
DmitriyKhudiakov/Compressor_calc_data
d623e54d01c8f157a4aedc2b8cab6e1a1ff5e44d
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import QApplication from classes.MainWidget import MainWidget def start(): app = QApplication(sys.argv) win = MainWidget() sys.exit(app.exec_())
19.1
41
0.732984
ac6231b0727d4b0a0c7064a2e6755d3a3257f162
186
py
Python
API/app/main/schema/user_schema.py
Niewidzialny84/PathFighters
9cf9cfcde60cb5e57c5c68ba995c34955b78caf9
[ "MIT" ]
9
2021-08-19T16:57:13.000Z
2022-01-25T16:14:11.000Z
API/app/main/schema/user_schema.py
Niewidzialny84/PathFighters
9cf9cfcde60cb5e57c5c68ba995c34955b78caf9
[ "MIT" ]
29
2021-10-18T15:37:53.000Z
2022-01-26T08:28:37.000Z
API/app/main/schema/user_schema.py
Niewidzialny84/PathFighters
9cf9cfcde60cb5e57c5c68ba995c34955b78caf9
[ "MIT" ]
1
2022-01-19T01:53:11.000Z
2022-01-19T01:53:11.000Z
from .. import ma class UserSchema(ma.Schema): class Meta: fields = ('id', 'username', 'email', 'password') user_schema = UserSchema() users_schema = UserSchema(many=True)
23.25
56
0.666667
a555200e54ee7d49549a65611fec9b75e3fb3fa8
1,524
py
Python
FUNDASTORE/urls.py
GabrielB-07/FundaStore-cgb
b509a9743a651344b32dd7a40ab789f1db48e54b
[ "CC0-1.0" ]
null
null
null
FUNDASTORE/urls.py
GabrielB-07/FundaStore-cgb
b509a9743a651344b32dd7a40ab789f1db48e54b
[ "CC0-1.0" ]
null
null
null
FUNDASTORE/urls.py
GabrielB-07/FundaStore-cgb
b509a9743a651344b32dd7a40ab789f1db48e54b
[ "CC0-1.0" ]
null
null
null
"""FUNDASTORE URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/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-ba...
39.076923
81
0.736877
8744adf97536399d9779ff129157dc68ae2648d3
18,324
py
Python
bot_project/buzzbot/identity_controllers.py
pbarton666/buzz_bot
9f44c66e8ecb10e231f70989421f164d7a55029a
[ "MIT" ]
null
null
null
bot_project/buzzbot/identity_controllers.py
pbarton666/buzz_bot
9f44c66e8ecb10e231f70989421f164d7a55029a
[ "MIT" ]
null
null
null
bot_project/buzzbot/identity_controllers.py
pbarton666/buzz_bot
9f44c66e8ecb10e231f70989421f164d7a55029a
[ "MIT" ]
null
null
null
import turbogears as tg from turbogears import controllers, expose, flash, identity, widgets, validate, redirect, validators, error_handler from turbogears import * from cherrypy import request, response from datetime import datetime import time from string import join import random from sqlobject.sqlbuilder im...
49.126005
116
0.590482
cf79f13ad44ac716032680a899813140e9054a17
2,060
py
Python
fluss0r.py
tamasgal/fluss0r
6a006a8f9fd1b3abc60bec1bafb155a67100f225
[ "MIT" ]
null
null
null
fluss0r.py
tamasgal/fluss0r
6a006a8f9fd1b3abc60bec1bafb155a67100f225
[ "MIT" ]
null
null
null
fluss0r.py
tamasgal/fluss0r
6a006a8f9fd1b3abc60bec1bafb155a67100f225
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Fluss0r. Usage: fluss0r.py fluss0r.py [-i -s] fluss0r.py -h | --help fluss0r.py --version Options: -i Interactive session. -s Activate speech output. -h --help Show this screen. --version Show version. """ from __future__...
24.819277
73
0.621845
5f1b52b59d9db2c44fccb1f5cf6c3ef9de176595
2,679
py
Python
preprocessing/surf_map.py
sniafas/Features2d-demo
e18995f610a97bb9afcb29655fa82cc5decded82
[ "MIT" ]
null
null
null
preprocessing/surf_map.py
sniafas/Features2d-demo
e18995f610a97bb9afcb29655fa82cc5decded82
[ "MIT" ]
null
null
null
preprocessing/surf_map.py
sniafas/Features2d-demo
e18995f610a97bb9afcb29655fa82cc5decded82
[ "MIT" ]
null
null
null
#!/usr/bin/env python import subprocess import json from json_tricks.np import load if __name__ == '__main__': ## #----------------- # ## buildings = [] bestQuery = '' expBuildings = (subprocess.check_output(["ls surf_experiments/", "-x"], shell=True)) exp_path = "surf_experiments/" # Inlier Threshold acquired...
27.90625
85
0.633819
f6458bd8f65e8f0942242dd4a2cfb41748eb3ba1
5,735
py
Python
azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-07-23T08:59:24.000Z
2018-07-23T08:59:24.000Z
azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/azure_iaa_sclassic_compute_vm_protected_item.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.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 ...
51.205357
97
0.689451
362bae8cd1471781ad007519d81a9927002d7339
5,093
py
Python
Upscaled_data/upscaled_only_pts.py
HsKA-OSGIS/PostRep
6e35842067cf0f69d1c1c7b2e1d0731b6cdb550a
[ "MIT" ]
5
2018-12-02T21:12:16.000Z
2019-08-07T08:00:06.000Z
Upscaled_data/upscaled_only_pts.py
HsKA-OSGIS/PostRep
6e35842067cf0f69d1c1c7b2e1d0731b6cdb550a
[ "MIT" ]
null
null
null
Upscaled_data/upscaled_only_pts.py
HsKA-OSGIS/PostRep
6e35842067cf0f69d1c1c7b2e1d0731b6cdb550a
[ "MIT" ]
null
null
null
import shapefile import csv from random import uniform, random, choice from string import ascii_uppercase, ascii_lowercase from time import time initial_time = time() #----------------------------------------------------------------------------- #---------------------------- Functions -------------...
42.798319
153
0.564697
e03454bd59be4a31a926ce7307bc5d4af234c279
21,481
py
Python
Utils/CoQAUtils.py
mpandeydev/SDnetmod
c8cdf6150e3cd28330359a7d81df236729522a69
[ "MIT" ]
1
2019-04-03T18:30:53.000Z
2019-04-03T18:30:53.000Z
Utils/CoQAUtils.py
mpandeydev/SDnetmod
c8cdf6150e3cd28330359a7d81df236729522a69
[ "MIT" ]
null
null
null
Utils/CoQAUtils.py
mpandeydev/SDnetmod
c8cdf6150e3cd28330359a7d81df236729522a69
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import re import os import sys import random import string import logging import argparse import unicodedata from shutil import copyfile from datetime import datetime from collections import Counter from collections import defaultdi...
39.7061
120
0.539733
b150d8f00cabf318f3db41541b049673749dcce5
1,071
py
Python
spektral/transforms/degree.py
colliner/spektral
b776200fd1fa820f05b559f0c1c6265e0eca4894
[ "MIT" ]
null
null
null
spektral/transforms/degree.py
colliner/spektral
b776200fd1fa820f05b559f0c1c6265e0eca4894
[ "MIT" ]
null
null
null
spektral/transforms/degree.py
colliner/spektral
b776200fd1fa820f05b559f0c1c6265e0eca4894
[ "MIT" ]
null
null
null
import numpy as np from spektral.utils import one_hot class Degree(object): """ Concatenates to each node attribute the one-hot degree of the corresponding node. The adjacency matrix is expected to have integer entries and the degree is cast to integer before one-hot encoding. **Arguments**...
26.775
79
0.62465
9ae4614d807d6101de5e2d02b76b06e44c9a466f
1,068
py
Python
AutomatedTesting/Gem/PythonTests/Prefab/tests/PrefabBasicWorkflow_CreateAndDeletePrefab.py
NickR49/o3de
74d74050f2cd2f1c54fdfa2a9303c29d300adf34
[ "Apache-2.0", "MIT" ]
null
null
null
AutomatedTesting/Gem/PythonTests/Prefab/tests/PrefabBasicWorkflow_CreateAndDeletePrefab.py
NickR49/o3de
74d74050f2cd2f1c54fdfa2a9303c29d300adf34
[ "Apache-2.0", "MIT" ]
null
null
null
AutomatedTesting/Gem/PythonTests/Prefab/tests/PrefabBasicWorkflow_CreateAndDeletePrefab.py
NickR49/o3de
74d74050f2cd2f1c54fdfa2a9303c29d300adf34
[ "Apache-2.0", "MIT" ]
null
null
null
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ def PrefabBasicWorkflow_CreateAndDeletePrefab(): CAR_PREFAB_FILE_NAME = 'car_prefab' from editor_pyth...
31.411765
97
0.77809
bd0a492fae1f60a8ef3cf76f6bade7c2dcfcaff8
834
py
Python
Lecture.10/9.roman_add.py
joonion/coding-for-problem-solving
9f7a0b7e18803c58596899595dacc87a74b1b9d1
[ "MIT" ]
null
null
null
Lecture.10/9.roman_add.py
joonion/coding-for-problem-solving
9f7a0b7e18803c58596899595dacc87a74b1b9d1
[ "MIT" ]
null
null
null
Lecture.10/9.roman_add.py
joonion/coding-for-problem-solving
9f7a0b7e18803c58596899595dacc87a74b1b9d1
[ "MIT" ]
null
null
null
def to_arabic(roman): table = {"I":1, "V":5, "X":10, "L":50, "C":100, "D":500, "M":1000} n = len(roman) number = 0 for i in range(n): if i < n - 1 and table[roman[i]] < table[roman[i + 1]]: number -= table[roman[i]] else: number += table[roman[i]] return numb...
27.8
123
0.492806
55c11fd87124425f18cbdbc6bb1474e08897d5ca
4,221
py
Python
doc/conf.py
dsd-test-nupack-in-github-workflow/dsd
55b006323550eb32398b050ca1a3e71a26719709
[ "MIT" ]
2
2021-08-17T12:08:37.000Z
2021-11-02T05:57:55.000Z
doc/conf.py
dsd-test-nupack-in-github-workflow/dsd
55b006323550eb32398b050ca1a3e71a26719709
[ "MIT" ]
56
2020-11-19T19:39:16.000Z
2022-03-29T10:26:04.000Z
doc/conf.py
dsd-test-nupack-in-github-workflow/dsd
55b006323550eb32398b050ca1a3e71a26719709
[ "MIT" ]
2
2021-02-13T02:43:47.000Z
2022-03-29T02:53:53.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or module...
34.040323
143
0.688226
1f4664ac566cd1be4f688828426cb85c05590c35
2,013
py
Python
fabfile.py
c17r/aturan-calendar-bot
4854aa4af17da16aec8ac4cc11de09bffe2e7238
[ "MIT" ]
1
2022-01-11T06:03:56.000Z
2022-01-11T06:03:56.000Z
fabfile.py
c17r/aturan-calendar-bot
4854aa4af17da16aec8ac4cc11de09bffe2e7238
[ "MIT" ]
1
2021-02-10T02:53:27.000Z
2021-02-23T21:42:34.000Z
fabfile.py
c17r/aturan-calendar-bot
4854aa4af17da16aec8ac4cc11de09bffe2e7238
[ "MIT" ]
1
2022-01-11T06:03:59.000Z
2022-01-11T06:03:59.000Z
from datetime import datetime from fabric.api import task, env, settings, cd, sudo, run, local, put, path, shell_env server_user = 'aturan_calendar' stamp = datetime.now().strftime("v%Y%m%d%H%M%S") stamptar = server_user + "-" + stamp + ".tar" stampzip = stamptar + ".gz" env.stamp = stamp env.stamptar = stamptar env...
31.453125
160
0.584203
46ab2aa162ed6168ec4d79db5d73daacb4290d42
427
py
Python
app/Middleware/logger_middleware.py
psyphore/flask-phone-book
cceec3caabdeb03f260d37f3b55d5aa7a52c30c2
[ "MIT" ]
null
null
null
app/Middleware/logger_middleware.py
psyphore/flask-phone-book
cceec3caabdeb03f260d37f3b55d5aa7a52c30c2
[ "MIT" ]
2
2021-03-19T03:39:56.000Z
2021-06-08T20:28:03.000Z
app/Middleware/logger_middleware.py
psyphore/flask-phone-book
cceec3caabdeb03f260d37f3b55d5aa7a52c30c2
[ "MIT" ]
null
null
null
from time import time as timer from datetime import (datetime) from maya import (Datetime, when) class LoggerMiddleware(object): def __init__(self, app): self.app = app self.start = timer() self.end = None def __call__(self, environ, start_response): self.end = timer() - self.start print(f'> i...
30.5
77
0.690867
333a090f035762301ef17458734ba1df0971fbb3
897
py
Python
python/tests/set_replace/test_match.py
phcerdan/wolfram_model
a4dd26295df7cb995ce666007860ca86efa38e8a
[ "MIT" ]
12
2020-04-19T00:30:57.000Z
2021-12-20T02:24:35.000Z
python/tests/set_replace/test_match.py
SicachaMauricio/wolfram_model
a4dd26295df7cb995ce666007860ca86efa38e8a
[ "MIT" ]
5
2020-04-18T06:08:39.000Z
2020-05-24T14:47:29.000Z
python/tests/set_replace/test_match.py
SicachaMauricio/wolfram_model
a4dd26295df7cb995ce666007860ca86efa38e8a
[ "MIT" ]
4
2020-04-19T21:31:20.000Z
2022-02-11T19:47:00.000Z
import pytest import numpy as np import wolfram_model as wm def test_match_enums(): order_function = wm.matcher.ordering_function.RuleIndex print(order_function) order_direction = wm.matcher.ordering_direction.Normal print(order_direction) ordering_spec = [[order_function, order_direction]] def a...
30.931034
85
0.702341
299f0b24d01a62be63912fb06735373c88146133
22,378
py
Python
tests.py
ashishjayamohan/Tread
f812c48d27c6d9ca33e3579d7a74ee43d93df310
[ "MIT" ]
3
2020-09-15T19:42:04.000Z
2021-05-10T23:00:53.000Z
tests.py
ashishjayamohan/Tread
f812c48d27c6d9ca33e3579d7a74ee43d93df310
[ "MIT" ]
2
2020-09-17T02:49:05.000Z
2020-09-19T22:20:31.000Z
tests.py
ashishjayamohan/Tread
f812c48d27c6d9ca33e3579d7a74ee43d93df310
[ "MIT" ]
1
2020-09-15T19:00:04.000Z
2020-09-15T19:00:04.000Z
from pocha import describe, it import scripts.vectorization_functions as vf def assert_raises(*exceptions): def decorator(fn): def func_wrapper(*args, **kwargs): threw = False try: fn(*args, **kwargs) except exceptions: threw = True ...
38.318493
413
0.42582
c05a3725f71337d8fc849530bab62b79c047f69e
5,371
py
Python
genesis/utils/make_mask.py
leifdenby/genesis
3e4942eac74fb9c69d9b3feedfce5aa745e3bf9c
[ "BSD-3-Clause" ]
2
2019-12-18T15:39:06.000Z
2020-07-16T14:44:38.000Z
genesis/utils/make_mask.py
leifdenby/genesis
3e4942eac74fb9c69d9b3feedfce5aa745e3bf9c
[ "BSD-3-Clause" ]
2
2019-12-26T11:23:11.000Z
2020-07-22T10:04:45.000Z
genesis/utils/make_mask.py
leifdenby/genesis
3e4942eac74fb9c69d9b3feedfce5aa745e3bf9c
[ "BSD-3-Clause" ]
1
2019-12-18T16:48:39.000Z
2019-12-18T16:48:39.000Z
""" Create mask files which can be used elsewhere """ import argparse import inspect import os import xarray as xr # register a progressbar so we can see progress of dask'ed operations with xarray from dask.diagnostics import ProgressBar from . import mask_functions ProgressBar().register() OUT_FILENAME_FORMAT = "...
30.174157
82
0.587786
0189a0a202a5f97fe328b5ffb31e7d23c5baa424
4,252
py
Python
src/network/network_thread.py
insoPL/QtDraughts
62368e6523bf3dd50752ae5dffc65e946775f58d
[ "MIT" ]
null
null
null
src/network/network_thread.py
insoPL/QtDraughts
62368e6523bf3dd50752ae5dffc65e946775f58d
[ "MIT" ]
null
null
null
src/network/network_thread.py
insoPL/QtDraughts
62368e6523bf3dd50752ae5dffc65e946775f58d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import socket from PyQt5.QtCore import QThread, pyqtSignal import logging import nacl.utils import nacl.secret import nacl.hash from nacl.exceptions import CryptoError class _NetworkThread(QThread): got_connection = pyqtSignal() connection_error = pyqtSignal(str) new_msg = pyqtSig...
32.212121
78
0.5508
ef04807445887ef401cb4c8218bcd3c992d61ab5
23,609
py
Python
instabotai/ai.py
Chililove/instabotai
07cfbae22abf3c508d3ca13308149dc22991aeff
[ "Apache-2.0" ]
null
null
null
instabotai/ai.py
Chililove/instabotai
07cfbae22abf3c508d3ca13308149dc22991aeff
[ "Apache-2.0" ]
null
null
null
instabotai/ai.py
Chililove/instabotai
07cfbae22abf3c508d3ca13308149dc22991aeff
[ "Apache-2.0" ]
null
null
null
import os from instabot import Bot import argparse import time #import threading import random import sys, stat from mtcnn.mtcnn import MTCNN import cv2 #import json import random #import logging import shutil try: input = raw_input except NameError: pass COOKIES = {} bot = Bot(do_logout=True) class Bots(obj...
43.559041
194
0.540853
be3b7467b0888fe86f0901469e076b4b751c9973
25,484
py
Python
quasar/backend.py
qfizik/quasar
405cf60283be79adda59a6eed27fe866e2e18288
[ "Apache-2.0" ]
1
2020-07-15T16:01:27.000Z
2020-07-15T16:01:27.000Z
quasar/backend.py
qfizik/quasar
405cf60283be79adda59a6eed27fe866e2e18288
[ "Apache-2.0" ]
null
null
null
quasar/backend.py
qfizik/quasar
405cf60283be79adda59a6eed27fe866e2e18288
[ "Apache-2.0" ]
null
null
null
import numpy as np import collections import sortedcontainers from .pauli import Pauli, PauliExpectation, PauliString from .algebra import Algebra from .circuit import Gate, Circuit class Backend(object): """ Class Backend represents a physical or simulated quantum circuit resource. Backends must implemen...
33.399738
133
0.563059
723021b8eb8d9fb63d046c7bfbc34fe72d6eda3b
3,000
py
Python
Model/Analyzer.py
Wenbintum/wwl_github
adee8de1be0f92228abd09606fee8825a8368f04
[ "MIT" ]
null
null
null
Model/Analyzer.py
Wenbintum/wwl_github
adee8de1be0f92228abd09606fee8825a8368f04
[ "MIT" ]
null
null
null
Model/Analyzer.py
Wenbintum/wwl_github
adee8de1be0f92228abd09606fee8825a8368f04
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from sklearn.model_selection import KFold import numpy as np from ML_learning import Train_gpr, Train_krr from sklearn.metrics import mean_absolute_error, mean_squared_error from statistics import mean def plt_distribution(x, n_bin, dpi=100): fig, axs = plt.subplots(tight_layout=Tr...
42.857143
86
0.698
a2fb82aa0b9481e7f58a554cb23f7358841777fe
6,261
py
Python
system/IOlib.py
haddocking/3D-DART
c94ab30f8d96ab1232d55ed136bc8299dcaa5112
[ "Apache-2.0" ]
2
2020-07-23T09:27:00.000Z
2021-06-23T14:47:33.000Z
system/IOlib.py
haddocking/3D-DART
c94ab30f8d96ab1232d55ed136bc8299dcaa5112
[ "Apache-2.0" ]
3
2020-04-23T15:28:57.000Z
2020-08-27T07:52:25.000Z
system/IOlib.py
haddocking/3D-DART
c94ab30f8d96ab1232d55ed136bc8299dcaa5112
[ "Apache-2.0" ]
4
2020-02-25T12:57:57.000Z
2021-06-23T14:47:40.000Z
#!/usr/bin/env python2.7 import os,sys,re from Utils import * from numpy import * from Constants import * def WritePar(database,filename,verbose=False): """Write 3DNA base-pair and base-pair step parameter file (*.par)""" if filename == None: filename = 'parfile' if verbose == True: outfile = sys.stdout el...
29.533019
143
0.665069
4ed2727b95f3d9895506888e51daf3d440768d5d
1,191
py
Python
django/gsmap/migrations/0013_auto_20200405_1555.py
n0rdlicht/spatial-data-package-platform
97659a5f5e3df1ee78c31a3d0cee7bcab0c34c22
[ "MIT" ]
14
2020-11-26T11:20:55.000Z
2022-03-02T15:48:51.000Z
django/gsmap/migrations/0013_auto_20200405_1555.py
n0rdlicht/spatial-data-package-platform
97659a5f5e3df1ee78c31a3d0cee7bcab0c34c22
[ "MIT" ]
328
2020-11-26T16:01:06.000Z
2022-03-28T03:15:07.000Z
django/gsmap/migrations/0013_auto_20200405_1555.py
n0rdlicht/spatial-data-package-platform
97659a5f5e3df1ee78c31a3d0cee7bcab0c34c22
[ "MIT" ]
2
2020-12-01T15:08:23.000Z
2020-12-22T14:06:30.000Z
# Generated by Django 3.0.3 on 2020-04-05 15:55 from django.db import migrations, models import gsmap.models import sortedm2m.fields class Migration(migrations.Migration): dependencies = [ ('gsmap', '0012_auto_20200405_0850'), ] operations = [ migrations.AlterField( model_na...
34.028571
134
0.577666
5ae64ff1dba0481fdeaca1b08764c378a783c68c
649
py
Python
workalendar/tests/test_registry_africa.py
ftatarli/workalendar
111d2268f6153cfa1906823409103f5d532f7b8b
[ "MIT" ]
2
2020-07-15T09:56:41.000Z
2021-02-04T18:11:28.000Z
workalendar/tests/test_registry_africa.py
ftatarli/workalendar
111d2268f6153cfa1906823409103f5d532f7b8b
[ "MIT" ]
null
null
null
workalendar/tests/test_registry_africa.py
ftatarli/workalendar
111d2268f6153cfa1906823409103f5d532f7b8b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from unittest import TestCase from workalendar.africa import ( Algeria, Benin, IvoryCoast, Madagascar, SaoTomeAndPrincipe, SouthAfrica, ) from workalendar.registry import registry class RegistryAfrica(TestCase): def test_africa(self): classes = (v for k, v...
24.961538
66
0.681048