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
7ce743611d6d75f072c652580adcb3bb4b49e81a
3,697
py
Python
EPI/__init__.py
zwxxxuan/EPI
1c48994afc97518a4d8e6df7f6cabaa8792bb425
[ "MIT" ]
28
2019-02-22T05:00:10.000Z
2021-09-23T05:12:59.000Z
EPI/__init__.py
zwxxxuan/EPI
1c48994afc97518a4d8e6df7f6cabaa8792bb425
[ "MIT" ]
3
2019-06-04T05:38:42.000Z
2019-10-27T03:51:56.000Z
EPI/__init__.py
zwxxxuan/EPI
1c48994afc97518a4d8e6df7f6cabaa8792bb425
[ "MIT" ]
1
2020-09-04T02:10:09.000Z
2020-09-04T02:10:09.000Z
from gym.envs.mujoco.mujoco_env import MujocoEnv # ^^^^^ so that user gets the correct error # message if mujoco is not installed correctly from gym.envs.registration import registry, register, make, spec register( id='HopperOriginal-v0', entry_point='EPI.envs:HopperEnv', max_episode_steps=1000, reward...
22.005952
64
0.698675
cc4c5f438abfd4d53696b731e01dc396f752144e
34,166
py
Python
electrum/gui/qt/transaction_dialog.py
dasource/electrum
0f1d4a36715fbcc929eefc0d31bb5686aa0fd18d
[ "MIT" ]
3
2022-01-18T10:20:40.000Z
2022-01-18T13:44:50.000Z
electrum/gui/qt/transaction_dialog.py
dasource/electrum
0f1d4a36715fbcc929eefc0d31bb5686aa0fd18d
[ "MIT" ]
null
null
null
electrum/gui/qt/transaction_dialog.py
dasource/electrum
0f1d4a36715fbcc929eefc0d31bb5686aa0fd18d
[ "MIT" ]
3
2021-08-29T16:32:26.000Z
2021-11-22T15:59:39.000Z
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2012 thomasv@gitorious # # 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 witho...
42.976101
139
0.646696
ba5ae36710dea2bb1c904c5b5f68c668fd074302
3,121
py
Python
pychron/messaging/notify/notifier.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
31
2016-03-07T02:38:17.000Z
2022-02-14T18:23:43.000Z
pychron/messaging/notify/notifier.py
ASUPychron/pychron
dfe551bdeb4ff8b8ba5cdea0edab336025e8cc76
[ "Apache-2.0" ]
1,626
2015-01-07T04:52:35.000Z
2022-03-25T19:15:59.000Z
pychron/messaging/notify/notifier.py
UIllinoisHALPychron/pychron
f21b79f4592a9fb9dc9a4cb2e4e943a3885ededc
[ "Apache-2.0" ]
26
2015-05-23T00:10:06.000Z
2022-03-07T16:51:57.000Z
# =============================================================================== # Copyright 2013 Jake Ross # # 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/licens...
31.525253
81
0.52323
ea95f98f7fcb1e660781a614fae9b4ec26149faf
2,094
py
Python
exemples/ex4.py
gp2112/Graph
4b7a1d61278b02fa726cefaa65d40e011f9d8e22
[ "Unlicense" ]
null
null
null
exemples/ex4.py
gp2112/Graph
4b7a1d61278b02fa726cefaa65d40e011f9d8e22
[ "Unlicense" ]
null
null
null
exemples/ex4.py
gp2112/Graph
4b7a1d61278b02fa726cefaa65d40e011f9d8e22
[ "Unlicense" ]
null
null
null
# Guilherme Ramos Costa Paixão - 11796079 # Dennis Lemke Green - 112219108 import math import graph # this program prints nodes that have the minimum distance from nodes # that have both parents descendents being descendents from vertex 1 def transverse_matrix(matrix): for i in range(len(matrix)): for j in rang...
24.928571
105
0.694365
e34c4a813158fbc8e92e57b73a83c2f4d6743e9c
1,212
py
Python
nodes/command_bridge_sender_node.py
GFOE/command_bridge
f08525c49aaa5ad473ac2b0b9699280408dc95af
[ "BSD-2-Clause" ]
null
null
null
nodes/command_bridge_sender_node.py
GFOE/command_bridge
f08525c49aaa5ad473ac2b0b9699280408dc95af
[ "BSD-2-Clause" ]
null
null
null
nodes/command_bridge_sender_node.py
GFOE/command_bridge
f08525c49aaa5ad473ac2b0b9699280408dc95af
[ "BSD-2-Clause" ]
5
2019-01-21T20:46:18.000Z
2021-07-07T18:14:09.000Z
#!/usr/bin/env python3 import rospy from std_msgs.msg import String import datetime from threading import Lock send_queue = {} lock = Lock() def sendCommandCallback(data): parts = data.data.split(None,1) cmd = parts[0] if len(parts) > 1: args = parts[1] else: args = None t...
27.545455
71
0.642739
38461ea93fcd74e26b22c81d1f6867b67a95e147
2,629
py
Python
pypy/module/sys/interp_encoding.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
1
2020-01-21T11:10:51.000Z
2020-01-21T11:10:51.000Z
pypy/module/sys/interp_encoding.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
pypy/module/sys/interp_encoding.py
benoitc/pypy
a3e1b12d1d01dc29056b7badc051ffc034297658
[ "MIT" ]
null
null
null
import sys from pypy.rlib import rlocale from pypy.rlib.objectmodel import we_are_translated def getdefaultencoding(space): """Return the current default string encoding used by the Unicode implementation.""" return space.wrap(space.sys.defaultencoding) def setdefaultencoding(space, w_encoding): """Set t...
37.557143
73
0.675162
a2d49245ee941dc2be853d46fff411836d2f7f5c
3,014
py
Python
examples/src/Charts/AutomaticChartSeriescolor.py
aspose-slides/Aspose.Slides-for-Python-via-.NET
c55ad5c71f942598f1e67e22a52cbcd1cb286467
[ "MIT" ]
null
null
null
examples/src/Charts/AutomaticChartSeriescolor.py
aspose-slides/Aspose.Slides-for-Python-via-.NET
c55ad5c71f942598f1e67e22a52cbcd1cb286467
[ "MIT" ]
null
null
null
examples/src/Charts/AutomaticChartSeriescolor.py
aspose-slides/Aspose.Slides-for-Python-via-.NET
c55ad5c71f942598f1e67e22a52cbcd1cb286467
[ "MIT" ]
null
null
null
import aspose.pydrawing as drawing import aspose.slides as slides def charts_automatic_chart_series_color(): #ExStart:AutomaticChartSeriescolor # The path to the documents directory. dataDir = "./examples/data/" outDir = "./examples/out/" # Create an instance of Presentation class with slides...
42.450704
113
0.714997
b188fddeeaeb11e243b503b6bff518af050eb6b5
5,059
py
Python
pclib/fl/ListMemPortAdapterOld.py
belang/pymtl
4a96738724b007cbd684753aed0ac3de5b5dbebb
[ "BSD-3-Clause" ]
206
2015-01-05T21:53:56.000Z
2022-03-14T08:04:49.000Z
pclib/fl/ListMemPortAdapterOld.py
belang/pymtl
4a96738724b007cbd684753aed0ac3de5b5dbebb
[ "BSD-3-Clause" ]
84
2015-01-25T19:57:33.000Z
2021-05-11T15:46:56.000Z
pclib/fl/ListMemPortAdapterOld.py
belang/pymtl
4a96738724b007cbd684753aed0ac3de5b5dbebb
[ "BSD-3-Clause" ]
99
2015-02-17T17:43:44.000Z
2022-02-14T17:58:18.000Z
#========================================================================= # ListMemPortAdapterOld #========================================================================= # These classes provides a list interface, but the implementation # essentially turns reads/writes into memory requests sent over a # port-based m...
27.494565
74
0.541807
dd77a46ae33dfdb36f1f5b3ff81cfd4037df7b58
648
py
Python
setup.py
cschmidat/cleartext
c99c24792c06aba5b3d3848a4a74768b260188e5
[ "MIT" ]
1
2020-07-09T19:51:18.000Z
2020-07-09T19:51:18.000Z
setup.py
cschmidat/cleartext
c99c24792c06aba5b3d3848a4a74768b260188e5
[ "MIT" ]
null
null
null
setup.py
cschmidat/cleartext
c99c24792c06aba5b3d3848a4a74768b260188e5
[ "MIT" ]
2
2020-06-26T13:55:17.000Z
2020-07-09T19:16:23.000Z
from setuptools import find_packages, setup setup( name='cleartext', version='0.1', description='The smart reading assistant for English language learners', url='https://bcwallace.com/cleartext/', author='Benjamin Wallace', author_email='me@bcwallace.com', license='MIT', packages=find_p...
27
135
0.62963
0deba50d58c5b6906fe16a969b80bfc36128bc9c
3,350
py
Python
pytype/tests/test_dict.py
ashwinprasadme/pytype
fed209c73aacfcab15efc33deef3b4016a67cfe5
[ "Apache-2.0" ]
null
null
null
pytype/tests/test_dict.py
ashwinprasadme/pytype
fed209c73aacfcab15efc33deef3b4016a67cfe5
[ "Apache-2.0" ]
null
null
null
pytype/tests/test_dict.py
ashwinprasadme/pytype
fed209c73aacfcab15efc33deef3b4016a67cfe5
[ "Apache-2.0" ]
null
null
null
"""Tests for dictionaries.""" from pytype import file_utils from pytype.pytd import pytd_utils from pytype.tests import test_base class DictTest(test_base.TargetIndependentTest): """Tests for dictionaries.""" def test_pop(self): ty = self.Infer(""" d = {"a": 42} v1 = d.pop("a") v2 = d.pop(...
25.968992
76
0.514328
b87cd1ff781be58e015a561293fc4c4a10f3371a
1,302
py
Python
dbs/dbdemo.py
jackyin68/flask-database
b0e13e40c55d8f0dfba4be4b83cd9aed3fdc79f0
[ "MIT" ]
1
2022-03-29T06:20:40.000Z
2022-03-29T06:20:40.000Z
dbs/dbdemo.py
jackyin68/flask-database
b0e13e40c55d8f0dfba4be4b83cd9aed3fdc79f0
[ "MIT" ]
null
null
null
dbs/dbdemo.py
jackyin68/flask-database
b0e13e40c55d8f0dfba4be4b83cd9aed3fdc79f0
[ "MIT" ]
null
null
null
from dbs.dbop import query_by_id, query_count, query_all, query_by_filter, rows_add_by_dict, delete_by_id, \ delete_by_filter, update_by_filter # 添加 def add_demo(): student_01 = ("Student", {"name": "周星驰", "gender": "男", "phone": "1382101xxx"}) student_02 = ("Student", {"name": "张曼玉", "gender": "女", "phon...
27.702128
108
0.629032
77e3b368ed13f0e790b7cc1cd14810087226d9ba
197
py
Python
app/main/errors.py
edumorris/newser
c672e6e2a6efb3ae4c679c28f844dc7fd5b6e865
[ "MIT" ]
null
null
null
app/main/errors.py
edumorris/newser
c672e6e2a6efb3ae4c679c28f844dc7fd5b6e865
[ "MIT" ]
null
null
null
app/main/errors.py
edumorris/newser
c672e6e2a6efb3ae4c679c28f844dc7fd5b6e865
[ "MIT" ]
null
null
null
from flask import render_template from . import main @main.app_errorhandler(404) def four_o_four(error): ''' Function to render 404 page ''' return render_template('404.html'),404
19.7
42
0.71066
c5021d30bea4c95ed732bb4cb663d9832b086577
2,266
py
Python
syntaxnet/dragnn/python/render_spec_with_graphviz_test.py
FrancisTembo/tensorflow-models
042f74690d0cf412cb6b7fc19f4a41afdf547905
[ "Apache-2.0" ]
58
2017-04-21T02:52:30.000Z
2021-03-08T18:58:52.000Z
syntaxnet/dragnn/python/render_spec_with_graphviz_test.py
FrancisTembo/tensorflow-models
042f74690d0cf412cb6b7fc19f4a41afdf547905
[ "Apache-2.0" ]
1
2017-03-19T20:12:15.000Z
2017-03-20T14:25:54.000Z
syntaxnet/dragnn/python/render_spec_with_graphviz_test.py
FrancisTembo/tensorflow-models
042f74690d0cf412cb6b7fc19f4a41afdf547905
[ "Apache-2.0" ]
60
2016-12-27T12:00:37.000Z
2022-03-11T17:35:11.000Z
"""Tests for render_spec_with_graphviz.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.platform import googletest from dragnn.protos import spec_pb2 from dragnn.python import render_spec_with_graphviz from dragnn.python import spe...
37.147541
80
0.766549
7d693e355e88fd1f5f49ccc486529a373553ea96
931
py
Python
blog/blog/urls.py
quintuslabs/BlogApp
fa5f7b007158ebd3544addb06571d6bb3df28087
[ "Unlicense", "MIT" ]
null
null
null
blog/blog/urls.py
quintuslabs/BlogApp
fa5f7b007158ebd3544addb06571d6bb3df28087
[ "Unlicense", "MIT" ]
5
2021-03-19T00:32:55.000Z
2021-09-22T18:40:59.000Z
blog/blog/urls.py
quintuslabs/BlogApp
fa5f7b007158ebd3544addb06571d6bb3df28087
[ "Unlicense", "MIT" ]
1
2020-04-13T19:12:43.000Z
2020-04-13T19:12:43.000Z
"""blog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
37.24
77
0.725027
7b2c7e07ea8c2a168fc961833151c90994d6398d
14,009
py
Python
provision/env/lib/python3.6/site-packages/ansible/executor/playbook_executor.py
brightkan/tukole-frontend
45e1d82a4ae5a65e88e7434f67d4d1a88f462e96
[ "MIT" ]
1
2020-03-29T18:41:01.000Z
2020-03-29T18:41:01.000Z
ansible/ansible/executor/playbook_executor.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
7
2020-09-07T17:27:56.000Z
2022-03-02T06:25:46.000Z
ansible/ansible/executor/playbook_executor.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
1
2020-10-30T12:48:24.000Z
2020-10-30T12:48:24.000Z
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
44.757188
152
0.560997
b998e290d6a3e81e2daee1fa73ababd7c4f3bee6
5,431
py
Python
tests/test_release_notes.py
rpappalax/deploy-tix
a53c7fa7898b9f0c2f530c8abd8bab322a2eb7bc
[ "MIT" ]
null
null
null
tests/test_release_notes.py
rpappalax/deploy-tix
a53c7fa7898b9f0c2f530c8abd8bab322a2eb7bc
[ "MIT" ]
20
2015-02-24T08:56:47.000Z
2018-07-25T16:35:30.000Z
tests/test_release_notes.py
rpappalax/deploy-tix
a53c7fa7898b9f0c2f530c8abd8bab322a2eb7bc
[ "MIT" ]
3
2015-04-01T21:39:50.000Z
2020-09-10T19:40:43.000Z
import unittest import requests import json from mock import Mock, patch #from urlparse import urlparse try: from urllib.parse import urlparse, urlencode from urllib.request import urlopen, Request from urllib.error import HTTPError except ImportError: from urlparse import urlparse from urllib impo...
31.760234
161
0.625483
d0500aca3c6678bf327980950e9d32a8ccb10325
4,281
py
Python
src/model/VIT.py
AmitNikhade/Vision-Transformer
f8d5b02670ca7d3f9ec365c6944a9411c70efec8
[ "MIT" ]
4
2021-06-01T17:37:09.000Z
2021-12-24T12:44:20.000Z
src/model/VIT.py
AmitNikhade/Vision-Transformer
f8d5b02670ca7d3f9ec365c6944a9411c70efec8
[ "MIT" ]
null
null
null
src/model/VIT.py
AmitNikhade/Vision-Transformer
f8d5b02670ca7d3f9ec365c6944a9411c70efec8
[ "MIT" ]
null
null
null
''' by Amit Nikhade. amitnikhadeofficial@gmail.com ''' import torch from torch._C import dtype import torch.nn as nn from torch.nn.modules.conv import Conv2d import copy import argparse import sys import torch.nn.functional as F from Utils import config args = config.parse_args() device = torch.device("cuda" if tor...
32.431818
236
0.581173
8966fba59213270bd9a31d97e9a10e5530e1c746
8,656
py
Python
sdk/python/pulumi_azure_native/costmanagement/get_connector.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/costmanagement/get_connector.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/costmanagement/get_connector.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 ...
34.624
268
0.636206
2b74bc794c8db8aca5f8936e845b31e5c9e08116
55
py
Python
day3/turtle-maze.py
simon21-meet/meet2019y1lab3
b6548126e128a2ac85a8a25b2d47a8c990059379
[ "MIT" ]
null
null
null
day3/turtle-maze.py
simon21-meet/meet2019y1lab3
b6548126e128a2ac85a8a25b2d47a8c990059379
[ "MIT" ]
null
null
null
day3/turtle-maze.py
simon21-meet/meet2019y1lab3
b6548126e128a2ac85a8a25b2d47a8c990059379
[ "MIT" ]
null
null
null
import turtle turtle.pensize(3) turtle.circle(90,half)
13.75
22
0.8
d0f955ed36b03fe496021926677a65ce433d53b9
9,400
py
Python
test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_api_version_default_operations_async.py
fearthecowboy/autorest.python
a251e361218598b55b0621db2275aafcb7158a5c
[ "MIT" ]
null
null
null
test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_api_version_default_operations_async.py
fearthecowboy/autorest.python
a251e361218598b55b0621db2275aafcb7158a5c
[ "MIT" ]
null
null
null
test/azure/Expected/AcceptanceTests/AzureSpecials/azurespecialproperties/aio/operations_async/_api_version_default_operations_async.py
fearthecowboy/autorest.python
a251e361218598b55b0621db2275aafcb7158a5c
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
45.192308
150
0.681702
d3702ce259ae92bf34ec307d9755a6b863d8c91c
40,885
py
Python
tests/files/det_police_department_post.py
nathanderon/city-scrapers
6c1ad459179d28916b3778a6b1dfb4635f5acb21
[ "MIT" ]
null
null
null
tests/files/det_police_department_post.py
nathanderon/city-scrapers
6c1ad459179d28916b3778a6b1dfb4635f5acb21
[ "MIT" ]
null
null
null
tests/files/det_police_department_post.py
nathanderon/city-scrapers
6c1ad459179d28916b3778a6b1dfb4635f5acb21
[ "MIT" ]
null
null
null
POST_REQUEST_RESPONSE_BODY = b'<html><head></head><body onload="window.parent.dnn.xmlhttp.requests[\'1\'].complete(window.parent.dnn.dom.getById(\'txt\', document).value);"><form><input type="hidden" id="__DNNCAPISCSI" value="200"><input type="hidden" id="__DNNCAPISCSDI" value=""><textarea id="txt">{&quot;d&quot;:&quot...
40,885
40,885
0.631943
364f39e1360aa1e344915b9d66addd101a5d0740
5,118
py
Python
ocr/train.py
LiuChiachi/hapi
b8cb839a1a6fee77098c219800722236b25fa3e6
[ "Apache-2.0" ]
null
null
null
ocr/train.py
LiuChiachi/hapi
b8cb839a1a6fee77098c219800722236b25fa3e6
[ "Apache-2.0" ]
null
null
null
ocr/train.py
LiuChiachi/hapi
b8cb839a1a6fee77098c219800722236b25fa3e6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
37.357664
101
0.658265
a2b0f662584be83b1dde0b0d2cc8162afc15b480
3,123
py
Python
tests/utils.py
jlaine/aioquic
1279b4ee8c5dde8b86ed4d119c35c9b0ced65389
[ "BSD-3-Clause" ]
null
null
null
tests/utils.py
jlaine/aioquic
1279b4ee8c5dde8b86ed4d119c35c9b0ced65389
[ "BSD-3-Clause" ]
null
null
null
tests/utils.py
jlaine/aioquic
1279b4ee8c5dde8b86ed4d119c35c9b0ced65389
[ "BSD-3-Clause" ]
null
null
null
import asyncio import datetime import logging import os import sys from cryptography import x509 from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.asymmetric import ec, ed448, ed25519 def generate_certificate(*, alternative_...
30.920792
83
0.710215
ba8dd30ec971d215e087e7d519c379c3bae55549
2,031
py
Python
redash/handlers/admin.py
kykrueger/redash
5fd78fdb2324a7c194e8a99c13deb5a57268866c
[ "BSD-2-Clause" ]
2
2019-10-22T06:41:19.000Z
2019-11-08T03:24:22.000Z
redash/handlers/admin.py
kykrueger/redash
5fd78fdb2324a7c194e8a99c13deb5a57268866c
[ "BSD-2-Clause" ]
3
2022-02-14T01:15:27.000Z
2022-02-27T11:21:50.000Z
redash/handlers/admin.py
kykrueger/redash
5fd78fdb2324a7c194e8a99c13deb5a57268866c
[ "BSD-2-Clause" ]
1
2019-12-06T08:30:35.000Z
2019-12-06T08:30:35.000Z
from flask import request from flask_login import login_required, current_user from redash import models, redis_connection from redash.authentication import current_org from redash.handlers import routes from redash.handlers.base import json_response, record_event from redash.permissions import require_super_admin fro...
30.313433
111
0.703102
7993f26d6dad887f86812758abe7258e93b10838
403
py
Python
tests/builtins/test_str.py
Mariatta/voc
348346646a8c0755729dd9ca961a2958e0f6ad50
[ "BSD-3-Clause" ]
1
2021-01-03T00:59:50.000Z
2021-01-03T00:59:50.000Z
tests/builtins/test_str.py
Mariatta/voc
348346646a8c0755729dd9ca961a2958e0f6ad50
[ "BSD-3-Clause" ]
null
null
null
tests/builtins/test_str.py
Mariatta/voc
348346646a8c0755729dd9ca961a2958e0f6ad50
[ "BSD-3-Clause" ]
null
null
null
from .. utils import TranspileTestCase, BuiltinFunctionTestCase class StrTests(TranspileTestCase): pass class BuiltinStrFunctionTests(BuiltinFunctionTestCase, TranspileTestCase): functions = ["str"] not_implemented = [ 'test_bytearray', 'test_bytes', 'test_class', 'test_...
20.15
74
0.647643
036fb44bb0f7989c4220020b3393b6b47e5759da
6,111
py
Python
tools/tensorpack/tensorpack/train/trainer.py
laceyg/ternarynet
b17744c2aba3aba7e7e72decb3b8a02792d33b54
[ "Apache-2.0" ]
2
2017-03-16T17:16:37.000Z
2020-07-17T04:27:45.000Z
tools/tensorpack/tensorpack/train/trainer.py
laceyg/ternarynet
b17744c2aba3aba7e7e72decb3b8a02792d33b54
[ "Apache-2.0" ]
null
null
null
tools/tensorpack/tensorpack/train/trainer.py
laceyg/ternarynet
b17744c2aba3aba7e7e72decb3b8a02792d33b54
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- # File: trainer.py # Author: Yuxin Wu <ppwwyyxx@gmail.com> import tensorflow as tf import time from six.moves import zip from .base import Trainer from ..utils import logger, SUMMARY_BACKUP_KEYS from ..tfutils import (get_tensors_by_names, freeze_collection, get_global_step_var, Tower...
38.923567
104
0.675994
6a2b5ca1e0d98732d539dff946873f5543d71238
1,611
py
Python
recordlinkage/contrib/index/__init__.py
LuciaBaldassini/recordlinkage
8892d917caf82131ddce3ad2559570b2a0caca02
[ "BSD-3-Clause" ]
641
2016-05-03T14:44:55.000Z
2022-03-29T19:59:42.000Z
recordlinkage/contrib/index/__init__.py
LuciaBaldassini/recordlinkage
8892d917caf82131ddce3ad2559570b2a0caca02
[ "BSD-3-Clause" ]
143
2015-11-23T10:58:41.000Z
2022-03-24T00:18:00.000Z
recordlinkage/contrib/index/__init__.py
LuciaBaldassini/recordlinkage
8892d917caf82131ddce3ad2559570b2a0caca02
[ "BSD-3-Clause" ]
126
2016-09-29T20:04:25.000Z
2022-03-25T12:52:25.000Z
# Copyright 2018 Jonathan de Bruin # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # ...
55.551724
79
0.798883
419d292d190e26b51af65e7a410a78c6a88b3840
30,832
py
Python
_broken/smk/smk_index.py
brmscheiner/ibeis
9bb93a6cd74ac47921e734c80917a38609dfe661
[ "Apache-2.0" ]
null
null
null
_broken/smk/smk_index.py
brmscheiner/ibeis
9bb93a6cd74ac47921e734c80917a38609dfe661
[ "Apache-2.0" ]
null
null
null
_broken/smk/smk_index.py
brmscheiner/ibeis
9bb93a6cd74ac47921e734c80917a38609dfe661
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ smk_index This module contains functions for the SelectiveMatchKernels's inverted index. TODO:: * Test suit 1000k images * Extend for SMK with labels * Test get numbers and refine * Extrnal keypoint specific weighting """ from __future__ import absolute_import, division, pri...
41.054594
150
0.658601
cb0b18392d1a240478cedd52961815dc2b465e0a
12,379
py
Python
test/profile/test_profile.py
sleepy-owl/pyPESTO
a34608de9ad0a274afb6fb89ebc022aff5baf4c0
[ "BSD-3-Clause" ]
97
2018-08-01T20:16:57.000Z
2022-03-31T18:46:28.000Z
test/profile_test/test_profile.py
Doresic/pyPESTO
d92bd7801353cd522fa8ec04a750aac120771f01
[ "BSD-3-Clause" ]
758
2018-08-01T12:47:28.000Z
2022-03-30T21:00:26.000Z
test/profile_test/test_profile.py
Doresic/pyPESTO
d92bd7801353cd522fa8ec04a750aac120771f01
[ "BSD-3-Clause" ]
36
2018-08-16T20:10:15.000Z
2022-03-17T16:58:11.000Z
""" This is for testing profiling of the pypesto.Objective. """ import numpy as np import unittest from copy import deepcopy import warnings import pypesto import pypesto.optimize as optimize import pypesto.profile as profile import pypesto.visualize as visualize from pypesto import ObjectiveBase from ..visualize im...
37.972393
79
0.599564
919c66fd11e61e7318d2219ba0060cf79fc50735
1,513
py
Python
tfx/tools/cli/cli_main_test.py
NunoEdgarGFlowHub/tfx
16038b03b1742ef8f537180907289257221a57b7
[ "Apache-2.0" ]
null
null
null
tfx/tools/cli/cli_main_test.py
NunoEdgarGFlowHub/tfx
16038b03b1742ef8f537180907289257221a57b7
[ "Apache-2.0" ]
null
null
null
tfx/tools/cli/cli_main_test.py
NunoEdgarGFlowHub/tfx
16038b03b1742ef8f537180907289257221a57b7
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC. 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...
30.877551
80
0.746861
a31f91aca94d2e6db2eb483bfbf312a8bc2e6857
1,247
py
Python
curvenote_template/tests/test_cli_build_lite.py
curvenote/curvenote-template
3d2c6049f177369ddcd1ed7f67a8263e447aceab
[ "MIT" ]
null
null
null
curvenote_template/tests/test_cli_build_lite.py
curvenote/curvenote-template
3d2c6049f177369ddcd1ed7f67a8263e447aceab
[ "MIT" ]
null
null
null
curvenote_template/tests/test_cli_build_lite.py
curvenote/curvenote-template
3d2c6049f177369ddcd1ed7f67a8263e447aceab
[ "MIT" ]
null
null
null
import os import subprocess import tempfile def test_cli_build_lite(): dir, _ = os.path.split(os.path.realpath(__file__)) with tempfile.TemporaryDirectory() as tmp_dir: tmp_file = os.path.join(tmp_dir, next(tempfile._get_candidate_names())) CLI_CMD = ( f"curvenote_template build...
28.340909
79
0.55012
9a4449348d86956e3eda9004e16ff5a792e82549
500
py
Python
tests/test_explanation.py
collab-uniba/qavmentor-service
f3c6f8a02bca3eeb0521ca3ac3b6e97542754c2a
[ "MIT" ]
1
2018-07-23T14:42:22.000Z
2018-07-23T14:42:22.000Z
tests/test_explanation.py
collab-uniba/qavmentor-service
f3c6f8a02bca3eeb0521ca3ac3b6e97542754c2a
[ "MIT" ]
56
2018-05-24T09:40:03.000Z
2022-02-11T03:40:09.000Z
tests/test_explanation.py
collab-uniba/qavmentor
669025a40dd04cd8c9cbd264587918025ef39d20
[ "MIT" ]
1
2018-05-20T09:30:48.000Z
2018-05-20T09:30:48.000Z
import pytest import sys import os.path import json src_code_path = str(os.path.dirname(os.path.abspath(os.path.join(__file__, os.pardir))))+"/src" sys.path.append(src_code_path) from info import Explanation def test_explanation(): info_manager=Explanation() info_keys=["percentage_improvements","probability_usefull...
25
95
0.768
1e4380aa039e449eeb36b3791bcabfa9438186f5
873
py
Python
nocolor.app.py
AlphaDev00/yt_downloader
98f8d40b59b0dd6f5620cc51266149e2f433f898
[ "MIT" ]
3
2021-10-31T15:59:44.000Z
2021-11-01T19:29:25.000Z
nocolor.app.py
AlphaDev00/yt_downloader
98f8d40b59b0dd6f5620cc51266149e2f433f898
[ "MIT" ]
null
null
null
nocolor.app.py
AlphaDev00/yt_downloader
98f8d40b59b0dd6f5620cc51266149e2f433f898
[ "MIT" ]
1
2021-11-09T17:26:44.000Z
2021-11-09T17:26:44.000Z
from pytube import YouTube from tkinter import * import time import os def code(): while True: print("\nYoutube video downloader by AlphaDev") print("https://github.com/AlphaDev00\n\n") flink = input("Enter The Link: ") yt = YouTube(flink) print("Selected Video: ", yt.titl...
31.178571
86
0.560137
4e1b8d3d82a531748fc3eb0cef3dc216b7d343f4
357
py
Python
examples/example_server.py
scroix/MUNIT-runway
04ed5d48dd6345a193bfb63fd1a505251644c26b
[ "MIT" ]
109
2019-04-22T14:38:14.000Z
2022-02-11T12:39:13.000Z
examples/example_server.py
scroix/MUNIT-runway
04ed5d48dd6345a193bfb63fd1a505251644c26b
[ "MIT" ]
71
2019-04-13T15:14:11.000Z
2021-05-07T18:38:00.000Z
examples/example_server.py
scroix/MUNIT-runway
04ed5d48dd6345a193bfb63fd1a505251644c26b
[ "MIT" ]
24
2019-04-22T14:38:17.000Z
2022-03-21T23:15:49.000Z
import runway from runway.data_types import text @runway.setup(options={'suffix': text}) def setup(options): return options['suffix'] @runway.command('lower2upper', inputs={'input': text}, outputs={'output': text}) def lower2upper(suffix, inputs): return {'output': inputs['input'].upper() + suffix} if __na...
22.3125
80
0.691877
f0528c36005b75da96b073e805321844c6138004
4,508
py
Python
tests/components/withings/test_common.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
3
2020-05-05T22:12:27.000Z
2020-11-25T23:55:34.000Z
tests/components/withings/test_common.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
5
2021-02-08T20:55:25.000Z
2022-03-12T00:51:18.000Z
tests/components/withings/test_common.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
5
2020-03-29T00:29:13.000Z
2021-09-06T20:58:40.000Z
"""Tests for the Withings component.""" from datetime import timedelta import pytest from withings_api import WithingsApi from withings_api.common import TimeoutException, UnauthorizedException from homeassistant.components.withings.common import ( NotAuthenticatedError, WithingsDataManager, ) from homeassist...
33.147059
81
0.75
24f473c32620c2fb04d9364493a1e5d55c3edda8
5,823
py
Python
homeassistant/components/broadlink/device.py
rchl/core
974e099e2a9527d38445531c6d9bc1461ba4c36f
[ "Apache-2.0" ]
2
2021-05-19T19:05:08.000Z
2021-06-06T06:51:05.000Z
homeassistant/components/broadlink/device.py
jrhubott/core
89fe232643134f283c041537e9f6841f47dc1c5e
[ "Apache-2.0" ]
56
2020-08-03T07:30:54.000Z
2022-03-31T06:02:04.000Z
homeassistant/components/broadlink/device.py
jrhubott/core
89fe232643134f283c041537e9f6841f47dc1c5e
[ "Apache-2.0" ]
2
2021-07-14T20:22:04.000Z
2021-09-22T08:56:16.000Z
"""Support for Broadlink devices.""" import asyncio from functools import partial import logging import broadlink as blk from broadlink.exceptions import ( AuthenticationError, AuthorizationError, BroadlinkException, ConnectionClosedError, NetworkTimeoutError, ) from homeassistant.const import CON...
31.819672
87
0.628542
c765a5abc1774741432994a0fca0491ce18ae5d9
956
py
Python
packages/w3af/w3af/core/data/misc/mask_password.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
null
null
null
packages/w3af/w3af/core/data/misc/mask_password.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
null
null
null
packages/w3af/w3af/core/data/misc/mask_password.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
null
null
null
""" mask_password.py Copyright 2019 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License. w3af is distributed in the hope th...
29.875
74
0.746862
4baf0dc936ee2a4bbfc818bf23480254b6de8caf
1,912
py
Python
AAPL_ Quandl/Muliple Linear regression-Quandl.py
DamienBellos/Linear-Regression
e32c07f5a3a573c6026d615f94f7c379e0d79a1e
[ "MIT" ]
1
2019-01-11T16:51:23.000Z
2019-01-11T16:51:23.000Z
AAPL_ Quandl/Muliple Linear regression-Quandl.py
DamienBellos/Linear-Regression
e32c07f5a3a573c6026d615f94f7c379e0d79a1e
[ "MIT" ]
null
null
null
AAPL_ Quandl/Muliple Linear regression-Quandl.py
DamienBellos/Linear-Regression
e32c07f5a3a573c6026d615f94f7c379e0d79a1e
[ "MIT" ]
null
null
null
import quandl import math import pandas as pd import numpy as np from sklearn.linear_model import LinearRegression from sklearn import preprocessing, model_selection, svm import matplotlib.pyplot as plt from matplotlib import style import datetime import pickle style.use('ggplot') quandl.ApiConfig.api_key = '*place y...
26.929577
88
0.708159
4cbcc9ebb4de873448ef03951f5de5920aaae050
7,459
py
Python
selfdrive/ntune.py
Lotx-001/barghe_op
a768944e1d52349272a9a74973ce0630ce8860b4
[ "MIT" ]
6
2021-01-02T18:17:17.000Z
2022-03-28T08:34:00.000Z
selfdrive/ntune.py
Lotx-001/barghe_op
a768944e1d52349272a9a74973ce0630ce8860b4
[ "MIT" ]
2
2021-07-26T03:09:47.000Z
2021-12-21T13:46:47.000Z
selfdrive/ntune.py
Lotx-001/barghe_op
a768944e1d52349272a9a74973ce0630ce8860b4
[ "MIT" ]
17
2020-10-07T06:12:35.000Z
2022-03-28T10:02:14.000Z
import os import fcntl import signal import json import numpy as np from common.realtime import DT_CTRL CONF_PATH = '/data/ntune/' CONF_COMMON_FILE = '/data/ntune/common.json' CONF_LQR_FILE = '/data/ntune/lat_lqr.json' CONF_INDI_FILE = '/data/ntune/lat_indi.json' class nTune(): def __init__(self, CP=None, controll...
26.35689
107
0.621129
a8eb486ab08361fade54da8e975d566b0e33e7f1
608
py
Python
test_package/conanfile.py
Arghnews/matrix2d
a9d76fe985dcbc8a62da3e2b83a95890eb6c61b1
[ "MIT" ]
null
null
null
test_package/conanfile.py
Arghnews/matrix2d
a9d76fe985dcbc8a62da3e2b83a95890eb6c61b1
[ "MIT" ]
null
null
null
test_package/conanfile.py
Arghnews/matrix2d
a9d76fe985dcbc8a62da3e2b83a95890eb6c61b1
[ "MIT" ]
null
null
null
import os from conans import ConanFile, CMake, tools class Matrix2dTestConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake_find_package" def build(self): cmake = CMake(self) # Current dir is "test_package/build/<build_id>" and CMakeLists.txt is ...
26.434783
78
0.613487
a0299b08dbffaee7c2eb7a47788aa40695954bfb
23,673
py
Python
module/joomsql.py
devcrax/Eazy
9da9c889277b78c8ccd87fc0befe2bc3e300e919
[ "MIT" ]
14
2018-08-17T15:53:47.000Z
2021-02-05T16:53:35.000Z
module/joomsql.py
devcrax/Eazy
9da9c889277b78c8ccd87fc0befe2bc3e300e919
[ "MIT" ]
null
null
null
module/joomsql.py
devcrax/Eazy
9da9c889277b78c8ccd87fc0befe2bc3e300e919
[ "MIT" ]
6
2018-08-22T20:30:29.000Z
2020-03-27T10:53:32.000Z
## ## joomla sqli scanner ## from core.misc import printf import sys import re import urllib2 import socket import string paths = ['/index.php?option=com_hwdvideoshare&func=viewcategory&Itemid=61&cat_id=-9999999/**/union/**/select/**/000,111,222,username,password,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,2,2,2/**/from/**/jos_use...
136.051724
399
0.703544
1bb674190a71797bc32e9e7d1abfa22bb877d46a
1,535
py
Python
restructuredBootstrap/roles/inline_background_contextual.py
lakhman/restructuredBootstrap
57002c6db2d3b5b97dc23820b91711db4f00c07e
[ "MIT" ]
1
2020-08-30T08:58:46.000Z
2020-08-30T08:58:46.000Z
restructuredBootstrap/roles/inline_background_contextual.py
lakhman/restructuredBootstrap
57002c6db2d3b5b97dc23820b91711db4f00c07e
[ "MIT" ]
null
null
null
restructuredBootstrap/roles/inline_background_contextual.py
lakhman/restructuredBootstrap
57002c6db2d3b5b97dc23820b91711db4f00c07e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2017 - Anil Lakhman - MIT License # ----------------------------------------------------------------------------- from docutils import nodes from docutils.parsers.rst import role...
28.425926
79
0.613029
350541a048f0c7109a51bfbde5ba25680649a67a
3,940
py
Python
telemetry/roles/slurm_telemetry/files/monster/mslurm.py
gilbertc777/omnia
788dff35b3ff5004e82ed548b8e704962875f19a
[ "Apache-2.0" ]
null
null
null
telemetry/roles/slurm_telemetry/files/monster/mslurm.py
gilbertc777/omnia
788dff35b3ff5004e82ed548b8e704962875f19a
[ "Apache-2.0" ]
null
null
null
telemetry/roles/slurm_telemetry/files/monster/mslurm.py
gilbertc777/omnia
788dff35b3ff5004e82ed548b8e704962875f19a
[ "Apache-2.0" ]
null
null
null
""" MIT License Copyright (c) 2022 Texas Tech University Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
33.389831
78
0.656345
a8f50bdb8f5583be11e5d8c91a68a8949a88ef1c
17,291
py
Python
tests/python/relay/test_pass_manager.py
ttyang1018/tvm
ade26cacd0767cf14dc053ac4d7778859f83a32c
[ "Apache-2.0" ]
2
2019-12-27T04:50:01.000Z
2021-02-04T09:54:21.000Z
tests/python/relay/test_pass_manager.py
ttyang1018/tvm
ade26cacd0767cf14dc053ac4d7778859f83a32c
[ "Apache-2.0" ]
1
2019-08-20T16:19:54.000Z
2019-08-28T21:21:43.000Z
tests/python/relay/test_pass_manager.py
ttyang1018/tvm
ade26cacd0767cf14dc053ac4d7778859f83a32c
[ "Apache-2.0" ]
1
2019-07-17T08:10:49.000Z
2019-07-17T08:10:49.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.037402
78
0.641605
d19e9244dece62a92b1d24d68540b2235df352cc
568
py
Python
Python/single_sign_on.py
solerf/Single-Sign-On-Kata
55c3ca4725314e1dcaf461cd14dee761d36517f7
[ "MIT" ]
null
null
null
Python/single_sign_on.py
solerf/Single-Sign-On-Kata
55c3ca4725314e1dcaf461cd14dee761d36517f7
[ "MIT" ]
null
null
null
Python/single_sign_on.py
solerf/Single-Sign-On-Kata
55c3ca4725314e1dcaf461cd14dee761d36517f7
[ "MIT" ]
null
null
null
class SingleSignOnRegistry: def register_new_session(self, credentials): """Returns an instance of SSOToken if the credentials are valid""" pass def is_valid(self, token): """Returns True if the token refers to a current session""" pass def unregister(self...
27.047619
74
0.626761
bcad6b5b9970d4798f7cc050305e4c191e1567e9
4,377
py
Python
telegram_upload/management.py
thantzinmyothant1/telegram-upload
913e7c8a7cbb3859524866319f1a79d8ff7950f6
[ "MIT" ]
null
null
null
telegram_upload/management.py
thantzinmyothant1/telegram-upload
913e7c8a7cbb3859524866319f1a79d8ff7950f6
[ "MIT" ]
null
null
null
telegram_upload/management.py
thantzinmyothant1/telegram-upload
913e7c8a7cbb3859524866319f1a79d8ff7950f6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Console script for telegram-upload.""" import click from telegram_upload.client import Client from telegram_upload.config import default_config, CONFIG_FILE from telegram_upload.exceptions import catch from telegram_upload.files import NoDirectoriesFiles, RecursiveFiles, NoLargeFiles, Split...
49.179775
119
0.667809
9ea7e1858c35fcdd71a8e3105f24a741680f91e5
5,221
py
Python
api/tests/test_util.py
rosszm/hashmarks
133d2af5f149247367dc52678b3a56461de79b9d
[ "MIT" ]
null
null
null
api/tests/test_util.py
rosszm/hashmarks
133d2af5f149247367dc52678b3a56461de79b9d
[ "MIT" ]
9
2022-03-01T04:35:26.000Z
2022-03-31T22:59:28.000Z
api/tests/test_util.py
rosszm/hashmarks
133d2af5f149247367dc52678b3a56461de79b9d
[ "MIT" ]
null
null
null
""" Unit testing for the utils module. """ import httpx import pytest import uvicorn from nhlapi.util import forward_request from fastapi import FastAPI, HTTPException, Request from tests.helpers.helper import ThreadedServer # Define the host and port to use for mock APIs MOCK_HOST = "0.0.0.0" MOCK_PORT = 5000 @py...
30.893491
95
0.509864
ccf25750ccfe9097fa1e0cae4d92a80a69948ea8
1,227
py
Python
upload.py
Lulzx/search
534fd8e6bfbc8661767c9bcb9e396cc151b3af64
[ "CC0-1.0" ]
null
null
null
upload.py
Lulzx/search
534fd8e6bfbc8661767c9bcb9e396cc151b3af64
[ "CC0-1.0" ]
null
null
null
upload.py
Lulzx/search
534fd8e6bfbc8661767c9bcb9e396cc151b3af64
[ "CC0-1.0" ]
1
2020-07-12T06:46:27.000Z
2020-07-12T06:46:27.000Z
import uuid import os from pathlib import Path import shutil from typing import List from fastapi import FastAPI, File, UploadFile UPLOAD_FOLDER = 'uploads' app = FastAPI() def save_uploaded_file(upload_file: UploadFile, destination: Path) -> None: try: with destination.open("wb") as buffer: ...
25.5625
75
0.678892
f33c9fcb3f0a0f91e398d9922fc23d4a43a81206
3,578
py
Python
my_configs/cattle/resnet_50_10/spine_black.py
EricChan-OC/mmpose
b7f36b29eb077b69791675cce39dfcc23c658647
[ "Apache-2.0" ]
null
null
null
my_configs/cattle/resnet_50_10/spine_black.py
EricChan-OC/mmpose
b7f36b29eb077b69791675cce39dfcc23c658647
[ "Apache-2.0" ]
null
null
null
my_configs/cattle/resnet_50_10/spine_black.py
EricChan-OC/mmpose
b7f36b29eb077b69791675cce39dfcc23c658647
[ "Apache-2.0" ]
null
null
null
log_level = 'INFO' load_from = None resume_from = None dist_params = dict(backend='nccl') workflow = [('train', 1)] checkpoint_config = dict(interval=210) evaluation = dict(interval=5, metric='PCK', key_indicator='PCK') COLOR = 'black' EXTEND = '10' optimizer = dict( type='Adam', lr=5e-4, ) optimizer_config = ...
27.106061
79
0.624651
1233ae8b17d80a5bddbefa790361c3522309efd9
291
py
Python
examples/personzju/analyze_department.py
zjuchenyuan/EasyLogin
acc67187d902f20ec64d2d6b9eeb953e2a0ac77d
[ "MIT" ]
33
2016-12-01T01:33:31.000Z
2021-05-12T03:32:27.000Z
examples/personzju/analyze_department.py
zjuchenyuan/EasyLogin
acc67187d902f20ec64d2d6b9eeb953e2a0ac77d
[ "MIT" ]
2
2018-04-26T06:58:29.000Z
2020-01-11T15:18:14.000Z
examples/personzju/analyze_department.py
zjuchenyuan/EasyLogin
acc67187d902f20ec64d2d6b9eeb953e2a0ac77d
[ "MIT" ]
4
2017-02-24T11:08:45.000Z
2021-01-13T16:00:33.000Z
data = [] for _line in open("personzju.txt"): dep = _line.split("\t")[1].split(" | ")[0] if "学院" in dep and dep.split("学院")[-1]!="": dep = dep.split("学院")[0]+"学院" data.append(dep) from collections import Counter from pprint import pprint pprint(Counter(data))
26.454545
48
0.584192
af035505f0909e6be358743c98fd22ea78475645
39,799
py
Python
lib/galaxy_test/api/test_tools_upload.py
toshea-bu/galaxy
760fcbd3d4ca8b036d8531751d972684eee130e2
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy_test/api/test_tools_upload.py
toshea-bu/galaxy
760fcbd3d4ca8b036d8531751d972684eee130e2
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy_test/api/test_tools_upload.py
toshea-bu/galaxy
760fcbd3d4ca8b036d8531751d972684eee130e2
[ "CC-BY-3.0" ]
null
null
null
import json import pytest from galaxy.tool_util.verify.test_data import TestDataResolver from galaxy_test.base.constants import ( ONE_TO_SIX_ON_WINDOWS, ONE_TO_SIX_WITH_SPACES, ONE_TO_SIX_WITH_TABS, ONE_TO_SIX_WITH_TABS_NO_TRAILING_NEWLINE, ) from galaxy_test.base.populators import ( DatasetPopula...
47.043735
145
0.625619
a16e3af848bd8f76ee2d6d8b4a315a3e3350944b
4,382
py
Python
tutorial/14_word_embedding.py
hlthu/PyTorch-Learn
0dc598b3e9a499c44fafc9b8792c4512485d48a7
[ "MIT" ]
null
null
null
tutorial/14_word_embedding.py
hlthu/PyTorch-Learn
0dc598b3e9a499c44fafc9b8792c4512485d48a7
[ "MIT" ]
null
null
null
tutorial/14_word_embedding.py
hlthu/PyTorch-Learn
0dc598b3e9a499c44fafc9b8792c4512485d48a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This is an simple example of classifying bag of word """ import torch from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F import torch.optim as optim word_to_ix = {"hello":0, "world":1} embeds = nn.Embedding(2, 5) lookup_tensor = torch.LongTensor([wor...
36.214876
86
0.68576
d70bb54b7ff1007f520204544ab7eb27d941e8fc
1,137
py
Python
example/example/wsgi.py
perecasxiru/django-parler
6c5c7a968728e713f538dbab4ed86ee483c3856d
[ "Apache-2.0" ]
null
null
null
example/example/wsgi.py
perecasxiru/django-parler
6c5c7a968728e713f538dbab4ed86ee483c3856d
[ "Apache-2.0" ]
null
null
null
example/example/wsgi.py
perecasxiru/django-parler
6c5c7a968728e713f538dbab4ed86ee483c3856d
[ "Apache-2.0" ]
null
null
null
""" WSGI config for example project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`` ...
37.9
79
0.806508
103907eab8787f3077d24bdd00923dc2cd488f46
117,667
py
Python
salt/states/pkg.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:21.000Z
2020-01-02T09:03:21.000Z
salt/states/pkg.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
null
null
null
salt/states/pkg.py
jubrad/salt
7960334fb726cfde45e6409da79a65535c626685
[ "Apache-2.0" ]
1
2020-01-02T09:03:24.000Z
2020-01-02T09:03:24.000Z
# -*- coding: utf-8 -*- ''' Installation of packages using OS package managers such as yum or apt-get ========================================================================= .. note:: On minions running systemd>=205, as of version 2015.8.12, 2016.3.3, and 2016.11.0, `systemd-run(1)`_ is now used to isolate c...
37.557293
115
0.541562
ebe5c4de9ed7f89d73057e52017f983e12197340
4,100
py
Python
PythonAPI/carissma_project/lib/python3.5/site-packages/matplotlib/tests/test_scale.py
AbdulHoffmann/carla_carissma
8d382769ffa02a6c61a22c57160285505f5ff0a4
[ "MIT" ]
366
2019-04-07T20:34:48.000Z
2022-03-29T07:35:38.000Z
venv/lib/python3.7/site-packages/matplotlib/tests/test_scale.py
John1001Song/Big-Data-Robo-Adviser
9444dce96954c546333d5aecc92a06c3bfd19aa5
[ "MIT" ]
12
2018-12-06T22:06:49.000Z
2022-02-25T17:40:44.000Z
venv/lib/python3.7/site-packages/matplotlib/tests/test_scale.py
John1001Song/Big-Data-Robo-Adviser
9444dce96954c546333d5aecc92a06c3bfd19aa5
[ "MIT" ]
64
2018-04-25T08:51:57.000Z
2022-01-29T14:13:57.000Z
from matplotlib.testing.decorators import image_comparison import matplotlib.pyplot as plt from matplotlib.scale import Log10Transform, InvertedLog10Transform import numpy as np import io import platform import pytest @image_comparison(baseline_images=['log_scales'], remove_text=True) def test_log_scales(): ax = ...
27.152318
79
0.641463
adece9a3c816fd5440573ad625ca206486cae32f
570
py
Python
aesara/misc/latence_gpu_transfert.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
aesara/misc/latence_gpu_transfert.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
aesara/misc/latence_gpu_transfert.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
import time import numpy as np import aesara y = aesara.tensor.fvector() x = aesara.shared(np.zeros(1, dtype="float32")) f1 = aesara.function([y], updates={x: y}) f2 = aesara.function([], x.transfer("cpu")) print(f1.maker.fgraph.toposort()) print(f2.maker.fgraph.toposort()) for i in [1, 10, 100, 1000, 10000, 100000...
22.8
68
0.6
c27f4e8127906f0d5f89a36364037bd70f737a93
698
py
Python
src/util/log_utils.py
alexeybutyrev/cv2pipeline
c5d7328f6fe99f7084e0bcf302bf4c615739017d
[ "MIT" ]
null
null
null
src/util/log_utils.py
alexeybutyrev/cv2pipeline
c5d7328f6fe99f7084e0bcf302bf4c615739017d
[ "MIT" ]
null
null
null
src/util/log_utils.py
alexeybutyrev/cv2pipeline
c5d7328f6fe99f7084e0bcf302bf4c615739017d
[ "MIT" ]
1
2021-02-18T14:50:52.000Z
2021-02-18T14:50:52.000Z
import logging import sys import os DEFAULT_LOGGER_NAME = os.getenv('LOGGER_NAME', 'cv2pipeline') def init_logging(logger_name=DEFAULT_LOGGER_NAME, log_level=logging.DEBUG, format='[%(asctime)s][%(name)s][%(levelname)s] %(message)s', stream=None): logger = loggi...
24.928571
77
0.681948
e9ba9ce9ba509b3713e62d2fef3b67a5cc7cc537
3,909
py
Python
src/main/python/rlbot/utils/class_importer.py
robbai/RLBot
2cf0abbc028d1be9b2a2d063e2088231074cc881
[ "MIT" ]
3
2020-04-30T14:33:10.000Z
2021-10-11T00:12:35.000Z
src/main/python/rlbot/utils/class_importer.py
Acidburn0zzz/RLBot
b6365e0c92183563fb7ff67d4ba81b58a31b1ff5
[ "MIT" ]
null
null
null
src/main/python/rlbot/utils/class_importer.py
Acidburn0zzz/RLBot
b6365e0c92183563fb7ff67d4ba81b58a31b1ff5
[ "MIT" ]
null
null
null
import importlib import inspect import os import sys from rlbot.agents.base_agent import BaseAgent class ExternalClassWrapper: """ Given the absolute path of a python file, this can load the associated module and find a class inside it that extends the base class. The module in the target file may assume...
37.228571
117
0.731645
2c719f1b0660193314917f98b7c75160c0a57473
578
py
Python
validators/mysql.py
0pc0deFR/validators
0f340c795e930de08985afcbbc7334c95b752506
[ "MIT" ]
null
null
null
validators/mysql.py
0pc0deFR/validators
0f340c795e930de08985afcbbc7334c95b752506
[ "MIT" ]
null
null
null
validators/mysql.py
0pc0deFR/validators
0f340c795e930de08985afcbbc7334c95b752506
[ "MIT" ]
null
null
null
import re from .utils import validator # pattern = re.compile( r'^[a-zA-Z0-9]{1,64}$' # Name of database name ) @validator def dbName(value): """ Return whether or not given value is a valid database. If the value is valid database name this function returns ``True``, otherwise :class:`~valida...
22.230769
81
0.638408
d307f9196e464cfd077f2bdca937d79d43a5aa13
269
py
Python
tests/artificial/transf_Anscombe/trend_PolyTrend/cycle_12/ar_12/test_artificial_32_Anscombe_PolyTrend_12_12_20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_Anscombe/trend_PolyTrend/cycle_12/ar_12/test_artificial_32_Anscombe_PolyTrend_12_12_20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_Anscombe/trend_PolyTrend/cycle_12/ar_12/test_artificial_32_Anscombe_PolyTrend_12_12_20.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 12, transform = "Anscombe", sigma = 0.0, exog_count = 20, ar_order = 12);
38.428571
164
0.732342
7b148de04db0e57b66c9a33e4cfd3e80526c9206
978
py
Python
utils/text/symbols.py
boltomli/ForwardTacotron
22e5ca705671088d49aeb6e3d497ac8e5d20481f
[ "MIT" ]
2
2020-03-23T04:26:19.000Z
2020-04-29T12:30:17.000Z
utils/text/symbols.py
boltomli/ForwardTacotron
22e5ca705671088d49aeb6e3d497ac8e5d20481f
[ "MIT" ]
null
null
null
utils/text/symbols.py
boltomli/ForwardTacotron
22e5ca705671088d49aeb6e3d497ac8e5d20481f
[ "MIT" ]
null
null
null
""" from https://github.com/keithito/tacotron """ ''' Defines the set of symbols used in text input to the model. The default is a set of ASCII characters that works well for English or text that has been run through Unidecode. For other data, you can modify _characters. See TRAINING_DATA.md for details. ''' from uti...
34.928571
195
0.759714
f1ad7112aaade0ff7c82733c44cfb1311546cfff
674
py
Python
populate_stocks.py
endk17/autoark
b65a79f2754f53fa10ee19198a1d461fd7cfadee
[ "MIT" ]
null
null
null
populate_stocks.py
endk17/autoark
b65a79f2754f53fa10ee19198a1d461fd7cfadee
[ "MIT" ]
null
null
null
populate_stocks.py
endk17/autoark
b65a79f2754f53fa10ee19198a1d461fd7cfadee
[ "MIT" ]
null
null
null
from data import config import alpaca_trade_api as tradeapi import psycopg2 import psycopg2.extras connection = psycopg2.connect(host=config.DB_HOST, database=config.DB_NAME, user=config.DB_USER, password=config.DB_PASS) cursor = connection.cursor(cursor_factory=psycopg2.extras.DictCursor) api = tradeapi.REST(config...
30.636364
121
0.746291
8d879f392a9d90f4dabd25434d3e5aea6deaf091
483
py
Python
mla/src/test.py
TadayoshiCarvajal/MachineLearningAutomator
48b3881793ef1644431817aa1f876c0f21fbaa85
[ "MIT" ]
1
2019-12-17T16:57:16.000Z
2019-12-17T16:57:16.000Z
mla/src/test.py
TadayoshiCarvajal/MachineLearningAutomator
48b3881793ef1644431817aa1f876c0f21fbaa85
[ "MIT" ]
null
null
null
mla/src/test.py
TadayoshiCarvajal/MachineLearningAutomator
48b3881793ef1644431817aa1f876c0f21fbaa85
[ "MIT" ]
null
null
null
from file_handling import FileHandler from sys import argv if __name__ == '__main__': file_name = argv[1] print(file_name) model = FileHandler().load_model(file_name) while True: print('Type a line:') line = [[input(), None]] guess = model.predict(line) print('mode...
28.411765
77
0.604555
19f2c5b1bbb47c7658ebf9578f62c10050c7eaf4
3,687
py
Python
object_detection/core/region_similarity_calculator.py
PPTMiao/mtl-ssl
b61449c3f902414304657de6ec217077e441a6b9
[ "Apache-2.0" ]
90
2019-06-12T06:11:39.000Z
2022-03-21T22:28:38.000Z
object_detection/core/region_similarity_calculator.py
PPTMiao/mtl-ssl
b61449c3f902414304657de6ec217077e441a6b9
[ "Apache-2.0" ]
3
2020-03-24T17:01:25.000Z
2021-02-02T22:00:11.000Z
object_detection/core/region_similarity_calculator.py
PPTMiao/mtl-ssl
b61449c3f902414304657de6ec217077e441a6b9
[ "Apache-2.0" ]
17
2019-06-15T08:49:46.000Z
2022-01-24T06:46:23.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
32.06087
80
0.723352
0cbd4b62f117235e7b9338f2c2933e08a091467c
1,915
py
Python
tests/test_utils.py
pp81381/nicett6
addace8fbd5350105bf4fb27d1b485bb9cf20236
[ "MIT" ]
null
null
null
tests/test_utils.py
pp81381/nicett6
addace8fbd5350105bf4fb27d1b485bb9cf20236
[ "MIT" ]
1
2021-06-06T20:43:09.000Z
2021-06-06T20:43:09.000Z
tests/test_utils.py
pp81381/nicett6
addace8fbd5350105bf4fb27d1b485bb9cf20236
[ "MIT" ]
null
null
null
from unittest import TestCase, IsolatedAsyncioTestCase from nicett6.utils import ( get_platform_serial_port, hex_arg_to_int, pct_arg_to_int, async_get_platform_serial_port, check_aspect_ratio, ) class TestValidationAndConversion(TestCase): def test_hex_arg(self): self.assertEqual(hex_a...
34.196429
60
0.667363
1cd0eb98b928015e692813d935655506fa44ebc7
775
py
Python
EquationBalancer/Element.py
krmnino/ChemicalEquationBalancer
5ef5975e0ffc8e9d74e8af542affff78f25add38
[ "MIT" ]
null
null
null
EquationBalancer/Element.py
krmnino/ChemicalEquationBalancer
5ef5975e0ffc8e9d74e8af542affff78f25add38
[ "MIT" ]
null
null
null
EquationBalancer/Element.py
krmnino/ChemicalEquationBalancer
5ef5975e0ffc8e9d74e8af542affff78f25add38
[ "MIT" ]
null
null
null
class Element: name = '' symbol = '' atomic_number = 0 atomic_mass = 0.0 subscript = 0 def __init__(self, name_, symbol_, atomic_number_, atomic_mass_, subscript_): self.subscript = subscript_ self.name = name_ self.symbol = symbol_[:len(symbol_)-1] self.at...
38.75
139
0.623226
3f2ba0626bfddc6ae75038fc42d560d690b93fc9
7,057
py
Python
evaluate_k_usage.py
sylvielee/style-swap-819
14e8727156c831d471b131058a56f1bbf1a916a5
[ "MIT" ]
null
null
null
evaluate_k_usage.py
sylvielee/style-swap-819
14e8727156c831d471b131058a56f1bbf1a916a5
[ "MIT" ]
null
null
null
evaluate_k_usage.py
sylvielee/style-swap-819
14e8727156c831d471b131058a56f1bbf1a916a5
[ "MIT" ]
null
null
null
import os import sys from PIL import Image import numpy as np def analyze_k_usage(filename, original_fn, patch_dir, output_name): if not os.path.exists(patch_dir): raise Exception("%s directory cannot be found" % patch_dir) patch_images, patch_img_names = get_patch_sources(patch_dir) # get co...
40.096591
124
0.632422
6ceb639b9a64bb1403e123b8aa6f2040d090e352
8,229
py
Python
tests/api/instance_test.py
MaibornWolff/dcos-airfield
6676d6b7742e6dcccb3cfbfbc51f3052e0f85deb
[ "Apache-2.0" ]
8
2018-12-06T18:09:08.000Z
2021-07-06T05:31:52.000Z
tests/api/instance_test.py
MaibornWolff/dcos-airfield
6676d6b7742e6dcccb3cfbfbc51f3052e0f85deb
[ "Apache-2.0" ]
9
2020-04-17T06:48:45.000Z
2020-07-29T14:30:42.000Z
tests/api/instance_test.py
MaibornWolff/dcos-airfield
6676d6b7742e6dcccb3cfbfbc51f3052e0f85deb
[ "Apache-2.0" ]
1
2018-10-31T14:19:27.000Z
2018-10-31T14:19:27.000Z
import unittest from unittest import mock from airfield.util import dependency_injection as di from airfield.adapter.marathon import MarathonAdapter, InstanceState from airfield.adapter.kv import KVAdapter from airfield.util import logging from tests.mocks.marathon_adapter import MarathonAdapterMock from tests.mocks.kv...
50.484663
114
0.680277
2c42d963e2786a6234023dbcb8c85636f697d7bf
9,977
py
Python
test/functional-tests/PfwTestCase/Types/tINT8_Max.py
MIPS/external-parameter-framework
7f346c9058f39a533a2eaadc9ebc4001397c6ff9
[ "BSD-3-Clause" ]
null
null
null
test/functional-tests/PfwTestCase/Types/tINT8_Max.py
MIPS/external-parameter-framework
7f346c9058f39a533a2eaadc9ebc4001397c6ff9
[ "BSD-3-Clause" ]
null
null
null
test/functional-tests/PfwTestCase/Types/tINT8_Max.py
MIPS/external-parameter-framework
7f346c9058f39a533a2eaadc9ebc4001397c6ff9
[ "BSD-3-Clause" ]
null
null
null
# -*-coding:utf-8 -* # Copyright (c) 2011-2015, Intel Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, thi...
43.378261
123
0.575724
36ec44eaee3b8ade38700d5be539b49352830ef2
4,615
py
Python
skwadon/lib.py
suzuki-navi/skwadon
a067378a55049721fcaae90a494455167ab08db3
[ "MIT" ]
1
2022-03-25T11:04:19.000Z
2022-03-25T11:04:19.000Z
skwadon/lib.py
suzuki-navi/skwadon
a067378a55049721fcaae90a494455167ab08db3
[ "MIT" ]
null
null
null
skwadon/lib.py
suzuki-navi/skwadon
a067378a55049721fcaae90a494455167ab08db3
[ "MIT" ]
null
null
null
import os import random import sys import tempfile import urllib def removeKey(info: dict, key: str): if key in info: del info[key] def exec_diff(content1, content2, dst_file, name1 = "1", name2 = "2"): sys.stdout.flush() sys.stderr.flush() tmpdir = tempfile.mkdtemp() fifo1 = tmpdir + "/" ...
26.371429
84
0.560563
ee294601607373415ba264bb4ee8b29948d816d3
7,548
py
Python
pkgs/ruamel_yaml-0.11.14-py27_0/lib/python2.7/site-packages/ruamel_yaml/reader.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/ruamel_yaml-0.11.14-py27_0/lib/python2.7/site-packages/ruamel_yaml/reader.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pkgs/ruamel_yaml-0.11.14-py27_0/lib/python2.7/site-packages/ruamel_yaml/reader.py
wangyum/anaconda
6e5a0dbead3327661d73a61e85414cf92aa52be6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import # This module contains abstractions for the input stream. You don't have to # looks further, there are no pretty code. # # We define two classes here. # # Mark(source, line, column) # It's just a record and its only use is producing nice error messages. # Parser...
35.271028
79
0.551802
87d3b1af9e2266447900ffc2761e35c8693624bb
1,321
py
Python
test/hw4/test_treap.py
ubuntuegor/spbu_2022_python_homeworks
47a683ae3d1f20c20e94550a452166b2e2f0e989
[ "MIT" ]
null
null
null
test/hw4/test_treap.py
ubuntuegor/spbu_2022_python_homeworks
47a683ae3d1f20c20e94550a452166b2e2f0e989
[ "MIT" ]
null
null
null
test/hw4/test_treap.py
ubuntuegor/spbu_2022_python_homeworks
47a683ae3d1f20c20e94550a452166b2e2f0e989
[ "MIT" ]
null
null
null
from src.hw4.treap import Treap def test_empty_treap(): t = Treap() assert len(t) == 0 for _ in t: raise RuntimeError("This treap is empty!") def test_treap_from_dict(): r = range(100) src = {key: chr(key) for key in r} t = Treap(src) for i in r: assert i in src a...
19.144928
50
0.507949
62a11b6cb8b1083947a6618b085afc9cec77f0a6
4,452
py
Python
built-in/PyTorch/Official/cv/image_object_detection/YoloV3_ID1790_for_PyTorch/mmcv_need/data_parallel.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/PyTorch/Official/cv/image_object_detection/YoloV3_ID1790_for_PyTorch/mmcv_need/data_parallel.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/PyTorch/Official/cv/image_object_detection/YoloV3_ID1790_for_PyTorch/mmcv_need/data_parallel.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright 2021 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 agree...
43.223301
79
0.645777
64bf0a7e488a934839994c09f542f3e06b9de403
2,762
py
Python
scripts/assign_jobs.py
oaklandanalytics/parcel_cutting_board
c134ab3c239090e7acb04d1257186763bf437640
[ "BSD-3-Clause" ]
null
null
null
scripts/assign_jobs.py
oaklandanalytics/parcel_cutting_board
c134ab3c239090e7acb04d1257186763bf437640
[ "BSD-3-Clause" ]
null
null
null
scripts/assign_jobs.py
oaklandanalytics/parcel_cutting_board
c134ab3c239090e7acb04d1257186763bf437640
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd import numpy as np import shared import sys args = sys.argv[1:] sectors = [ 'ag', 'natres', 'util', 'constr', 'man_lgt', 'man_hvy', 'man_bio', 'man_tech', 'logis', 'ret_reg', 'ret_loc', 'transp', 'info', 'fire', 'serv_pers', 'lease', 'prof', 'serv_bus', 'ed_k12', 'ed_high', 'ed_oth', 'healt...
30.351648
77
0.680304
8183027c8553c81dfa0f0246e6987966b74b7987
1,005
py
Python
config/config_Cora.py
STK101/GRCN
7389000a13d5969bcc77dc4cf73a4107acc68403
[ "MIT" ]
null
null
null
config/config_Cora.py
STK101/GRCN
7389000a13d5969bcc77dc4cf73a4107acc68403
[ "MIT" ]
null
null
null
config/config_Cora.py
STK101/GRCN
7389000a13d5969bcc77dc4cf73a4107acc68403
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F params_fixed={ "sample" : 0.1, "nhid": 32, # number of hidden units per layer "dropout": 0.5, "F": torch.relu, "F_graph": torch.tanh, "lr": 5e-3, # learning rate for node classification "wd": 5e-3, # weight decay for node classification...
29.558824
61
0.610945
552e20a87fca2dc25e41926554279ce22a3edb02
2,497
py
Python
backend/pyrogram/raw/types/account/authorizations.py
appheap/social-media-analyzer
0f9da098bfb0b4f9eb38e0244aa3a168cf97d51c
[ "Apache-2.0" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/types/account/authorizations.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/types/account/authorizations.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
32.428571
103
0.649179
d5ad4f131bfcb37922b61dc0c8a3a1edb57e2d18
1,517
py
Python
gems/models.py
jawanng/minerals
dd5467d16fbfae61fb372ad4f7dcfe3ff84d14d4
[ "MIT" ]
null
null
null
gems/models.py
jawanng/minerals
dd5467d16fbfae61fb372ad4f7dcfe3ff84d14d4
[ "MIT" ]
6
2019-12-04T23:02:30.000Z
2022-02-10T09:02:16.000Z
gems/models.py
jawanng/minerals
dd5467d16fbfae61fb372ad4f7dcfe3ff84d14d4
[ "MIT" ]
null
null
null
from django.db import models import re # Create your models here. class Gem(models.Model): name = models.CharField(max_length=120) image_filename = models.CharField(max_length=120) image_caption = models.CharField(blank=True, max_length=120) category = models.CharField(max_length=120) formula = mo...
43.342857
78
0.726434
140509533fa96af21fd0363ea0a6e17afe79c2d9
4,144
py
Python
electrum/constants.py
privatekeychain/pkpay
404c1ba82ae99eadec60a303f497ee88649758ab
[ "MIT" ]
1
2018-12-13T09:49:13.000Z
2018-12-13T09:49:13.000Z
electrum/constants.py
privatekeychain/pkpay
404c1ba82ae99eadec60a303f497ee88649758ab
[ "MIT" ]
1
2021-11-15T17:48:09.000Z
2021-11-15T17:48:09.000Z
electrum/constants.py
privatekeychain/pkpay
404c1ba82ae99eadec60a303f497ee88649758ab
[ "MIT" ]
1
2018-12-13T08:00:58.000Z
2018-12-13T08:00:58.000Z
# -*- coding: utf-8 -*- # # Electrum - lightweight Bitcoin client # Copyright (C) 2018 The Electrum developers # # 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, # includi...
28.979021
81
0.666747
13709b49a4a598caf0201faed7f4a2791db2c2f3
776
py
Python
urls.py
CzA11/YumiYumi
e13a072569c609a1db526e740a4961b12ac5c9a5
[ "MIT" ]
null
null
null
urls.py
CzA11/YumiYumi
e13a072569c609a1db526e740a4961b12ac5c9a5
[ "MIT" ]
null
null
null
urls.py
CzA11/YumiYumi
e13a072569c609a1db526e740a4961b12ac5c9a5
[ "MIT" ]
null
null
null
"""djangoproject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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'...
35.272727
78
0.69201
fbeb2421eab96099cdd4ca9812d564d5cb732caa
13,138
py
Python
payments/paypal/__init__.py
wtayyeb/django-payments
915ffd772e8e6be2f67950a45a0e3f57992d62b3
[ "BSD-3-Clause" ]
3
2020-04-17T19:01:57.000Z
2022-03-07T19:54:43.000Z
payments/paypal/__init__.py
wtayyeb/django-payments
915ffd772e8e6be2f67950a45a0e3f57992d62b3
[ "BSD-3-Clause" ]
5
2020-03-24T16:37:25.000Z
2021-06-10T21:24:54.000Z
payments/paypal/__init__.py
wtayyeb/django-payments
915ffd772e8e6be2f67950a45a0e3f57992d62b3
[ "BSD-3-Clause" ]
1
2021-09-13T08:54:00.000Z
2021-09-13T08:54:00.000Z
from __future__ import unicode_literals from datetime import timedelta from decimal import Decimal, ROUND_HALF_UP from functools import wraps try: from itertools import ifilter as filter except ImportError: pass import json import logging from django.http import HttpResponseForbidden from django.shortcuts impo...
39.10119
79
0.60169
27605d24bfa2fad21aeef958b1dec9b4033e1b3d
263
py
Python
project_sample/backend_django/apps/sample/serializers.py
Volkova-Natalia/django_sql_explain_logger_example
2499a51e142f9d3951ec4c858d6ac26d0bc3140e
[ "MIT" ]
null
null
null
project_sample/backend_django/apps/sample/serializers.py
Volkova-Natalia/django_sql_explain_logger_example
2499a51e142f9d3951ec4c858d6ac26d0bc3140e
[ "MIT" ]
null
null
null
project_sample/backend_django/apps/sample/serializers.py
Volkova-Natalia/django_sql_explain_logger_example
2499a51e142f9d3951ec4c858d6ac26d0bc3140e
[ "MIT" ]
null
null
null
from rest_framework.serializers import ModelSerializer from .models import People class PeopleSerializer(ModelSerializer): class Meta: model = People fields = [ 'id', 'first_name', 'last_name', ]
18.785714
54
0.589354
42c7d5a24170d03227301cc8c27a729aae827ff8
1,201
py
Python
flask_unchained/bundles/graphene/hooks/register_graphene_root_schema_hook.py
briancappello/flask-unchained
bff296b5c808f5b1db10f7dddb81054600545749
[ "MIT" ]
69
2018-10-10T01:59:11.000Z
2022-03-29T17:29:30.000Z
flask_unchained/bundles/graphene/hooks/register_graphene_root_schema_hook.py
briancappello/flask-unchained
bff296b5c808f5b1db10f7dddb81054600545749
[ "MIT" ]
18
2018-11-17T12:42:02.000Z
2021-05-22T18:45:27.000Z
flask_unchained/bundles/graphene/hooks/register_graphene_root_schema_hook.py
briancappello/flask-unchained
bff296b5c808f5b1db10f7dddb81054600545749
[ "MIT" ]
7
2018-10-12T16:20:25.000Z
2021-10-06T12:18:21.000Z
import graphene from flask_unchained import AppFactoryHook, Bundle, FlaskUnchained from typing import * class RegisterGrapheneRootSchemaHook(AppFactoryHook): """ Creates the root :class:`graphene.Schema` to register with Flask-GraphQL. """ name = 'graphene_root_schema' """ The name of this h...
32.459459
83
0.629475
f318ae0463eebd82d8a3ec59e5a21c16bcbbb36a
7,042
py
Python
test/wrapper/system_tests/adapter_sqlite/adapter_sqlite_recover.py
SRCH2/srch2-ngn
925f36971aa6a8b31cdc59f7992790169e97ee00
[ "BSD-3-Clause" ]
14
2016-01-15T20:26:54.000Z
2018-11-26T20:47:43.000Z
test/wrapper/system_tests/adapter_sqlite/adapter_sqlite_recover.py
SRCH2/srch2-ngn
925f36971aa6a8b31cdc59f7992790169e97ee00
[ "BSD-3-Clause" ]
2
2016-04-26T05:29:01.000Z
2016-05-07T00:13:38.000Z
test/wrapper/system_tests/adapter_sqlite/adapter_sqlite_recover.py
SRCH2/srch2-ngn
925f36971aa6a8b31cdc59f7992790169e97ee00
[ "BSD-3-Clause" ]
7
2016-02-27T11:35:59.000Z
2018-11-26T20:47:59.000Z
#These tests are used for the adapter_sqlite #Require sqlite3 installed. #Test 1: test loading index from the sqlite table to create the index, engine exits gracefully. #Test 2: Start the engine, update the record in sqlite, # then the listener should fetch the results, then engine exits without saving changes....
33.216981
95
0.658478
099b62ae2a2eea4f19cb969e1f3e5617298db456
1,030
py
Python
diggory/calendar/oceania.py
Natim/Diggory
b3fde067b223a39e725147086bfe6058d1d466f5
[ "Apache-2.0" ]
null
null
null
diggory/calendar/oceania.py
Natim/Diggory
b3fde067b223a39e725147086bfe6058d1d466f5
[ "Apache-2.0" ]
3
2017-09-05T09:31:45.000Z
2017-09-05T13:43:23.000Z
diggory/calendar/oceania.py
Natim/Diggory
b3fde067b223a39e725147086bfe6058d1d466f5
[ "Apache-2.0" ]
null
null
null
from workalendar.core import WesternCalendar, MON from workalendar.oceania import ( Australia as WAustralia, AustraliaCapitalTerritory ) class Australia(WAustralia): include_queens_birthday = True include_labour_day_october = True def get_variable_days(self, year): cal = AustraliaCapitalT...
25.121951
66
0.650485
e94aa4f39abe210a32aed47e3d34261f3ffe6c58
1,512
py
Python
vespa/analysis/algos/cross_correlate.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
null
null
null
vespa/analysis/algos/cross_correlate.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
4
2021-04-17T13:58:31.000Z
2022-01-20T14:19:57.000Z
vespa/analysis/algos/cross_correlate.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
3
2021-06-05T16:34:57.000Z
2022-01-19T16:13:22.000Z
# Python modules # 3rd party modules import numpy as np def cross_correlate(x, y, lag, covariance=False): """ This method calculates the cross correlation Pxy(lag) or cross covariance Rxy(lag) of two data sets x and y as a function of the lag. x: a numpy array of type integer, float or complex....
28.528302
78
0.595899
258d22cf42f7bcd390d90581a9ee140726e7c177
8,409
py
Python
Oem/jsoncpp/scons-local-0.97/SCons/Platform/posix.py
achilex/MgDev
f7baf680a88d37659af32ee72b9a2046910b00d8
[ "PHP-3.0" ]
2
2017-04-19T01:38:30.000Z
2020-07-31T03:05:32.000Z
Oem/jsoncpp/scons-local-0.97/SCons/Platform/posix.py
achilex/MgDev
f7baf680a88d37659af32ee72b9a2046910b00d8
[ "PHP-3.0" ]
null
null
null
Oem/jsoncpp/scons-local-0.97/SCons/Platform/posix.py
achilex/MgDev
f7baf680a88d37659af32ee72b9a2046910b00d8
[ "PHP-3.0" ]
1
2021-12-29T10:46:12.000Z
2021-12-29T10:46:12.000Z
"""SCons.Platform.posix Platform-specific initialization for POSIX (Linux, UNIX, etc.) systems. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Platform.Platform() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2...
33.369048
124
0.603639
1aaaa292c2594302a83e70f7f6d38fe977df4f5d
11,953
py
Python
stockVars.py
md100play/Stock_Backtester
03e8bf048f8a5602d8172dff0c1d12f2ed9af7ff
[ "MIT" ]
1
2017-05-28T22:30:07.000Z
2017-05-28T22:30:07.000Z
stockVars.py
MikeDombo/Stock_Backtester
03e8bf048f8a5602d8172dff0c1d12f2ed9af7ff
[ "MIT" ]
1
2017-05-04T03:28:04.000Z
2017-05-04T05:45:53.000Z
stockVars.py
md100play/Stock_Backtester
03e8bf048f8a5602d8172dff0c1d12f2ed9af7ff
[ "MIT" ]
null
null
null
# Copyright (c) 2017 by Michael Dombrowski <http://MikeDombrowski.com/>. # # This file is part of Python Customizable Stock Backtester <http://github.com/md100play/Stock_Backtester/>. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (...
27.22779
108
0.725425
95194517733fc6ed31b9558173a39802755c7a05
1,321
py
Python
validate/index.py
technolingo/AlgoStructuresPy
4ac95542dec48b61dab3a0f33c5bacbe5a3cb3f1
[ "MIT" ]
null
null
null
validate/index.py
technolingo/AlgoStructuresPy
4ac95542dec48b61dab3a0f33c5bacbe5a3cb3f1
[ "MIT" ]
null
null
null
validate/index.py
technolingo/AlgoStructuresPy
4ac95542dec48b61dab3a0f33c5bacbe5a3cb3f1
[ "MIT" ]
null
null
null
''' Given a root node, validate the binary search tree, ensuring that every node's left hand child is less than the parent node's value, and that every node's right hand child is greater than the parent ''' class Node: def __init__(self, data, left=None, right=None): self.data = data self.left = ...
29.355556
64
0.623013
aefe05731dd111cd8f690ff016fdd642ec2dd39d
159
py
Python
sales_purchase/sales_purchase/doctype/profit_and_loss_statistics/test_profit_and_loss_statistics.py
rahul-017/sales-frappe
7330125c891bf8227f0383e709c7a61c11dea564
[ "MIT" ]
null
null
null
sales_purchase/sales_purchase/doctype/profit_and_loss_statistics/test_profit_and_loss_statistics.py
rahul-017/sales-frappe
7330125c891bf8227f0383e709c7a61c11dea564
[ "MIT" ]
null
null
null
sales_purchase/sales_purchase/doctype/profit_and_loss_statistics/test_profit_and_loss_statistics.py
rahul-017/sales-frappe
7330125c891bf8227f0383e709c7a61c11dea564
[ "MIT" ]
null
null
null
# Copyright (c) 2021, RAHUL.S and Contributors # See license.txt # import frappe import unittest class TestPROFITANDLOSSSTATISTICS(unittest.TestCase): pass
17.666667
53
0.792453
94e6f6f6efd826d9435db854636e9754cc83b852
28,848
py
Python
armi/settings/fwSettings/globalSettings.py
youngmit/armi
67688e4e67d2a217dfc7b1ccfa64028c20b57a5b
[ "Apache-2.0" ]
null
null
null
armi/settings/fwSettings/globalSettings.py
youngmit/armi
67688e4e67d2a217dfc7b1ccfa64028c20b57a5b
[ "Apache-2.0" ]
null
null
null
armi/settings/fwSettings/globalSettings.py
youngmit/armi
67688e4e67d2a217dfc7b1ccfa64028c20b57a5b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 TerraPower, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
39.790345
205
0.603508
4f53ed03198e4cc2cf1111af4e4a43f4660c646d
114
py
Python
infinitefibo.py
krishna-prasath/My_programs
96bac29eb448beda2dda439ac7adea7a5343c066
[ "bzip2-1.0.6" ]
null
null
null
infinitefibo.py
krishna-prasath/My_programs
96bac29eb448beda2dda439ac7adea7a5343c066
[ "bzip2-1.0.6" ]
null
null
null
infinitefibo.py
krishna-prasath/My_programs
96bac29eb448beda2dda439ac7adea7a5343c066
[ "bzip2-1.0.6" ]
null
null
null
def fibbo(a,b,c): c=a+b a=b b=c print(c) c=0 return c+fibbo(a,b,c) fibbo(0,1,0)
11.4
26
0.429825
8af6450c92927dd74bea72d54a2c43be89e9acec
160
py
Python
library/test/test_compiler/testcorpus/58_async_for_dict_comp.py
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
278
2021-08-31T00:46:51.000Z
2022-02-13T19:43:28.000Z
library/test/test_compiler/testcorpus/58_async_for_dict_comp.py
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
9
2021-11-05T22:28:43.000Z
2021-11-23T08:39:04.000Z
library/test/test_compiler/testcorpus/58_async_for_dict_comp.py
tekknolagi/skybison
bea8fc2af0a70e7203b4c19f36c14a745512a335
[ "CNRI-Python-GPL-Compatible" ]
12
2021-08-31T07:49:54.000Z
2021-10-08T01:09:01.000Z
# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) async def foo(): l = {k:v async for k, v in gen()} return [i for i in l]
26.666667
76
0.6125
01fc977c5763439355d8cd9c5966bef55386b14a
6,397
py
Python
libqtile/widget/widgetbox.py
fdev31/qtile
7194d972b04a951bae0976f581bcd3e69ba161fe
[ "MIT" ]
null
null
null
libqtile/widget/widgetbox.py
fdev31/qtile
7194d972b04a951bae0976f581bcd3e69ba161fe
[ "MIT" ]
null
null
null
libqtile/widget/widgetbox.py
fdev31/qtile
7194d972b04a951bae0976f581bcd3e69ba161fe
[ "MIT" ]
null
null
null
# Copyright (c) 2020 elParaguayo # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distrib...
36.346591
95
0.628576
87433886a8d5a48c6bff3cba8b846212bb444663
4,935
py
Python
run_trained_snapshotdepth_on_captured_images.py
computational-imaging/DepthFromDefocusWithLearnedOptics
c3cf3fb46f2151e67236a294f8b19ba2269a47ca
[ "MIT" ]
19
2021-05-26T12:27:12.000Z
2022-03-24T02:55:41.000Z
run_trained_snapshotdepth_on_captured_images.py
computational-imaging/DepthFromDefocusWithLearnedOptics
c3cf3fb46f2151e67236a294f8b19ba2269a47ca
[ "MIT" ]
null
null
null
run_trained_snapshotdepth_on_captured_images.py
computational-imaging/DepthFromDefocusWithLearnedOptics
c3cf3fb46f2151e67236a294f8b19ba2269a47ca
[ "MIT" ]
4
2021-06-02T03:14:27.000Z
2022-02-23T13:09:48.000Z
""" Usage python run_trained_snapshotdepth_on_captured_images.py \ --scene indoor --captimg_path data/captured_data/indoor2_predemosaic.tif \ --ckpt_path data/checkpoints/checkpoint.ckpt """ import os from argparse import ArgumentParser import matplotlib.pyplot as plt import numpy as np import skimage.io imp...
35.25
107
0.684296
54fd12d940e93462847c7ac1355be79b6b7a78f7
8,850
py
Python
virtual/Lib/site-packages/pylint/pyreverse/diagrams.py
JamesKimari/pitch-one
aac9007716bf2e3b6446588a06508fac068f3d20
[ "MIT" ]
4
2018-08-14T14:08:55.000Z
2021-02-19T02:58:07.000Z
virtual/lib/python3.6/site-packages/pylint/pyreverse/diagrams.py
evantoh/patient-management-system
6637eb1344775633759165260ed99843581c0e72
[ "Unlicense" ]
32
2018-05-01T05:24:43.000Z
2022-03-11T23:20:39.000Z
virtual/lib/python3.6/site-packages/pylint/pyreverse/diagrams.py
evantoh/patient-management-system
6637eb1344775633759165260ed99843581c0e72
[ "Unlicense" ]
2
2018-05-16T10:39:48.000Z
2019-02-22T09:13:34.000Z
# Copyright (c) 2006, 2008-2010, 2012-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2014-2016 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014 Brett Cannon <brett@python.org> # Copyright (c) 2014 Arun Persaud <arun@nubati.net> # Copyright (c) 2015 Ionel Cristian Maries <contact@ionelmc...
34.980237
92
0.567797
2b98d0aa41b1c1f9d92c2d2bee9e798f8771f662
9,187
py
Python
research/object_detection/builders/losses_builder.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
46
2019-02-23T08:35:17.000Z
2022-03-29T09:59:44.000Z
research/object_detection/builders/losses_builder.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
12
2020-03-24T17:53:50.000Z
2022-03-12T00:05:19.000Z
research/object_detection/builders/losses_builder.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
27
2019-02-04T01:45:48.000Z
2021-03-18T02:39:28.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.312253
80
0.76064
efd448c821ecc3cd17b5107dc553c3ce70f4d27c
1,599
py
Python
run_tests.py
jonathanHuwP/CrystalGrowthTracker
af94ece95818407679a2a7c63be91731ba7ae5c2
[ "Apache-2.0" ]
null
null
null
run_tests.py
jonathanHuwP/CrystalGrowthTracker
af94ece95818407679a2a7c63be91731ba7ae5c2
[ "Apache-2.0" ]
14
2021-09-06T15:17:14.000Z
2021-12-14T12:18:08.000Z
run_tests.py
jonathanHuwP/CrystalGrowthTracker
af94ece95818407679a2a7c63be91731ba7ae5c2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun 03 Oct 2021 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
27.568966
80
0.676673
16574468c0bdf761171d7078c2db5081f3a94f2c
5,331
py
Python
rust/apps.py
AsiaLi/rust
9954d2bd9c337376840d638c6ac5af6d9a32ed28
[ "Apache-2.0" ]
5
2018-02-08T04:31:52.000Z
2020-05-08T00:59:05.000Z
rust/apps.py
AsiaLi/rust
9954d2bd9c337376840d638c6ac5af6d9a32ed28
[ "Apache-2.0" ]
2
2019-03-23T03:14:06.000Z
2019-04-19T07:51:55.000Z
rust/apps.py
AsiaLi/rust
9954d2bd9c337376840d638c6ac5af6d9a32ed28
[ "Apache-2.0" ]
4
2019-02-20T04:35:33.000Z
2020-05-07T13:46:27.000Z
# -*- coding: utf-8 -*- import json import falcon from falcon.routing import BaseConverter, CompiledRouter from rust.core.db import db as rust_db from rust.core import api from rust.core.exceptions import unicode_full_stack, ApiParameterError, ApiNotExistError, BusinessError from rust.core.api import ApiLogger from ...
27.060914
106
0.709998
f96adfd7fc67fc2a6f3c65f1ac41c1d697c93497
1,231
py
Python
integrated_gradients.py
bryanhe/integrated-gradient-pytorch
3ba8ac7194576da0c4b797de21e6b7016647ae2a
[ "MIT" ]
null
null
null
integrated_gradients.py
bryanhe/integrated-gradient-pytorch
3ba8ac7194576da0c4b797de21e6b7016647ae2a
[ "MIT" ]
null
null
null
integrated_gradients.py
bryanhe/integrated-gradient-pytorch
3ba8ac7194576da0c4b797de21e6b7016647ae2a
[ "MIT" ]
null
null
null
import numpy as np import torch # integrated gradients def integrated_gradients(inputs, model, target_label_idx, predict_and_gradients, baseline, steps=50, cuda=False): if baseline is None: baseline = 0 * inputs # scale inputs and compute gradients scaled_inputs = [baseline + (float(i) / steps) * ...
49.24
129
0.702681
a305b75af9b1c3203c36de2c7fca3fca4113be7e
2,869
py
Python
dockerization/app.py
cdeler/woogle
5774ce380947734bf0ed82bd27cdc5359bc1a646
[ "MIT" ]
null
null
null
dockerization/app.py
cdeler/woogle
5774ce380947734bf0ed82bd27cdc5359bc1a646
[ "MIT" ]
54
2018-07-05T13:39:48.000Z
2018-09-24T09:58:40.000Z
dockerization/app.py
cdeler/woogle
5774ce380947734bf0ed82bd27cdc5359bc1a646
[ "MIT" ]
null
null
null
import argparse import functools import logging #from subprocess import call import crawler.setting_language as setting from crawler.WikiSpider import process from crawler.WikiSpider import WikiSpider from PidFile import PidFile MAX_COUNT_THREADS = 10 CHOICE_LANGUAGE = list(setting.LANGUAGE_SETTING.keys()) # ['ru', ...
32.602273
84
0.628093