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
e4fdf0f27cdcc20fd874d9c62f0cce26915e8c3d
292
py
Python
QR code generator/qrcode.py
OIrabor24/Python-Games
0d84c04f126984b5afbbc5d26ac4f4cef7cd1534
[ "MIT" ]
null
null
null
QR code generator/qrcode.py
OIrabor24/Python-Games
0d84c04f126984b5afbbc5d26ac4f4cef7cd1534
[ "MIT" ]
null
null
null
QR code generator/qrcode.py
OIrabor24/Python-Games
0d84c04f126984b5afbbc5d26ac4f4cef7cd1534
[ "MIT" ]
null
null
null
import pyqrcode data = input("Enter the text or link to generate qr code: ") # Using pyqrcode.create() to create a qr code of the input data qr = pyqrcode.create(data) # Using .svg mehtod to save the qr code as SVG file of provided name & scale generator = qr.svg('qr_code.svg', scale=8)
41.714286
76
0.726027
89252a884855de5d29babcfd32a9ba26b018559d
3,071
py
Python
tools/c7n_azure/c7n_azure/resources/hdinsight.py
chris-angeli-rft/cloud-custodian
5ff331b114a591dbaf6d672e30ceefb7ae64a5dd
[ "Apache-2.0" ]
8
2021-05-18T02:22:03.000Z
2021-09-11T02:49:04.000Z
tools/c7n_azure/c7n_azure/resources/hdinsight.py
chris-angeli-rft/cloud-custodian
5ff331b114a591dbaf6d672e30ceefb7ae64a5dd
[ "Apache-2.0" ]
79
2019-03-20T12:27:06.000Z
2019-08-14T14:07:04.000Z
tools/c7n_azure/c7n_azure/resources/hdinsight.py
chris-angeli-rft/cloud-custodian
5ff331b114a591dbaf6d672e30ceefb7ae64a5dd
[ "Apache-2.0" ]
3
2017-09-21T13:36:46.000Z
2021-09-20T16:38:29.000Z
# Copyright 2019 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
26.704348
99
0.607294
a0393ed0172c15bc545ffbee462f24b5ea32b64f
558
py
Python
snacks/views.py
Bhattb2/django-custom-user
65fa6c9407e77abc6f743fe8b47dbc1b0d9d0f58
[ "MIT" ]
null
null
null
snacks/views.py
Bhattb2/django-custom-user
65fa6c9407e77abc6f743fe8b47dbc1b0d9d0f58
[ "MIT" ]
null
null
null
snacks/views.py
Bhattb2/django-custom-user
65fa6c9407e77abc6f743fe8b47dbc1b0d9d0f58
[ "MIT" ]
null
null
null
from snacks.models import Snack from .models import Snack class SnackListView(ListView): template_name = 'snacks/snack-list.html' model = Snack class SnackDetailView(DetailView): template_name = 'snacks/snack-detail.html' model = Snack class SnackDeleteView(DeleteView): template_name = 'snacks/s...
23.25
46
0.738351
21eb45103226f332602951148efe9adab58b2c77
675
py
Python
otp_dispatch_portal/manage.py
i-am-LC/Django-OTP-Dispatch-Portal
a49bafbdda34777655f1b98c3f50fdc0175ec503
[ "MIT" ]
null
null
null
otp_dispatch_portal/manage.py
i-am-LC/Django-OTP-Dispatch-Portal
a49bafbdda34777655f1b98c3f50fdc0175ec503
[ "MIT" ]
null
null
null
otp_dispatch_portal/manage.py
i-am-LC/Django-OTP-Dispatch-Portal
a49bafbdda34777655f1b98c3f50fdc0175ec503
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'otp_dispatch_portal.settings') try: from django.core.management import execute_from_command_line ...
29.347826
83
0.684444
979b70bbc5dba7eb947b8b5f36c0dc3391e414a2
2,416
py
Python
examples/vizier/launcher.py
jurgisp/xmanager
7c59aed661b93817589bb1904e7d099d26afa62f
[ "Apache-2.0" ]
null
null
null
examples/vizier/launcher.py
jurgisp/xmanager
7c59aed661b93817589bb1904e7d099d26afa62f
[ "Apache-2.0" ]
null
null
null
examples/vizier/launcher.py
jurgisp/xmanager
7c59aed661b93817589bb1904e7d099d26afa62f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 DeepMind Technologies Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
30.582278
80
0.675911
00dba3d2a40daed31e3c1caf5fef220214629d1f
1,812
py
Python
archived/s3/delete_objects.py
DS3Lab/LambdaML
0afca7819e08632ba116fec8e102084e4040a47a
[ "Apache-2.0" ]
23
2021-05-17T09:24:24.000Z
2022-01-29T18:40:44.000Z
archived/s3/delete_objects.py
DS3Lab/LambdaML
0afca7819e08632ba116fec8e102084e4040a47a
[ "Apache-2.0" ]
2
2021-05-17T16:15:12.000Z
2021-07-20T09:11:22.000Z
archived/s3/delete_objects.py
DS3Lab/LambdaML
0afca7819e08632ba116fec8e102084e4040a47a
[ "Apache-2.0" ]
3
2021-05-17T09:31:53.000Z
2021-12-02T16:29:59.000Z
# Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # This file is licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # This...
31.241379
81
0.684327
30a15236ae16b0abaec6b457c971624e355a046a
1,023
py
Python
tools/fetch_command.py
wuyudi/svelte-jsxgraph
62601cf69d7395331b8a4b7409f29c364084ea1a
[ "MIT" ]
3
2021-03-05T16:18:01.000Z
2021-05-14T08:47:53.000Z
tools/fetch_command.py
wuyudi/svelte-jsxgraph
62601cf69d7395331b8a4b7409f29c364084ea1a
[ "MIT" ]
142
2021-04-04T18:25:10.000Z
2022-03-30T14:51:44.000Z
tools/fetch_command.py
wuyudi/svelte-jsxgraph
62601cf69d7395331b8a4b7409f29c364084ea1a
[ "MIT" ]
2
2021-03-07T05:37:33.000Z
2021-04-03T15:57:28.000Z
""" This file is used to fetch the command on the docs. @requirements: httpx , lxml @usage: run this .py, an test.txt will occur at the same folder. """ import os import httpx from lxml.etree import HTML, HTMLParser res = httpx.get("https://jsxgraph.uni-bayreuth.de/docs/index.html") page = HTML(res.text, HTMLParser...
34.1
76
0.639296
b20bd1f035cee08ce0a7d63213aa69d857b1eb92
676
py
Python
jupyterlab/_version.py
parmentelat/jupyterlab
70b019c81dc660b27c795291dee39a1fef107b21
[ "BSD-3-Clause" ]
null
null
null
jupyterlab/_version.py
parmentelat/jupyterlab
70b019c81dc660b27c795291dee39a1fef107b21
[ "BSD-3-Clause" ]
null
null
null
jupyterlab/_version.py
parmentelat/jupyterlab
70b019c81dc660b27c795291dee39a1fef107b21
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. from collections import namedtuple VersionInfo = namedtuple('VersionInfo', [ 'major', 'minor', 'micro', 'releaselevel', 'serial' ]) # DO NOT EDIT THIS DIRECTLY! It is managed by bumpversion versi...
26
73
0.670118
73b8952b5c049648a4673e723793b1bb15e9bdee
8,276
py
Python
myuw/views/api/base_schedule.py
timtim17/myuw
d59702a8095daf049d7e57cbb1f7f2a5bebc69af
[ "Apache-2.0" ]
null
null
null
myuw/views/api/base_schedule.py
timtim17/myuw
d59702a8095daf049d7e57cbb1f7f2a5bebc69af
[ "Apache-2.0" ]
null
null
null
myuw/views/api/base_schedule.py
timtim17/myuw
d59702a8095daf049d7e57cbb1f7f2a5bebc69af
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 import logging import traceback from operator import itemgetter from restclients_core.exceptions import InvalidNetID from myuw.dao.campus_building import get_building_by_code from myuw.dao.canvas import ( get_canvas_active_enrol...
39.222749
79
0.599807
bd41a40805cb6902480d53e4ad504c1fbe836aee
73
py
Python
tests/test_nn/__init__.py
nhutnamhcmus/pykeen
62d4f075fbd39135d6a5c8677d95e1ac46f8318f
[ "MIT" ]
750
2020-06-23T08:36:34.000Z
2022-03-30T22:53:18.000Z
tests/test_nn/__init__.py
nhutnamhcmus/pykeen
62d4f075fbd39135d6a5c8677d95e1ac46f8318f
[ "MIT" ]
691
2020-06-22T11:56:28.000Z
2022-03-31T16:07:32.000Z
tests/test_nn/__init__.py
nhutnamhcmus/pykeen
62d4f075fbd39135d6a5c8677d95e1ac46f8318f
[ "MIT" ]
122
2020-06-26T14:37:56.000Z
2022-03-23T08:25:22.000Z
# -*- coding: utf-8 -*- """Tests for the :mod:`pykeen.nn` submodule."""
18.25
47
0.561644
46a0cad72c2cdfdeb038256b98a78f0ff9a4b66c
2,352
py
Python
modules/nologi/utils.py
Kylmakalle/assistant-bot
71c0f488a3dfb370ef2a87bbba83862b061c772a
[ "MIT" ]
4
2020-02-05T14:05:08.000Z
2021-09-12T17:43:04.000Z
modules/nologi/utils.py
Kylmakalle/assistant-bot
71c0f488a3dfb370ef2a87bbba83862b061c772a
[ "MIT" ]
6
2019-03-20T07:42:26.000Z
2022-01-06T17:56:47.000Z
modules/nologi/utils.py
Kylmakalle/assistant-bot
71c0f488a3dfb370ef2a87bbba83862b061c772a
[ "MIT" ]
5
2019-06-22T06:32:41.000Z
2022-01-02T16:10:51.000Z
# А нафига нам в БД хранить то всё? Можно в рантайме import aiohttp import aiohttp.client_exceptions from datetime import datetime, timedelta import logging log = logging.getLogger('nologi') RATES_URL = "https://www.sberbank.ru/portalserver/proxy/" RATES_PARAMS = {'pipe': "shortCachePipe", 'url': 'http...
30.947368
171
0.620748
4bf79dbd34698b3b7f995263c4036d636f5dfc4c
2,117
py
Python
Tests/TestBG.py
marklescroart/bvp
4b973bacb2e6ed96538a1b81964b4bc13ffa1ccb
[ "BSD-2-Clause" ]
2
2017-12-22T05:31:50.000Z
2019-04-08T19:23:15.000Z
Tests/TestBG.py
marklescroart/bvp
4b973bacb2e6ed96538a1b81964b4bc13ffa1ccb
[ "BSD-2-Clause" ]
10
2016-07-28T01:24:48.000Z
2017-05-30T06:53:08.000Z
Tests/TestBG.py
marklescroart/bvp
4b973bacb2e6ed96538a1b81964b4bc13ffa1ccb
[ "BSD-2-Clause" ]
1
2021-01-03T14:35:18.000Z
2021-01-03T14:35:18.000Z
''' Script to test out a background (to see if constraints are working properly) ''' # Imports import bvp import bpy import random import os import re from bvp.Classes.constraint import get_constraint # Get database of objects dbi = bvp.DBInterface() # Misc. scene parameters n_objects = 3 # why not? frames = (1,15) #...
27.141026
81
0.71847
66a2b46eb125d441380b07d97737b0126950d801
43,628
py
Python
homeassistant/components/sonos/speaker.py
dlangerm/core
643acbf9484fd05161d7e9f2228c9c92a5ce7d0b
[ "Apache-2.0" ]
5
2020-01-21T16:06:49.000Z
2021-12-20T11:54:20.000Z
homeassistant/components/sonos/speaker.py
dlangerm/core
643acbf9484fd05161d7e9f2228c9c92a5ce7d0b
[ "Apache-2.0" ]
68
2018-10-04T16:01:20.000Z
2022-03-31T06:21:46.000Z
homeassistant/components/sonos/speaker.py
dlangerm/core
643acbf9484fd05161d7e9f2228c9c92a5ce7d0b
[ "Apache-2.0" ]
7
2018-10-04T10:12:45.000Z
2021-12-29T20:55:40.000Z
"""Base class for common speaker tasks.""" from __future__ import annotations import asyncio from collections.abc import Callable, Coroutine import contextlib import datetime from functools import partial import logging from typing import Any import urllib.parse import async_timeout from soco.core import MUSIC_SRC_LI...
37.320787
109
0.61103
06a018895644c5b35d7c6dd1b835447d34533964
2,137
py
Python
selection/sampling/sequential.py
nanbi/Python-software
858286a9516ec23017f06ed84d4a850f4f7ad1c4
[ "BSD-3-Clause" ]
51
2016-03-31T16:34:15.000Z
2022-01-16T04:32:58.000Z
selection/sampling/sequential.py
dankessler/selective-inference
7b8f232fdf19b43489d4f434c493cdd80ab8fc96
[ "BSD-3-Clause" ]
11
2016-04-07T00:19:58.000Z
2021-10-03T18:31:14.000Z
selection/sampling/sequential.py
dankessler/selective-inference
7b8f232fdf19b43489d4f434c493cdd80ab8fc96
[ "BSD-3-Clause" ]
14
2015-10-28T17:29:05.000Z
2021-08-16T21:04:30.000Z
""" Sequential Monte Carlo for approximately constrained Gaussians. http://arxiv.org/abs/1410.8209 """ import numpy as np def sample(white_constraint, nsample, proposal_sigma=0.2, temps=np.linspace(0, 50, 51.)): """ Build up an approximately constrained Gaussian based on...
28.118421
98
0.608329
5efd4a1c96c777893d7928dd4ec1ee23bc8bf040
63
py
Python
Py365CE/__init__.py
colathro/Py365CE-Dynamics-CRM
bc215fa36e28315530406665e37d62ddde66fd2c
[ "MIT" ]
null
null
null
Py365CE/__init__.py
colathro/Py365CE-Dynamics-CRM
bc215fa36e28315530406665e37d62ddde66fd2c
[ "MIT" ]
null
null
null
Py365CE/__init__.py
colathro/Py365CE-Dynamics-CRM
bc215fa36e28315530406665e37d62ddde66fd2c
[ "MIT" ]
1
2020-11-26T01:48:04.000Z
2020-11-26T01:48:04.000Z
# Py365CE __Init__ from .CRMConnection import CRMConnection
10.5
40
0.809524
60feb618db8da01054a1194913dd76b506b092c4
18,020
py
Python
django/forms/formsets.py
bak1an/django
98bcc5d81bca578f3a5b4d47907ba4ac40446887
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/forms/formsets.py
bak1an/django
98bcc5d81bca578f3a5b4d47907ba4ac40446887
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/forms/formsets.py
bak1an/django
98bcc5d81bca578f3a5b4d47907ba4ac40446887
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from django.core.exceptions import ValidationError from django.forms import Form from django.forms.fields import BooleanField, IntegerField from django.forms.utils import ErrorList from django.forms.widgets import HiddenInput from django.utils.functional import cached_property from django.utils.html import html_safe fr...
39.69163
116
0.61737
5062006f8d418ae97fbab8cac00518ec47a5d9e6
1,944
py
Python
unityyamlnormalize/__main__.py
srz-zumix/unity-yaml-normalize
56cfd6f9d5d9f42d2bdec9c4825157e04ef732b8
[ "MIT" ]
null
null
null
unityyamlnormalize/__main__.py
srz-zumix/unity-yaml-normalize
56cfd6f9d5d9f42d2bdec9c4825157e04ef732b8
[ "MIT" ]
null
null
null
unityyamlnormalize/__main__.py
srz-zumix/unity-yaml-normalize
56cfd6f9d5d9f42d2bdec9c4825157e04ef732b8
[ "MIT" ]
null
null
null
from unityparser import UnityDocument from argparse import ArgumentParser from . import __version__ as VERSION class UnityYaml: def __init__(self): pass def normalize(self, input, output): doc = UnityDocument.load_yaml(input) for entry in doc.entries: entry.__dict__ = dic...
23.142857
69
0.555556
d60d718277b5f343c429a3cedac344888571e203
800
py
Python
src/models/debug_parse_sitk.py
voreille/plc_seg
e2238bc3342d54531fcab74ac84d24a056f16645
[ "MIT" ]
null
null
null
src/models/debug_parse_sitk.py
voreille/plc_seg
e2238bc3342d54531fcab74ac84d24a056f16645
[ "MIT" ]
null
null
null
src/models/debug_parse_sitk.py
voreille/plc_seg
e2238bc3342d54531fcab74ac84d24a056f16645
[ "MIT" ]
null
null
null
from pathlib import Path import time import numpy as np import SimpleITK as sitk import matplotlib.pyplot as plt import tensorflow as tf import matplotlib.pyplot as plt from src.models.fetch_data_2d_fixed import (get_tf_dataset, tf_parse_image, parse_image, slice_image) pa...
26.666667
76
0.74
1f1393769d0ce1c58277869819ce521427864d8c
4,372
py
Python
mudpi/debug/dump.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
163
2020-02-17T16:34:54.000Z
2022-02-28T23:12:11.000Z
mudpi/debug/dump.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
28
2020-05-05T19:42:25.000Z
2021-08-04T18:36:32.000Z
mudpi/debug/dump.py
icyspace/mudpi-core
d2afffacee0ba5c5ca57eada3017495d8697c5a4
[ "BSD-4-Clause" ]
31
2020-02-27T18:30:42.000Z
2022-01-18T21:14:56.000Z
"""Dump all possible values from the AVR.""" import inspect from nanpy.arduinotree import ArduinoTree from nanpy.serialmanager import SerialManager from pprint import pprint from nanpy.classinfo import FirmwareMissingFeatureError FORMAT = '%-20s = %20s' def dump(obj, selected_names=None): if selected_names: ...
36.739496
138
0.551235
2000ec9348d77e75e21896567f4f775dfbad243d
78,431
py
Python
packages/python/plotly/plotly/graph_objs/histogram2d/_colorbar.py
dvd7587/plotly.py
1af3ca99884981c38fb49f4be40230f5f15c5fe6
[ "MIT" ]
1
2022-02-19T09:27:42.000Z
2022-02-19T09:27:42.000Z
packages/python/plotly/plotly/graph_objs/histogram2d/_colorbar.py
jkkummerfeld/plotly.py
73ecb961cb51419e1c1b8fc0278a12d6f11d6881
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/histogram2d/_colorbar.py
jkkummerfeld/plotly.py
73ecb961cb51419e1c1b8fc0278a12d6f11d6881
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "histogram2d" _path_str = "histogram2d.colorbar" _valid_props = { "bgcolor", ...
36.210065
97
0.560391
1b6520d1cad7d4fc92b7e3e5f55fdf9e1d7fb5fa
2,918
py
Python
src/adafruit_led_animation/animation/pulse.py
smysnk/led-controller
9f74d644ba4b5841806483ed245f075f61a4f719
[ "MIT" ]
null
null
null
src/adafruit_led_animation/animation/pulse.py
smysnk/led-controller
9f74d644ba4b5841806483ed245f075f61a4f719
[ "MIT" ]
null
null
null
src/adafruit_led_animation/animation/pulse.py
smysnk/led-controller
9f74d644ba4b5841806483ed245f075f61a4f719
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2020 Kattni Rembor for Adafruit Industries # # 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 ri...
34.738095
98
0.690199
995bd2b40be1847797ef90b56b4382832d6eaf06
1,293
py
Python
test-user.py
Alex20-c/Password-locker
d91b000b722922ce3a73345165c4335e8bec8120
[ "MIT" ]
null
null
null
test-user.py
Alex20-c/Password-locker
d91b000b722922ce3a73345165c4335e8bec8120
[ "MIT" ]
null
null
null
test-user.py
Alex20-c/Password-locker
d91b000b722922ce3a73345165c4335e8bec8120
[ "MIT" ]
null
null
null
import unittest #Importing the unittest module from user import User # Importing the user class class TestUser(unittest.TestCase): ''' Test class that defines test cases for the user class behaviours. ''' def setUp(self): ''' set up method to run before each test cases. ''' ...
30.069767
97
0.638051
5dc466e068a7f2455e6302c7165c93565d0de823
1,921
py
Python
GoogleAppsDeleteUsers.py
misterhay/Google-Apps-Bulk-Delete-Users
a0ab7103bfe9735a058500d5f9fe6afa6026932e
[ "Apache-2.0" ]
null
null
null
GoogleAppsDeleteUsers.py
misterhay/Google-Apps-Bulk-Delete-Users
a0ab7103bfe9735a058500d5f9fe6afa6026932e
[ "Apache-2.0" ]
null
null
null
GoogleAppsDeleteUsers.py
misterhay/Google-Apps-Bulk-Delete-Users
a0ab7103bfe9735a058500d5f9fe6afa6026932e
[ "Apache-2.0" ]
null
null
null
print ('This will delete Google Apps user accounts that are listed in a text file.') print ('Ensure that your deleteaccounts.txt is in the same directory as this program.') print ('Each account to be deleted must be on its own line in deleteaccounts.txt.') #get domain, username, and password from user domain = raw_inpu...
48.025
90
0.774597
9054f5b8cf863d7f457d2c513180bd27171c9bc6
6,188
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/ipv6prefixes_47c8f11b30c65a2910f738a1bde52713.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/ipv6prefixes_47c8f11b30c65a2910f738a1bde52713.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/ipv6prefixes_47c8f11b30c65a2910f738a1bde52713.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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,...
34.764045
174
0.635262
6cbc897645b28363193ab5b54ed202d1a1d5845f
5,544
py
Python
pybind/slxos/v17s_1_02/overlay_policy_map/pmap_seq/ip_acl/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17s_1_02/overlay_policy_map/pmap_seq/ip_acl/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v17s_1_02/overlay_policy_map/pmap_seq/ip_acl/__init__.py
extremenetworks/pybind
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
44.709677
433
0.702742
5d7aba0962dadbc9889165234f475565428a76e4
52,599
py
Python
parser/fase2/team11/Ast.py
Yosoyfr/tytus
0df7e656835a93458462e476f7ab858a33baa2e0
[ "MIT" ]
null
null
null
parser/fase2/team11/Ast.py
Yosoyfr/tytus
0df7e656835a93458462e476f7ab858a33baa2e0
[ "MIT" ]
null
null
null
parser/fase2/team11/Ast.py
Yosoyfr/tytus
0df7e656835a93458462e476f7ab858a33baa2e0
[ "MIT" ]
null
null
null
from enum import Enum from prettytable import PrettyTable from datetime import date from datetime import datetime import math import random from storageManager import jsonMode as jsonMode import re errors2 = '' output2 ='' class Nodo: '''Clase que define la estructura de los nodos del AST.''' def __init...
43.796003
283
0.503203
867db1ef2fb2b3fb10b5eb54a64a6837210b45bd
8,876
py
Python
src/TRUNAJOD/syllabizer.py
dpalmasan/TRUNAJOD2.0
b718cacf2ec6bf1e868b7cb2c2b89bd4d08f37cc
[ "MIT" ]
18
2020-05-05T21:29:00.000Z
2022-02-08T15:28:12.000Z
src/TRUNAJOD/syllabizer.py
dpalmasan/TRUNAJOD2.0
b718cacf2ec6bf1e868b7cb2c2b89bd4d08f37cc
[ "MIT" ]
50
2020-04-11T01:13:31.000Z
2021-09-03T15:38:46.000Z
src/TRUNAJOD/syllabizer.py
dpalmasan/TRUNAJOD2.0
b718cacf2ec6bf1e868b7cb2c2b89bd4d08f37cc
[ "MIT" ]
12
2021-03-27T13:52:14.000Z
2021-05-17T11:09:49.000Z
# -*- coding: utf-8 -*- """Syllabizer module. This syllabizator is for spanish texts. It is based on http://sramatic.tripod.com/silabas.html And based on mabodo's implementation: https://github.com/mabodo/sibilizador * Strong vowels are ``a-e-o`` * Weak vowels are ``i-u`` The following rules are applied:...
37.138075
80
0.447161
1ebe53c965302755667e10dc1252585118fcb770
11,855
py
Python
Quantum Rev 2/generate/generate_QR_2.py
sir-kin/public-quantum-rev
22e998ccf025c287e98f9e7b6bbeda18b57a819b
[ "MIT" ]
3
2021-02-08T18:37:02.000Z
2022-02-04T23:48:53.000Z
Quantum Rev 2/generate/generate_QR_2.py
sir-kin/public-quantum-rev
22e998ccf025c287e98f9e7b6bbeda18b57a819b
[ "MIT" ]
null
null
null
Quantum Rev 2/generate/generate_QR_2.py
sir-kin/public-quantum-rev
22e998ccf025c287e98f9e7b6bbeda18b57a819b
[ "MIT" ]
1
2021-03-21T08:11:37.000Z
2021-03-21T08:11:37.000Z
from math import gcd, log2, pi import random import progressbar import multiprocessing import sys # Import Qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import Aer, execute ######################################## # we represent negative numbers via the ones-complement #...
26.521253
177
0.598397
48cbe44fddf2ac2ff8b2919c4567e49accc85aae
942
py
Python
dzmetrics/tests/test_data_smoothing.py
mozilla/datazilla-metrics
3168305e766e109f5ad2d6690aad7b6261b5931f
[ "BSD-3-Clause" ]
null
null
null
dzmetrics/tests/test_data_smoothing.py
mozilla/datazilla-metrics
3168305e766e109f5ad2d6690aad7b6261b5931f
[ "BSD-3-Clause" ]
1
2019-02-17T17:48:49.000Z
2019-02-18T11:15:10.000Z
dzmetrics/tests/test_data_smoothing.py
mozilla/datazilla-metrics
3168305e766e109f5ad2d6690aad7b6261b5931f
[ "BSD-3-Clause" ]
1
2019-11-02T23:20:19.000Z
2019-11-02T23:20:19.000Z
"""Tests for ttest module.""" from unittest import TestCase from dzmetrics.data_smoothing import exp_smooth NEW_N = 25 NEW_S = 5 NEW_M = 50 OLD_N = 25 OLD_S = 8 OLD_M = 53 class TestExpSmoothtest(TestCase): """Tests for exp_smooth.""" def test_exp_smooth_mean(self): """Test correct exp_smooth mean va...
26.166667
69
0.644374
863016feced9444aec81ef9cb44d60df38274ede
204
py
Python
two_to_one.py
Kunalpod/codewars
8dc1af2f3c70e209471045118fd88b3ea1e627e5
[ "MIT" ]
null
null
null
two_to_one.py
Kunalpod/codewars
8dc1af2f3c70e209471045118fd88b3ea1e627e5
[ "MIT" ]
null
null
null
two_to_one.py
Kunalpod/codewars
8dc1af2f3c70e209471045118fd88b3ea1e627e5
[ "MIT" ]
null
null
null
#Kunal Gautam #Codewars : @Kunalpod #Problem name: Two to One #Problem level: 7 kyu from itertools import groupby def longest(s1, s2): return ''.join([key for key,_ in groupby(sorted(list(s1+s2)))])
22.666667
67
0.710784
d3e624c793278d64cb8c487dcd1c0b65ac0f05e7
288
py
Python
src/addon/__init__.py
KeithPinson/cityvilleburg
d002645c3fb6738e0406aded338f16efb75532eb
[ "MIT" ]
null
null
null
src/addon/__init__.py
KeithPinson/cityvilleburg
d002645c3fb6738e0406aded338f16efb75532eb
[ "MIT" ]
null
null
null
src/addon/__init__.py
KeithPinson/cityvilleburg
d002645c3fb6738e0406aded338f16efb75532eb
[ "MIT" ]
null
null
null
# # Blender is highly extensible. In Blender, under Preferences is an # Add-ons page (Edit > Preferences > Add-ons). Everything in this # folder is concerned with the business of what goes on in that page # and nothing more. # # Copyright (c) 2021 Keith Pinson from . import preferences
28.8
68
0.746528
b1ec653454cd6bf73b3703e9ce03f5d51bedbfd8
40,350
py
Python
test/codes_tests/test_bhtree.py
egpbos/amuse
64b3bc5b7fef9496012b023578c4d71cecef92b7
[ "Apache-2.0" ]
null
null
null
test/codes_tests/test_bhtree.py
egpbos/amuse
64b3bc5b7fef9496012b023578c4d71cecef92b7
[ "Apache-2.0" ]
null
null
null
test/codes_tests/test_bhtree.py
egpbos/amuse
64b3bc5b7fef9496012b023578c4d71cecef92b7
[ "Apache-2.0" ]
2
2021-11-19T04:41:37.000Z
2021-11-20T02:11:17.000Z
# -*- coding: utf-8 -*- from amuse.test.amusetest import TestWithMPI import os import sys import numpy import time import math from amuse.community.bhtree.interface import BHTreeInterface, BHTree from amuse.support.exceptions import AmuseException from amuse.units import constants from amuse.units import nbody_system...
42.473684
139
0.614796
44130be259c186e176b5e27874858242385cb25e
705
py
Python
termapp/dialog_text.py
faintcoder/termapp
a73bee4f7cf44caf847ff17cdc83fcdac5bc6daa
[ "MIT" ]
1
2018-08-05T12:30:12.000Z
2018-08-05T12:30:12.000Z
termapp/dialog_text.py
faintcoder/termapp
a73bee4f7cf44caf847ff17cdc83fcdac5bc6daa
[ "MIT" ]
null
null
null
termapp/dialog_text.py
faintcoder/termapp
a73bee4f7cf44caf847ff17cdc83fcdac5bc6daa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import urwid from .common import * from .dialog_base import DialogBase class DialogText(DialogBase): def __init__( self, main_application, text, title = "Warning!", tag = "tag", buttons = 2, button_captions ...
20.735294
43
0.500709
16381e0c82681c1b5cab96ab056a366f10b62d2e
395
py
Python
crossFire/wsgi.py
DeSireFire/crossFire
490647ae3faa259dbaa94ee2b4efe0cafa975da8
[ "MIT" ]
1
2020-04-08T11:19:37.000Z
2020-04-08T11:19:37.000Z
crossFire/wsgi.py
DeSireFire/crossFire
490647ae3faa259dbaa94ee2b4efe0cafa975da8
[ "MIT" ]
null
null
null
crossFire/wsgi.py
DeSireFire/crossFire
490647ae3faa259dbaa94ee2b4efe0cafa975da8
[ "MIT" ]
null
null
null
""" WSGI config for crossFire project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
ec5e31900695374afd52c3546143dafe7f8c642b
808
py
Python
pypro/modulos/migrations/0001_initial.py
GilmarDeJesusSantana/curso-django
b72ea5bfe6d856a24334c838223236157dcaf555
[ "MIT" ]
null
null
null
pypro/modulos/migrations/0001_initial.py
GilmarDeJesusSantana/curso-django
b72ea5bfe6d856a24334c838223236157dcaf555
[ "MIT" ]
181
2020-07-01T01:50:08.000Z
2022-03-28T16:17:27.000Z
pypro/modulos/migrations/0001_initial.py
GilmarDeJesusSantana/curso-django
b72ea5bfe6d856a24334c838223236157dcaf555
[ "MIT" ]
1
2020-08-06T19:50:33.000Z
2020-08-06T19:50:33.000Z
# Generated by Django 3.0.8 on 2020-07-31 00:29 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Modulo', fields=[ ('id', models.AutoField(a...
27.862069
114
0.534653
d1ab6fbf18c4c1612b6327d69e39f90c6b341541
241
py
Python
pymath/sum_of_multiples/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
pymath/sum_of_multiples/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
pymath/sum_of_multiples/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
def sum_of_multiples(limit, multiples): if multiples[0] == 0: multiples = multiples[1:] return sum(value for value in range(limit) if any(value % multiple == 0 for multiple in multiples))
34.428571
49
0.580913
c843ca2a7f63c1baab72228041781f171cf38b09
486
py
Python
arapheno/phenotypedb/migrations/0010_phenotype_update_date.py
svengato/AraPheno
d6918e2e69c497b7096d9291d904c69310e84d06
[ "MIT" ]
5
2018-03-24T08:54:50.000Z
2021-01-19T03:19:42.000Z
arapheno/phenotypedb/migrations/0010_phenotype_update_date.py
svengato/AraPheno
d6918e2e69c497b7096d9291d904c69310e84d06
[ "MIT" ]
38
2016-08-14T12:09:15.000Z
2020-10-30T06:02:24.000Z
arapheno/phenotypedb/migrations/0010_phenotype_update_date.py
svengato/AraPheno
d6918e2e69c497b7096d9291d904c69310e84d06
[ "MIT" ]
8
2016-08-15T06:07:32.000Z
2020-11-06T06:43:56.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-12 14:00 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('phenotypedb', '0009_auto_20160811_1639'), ] operations = [ migrations.AddFie...
23.142857
76
0.631687
1027ec531085b0e1f6fb8e8fb6dc7c3c727c08d3
6,345
py
Python
app/pipelines/routes.py
shots47s/conp-portal
6ca45d4e3f6f40e16cb35a1d77827c2a48b13546
[ "MIT" ]
null
null
null
app/pipelines/routes.py
shots47s/conp-portal
6ca45d4e3f6f40e16cb35a1d77827c2a48b13546
[ "MIT" ]
null
null
null
app/pipelines/routes.py
shots47s/conp-portal
6ca45d4e3f6f40e16cb35a1d77827c2a48b13546
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Routes Module Currently this module contains all of the routes for the pipelines blueprint """ import json import os import time import math from app.threads import UpdatePipelineData from flask import render_template, request, url_for from flask_login import current_user from app.pipel...
32.538462
109
0.60331
84103d31325d7a383323f1a6446e2f2dc10bea5f
3,729
py
Python
neutron_isoflat/isoflat_client/isoflat.py
ppoffice/isoflat
1c901e33ad58a4eb4e42e976c16f308f52f3a9b4
[ "Apache-2.0" ]
2
2018-05-01T19:32:25.000Z
2018-05-12T16:32:34.000Z
neutron_isoflat/isoflat_client/isoflat.py
ppoffice/isoflat
1c901e33ad58a4eb4e42e976c16f308f52f3a9b4
[ "Apache-2.0" ]
null
null
null
neutron_isoflat/isoflat_client/isoflat.py
ppoffice/isoflat
1c901e33ad58a4eb4e42e976c16f308f52f3a9b4
[ "Apache-2.0" ]
null
null
null
from neutronclient._i18n import _ from neutronclient.common import extension from neutronclient.common import utils from neutronclient.neutron import v2_0 as neutronV20 from neutronclient.neutron.v2_0.securitygroup import _get_protocol_port from neutronclient.neutron.v2_0.securitygroup import generate_default_ethertype...
36.558824
83
0.624296
8fb932a0c840aaf95f4447c21197c87b029e9763
87
py
Python
wsgi.py
swadeshrd/rest-api-flask
f04ec29b898447367f584d7b03601b9afa22cc7d
[ "MIT" ]
1
2021-12-04T19:01:04.000Z
2021-12-04T19:01:04.000Z
wsgi.py
swadeshrd/rest-api-flask
f04ec29b898447367f584d7b03601b9afa22cc7d
[ "MIT" ]
null
null
null
wsgi.py
swadeshrd/rest-api-flask
f04ec29b898447367f584d7b03601b9afa22cc7d
[ "MIT" ]
null
null
null
from rest_flask.flask.app import app if __name__ == "__main__": app.run("0.0.0.0")
21.75
36
0.678161
8e4ada9b61eb3cb95199a9cb41b2ea01e42c7576
3,502
py
Python
snake-pygame/model_snake_pygame.py
Pi-Akash/Reinforcement-Learnings
62e1a0173eaec835c366a77f404c705db4594eaa
[ "MIT" ]
null
null
null
snake-pygame/model_snake_pygame.py
Pi-Akash/Reinforcement-Learnings
62e1a0173eaec835c366a77f404c705db4594eaa
[ "MIT" ]
null
null
null
snake-pygame/model_snake_pygame.py
Pi-Akash/Reinforcement-Learnings
62e1a0173eaec835c366a77f404c705db4594eaa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jul 25 23:51:44 2021 @author: P Akash """ import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import os class Linear_QNet(nn.Module): """ Feed forward neural network consists of input, hidden and output layer...
37.655914
91
0.586808
827880ad158c18db9d4164946723b093c3189fc8
1,901
py
Python
mpf/core/async_mode.py
haggispinball/mpf_fathom_fast
1035c3fb90bb279de84cc3ed4aa1e1df38d0d563
[ "MIT" ]
163
2015-01-25T02:19:50.000Z
2022-03-26T12:00:28.000Z
mpf/core/async_mode.py
haggispinball/mpf_fathom_fast
1035c3fb90bb279de84cc3ed4aa1e1df38d0d563
[ "MIT" ]
1,086
2015-03-23T19:53:17.000Z
2022-03-24T20:46:11.000Z
mpf/core/async_mode.py
haggispinball/mpf_fathom_fast
1035c3fb90bb279de84cc3ed4aa1e1df38d0d563
[ "MIT" ]
148
2015-01-28T02:31:39.000Z
2022-03-22T13:54:01.000Z
"""Base class for asyncio modes.""" from typing import Optional import abc import asyncio from mpf.core.mode import Mode MYPY = False if MYPY: # pragma: no cover from mpf.core.machine import MachineController # pylint: disable-msg=cyclic-import,unused-import class AsyncMode(Mode, metaclass=abc.ABCMeta): ...
26.774648
102
0.618096
3439bc6b728e72c46e10b02f12e956b1ca8f41d7
138
py
Python
jupyterlab_nbconvert_nocode/tests/test_all.py
vidartf/jupyterlab_nbconvert_nocode
c7b43f2df4a85415b923d3a87d95e5eb11ae437a
[ "Apache-2.0" ]
null
null
null
jupyterlab_nbconvert_nocode/tests/test_all.py
vidartf/jupyterlab_nbconvert_nocode
c7b43f2df4a85415b923d3a87d95e5eb11ae437a
[ "Apache-2.0" ]
null
null
null
jupyterlab_nbconvert_nocode/tests/test_all.py
vidartf/jupyterlab_nbconvert_nocode
c7b43f2df4a85415b923d3a87d95e5eb11ae437a
[ "Apache-2.0" ]
null
null
null
class TestImport: def test_import(self): from jupyterlab_nbconvert_nocode.nbconvert_functions import export_html, export_pdf
27.6
91
0.797101
a4f80ef844311188d8d4fd723e8b946c49bc6ebb
15,668
py
Python
counter_test.py
Ankou76ers/cassandra-dtest
54f5a983738a1580fbbe43bdb7201ff9b2664401
[ "Apache-2.0" ]
null
null
null
counter_test.py
Ankou76ers/cassandra-dtest
54f5a983738a1580fbbe43bdb7201ff9b2664401
[ "Apache-2.0" ]
null
null
null
counter_test.py
Ankou76ers/cassandra-dtest
54f5a983738a1580fbbe43bdb7201ff9b2664401
[ "Apache-2.0" ]
null
null
null
import random import time import uuid import pytest import logging from cassandra import ConsistencyLevel from cassandra.query import SimpleStatement from tools.assertions import assert_invalid, assert_length_equal, assert_one from dtest import Tester, create_ks, create_cf, mk_bman_path from tools.data import rows_to...
37.304762
137
0.592992
6e5f1fb3b6c44b68edff589eb3fc42b0f69f6575
6,540
py
Python
test/mitmproxy/test_http.py
ylmrx/mitmproxy
7d12dec031e7ca596feca2513478b4de6939701e
[ "MIT" ]
null
null
null
test/mitmproxy/test_http.py
ylmrx/mitmproxy
7d12dec031e7ca596feca2513478b4de6939701e
[ "MIT" ]
null
null
null
test/mitmproxy/test_http.py
ylmrx/mitmproxy
7d12dec031e7ca596feca2513478b4de6939701e
[ "MIT" ]
null
null
null
import pytest from mitmproxy.test import tflow from mitmproxy.net.http import Headers import mitmproxy.io from mitmproxy import flowfilter from mitmproxy.exceptions import Kill, ControlException from mitmproxy import flow from mitmproxy import http class TestHTTPRequest: def test_simple(self): f = tflow...
29.327354
74
0.596483
1539207be978192a267ed1e3ab009631f3c290ce
16,510
py
Python
onnxruntime/python/tools/quantization/qdq_quantizer.py
SiriusKY/onnxruntime
3c5853dcbc9d5dda2476afa8c6105802d2b8e53d
[ "MIT" ]
1
2022-03-16T11:30:16.000Z
2022-03-16T11:30:16.000Z
onnxruntime/python/tools/quantization/qdq_quantizer.py
SiriusKY/onnxruntime
3c5853dcbc9d5dda2476afa8c6105802d2b8e53d
[ "MIT" ]
null
null
null
onnxruntime/python/tools/quantization/qdq_quantizer.py
SiriusKY/onnxruntime
3c5853dcbc9d5dda2476afa8c6105802d2b8e53d
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import os ...
59.602888
171
0.582556
995c8a8d55fb3fb0eb9f6a5656966f14db8ca337
9,227
py
Python
cocytus/weight_converter/weight_converter.py
natsutan/cocytus
53840021eb5a84ab197d96fa37e8b43b0b255566
[ "MIT" ]
8
2017-04-21T14:55:42.000Z
2020-03-17T14:11:34.000Z
cocytus/weight_converter/weight_converter.py
natsutan/cocytus
53840021eb5a84ab197d96fa37e8b43b0b255566
[ "MIT" ]
5
2017-06-21T03:09:23.000Z
2020-05-08T00:31:36.000Z
cocytus/weight_converter/weight_converter.py
natsutan/cocytus
53840021eb5a84ab197d96fa37e8b43b0b255566
[ "MIT" ]
4
2017-07-06T12:34:54.000Z
2018-12-23T13:34:24.000Z
import h5py import numpy as np import sys import itertools import os import math class WeightConverter: def __init__(self, output_dir, h5file, dtype, compiler): self.output_dir = output_dir self.h5file = os.path.expanduser(h5file) self.dtype = dtype self.compiler = compiler de...
34.558052
124
0.469383
4584ecdb5bb79b1534f1d04ad9c71018cdd26ba9
18,188
py
Python
isi_sdk_8_0_1/isi_sdk_8_0_1/models/snapshot_settings_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_0_1/isi_sdk_8_0_1/models/snapshot_settings_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_0_1/isi_sdk_8_0_1/models/snapshot_settings_settings.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 4 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class SnapshotSettingsSettings(o...
36.892495
368
0.666593
06a1fb78029883bf3f1a8ee3532361a743171c69
130
py
Python
app/db.py
lealssa/cvm_api
d3e468f6c81009aeb5dc358a39e22f109ea3315d
[ "MIT" ]
null
null
null
app/db.py
lealssa/cvm_api
d3e468f6c81009aeb5dc358a39e22f109ea3315d
[ "MIT" ]
null
null
null
app/db.py
lealssa/cvm_api
d3e468f6c81009aeb5dc358a39e22f109ea3315d
[ "MIT" ]
null
null
null
import motor.motor_asyncio from .config import settings client = motor.motor_asyncio.AsyncIOMotorClient(settings.cvm_mongodb_url)
32.5
73
0.869231
0c4bfb703d0f9ceb1dbc2e17dddfea1c28a8635b
72
py
Python
sql_extender/sql.py
MiConnell/sql-extender
32a5f839c3b7d5fa7abdf7b02c7aa5702cf31a69
[ "MIT" ]
null
null
null
sql_extender/sql.py
MiConnell/sql-extender
32a5f839c3b7d5fa7abdf7b02c7aa5702cf31a69
[ "MIT" ]
null
null
null
sql_extender/sql.py
MiConnell/sql-extender
32a5f839c3b7d5fa7abdf7b02c7aa5702cf31a69
[ "MIT" ]
null
null
null
class extend: def __init__(self, query): self.query = query
18
30
0.625
82aa9be5f11e361ba811a531c86507ae1a6a87c7
1,925
py
Python
convertors/confluence_convertor/convertor.py
samadhicsec/threatware
f45068cfbbc2207ffa2b8f1b965b98cfb1ed9096
[ "Apache-2.0" ]
null
null
null
convertors/confluence_convertor/convertor.py
samadhicsec/threatware
f45068cfbbc2207ffa2b8f1b965b98cfb1ed9096
[ "Apache-2.0" ]
null
null
null
convertors/confluence_convertor/convertor.py
samadhicsec/threatware
f45068cfbbc2207ffa2b8f1b965b98cfb1ed9096
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import configparser import logging import convertors.confluence_convertor.reader as reader import convertors.html_convertor.query as query from convertors.html_convertor.convertor import doc_to_model import utils.logging logger = logging.getLogger(utils.logging.getLoggerName(__name__)...
40.104167
118
0.711688
3723124c01fbc609a6750857c123e1ad4d9aa8e7
911
py
Python
tests/test_user.py
Ken-mbira/BLOG_SPOT
0e1528c3ae153510aed2c0046814c022c87f7ce4
[ "MIT" ]
null
null
null
tests/test_user.py
Ken-mbira/BLOG_SPOT
0e1528c3ae153510aed2c0046814c022c87f7ce4
[ "MIT" ]
null
null
null
tests/test_user.py
Ken-mbira/BLOG_SPOT
0e1528c3ae153510aed2c0046814c022c87f7ce4
[ "MIT" ]
null
null
null
from .test_create import TestApplication from app.models import Blog, Category, Comment, Subscriber, User from app import db class TestUser(TestApplication): """This will check the behaviours of the user class Args: TestApplication ([type]): [description] """ def setUp(self): TestAppl...
28.46875
79
0.644347
779c0ae7407659d126a2d4ac69001bb6fbb41344
388
py
Python
plotly/validators/mesh3d/_name.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/mesh3d/_name.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/mesh3d/_name.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class NameValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name='name', parent_name='mesh3d', **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_ty...
27.714286
75
0.639175
952508992d00f41db42bb219cce85ea667ef78c3
84
py
Python
graspy/simulations/__init__.py
dfrancisco1998/graspy
241c2f4586d9d44bc7f2e6a7451c9383ad8ff841
[ "Apache-2.0" ]
null
null
null
graspy/simulations/__init__.py
dfrancisco1998/graspy
241c2f4586d9d44bc7f2e6a7451c9383ad8ff841
[ "Apache-2.0" ]
null
null
null
graspy/simulations/__init__.py
dfrancisco1998/graspy
241c2f4586d9d44bc7f2e6a7451c9383ad8ff841
[ "Apache-2.0" ]
null
null
null
from .simulations import * from .simulations_corr import * from .rdpg_corr import *
21
31
0.785714
53097010c63921b18e0d04008dd3fa51fb603083
945
py
Python
renamer.py
bhardwajRahul/Gesture-Recognition
e4722ecb58e5c65f34f92a21058eae81ed3c84e0
[ "MIT" ]
102
2018-11-03T03:39:10.000Z
2022-03-31T03:11:54.000Z
renamer.py
shuren007/Gesture-Recognition
e4722ecb58e5c65f34f92a21058eae81ed3c84e0
[ "MIT" ]
2
2019-06-14T14:03:49.000Z
2020-04-20T12:14:27.000Z
renamer.py
shuren007/Gesture-Recognition
e4722ecb58e5c65f34f92a21058eae81ed3c84e0
[ "MIT" ]
34
2018-12-13T23:20:53.000Z
2022-01-09T16:37:34.000Z
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. ''' Imports ''' import os import sys import operator import argparse ''' Initialize argparse flags ''' parser = argparse.ArgumentParser("Data Renamer") parser.add_argument("--buffer", "-b", dest="buffer", required=True, type=int, help="increment labels an...
29.53125
135
0.673016
ad988cb39f273cf8e9af4c46af4064092cf3f21d
1,373
py
Python
setup.py
zomglings/moonworm
930e60199629b6a04adecc7f9ff9450e51bb4640
[ "Apache-2.0" ]
1
2021-10-22T01:37:52.000Z
2021-10-22T01:37:52.000Z
setup.py
zomglings/moonworm
930e60199629b6a04adecc7f9ff9450e51bb4640
[ "Apache-2.0" ]
1
2021-09-07T18:13:48.000Z
2021-11-02T16:42:10.000Z
setup.py
zomglings/moonworm
930e60199629b6a04adecc7f9ff9450e51bb4640
[ "Apache-2.0" ]
1
2021-09-13T16:34:26.000Z
2021-09-13T16:34:26.000Z
from setuptools import find_packages, setup from moonworm.version import MOONWORM_VERSION long_description = "" with open("README.md") as ifp: long_description = ifp.read() setup( name="moonworm", version=MOONWORM_VERSION, packages=find_packages(), package_data={"moonworm": ["py.typed"]}, ins...
28.604167
93
0.609614
7cebda4c026251388abe5a5cdcbc968b42fdf12f
3,744
py
Python
rater/models/ctr/afm.py
shibing624/rater
8437dea8baf0137ab3c07dd19c5f2bb8c15b4435
[ "Apache-2.0" ]
25
2020-06-28T09:21:12.000Z
2022-03-25T10:25:17.000Z
rater/models/ctr/afm.py
shibing624/rater
8437dea8baf0137ab3c07dd19c5f2bb8c15b4435
[ "Apache-2.0" ]
null
null
null
rater/models/ctr/afm.py
shibing624/rater
8437dea8baf0137ab3c07dd19c5f2bb8c15b4435
[ "Apache-2.0" ]
5
2021-02-01T02:52:04.000Z
2022-02-07T09:07:12.000Z
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com), jachin,Nie @description: A pytorch implementation of AFM Reference: [1] Attentional Factorization Machines - Learning the Weight of Feature Interactions via Attention Networks (ZJU 2017) """ import torch import torch.nn as nn import torch.nn.functional as ...
44.047059
118
0.680021
267c5931b4cd87e834dc000b3a33c0bd7ccd4eb4
10,663
py
Python
tests/integration_test/site_launcher.py
IsaacYangSLA/NVFlare
8c6582894c9a8431f64479bc9f472fefcd71e5a7
[ "Apache-2.0" ]
null
null
null
tests/integration_test/site_launcher.py
IsaacYangSLA/NVFlare
8c6582894c9a8431f64479bc9f472fefcd71e5a7
[ "Apache-2.0" ]
null
null
null
tests/integration_test/site_launcher.py
IsaacYangSLA/NVFlare
8c6582894c9a8431f64479bc9f472fefcd71e5a7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021-2022, NVIDIA CORPORATION. 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 ...
36.145763
119
0.642315
176c671d659233486d51aef71e9dc2e747fb1744
1,259
py
Python
aionasa/exoplanet/_tests.py
vcokltfre/aionasa
8cd1d496d7373c806e38eb75e0103e4377da0875
[ "MIT" ]
4
2020-11-26T10:49:53.000Z
2021-05-18T17:56:08.000Z
aionasa/exoplanet/_tests.py
vcokltfre/aionasa
8cd1d496d7373c806e38eb75e0103e4377da0875
[ "MIT" ]
1
2021-01-07T01:41:27.000Z
2021-01-07T01:41:27.000Z
aionasa/exoplanet/_tests.py
vcokltfre/aionasa
8cd1d496d7373c806e38eb75e0103e4377da0875
[ "MIT" ]
1
2021-08-19T18:49:53.000Z
2021-08-19T18:49:53.000Z
from .api import Exoplanet async def _test_method(ref, name, *args, **kwargs): try: result = await ref(*args, **kwargs) try: iter(result) iterable = True except TypeError: iterable = False print(f"exoplanet.{name} success\n\t", type(result), len(...
38.151515
123
0.658459
013593289781ceeae3601205073c62ea74c50e9b
19,507
py
Python
compute/ibm_vpc.py
pdhiran/cephci
ba06523ad4a10eb70dc5295439abbe2a29723798
[ "MIT" ]
21
2019-04-22T07:12:37.000Z
2022-03-11T09:34:24.000Z
compute/ibm_vpc.py
pdhiran/cephci
ba06523ad4a10eb70dc5295439abbe2a29723798
[ "MIT" ]
601
2019-03-21T09:29:53.000Z
2022-03-31T18:16:53.000Z
compute/ibm_vpc.py
pdhiran/cephci
ba06523ad4a10eb70dc5295439abbe2a29723798
[ "MIT" ]
72
2019-02-20T22:23:55.000Z
2022-03-31T13:59:25.000Z
"""IBM-Cloud VPC provider implementation for CephVMNode.""" import logging import re import socket from copy import deepcopy from datetime import datetime, timedelta from time import sleep from typing import Any, Dict, List, Optional from ibm_cloud_networking_services import DnsSvcsV1 from ibm_cloud_networking_service...
35.211191
93
0.586661
b5595c2673ff4c4d0a37f6ee0c9ac031d88f47b4
2,387
py
Python
project_forces.py
dlc62/force-projection
97581253d5c9a2c9c72621dfc74ece18ceb58bfa
[ "MIT" ]
null
null
null
project_forces.py
dlc62/force-projection
97581253d5c9a2c9c72621dfc74ece18ceb58bfa
[ "MIT" ]
null
null
null
project_forces.py
dlc62/force-projection
97581253d5c9a2c9c72621dfc74ece18ceb58bfa
[ "MIT" ]
null
null
null
#!/usr/bin/python from __future__ import print_function import sys import numpy as np def get_contents(filename): with open(filename,'r') as f: fc = f.readlines() return fc def write_contents(filename,data): with open(filename,'w') as f: f.writelines(data) def get_section(contents,start_key,stop_key,s...
29.469136
105
0.686636
e6610121f82dcff3106755730372ed2a5b0a2ee5
26,816
py
Python
tests/test_docker_wrapper.py
danielpops/paasta
12325d1e884a6d0ace8dcd510da98f6910d28cb0
[ "Apache-2.0" ]
null
null
null
tests/test_docker_wrapper.py
danielpops/paasta
12325d1e884a6d0ace8dcd510da98f6910d28cb0
[ "Apache-2.0" ]
null
null
null
tests/test_docker_wrapper.py
danielpops/paasta
12325d1e884a6d0ace8dcd510da98f6910d28cb0
[ "Apache-2.0" ]
null
null
null
import socket from contextlib import contextmanager import mock import pytest from paasta_tools import docker_wrapper @contextmanager def patch_environ(envs): with mock.patch( "paasta_tools.docker_wrapper.os.environ", new=envs, autospec=None ) as environ: yield environ class ImmutableDict(...
31.961859
122
0.515513
cf6003cbc77cad8eeb0bd6b6ae9c1cbef9f97fc4
276
py
Python
py/cap2/distancia1.py
dacanizares/IntroCS-ES
1324b59a3bed86559117b01ad85384d593394d4a
[ "MIT" ]
2
2020-03-21T19:12:10.000Z
2020-03-27T03:59:41.000Z
py/cap2/distancia1.py
dacanizares/IntroCS-ES
1324b59a3bed86559117b01ad85384d593394d4a
[ "MIT" ]
13
2020-03-20T01:27:57.000Z
2020-08-08T18:20:29.000Z
py/cap2/distancia1.py
dacanizares/IntroCS-ES
1324b59a3bed86559117b01ad85384d593394d4a
[ "MIT" ]
null
null
null
# Esto es un comentario y no afecta el programa # Leemos los datos de la patrulla xp = input() yp = input() # Leemos los datos del barco x = input() y = input() # Distancia entre el barco y la patrulla d = ((xp-x)**2+(yp-y)**2)**(1/2.0) # Imprimimos las respuestas print d
18.4
47
0.666667
f4f1a3aecdb64cc7e7d66a3b5de6a70f9af750d2
2,735
py
Python
test/programytest/utils/email/test_sender.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
null
null
null
test/programytest/utils/email/test_sender.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
null
null
null
test/programytest/utils/email/test_sender.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
4
2019-04-01T15:42:23.000Z
2020-11-05T08:14:27.000Z
import unittest import os from programy.utils.email.sender import EmailSender from programy.utils.email.config import EmailConfiguration class MockSMTPServer(object): def __init__(self, host, port): self.did_ehlo = False self.did_starttls = False self.did_login = False self.did_s...
31.436782
108
0.697989
093eb5df7f1c26d018bf49435d367233013ef963
3,326
py
Python
fracdiff/statfracdiff.py
LaoKpa/fracdiff
686d374181ee07fc28b42f2759b48353ea125d9f
[ "BSD-3-Clause" ]
1
2020-09-03T00:12:40.000Z
2020-09-03T00:12:40.000Z
fracdiff/statfracdiff.py
LaoKpa/fracdiff
686d374181ee07fc28b42f2759b48353ea125d9f
[ "BSD-3-Clause" ]
null
null
null
fracdiff/statfracdiff.py
LaoKpa/fracdiff
686d374181ee07fc28b42f2759b48353ea125d9f
[ "BSD-3-Clause" ]
null
null
null
from sklearn.base import TransformerMixin from sklearn.utils.validation import check_array import numpy as np from .fracdiff import Fracdiff from ._stat import StationarityTester class StationaryFracdiff(TransformerMixin): """ Carry out fractional derivative with the minumum order with which the differen...
31.084112
77
0.596813
6cc12312c85cb31a5ecd1f10ec0082a9c3a55a36
5,011
py
Python
litex_boards/targets/minispartan6.py
tomparks/litex-boards
9beaf25822c3794e14e8773778e014b3d7d9c80b
[ "BSD-2-Clause" ]
null
null
null
litex_boards/targets/minispartan6.py
tomparks/litex-boards
9beaf25822c3794e14e8773778e014b3d7d9c80b
[ "BSD-2-Clause" ]
null
null
null
litex_boards/targets/minispartan6.py
tomparks/litex-boards
9beaf25822c3794e14e8773778e014b3d7d9c80b
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # # This file is part of LiteX-Boards. # # Copyright (c) 2013-2014 Sebastien Bourdeauducq <sb@m-labs.hk> # Copyright (c) 2014-2019 Florent Kermarrec <florent@enjoy-digital.fr> # Copyright (c) 2014 Yann Sionneau <ys@m-labs.hk> # SPDX-License-Identifier: BSD-2-Clause import os import argparse fro...
40.41129
123
0.556775
3fcc935da2f2fa8e077855ed4aae4cf461d860b1
15,889
py
Python
tests/regressiontests/urlpatterns_reverse/tests.py
Smarsh/django
ffb738e0f56027e16564a79b709cbf44596c2335
[ "BSD-3-Clause" ]
1
2016-05-08T13:32:33.000Z
2016-05-08T13:32:33.000Z
tests/regressiontests/urlpatterns_reverse/tests.py
aprefontaine/TMScheduler
298a332532b9df1d3f6a80b1334630bc106d3b78
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/urlpatterns_reverse/tests.py
aprefontaine/TMScheduler
298a332532b9df1d3f6a80b1334630bc106d3b78
[ "BSD-3-Clause" ]
1
2021-08-21T17:42:01.000Z
2021-08-21T17:42:01.000Z
""" Unit tests for reverse URL lookups. """ __test__ = {'API_TESTS': """ RegexURLResolver should raise an exception when no urlpatterns exist. >>> from django.core.urlresolvers import RegexURLResolver >>> no_urls = 'regressiontests.urlpatterns_reverse.no_urls' >>> resolver = RegexURLResolver(r'^$', no_urls) >>> resol...
49.653125
147
0.641954
1d3e5bd06151839a664e386f00d0a37d291742f7
429
py
Python
claypot/migrations/0003_auto_20190224_1406.py
thesus/claypot
ce6871bd2de7a01c31448323753168115114087c
[ "MIT" ]
null
null
null
claypot/migrations/0003_auto_20190224_1406.py
thesus/claypot
ce6871bd2de7a01c31448323753168115114087c
[ "MIT" ]
null
null
null
claypot/migrations/0003_auto_20190224_1406.py
thesus/claypot
ce6871bd2de7a01c31448323753168115114087c
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-02-24 14:06 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [("claypot", "0002_auto_20190224_1210")] operations = [ migrations.AlterField( model_name="recipe", nam...
23.833333
74
0.659674
50688937654ae72b77e1439f21a0d7c847d5e135
2,791
py
Python
python/paddle/dataset/voc2012.py
ysh329/Paddle
50ad9046c9a440564d104eaa354eb9df83a35678
[ "Apache-2.0" ]
9
2017-12-04T02:58:01.000Z
2020-12-03T14:46:30.000Z
python/paddle/dataset/voc2012.py
ysh329/Paddle
50ad9046c9a440564d104eaa354eb9df83a35678
[ "Apache-2.0" ]
7
2017-12-05T20:29:08.000Z
2018-10-15T08:57:40.000Z
python/paddle/dataset/voc2012.py
ysh329/Paddle
50ad9046c9a440564d104eaa354eb9df83a35678
[ "Apache-2.0" ]
25
2019-12-07T02:14:14.000Z
2021-12-30T06:16:30.000Z
# Copyright (c) 2016 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 applic...
31.715909
76
0.706557
58d95ab93de240c3a6819b7207ea105a6bc87d84
3,760
py
Python
adwords_python3_examples_10.1.0/v201802/optimization/get_keyword_bid_simulations.py
xyla-io/hazel
260ce906761d8b808c21ca61b44cc71ca3329e8c
[ "MIT" ]
null
null
null
adwords_python3_examples_10.1.0/v201802/optimization/get_keyword_bid_simulations.py
xyla-io/hazel
260ce906761d8b808c21ca61b44cc71ca3329e8c
[ "MIT" ]
null
null
null
adwords_python3_examples_10.1.0/v201802/optimization/get_keyword_bid_simulations.py
xyla-io/hazel
260ce906761d8b808c21ca61b44cc71ca3329e8c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # 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 requir...
35.809524
77
0.645745
8b713f992957064babff3b4eb98e3d978f90eaa5
9,078
py
Python
juq/caller.py
inhzus/juq
2721f1361eed3d4e7da36d67f924942faef24650
[ "MIT" ]
14
2019-04-09T23:34:56.000Z
2022-01-17T14:19:51.000Z
juq/caller.py
inhzus/juq
2721f1361eed3d4e7da36d67f924942faef24650
[ "MIT" ]
null
null
null
juq/caller.py
inhzus/juq
2721f1361eed3d4e7da36d67f924942faef24650
[ "MIT" ]
4
2020-03-29T15:29:59.000Z
2022-01-17T14:19:44.000Z
# -*- coding: utf-8 -*- # created by inhzus import argparse from colorama import Fore, Style, init # noinspection PyUnresolvedReferences from juq.service import user_service, group_service, repo_service, doc_service, config_service init(convert=True) def set_user_parser(user_parser: argparse.ArgumentParser): ...
50.433333
115
0.657964
cd9d35a422ddf7fae4636296dfe242127e1030f2
9,487
py
Python
mesonbuild/mconf.py
clouds56/meson
a15a8b7e246be448e79ba20742e713e39807bd00
[ "Apache-2.0" ]
1
2019-10-01T00:59:00.000Z
2019-10-01T00:59:00.000Z
mesonbuild/mconf.py
clouds56/meson
a15a8b7e246be448e79ba20742e713e39807bd00
[ "Apache-2.0" ]
null
null
null
mesonbuild/mconf.py
clouds56/meson
a15a8b7e246be448e79ba20742e713e39807bd00
[ "Apache-2.0" ]
1
2019-10-01T00:06:21.000Z
2019-10-01T00:06:21.000Z
# Copyright 2014-2016 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agree...
41.609649
132
0.576578
726bc2b8b720bbfb0f85efbbc6b64e7a4088fff4
1,678
py
Python
tests/test_iris.py
RainingComputers/pykitml
1c3e50cebcdb6c4da63979ef9a812b44d23a4857
[ "MIT" ]
34
2020-03-06T07:53:43.000Z
2022-03-13T06:12:29.000Z
tests/test_iris.py
RainingComputers/pykitml
1c3e50cebcdb6c4da63979ef9a812b44d23a4857
[ "MIT" ]
6
2021-06-08T22:43:23.000Z
2022-03-08T13:57:33.000Z
tests/test_iris.py
RainingComputers/pykitml
1c3e50cebcdb6c4da63979ef9a812b44d23a4857
[ "MIT" ]
1
2020-11-30T21:20:32.000Z
2020-11-30T21:20:32.000Z
from pykitml.testing import pktest_graph, pktest_nograph @pktest_graph def test_iris(): import numpy as np import pykitml as pk from pykitml.datasets import iris # Load iris data set inputs_train, outputs_train, inputs_test, outputs_test = iris.load() # Normalize inputs in the dataset inp...
29.964286
76
0.705006
d34c66dec09f71ebd974f1f55e34c344a147a1d0
3,895
py
Python
piped/processors/test/test_json_processors.py
alexbrasetvik/Piped
0312c14d6c4c293df378c915cc9787bcc7faed36
[ "MIT" ]
3
2015-02-12T20:34:30.000Z
2016-08-06T06:54:48.000Z
piped/processors/test/test_json_processors.py
alexbrasetvik/Piped
0312c14d6c4c293df378c915cc9787bcc7faed36
[ "MIT" ]
null
null
null
piped/processors/test/test_json_processors.py
alexbrasetvik/Piped
0312c14d6c4c293df378c915cc9787bcc7faed36
[ "MIT" ]
2
2015-12-16T14:18:14.000Z
2019-04-12T01:43:10.000Z
# Copyright (c) 2011, Found IT A/S and Piped Project Contributors. # See LICENSE for details. import json import StringIO from twisted.internet import defer from twisted.python import reflect from twisted.trial import unittest from piped.processors import json_processors class StubDecoder(json.JSONDecoder): """...
38.186275
96
0.722721
c8d7209317d88af1bfc028f7ac60fe1396621082
237
py
Python
setup.py
individuodk/KaggleAux
556c88f01e1c322f2371891b381964ca44ec9867
[ "Apache-2.0" ]
null
null
null
setup.py
individuodk/KaggleAux
556c88f01e1c322f2371891b381964ca44ec9867
[ "Apache-2.0" ]
null
null
null
setup.py
individuodk/KaggleAux
556c88f01e1c322f2371891b381964ca44ec9867
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages import os import sys with open('requirements.txt', 'r') as req: requirements = [i.replace('\n', '') for i in req] setup( packages=find_packages(), install_requires=requirements )
19.75
53
0.708861
dfe6297a83281199d3805f7e240a303064bbf647
1,243
py
Python
Test_Functions.py
lavenderbonnet/python
2cc18144785f2370d077604aa64c8c1cdddbf8a3
[ "MIT" ]
null
null
null
Test_Functions.py
lavenderbonnet/python
2cc18144785f2370d077604aa64c8c1cdddbf8a3
[ "MIT" ]
null
null
null
Test_Functions.py
lavenderbonnet/python
2cc18144785f2370d077604aa64c8c1cdddbf8a3
[ "MIT" ]
null
null
null
def awake(time): print (">>>>debug : awake function called") if 0 < time <= 7 : print(" I am sleeping ") return False else : print(" I am awake ") return True def sleep(time) : return Not awake(time) def eatMeal(time) : print (">>>debug : eat meal called") ...
20.048387
52
0.533387
3457e4ea4355ed180dc1cfa3de765a87c94116f1
3,109
py
Python
python/fixhex32.py
takafuminaka/misc
213eecc31dc81b1b85d3090aedd21b9cd2e89c12
[ "MIT" ]
1
2016-02-24T14:21:02.000Z
2016-02-24T14:21:02.000Z
python/fixhex32.py
takafuminaka/fixhex32
213eecc31dc81b1b85d3090aedd21b9cd2e89c12
[ "MIT" ]
null
null
null
python/fixhex32.py
takafuminaka/fixhex32
213eecc31dc81b1b85d3090aedd21b9cd2e89c12
[ "MIT" ]
null
null
null
#! /usr/bin/python import sys import re def array2buff(array): buff = ":" checksum = 0 for pos in range(len(array)): dd = array[pos] checksum = (checksum + dd)%256 buff = buff + "{:02X}".format(dd) checksum = ( - checksum)%256 buf...
29.330189
99
0.488903
c01f16e739539072a5bf8fa6a0c30b9d664f2cee
5,025
py
Python
dask-gateway/dask_gateway/auth.py
AndreaGiardini/dask-gateway
c2583548df19359d24031e1dd9161c616d3bed50
[ "BSD-3-Clause" ]
69
2019-09-19T06:19:48.000Z
2022-02-04T23:01:15.000Z
dask-gateway/dask_gateway/auth.py
AndreaGiardini/dask-gateway
c2583548df19359d24031e1dd9161c616d3bed50
[ "BSD-3-Clause" ]
318
2019-09-18T18:42:57.000Z
2022-03-31T11:05:38.000Z
dask-gateway/dask_gateway/auth.py
AndreaGiardini/dask-gateway
c2583548df19359d24031e1dd9161c616d3bed50
[ "BSD-3-Clause" ]
61
2019-09-18T18:09:56.000Z
2022-03-25T20:35:11.000Z
import getpass import os import re from base64 import b64encode import dask from .utils import format_template __all__ = ("GatewayAuth", "BasicAuth", "KerberosAuth", "JupyterHubAuth", "get_auth") def _import_object(name): parts = name.rsplit(".", 1) if len(parts) == 2: package, obj = parts ...
30.08982
84
0.610945
a1c077d3ce8c3698a7a930a3ca12ac90e79e6aa5
1,253
py
Python
python/Python-Quick-Start/oop2.py
pepincho/playground
9202a3dab880ff789e5fb96b259c3e0c2503cb49
[ "MIT" ]
null
null
null
python/Python-Quick-Start/oop2.py
pepincho/playground
9202a3dab880ff789e5fb96b259c3e0c2503cb49
[ "MIT" ]
null
null
null
python/Python-Quick-Start/oop2.py
pepincho/playground
9202a3dab880ff789e5fb96b259c3e0c2503cb49
[ "MIT" ]
null
null
null
#inheritance and polymorphism class AnimalActions: def quack(self): return self.strings['quack'] def feathers(self): return self.strings['feathers'] def bark(self): return self.strings['bark'] def fur(self): return self.strings['fur'] class Duck(AnimalActions): strings = dict( quack = "Quaaaaak!", feathers =...
23.203704
71
0.671189
b6fb3995cfcf962f2939a42b0fd479f6f72ecba2
3,963
py
Python
cmseq/poly.py
SegataLab/cmseq
fe8fb464dbb30109117e78d54ba323a9cc2e1888
[ "MIT" ]
17
2020-02-28T20:00:25.000Z
2022-03-18T01:31:10.000Z
cmseq/poly.py
SegataLab/cmseq
fe8fb464dbb30109117e78d54ba323a9cc2e1888
[ "MIT" ]
7
2020-02-26T09:02:58.000Z
2021-08-21T14:37:43.000Z
cmseq/poly.py
SegataLab/cmseq
fe8fb464dbb30109117e78d54ba323a9cc2e1888
[ "MIT" ]
4
2020-04-09T09:22:54.000Z
2021-08-20T14:46:15.000Z
import pandas as pd import numpy as np import argparse import sys from cmseq import __version__ from .cmseq import CMSEQ_DEFAULTS from .cmseq import BamFile def poly_from_file(): parser = argparse.ArgumentParser(description="Reports the polymorpgic rate of each reference (polymorphic bases / total bases). Focuses on...
59.149254
324
0.775423
95fb3b723eb250082c9f08c748d16dfffb619a0c
222
py
Python
setup.py
hanbo1735/simpegmt
73e35c4944c3e14a0433fbd7c3f01cae2fc11ac6
[ "MIT" ]
9
2015-03-31T23:21:16.000Z
2021-07-26T11:14:31.000Z
setup.py
lheagy/simpegem
8989edf341dbed2af68e29a3b423b51e04cea6e9
[ "MIT" ]
34
2015-02-24T22:36:45.000Z
2015-11-04T18:52:21.000Z
setup.py
lheagy/simpegem
8989edf341dbed2af68e29a3b423b51e04cea6e9
[ "MIT" ]
7
2015-03-31T23:21:18.000Z
2021-10-06T12:35:44.000Z
import os try: import SimPEG except ImportError, e: os.system('git clone https://github.com/simpeg/simpeg.git') os.system('mv simpeg/SimPEG temp') os.system('rm -rf simpeg') os.system('mv temp SimPEG')
24.666667
63
0.675676
910441f018dbaf56543caa178fc1aa6d847ee766
21,502
py
Python
nn_dataflow/tests/unit_test/test_nn_dataflow_scheme.py
joeshow79/nn_dataflow
279440452148ebf327992bd178a37cd5fd5330c5
[ "BSD-3-Clause" ]
null
null
null
nn_dataflow/tests/unit_test/test_nn_dataflow_scheme.py
joeshow79/nn_dataflow
279440452148ebf327992bd178a37cd5fd5330c5
[ "BSD-3-Clause" ]
null
null
null
nn_dataflow/tests/unit_test/test_nn_dataflow_scheme.py
joeshow79/nn_dataflow
279440452148ebf327992bd178a37cd5fd5330c5
[ "BSD-3-Clause" ]
null
null
null
""" $lic$ Copyright (C) 2016-2019 by The Board of Trustees of Stanford University This program is free software: you can redistribute it and/or modify it under the terms of the Modified BSD-3 License as published by the Open Source Initiative. This program is distributed in the hope that it will be useful, but WITHOU...
43.263581
79
0.549949
a5b46f1484ae1df76e8eb20ee0de44648e23648e
1,619
py
Python
example/draw/views.py
emelianovss-yandex-praktikum/07_pyplus_django_2
09bda00f9c8e9fd1ff0f3a483ecb210041d19a48
[ "MIT" ]
null
null
null
example/draw/views.py
emelianovss-yandex-praktikum/07_pyplus_django_2
09bda00f9c8e9fd1ff0f3a483ecb210041d19a48
[ "MIT" ]
null
null
null
example/draw/views.py
emelianovss-yandex-praktikum/07_pyplus_django_2
09bda00f9c8e9fd1ff0f3a483ecb210041d19a48
[ "MIT" ]
2
2021-11-27T08:06:35.000Z
2021-11-27T13:52:41.000Z
from typing import TYPE_CHECKING from django.forms import ModelForm from django.shortcuts import render, redirect, reverse from draw.models import Draw, Album from django.contrib.auth import get_user_model if TYPE_CHECKING: from django.http.request import HttpRequest User = get_user_model() def users_album_li...
25.698413
77
0.642372
6e21e14c5162d614e147468cd8c0fd3bd8a86fbb
346
py
Python
solutions/python3/837.py
sm2774us/amazon_interview_prep_2021
f580080e4a6b712b0b295bb429bf676eb15668de
[ "MIT" ]
42
2020-08-02T07:03:49.000Z
2022-03-26T07:50:15.000Z
solutions/python3/837.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
null
null
null
solutions/python3/837.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
40
2020-02-08T02:50:24.000Z
2022-03-26T15:38:10.000Z
class Solution: def new21Game(self, N, K, W): if K == 0 or N >= K + W: return 1 dp = [1.0] + [0.0] * N Wsum, res = 1.0, 0.0 for i in range(1, N + 1): dp[i] += Wsum / W if i < K: Wsum += dp[i] else: res += dp[i] if i - W >= 0: Wsum -= dp...
31.454545
44
0.378613
4d4d275f3c4e8c125bc3fa4230ef2c9a8350ccfd
1,672
py
Python
examples/peg.py
goodmami/pe
ea2ff69742c7f76f370cdfa8e3f7ae0860d5e6fa
[ "MIT" ]
18
2020-03-25T09:10:24.000Z
2022-02-21T02:46:10.000Z
examples/peg.py
goodmami/pe
ea2ff69742c7f76f370cdfa8e3f7ae0860d5e6fa
[ "MIT" ]
21
2020-03-18T08:03:04.000Z
2021-10-11T04:29:09.000Z
examples/peg.py
goodmami/pe
ea2ff69742c7f76f370cdfa8e3f7ae0860d5e6fa
[ "MIT" ]
1
2021-09-02T16:09:29.000Z
2021-09-02T16:09:29.000Z
import pe peg_acceptor = pe.compile( r''' # Hierarchical syntax Grammar <- Spacing Definition+ EndOfFile Definition <- Identifier LEFTARROW Expression Expression <- Sequence (SLASH Sequence)* Sequence <- Prefix* Prefix <- (AND / NOT)? Suffix Suffix <- Primary (QUESTION / ...
28.827586
60
0.465909
8e6071abd510f616ed4216209be9b269d6ae1e5f
539
py
Python
src/libs/blueprint/python/py_src/table/examples/__init__.py
francois-kitware/conduit
e457aeeb249c445d67ca791c14f72062acfafb7f
[ "BSD-3-Clause" ]
120
2015-12-09T00:58:22.000Z
2022-03-25T00:14:39.000Z
src/libs/blueprint/python/py_src/table/examples/__init__.py
francois-kitware/conduit
e457aeeb249c445d67ca791c14f72062acfafb7f
[ "BSD-3-Clause" ]
808
2016-02-27T22:25:15.000Z
2022-03-30T23:42:12.000Z
src/libs/blueprint/python/py_src/table/examples/__init__.py
francois-kitware/conduit
e457aeeb249c445d67ca791c14f72062acfafb7f
[ "BSD-3-Clause" ]
49
2016-02-12T17:19:16.000Z
2022-02-01T14:36:21.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other Conduit # Project developers. See top-level LICENSE AND COPYRIGHT files for dates and # other details. No copyright assignment is required to contribute to Conduit. ############################################################################### # file...
53.9
79
0.569573
75f668f9699c0687af9a9ba90e6182157555b790
50,516
py
Python
venvCorona/Lib/site-packages/dash_table/DataTable.py
tarikkranda/CoronaDash
2591c1543153217fda3b3b2f8d647b87562b5f66
[ "MIT" ]
3
2020-02-04T21:39:20.000Z
2020-11-17T19:07:07.000Z
venvCorona/Lib/site-packages/dash_table/DataTable.py
tarikkranda/CoronaDash
2591c1543153217fda3b3b2f8d647b87562b5f66
[ "MIT" ]
5
2021-03-10T05:39:37.000Z
2022-02-13T04:56:40.000Z
venvCorona/Lib/site-packages/dash_table/DataTable.py
tarikkranda/CoronaDash
2591c1543153217fda3b3b2f8d647b87562b5f66
[ "MIT" ]
null
null
null
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class DataTable(Component): """A DataTable component. Dash DataTable is an interactive table component designed for designed for viewing, editing, and exploring large datasets. DataTable is rendered with ...
67.354667
2,755
0.765955
7515661ee3f1ac8478d696162c5bd3e4f86cfbda
7,855
py
Python
gammapy/catalog/core.py
ischigal/gammapy
c56ca1bb237d9eb4a7a3aed8eaf359206bf0e628
[ "BSD-3-Clause" ]
null
null
null
gammapy/catalog/core.py
ischigal/gammapy
c56ca1bb237d9eb4a7a3aed8eaf359206bf0e628
[ "BSD-3-Clause" ]
null
null
null
gammapy/catalog/core.py
ischigal/gammapy
c56ca1bb237d9eb4a7a3aed8eaf359206bf0e628
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Source catalog and object base classes.""" import abc import numbers import numpy as np from copy import deepcopy from astropy.coordinates import SkyCoord from astropy.utils import lazyproperty from gammapy.utils.table import table_from_row_data, table_...
30.564202
87
0.608148
132e340e987391cf13ec84ccb2f1f0c4f9dfdc85
4,202
py
Python
redash_toolbelt/client.py
JSpenced/redash-toolbelt
31741743363cf1bfc9485f7716d757a216715457
[ "BSD-2-Clause" ]
null
null
null
redash_toolbelt/client.py
JSpenced/redash-toolbelt
31741743363cf1bfc9485f7716d757a216715457
[ "BSD-2-Clause" ]
null
null
null
redash_toolbelt/client.py
JSpenced/redash-toolbelt
31741743363cf1bfc9485f7716d757a216715457
[ "BSD-2-Clause" ]
null
null
null
import requests class Redash(object): def __init__(self, redash_url, api_key): self.redash_url = redash_url self.session = requests.Session() self.session.headers.update({"Authorization": "Key {}".format(api_key)}) def test_credentials(self): try: response = self._...
32.323077
88
0.596383
f3b14c1a8e846307785fe442b368c7fcffc2d321
886
py
Python
xlsxwriter/test/styles/test_write_mru_colors.py
yxwlr995/-Python-Pandas-XlsxWriter
cd28c1b968795b67f3013c49a0e02ffda5898163
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/styles/test_write_mru_colors.py
yxwlr995/-Python-Pandas-XlsxWriter
cd28c1b968795b67f3013c49a0e02ffda5898163
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/styles/test_write_mru_colors.py
yxwlr995/-Python-Pandas-XlsxWriter
cd28c1b968795b67f3013c49a0e02ffda5898163
[ "BSD-2-Clause-FreeBSD" ]
1
2020-04-12T16:44:58.000Z
2020-04-12T16:44:58.000Z
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013, John McNamara, jmcnamara@cpan.org # import unittest from ..compatibility import StringIO from ...styles import Styles class TestWriteMruColors(unittest.TestCase): """ Test the St...
23.945946
112
0.588036
f3cfd8a730ca28646c7bb635e7be54894921e60e
2,826
py
Python
analyzer/codechecker_analyzer/analyzers/clangsa/ctu_triple_arch.py
ryankurte/codechecker
737424ee77c181304f242d5a2adef3e6d9369998
[ "Apache-2.0" ]
1,601
2015-07-22T20:01:32.000Z
2022-03-31T03:04:36.000Z
analyzer/codechecker_analyzer/analyzers/clangsa/ctu_triple_arch.py
ryankurte/codechecker
737424ee77c181304f242d5a2adef3e6d9369998
[ "Apache-2.0" ]
2,056
2015-07-20T09:39:25.000Z
2022-03-31T10:18:08.000Z
analyzer/codechecker_analyzer/analyzers/clangsa/ctu_triple_arch.py
ryankurte/codechecker
737424ee77c181304f242d5a2adef3e6d9369998
[ "Apache-2.0" ]
288
2015-07-15T18:57:18.000Z
2022-03-30T13:40:13.000Z
# ------------------------------------------------------------------------- # # Part of the CodeChecker project, under the Apache License v2.0 with # LLVM Exceptions. See LICENSE for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # # ---------------------------------------------------...
36.230769
79
0.617481
efef8bb1db2c913effa3581c7b35909c563b60cd
3,454
py
Python
scripts/spm_encode.py
kriscroes/nmtpapiamento2020
30765e9ab231ff3d8e224b3f61b0f729404e6ada
[ "MIT" ]
1
2021-02-17T20:28:03.000Z
2021-02-17T20:28:03.000Z
scripts/spm_encode.py
denzyldick/nmtpapiamento2020
30765e9ab231ff3d8e224b3f61b0f729404e6ada
[ "MIT" ]
null
null
null
scripts/spm_encode.py
denzyldick/nmtpapiamento2020
30765e9ab231ff3d8e224b3f61b0f729404e6ada
[ "MIT" ]
1
2021-02-17T20:31:35.000Z
2021-02-17T20:31:35.000Z
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from __future__ import absolute_import, division, print_function, unicode_literals import argparse imp...
34.888889
98
0.564852
8db68b37f9395270483897351f903f3548774658
4,225
py
Python
igibson/examples/vr/vr_simple_demo.py
mamadbiabon/iGibson
d416a470240eb7ad86e04fee475ae4bd67263a7c
[ "MIT" ]
null
null
null
igibson/examples/vr/vr_simple_demo.py
mamadbiabon/iGibson
d416a470240eb7ad86e04fee475ae4bd67263a7c
[ "MIT" ]
null
null
null
igibson/examples/vr/vr_simple_demo.py
mamadbiabon/iGibson
d416a470240eb7ad86e04fee475ae4bd67263a7c
[ "MIT" ]
null
null
null
""" This is a VR demo in a simple scene consisting of some objects to interact with, and space to move around. Can be used to verify everything is working in VR, and iterate on current VR designs. """ import os import pybullet as p import pybullet_data import igibson from igibson.objects.articulated_object import Ar...
40.238095
113
0.67574
45eaa52fc457125fb72e2f68bb92f008f93d1a10
3,643
py
Python
computer_vision/lec3[Deepdream].py
cutz-j/computer_vision
23408231221bb16539ea1964f000bdbb7f9e7e20
[ "MIT" ]
null
null
null
computer_vision/lec3[Deepdream].py
cutz-j/computer_vision
23408231221bb16539ea1964f000bdbb7f9e7e20
[ "MIT" ]
null
null
null
computer_vision/lec3[Deepdream].py
cutz-j/computer_vision
23408231221bb16539ea1964f000bdbb7f9e7e20
[ "MIT" ]
null
null
null
import os import numpy as np import PIL.Image import urllib.request from tensorflow.python.platform import gfile import zipfile import tensorflow as tf work_dir = 'd:/data' #model_url = 'https://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip' #file_name = model_url.split('/')[-1] #file_path = ...
40.477778
92
0.637112
e395bbfccf086789b26e5729f8f651c16932bd10
9,110
py
Python
src/yass/noise.py
jaib1/yass
9899c7d63c522a26b160ac7a223c794dfd3e23c6
[ "Apache-2.0" ]
59
2017-10-29T02:21:17.000Z
2022-03-23T01:12:27.000Z
src/yass/noise.py
jaib1/yass
9899c7d63c522a26b160ac7a223c794dfd3e23c6
[ "Apache-2.0" ]
257
2017-10-25T17:11:36.000Z
2021-10-21T19:12:00.000Z
src/yass/noise.py
jaib1/yass
9899c7d63c522a26b160ac7a223c794dfd3e23c6
[ "Apache-2.0" ]
24
2017-10-28T19:59:44.000Z
2021-07-14T09:56:45.000Z
import random import logging import numpy as np from scipy.spatial.distance import pdist, squareform def kill_signal(recordings, threshold, window_size): """ Thresholds recordings, values above 'threshold' are considered signal (set to 0), a window of size 'window_size' is drawn around the signal point...
33.248175
89
0.619868
519e761122717e36bc50c717fe5d26781d474428
2,851
py
Python
routemaster/logging/tests/test_logging_plugin_system.py
thread/routemaster
1fd997a3bcee5e6760e9f7a60cb54323c3dfdc41
[ "MIT" ]
13
2018-01-16T14:26:27.000Z
2022-03-19T12:43:17.000Z
routemaster/logging/tests/test_logging_plugin_system.py
thread/routemaster
1fd997a3bcee5e6760e9f7a60cb54323c3dfdc41
[ "MIT" ]
86
2018-01-03T17:00:56.000Z
2021-12-06T12:58:06.000Z
routemaster/logging/tests/test_logging_plugin_system.py
thread/routemaster
1fd997a3bcee5e6760e9f7a60cb54323c3dfdc41
[ "MIT" ]
3
2018-02-21T23:13:45.000Z
2022-03-19T12:43:23.000Z
import pytest from logger_plugin import TestLogger as _TestLogger # So pytest doesn't run it from routemaster.config import LoggingPluginConfig from routemaster.logging import ( BaseLogger, PluginConfigurationException, register_loggers, ) def test_loads_plugins(custom_app): kwargs = {'foo': 'bar'} ...
27.679612
79
0.644686
6b71346936a2520f3f63501a8d5e81f5d44949f5
3,262
py
Python
modeltranslation/management/commands/update_translation_fields.py
kishorkunal-raj/django-modeltranslation
4b4695c0d16e0a210e9e3b18e5c3b3f490669689
[ "BSD-3-Clause" ]
1
2021-03-21T03:36:46.000Z
2021-03-21T03:36:46.000Z
modeltranslation/management/commands/update_translation_fields.py
kishorkunal-raj/django-modeltranslation
4b4695c0d16e0a210e9e3b18e5c3b3f490669689
[ "BSD-3-Clause" ]
null
null
null
modeltranslation/management/commands/update_translation_fields.py
kishorkunal-raj/django-modeltranslation
4b4695c0d16e0a210e9e3b18e5c3b3f490669689
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.db.models import F, Q from django.core.management.base import BaseCommand, CommandError from modeltranslation.settings import AVAILABLE_LANGUAGES, DEFAULT_LANGUAGE from modeltranslation.translator import translator from modeltranslation.utils import build_localized_fieldname COMMA...
37.494253
80
0.594727
1c8f142af8b52323b4f729ab1358afa4dc603a4e
368
py
Python
plugins/ipstack/icon_ipstack/connection/connection.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
plugins/ipstack/icon_ipstack/connection/connection.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
plugins/ipstack/icon_ipstack/connection/connection.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
import insightconnect_plugin_runtime from .schema import ConnectionSchema # Custom imports below class Connection(insightconnect_plugin_runtime.Connection): def __init__(self): super(self.__class__, self).__init__(input=ConnectionSchema()) self.token = None def connect(self, params): ...
26.285714
70
0.73913
675202592218600a459c1b6a340c3c156473b7f5
758
py
Python
DirFind.py
Jayypy/DirFinder
2a9908d0f6313a4a86a5d650189ec52b0573cc4c
[ "MIT" ]
null
null
null
DirFind.py
Jayypy/DirFinder
2a9908d0f6313a4a86a5d650189ec52b0573cc4c
[ "MIT" ]
null
null
null
DirFind.py
Jayypy/DirFinder
2a9908d0f6313a4a86a5d650189ec52b0573cc4c
[ "MIT" ]
null
null
null
#imports import requests, argparse from art import * #get arguments my_parser = argparse.ArgumentParser() my_parser.add_argument('-u', metavar='URL', type=str, help="Target URL where you want to find directories") my_parser.add_argument('-w', metavar='Wordlist', type=str, help="Path to wordlist") args = my_parser.par...
21.657143
107
0.579156
8350e8b9c0016c6adf3c1f71046cf2c5f6db4283
607
py
Python
Hauz/migrations/0021_auto_20180122_1855.py
VirginiaNdungu1/HauzBox
c586d221a903f2be681b895eec20dd01664ce141
[ "MIT" ]
1
2018-01-29T13:46:25.000Z
2018-01-29T13:46:25.000Z
Hauz/migrations/0021_auto_20180122_1855.py
VirginiaNdungu1/HauzBox
c586d221a903f2be681b895eec20dd01664ce141
[ "MIT" ]
null
null
null
Hauz/migrations/0021_auto_20180122_1855.py
VirginiaNdungu1/HauzBox
c586d221a903f2be681b895eec20dd01664ce141
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2018-01-22 15:55 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('Hauz', '0020_auto_20180122_1849'), ] operations = [ migrations.RemoveField( model_name='house',...
25.291667
138
0.614498