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
c896321225ea20ed199b7cf712095a999192d6de
9,950
py
Python
bypy/const.py
dbpython/bypy
da6e1e0fca09a560e60dc93dbfa63c9119ce38b6
[ "MIT" ]
1
2018-04-11T07:08:47.000Z
2018-04-11T07:08:47.000Z
bypy/const.py
limited1010/bypy
da6e1e0fca09a560e60dc93dbfa63c9119ce38b6
[ "MIT" ]
null
null
null
bypy/const.py
limited1010/bypy
da6e1e0fca09a560e60dc93dbfa63c9119ce38b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # PYTHON_ARGCOMPLETE_OK # from __future__ imports must occur at the beginning of the file from __future__ import unicode_literals from __future__ import print_function from __future__ import division import sys import os # https://packaging.python.org/single_source_version/ __...
39.484127
117
0.752261
fc2bc42ef26b386da5b7f0d4f544a0872c192958
430
py
Python
wsgi/iportalen_django/iportalen/wsgi.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
4
2016-09-21T17:06:01.000Z
2018-02-06T16:36:44.000Z
wsgi/iportalen_django/iportalen/wsgi.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
149
2016-03-07T23:50:47.000Z
2022-03-11T23:16:33.000Z
wsgi/iportalen_django/iportalen/wsgi.py
I-sektionen/i-portalen
1713e5814d40c0da1bf3278d60a561e7d3df3550
[ "MIT" ]
1
2016-03-07T23:02:06.000Z
2016-03-07T23:02:06.000Z
""" WSGI config for iportalen 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/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application from dj_static import Cling os.en...
23.888889
78
0.790698
0acfa5ff604b21eec420212126080f003543ebd0
6,414
py
Python
release_chef_11-14/source/conf.py
jblaine/chef-docs
dc540f7bbc2d3eedb05a74f34b1caf25f1a5d7d3
[ "CC-BY-3.0" ]
null
null
null
release_chef_11-14/source/conf.py
jblaine/chef-docs
dc540f7bbc2d3eedb05a74f34b1caf25f1a5d7d3
[ "CC-BY-3.0" ]
1
2021-06-27T17:03:16.000Z
2021-06-27T17:03:16.000Z
release_chef_11-14/source/conf.py
jblaine/chef-docs
dc540f7bbc2d3eedb05a74f34b1caf25f1a5d7d3
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Chef documentation build configuration file, created by # sphinx-quickstart on Wed Feb 22 13:50:49 2012. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show th...
34.483871
104
0.730745
c1a886aafa71757d5efccb3953d2c30a96a14a34
5,175
py
Python
webdriver/tests/add_cookie/add.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
8
2019-04-09T21:13:05.000Z
2021-11-23T17:25:18.000Z
webdriver/tests/add_cookie/add.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
7
2021-03-19T15:21:44.000Z
2022-03-12T00:50:35.000Z
webdriver/tests/add_cookie/add.py
ziransun/wpt
ab8f451eb39eb198584d547f5d965ef54df2a86a
[ "BSD-3-Clause" ]
11
2019-04-12T01:20:16.000Z
2021-11-23T17:25:02.000Z
from datetime import datetime, timedelta from webdriver.transport import Response from tests.support.asserts import assert_error, assert_success from tests.support.helpers import clear_all_cookies def add_cookie(session, cookie): return session.transport.send( "POST", "session/{session_id}/cookie".format...
28.59116
95
0.651401
d4766432d997ebac98215125cbbb46fb41d36506
2,116
py
Python
uw_sws/tests/test_course.py
uw-it-aca/uw-restclients-sws
21c034d75e141223d74c200317f402f9628b6d52
[ "Apache-2.0" ]
1
2018-06-12T20:32:29.000Z
2018-06-12T20:32:29.000Z
uw_sws/tests/test_course.py
uw-it-aca/uw-restclients-sws
21c034d75e141223d74c200317f402f9628b6d52
[ "Apache-2.0" ]
156
2017-03-02T17:11:34.000Z
2022-01-03T21:36:23.000Z
uw_sws/tests/test_course.py
uw-it-aca/uw-restclients-sws
21c034d75e141223d74c200317f402f9628b6d52
[ "Apache-2.0" ]
2
2017-03-15T22:10:46.000Z
2018-07-05T20:54:59.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from unittest import TestCase from uw_sws.util import fdao_sws_override from uw_pws.util import fdao_pws_override from uw_sws.course import validate_course_label, get_course_by_label from uw_sws.exceptions import InvalidCourseID @...
47.022222
79
0.535917
96eb9923cc4831842da1f364585a5acb6af5bf00
113,380
py
Python
salt/utils/cloud.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
null
null
null
salt/utils/cloud.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
1
2019-09-06T13:57:28.000Z
2019-09-06T13:57:28.000Z
salt/utils/cloud.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
1
2020-09-30T16:09:48.000Z
2020-09-30T16:09:48.000Z
# -*- coding: utf-8 -*- ''' Utility functions for salt.cloud ''' # Import python libs from __future__ import absolute_import import errno import os import sys import stat import codecs import shutil import hashlib import socket import tempfile import time import subprocess import multiprocessing import logging import ...
35.331879
121
0.544629
223a455e0cabadac5fb9cd0778d76f9a06578e07
5,969
py
Python
mava/utils/environments/flatland_utils.py
1998x-stack/Mava
2c8f7f59f235340886e92045b6730cf5a542a496
[ "Apache-2.0" ]
1
2022-03-19T12:51:16.000Z
2022-03-19T12:51:16.000Z
mava/utils/environments/flatland_utils.py
1998x-stack/Mava
2c8f7f59f235340886e92045b6730cf5a542a496
[ "Apache-2.0" ]
null
null
null
mava/utils/environments/flatland_utils.py
1998x-stack/Mava
2c8f7f59f235340886e92045b6730cf5a542a496
[ "Apache-2.0" ]
null
null
null
# python3 # Copyright 2021 InstaDeep Ltd. 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...
35.742515
86
0.669291
8ac543f1d263cb6a6139e6c4eb4cd615d96d3aed
577
py
Python
rex_gym/__init__.py
osigaud/rex-gym
cd2a1a333fba7d7e7ee3bf2165979dfda750ddda
[ "Apache-2.0" ]
1
2021-09-11T10:10:28.000Z
2021-09-11T10:10:28.000Z
rex_gym/__init__.py
osigaud/rex-gym
cd2a1a333fba7d7e7ee3bf2165979dfda750ddda
[ "Apache-2.0" ]
null
null
null
rex_gym/__init__.py
osigaud/rex-gym
cd2a1a333fba7d7e7ee3bf2165979dfda750ddda
[ "Apache-2.0" ]
1
2021-09-11T10:10:32.000Z
2021-09-11T10:10:32.000Z
from gym.envs.registration import register register( id="RexGallop-v0", entry_point="rex_gym.envs:RexReactiveEnv", max_episode_steps=400, ) register( id="RexPoses-v0", entry_point="rex_gym.envs:RexPosesEnv", max_episode_steps=400, ) register( id="RexStandup-v0", entry_point="rex_gym.e...
18.03125
46
0.70364
de07228dd81e4021eb65d1a02db7aeb847cfb004
10,379
py
Python
models/cycle_gan_model.py
ShangxuanWu/CycleGAN-Face-off
2bbc737cbaa6fa8a1e636db2afc3653e3ecb7341
[ "BSD-3-Clause" ]
18
2017-12-18T21:53:36.000Z
2021-09-07T21:53:59.000Z
models/cycle_gan_model.py
ShangxuanWu/CycleGAN-Face-off
2bbc737cbaa6fa8a1e636db2afc3653e3ecb7341
[ "BSD-3-Clause" ]
null
null
null
models/cycle_gan_model.py
ShangxuanWu/CycleGAN-Face-off
2bbc737cbaa6fa8a1e636db2afc3653e3ecb7341
[ "BSD-3-Clause" ]
5
2018-02-01T06:51:45.000Z
2020-04-23T12:06:25.000Z
import numpy as np import torch import os from collections import OrderedDict from torch.autograd import Variable import itertools import util.util as util from util.image_pool import ImagePool from .base_model import BaseModel from . import networks import sys, pdb import ssim class CycleGANModel(BaseModel): def...
44.354701
169
0.596878
181ee0ea246039bcfaafb67cff8de7c001c891b7
383
py
Python
example/asgi.py
PNoryk/django-filter-grouped
39a096a65121aefe989700896cd348ebcd7216c0
[ "BSD-3-Clause" ]
3
2021-10-14T05:59:32.000Z
2022-01-20T09:32:13.000Z
example/asgi.py
PNoryk/django-filter-groups
39a096a65121aefe989700896cd348ebcd7216c0
[ "BSD-3-Clause" ]
null
null
null
example/asgi.py
PNoryk/django-filter-groups
39a096a65121aefe989700896cd348ebcd7216c0
[ "BSD-3-Clause" ]
null
null
null
""" ASGI config for example project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault("DJANGO_SETTI...
22.529412
78
0.78329
19ff43687a4d4ff0d3784ee8866aae8432ab4ff4
7,566
py
Python
host/greatfet/commands/greatfet_firmware.py
colinoflynn/greatfet
ee81a2101b21f69052240698ebd4da83f6126f10
[ "BSD-3-Clause" ]
null
null
null
host/greatfet/commands/greatfet_firmware.py
colinoflynn/greatfet
ee81a2101b21f69052240698ebd4da83f6126f10
[ "BSD-3-Clause" ]
null
null
null
host/greatfet/commands/greatfet_firmware.py
colinoflynn/greatfet
ee81a2101b21f69052240698ebd4da83f6126f10
[ "BSD-3-Clause" ]
1
2021-05-19T17:20:41.000Z
2021-05-19T17:20:41.000Z
#!/usr/bin/env python # # This file is part of GreatFET # """ Utility for flashing firmware on GreatFET boards. """ from __future__ import print_function import os import sys import errno import subprocess import usb from greatfet import GreatFET from greatfet.errors import DeviceNotFoundError from greatfet.uti...
35.521127
141
0.655432
c1c2f89d55f46c049bbfae0f5766bbcfe5990e93
2,752
py
Python
facecruncher/src/watcher.py
siavash9000/famousfaces
672c2fe6c6c8406622614a34f1def2c6b08e7a3c
[ "MIT" ]
null
null
null
facecruncher/src/watcher.py
siavash9000/famousfaces
672c2fe6c6c8406622614a34f1def2c6b08e7a3c
[ "MIT" ]
12
2020-07-18T01:17:51.000Z
2022-02-18T07:55:47.000Z
facecruncher/src/watcher.py
siavash9000/famousfaces
672c2fe6c6c8406622614a34f1def2c6b08e7a3c
[ "MIT" ]
null
null
null
import os import json from embedd_face import FaceEmbedder from celebrity_nn import CelebrityTree import psycopg2 import logging import pika import base64 submissions_folder = '/submissions/' results_folder = '/results/' def sorted_dir(folder): def getmtime(name): path = os.path.join(folder, name) ...
35.74026
103
0.662427
d988704201cfb281528b3f80bc61e8ca1db30fa8
943
py
Python
todolistApp/urls.py
markawad/todolistApp
1cde6c2752ad27701c5c7368ce9009ce10aacd67
[ "MIT" ]
null
null
null
todolistApp/urls.py
markawad/todolistApp
1cde6c2752ad27701c5c7368ce9009ce10aacd67
[ "MIT" ]
2
2020-03-27T23:27:43.000Z
2021-06-10T22:42:00.000Z
todolistApp/urls.py
markawad/todolistApp
1cde6c2752ad27701c5c7368ce9009ce10aacd67
[ "MIT" ]
null
null
null
"""todolistApp URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Clas...
36.269231
79
0.707317
0dffeae9bb2098af1530d1ecb0c261b74d8e68e0
288
py
Python
unittest/unittest_notequal.py
dineshkumar2509/learning-python
e8af11ff0b396da4c3f2cfe21d14131bae4b2adb
[ "MIT" ]
86
2015-06-13T16:53:55.000Z
2022-03-24T20:56:42.000Z
unittest/unittest_notequal.py
pei-zheng-yi/learning-python
55e350dfe44cf04f7d4408e76e72d2f467bd42ce
[ "MIT" ]
9
2015-05-27T07:52:44.000Z
2022-03-29T21:52:40.000Z
unittest/unittest_notequal.py
pei-zheng-yi/learning-python
55e350dfe44cf04f7d4408e76e72d2f467bd42ce
[ "MIT" ]
124
2015-12-10T01:17:18.000Z
2021-11-08T04:03:38.000Z
#!/usr/bin/env python """Test for inequality """ import unittest class InequalityTest(unittest.TestCase): def testEqual(self): self.failIfEqual(1, 3 - 2) def testNotEqual(self): self.failUnlessEqual(2, 3 - 2) if __name__ == '__main__': unittest.main()
14.4
40
0.645833
548207d3f401189045895440d1795599a167d782
1,334
py
Python
build/lib/accessible_output2/platform_utils/libloader.py
zywek123/accessible_output2
825688d5ee6b4680ca9b685d914f9e289f8bde7e
[ "MIT" ]
5
2017-05-06T18:23:26.000Z
2021-11-29T05:20:10.000Z
build/lib/accessible_output2/platform_utils/libloader.py
zywek123/accessible_output2
825688d5ee6b4680ca9b685d914f9e289f8bde7e
[ "MIT" ]
2
2019-11-26T16:56:09.000Z
2020-11-04T15:08:14.000Z
build/lib/accessible_output2/platform_utils/libloader.py
zywek123/accessible_output2
825688d5ee6b4680ca9b685d914f9e289f8bde7e
[ "MIT" ]
4
2019-09-19T11:48:11.000Z
2021-03-25T18:34:45.000Z
import ctypes import collections import platform import os TYPES = { 'Linux': { 'loader': ctypes.CDLL, 'functype': ctypes.CFUNCTYPE, 'prefix': 'lib', 'extension': '.so' }, 'Darwin': { 'loader': ctypes.CDLL, 'functype': ctypes.CFUNCTYPE, 'prefix': 'lib', 'extension': '.dylib' }, } if platform.system...
25.653846
89
0.667916
231c9e891a207654dfe0cd5cc16faa1cf46cc87a
1,449
py
Python
py-polars/polars/utils.py
muyixi315/polars
27173e78d471f4fa96d175d38a4f010076fb4c1f
[ "MIT" ]
null
null
null
py-polars/polars/utils.py
muyixi315/polars
27173e78d471f4fa96d175d38a4f010076fb4c1f
[ "MIT" ]
null
null
null
py-polars/polars/utils.py
muyixi315/polars
27173e78d471f4fa96d175d38a4f010076fb4c1f
[ "MIT" ]
null
null
null
import pyarrow as pa def coerce_arrow(array: "pa.Array") -> "pa.Array": if array.type == pa.timestamp("s"): array = pa.compute.cast( pa.compute.multiply(pa.compute.cast(array, pa.int64()), 1000), pa.date64(), ) elif array.type == pa.timestamp("ms"): array = pa.c...
37.153846
87
0.595583
169d38da3732fa1ba03b78a0503ada6724ed78ba
1,196
py
Python
tech_project/lib/python2.7/site-packages/phonenumbers/data/region_PG.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
27
2019-11-18T05:06:01.000Z
2021-02-28T19:38:09.000Z
tech_project/lib/python2.7/site-packages/phonenumbers/data/region_PG.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
21
2020-12-29T21:29:31.000Z
2022-03-12T00:53:57.000Z
tech_project/lib/python2.7/site-packages/phonenumbers/data/region_PG.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
6
2020-01-09T21:55:38.000Z
2021-09-17T01:22:48.000Z
"""Auto-generated file, do not edit by hand. PG metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_PG = PhoneMetadata(id='PG', country_code=675, international_prefix='00|140[1-3]', general_desc=PhoneNumberDesc(national_number_pattern='(?:180|[78]\\d{3})\\d{4}|(?:[2-...
92
188
0.688963
90c5a58fdcca0404703c979f3284ee5c24ff6fbf
4,178
py
Python
reconcile/test/test_ocm_additional_routers.py
bwplotka/qontract-reconcile
08fa2472edba72bb6aa8d6264579506f0bf2a830
[ "Apache-2.0" ]
null
null
null
reconcile/test/test_ocm_additional_routers.py
bwplotka/qontract-reconcile
08fa2472edba72bb6aa8d6264579506f0bf2a830
[ "Apache-2.0" ]
null
null
null
reconcile/test/test_ocm_additional_routers.py
bwplotka/qontract-reconcile
08fa2472edba72bb6aa8d6264579506f0bf2a830
[ "Apache-2.0" ]
null
null
null
from unittest.mock import patch, call from unittest import TestCase from reconcile.utils.ocm import OCMMap import reconcile.queries as queries import reconcile.ocm_additional_routers as integ from .fixtures import Fixtures fxt = Fixtures('ocm_additional_routers') class TestOCMAdditionalRouters(TestCase): # i...
32.387597
66
0.648157
3da1b0d23c856d32a545a56f860179ca8be90137
1,591
py
Python
test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/_auto_rest_bool_test_service.py
fearthecowboy/autorest.python
a251e361218598b55b0621db2275aafcb7158a5c
[ "MIT" ]
null
null
null
test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/_auto_rest_bool_test_service.py
fearthecowboy/autorest.python
a251e361218598b55b0621db2275aafcb7158a5c
[ "MIT" ]
null
null
null
test/vanilla/Expected/AcceptanceTests/BodyBoolean/bodyboolean/_auto_rest_bool_test_service.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 ...
35.355556
89
0.675047
1dde70ebb4b1b64d42b245f6e13b905a3abdb7dc
41,711
py
Python
pandas/tests/groupby/transform/test_transform.py
ChrisAlbertsen/pandas
da0156a302f3f7c25bfee0b410bb23865b76f3dd
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/groupby/transform/test_transform.py
ChrisAlbertsen/pandas
da0156a302f3f7c25bfee0b410bb23865b76f3dd
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/groupby/transform/test_transform.py
ChrisAlbertsen/pandas
da0156a302f3f7c25bfee0b410bb23865b76f3dd
[ "BSD-3-Clause" ]
null
null
null
""" test with the .transform """ from io import StringIO import numpy as np import pytest from pandas.core.dtypes.common import ( ensure_platform_int, is_timedelta64_dtype, ) import pandas as pd from pandas import ( Categorical, DataFrame, MultiIndex, Series, Timestamp, concat, da...
32.334109
88
0.566493
b785d40a114d084516e15a18afeaf89b950c9d50
516
py
Python
repeater.py
Mem2019/Zulip-CTF-Bot
1e5f8bba97a9370f2a1fc12abf78e60e99bc9f18
[ "MIT" ]
null
null
null
repeater.py
Mem2019/Zulip-CTF-Bot
1e5f8bba97a9370f2a1fc12abf78e60e99bc9f18
[ "MIT" ]
null
null
null
repeater.py
Mem2019/Zulip-CTF-Bot
1e5f8bba97a9370f2a1fc12abf78e60e99bc9f18
[ "MIT" ]
null
null
null
# 人类的本质是复读机,所以此repeater.py乃是最强人工智能 class Repeater: def __init__(self, send_message, threshold): self.records = {} self.send_message = send_message assert threshold > 1 self.threshold = threshold def update(self, stream, subject, content): r = self.records.get((stream, subject)) if r and r[0] == content: ...
32.25
56
0.689922
c2c22e6295ed3238a95321ff44e0194179423f6f
32,020
py
Python
sympy/utilities/tests/test_iterables.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
1
2020-09-09T20:40:17.000Z
2020-09-09T20:40:17.000Z
sympy/utilities/tests/test_iterables.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
14
2018-02-08T10:11:03.000Z
2019-04-16T10:32:46.000Z
sympy/utilities/tests/test_iterables.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
1
2022-02-04T13:50:29.000Z
2022-02-04T13:50:29.000Z
from textwrap import dedent from itertools import islice, product from sympy.core.basic import Basic from sympy.core.numbers import Integer from sympy.core.sorting import ordered from sympy.core.symbol import (Dummy, symbols) from sympy.functions.combinatorial.factorials import factorial from sympy.matrices.dense impo...
36.678121
319
0.460462
8502eba08699283d28ee9873c5c3b9cac295c93e
6,259
py
Python
postgresqleu/invoices/forms.py
dlangille/pgeu-system
3f1910010063bab118e94a55ed757b23f1d36bf5
[ "MIT" ]
null
null
null
postgresqleu/invoices/forms.py
dlangille/pgeu-system
3f1910010063bab118e94a55ed757b23f1d36bf5
[ "MIT" ]
null
null
null
postgresqleu/invoices/forms.py
dlangille/pgeu-system
3f1910010063bab118e94a55ed757b23f1d36bf5
[ "MIT" ]
null
null
null
from django import forms from django.core.validators import MinValueValidator, MaxValueValidator from django.forms import ValidationError from django.forms import widgets from django.contrib.auth.models import User from django.conf import settings from decimal import Decimal from postgresqleu.util.widgets import Html...
48.898438
190
0.658412
616fcb97e05fda43b4292875c40af8553011f484
7,835
py
Python
contrib/bitrpc/bitrpc.py
BitTokens/BitToken
b5f3272537ab5b33b398092b8efa60347cf087ce
[ "MIT" ]
3
2018-02-06T10:07:27.000Z
2021-06-12T07:49:03.000Z
contrib/bitrpc/bitrpc.py
Penny-Admixture/BitToken
b5f3272537ab5b33b398092b8efa60347cf087ce
[ "MIT" ]
null
null
null
contrib/bitrpc/bitrpc.py
Penny-Admixture/BitToken
b5f3272537ab5b33b398092b8efa60347cf087ce
[ "MIT" ]
4
2017-07-20T10:30:49.000Z
2021-06-12T08:55:43.000Z
from jsonrpc import ServiceProxy import sys import string # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:8224") else: access = Ser...
24.182099
79
0.668283
dde97eb58f453de4c245aa53d3e8c90bb8219848
730
py
Python
kitsune/notifications/tests/test_models.py
navgurukul-shivani18/kitsune
a7cf49ab1bfcf4e770938116968824b2b0fa5bb1
[ "BSD-3-Clause" ]
4
2021-05-17T11:38:08.000Z
2021-08-19T06:42:39.000Z
kitsune/notifications/tests/test_models.py
navgurukul-shivani18/kitsune
a7cf49ab1bfcf4e770938116968824b2b0fa5bb1
[ "BSD-3-Clause" ]
32
2021-04-15T22:35:58.000Z
2022-01-04T21:30:05.000Z
kitsune/notifications/tests/test_models.py
navgurukul-shivani18/kitsune
a7cf49ab1bfcf4e770938116968824b2b0fa5bb1
[ "BSD-3-Clause" ]
3
2020-06-14T06:59:46.000Z
2020-06-15T14:45:56.000Z
from datetime import datetime from nose.tools import eq_ from kitsune.notifications.tests import NotificationFactory from kitsune.sumo.tests import TestCase class TestNotificationModel(TestCase): def test_is_read_false(self): n = NotificationFactory(read_at=None) eq_(n.is_read, False) def ...
26.071429
59
0.70274
9cecf3cf772671a8858d386c6fc70f5ad05f2f21
1,609
py
Python
hub_module/modules/text/text_generation/plato2_en_large/tasks/next_sentence_prediction.py
T-baby/PaddleHub
95f3a2a4cff30ac23e7e8d96a140521f8c8caeea
[ "Apache-2.0" ]
4
2021-02-25T03:27:38.000Z
2021-05-15T03:20:23.000Z
hub_module/modules/text/text_generation/plato2_en_large/tasks/next_sentence_prediction.py
KLGR123/PaddleHub
cc78bd12f4a7e3d76ce669cdbff28906d3c9ae43
[ "Apache-2.0" ]
null
null
null
hub_module/modules/text/text_generation/plato2_en_large/tasks/next_sentence_prediction.py
KLGR123/PaddleHub
cc78bd12f4a7e3d76ce669cdbff28906d3c9ae43
[ "Apache-2.0" ]
2
2021-03-01T07:04:01.000Z
2021-05-14T05:54:18.000Z
# 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 app...
34.978261
74
0.702921
550f9f2f31fce7736780e7878d951427781d791e
12,780
py
Python
perfkitbenchmarker/linux_packages/hpcc.py
msidana/PerfKitBenchmarker
2784642d3e6b20b3f474c4e27edb1ef163804f66
[ "Apache-2.0" ]
1
2018-08-28T19:33:21.000Z
2018-08-28T19:33:21.000Z
perfkitbenchmarker/linux_packages/hpcc.py
msidana/PerfKitBenchmarker
2784642d3e6b20b3f474c4e27edb1ef163804f66
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/linux_packages/hpcc.py
msidana/PerfKitBenchmarker
2784642d3e6b20b3f474c4e27edb1ef163804f66
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 PerfKitBenchmarker 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...
34.918033
120
0.657903
1de23bd35acabf9dfbe451c9730462e793d53928
13,914
py
Python
aesara/tensor/random/op.py
fshart/aesara
1ddf96a7b8e8503fb8773b09c3ca77483fd884c4
[ "BSD-3-Clause" ]
111
2021-01-29T06:12:58.000Z
2021-06-04T20:27:51.000Z
aesara/tensor/random/op.py
fshart/aesara
1ddf96a7b8e8503fb8773b09c3ca77483fd884c4
[ "BSD-3-Clause" ]
253
2020-02-07T15:19:38.000Z
2021-01-27T20:26:55.000Z
aesara/tensor/random/op.py
fshart/aesara
1ddf96a7b8e8503fb8773b09c3ca77483fd884c4
[ "BSD-3-Clause" ]
38
2020-07-20T12:09:06.000Z
2021-01-27T13:38:50.000Z
from collections.abc import Sequence from copy import copy from typing import List, Optional, Tuple import numpy as np import aesara from aesara.configdefaults import config from aesara.graph.basic import Apply, Variable from aesara.graph.op import Op from aesara.misc.safe_asarray import _asarray from aesara.scalar i...
34.61194
104
0.607877
cc07b918fefe214c5eeb71b38437cb681ab077ea
632
py
Python
PythonExercicio/numPrimos.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
PythonExercicio/numPrimos.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
PythonExercicio/numPrimos.py
fotavio16/PycharmProjects
f5be49db941de69159ec543e8a6dde61f9f94d86
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt # Tamanho dos números num = 200 # Cria a tabela dos num primeiros números inteiros is_prime = np.ones((num,), dtype=bool) # Elinina os 0 e 1 que não são primos is_prime[:2] = 0 N_max = int(np.sqrt(len(is_prime) - 1)) is_busca = np.ones((N_max+1)) is_busca[:2] = 0 ...
21.066667
77
0.686709
eccea58eca9705da2d857800dd36b1240e6cb71e
7,733
py
Python
hack/monitor_prow.py
aliok/release
4d70335b71653ebcdcb93bd16e911c5803dd5019
[ "Apache-2.0" ]
1
2020-09-13T20:51:56.000Z
2020-09-13T20:51:56.000Z
hack/monitor_prow.py
aliok/release
4d70335b71653ebcdcb93bd16e911c5803dd5019
[ "Apache-2.0" ]
null
null
null
hack/monitor_prow.py
aliok/release
4d70335b71653ebcdcb93bd16e911c5803dd5019
[ "Apache-2.0" ]
null
null
null
#!/bin/env python3 import glob import multiprocessing.dummy as multiprocessing import subprocess import sys import tempfile import time import json import os exec_cmd = lambda *cmd: subprocess.check_output(cmd).decode('utf-8') RED = exec_cmd('tput', 'setaf', '1') GREEN = exec_cmd('tput', 'setaf', '2') YELLOW = exec_c...
39.860825
142
0.574163
9e30b18f1d7616d4eaf9d01afe9afc40e64801f8
38,497
py
Python
environment/lib/python3.8/site-packages/seaborn/regression.py
123972/PCA-nutricion
aff3c51a71c887c3fa367dbf9d599be5915c80cc
[ "MIT" ]
null
null
null
environment/lib/python3.8/site-packages/seaborn/regression.py
123972/PCA-nutricion
aff3c51a71c887c3fa367dbf9d599be5915c80cc
[ "MIT" ]
3
2020-07-27T19:51:37.000Z
2020-11-04T14:25:09.000Z
environment/lib/python3.8/site-packages/seaborn/regression.py
123972/PCA-nutricion
aff3c51a71c887c3fa367dbf9d599be5915c80cc
[ "MIT" ]
3
2020-07-26T20:09:46.000Z
2020-11-04T16:17:57.000Z
"""Plotting functions for linear models (broadly construed).""" import copy from textwrap import dedent import warnings import numpy as np import pandas as pd from scipy.spatial import distance import matplotlib as mpl import matplotlib.pyplot as plt try: import statsmodels assert statsmodels _has_statsmod...
35.978505
79
0.586799
66c2d1e004e1bf49569cecc21328f18ab18c931f
19,020
py
Python
test/unit/common/middleware/test_ratelimit.py
citrix-openstack-build/swift
34340ddf49a84f3b3398012c2b60be1215033559
[ "Apache-2.0" ]
1
2016-03-14T23:38:37.000Z
2016-03-14T23:38:37.000Z
test/unit/common/middleware/test_ratelimit.py
vimeo/swift
5eea524d3ea6d29c2b6f34927c0130090e7ed44d
[ "Apache-2.0" ]
null
null
null
test/unit/common/middleware/test_ratelimit.py
vimeo/swift
5eea524d3ea6d29c2b6f34927c0130090e7ed44d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack, 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 ...
37.076023
79
0.597371
3678b8353c7cda3455f77902af137aa7bea8f3d1
8,365
py
Python
blink_env/lib/python2.7/site-packages/djutils/management/commands/queue_consumer.py
naamara/blink
326c035b2f0ef0feae4cd7aa2d4e73fa4a40171a
[ "Unlicense", "MIT" ]
null
null
null
blink_env/lib/python2.7/site-packages/djutils/management/commands/queue_consumer.py
naamara/blink
326c035b2f0ef0feae4cd7aa2d4e73fa4a40171a
[ "Unlicense", "MIT" ]
10
2019-12-26T17:31:31.000Z
2022-03-21T22:17:33.000Z
blink_env/lib/python2.7/site-packages/djutils/management/commands/queue_consumer.py
naamara/blink
326c035b2f0ef0feae4cd7aa2d4e73fa4a40171a
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python import logging import os import Queue import sys import time import threading from logging.handlers import RotatingFileHandler from optparse import make_option from django.core.management.base import BaseCommand, CommandError from django.db.models.loading import get_apps from djutils.queue impor...
32.933071
116
0.572385
e04bc94d6b47867d00821fedb207cef88ffa3be1
3,307
py
Python
nornir_cli/common_commands/cmd_filter.py
timeforplanb123/nornir_cli
fe42b9ff070d72bc61634f1442f932e34ff058f2
[ "MIT" ]
16
2021-03-26T12:12:14.000Z
2021-09-08T15:55:46.000Z
nornir_cli/common_commands/cmd_filter.py
timeforplanb123/nornir_cli
fe42b9ff070d72bc61634f1442f932e34ff058f2
[ "MIT" ]
null
null
null
nornir_cli/common_commands/cmd_filter.py
timeforplanb123/nornir_cli
fe42b9ff070d72bc61634f1442f932e34ff058f2
[ "MIT" ]
3
2021-03-29T02:34:09.000Z
2021-04-02T22:30:08.000Z
from itertools import takewhile, dropwhile import click from nornir.core.filter import F from nornir_cli.common_commands import ( cmd_show_inventory, common_options, _pickle_to_hidden_file, _json_loads, _get_lists, SHOW_INVENTORY_OPTIONS, ) ERROR_MESSAGE = ( "Filter optiions. There should ...
31.198113
107
0.618083
dbd5f2b7f39997f24b9a9f8882ffd5321a4de794
2,103
py
Python
daroca/apps/checkout/migrations/0001_initial.py
Yuri-Lima/DaRocaOfficial
04347de59ab0fe1ebbac27cc37db67e0ab8faead
[ "MIT" ]
null
null
null
daroca/apps/checkout/migrations/0001_initial.py
Yuri-Lima/DaRocaOfficial
04347de59ab0fe1ebbac27cc37db67e0ab8faead
[ "MIT" ]
null
null
null
daroca/apps/checkout/migrations/0001_initial.py
Yuri-Lima/DaRocaOfficial
04347de59ab0fe1ebbac27cc37db67e0ab8faead
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-09-28 11:54 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='DeliveryOptions', fields=[ ('id', models.Bi...
47.795455
231
0.605801
2c953a432671352ce6662ba1deab1221c683e359
1,291
py
Python
garnahata_site/catalog/management/commands/reindex.py
dchaplinsky/garnahata.in.ua
02cd9772cdc4a99a24525b60ba1040b7343d76f6
[ "MIT" ]
9
2015-07-04T22:54:02.000Z
2016-10-27T05:05:03.000Z
garnahata_site/catalog/management/commands/reindex.py
dchaplinsky/garnahata.in.ua
02cd9772cdc4a99a24525b60ba1040b7343d76f6
[ "MIT" ]
12
2019-12-04T21:33:53.000Z
2022-02-10T09:20:07.000Z
garnahata_site/catalog/management/commands/reindex.py
dchaplinsky/garnahata.in.ua
02cd9772cdc4a99a24525b60ba1040b7343d76f6
[ "MIT" ]
4
2015-08-04T23:52:46.000Z
2019-02-07T11:16:16.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.core.management.base import BaseCommand from elasticsearch_dsl import Index from elasticsearch_dsl.connections import connections from catalog.models import Address, Ownership from catalog.elastic_models import ( Address as ElasticAddress...
29.340909
67
0.656081
14010fc2f89a891004d18ba047f6319b7a6a3c68
833
py
Python
oscar/apps/wishlists/forms.py
Idematica/django-oscar
242a0654210d63ba75f798788916c8b2f7abb7fb
[ "BSD-3-Clause" ]
1
2015-08-02T05:36:11.000Z
2015-08-02T05:36:11.000Z
oscar/apps/wishlists/forms.py
elliotthill/django-oscar
5a71a1f896f2c14f8ed3e68535a36b26118a65c5
[ "BSD-3-Clause" ]
null
null
null
oscar/apps/wishlists/forms.py
elliotthill/django-oscar
5a71a1f896f2c14f8ed3e68535a36b26118a65c5
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django import forms from django.db.models import get_model from django.forms.models import inlineformset_factory WishList = get_model('wishlists', 'WishList') Line = get_model('wishlists', 'Line') class WishListForm(forms.ModelForm): def __init__(self, user, *args, **kwargs): ...
26.870968
68
0.683073
eed51719897eaf231351dce329657063f6e33f8b
410
py
Python
chatbot_response.py
106research/research
beee90909f29343ff88ba2e49779c0fbc394d560
[ "Apache-2.0" ]
1
2018-11-08T09:47:59.000Z
2018-11-08T09:47:59.000Z
chatbot_response.py
106research/research
beee90909f29343ff88ba2e49779c0fbc394d560
[ "Apache-2.0" ]
null
null
null
chatbot_response.py
106research/research
beee90909f29343ff88ba2e49779c0fbc394d560
[ "Apache-2.0" ]
null
null
null
#from chatbot import chatbot def Chat_with_Bot(sentence_in, project): # project = chatbot.Chatbot() # project.main(['--modelTag', '1108', '--test', 'daemon']) # --modelTag 1108 # --test daemon answer = project.daemonPredict(sentence=sentence_in) # project.daemonClose() de...
25.625
63
0.621951
178b6ced6ede424167938396f1e886c379692a42
1,741
py
Python
gravatar/templatetags/gravatar_tags.py
pureYun/django-gravatar
21363be4f5b44b0f5da2e52c8e22934546390573
[ "BSD-3-Clause" ]
55
2016-04-05T15:42:21.000Z
2018-07-19T07:13:09.000Z
gravatar/templatetags/gravatar_tags.py
pureYun/django-gravatar
21363be4f5b44b0f5da2e52c8e22934546390573
[ "BSD-3-Clause" ]
10
2019-12-26T17:31:31.000Z
2022-03-21T22:17:33.000Z
gravatar/templatetags/gravatar_tags.py
pureYun/django-gravatar
21363be4f5b44b0f5da2e52c8e22934546390573
[ "BSD-3-Clause" ]
18
2016-04-05T15:40:13.000Z
2018-03-15T23:50:27.000Z
from django import template from django.utils.html import escape from django.contrib.auth.models import User from django.conf import settings from django.utils.hashcompat import md5_constructor import urllib GRAVATAR_URL_PREFIX = getattr(settings, "GRAVATAR_URL_PREFIX", "http://www.gravatar.com/") GRAVATAR_DEFAULT_IM...
34.82
118
0.723722
a2f7439129b63abeda8d4f1a9540a1a39eb774b3
16,390
py
Python
backend/database/wrapper/field_wrapper.py
binury/DistributedReplays
c09d7e41b9c9e57586beb03f26fa4eee59aecf15
[ "Apache-2.0" ]
null
null
null
backend/database/wrapper/field_wrapper.py
binury/DistributedReplays
c09d7e41b9c9e57586beb03f26fa4eee59aecf15
[ "Apache-2.0" ]
null
null
null
backend/database/wrapper/field_wrapper.py
binury/DistributedReplays
c09d7e41b9c9e57586beb03f26fa4eee59aecf15
[ "Apache-2.0" ]
null
null
null
from typing import Dict, List from backend.database.utils.dynamic_field_manager import DynamicFieldResult class FieldExplanation: def __init__(self, field_name: str, simple_explanation: str, field_rename: str = None, math_explanation: str = None, file_creation: str = None, short...
57.915194
191
0.575595
159678e834975ecb527eb23ed47ed9fc3c1df572
25
py
Python
Game/Pieces/Major/__init__.py
ritwikd/interom
0b626351fd742f2a99d0a6d11ba8c1a214aab576
[ "MIT" ]
null
null
null
Game/Pieces/Major/__init__.py
ritwikd/interom
0b626351fd742f2a99d0a6d11ba8c1a214aab576
[ "MIT" ]
1
2021-03-06T22:08:32.000Z
2021-03-06T22:09:07.000Z
Game/Pieces/Major/__init__.py
ritwikd/interom
0b626351fd742f2a99d0a6d11ba8c1a214aab576
[ "MIT" ]
1
2021-03-03T22:48:07.000Z
2021-03-03T22:48:07.000Z
from . import Queen, Rook
25
25
0.76
5e9581bf68f3fd96ca45d5c9c23b4823ab8619dc
2,969
py
Python
xirl/xirl/evaluators/reward_visualizer.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
xirl/xirl/evaluators/reward_visualizer.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
xirl/xirl/evaluators/reward_visualizer.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
32.626374
80
0.687437
421f4cd5a3ce6d269c4fe1c3d9e091319f4e1728
1,957
py
Python
lisa/tools/stat.py
anirudhrb/lisa
fe009802577c81e45ca2ff5a34d353878caa725d
[ "MIT" ]
48
2018-05-19T17:46:34.000Z
2020-09-28T21:09:06.000Z
lisa/tools/stat.py
anirudhrb/lisa
fe009802577c81e45ca2ff5a34d353878caa725d
[ "MIT" ]
1,261
2018-05-17T04:32:22.000Z
2020-11-23T17:29:13.000Z
lisa/tools/stat.py
anirudhrb/lisa
fe009802577c81e45ca2ff5a34d353878caa725d
[ "MIT" ]
133
2018-05-15T23:12:14.000Z
2020-11-13T10:37:49.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from typing import cast from lisa.executable import Tool from lisa.operating_system import Posix class Stat(Tool): @property def command(self) -> str: return "stat" @property def can_install(self) -> bool: retu...
29.651515
85
0.571794
f27090412699d265e919f8d9a96fdb43b6c382de
2,594
py
Python
ml/machine_learning.py
ShiNik/web_ml
d5586f09f952be455316a6f8ff464e4b67b8fcc1
[ "MIT" ]
null
null
null
ml/machine_learning.py
ShiNik/web_ml
d5586f09f952be455316a6f8ff464e4b67b8fcc1
[ "MIT" ]
null
null
null
ml/machine_learning.py
ShiNik/web_ml
d5586f09f952be455316a6f8ff464e4b67b8fcc1
[ "MIT" ]
null
null
null
# ML Packages from sklearn import model_selection from sklearn.linear_model import LogisticRegression from sklearn.tree import DecisionTreeClassifier from sklearn.neighbors import KNeighborsClassifier from sklearn.discriminant_analysis import LinearDiscriminantAnalysis from sklearn.naive_bayes import GaussianNB from sk...
31.253012
81
0.720894
a6aed5c4b3c48c2b7c21dfade3ae56408a71cd55
925
py
Python
src/emcee/moves/stretch.py
hamogu/emcee
1d19dd94ca11b298b319d470b4d818b61083e184
[ "MIT" ]
null
null
null
src/emcee/moves/stretch.py
hamogu/emcee
1d19dd94ca11b298b319d470b4d818b61083e184
[ "MIT" ]
null
null
null
src/emcee/moves/stretch.py
hamogu/emcee
1d19dd94ca11b298b319d470b4d818b61083e184
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np from .red_blue import RedBlueMove __all__ = ["StretchMove"] class StretchMove(RedBlueMove): """ A `Goodman & Weare (2010) <http://msp.berkeley.edu/camcos/2010/5-1/p04.xhtml>`_ "stretch move" with parallelization as described in `Foreman-Mackey et al. (2013...
27.205882
77
0.570811
a1e86d1af18e8b26fa46628fb911eee17c492738
298
py
Python
src/user/serializers.py
shunsukeaihara/my-django-scaffold
d3b6866c3fb89f9e6af224b657c31ad149ea9aab
[ "MIT" ]
1
2019-01-29T08:15:31.000Z
2019-01-29T08:15:31.000Z
src/user/serializers.py
shunsukeaihara/my-django-scaffold
d3b6866c3fb89f9e6af224b657c31ad149ea9aab
[ "MIT" ]
null
null
null
src/user/serializers.py
shunsukeaihara/my-django-scaffold
d3b6866c3fb89f9e6af224b657c31ad149ea9aab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from rest_framework import serializers from .models import User class UserSerializer(serializers.ModelSerializer): class Meta: model = User exclude = ["password", "is_active", "is_staff", "is_superuser", "groups"] read_only_fields = ["email"]
24.833333
81
0.667785
7eed930ef9fb2aa09ea837c9e273e1adcf5b23b7
244
py
Python
docs/conf.py
gcmt/i3pie
a6df121dc0f101202ff0071fd30b6e770f150731
[ "MIT" ]
null
null
null
docs/conf.py
gcmt/i3pie
a6df121dc0f101202ff0071fd30b6e770f150731
[ "MIT" ]
null
null
null
docs/conf.py
gcmt/i3pie
a6df121dc0f101202ff0071fd30b6e770f150731
[ "MIT" ]
null
null
null
import os import sys sys.path.insert(0, os.path.abspath('..')) project = 'i3pie' copyright = '2019, Giacomo Comitti' author = 'Giacomo Comitti' release = '0.1' extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon'] html_theme = 'classic'
20.333333
58
0.704918
bbda947710df633ed20c7624b53758a90879b034
1,527
py
Python
tests/unit/modules/test_pecl.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
19
2016-01-29T14:37:52.000Z
2022-03-30T18:08:01.000Z
tests/unit/modules/test_pecl.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
223
2016-03-02T16:39:41.000Z
2022-03-03T12:26:35.000Z
tests/unit/modules/test_pecl.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
64
2016-02-04T19:45:26.000Z
2021-12-15T02:02:31.000Z
# -*- coding: utf-8 -*- """ :codeauthor: Jayesh Kariya <jayeshk@saltstack.com> """ # Import Python Libs from __future__ import absolute_import, print_function, unicode_literals # Import Salt Libs import salt.modules.pecl as pecl from tests.support.mock import patch # Import Salt Testing Libs from tests.support.u...
28.277778
77
0.603798
5bd70a032e4424bf007ac4030ab865e18fa9e892
982
py
Python
clients/keto/python/test/test_health_status.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
clients/keto/python/test/test_health_status.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
clients/keto/python/test/test_health_status.py
simoneromano96/sdk
a6113d0daefbbb803790297e4b242d4c7cbbcb22
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ ORY Keto A cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs. # noqa: E501 The version of the OpenAPI document: v0.0.0-alpha.1 Contact: hi@ory.sh Generated by: https://openapi-generator...
23.95122
161
0.702648
53e6d1aa6441b6063b3393dff1aa140f3a219e91
4,038
py
Python
pyro/distributions/__init__.py
stjordanis/pyro
a2863febce935021dc5d5903bd89ec2f805294c7
[ "Apache-2.0" ]
null
null
null
pyro/distributions/__init__.py
stjordanis/pyro
a2863febce935021dc5d5903bd89ec2f805294c7
[ "Apache-2.0" ]
null
null
null
pyro/distributions/__init__.py
stjordanis/pyro
a2863febce935021dc5d5903bd89ec2f805294c7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 import pyro.distributions.torch_patch # noqa F403 from pyro.distributions.avf_mvn import AVFMultivariateNormal from pyro.distributions.coalescent import CoalescentRateLikelihood, CoalescentTimes, CoalescentTimesWithRate from pyro....
40.787879
120
0.795939
7770d8448b9db7219a715d2701819da1326d9321
3,027
py
Python
wikidata_panglaodb/plotting.py
jvfe/wikidata_panglaodb
a1dd854393c9c81229dcf639d62fb758cf145973
[ "BSD-2-Clause" ]
1
2020-11-12T21:28:34.000Z
2020-11-12T21:28:34.000Z
wikidata_panglaodb/plotting.py
jvfe/wikidata_panglaodb
a1dd854393c9c81229dcf639d62fb758cf145973
[ "BSD-2-Clause" ]
2
2020-09-16T21:09:36.000Z
2020-12-25T19:02:41.000Z
wikidata_panglaodb/plotting.py
jvfe/wikidata_panglaodb
a1dd854393c9c81229dcf639d62fb758cf145973
[ "BSD-2-Clause" ]
null
null
null
"""Plotting functions""" import pandas as pd import seaborn as sns import matplotlib.pyplot as plt sns.set(style="whitegrid", palette="muted") def plot_matched_item_types(reconciled_table, summary_table, data_type, ax): """Plot reconciled item types This will make a count table of item types, and plot ...
28.28972
99
0.58738
e3f4b9f3b8b0dfe27319beed3872cd2ea5d06f99
46,441
py
Python
transformers/modeling_utils.py
ajbouh/transformers
adcdbe95930272abdb305e95b3794672f992d5f8
[ "Apache-2.0" ]
1
2020-12-15T10:50:04.000Z
2020-12-15T10:50:04.000Z
transformers/modeling_utils.py
ajbouh/transformers
adcdbe95930272abdb305e95b3794672f992d5f8
[ "Apache-2.0" ]
null
null
null
transformers/modeling_utils.py
ajbouh/transformers
adcdbe95930272abdb305e95b3794672f992d5f8
[ "Apache-2.0" ]
1
2020-07-01T01:16:11.000Z
2020-07-01T01:16:11.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, 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 cop...
53.01484
472
0.649964
29c2729bbbd17142d71480c1024fde3bbb152053
3,583
py
Python
armstrong/apps/embeds/migrations/0001_initial.py
armstrong/armstrong.apps.embeds
6042f4ab39e752c4e78826e44f7c2aa82bc04e6a
[ "Apache-2.0" ]
1
2016-08-02T09:33:35.000Z
2016-08-02T09:33:35.000Z
armstrong/apps/embeds/migrations/0001_initial.py
armstrong/armstrong.apps.embeds
6042f4ab39e752c4e78826e44f7c2aa82bc04e6a
[ "Apache-2.0" ]
null
null
null
armstrong/apps/embeds/migrations/0001_initial.py
armstrong/armstrong.apps.embeds
6042f4ab39e752c4e78826e44f7c2aa82bc04e6a
[ "Apache-2.0" ]
1
2018-03-04T20:30:15.000Z
2018-03-04T20:30:15.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import armstrong.apps.embeds.fields import model_utils.fields import armstrong.apps.embeds.mixins import django_extensions.db.fields.json class Migration(migrations.Migration): dependencies = [ ] op...
45.935897
221
0.607591
c79942c48509e193cb5223b256c21b317af0f7b7
5,163
py
Python
pandas/_typing.py
erictleung/pandas
ca52e3968058dce48c20070b3e9efc2ec42d7cf4
[ "BSD-3-Clause" ]
null
null
null
pandas/_typing.py
erictleung/pandas
ca52e3968058dce48c20070b3e9efc2ec42d7cf4
[ "BSD-3-Clause" ]
null
null
null
pandas/_typing.py
erictleung/pandas
ca52e3968058dce48c20070b3e9efc2ec42d7cf4
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime, timedelta, tzinfo from io import BufferedIOBase, RawIOBase, TextIOBase, TextIOWrapper from mmap import mmap from os import PathLike from typing import ( IO, TYPE_CHECKING, Any, AnyStr, Callable, Collection, Dict, Hashable, List, Mapping, Optiona...
32.068323
88
0.743173
71d5059fd7a3071c9966e650fc6b217907f1bd25
152
py
Python
exercicios_programacao/exs2/ex2_2.py
JellyWellyBelly/PythonTeaching
a56545b744e9835500372e96a1518d537bd46850
[ "Unlicense" ]
null
null
null
exercicios_programacao/exs2/ex2_2.py
JellyWellyBelly/PythonTeaching
a56545b744e9835500372e96a1518d537bd46850
[ "Unlicense" ]
null
null
null
exercicios_programacao/exs2/ex2_2.py
JellyWellyBelly/PythonTeaching
a56545b744e9835500372e96a1518d537bd46850
[ "Unlicense" ]
null
null
null
x = int(input()) y = int(input()) z = int(input()) if (x>y): if (x<z): print (z) else: print (x) else: if (y<z): print(z) else: print (y)
10.133333
16
0.493421
71a23a442d74acb57b24def11c98a6944a559c8a
1,060
py
Python
magenta/music/__init__.py
Bogatom/MagentaTraining
9ffa8c566f70868720d69d9839bb3222c4c1c93b
[ "Apache-2.0" ]
17
2017-06-29T18:32:25.000Z
2021-10-03T12:30:49.000Z
magenta/music/__init__.py
Bogatom/MagentaTraining
9ffa8c566f70868720d69d9839bb3222c4c1c93b
[ "Apache-2.0" ]
12
2021-02-15T07:42:08.000Z
2022-02-08T02:05:27.000Z
magenta/music/__init__.py
Bogatom/MagentaTraining
9ffa8c566f70868720d69d9839bb3222c4c1c93b
[ "Apache-2.0" ]
6
2017-07-06T06:12:36.000Z
2021-07-06T13:07:32.000Z
# Copyright 2020 The Magenta Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
34.193548
78
0.751887
1761a8a51d3a2b919d5f9b9a2a038c0b3130d09e
5,085
py
Python
word_counting/main.py
ropok/explore-jupyter3
e04a70b76f70b7da81a272595c736c33052b7d80
[ "MIT" ]
null
null
null
word_counting/main.py
ropok/explore-jupyter3
e04a70b76f70b7da81a272595c736c33052b7d80
[ "MIT" ]
null
null
null
word_counting/main.py
ropok/explore-jupyter3
e04a70b76f70b7da81a272595c736c33052b7d80
[ "MIT" ]
null
null
null
''' text-mining: menghitung frekuensi kemunculan kata ''' import os from os import system, name import csv from nltk.tokenize import word_tokenize from nltk.probability import FreqDist import pandas as pd from datetime import datetime # NLTK class Main(): # open log to write report process def __init__(sel...
33.019481
144
0.594297
e2b6ac0864634ff13b380b449567aa046378fc5c
64,216
py
Python
tensorflow/python/ops/sparse_ops.py
abdulazizali77/tensorflow
f7d07f5d9683a7d5ce91b108c6c31a47e1372eaa
[ "Apache-2.0" ]
8
2017-04-20T18:08:52.000Z
2021-10-21T11:19:02.000Z
tensorflow/python/ops/sparse_ops.py
Skywice/tensorflow
f7d07f5d9683a7d5ce91b108c6c31a47e1372eaa
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/sparse_ops.py
Skywice/tensorflow
f7d07f5d9683a7d5ce91b108c6c31a47e1372eaa
[ "Apache-2.0" ]
9
2017-02-02T03:29:29.000Z
2021-02-10T17:04:21.000Z
# Copyright 2015 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...
37.885546
80
0.674224
3a57632dfda4670ecbd16a034480b2d69e54711c
23,082
py
Python
runtime/bindings/python/tests/test_ngraph/test_ops.py
akhakimova/openvino
3a588476cd7a34bdc8ad02b85c14dc939747a282
[ "Apache-2.0" ]
2,406
2020-04-22T15:47:54.000Z
2022-03-31T10:27:37.000Z
runtime/bindings/python/tests/test_ngraph/test_ops.py
akhakimova/openvino
3a588476cd7a34bdc8ad02b85c14dc939747a282
[ "Apache-2.0" ]
4,948
2020-04-22T15:12:39.000Z
2022-03-31T18:45:42.000Z
runtime/bindings/python/tests/test_ngraph/test_ops.py
sbalandi/openvino
519951a4a9f979c1b04529dda821111c56113716
[ "Apache-2.0" ]
991
2020-04-23T18:21:09.000Z
2022-03-31T18:40:57.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # flake8: noqa import numpy as np import openvino.opset8 as ov from openvino.impl import AxisSet, Function, Shape, Type from openvino.impl.op import Constant, Parameter from tests.runtime import get_runtime from tests import xfail_iss...
26.839535
107
0.610952
66fab9ecb82e9b05093340fce82cd06d18ad7f60
776
py
Python
etk/data_extractors/digPriceExtractor/digpe/unit/time_units.py
linqyd/etk
dcf0cae4076619f5261573d47b4f5f26baaf15b7
[ "MIT" ]
null
null
null
etk/data_extractors/digPriceExtractor/digpe/unit/time_units.py
linqyd/etk
dcf0cae4076619f5261573d47b4f5f26baaf15b7
[ "MIT" ]
null
null
null
etk/data_extractors/digPriceExtractor/digpe/unit/time_units.py
linqyd/etk
dcf0cae4076619f5261573d47b4f5f26baaf15b7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: ZwEin # @Date: 2016-07-04 11:51:22 # @Last Modified by: ZwEin # @Last Modified time: 2016-07-05 23:08:11 UNIT_TIME_UNITS = [ 'hourly', 'half hour', 'half hr', 'half', 'hlf hr', 'hlf hour', 'hf hr', 'h hour', 'h hr', 'h h', 'full hour',...
12.516129
42
0.400773
285f82be269eb56cdace2a6306669423ca4a4ffa
929
py
Python
ws/handler/appliance/light/zone/home_event_presence.py
fabaff/automate-ws
a9442f287692787e3f253e1ff23758bec8f3902e
[ "MIT" ]
null
null
null
ws/handler/appliance/light/zone/home_event_presence.py
fabaff/automate-ws
a9442f287692787e3f253e1ff23758bec8f3902e
[ "MIT" ]
1
2021-12-21T11:34:47.000Z
2021-12-21T11:34:47.000Z
ws/handler/appliance/light/zone/home_event_presence.py
fabaff/automate-ws
a9442f287692787e3f253e1ff23758bec8f3902e
[ "MIT" ]
1
2021-12-21T10:10:13.000Z
2021-12-21T10:10:13.000Z
import home from ws.handler.event.enum import Handler as Parent class Handler(Parent): KLASS = home.event.presence.Event APPLIANCE_KLASS = home.appliance.light.zone.Appliance TEMPLATE = "event/enum.html" LABEL = "Is someone in here?" LABEL1 = "Someone is in here" LABEL2 = "No one is in here"...
27.323529
57
0.606028
35b292794eb168607d0978a80d81c08547d6791d
1,328
py
Python
lib/surface/composer/environments/describe.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
null
null
null
lib/surface/composer/environments/describe.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
11
2020-02-29T02:51:12.000Z
2022-03-30T23:20:08.000Z
lib/surface/composer/environments/describe.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
1
2020-07-24T18:47:35.000Z
2020-07-24T18:47:35.000Z
# -*- coding: utf-8 -*- # # Copyright 2017 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 requir...
36.888889
86
0.781627
c1196050d89ea2c56ef3c159170b595e29443d1d
348
py
Python
examples/configs/generic_st7735/landscape_128x160.py
russhughes/lv_st7789
aa5134383250abd7d26285c01cb344374449e5b8
[ "MIT" ]
8
2021-08-28T01:41:38.000Z
2022-01-30T15:49:33.000Z
examples/configs/generic_st7735/landscape_128x160.py
russhughes/lv_st7789
aa5134383250abd7d26285c01cb344374449e5b8
[ "MIT" ]
9
2021-08-29T03:01:28.000Z
2022-01-28T11:57:45.000Z
examples/configs/generic_st7735/landscape_128x160.py
russhughes/lv_st7789
aa5134383250abd7d26285c01cb344374449e5b8
[ "MIT" ]
1
2022-01-28T11:58:10.000Z
2022-01-28T11:58:10.000Z
''' Generic st7735 128x160 LCD module on esp32 ''' from ili9XXX import ili9341, COLOR_MODE_RGB, MADCTL_MY, MADCTL_MV disp = ili9341( mhz=3, mosi=18, clk=19, cs=13, dc=12, rst=4, power=-1, backlight=15, backlight_on=1, width=128, height=160, colormode=COLOR_MODE_RGB, ...
16.571429
65
0.635057
128f1b4515d552527eb7dd38a8f1efede5325474
214,483
py
Python
pyloxi3/loxi/of13/oxm.py
floodlight/loxigen-artifacts
1822ec984cb6da342bbaa381677071cbbe53cee6
[ "Apache-2.0" ]
1
2017-06-01T09:41:07.000Z
2017-06-01T09:41:07.000Z
pyloxi3/loxi/of13/oxm.py
floodlight/loxigen-artifacts
1822ec984cb6da342bbaa381677071cbbe53cee6
[ "Apache-2.0" ]
2
2017-07-03T08:50:56.000Z
2018-03-12T16:16:19.000Z
pyloxi3/loxi/of13/oxm.py
floodlight/loxigen-artifacts
1822ec984cb6da342bbaa381677071cbbe53cee6
[ "Apache-2.0" ]
20
2015-02-16T15:23:04.000Z
2022-03-15T20:06:10.000Z
# Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University # Copyright (c) 2011, 2012 Open Networking Foundation # Copyright (c) 2012, 2013 Big Switch Networks, Inc. # See the file LICENSE.pyloxi which should have been included in the source distribution # Automatically generated by LOXI from ...
28.874933
97
0.537931
83a72f7bbb0b240d4a3a8ca36fb888060acc1d89
1,512
py
Python
bitmovin/resources/models/filters/audio_mix_channel.py
camberbridge/bitmovin-python
3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95
[ "Unlicense" ]
44
2016-12-12T17:37:23.000Z
2021-03-03T09:48:48.000Z
bitmovin/resources/models/filters/audio_mix_channel.py
camberbridge/bitmovin-python
3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95
[ "Unlicense" ]
38
2017-01-09T14:45:45.000Z
2022-02-27T18:04:33.000Z
bitmovin/resources/models/filters/audio_mix_channel.py
camberbridge/bitmovin-python
3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95
[ "Unlicense" ]
27
2017-02-02T22:49:31.000Z
2019-11-21T07:04:57.000Z
from bitmovin.errors import InvalidTypeError from bitmovin.utils import Serializable from . import AudioMixSourceChannel class AudioMixChannel(Serializable): def __init__(self, channel_number, source_channels): super().__init__() self._source_channels = None self.channelNumber = channel_n...
33.6
107
0.696429
c83cd140584c07fff0f189b6fafd222d971738e7
2,280
py
Python
graph/cycle.py
gate-lab/SymbiSATtack
cca7ef6b3768715d6c91ecbe621ac4ef6b379f7e
[ "BSD-3-Clause" ]
10
2021-05-21T19:54:25.000Z
2022-01-20T19:41:37.000Z
graph/cycle.py
gate-lab/SymbiSATtack
cca7ef6b3768715d6c91ecbe621ac4ef6b379f7e
[ "BSD-3-Clause" ]
2
2021-09-07T14:02:00.000Z
2022-01-27T18:40:47.000Z
graph/cycle.py
gate-lab/SymbiSATtack
cca7ef6b3768715d6c91ecbe621ac4ef6b379f7e
[ "BSD-3-Clause" ]
6
2021-06-23T19:26:10.000Z
2022-03-17T13:54:00.000Z
from datetime import datetime import logging from networkx.utils import * from graph_tool import Graph, topology from dateutil.relativedelta import relativedelta cnt = 0 def diff(t_a, t_b): t_diff = relativedelta(t_b, t_a) # later/end time comes first! return '{h}h {m}m {s}s'.format(h=t_diff.hours, m=t_di...
27.804878
86
0.57193
0a18541f54288fb90b18f0fbea3ca9f020b5351c
9,932
py
Python
unsupervised_text_generation/instructor/real_data/trgan_instructor.py
Holmeswww/Improving-GAN-Training-with-Probability-Ratio-Clipping-and-Sample-Reweighting
09331da364ff19f25155ca5a6f9c7a6517b790f6
[ "MIT" ]
25
2020-07-01T05:58:27.000Z
2022-01-19T09:09:21.000Z
unsupervised_text_generation/instructor/real_data/trgan_instructor.py
Holmeswww/Improving-GAN-Training-with-Probability-Ratio-Clipping-and-Sample-Reweighting
09331da364ff19f25155ca5a6f9c7a6517b790f6
[ "MIT" ]
2
2021-02-07T08:20:31.000Z
2021-03-12T12:58:33.000Z
unsupervised_text_generation/instructor/real_data/trgan_instructor.py
Holmeswww/Improving-GAN-Training-with-Probability-Ratio-Clipping-and-Sample-Reweighting
09331da364ff19f25155ca5a6f9c7a6517b790f6
[ "MIT" ]
5
2020-06-26T13:15:08.000Z
2022-03-28T07:39:55.000Z
# -*- coding: utf-8 -*- # @Author : William # @Project : TextGAN-william # @FileName : relgan_instructor.py # @Time : Created at 2019-04-25 # @Blog : http://zhiweil.ml/ # @Description : # Copyrights (C) 2018. All Rights Reserved. import torch import torch.nn as nn import torch...
44.738739
146
0.594543
43864f6e5d34382265e7853dc6bfb908b06a9593
30,586
py
Python
baselines/run.py
jbreeding28/baselines
517dc2e0d0c98b8b70c483f5ad1aaf5984f4c4b7
[ "MIT" ]
null
null
null
baselines/run.py
jbreeding28/baselines
517dc2e0d0c98b8b70c483f5ad1aaf5984f4c4b7
[ "MIT" ]
null
null
null
baselines/run.py
jbreeding28/baselines
517dc2e0d0c98b8b70c483f5ad1aaf5984f4c4b7
[ "MIT" ]
null
null
null
import sys import re import multiprocessing import os import os.path as osp import gym import gc import cloudpickle from collections import defaultdict import tensorflow as tf import numpy as np import datetime import matplotlib.pyplot as plt import time import random import cv2 cv2.ocl.setUseOpenCL(False) from baselin...
41.221024
176
0.591186
df5715a52a38ecdb9cd78a16ce7dd1dde887ebb7
3,863
py
Python
axonius_api_client/examples/example_custom_cb.py
rwils83/axonius_api_client
1990ed4d1287482a4648dc51edcaa5eb08255f5b
[ "MIT" ]
null
null
null
axonius_api_client/examples/example_custom_cb.py
rwils83/axonius_api_client
1990ed4d1287482a4648dc51edcaa5eb08255f5b
[ "MIT" ]
3
2021-05-18T14:28:30.000Z
2021-09-06T20:01:56.000Z
axonius_api_client/examples/example_custom_cb.py
rwils83/axonius_api_client
1990ed4d1287482a4648dc51edcaa5eb08255f5b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Utilities for this package.""" import json import os from datetime import datetime, timedelta import axonius_api_client as axonapi from axonius_api_client.constants import ALL_NAME PAGE_SIZE = 10 MAX_PAGE_TOOK_SECS = 10 MAX_ROW_KB = 1000 MAX_KEY_KB = 2000 ROW_TMPL = ( "#{row_num} {axid}...
30.179688
89
0.63707
651cc7a5fbd6216e8067d8732b96c3f0866753a4
5,615
py
Python
p3dpy/io.py
WillRobotics/p3dpy
a607d0840b0871ee3122df7756336316435d0f18
[ "MIT" ]
11
2021-05-05T16:02:40.000Z
2022-02-02T03:35:29.000Z
p3dpy/io.py
WillRobotics/p3dpy
a607d0840b0871ee3122df7756336316435d0f18
[ "MIT" ]
7
2021-03-16T14:05:06.000Z
2021-06-15T23:08:56.000Z
p3dpy/io.py
WillRobotics/p3dpy
a607d0840b0871ee3122df7756336316435d0f18
[ "MIT" ]
1
2021-03-29T07:27:15.000Z
2021-03-29T07:27:15.000Z
import struct from typing import IO, Optional, Tuple, Union import lzf import numpy as np import stl from plyfile import PlyData from . import pointcloud _field_dict = { "I1": "b", "I2": "h", "I4": "i", "U1": "B", "U2": "H", "U4": "I", "F4": "f", "F8": "d", } _type_dict = { "I1": ...
30.68306
109
0.530543
def85ffae829c5503d6b7a6563822bed234464b1
1,061
py
Python
surveys/migrations/0002_auto_20200602_1145.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
2
2022-01-24T23:30:18.000Z
2022-01-26T00:21:22.000Z
surveys/migrations/0002_auto_20200602_1145.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
surveys/migrations/0002_auto_20200602_1145.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
# Generated by Django 3.0 on 2020-06-02 16:45 from django.db import migrations, models import surveys.utils.models class Migration(migrations.Migration): dependencies = [ ('surveys', '0001_initial'), ] operations = [ migrations.AddField( model_name='artistoftheweek', ...
30.314286
133
0.611687
cbf348898e47ec57b95d89d6adff9818bf9e8507
8,482
py
Python
app.py
alexoh554/Trig-Solver
ecebb68242c8141f3f1cd78244659c306cd6dd13
[ "MIT" ]
null
null
null
app.py
alexoh554/Trig-Solver
ecebb68242c8141f3f1cd78244659c306cd6dd13
[ "MIT" ]
null
null
null
app.py
alexoh554/Trig-Solver
ecebb68242c8141f3f1cd78244659c306cd6dd13
[ "MIT" ]
null
null
null
from flask import Flask, redirect, render_template, request, url_for, session from flask_session import Session import requests from tempfile import mkdtemp from helpers import checkInput, checkAngles, findThirdAngle, countList, sinePossible, sineLawAngle, sineLawSide, ambiguousCalculate, ambiguousOrder, sineLawA...
41.174757
196
0.495048
b56070e366a056d400e509b912cbbade268151b1
36,516
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_07_01/operations/_vpn_gateways_operations.py
praveenkuttappan/azure-sdk-for-python
4b79413667b7539750a6c7dde15737013a3d4bd5
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_07_01/operations/_vpn_gateways_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_07_01/operations/_vpn_gateways_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.279352
188
0.660204
8cf426ca96b6d77bb61d239d21eaee2d5d2e0b29
2,781
py
Python
instrumentation/opentelemetry-instrumentation-logging/setup.py
willarmiros/opentelemetry-python-contrib
0d34ef26b75f9a3bc275bf828b5a806d39ba1a40
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-07-18T07:59:09.000Z
2021-07-18T07:59:09.000Z
instrumentation/opentelemetry-instrumentation-logging/setup.py
willarmiros/opentelemetry-python-contrib
0d34ef26b75f9a3bc275bf828b5a806d39ba1a40
[ "Apache-2.0", "BSD-3-Clause" ]
3
2020-12-30T17:37:13.000Z
2021-06-06T01:02:30.000Z
instrumentation/opentelemetry-instrumentation-logging/setup.py
willarmiros/opentelemetry-python-contrib
0d34ef26b75f9a3bc275bf828b5a806d39ba1a40
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-11-20T06:31:17.000Z
2021-11-20T06:31:17.000Z
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
27.81
92
0.709457
0f06d2378f649661aaa521cdedf1d8ec9eaedbaa
25,672
py
Python
tests/urls_tests.py
fga-eps-mds/2021.2-SysArq-Archives
fb2565dd827f24921a78e832a847e62306ff6974
[ "MIT" ]
1
2022-02-15T04:11:47.000Z
2022-02-15T04:11:47.000Z
tests/urls_tests.py
fga-eps-mds/2021.2-SysArq-Archives
fb2565dd827f24921a78e832a847e62306ff6974
[ "MIT" ]
8
2022-03-15T18:48:39.000Z
2022-03-29T14:30:39.000Z
tests/urls_tests.py
fga-eps-mds/2021.2-SysArq-Archives
fb2565dd827f24921a78e832a847e62306ff6974
[ "MIT" ]
3
2022-03-17T17:32:02.000Z
2022-03-18T01:17:34.000Z
import pytest from rest_framework.test import APIClient from django.test import override_settings from django.conf import settings TESTS_MIDDLEWARE = [mc for mc in settings.MIDDLEWARE if mc != 'archives_app.middleware.IsTokenValidMiddleware'] @pytest.mark.django_db(transaction=False) class TestBo...
29.339429
105
0.61125
c06ae4f95baba104deb821fb1dc81f64e290af3c
247
py
Python
fastapi/tutorial_user_guide/testing/test_main.py
erictapia/devstacklab
2997a620c3f4d29c3a526d561ec0cfb4ba0cd6b4
[ "MIT" ]
null
null
null
fastapi/tutorial_user_guide/testing/test_main.py
erictapia/devstacklab
2997a620c3f4d29c3a526d561ec0cfb4ba0cd6b4
[ "MIT" ]
null
null
null
fastapi/tutorial_user_guide/testing/test_main.py
erictapia/devstacklab
2997a620c3f4d29c3a526d561ec0cfb4ba0cd6b4
[ "MIT" ]
null
null
null
from fastapi.testclient import TestClient from .testing_main import app client = TestClient(app) def test_read_main(): response = client.get("/") assert response.status_code == 200 assert response.json() == {"msg": "Hello World"}
19
52
0.704453
c21652805060ee804b719e5bd852d4d24e68da0e
618
py
Python
walbot.py
skonnov/walbot
5b9347bf04d65f099e18ff343b80527f6849daca
[ "MIT" ]
null
null
null
walbot.py
skonnov/walbot
5b9347bf04d65f099e18ff343b80527f6849daca
[ "MIT" ]
33
2021-01-22T06:05:26.000Z
2022-03-18T11:03:04.000Z
walbot.py
skonnov/walbot
5b9347bf04d65f099e18ff343b80527f6849daca
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ WalBot Check out `python walbot.py -h` for list of available options """ import importlib import sys def main(): """WalBot launcher entrypoint""" if not ((sys.version_info.major == 3 and sys.version_info.minor >= 6) and (sys.version_info.major == 3 and sys.version_info....
26.869565
84
0.650485
1e63947c5923a88910e7b0826d75b8b81caa0d50
994
py
Python
crawling/get_content.py
buttercrab/naver-kin-chatbot
e7f8b53ca8a4671134215ff8ead344fa9b66f269
[ "MIT" ]
15
2019-11-08T07:54:26.000Z
2021-03-14T02:39:16.000Z
crawling/get_content.py
jshyunbin/naver-kin-chatbot
e7f8b53ca8a4671134215ff8ead344fa9b66f269
[ "MIT" ]
1
2020-01-02T08:26:13.000Z
2020-01-02T08:26:13.000Z
crawling/get_content.py
jshyunbin/naver-kin-chatbot
e7f8b53ca8a4671134215ff8ead344fa9b66f269
[ "MIT" ]
2
2019-11-08T10:55:19.000Z
2020-02-16T06:33:19.000Z
import requests from bs4 import BeautifulSoup def _content_to_str(s): a = s.find_all('p') if len(a) == 0: return [str(s.text).strip()] else: return [str(i.text).strip() for i in a] def get_content(url): """ get content from kin.naver.com :param url: domain must be kin.naver.com :return: question and ans...
23.116279
115
0.709256
b57d4511a44d558b7b64c80575e25a7a1f26bdd7
2,867
py
Python
migrations/versions/0151_refactor_letter_rates.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
migrations/versions/0151_refactor_letter_rates.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
migrations/versions/0151_refactor_letter_rates.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
""" Revision ID: 0151_refactor_letter_rates Revises: 0150_another_letter_org Create Date: 2017-12-05 10:24:41.232128 """ import uuid from datetime import datetime import sqlalchemy as sa from alembic import op from sqlalchemy.dialects import postgresql revision = "0151_refactor_letter_rates" down_revision = "0150_a...
39.819444
130
0.654343
927663a08effbdb3a6503f90ccbf207003a98988
8,557
py
Python
kernelmethods/tests/test_numeric_kernels.py
vishalbelsare/kernelmethods
f49eae7057e6223fe1bae52ca4f308af807fe347
[ "Apache-2.0" ]
43
2019-08-07T21:23:31.000Z
2022-01-21T18:12:13.000Z
kernelmethods/tests/test_numeric_kernels.py
eecheonwu/kernelmethods
a52c96faf2bc24d0daae6eefa5314db87d203136
[ "Apache-2.0" ]
6
2020-05-28T16:08:13.000Z
2020-07-15T20:36:36.000Z
kernelmethods/tests/test_numeric_kernels.py
eecheonwu/kernelmethods
a52c96faf2bc24d0daae6eefa5314db87d203136
[ "Apache-2.0" ]
10
2019-08-28T23:28:27.000Z
2021-09-05T06:53:20.000Z
from numbers import Number import numpy as np from hypothesis import (HealthCheck, given, settings as hyp_settings, strategies) from pytest import raises from kernelmethods.base import KernelMatrix from kernelmethods.numeric_kernels import (Chi2Kernel, DEFINED_KERNEL_FUNCS, ...
37.696035
90
0.698142
b66d92f85551b595953727af4b904458253399f7
2,655
py
Python
api/environments/identities/traits/serializers.py
ekampf/flagsmith
35d1944de9763f02de5d5d1793d5b29b7fe28993
[ "BSD-3-Clause" ]
null
null
null
api/environments/identities/traits/serializers.py
ekampf/flagsmith
35d1944de9763f02de5d5d1793d5b29b7fe28993
[ "BSD-3-Clause" ]
null
null
null
api/environments/identities/traits/serializers.py
ekampf/flagsmith
35d1944de9763f02de5d5d1793d5b29b7fe28993
[ "BSD-3-Clause" ]
null
null
null
from core.constants import INTEGER from rest_framework import exceptions, serializers from environments.identities.models import Identity from environments.identities.serializers import IdentitySerializer from environments.identities.traits.fields import TraitValueField from environments.identities.traits.models impor...
31.987952
87
0.700942
acaf2ce935c1b6b081563af7c15472454b7956a0
3,605
py
Python
src/meltano/cli/ui.py
Bjenhamin4Alfredolvchenki/meltano
b8d1d812f4051b6334986fc6b447d23c4d0d5043
[ "MIT" ]
8
2020-06-16T22:29:54.000Z
2021-06-04T11:57:57.000Z
src/meltano/cli/ui.py
aroder/meltano
b8d1d812f4051b6334986fc6b447d23c4d0d5043
[ "MIT" ]
13
2021-03-10T19:44:58.000Z
2022-02-27T05:31:12.000Z
src/meltano/cli/ui.py
aroder/meltano
b8d1d812f4051b6334986fc6b447d23c4d0d5043
[ "MIT" ]
2
2020-06-16T22:29:59.000Z
2020-11-04T05:47:50.000Z
import asyncio import click import logging import os import secrets import signal import subprocess from click_default_group import DefaultGroup from . import cli from .params import project from meltano.core.config_service import ConfigService from meltano.core.plugin.error import PluginMissingError from meltano.core...
26.123188
105
0.674064
7b806f038e25402cd4b43c832df3eab85d332fdf
746
py
Python
speechtotext.py
DeViL3998/Voice
1f87f3d917b487635af1c8e808bd2fcc1f975e4d
[ "MIT" ]
null
null
null
speechtotext.py
DeViL3998/Voice
1f87f3d917b487635af1c8e808bd2fcc1f975e4d
[ "MIT" ]
1
2019-12-11T16:18:47.000Z
2019-12-11T16:18:47.000Z
speechtotext.py
DeViL3998/Voice
1f87f3d917b487635af1c8e808bd2fcc1f975e4d
[ "MIT" ]
1
2019-11-28T19:01:06.000Z
2019-11-28T19:01:06.000Z
import speech_recognition as sr import re import math from comparison import compare from random_generator import generate_random_words, select_paragraph ### Recognizes the audio to generate list of words and call compare function to calculate success percentage ### r=sr.Recognizer() num=10 case=1 if(case==0): gi...
25.724138
114
0.752011
a3a409a40c9fc0b7b5003594bcff9b0bf4d4ddd6
3,707
py
Python
tests/models/validators/v3_1_0/jsd_b8104a50fc565ae9a756d6d0152e0e5b.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
36
2021-05-18T16:24:19.000Z
2022-03-05T13:44:41.000Z
tests/models/validators/v3_1_1/jsd_b8104a50fc565ae9a756d6d0152e0e5b.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
15
2021-06-08T19:03:37.000Z
2022-02-25T14:47:33.000Z
tests/models/validators/v3_1_0/jsd_b8104a50fc565ae9a756d6d0152e0e5b.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
6
2021-06-10T09:32:01.000Z
2022-01-12T08:34:39.000Z
# -*- coding: utf-8 -*- """Identity Services Engine getCSRById data model. Copyright (c) 2021 Cisco and/or its affiliates. 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, inc...
31.415254
83
0.499056
3c2a14f40336b0316fcc86eafba211adefe037ef
707
py
Python
tools/scripts/checkLicense.py
nicramage/Catch2
6f21a3609cea360846a0ca93be55877cca14c86d
[ "BSL-1.0" ]
9,861
2017-11-03T13:11:42.000Z
2022-03-31T23:50:03.000Z
tools/scripts/checkLicense.py
nicramage/Catch2
6f21a3609cea360846a0ca93be55877cca14c86d
[ "BSL-1.0" ]
1,409
2017-11-03T13:42:48.000Z
2022-03-31T14:46:42.000Z
tools/scripts/checkLicense.py
nicramage/Catch2
6f21a3609cea360846a0ca93be55877cca14c86d
[ "BSL-1.0" ]
2,442
2017-11-03T14:48:53.000Z
2022-03-31T23:07:09.000Z
#!/usr/bin/env python3 import os import sys def get_license(): with open("src/catch2/catch_all.hpp", "r") as f: license = f.readlines()[0:7] return license def check_license(license): failed = 0 base_dir = "src/catch2/" # The _ represents the list of directories in base_dir for roo...
21.424242
61
0.592645
247bbd0996a839623a003cc95640de6a5c0b54ce
234
py
Python
SlidingPuzzle/sample/python/SlidingPuzzle.py
ksomemo/Typical-MM
c15004eaa25e0abe316e15378a455b258b90aee7
[ "MIT" ]
5
2020-08-03T05:29:50.000Z
2021-12-15T22:53:20.000Z
SlidingPuzzle/sample/python/SlidingPuzzle.py
ksomemo/Typical-MM
c15004eaa25e0abe316e15378a455b258b90aee7
[ "MIT" ]
null
null
null
SlidingPuzzle/sample/python/SlidingPuzzle.py
ksomemo/Typical-MM
c15004eaa25e0abe316e15378a455b258b90aee7
[ "MIT" ]
null
null
null
import sys N,M = map(int, raw_input().split()) Board = [] for r in range(N): p = map(int, raw_input().split()) Board.append(p); print N * M for r in range(N): for c in range(M): print str(r) + " " + str(c) sys.stdout.flush()
14.625
35
0.594017
fb9ccbf5d6a84099c5f55782b860a6d30d1e5199
9,516
py
Python
tests/utils_tests/test_module_loading.py
MikeAmy/django
00cb9e13b4cf06ed2be27ee9e7fc18969ae69f7d
[ "PSF-2.0", "BSD-3-Clause" ]
3
2015-09-26T13:33:07.000Z
2020-03-08T07:34:38.000Z
tests/utils_tests/test_module_loading.py
MikeAmy/django
00cb9e13b4cf06ed2be27ee9e7fc18969ae69f7d
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/utils_tests/test_module_loading.py
MikeAmy/django
00cb9e13b4cf06ed2be27ee9e7fc18969ae69f7d
[ "PSF-2.0", "BSD-3-Clause" ]
15
2016-01-08T14:28:41.000Z
2019-04-19T08:33:31.000Z
import imp import os import sys import unittest from importlib import import_module from zipimport import zipimporter from django.test import SimpleTestCase, modify_settings from django.test.utils import extend_sys_path from django.utils import six from django.utils._os import upath from django.utils.module_loading im...
39.8159
112
0.690206
bb4bc72ce5af829333f1546d951404afd551291b
1,258
py
Python
python_modules/libraries/dagster-azure/dagster_azure/blob/utils.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
4,606
2018-06-21T17:45:20.000Z
2022-03-31T23:39:42.000Z
python_modules/libraries/dagster-azure/dagster_azure/blob/utils.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
6,221
2018-06-12T04:36:01.000Z
2022-03-31T21:43:05.000Z
python_modules/libraries/dagster-azure/dagster_azure/blob/utils.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
619
2018-08-22T22:43:09.000Z
2022-03-31T22:48:06.000Z
import warnings try: # Centralise Azure imports here so we only need to warn in one place from azure.core.exceptions import ResourceNotFoundError from azure.storage.blob import ( generate_blob_sas, BlobServiceClient, ) except ImportError: msg = ( "Could not import required A...
34
99
0.714626
b4dbe54826caea908d02ad7b22944695f27ff280
112,213
py
Python
quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py
hyunsun/quantum
40c4ec9495d05620a3cced4cc2bb98d7f6e52bbb
[ "Apache-2.0" ]
null
null
null
quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py
hyunsun/quantum
40c4ec9495d05620a3cced4cc2bb98d7f6e52bbb
[ "Apache-2.0" ]
null
null
null
quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py
hyunsun/quantum
40c4ec9495d05620a3cced4cc2bb98d7f6e52bbb
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Nicira, 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/lic...
49.65177
79
0.571886
c37193dbca0fcd27871b83de94648ce8c2523575
4,369
py
Python
example/rgbd/rgbd_simple_server.py
yuki-inaho/zense_grpc_pywrapper
43de6233117722b4a35abd165a0e83ff2238dd28
[ "Apache-2.0" ]
null
null
null
example/rgbd/rgbd_simple_server.py
yuki-inaho/zense_grpc_pywrapper
43de6233117722b4a35abd165a0e83ff2238dd28
[ "Apache-2.0" ]
null
null
null
example/rgbd/rgbd_simple_server.py
yuki-inaho/zense_grpc_pywrapper
43de6233117722b4a35abd165a0e83ff2238dd28
[ "Apache-2.0" ]
null
null
null
import numpy as np import time from datetime import datetime import os import sys WORKING_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.path.join(WORKING_DIR, '../..')) from zense_grpc_pywrapper import PicoZenseGRPCServerImpl sys.path.append(os.path.join(WORKING_DIR, '../../scripts')) import ze...
30.767606
109
0.648661
680f9b7be8c72dea79bbe9b89823af8e6f3772c7
320
py
Python
src/test_tower.py
cullinap/eldorado
6dfae6e87fc0cd8a01c27957b72ea68862fa61c9
[ "MIT" ]
null
null
null
src/test_tower.py
cullinap/eldorado
6dfae6e87fc0cd8a01c27957b72ea68862fa61c9
[ "MIT" ]
2
2021-07-24T16:12:07.000Z
2021-07-29T13:46:16.000Z
src/test_tower.py
cullinap/powr
6dfae6e87fc0cd8a01c27957b72ea68862fa61c9
[ "MIT" ]
null
null
null
import unittest from tower import TowerBuilder, Tangent, DeadEnd class Test_Tower_Build(unittest.TestCase): def test_tower_build(self): t = TowerBuilder.createTower(Tangent, 1, 'short') expected = 1 self.assertEqual(t.tower_number, expected) if __name__ == '__main__': unittest.main()
24.615385
57
0.709375
cc40c40cd8d61c16e47b8294878119c66edc9d09
13,382
py
Python
docs/_ext/djangodocs.py
zou-zhicheng/django-source
b3da003539987dcb2f1b43c32c09160063afde07
[ "PSF-2.0", "BSD-3-Clause" ]
4
2021-02-01T10:28:11.000Z
2021-02-01T10:34:40.000Z
docs/_ext/djangodocs.py
zou-zhicheng/django-source
b3da003539987dcb2f1b43c32c09160063afde07
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
docs/_ext/djangodocs.py
zou-zhicheng/django-source
b3da003539987dcb2f1b43c32c09160063afde07
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
""" Sphinx plugins for Django documentation. """ import json import os import re from docutils import nodes from docutils.parsers.rst import Directive from docutils.statemachine import ViewList from sphinx import addnodes from sphinx.builders.html import StandaloneHTMLBuilder from sphinx.directives.code import CodeBlo...
35.780749
102
0.606785
e1dea52ea99963cf28bfb5433b939ab67c896f83
15,371
py
Python
api/team_directory/users/views.py
Hipo/team-directory
dfc999a6b464e88c020cfebe3b569b960b5d7e3d
[ "MIT" ]
null
null
null
api/team_directory/users/views.py
Hipo/team-directory
dfc999a6b464e88c020cfebe3b569b960b5d7e3d
[ "MIT" ]
2
2020-06-05T23:54:21.000Z
2020-09-30T12:50:16.000Z
api/team_directory/users/views.py
Hipo/team-directory
dfc999a6b464e88c020cfebe3b569b960b5d7e3d
[ "MIT" ]
null
null
null
import json from datetime import timedelta from django.db import transaction from django.utils import timezone import requests from django.conf import settings from rest_framework.authtoken.models import Token from rest_framework.generics import RetrieveUpdateAPIView, GenericAPIView, RetrieveAPIView, ListAPIView, Upd...
44.944444
400
0.540173
8ae65a439aa2cef37955f5c156baf28cb273b5ce
3,485
py
Python
bindings/python/ensmallen/datasets/string/shewanellaspucdkl21.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-09-10T18:31:58.000Z
2022-03-24T04:28:04.000Z
bindings/python/ensmallen/datasets/string/shewanellaspucdkl21.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/shewanellaspucdkl21.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Shewanella sp. UCD-KL21. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protei...
33.190476
223
0.676327
402bf3354cf4006ee8d9ae6c504b0886e0c5b656
12,884
py
Python
fling/flingPretrained.py
fastboardAI/linguisticFeatureExtractor
6cb2b6e7133e0f42acde1ce6e0344ffcbb578a7a
[ "MIT" ]
4
2020-05-03T10:08:40.000Z
2020-10-16T17:31:45.000Z
fling/flingPretrained.py
fastboardAI/linguisticFeatureExtractor
6cb2b6e7133e0f42acde1ce6e0344ffcbb578a7a
[ "MIT" ]
2
2020-09-15T17:30:57.000Z
2020-09-27T04:25:03.000Z
fling/flingPretrained.py
fastboardAI/linguisticFeatureExtractor
6cb2b6e7133e0f42acde1ce6e0344ffcbb578a7a
[ "MIT" ]
2
2020-05-03T06:50:38.000Z
2020-09-27T08:58:30.000Z
import matplotlib as mpl from imp import reload from nltk.corpus import stopwords from collections import Counter import pandas as pd import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import nltk,re,pprint,scipy import sys,glob,os import operator, string, argparse, math, random, statistics imp...
40.2625
134
0.593061
ab693a36c18d08c064411f5396a6dfddbc8e163a
632
py
Python
manage.py
RacherinTest/pricetracker
4b9fc5c12301ae35fba7a78b18cf6bfd5b21a481
[ "Apache-2.0" ]
3
2020-10-03T14:37:40.000Z
2021-03-28T17:21:44.000Z
manage.py
bhuiyanmobasshir94/price_tracker
e65e4d46d2b4ebda406061a0c18a5e452ed208a6
[ "MIT" ]
8
2021-02-08T20:41:55.000Z
2021-09-22T18:36:38.000Z
manage.py
bhuiyanmobasshir94/price_tracker
e65e4d46d2b4ebda406061a0c18a5e452ed208a6
[ "MIT" ]
1
2020-10-03T14:37:41.000Z
2020-10-03T14:37:41.000Z
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pricetracker.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise I...
28.727273
76
0.685127
a7c055a14b1786d28f91ec5ada3b180cbc758261
3,809
py
Python
LPES-video/04.01-operacje_na_plikach/04.01.05-napisy.py
opcode-eu-org-website/LPES-wyklady-src
dd4d413f2bb5560790b6365fa7e68e8f1a8a65b0
[ "MIT" ]
null
null
null
LPES-video/04.01-operacje_na_plikach/04.01.05-napisy.py
opcode-eu-org-website/LPES-wyklady-src
dd4d413f2bb5560790b6365fa7e68e8f1a8a65b0
[ "MIT" ]
null
null
null
LPES-video/04.01-operacje_na_plikach/04.01.05-napisy.py
opcode-eu-org-website/LPES-wyklady-src
dd4d413f2bb5560790b6365fa7e68e8f1a8a65b0
[ "MIT" ]
1
2021-07-03T16:43:47.000Z
2021-07-03T16:43:47.000Z
# Copyright (c) 2020-2021 Matematyka dla Ciekawych Świata (http://ciekawi.icm.edu.pl/) # Copyright (c) 2020-2021 Robert Ryszard Paciorek <rrp@opcode.eu.org> # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Soft...
56.850746
198
0.719874
f9eb1cd79b0c722456ba5f3727a4f59854319593
49,392
py
Python
tests/testapp/test_cache.py
javiplx/django-mysql
4a0aa54b1cd37374a982e821e819f72016ef2600
[ "BSD-3-Clause" ]
null
null
null
tests/testapp/test_cache.py
javiplx/django-mysql
4a0aa54b1cd37374a982e821e819f72016ef2600
[ "BSD-3-Clause" ]
null
null
null
tests/testapp/test_cache.py
javiplx/django-mysql
4a0aa54b1cd37374a982e821e819f72016ef2600
[ "BSD-3-Clause" ]
null
null
null
import imp import os import pickle import time from decimal import Decimal from io import StringIO import django import pytest from django.core.cache import CacheKeyWarning, cache, caches from django.core.management import CommandError, call_command from django.db import IntegrityError, OperationalError, connection fr...
37.220799
108
0.601656
dae092b5d56fbbcb6bd55fd1d09cf6c7e45b4e92
49
py
Python
lime/for_biologists/architectures/__init__.py
choderalab/gin
9082431d8b664699a898c1e2fa490a18737d6e2d
[ "MIT" ]
24
2019-07-20T22:37:09.000Z
2021-07-07T07:13:56.000Z
lime/for_biologists/architectures/__init__.py
choderalab/gin
9082431d8b664699a898c1e2fa490a18737d6e2d
[ "MIT" ]
3
2021-05-10T05:29:59.000Z
2022-02-10T00:15:05.000Z
lime/for_biologists/architectures/__init__.py
kuano-ai/gimlet
9082431d8b664699a898c1e2fa490a18737d6e2d
[ "MIT" ]
8
2019-08-09T17:30:20.000Z
2021-12-01T13:27:46.000Z
import lime.for_biologists.architectures.vcharge
24.5
48
0.897959
0957a1e80db9fb879a9b2590351b4f4a1cebc965
1,065
py
Python
core/confdb/syntax/protocols/lldp/base.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
core/confdb/syntax/protocols/lldp/base.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
core/confdb/syntax/protocols/lldp/base.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# ---------------------------------------------------------------------- # ConfDB protocols lldp syntax # ---------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- #...
28.783784
75
0.283568