hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
795b0560d2ca479481ca8ceaeb887fd7b5cba2be
9,784
py
Python
pastamaker/web.py
sileht/pastamaker
1fda2bfc0dcaa15cb1070cb8bb7c1c74fda424fc
[ "Apache-2.0" ]
37
2017-07-10T10:29:52.000Z
2019-05-09T01:50:41.000Z
pastamaker/web.py
sileht/pastamaker
1fda2bfc0dcaa15cb1070cb8bb7c1c74fda424fc
[ "Apache-2.0" ]
13
2017-06-13T08:01:30.000Z
2018-01-30T12:00:59.000Z
pastamaker/web.py
sileht/pastamaker
1fda2bfc0dcaa15cb1070cb8bb7c1c74fda424fc
[ "Apache-2.0" ]
4
2017-07-05T15:04:09.000Z
2017-12-16T20:05:46.000Z
# -*- encoding: utf-8 -*- # # Copyright © 2017 Red Hat, Inc. # # 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...
30.767296
78
0.601799
795b05b7500529a4dc049f1fa543adb88702715d
6,130
py
Python
arelight/pipelines/serialize_nn.py
nicolay-r/REmarker
0de8e6fe54c8cb3332e07ba1ab0933a611dc9e77
[ "MIT" ]
null
null
null
arelight/pipelines/serialize_nn.py
nicolay-r/REmarker
0de8e6fe54c8cb3332e07ba1ab0933a611dc9e77
[ "MIT" ]
null
null
null
arelight/pipelines/serialize_nn.py
nicolay-r/REmarker
0de8e6fe54c8cb3332e07ba1ab0933a611dc9e77
[ "MIT" ]
null
null
null
from arekit.common.entities.str_fmt import StringEntitiesFormatter from arekit.common.experiment.api.base import BaseExperiment from arekit.common.experiment.name_provider import ExperimentNameProvider from arekit.common.folding.base import BaseDataFolding from arekit.common.labels.base import NoLabel from arekit.commo...
49.435484
109
0.723002
795b05ebd4906114af2159ef8103fecebcedba9f
3,142
py
Python
python_exercises/exercises/helpers.py
nchristie/slide-python-intro
dd52781b5d25435f97aa83cfff58c175fa7fdd1c
[ "MIT" ]
1
2018-06-07T12:40:37.000Z
2018-06-07T12:40:37.000Z
python_exercises/exercises/helpers.py
nchristie/slide-python-intro
dd52781b5d25435f97aa83cfff58c175fa7fdd1c
[ "MIT" ]
3
2018-06-07T14:39:19.000Z
2019-01-15T16:35:23.000Z
python_exercises/exercises/helpers.py
nchristie/slide-python-intro
dd52781b5d25435f97aa83cfff58c175fa7fdd1c
[ "MIT" ]
9
2018-05-30T17:12:27.000Z
2021-07-01T03:22:48.000Z
from collections import namedtuple from time import sleep def enumerate_task_list(task_list): for i, value in enumerate(task_list, 0): task_list[i].insert(0, i + 1) return task_list def question_tuple_maker(q_num, info, question, answer, prerequisites): Task = namedtuple("Task", ["q_num", "info"...
34.152174
111
0.709102
795b066f1c3b8bfa57425f75aa528883e55e392c
462
py
Python
venv/Lib/site-packages/tensorflow_core/python/keras/api/_v2/keras/applications/vgg16/__init__.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/tensorflow_core/python/keras/api/_v2/keras/applications/vgg16/__init__.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/tensorflow_core/python/keras/api/_v2/keras/applications/vgg16/__init__.py
TEDxVienna/continuum
85cefbc274fc59e2059c313bc0d3b9b93a34ba6d
[ "MIT" ]
null
null
null
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """VGG16 model for Keras. """ from __future__ import print_function as _print_function import sys as _sys from tensorflow.python.keras.applications import VGG16 from tensorflow.python.ke...
28.875
82
0.831169
795b06a28959d390cb85837defda93b7a6c8404c
360
py
Python
Taxonomy/setup.py
chachery/Perf_comp
f866b6504fb80a5d76a623037c7fdd1f8b76fb38
[ "Unlicense" ]
null
null
null
Taxonomy/setup.py
chachery/Perf_comp
f866b6504fb80a5d76a623037c7fdd1f8b76fb38
[ "Unlicense" ]
null
null
null
Taxonomy/setup.py
chachery/Perf_comp
f866b6504fb80a5d76a623037c7fdd1f8b76fb38
[ "Unlicense" ]
null
null
null
# coding=utf-8 from setuptools import setup setup( author="Chachery", author_email ="chachery2@gmail.com", description="This is a utility used for the identification script", url="https://github.com/Chachery/xxx", name="ppys", version="1.0", packages=['ppys'], install_requires=[ "openp...
20
71
0.616667
795b071cfd09483320009171d292d8fd7ba97ff7
52,893
py
Python
tests/test_tables.py
adityakuppa26/issue_163_documentation
b040d9b12fadda64c0feba9e229c80a0e6bd4599
[ "BSD-3-Clause" ]
1
2021-11-14T13:24:10.000Z
2021-11-14T13:24:10.000Z
tests/test_tables.py
adityakuppa26/issue_163_documentation
b040d9b12fadda64c0feba9e229c80a0e6bd4599
[ "BSD-3-Clause" ]
null
null
null
tests/test_tables.py
adityakuppa26/issue_163_documentation
b040d9b12fadda64c0feba9e229c80a0e6bd4599
[ "BSD-3-Clause" ]
2
2020-10-16T13:09:41.000Z
2021-09-04T09:35:06.000Z
import doctest import re import pytest import warnings import numpy as np from numpy.testing import assert_array_equal from datascience import * import pandas as pd ######### # Utils # ######### @pytest.fixture(scope='function') def table(): """Setup Scrabble table""" return Table().with_columns([ '...
28.269909
131
0.499669
795b0757d9d8199de0e667303f9b25b02fc37fcc
2,011
py
Python
config/urls.py
mattnickerson993/clinnotes2
bc44e516a5042e22de8c6618425966bd58919eff
[ "MIT" ]
null
null
null
config/urls.py
mattnickerson993/clinnotes2
bc44e516a5042e22de8c6618425966bd58919eff
[ "MIT" ]
null
null
null
config/urls.py
mattnickerson993/clinnotes2
bc44e516a5042e22de8c6618425966bd58919eff
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import include, path from django.views import defaults as default_views from django.views.generic import TemplateView urlpatterns = [ path("", TemplateView.as_view(template_name="pages/hom...
35.280702
89
0.646942
795b07ebd0fdc4029bf278f87b69bfa7a37c08f7
35,331
py
Python
neutron_lbaas/services/loadbalancer/data_models.py
2020human/neutron-lbaas
c5acb45ff6a8c2c41b84bdb2406450731491cad8
[ "Apache-2.0" ]
null
null
null
neutron_lbaas/services/loadbalancer/data_models.py
2020human/neutron-lbaas
c5acb45ff6a8c2c41b84bdb2406450731491cad8
[ "Apache-2.0" ]
null
null
null
neutron_lbaas/services/loadbalancer/data_models.py
2020human/neutron-lbaas
c5acb45ff6a8c2c41b84bdb2406450731491cad8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 OpenStack Foundation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
40.845087
79
0.619796
795b08ac4990cfda1693d8ff31542ef2798cdc72
3,870
py
Python
offpolicy/envs/mpe/scenarios/formation.py
jc-bao/off-policy
15c44f126e506b3f455c60dddd424d2290dddf8d
[ "MIT" ]
1
2021-09-20T13:53:52.000Z
2021-09-20T13:53:52.000Z
offpolicy/envs/mpe/scenarios/formation.py
jc-bao/off-policy
15c44f126e506b3f455c60dddd424d2290dddf8d
[ "MIT" ]
null
null
null
offpolicy/envs/mpe/scenarios/formation.py
jc-bao/off-policy
15c44f126e506b3f455c60dddd424d2290dddf8d
[ "MIT" ]
null
null
null
import numpy as np from offpolicy.envs.mpe.core import World, Agent, Landmark from offpolicy.envs.mpe.scenario import BaseScenario from scipy.spatial.distance import directed_hausdorff class Scenario(BaseScenario): def make_world(self, args): world = World() world.world_length = args.episode_lengt...
37.572816
104
0.58863
795b08c37d078af4dde611440d624e90c940ac7b
14,674
py
Python
arda_db/browser/models.py
rwspicer/ARDA
9bd98786feff4afbd45afdf3f3f1c2549f6356cf
[ "MIT" ]
5
2015-04-22T09:20:10.000Z
2021-03-12T01:52:07.000Z
arda_db/browser/models.py
rwspicer/ARDA
9bd98786feff4afbd45afdf3f3f1c2549f6356cf
[ "MIT" ]
null
null
null
arda_db/browser/models.py
rwspicer/ARDA
9bd98786feff4afbd45afdf3f3f1c2549f6356cf
[ "MIT" ]
null
null
null
""" models.py ross spicer updated 2015-04-29 contains the database models for the browser """ from django.db import models from django.core.mail import send_mail, mail_admins from django.core.exceptions import ValidationError # #~ from threading import Thread #didn't work on server #~ from time import sleep from ...
36.962217
80
0.57285
795b0a8f50c38207786a3854b46f329bfbb51c66
2,265
py
Python
cohesity_management_sdk/models/hyper_flex_protection_source.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
1
2021-01-07T20:36:22.000Z
2021-01-07T20:36:22.000Z
cohesity_management_sdk/models/hyper_flex_protection_source.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
cohesity_management_sdk/models/hyper_flex_protection_source.py
chandrashekar-cohesity/management-sdk-python
9e6ec99e8a288005804b808c4e9b19fd204e3a8b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. class HyperFlexProtectionSource(object): """Implementation of the 'HyperFlexProtectionSource' model. Specifies a Storage Snapshot Provider in a HyperFlex environment. Attributes: name (string): Specifies a unique name of the Protection Sour...
30.2
81
0.605298
795b0b6de9643f0ba4a27d45f91604ce13990cf9
2,075
py
Python
jail/types.py
igalic/py-jail
208e3be293eeed195d82e3c958df7f882e929a11
[ "BSD-2-Clause" ]
4
2019-04-08T12:56:55.000Z
2019-11-09T20:09:27.000Z
jail/types.py
igalic/py-jail
208e3be293eeed195d82e3c958df7f882e929a11
[ "BSD-2-Clause" ]
7
2019-04-08T16:52:52.000Z
2020-11-16T00:41:27.000Z
jail/types.py
igalic/py-jail
208e3be293eeed195d82e3c958df7f882e929a11
[ "BSD-2-Clause" ]
1
2019-04-21T12:42:28.000Z
2019-04-21T12:42:28.000Z
# Copyright (c) 2019, Stefan Grönke # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted providing that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and...
35.169492
73
0.732048
795b0c3c332b26e2ed48a8f05ddcb0cb2b8b602b
10,989
py
Python
appengine/isolate/proto/isolated_pb2.py
Swift1313/luci-py
0a4fdfc25f89833026be6a8b29c0a27b8f3c5fc4
[ "Apache-2.0" ]
null
null
null
appengine/isolate/proto/isolated_pb2.py
Swift1313/luci-py
0a4fdfc25f89833026be6a8b29c0a27b8f3c5fc4
[ "Apache-2.0" ]
null
null
null
appengine/isolate/proto/isolated_pb2.py
Swift1313/luci-py
0a4fdfc25f89833026be6a8b29c0a27b8f3c5fc4
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: isolated.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _...
38.557895
1,124
0.753845
795b0c6c70c044acbc836178dc28f9d84836a48a
4,575
py
Python
anilist/types/anime.py
nfitzen/python-anilist
8685098c8d53c3c80d1ffd78a1546d2c8eeaa1e0
[ "MIT" ]
9
2021-03-08T21:10:15.000Z
2022-03-28T03:24:46.000Z
anilist/types/anime.py
0x16c3/python-anilist
3b4da4b51493a0d68c01de92f861cbd8c3fabfe7
[ "MIT" ]
5
2021-08-28T08:29:53.000Z
2022-01-18T19:18:37.000Z
anilist/types/anime.py
0x16c3/python-anilist
3b4da4b51493a0d68c01de92f861cbd8c3fabfe7
[ "MIT" ]
4
2021-07-07T22:59:53.000Z
2022-01-05T17:41:47.000Z
#!/usr/bin/env python3 # Copyright (C) 2021 Amano Team <https://amanoteam.com/> # # SPDX-License-Identifier: MIT from .statistics import Ranking from .character import Character from .cover import Cover from .date import Date from .next_airing import NextAiring from .title import Title from .trailer import Trailer fro...
30.5
85
0.510601
795b0cb11bcff161b03950748f1e86c0daa59702
39,436
py
Python
Ecobee 2.indigoPlugin/Contents/Server Plugin/plugin.py
FlyingDiver/Indigo-Ecobee-2
2801dcb5585e0e591c7faf0b26ad2dd64accb848
[ "Unlicense" ]
null
null
null
Ecobee 2.indigoPlugin/Contents/Server Plugin/plugin.py
FlyingDiver/Indigo-Ecobee-2
2801dcb5585e0e591c7faf0b26ad2dd64accb848
[ "Unlicense" ]
26
2018-10-28T01:57:38.000Z
2021-08-07T14:40:01.000Z
Ecobee 2.indigoPlugin/Contents/Server Plugin/plugin.py
FlyingDiver/Indigo-Ecobee-2
2801dcb5585e0e591c7faf0b26ad2dd64accb848
[ "Unlicense" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- import json import logging import platform import threading import time from ecobee_account import EcobeeAccount from ecobee_devices import EcobeeDevice, EcobeeThermostat, RemoteSensor import temperature_scale REFRESH_TOKEN_PLUGIN_PREF='refreshToken-{}' TEMPERATURE_SCA...
46.395294
186
0.543564
795b0d8b7dca194358b40b6ed62716db885df6d0
289
py
Python
src/movement/rightHand.py
Quanta-Robotics/Robot-Blueberry
7b7e77e09ac5e9ec5afd947e0db1ecc8773e56da
[ "MIT" ]
25
2021-06-08T07:09:30.000Z
2021-12-30T06:28:35.000Z
src/movement/rightHand.py
ICT-CoU/Robot-Blueberry
d19fd1be037df9d67de64df57a87006d74cd6c43
[ "MIT" ]
2
2021-05-23T12:54:51.000Z
2021-06-07T17:47:56.000Z
src/movement/rightHand.py
ICT-CoU/Robot-Blueberry
d19fd1be037df9d67de64df57a87006d74cd6c43
[ "MIT" ]
14
2021-06-08T13:02:28.000Z
2021-12-30T20:07:18.000Z
from expression import * takePosition() changeDegree([3],[100]) changeDegree([1],[170]) changeDegree([7],[70]) changeDegree([5,9],[90,180]) time.sleep(2) #stop changeDegree([5,9],[170,60]) changeDegree([7],[170]) changeDegree([1],[50]) changeDegree([3],[0]) time.sleep(1) takePosition()
17
28
0.685121
795b0e6463003f117e5ba7b41bb1d6b644eb27f0
1,819
py
Python
cvrf2csaf/section_handlers/notes.py
sthagen/csaf-tools-CVRF-CSAF-Converter
bc458eb1a71cf12c5a7c45223b56ab233819bdbd
[ "Apache-2.0", "MIT" ]
9
2021-12-07T07:52:28.000Z
2022-03-23T10:26:25.000Z
cvrf2csaf/section_handlers/notes.py
sthagen/csaf-tools-CVRF-CSAF-Converter
bc458eb1a71cf12c5a7c45223b56ab233819bdbd
[ "Apache-2.0", "MIT" ]
71
2021-12-03T09:40:56.000Z
2022-03-29T21:47:38.000Z
cvrf2csaf/section_handlers/notes.py
sthagen/csaf-tools-CVRF-CSAF-Converter
bc458eb1a71cf12c5a7c45223b56ab233819bdbd
[ "Apache-2.0", "MIT" ]
3
2021-12-07T07:52:32.000Z
2022-02-17T09:55:00.000Z
""" Module containing Notes class """ import logging from ..common.common import SectionHandler # pylint: disable=too-few-public-methods class Notes(SectionHandler): """ Responsible for converting the Notes sections: - /cvrf:cvrfdoc/cvrf:DocumentNotes - /cvrf:cvrfdoc/vuln:Vulnerability[i+1]/vuln:Notes...
30.316667
96
0.573392
795b0f3cf30fb135d10538991736fa8c354b4ec9
639
py
Python
azk8sml/main.py
ritazh/azure-k8s-ml-cli
2c38dca9c5c7c5f6fc445cfe44b8628ac76ae420
[ "Apache-2.0" ]
null
null
null
azk8sml/main.py
ritazh/azure-k8s-ml-cli
2c38dca9c5c7c5f6fc445cfe44b8628ac76ae420
[ "Apache-2.0" ]
null
null
null
azk8sml/main.py
ritazh/azure-k8s-ml-cli
2c38dca9c5c7c5f6fc445cfe44b8628ac76ae420
[ "Apache-2.0" ]
null
null
null
import click from distutils.version import LooseVersion import pkg_resources import azk8sml from azk8sml.cli.execute import execute from azk8sml.cli.version import upgrade, version from azk8sml.log import configure_logger @click.group() @click.option('-v', '--verbose', count=True, help='Turn on debug logging') def cl...
26.625
99
0.765258
795b128218fb5375a5c359004b97aaeb0e4a29ae
24,114
py
Python
_unittests/ut_onnx_conv/test_onnx_conv_knn.py
sdpython/mlprodic
9367dacc91d35ec670c8a8a76708300a75bbc993
[ "MIT" ]
32
2018-03-04T23:33:30.000Z
2022-03-10T19:15:06.000Z
_unittests/ut_onnx_conv/test_onnx_conv_knn.py
sdpython/mlprodic
9367dacc91d35ec670c8a8a76708300a75bbc993
[ "MIT" ]
184
2017-11-30T14:10:35.000Z
2022-02-21T08:29:31.000Z
_unittests/ut_onnx_conv/test_onnx_conv_knn.py
sdpython/mlprodic
9367dacc91d35ec670c8a8a76708300a75bbc993
[ "MIT" ]
9
2019-07-24T13:18:00.000Z
2022-03-07T04:08:07.000Z
""" @brief test log(time=5s) """ import unittest from logging import getLogger import warnings import numpy from pandas import DataFrame from scipy.spatial.distance import cdist as scipy_cdist from pyquickhelper.pycode import ExtTestCase, ignore_warnings as igw from sklearn.calibration import CalibratedClassifierC...
43.370504
98
0.569545
795b12c7660be638ac7e8153e8ff854f4a66396e
667
py
Python
ms2ldaviz/fixfs.py
RP0001/ms2ldaviz
35ae516f5d3ec9d1a348e8308a4ea50f3ebcdfd7
[ "MIT" ]
null
null
null
ms2ldaviz/fixfs.py
RP0001/ms2ldaviz
35ae516f5d3ec9d1a348e8308a4ea50f3ebcdfd7
[ "MIT" ]
null
null
null
ms2ldaviz/fixfs.py
RP0001/ms2ldaviz
35ae516f5d3ec9d1a348e8308a4ea50f3ebcdfd7
[ "MIT" ]
null
null
null
import os import sys os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ms2ldaviz.settings") import django django.setup() import numpy as np import bisect import jsonpickle from basicviz.models import Experiment,Feature,FeatureInstance,Mass2Motif,Mass2MotifInstance,Alpha,Document,BVFeatureSet if __name__ == '__main__'...
23
120
0.704648
795b136937ff86517102d60b69da27c1c74d10cd
186
py
Python
tests/unittests/test_app/apps.py
philsupertramp/django-data-migration
b3a5958d51e122eed1b95baa50614197953e1df6
[ "MIT" ]
10
2021-06-25T15:37:17.000Z
2022-01-14T09:21:53.000Z
tests/unittests/test_app/apps.py
philsupertramp/django-data-migration
b3a5958d51e122eed1b95baa50614197953e1df6
[ "MIT" ]
10
2021-05-22T20:11:11.000Z
2022-03-11T14:14:47.000Z
tests/unittests/test_app/apps.py
philsupertramp/django-data-migration
b3a5958d51e122eed1b95baa50614197953e1df6
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TestAppConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'tests.unittests.test_app' label = 'test_app'
23.25
56
0.747312
795b14339650f02114f235889172ea3c1ab46be4
242
py
Python
Python/Tuples.py
chicio/Hackerrank
5d2a828492d2096fbc5d4f54c6c0bbb9612ed752
[ "MIT" ]
6
2017-04-11T15:31:40.000Z
2018-07-12T09:29:30.000Z
Python/Tuples.py
chicio/Hackerrank
5d2a828492d2096fbc5d4f54c6c0bbb9612ed752
[ "MIT" ]
null
null
null
Python/Tuples.py
chicio/Hackerrank
5d2a828492d2096fbc5d4f54c6c0bbb9612ed752
[ "MIT" ]
1
2018-07-10T11:45:08.000Z
2018-07-10T11:45:08.000Z
# # Tuples.py # HackerRank # # Created by Fabrizio Duroni on 16/10/17. # # https://www.hackerrank.com/challenges/python-tuples n = int(raw_input()) integer_list = map(int, raw_input().split()) tupla = tuple(integer_list) print(hash(tupla))
17.285714
53
0.714876
795b14516c291b08bb8a68ab33301c417b436428
7,292
py
Python
uiCustomMenu.py
yongfuyang/uiKLine-1
fa1b94b9af965b4ea227e819b95f7f4a6789b63b
[ "MIT" ]
1
2019-02-16T12:51:10.000Z
2019-02-16T12:51:10.000Z
uiCustomMenu.py
yongfuyang/uiKLine-1
fa1b94b9af965b4ea227e819b95f7f4a6789b63b
[ "MIT" ]
null
null
null
uiCustomMenu.py
yongfuyang/uiKLine-1
fa1b94b9af965b4ea227e819b95f7f4a6789b63b
[ "MIT" ]
null
null
null
# encoding: UTF-8 from vnpy.trader.uiQt import QtGui, QtWidgets, QtCore, BASIC_FONT from qtpy.QtCore import Qt,QRect from functools import partial from qtpy.QtWidgets import QApplication, QWidget,QPushButton,QMenu from qtpy.QtGui import QPainter, QPainterPath, QPen, QColor, QPixmap, QIcon, QBrush, QCursor from vnpy.t...
49.945205
104
0.611903
795b158fcbeef79a4b703584924bd398e10e1483
30,841
py
Python
catalyst/runners/runner.py
Dokholyan/catalyst
de8e681676d76741fdb722d4cd77274ba616915d
[ "Apache-2.0" ]
null
null
null
catalyst/runners/runner.py
Dokholyan/catalyst
de8e681676d76741fdb722d4cd77274ba616915d
[ "Apache-2.0" ]
null
null
null
catalyst/runners/runner.py
Dokholyan/catalyst
de8e681676d76741fdb722d4cd77274ba616915d
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, Generator, Iterable, List, Mapping, Union from collections import OrderedDict import os import torch from torch import nn, optim from torch.optim.lr_scheduler import ReduceLROnPlateau from torch.utils.data import DataLoader from catalyst.callbacks.batch_overfit import BatchOverfitCallbac...
37.888206
99
0.578418
795b16429dd26da49f0e49464ecdf939a5ec53bb
397
py
Python
WEB(BE)/api_server/api_server/wsgi.py
osamhack2021/web_FIA_projectFIA
a04ea2fc212b4fa490fb384f8f5244d672649d37
[ "BSD-3-Clause" ]
2
2021-09-20T02:38:41.000Z
2021-09-28T11:46:10.000Z
WEB(BE)/api_server/api_server/wsgi.py
MoonJeWoong/web_FIA_projectFIA
a04ea2fc212b4fa490fb384f8f5244d672649d37
[ "BSD-3-Clause" ]
3
2021-09-19T01:29:29.000Z
2021-09-21T02:56:41.000Z
WEB(BE)/api_server/api_server/wsgi.py
MoonJeWoong/web_FIA_projectFIA
a04ea2fc212b4fa490fb384f8f5244d672649d37
[ "BSD-3-Clause" ]
1
2021-12-04T10:41:11.000Z
2021-12-04T10:41:11.000Z
""" WSGI config for api_server 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.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
795b16db65d564483fb7d69a60526a7078d0fb06
3,541
py
Python
nssrc/com/citrix/netscaler/nitro/resource/config/transform/transformprofile_binding.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/transform/transformprofile_binding.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/transform/transformprofile_binding.py
mahabs/nitro
be74e1e177f5c205c16126bc9b023f2348788409
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2008-2015 Citrix Systems, Inc. # # 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 l...
30.791304
126
0.724089
795b188b14be8b2271f08d629c61333149cfe816
25,558
py
Python
Bio/SearchIO/FastaIO.py
Rizwanabro/biopython1
b2ac2226eeab01dbdeac4dfd2d24a897589eb56d
[ "BSD-3-Clause" ]
null
null
null
Bio/SearchIO/FastaIO.py
Rizwanabro/biopython1
b2ac2226eeab01dbdeac4dfd2d24a897589eb56d
[ "BSD-3-Clause" ]
null
null
null
Bio/SearchIO/FastaIO.py
Rizwanabro/biopython1
b2ac2226eeab01dbdeac4dfd2d24a897589eb56d
[ "BSD-3-Clause" ]
1
2020-11-06T20:20:12.000Z
2020-11-06T20:20:12.000Z
# Adapted from Bio.AlignIO.FastaIO copyright 2008-2011 by Peter Cock. # Copyright 2012 by Wibowo Arindrarto. # All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Bio.SearchIO sup...
44.065517
86
0.498161
795b18cbb12b4bc65c58929d9afd176211b379a5
266
py
Python
hm_classifier_prep.py
dyf/nnxt
caa28635ec6a804bcad545abdd667749cab52048
[ "MIT" ]
null
null
null
hm_classifier_prep.py
dyf/nnxt
caa28635ec6a804bcad545abdd667749cab52048
[ "MIT" ]
null
null
null
hm_classifier_prep.py
dyf/nnxt
caa28635ec6a804bcad545abdd667749cab52048
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np reads = pd.read_csv('classifier_all_reads.csv') reads = reads.pivot_table(index='sample_id', columns='human_gene_symbol', values='CPM Reads', aggfunc=np.mean, fill_value=0.0) reads.to_hdf('all_reads_matrix.h5', key='matrix')
33.25
126
0.770677
795b18ec8a58c1a853f0290871ea9849750edcaa
2,953
py
Python
bear2cmake.py
ilejn/bear2cmake
d0331a2efe78f0ff22d02023810053cbe98e853e
[ "Unlicense" ]
null
null
null
bear2cmake.py
ilejn/bear2cmake
d0331a2efe78f0ff22d02023810053cbe98e853e
[ "Unlicense" ]
null
null
null
bear2cmake.py
ilejn/bear2cmake
d0331a2efe78f0ff22d02023810053cbe98e853e
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 import yaml from optparse import OptionParser import os.path known_dirs = {} includes = [] opts = set() def process(options): yaml_fname = options.yaml_filename prefix = os.path.realpath(options.top_directory) with open(yaml_fname, 'r') as f: y = yaml.load(f, Loader=yaml.CLoad...
30.443299
116
0.603115
795b19c5eab311025a911044c858ac87764fb395
37,578
py
Python
simbdp3/domination.py
JRF-2018/simbd
7a453562331cf5b41187a8c69e18ec3378004dc1
[ "ClArtistic" ]
null
null
null
simbdp3/domination.py
JRF-2018/simbd
7a453562331cf5b41187a8c69e18ec3378004dc1
[ "ClArtistic" ]
10
2021-09-05T13:15:50.000Z
2022-02-10T06:48:46.000Z
simbdp3/domination.py
JRF-2018/simbd
7a453562331cf5b41187a8c69e18ec3378004dc1
[ "ClArtistic" ]
null
null
null
#!/usr/bin/python3 __version__ = '0.0.11' # Time-stamp: <2021-10-26T08:05:38Z> ## Language: Japanese/UTF-8 """Simulation Buddhism Prototype No.3 - Domination 支配関連 """ ## ## Author: ## ## JRF ( http://jrf.cocolog-nifty.com/statuses/ (in Japanese)) ## ## License: ## ## The author is a Japanese. ##...
36.272201
97
0.491218
795b1a91e688e31ea7f7431ce070735951df1bc3
13,874
py
Python
tests/loggers/test_all.py
arnaudgelas/pytorch-lightning
cc624358c8e396e966f9c51b3010f6a986047fc6
[ "Apache-2.0" ]
null
null
null
tests/loggers/test_all.py
arnaudgelas/pytorch-lightning
cc624358c8e396e966f9c51b3010f6a986047fc6
[ "Apache-2.0" ]
null
null
null
tests/loggers/test_all.py
arnaudgelas/pytorch-lightning
cc624358c8e396e966f9c51b3010f6a986047fc6
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning 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 agreed to i...
36.801061
114
0.710394
795b1ad04fefb756f00736b29d45f50fa9403372
5,914
py
Python
code/backend/staff_api/tests/test_serializers.py
dorinapall/noe
6d5682ab00a2cdc5cb419ecab57804c9f70d7b3a
[ "MIT" ]
1
2020-06-18T09:35:40.000Z
2020-06-18T09:35:40.000Z
code/backend/staff_api/tests/test_serializers.py
dorinapall/noe
6d5682ab00a2cdc5cb419ecab57804c9f70d7b3a
[ "MIT" ]
null
null
null
code/backend/staff_api/tests/test_serializers.py
dorinapall/noe
6d5682ab00a2cdc5cb419ecab57804c9f70d7b3a
[ "MIT" ]
null
null
null
import datetime as dt from unittest.mock import Mock import pytest from django.utils import timezone from rest_framework.exceptions import ValidationError from rest_framework.test import force_authenticate from appointments.models import Seat from payments.models import Payment from .. import serializers as s import ...
36.282209
85
0.682618
795b1ad40c5df92f4d060c187ab67908a61fbcd2
35
py
Python
graphn/datasets/__init__.py
yop0/GraphN
2aa56eea724c89f4c607ef432678bd4f1860592d
[ "MIT" ]
2
2018-12-17T22:13:15.000Z
2020-03-13T02:07:07.000Z
graphn/datasets/__init__.py
yop0/GraphN
2aa56eea724c89f4c607ef432678bd4f1860592d
[ "MIT" ]
1
2019-03-10T00:33:23.000Z
2019-03-10T07:14:07.000Z
graphn/datasets/__init__.py
yop0/GraphN
2aa56eea724c89f4c607ef432678bd4f1860592d
[ "MIT" ]
1
2019-01-28T10:41:02.000Z
2019-01-28T10:41:02.000Z
from . import cora from . import dd
17.5
18
0.742857
795b1dc32390651b8746d673af2715884a2d87f0
14,975
py
Python
tests/endpoints/test_operations_log.py
nvllsvm/imbi-api
1a5bd8894ac14c1026f33297994aa10782b0eea0
[ "BSD-3-Clause" ]
1
2021-06-23T18:34:47.000Z
2021-06-23T18:34:47.000Z
tests/endpoints/test_operations_log.py
nvllsvm/imbi-api
1a5bd8894ac14c1026f33297994aa10782b0eea0
[ "BSD-3-Clause" ]
null
null
null
tests/endpoints/test_operations_log.py
nvllsvm/imbi-api
1a5bd8894ac14c1026f33297994aa10782b0eea0
[ "BSD-3-Clause" ]
2
2022-02-11T22:06:18.000Z
2022-02-21T19:35:06.000Z
import json import uuid import jsonpatch from ietfparse import headers from imbi.endpoints import operations_log from tests import base class AsyncHTTPTestCase(base.TestCaseWithReset): ADMIN_ACCESS = True TRUNCATE_TABLES = [ 'v1.operations_log', 'v1.projects', 'v1.project_types', ...
40.472973
76
0.581436
795b1ebab524d853b703199284dd6fd6151d6931
1,176
py
Python
rclpy/services/minimal_service/setup.py
flynneva/examples
16bffa238dfa3ff305f14b1ec75ed41dce634ffb
[ "Apache-2.0" ]
null
null
null
rclpy/services/minimal_service/setup.py
flynneva/examples
16bffa238dfa3ff305f14b1ec75ed41dce634ffb
[ "Apache-2.0" ]
null
null
null
rclpy/services/minimal_service/setup.py
flynneva/examples
16bffa238dfa3ff305f14b1ec75ed41dce634ffb
[ "Apache-2.0" ]
null
null
null
from setuptools import setup package_name = 'examples_rclpy_minimal_service' setup( name=package_name, version='0.9.1', packages=[package_name], data_files=[ ('share/ament_index/resource_index/packages', ['resource/' + package_name]), ('share/' + package_name, ['package.xml...
30.947368
75
0.644558
795b1eef6e95bbd71910596e7893721f8450e320
961
py
Python
plugins/hydra_colorlog/setup.py
dylanturpin/hydra
6478511aee837491aab34a1e62c43c1c6ef730b9
[ "MIT" ]
2
2019-06-12T17:22:38.000Z
2020-06-10T07:58:37.000Z
plugins/hydra_colorlog/setup.py
dylanturpin/hydra
6478511aee837491aab34a1e62c43c1c6ef730b9
[ "MIT" ]
null
null
null
plugins/hydra_colorlog/setup.py
dylanturpin/hydra
6478511aee837491aab34a1e62c43c1c6ef730b9
[ "MIT" ]
2
2019-01-16T05:31:35.000Z
2020-04-10T22:00:01.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from setuptools import find_packages, setup with open("README.md", "r") as fh: LONG_DESC = fh.read() setup( name="hydra-colorlog", version="0.1.4", author="Omry Yadan", author_email="omry@fb.com", des...
36.961538
70
0.601457
795b1f096f5aa18037e59346d95e4b832947c2de
8,209
py
Python
spectrocrunch/sources/tests/test_polarization.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
3
2018-04-16T15:51:36.000Z
2019-12-16T11:21:05.000Z
spectrocrunch/sources/tests/test_polarization.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
spectrocrunch/sources/tests/test_polarization.py
woutdenolf/spectrocrunch
fde4b6e0f462f464ce7af6a942b355d3d8f39f77
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import cmath import numpy as np from scipy import integrate from .. import polarization from ...utils import instance from ...patch import jsonpickle class test_polarization(unittest.TestCase): def _equal_params(self, params1, params2): for k, v in params1.items()...
35.081197
83
0.575466
795b1f0da6717ddbc69d2f9133ee43271c35ce7b
90
py
Python
Python/CodingBat/hello_name.py
dvt32/cpp-journey
afd7db7a1ad106c41601fb09e963902187ae36e6
[ "MIT" ]
1
2018-05-24T11:30:05.000Z
2018-05-24T11:30:05.000Z
Python/CodingBat/hello_name.py
dvt32/cpp-journey
afd7db7a1ad106c41601fb09e963902187ae36e6
[ "MIT" ]
null
null
null
Python/CodingBat/hello_name.py
dvt32/cpp-journey
afd7db7a1ad106c41601fb09e963902187ae36e6
[ "MIT" ]
2
2017-08-11T06:53:30.000Z
2017-08-29T12:07:52.000Z
# http://codingbat.com/prob/p115413 def hello_name(name): return "Hello " + name + "!"
18
35
0.655556
795b1fcd8d823fcc21e9b0bfded9e4ad9a51fd46
3,694
py
Python
models/ps_model_3_inf2.py
pascal-pfeiffer/kaggle-birdclef2021-2nd-place
fe3862d15a619184d58d5180b90181228687556d
[ "MIT" ]
15
2021-06-12T16:00:17.000Z
2022-03-27T15:04:39.000Z
models/ps_model_3_inf2.py
pascal-pfeiffer/kaggle-birdclef2021-2nd-place
fe3862d15a619184d58d5180b90181228687556d
[ "MIT" ]
null
null
null
models/ps_model_3_inf2.py
pascal-pfeiffer/kaggle-birdclef2021-2nd-place
fe3862d15a619184d58d5180b90181228687556d
[ "MIT" ]
5
2021-06-20T18:49:01.000Z
2022-02-18T00:45:30.000Z
import timm from torch import nn import torch import torchaudio as ta from torch.cuda.amp import autocast from model_utils import GeM, Mixup class Net(nn.Module): def __init__(self, cfg): super(Net, self).__init__() self.cfg = cfg self.n_classes = cfg.n_classes self.mel_spec = t...
29.552
92
0.527071
795b20bec505bed51e666e98f0a26f159ae7abf4
4,544
py
Python
baselines/problems/hw_nas_bench.py
serizba/multi-obj-baselines
b5c97b8009ed32f0eb9a08454cf0d4c6620a2286
[ "Apache-2.0" ]
null
null
null
baselines/problems/hw_nas_bench.py
serizba/multi-obj-baselines
b5c97b8009ed32f0eb9a08454cf0d4c6620a2286
[ "Apache-2.0" ]
null
null
null
baselines/problems/hw_nas_bench.py
serizba/multi-obj-baselines
b5c97b8009ed32f0eb9a08454cf0d4c6620a2286
[ "Apache-2.0" ]
null
null
null
from baselines.problems.nas_bench_201 import NasBench201NPY from ax.core import search_space from baselines.problems.nas_bench_search_space import NASSearchSpace import torch import numpy as np import time #from nas_201_api import NASBench201API as API import sys from ax import Metric from ax.core.search_space impor...
29.699346
141
0.709067
795b22658068e373449e0796a61e302132a319e9
3,837
py
Python
run.py
xandis520/ContactDataScraper
42af39577d26332ac65e9a2e09f9dce9b9ae0315
[ "CC-BY-4.0" ]
null
null
null
run.py
xandis520/ContactDataScraper
42af39577d26332ac65e9a2e09f9dce9b9ae0315
[ "CC-BY-4.0" ]
2
2021-03-31T20:02:19.000Z
2021-12-13T20:47:27.000Z
run.py
xandis520/ContactDataScraper
42af39577d26332ac65e9a2e09f9dce9b9ae0315
[ "CC-BY-4.0" ]
1
2021-09-12T08:28:34.000Z
2021-09-12T08:28:34.000Z
import configparser from datetime import datetime from engine import * import os class Run: def __init__(self): config = configparser.ConfigParser() config.read('config.cfg') files = config['FILES'] self.config_settings = configparser.ConfigParser() self.config_settings.rea...
42.633333
113
0.459213
795b238b939f33b95ff439dc21a650453e12ef37
2,921
py
Python
insighioNode/lib/sensors/sensor/ds18x20.py
insighio/insighioNode
396b0858ffb265ac66075e8b9d90713ffae7ffb8
[ "MIT" ]
5
2021-06-11T09:03:12.000Z
2021-12-22T09:04:57.000Z
insighioNode/lib/sensors/sensor/ds18x20.py
insighio/insighioNode
396b0858ffb265ac66075e8b9d90713ffae7ffb8
[ "MIT" ]
1
2021-06-11T14:15:05.000Z
2021-06-11T14:15:33.000Z
insighioNode/lib/sensors/sensor/ds18x20.py
insighio/insighioNode
396b0858ffb265ac66075e8b9d90713ffae7ffb8
[ "MIT" ]
null
null
null
class DS18X20(object): def __init__(self, onewire): self.ow = onewire self.roms = [rom for rom in self.ow.scan() if rom[0] == 0x10 or rom[0] == 0x28] self.fp = True try: 1/1 except TypeError: self.fp = False # floatingpoint not supported def isb...
35.192771
112
0.526874
795b2487c0a1fc17b7d1565958ed3edd619b2cc3
1,623
py
Python
tutorials/1_tensorflow_new/301_simple_regression.py
wull566/tensorflow_demo
c2c45050867cb056b8193eb53466d26b80b0ec13
[ "MIT" ]
2
2019-03-24T12:58:17.000Z
2021-05-18T06:21:21.000Z
tutorials/1_tensorflow_new/301_simple_regression.py
wull566/tensorflow_demo
c2c45050867cb056b8193eb53466d26b80b0ec13
[ "MIT" ]
null
null
null
tutorials/1_tensorflow_new/301_simple_regression.py
wull566/tensorflow_demo
c2c45050867cb056b8193eb53466d26b80b0ec13
[ "MIT" ]
null
null
null
""" Know more, visit my Python tutorial page: https://morvanzhou.github.io/2_tensorflow_old/ My Youtube Channel: https://www.youtube.com/user/MorvanZhou Dependencies: tensorflow: 1.1.0 matplotlib numpy """ import tensorflow as tf import matplotlib.pyplot as plt import numpy as np tf.set_random_seed(1) np.random.seed(...
30.055556
88
0.632163
795b2552f20a20e615f0bb3937e4dfa1f7134142
5,909
py
Python
Python_Code/RBM.py
2021rahul/Restricted_Boltzmann_Machine
a37b4d83caf8b50793ff13c972a503c5cfb29a79
[ "MIT" ]
null
null
null
Python_Code/RBM.py
2021rahul/Restricted_Boltzmann_Machine
a37b4d83caf8b50793ff13c972a503c5cfb29a79
[ "MIT" ]
null
null
null
Python_Code/RBM.py
2021rahul/Restricted_Boltzmann_Machine
a37b4d83caf8b50793ff13c972a503c5cfb29a79
[ "MIT" ]
null
null
null
from __future__ import print_function import tensorflow as tf import numpy as np import sys from .util import tf_xavier_init class RBM: def __init__(self, n_visible, n_hidden, learning_rate=0.01, momentum=0.95, xavier_const=1.0, err_function='mse', use_tqdm=False, tqdm=None): if not 0.0 <= momentum <= 1...
34.964497
144
0.59384
795b270478a3c514c128d6b470ed7a0acdc228c0
14,234
py
Python
models/transformer.py
nypzxy/detection_transformer
5ac3c6249cebea6173ad52727cf1656af2e2e633
[ "Apache-2.0" ]
null
null
null
models/transformer.py
nypzxy/detection_transformer
5ac3c6249cebea6173ad52727cf1656af2e2e633
[ "Apache-2.0" ]
null
null
null
models/transformer.py
nypzxy/detection_transformer
5ac3c6249cebea6173ad52727cf1656af2e2e633
[ "Apache-2.0" ]
null
null
null
""" DETR Transformer class. Copy-paste from torch.nn.Transformer with modifications: * positional encodings are passed in MHattention * extra LN at the end of encoder is removed * decoder returns a stack of activations from all decoding layers """ import copy from typing import Optional, List import torch...
39.983146
143
0.610791
795b2740143a2c229d3a06caa82ff7e0d3f3bca9
17,536
py
Python
conans/test/functional/graph_lock/graph_lock_test.py
testworksau/conan
d78dd6cfd2ac3ad4afeef24c7cb3f3afbb5ec64a
[ "MIT" ]
null
null
null
conans/test/functional/graph_lock/graph_lock_test.py
testworksau/conan
d78dd6cfd2ac3ad4afeef24c7cb3f3afbb5ec64a
[ "MIT" ]
null
null
null
conans/test/functional/graph_lock/graph_lock_test.py
testworksau/conan
d78dd6cfd2ac3ad4afeef24c7cb3f3afbb5ec64a
[ "MIT" ]
null
null
null
import json import os import textwrap import unittest from conans.model.graph_lock import LOCKFILE, LOCKFILE_VERSION from conans.model.ref import ConanFileReference from conans.test.utils.tools import TestClient, TestServer, GenConanfile from conans.util.files import load class GraphLockErrorsTest(unittest.TestCase)...
45.785901
109
0.636804
795b2751c7acbdea90673dbdaa974ab631d484c0
2,412
py
Python
oneflow/compatible_single_client_python/nn/modules/less.py
xcnick/oneflow
7b786b27069dec35d2493256011e773988c91f56
[ "Apache-2.0" ]
null
null
null
oneflow/compatible_single_client_python/nn/modules/less.py
xcnick/oneflow
7b786b27069dec35d2493256011e773988c91f56
[ "Apache-2.0" ]
null
null
null
oneflow/compatible_single_client_python/nn/modules/less.py
xcnick/oneflow
7b786b27069dec35d2493256011e773988c91f56
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow 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 applicable law or agr...
31.324675
92
0.680763
795b2793a39e495ea168182baa8212e2fc9aa6d0
3,023
py
Python
chess_openings.py
ZipBomb/alexa-chess-openings
392f5dcd6c43f4e340328f1998ea0b9241f3f194
[ "MIT" ]
1
2019-03-19T15:55:25.000Z
2019-03-19T15:55:25.000Z
chess_openings.py
ZipBomb/alexa-chess-openings
392f5dcd6c43f4e340328f1998ea0b9241f3f194
[ "MIT" ]
null
null
null
chess_openings.py
ZipBomb/alexa-chess-openings
392f5dcd6c43f4e340328f1998ea0b9241f3f194
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json import random import re openings_by_name, openings_by_pgn = {}, {} keys_by_name, keys_by_pgn = [], [] # Give me a new opening def get_random_opening(openings_by_name, keys_by_name): key = random.choice(keys_by_name) return openings_by_name[key] # Tel...
31.821053
97
0.662256
795b2844e786fe643373baec052c1f0a0c935591
3,382
py
Python
assets/2020-08-31-simple_encoder_decoder/code/encoder_decoder_bahdanau_attention/Decoder.py
Yixuan-Lee/yixuan-lee.github.io
139dd141544302ca1802a6104f7db7aeb1ace825
[ "MIT" ]
null
null
null
assets/2020-08-31-simple_encoder_decoder/code/encoder_decoder_bahdanau_attention/Decoder.py
Yixuan-Lee/yixuan-lee.github.io
139dd141544302ca1802a6104f7db7aeb1ace825
[ "MIT" ]
null
null
null
assets/2020-08-31-simple_encoder_decoder/code/encoder_decoder_bahdanau_attention/Decoder.py
Yixuan-Lee/yixuan-lee.github.io
139dd141544302ca1802a6104f7db7aeb1ace825
[ "MIT" ]
null
null
null
import torch import torch.nn as nn class Decoder(nn.Module): """A conditional RNN decoder with attention.""" def __init__(self, emb_size, hidden_size, attention, num_layers=1, dropout=0.5, bridge=True): super(Decoder, self).__init__() self.hidden_size = hidden_size ...
35.978723
114
0.633649
795b28f367855a711912fea98ad191b9a4620373
2,475
py
Python
tests/test_nn.py
probprog/pyprob
0713ff6d25e5db475a5b97d8d5e87bf70e977599
[ "BSD-2-Clause" ]
268
2017-10-16T13:09:12.000Z
2021-12-01T19:03:12.000Z
tests/test_nn.py
aleatory-science/pyprob
0713ff6d25e5db475a5b97d8d5e87bf70e977599
[ "BSD-2-Clause" ]
11
2017-12-05T21:50:30.000Z
2019-02-25T19:52:39.000Z
tests/test_nn.py
aleatory-science/pyprob
0713ff6d25e5db475a5b97d8d5e87bf70e977599
[ "BSD-2-Clause" ]
33
2017-10-21T16:32:00.000Z
2021-11-24T13:42:53.000Z
import unittest import torch import pyprob from pyprob import util from pyprob.nn import EmbeddingFeedForward, EmbeddingCNN2D5C, EmbeddingCNN3D5C class NNTestCase(unittest.TestCase): def test_nn_EmbeddingFeedForward(self): batch_size = 32 input_shape = [100, 100] output_shape = [128] ...
39.285714
141
0.721212
795b2932c85f2d30da45c5fa8fa080ae4e6d5852
19,874
py
Python
sympy/core/mul.py
gnulinooks/sympy
46f63841f96cd025289b91ba9db3e261138d720a
[ "BSD-3-Clause" ]
1
2016-05-09T10:08:18.000Z
2016-05-09T10:08:18.000Z
sympy/core/mul.py
gnulinooks/sympy
46f63841f96cd025289b91ba9db3e261138d720a
[ "BSD-3-Clause" ]
null
null
null
sympy/core/mul.py
gnulinooks/sympy
46f63841f96cd025289b91ba9db3e261138d720a
[ "BSD-3-Clause" ]
null
null
null
from basic import Basic, S, sympify from operations import AssocOp from cache import cacheit from logic import fuzzy_not from symbol import Symbol, Wild # from function import FunctionClass, WildFunction /cyclic/ # from numbers import Number, Integer, Real /cyclic/ # from add import Add /cyclic/ # from power impor...
29.574405
108
0.462614
795b2999237ef1fd1eb101d3c6c561031067d9e4
10,066
py
Python
database.py
AntonioDelleCanne/f101_auto
0442803edee86ac97d228f7b476db29172e63f82
[ "Apache-2.0" ]
null
null
null
database.py
AntonioDelleCanne/f101_auto
0442803edee86ac97d228f7b476db29172e63f82
[ "Apache-2.0" ]
null
null
null
database.py
AntonioDelleCanne/f101_auto
0442803edee86ac97d228f7b476db29172e63f82
[ "Apache-2.0" ]
null
null
null
import pandas as pd import os import sys from docx import Document from pathlib import Path from nbdev.showdoc import doc import ipywidgets as widgets import numpy as np from IPython.display import display from ipywidgets import HTML from functools import partial import openpyxl import json import sched, time import th...
34.006757
111
0.589609
795b2a94e627253f7e6d327e48c6d7dcc6ccc602
8,729
py
Python
test_div_video.py
forkbabu/automatic-video-colorization
e301d95fe84c8736abd4c7e47bd6169b1a6122ab
[ "MIT" ]
null
null
null
test_div_video.py
forkbabu/automatic-video-colorization
e301d95fe84c8736abd4c7e47bd6169b1a6122ab
[ "MIT" ]
null
null
null
test_div_video.py
forkbabu/automatic-video-colorization
e301d95fe84c8736abd4c7e47bd6169b1a6122ab
[ "MIT" ]
null
null
null
#tensorflow 1.2.0 is needed from __future__ import absolute_import from __future__ import division from __future__ import print_function import os,time,scipy.io import tensorflow as tf import tensorflow.contrib.slim as slim import numpy as np import utils as utils import imageio import subprocess import argparse from ...
59.787671
180
0.705694
795b2c9772e85b6dee67425fde9c551e37dad089
4,131
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/_network_management_client_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/_network_management_client_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/_network_management_client_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "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 may ...
48.034884
175
0.679981
795b2cbd328a174b0cb53f35d34848c797ef289a
43,625
py
Python
test/dialect/mysql/test_reflection.py
hrishikeshrt/sqlalchemy
33bb33d04e318314ad53535f88419831162c6a05
[ "MIT" ]
null
null
null
test/dialect/mysql/test_reflection.py
hrishikeshrt/sqlalchemy
33bb33d04e318314ad53535f88419831162c6a05
[ "MIT" ]
null
null
null
test/dialect/mysql/test_reflection.py
hrishikeshrt/sqlalchemy
33bb33d04e318314ad53535f88419831162c6a05
[ "MIT" ]
null
null
null
# coding: utf-8 import re from sqlalchemy import BigInteger from sqlalchemy import Column from sqlalchemy import DateTime from sqlalchemy import DDL from sqlalchemy import DefaultClause from sqlalchemy import event from sqlalchemy import exc from sqlalchemy import ForeignKey from sqlalchemy import Index from sqlalche...
35.323887
79
0.501639
795b2d4b6ee2e53413ba3f0410e3b004884dfb0e
2,065
py
Python
src/debugpy/_vendored/pydevd/build_tools/build_binaries_osx.py
r3m0t/debugpy
090e3c3ef5758e5b316514c9d6f44f9b9b488cf1
[ "MIT" ]
695
2020-01-30T14:34:51.000Z
2022-03-31T09:31:57.000Z
src/debugpy/_vendored/pydevd/build_tools/build_binaries_osx.py
r3m0t/debugpy
090e3c3ef5758e5b316514c9d6f44f9b9b488cf1
[ "MIT" ]
1,095
2018-03-01T00:50:11.000Z
2019-05-06T17:44:15.000Z
src/debugpy/_vendored/pydevd/build_tools/build_binaries_osx.py
r3m0t/debugpy
090e3c3ef5758e5b316514c9d6f44f9b9b488cf1
[ "MIT" ]
66
2020-01-30T13:10:38.000Z
2022-03-29T07:11:17.000Z
from __future__ import unicode_literals import os import subprocess import sys miniconda64_envs = os.getenv('MINICONDA64_ENVS') python_installations = [ r'%s/py26_64/bin/python' % miniconda64_envs, r'%s/py27_64/bin/python' % miniconda64_envs, r'%s/py34_64/bin/python' % miniconda64_envs, r'%s/py35_64/...
32.777778
155
0.682809
795b2e107bab2c3e259eb802f1be884b98b72ddc
6,713
py
Python
qiskit/optimization/converters/quadratic_program_to_qubo.py
tsura-crisaldo/qiskit-aqua
2b4a70bb24a9170c3735124536dce1d7ffe4ed67
[ "Apache-2.0" ]
1
2020-08-01T21:07:54.000Z
2020-08-01T21:07:54.000Z
qiskit/optimization/converters/quadratic_program_to_qubo.py
tsura-crisaldo/qiskit-aqua
2b4a70bb24a9170c3735124536dce1d7ffe4ed67
[ "Apache-2.0" ]
null
null
null
qiskit/optimization/converters/quadratic_program_to_qubo.py
tsura-crisaldo/qiskit-aqua
2b4a70bb24a9170c3735124536dce1d7ffe4ed67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
39.488235
100
0.669149
795b3041dd59def46e8eab802773a19e64c77169
991
py
Python
stubs/m5stack_flowui-1_4_0-beta/flowlib/simple.py
RonaldHiemstra/micropython-stubs
d97f879b01f6687baaebef1c7e26a80909c3cff3
[ "MIT" ]
38
2020-10-18T21:59:44.000Z
2022-03-17T03:03:28.000Z
stubs/m5stack_flowui-1_4_0-beta/flowlib/simple.py
RonaldHiemstra/micropython-stubs
d97f879b01f6687baaebef1c7e26a80909c3cff3
[ "MIT" ]
176
2020-10-18T14:31:03.000Z
2022-03-30T23:22:39.000Z
stubs/m5stack_flowui-1_4_0-beta/flowlib/simple.py
RonaldHiemstra/micropython-stubs
d97f879b01f6687baaebef1c7e26a80909c3cff3
[ "MIT" ]
6
2019-10-08T05:31:21.000Z
2021-04-22T10:21:01.000Z
""" Module: 'flowlib.simple' on M5 FlowUI v1.4.0-beta """ # MCU: (sysname='esp32', nodename='esp32', release='1.11.0', version='v1.11-284-g5d8e1c867 on 2019-08-30', machine='ESP32 module with ESP32') # Stubber: 1.3.1 class MQTTClient: '' def _clean_sock_buffer(): pass def _recv_len(): pass...
13.763889
141
0.53885
795b328b8d83e1a71fdb56d0e8f48438c43136f7
8,530
py
Python
pim_extract_bw2.py
RenolY2/battalion-tools
d7ea359c270a687559fb8183afded409b4dd33a0
[ "MIT" ]
null
null
null
pim_extract_bw2.py
RenolY2/battalion-tools
d7ea359c270a687559fb8183afded409b4dd33a0
[ "MIT" ]
null
null
null
pim_extract_bw2.py
RenolY2/battalion-tools
d7ea359c270a687559fb8183afded409b4dd33a0
[ "MIT" ]
null
null
null
__author__ = 'User' import struct from struct import unpack def decode_rgb565(color_val): b = (color_val & 0b11111) * (256//32) g = ((color_val >> 5) & 0b111111) * (256//64) r = ((color_val >> 11) & 0b11111) * (256//32) return r, g, b, 255 def addrgba(col1, col2): return col1[0]+col2[0], col1[1]...
34.674797
116
0.419343
795b32bf3a078ce3c75285716ddd8fb835986100
5,652
py
Python
twitter_titaness/collect_tweets.py
Madjura/klang-thesis
33c1cfe707faede34dad8719c4c018c8354a8d9e
[ "MIT" ]
null
null
null
twitter_titaness/collect_tweets.py
Madjura/klang-thesis
33c1cfe707faede34dad8719c4c018c8354a8d9e
[ "MIT" ]
null
null
null
twitter_titaness/collect_tweets.py
Madjura/klang-thesis
33c1cfe707faede34dad8719c4c018c8354a8d9e
[ "MIT" ]
null
null
null
import datetime import json from collections import defaultdict import twitter from django.db import IntegrityError, transaction from django.utils.timezone import make_aware from titaness import setup setup() from trendapp.models import Tweet from dataapp.models import TweetEx, UserEx from twitter_titaness.secret im...
39.25
112
0.556263
795b336969af95aa8dcf3541e03efb54cf45f945
9,087
py
Python
tests/testflows/rbac/tests/privileges/grant_option.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
1
2022-02-27T15:21:20.000Z
2022-02-27T15:21:20.000Z
tests/testflows/rbac/tests/privileges/grant_option.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
16
2022-02-14T15:53:29.000Z
2022-03-25T18:39:16.000Z
tests/testflows/rbac/tests/privileges/grant_option.py
chalice19/ClickHouse
2f38e7bc5c2113935ab86260439bb543a1737291
[ "Apache-2.0" ]
null
null
null
from testflows.core import * from testflows.asserts import error from rbac.requirements import * from rbac.helper.common import * import rbac.helper.errors as errors @TestSuite def grant_option(self, table_type, privilege, node=None): """Check that user is able to execute GRANT and REVOKE privilege statements if...
36.493976
137
0.537251
795b339c039b6c5705c3d0c9b46c4b06b1318c56
675
py
Python
server/config.py
ma-he-sh/MovieMetaPredict
800ac82542a9cdf027f827fad135b052d01e83ba
[ "MIT" ]
null
null
null
server/config.py
ma-he-sh/MovieMetaPredict
800ac82542a9cdf027f827fad135b052d01e83ba
[ "MIT" ]
null
null
null
server/config.py
ma-he-sh/MovieMetaPredict
800ac82542a9cdf027f827fad135b052d01e83ba
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv load_dotenv() APP_CONFIG = { 'APP_NAME' : os.getenv('APP_NAME'), 'APP_VERSION': os.getenv('APP_VERSION'), 'APP_MODE' : os.getenv('APP_MODE'), 'DB' : { 'DB_HOST' : os.getenv('DB_HOST'), 'DB_USER' : os.getenv('DB_USER'), 'DB_NAME' : os.gete...
29.347826
47
0.567407
795b350fab4bb8b9d6d448fdbe41b09d9aca9fab
7,538
py
Python
4_Timeseries_Analysis/Time_Series_Analysis.py
sudevansujit/10_Machine_Learning
475d4430e088e942838e2d684725417ad95cc3be
[ "MIT" ]
null
null
null
4_Timeseries_Analysis/Time_Series_Analysis.py
sudevansujit/10_Machine_Learning
475d4430e088e942838e2d684725417ad95cc3be
[ "MIT" ]
null
null
null
4_Timeseries_Analysis/Time_Series_Analysis.py
sudevansujit/10_Machine_Learning
475d4430e088e942838e2d684725417ad95cc3be
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Aug 18 07:47:32 2020 @author: Sujit Time Series Analysis """ import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt %matplotlib inline plt.style.use('fivethirtyeight') df = pd.read_csv('international-airline-passenger...
27.611722
117
0.693818
795b3652d0cce11cb0e01c805c0180b77ec7e546
41
py
Python
erp2thingscloud/tasks/__init__.py
viccom/frappe_erp2thingscloud
947c993d536d6596d038bb01e1fea605ff1350a5
[ "MIT" ]
42
2018-12-04T01:37:27.000Z
2021-11-11T10:13:01.000Z
erp2thingscloud/tasks/__init__.py
viccom/frappe_erp2thingscloud
947c993d536d6596d038bb01e1fea605ff1350a5
[ "MIT" ]
3
2019-05-17T08:04:17.000Z
2019-10-05T02:06:34.000Z
erp2thingscloud/tasks/__init__.py
viccom/frappe_erp2thingscloud
947c993d536d6596d038bb01e1fea605ff1350a5
[ "MIT" ]
12
2018-12-09T13:30:47.000Z
2021-11-25T05:50:24.000Z
#!/usr/bin/python # -*- coding: UTF-8 -*-
20.5
23
0.536585
795b36689b51c415efc802765d1b0b55cbed2f39
1,027
py
Python
src/test/test_color.py
4dnucleome/cog-abm
6f6450141a996b067d3a396d47f4386215a4042c
[ "BSD-3-Clause" ]
1
2015-09-27T18:39:11.000Z
2015-09-27T18:39:11.000Z
src/test/test_color.py
4dnucleome/cog-abm
6f6450141a996b067d3a396d47f4386215a4042c
[ "BSD-3-Clause" ]
null
null
null
src/test/test_color.py
4dnucleome/cog-abm
6f6450141a996b067d3a396d47f4386215a4042c
[ "BSD-3-Clause" ]
null
null
null
import sys sys.path.append('../') import unittest import random from cog_abm.extras.color import Color import math class TestColor(unittest.TestCase): def test_init_color(self): """ Test of giving random content to the color instance. """ random.seed() for _ in xrange(20)...
23.340909
69
0.531646
795b36743ce7d1e8d59d164977cb7028ca720689
13,032
py
Python
FlowNet2_src/models/flownet2.py
ThinkSono/pytorch_flownet2
d524a8e957517c8a59e796330481b0204c265622
[ "Apache-2.0" ]
1
2020-02-25T15:10:33.000Z
2020-02-25T15:10:33.000Z
FlowNet2_src/models/flownet2.py
ThinkSono/pytorch_flownet2
d524a8e957517c8a59e796330481b0204c265622
[ "Apache-2.0" ]
null
null
null
FlowNet2_src/models/flownet2.py
ThinkSono/pytorch_flownet2
d524a8e957517c8a59e796330481b0204c265622
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.init as nn_init from .components import FlowNetC, FlowNetS, FlowNetSD, FlowNetFusion # (Yuliang) Change directory structure from .components import tofp16, tofp32, save_grad from .components import ChannelNorm, Resample2d class FlowNet2(nn.Module): def __init__...
36.300836
95
0.588244
795b3686a9299487a102fa279e8858ad74b8b259
219
py
Python
udeer/lease_management/doctype/lease_installment/lease_installment.py
mhbu50/udeer
abb453c2d7c073c8b6e06756332ff44a792c7b43
[ "MIT" ]
1
2016-11-18T08:49:51.000Z
2016-11-18T08:49:51.000Z
udeer/lease_management/doctype/lease_installment/lease_installment.py
mhbu50/udeer
abb453c2d7c073c8b6e06756332ff44a792c7b43
[ "MIT" ]
1
2021-12-06T11:35:12.000Z
2021-12-06T11:35:12.000Z
udeer/lease_management/doctype/lease_installment/lease_installment.py
mhbu50/udeer
abb453c2d7c073c8b6e06756332ff44a792c7b43
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, moosa and contributors # For license information, please see license.txt import frappe from frappe.model.document import Document class LeaseInstallment(Document): pass
19.909091
49
0.757991
795b368ada56eaebb9e86bdd710346acc1586a11
1,931
py
Python
tests/test_http_client.py
emanuele-cesari-cko/checkout-sdk-python
e1e0485881cfeb0e994c9852fa04ca36aec45bc3
[ "MIT" ]
13
2018-08-29T09:09:11.000Z
2021-11-26T08:30:58.000Z
tests/test_http_client.py
emanuele-cesari-cko/checkout-sdk-python
e1e0485881cfeb0e994c9852fa04ca36aec45bc3
[ "MIT" ]
17
2018-08-30T07:39:15.000Z
2022-03-31T16:09:38.000Z
tests/test_http_client.py
emanuele-cesari-cko/checkout-sdk-python
e1e0485881cfeb0e994c9852fa04ca36aec45bc3
[ "MIT" ]
13
2018-09-11T13:00:55.000Z
2021-05-19T15:19:30.000Z
import json import checkout_sdk as sdk from checkout_sdk import Config, HTTPClient, HTTPMethod, errors, constants from tests.base import CheckoutSdkTestCase from unittest.mock import MagicMock, Mock, patch from urllib.parse import urljoin from requests import Session class HTTPClientTests(CheckoutSdkTestCase): ...
34.482143
111
0.688762
795b36e7454d8c05f90eea5da23dd01c74c3dab2
3,283
py
Python
NOV2019/MergeOverlappingIntervals.py
dexterchan/DailyChallenge
1f38dc3b22983835836a84d6281777d8e20fce7a
[ "Apache-2.0" ]
null
null
null
NOV2019/MergeOverlappingIntervals.py
dexterchan/DailyChallenge
1f38dc3b22983835836a84d6281777d8e20fce7a
[ "Apache-2.0" ]
null
null
null
NOV2019/MergeOverlappingIntervals.py
dexterchan/DailyChallenge
1f38dc3b22983835836a84d6281777d8e20fce7a
[ "Apache-2.0" ]
null
null
null
#Skill: bit manipulation, hashmap #You are given an array of intervals - that is, an array of tuples (start, end). The array may not be sorted, and could contain overlapping intervals. Return another array where the overlapping intervals are merged. #For example: #[(1, 3), (5, 8), (4, 10), (20, 25)] #This input shoul...
29.576577
215
0.508681
795b36ffd5c926be91a8ddc5aee94737e10c0524
2,218
py
Python
Day_10_classes_and_objects/day10_RL_task1.py
lenovreg/Python_TietoEvry_Feb2022
1e37f524c1b78bb9752500261a953b812fc697db
[ "MIT" ]
null
null
null
Day_10_classes_and_objects/day10_RL_task1.py
lenovreg/Python_TietoEvry_Feb2022
1e37f524c1b78bb9752500261a953b812fc697db
[ "MIT" ]
null
null
null
Day_10_classes_and_objects/day10_RL_task1.py
lenovreg/Python_TietoEvry_Feb2022
1e37f524c1b78bb9752500261a953b812fc697db
[ "MIT" ]
null
null
null
class Song: song_lyrics=() def __init__(self, title="",author="",lyrics=()): self.__title=title self.__author=author self.__lyrics=lyrics #self.lines=lines print(f"New Song made {self.__title} by artist/group {self.__author}") def set_title(self, new_title): ...
28.805195
94
0.586114
795b373a005d6d1c9c1ca334a548b4ebc265455b
2,187
py
Python
xlsxwriter/test/app/test_app01.py
Rippling/XlsxWriter-1
be8d1cb8f8b156cf87bbe5d591f1f5475804be44
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/app/test_app01.py
Rippling/XlsxWriter-1
be8d1cb8f8b156cf87bbe5d591f1f5475804be44
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/app/test_app01.py
Rippling/XlsxWriter-1
be8d1cb8f8b156cf87bbe5d591f1f5475804be44
[ "BSD-2-Clause" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # import unittest from io import StringIO from ..helperfunctions import _xml_to_list from ...app import App ...
33.136364
190
0.503429
795b37788f0c626d95bc5207b480c39af6c33bc6
16,710
py
Python
pyatv/mrp/protobuf/CommandOptions_pb2.py
vegerot/pyatv
40af584fcfc7ed3e334576da61e0e1b8b529a535
[ "MIT" ]
null
null
null
pyatv/mrp/protobuf/CommandOptions_pb2.py
vegerot/pyatv
40af584fcfc7ed3e334576da61e0e1b8b529a535
[ "MIT" ]
null
null
null
pyatv/mrp/protobuf/CommandOptions_pb2.py
vegerot/pyatv
40af584fcfc7ed3e334576da61e0e1b8b529a535
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: pyatv/mrp/protobuf/CommandOptions.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _messag...
49.732143
1,807
0.74626
795b3793a31e1a76d092df216b9a7a902416f4ba
3,277
py
Python
tests/test_docs.py
abhaygupta97/moban
203d5c368c0f64c1b2f1cdfebdff1ded2157d7df
[ "MIT" ]
null
null
null
tests/test_docs.py
abhaygupta97/moban
203d5c368c0f64c1b2f1cdfebdff1ded2157d7df
[ "MIT" ]
null
null
null
tests/test_docs.py
abhaygupta97/moban
203d5c368c0f64c1b2f1cdfebdff1ded2157d7df
[ "MIT" ]
null
null
null
import os import sys from mock import patch from moban.main import main from nose.tools import eq_ class TestTutorial: def setUp(self): self.current = os.getcwd() def test_level_1(self): expected = "world" folder = "level-1-jinja2-cli" self._moban(folder, expected) def t...
25.207692
75
0.586512
795b38ccea65c37af66eb3526c4d6bba4fba89a5
909
py
Python
code/232.Implement-Queue-Using-Stacks.py
Aden-Q/leetcode
ebd4804edd4f172b9981b22c18d9ff654cf20762
[ "Apache-2.0" ]
1
2019-09-22T03:08:14.000Z
2019-09-22T03:08:14.000Z
code/232.Implement-Queue-Using-Stacks.py
Aden-Q/leetcode
ebd4804edd4f172b9981b22c18d9ff654cf20762
[ "Apache-2.0" ]
null
null
null
code/232.Implement-Queue-Using-Stacks.py
Aden-Q/leetcode
ebd4804edd4f172b9981b22c18d9ff654cf20762
[ "Apache-2.0" ]
null
null
null
class MyQueue: def __init__(self): self.stack1 = [] self.stack2 = [] def push(self, x: int) -> None: self.stack1.append(x) def pop(self) -> int: if self.empty(): return None if self.stack2: return self.stack2.pop() else: ...
24.567568
62
0.532453
795b38e15de9634a68d312f966cf4f28f62ebdfb
1,867
py
Python
aliyun-python-sdk-ossadmin/aliyunsdkossadmin/request/v20150302/CreateOssInstanceRequest.py
DataDog/aliyun-openapi-python-sdk
5cbee29bce6416dd62f61f0c3786b1af6ea0d84f
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-ossadmin/aliyunsdkossadmin/request/v20150302/CreateOssInstanceRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ossadmin/aliyunsdkossadmin/request/v20150302/CreateOssInstanceRequest.py
liusc27/aliyun-openapi-python-sdk
5e3db3535dd21de987dc5981e71151327d5a884f
[ "Apache-2.0" ]
1
2021-02-23T11:27:54.000Z
2021-02-23T11:27:54.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.574074
74
0.785217
795b39659c69e187d2810d5a118cf67e65707f47
6,335
py
Python
sdk/python/pulumi_google_native/managedidentities/v1beta1/get_domain_backup_iam_policy.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
44
2021-04-18T23:00:48.000Z
2022-02-14T17:43:15.000Z
sdk/python/pulumi_google_native/managedidentities/v1beta1/get_domain_backup_iam_policy.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
354
2021-04-16T16:48:39.000Z
2022-03-31T17:16:39.000Z
sdk/python/pulumi_google_native/managedidentities/v1beta1/get_domain_backup_iam_policy.py
AaronFriel/pulumi-google-native
75d1cda425e33d4610348972cd70bddf35f1770d
[ "Apache-2.0" ]
8
2021-04-24T17:46:51.000Z
2022-01-05T10:40:21.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
61.504854
1,084
0.697711
795b3a00588d5ec3fee62f511151a09a0a3e93a9
7,340
py
Python
src/ramstk/views/gtk3/assistants/edit_function.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
4
2018-08-26T09:11:36.000Z
2019-05-24T12:01:02.000Z
src/ramstk/views/gtk3/assistants/edit_function.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
52
2018-08-24T12:51:22.000Z
2020-12-28T04:59:42.000Z
src/ramstk/views/gtk3/assistants/edit_function.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
1
2018-10-11T07:57:55.000Z
2018-10-11T07:57:55.000Z
# -*- coding: utf-8 -*- # # ramstk.views.gtk3.assistants.edit_function.py is part of The RAMSTK Project # # All rights reserved. # Copyright since 2007 Doyle "weibullguy" Rowland doyle.rowland <AT> reliaqual <DOT> com """The RASMTK User Defined Function Editor Assistants Module.""" # Standard Library Imports fro...
32.767857
88
0.596866
795b3a18b666d18821782deb18f7d9c4a5f9bb7c
3,909
py
Python
paddleseg/datasets/optic_disc_seg.py
shiyutang/UperNet
836762b7c0c46023f091d991b5cde7df2dda8bd6
[ "Apache-2.0" ]
3
2021-09-11T03:44:58.000Z
2022-01-04T12:15:42.000Z
paddleseg/datasets/optic_disc_seg.py
shiyutang/UperNet
836762b7c0c46023f091d991b5cde7df2dda8bd6
[ "Apache-2.0" ]
null
null
null
paddleseg/datasets/optic_disc_seg.py
shiyutang/UperNet
836762b7c0c46023f091d991b5cde7df2dda8bd6
[ "Apache-2.0" ]
4
2021-11-04T08:39:07.000Z
2021-12-27T06:49:17.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 ...
39.887755
117
0.589665
795b3a71d5baa2cbb2a48ad9f47352f8573f0bf5
339
py
Python
resources/ems_apis.py
dhaneeshgk/exam_site
402cc45c423835652dbeeb8ddb7baab6f7018f15
[ "Apache-2.0" ]
null
null
null
resources/ems_apis.py
dhaneeshgk/exam_site
402cc45c423835652dbeeb8ddb7baab6f7018f15
[ "Apache-2.0" ]
null
null
null
resources/ems_apis.py
dhaneeshgk/exam_site
402cc45c423835652dbeeb8ddb7baab6f7018f15
[ "Apache-2.0" ]
null
null
null
from flask_restful import Api from utils.wrappers import singleton from resources.api_handlers import url_entries @singleton class EMS_APIs: def __init__(self, APP = None ): self.api = Api(APP) def initialize_resources(self): for url,handler in url_entries.items(): self.api.add_res...
28.25
47
0.719764
795b3a80d8822ea8cbf692dd1755c0cd4ee0b02b
183
py
Python
wbia_orientation/__init__.py
WildMeOrg/wbia-plugin-orientation
c32080f5a27952092cf18fb358f8d2d7b9749d7b
[ "Apache-2.0" ]
1
2020-09-22T01:18:52.000Z
2020-09-22T01:18:52.000Z
wbia_orientation/__init__.py
WildMeOrg/wbia-plugin-orientation
c32080f5a27952092cf18fb358f8d2d7b9749d7b
[ "Apache-2.0" ]
null
null
null
wbia_orientation/__init__.py
WildMeOrg/wbia-plugin-orientation
c32080f5a27952092cf18fb358f8d2d7b9749d7b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from wbia_orientation import _plugin # NOQA try: from wbia_orientation._version import __version__ # NOQA except ImportError: __version__ = '0.0.0'
22.875
61
0.710383
795b3b14017ba891148da8c28d030d5f071cb6ab
3,499
py
Python
samples/Tutorial/SampleConsoleCmd-Answer.py
amih90/bacpypes
27ab4f18aa252ceb6ffdc32d53af2995a2e92647
[ "MIT" ]
240
2015-07-17T16:27:54.000Z
2022-03-29T13:53:06.000Z
samples/Tutorial/SampleConsoleCmd-Answer.py
amih90/bacpypes
27ab4f18aa252ceb6ffdc32d53af2995a2e92647
[ "MIT" ]
400
2015-07-23T05:37:52.000Z
2022-03-29T12:32:30.000Z
samples/Tutorial/SampleConsoleCmd-Answer.py
amih90/bacpypes
27ab4f18aa252ceb6ffdc32d53af2995a2e92647
[ "MIT" ]
143
2015-07-17T18:22:27.000Z
2022-03-22T01:21:24.000Z
#!/usr/bin/env python """ This sample application is a simple BACpypes application that presents a console prompt. Almost identical to the SampleApplication, the BACnet application is minimal, but with the console commands that match the command line options like 'buggers' and 'debug' the user can add debugging "on t...
27.124031
78
0.685053
795b3b44ee8d498923ae148d127dcfb03471f32c
253
py
Python
setup.py
thomasvolk/asciimatics_slides
cd6fa1665c947927f4f0b98390de613d516673e8
[ "Apache-2.0" ]
null
null
null
setup.py
thomasvolk/asciimatics_slides
cd6fa1665c947927f4f0b98390de613d516673e8
[ "Apache-2.0" ]
null
null
null
setup.py
thomasvolk/asciimatics_slides
cd6fa1665c947927f4f0b98390de613d516673e8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup, find_packages setup(name='asciimatics_slides', version='1.0', packages=find_packages(), license='Apache 2.0', install_requires=[ 'asciimatics >= 1.11.0' ] )
21.083333
43
0.620553
795b3b5519fce52074214f1eabf6c469c3e6264a
1,205
py
Python
regdata/dataloaders/olympic.py
patel-zeel/regdata
4b823368750a1afd24b1b8d63e3b2ba58d983c79
[ "MIT" ]
null
null
null
regdata/dataloaders/olympic.py
patel-zeel/regdata
4b823368750a1afd24b1b8d63e3b2ba58d983c79
[ "MIT" ]
3
2021-09-22T08:31:49.000Z
2021-10-13T14:23:14.000Z
regdata/dataloaders/olympic.py
patel-zeel/regdata
4b823368750a1afd24b1b8d63e3b2ba58d983c79
[ "MIT" ]
null
null
null
from .base import Base class Olympic(Base): def __init__(self, return_test=True, scale_X = True, scale_y = True, mean_normalize_y=False, test_train_ratio=2, s_to_n_ratio=None, noise_variance=None, scaler='std', random_state=0, backend=None): synthetic=False f=None ...
41.551724
81
0.487137
795b3b7d2f7af9f6bb0440366a770293b97d3e27
7,458
py
Python
tests/integration_tests/data_steward/metrics/required_labs_test.py
noahgengel/curation
a3bd39b80bbcd62f56ff140b4c0e71a7df50f877
[ "MIT" ]
null
null
null
tests/integration_tests/data_steward/metrics/required_labs_test.py
noahgengel/curation
a3bd39b80bbcd62f56ff140b4c0e71a7df50f877
[ "MIT" ]
null
null
null
tests/integration_tests/data_steward/metrics/required_labs_test.py
noahgengel/curation
a3bd39b80bbcd62f56ff140b4c0e71a7df50f877
[ "MIT" ]
null
null
null
import os import unittest import mock import app_identity import bq_utils import common import gcs_utils import resources import validation.sql_wrangle as sql_wrangle from tests import test_util from tests.test_util import (FAKE_HPO_ID) from validation.metrics import required_labs as required_labs from validation.met...
43.360465
113
0.651113
795b3baab65c4ba847ffedafdc53914a130f9463
1,860
py
Python
share/qt/extract_strings_qt.py
pepcash/Pepcash-MN
1ee89bc76f7f4f6354b7419a20c8532bbbc816d5
[ "MIT" ]
null
null
null
share/qt/extract_strings_qt.py
pepcash/Pepcash-MN
1ee89bc76f7f4f6354b7419a20c8532bbbc816d5
[ "MIT" ]
null
null
null
share/qt/extract_strings_qt.py
pepcash/Pepcash-MN
1ee89bc76f7f4f6354b7419a20c8532bbbc816d5
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' Extract _("...") strings for translation and convert to Qt4 stringdefs so that they can be picked up by Qt linguist. ''' from subprocess import Popen, PIPE import glob import operator import os import sys OUT_CPP="qt/pepcashstrings.cpp" EMPTY=['""'] def parse_po(text): """ Parse 'po' for...
23.544304
80
0.597849
795b3c0ea37cb3e433ccc85375ba46f53312180b
1,711
py
Python
loginpass/__init__.py
isaac-galvan/loginpass
2cd7322587a51d17c0f90866dcf41bb9de645182
[ "BSD-3-Clause" ]
null
null
null
loginpass/__init__.py
isaac-galvan/loginpass
2cd7322587a51d17c0f90866dcf41bb9de645182
[ "BSD-3-Clause" ]
null
null
null
loginpass/__init__.py
isaac-galvan/loginpass
2cd7322587a51d17c0f90866dcf41bb9de645182
[ "BSD-3-Clause" ]
null
null
null
from ._core import register_to from ._flask import create_flask_blueprint from ._django import create_django_urlpatterns from ._consts import version, homepage from .azure import Azure, create_azure_backend from .battlenet import BattleNet from .google import Google, GoogleServiceAccount from .github import GitHub from...
25.537313
78
0.740503
795b3d2311bfc4ac4b65c518965b727e1d87a017
8,846
py
Python
tests/test_document.py
nuxeo/nuxeo-python-client
4cb91f3d03f9258e27a49ca838e6e25df345cce2
[ "Apache-2.0" ]
13
2016-06-16T16:30:51.000Z
2021-02-24T15:08:23.000Z
tests/test_document.py
nuxeo/nuxeo-python-client
4cb91f3d03f9258e27a49ca838e6e25df345cce2
[ "Apache-2.0" ]
223
2017-03-07T16:09:13.000Z
2021-07-06T12:13:08.000Z
tests/test_document.py
nuxeo/nuxeo-python-client
4cb91f3d03f9258e27a49ca838e6e25df345cce2
[ "Apache-2.0" ]
2
2018-10-19T14:07:23.000Z
2019-05-15T02:32:46.000Z
# coding: utf-8 from unittest.mock import patch import nuxeo.constants import pytest from nuxeo.models import BufferBlob, Document from nuxeo.utils import version_lt from .constants import WORKSPACE_NAME, WORKSPACE_ROOT, WORKSPACE_TEST class Doc(object): def __init__(self, server, blobs=0): self.server ...
33.763359
88
0.633054
795b3d8a9657176ee00f2326b70da14b9ab57851
9,197
py
Python
mitmproxy/tools/console/statusbar.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
null
null
null
mitmproxy/tools/console/statusbar.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
null
null
null
mitmproxy/tools/console/statusbar.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
null
null
null
import os.path import urwid from mitmproxy.tools.console import common from mitmproxy.tools.console import signals from mitmproxy.tools.console import commandeditor import mitmproxy.tools.console.master # noqa class PromptPath: def __init__(self, callback, args): self.callback, self.args = callback, arg...
33.322464
83
0.561814
795b3f505d7f07ea290cac7aca5b205870ad1f9f
1,463
py
Python
stream_wordcount.py
amimimor/irc-spark-streaming
6934ec542deaa2ed7fd32f491c2c3a77772d6046
[ "Apache-2.0" ]
1
2016-01-12T14:42:14.000Z
2016-01-12T14:42:14.000Z
stream_wordcount.py
amimimor/irc-spark-streaming
6934ec542deaa2ed7fd32f491c2c3a77772d6046
[ "Apache-2.0" ]
null
null
null
stream_wordcount.py
amimimor/irc-spark-streaming
6934ec542deaa2ed7fd32f491c2c3a77772d6046
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys # if you are running in standalone and want to run as a __main__ or unittest # you need to add SPARK_HOME to PYTHONPATH so that pyspark module # would be available # you'd also need to do 'pip install py4j' from pyspark import SparkContext from pyspark import SparkContext from pyspark.stre...
36.575
78
0.757348
795b3f573ac70ae90720220bcd803c3481d1225d
60
py
Python
src/canvas-vae/canvasvae/__init__.py
CyberAgentAILab/canvas-vae
a39a48ad9ae6217123e971cb4c5cf54c672eca74
[ "Apache-2.0" ]
12
2021-08-30T06:40:06.000Z
2022-03-26T10:38:08.000Z
src/canvas-vae/canvasvae/__init__.py
CyberAgentAILab/canvas-vae
a39a48ad9ae6217123e971cb4c5cf54c672eca74
[ "Apache-2.0" ]
1
2022-03-22T04:57:34.000Z
2022-03-22T04:57:34.000Z
src/canvas-vae/canvasvae/__init__.py
CyberAgentAILab/canvas-vae
a39a48ad9ae6217123e971cb4c5cf54c672eca74
[ "Apache-2.0" ]
5
2021-10-30T09:19:09.000Z
2022-02-02T02:06:39.000Z
from .data.spec import DataSpec from .models.vae import VAE
20
31
0.8
795b3fad523f1408e02f31c556ef3833edca5de9
761
py
Python
Curso de Cisco/Actividades/Eliminando elementos de una lista.py
tomasfriz/Curso-de-Cisco
a50ee5fa96bd86d468403e29ccdc3565a181af60
[ "MIT" ]
null
null
null
Curso de Cisco/Actividades/Eliminando elementos de una lista.py
tomasfriz/Curso-de-Cisco
a50ee5fa96bd86d468403e29ccdc3565a181af60
[ "MIT" ]
null
null
null
Curso de Cisco/Actividades/Eliminando elementos de una lista.py
tomasfriz/Curso-de-Cisco
a50ee5fa96bd86d468403e29ccdc3565a181af60
[ "MIT" ]
null
null
null
numeros = [10, 5, 7, 2, 1] print("Contenido de la lista original:", numeros) # imprimiendo contenido de la lista original numeros[0] = 111 print("\nPrevio contenido de la lista:", numeros) # imprimiendo contenido de la lista anterior numeros[1] = numeros[4] # copiando el valor del quinto elemento al segundo print("C...
40.052632
94
0.743758
795b3fc170c9df9cf8e07ab5c9d9a2ff33d323f9
38,576
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_sql_management_client_enums.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_sql_management_client_enums.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_sql_management_client_enums.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.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 ...
31.134786
118
0.712853
795b40f2a224bb9e42ca9095637a64e67e8e406e
195,734
py
Python
helpers/phpdocx/lib/openoffice/openoffice.org/basis3.4/program/python-core-2.6.1/lib/decimal.py
vnnguyen/appbasic
c1d0b85c42a09f8c2d75807774f550b2b9eae33e
[ "BSD-3-Clause" ]
550
2015-01-05T16:59:00.000Z
2022-03-20T16:55:25.000Z
helpers/phpdocx/lib/openoffice/openoffice.org/basis3.4/program/python-core-2.6.1/lib/decimal.py
vnnguyen/appbasic
c1d0b85c42a09f8c2d75807774f550b2b9eae33e
[ "BSD-3-Clause" ]
15
2015-02-05T06:00:47.000Z
2018-07-07T14:34:04.000Z
helpers/phpdocx/lib/openoffice/openoffice.org/basis3.4/program/python-core-2.6.1/lib/decimal.py
vnnguyen/appbasic
c1d0b85c42a09f8c2d75807774f550b2b9eae33e
[ "BSD-3-Clause" ]
119
2015-01-08T00:48:24.000Z
2022-01-27T14:13:15.000Z
# Copyright (c) 2004 Python Software Foundation. # All rights reserved. # Written by Eric Price <eprice at tjhsst.edu> # and Facundo Batista <facundo at taniquetil.com.ar> # and Raymond Hettinger <python at rcn.com> # and Aahz <aahz at pobox.com> # and Tim Peters # This module is currently Py2.3 compatibl...
35.536311
100
0.562953
795b40fc0ba68694262bf0d08c6b41962de3e66a
865
py
Python
setup.py
AidanFarhi/PythonFundamentals.Labs.PipModule
f3461576b34c5a830577d36057e17538f3b3e328
[ "RSA-MD" ]
null
null
null
setup.py
AidanFarhi/PythonFundamentals.Labs.PipModule
f3461576b34c5a830577d36057e17538f3b3e328
[ "RSA-MD" ]
null
null
null
setup.py
AidanFarhi/PythonFundamentals.Labs.PipModule
f3461576b34c5a830577d36057e17538f3b3e328
[ "RSA-MD" ]
null
null
null
import setuptools with open('README.md', 'r', encoding='utf-8') as fh: long_description = fh.read() setuptools.setup( name='json-helper', version='0.0.1', author='Aidan', author_email='afarhidev@gmail.com', description='A package for turning json files into data frames', long_description=l...
33.269231
95
0.669364
795b4230f2a3b5d04321f942bd115abb09b8ab9d
52,271
py
Python
userbot/modules/scrapers.py
FawazXs/Nomercy-Userbot
9f318166a6b444f7fe945dcc796992ae8276d816
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/scrapers.py
FawazXs/Nomercy-Userbot
9f318166a6b444f7fe945dcc796992ae8276d816
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-07-07T02:04:58.000Z
2021-07-07T02:04:58.000Z
userbot/modules/scrapers.py
FawazXs/Nomercy-Userbot
9f318166a6b444f7fe945dcc796992ae8276d816
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # # thanks to the owner of X-tra-Telegram for tts fix # # Recode by @mrismanaziz # FROM Man-Userbot # t.me/SharingUserbot...
33.293631
156
0.590844
795b43637fccdde29cee3540a6f8f83c7834da5b
824
py
Python
Fenier/apps/users/migrations/0001_initial.py
hubertzk/Fenier
b3fc4a506a045b79f681d8522f476fee6bdd9668
[ "MIT" ]
2
2021-04-15T19:11:43.000Z
2021-04-20T05:05:32.000Z
Fenier/apps/users/migrations/0001_initial.py
alsmonert/Fenier
b3fc4a506a045b79f681d8522f476fee6bdd9668
[ "MIT" ]
4
2021-02-26T18:19:23.000Z
2021-04-22T23:52:03.000Z
Fenier/apps/users/migrations/0001_initial.py
alsmonert/Fenier
b3fc4a506a045b79f681d8522f476fee6bdd9668
[ "MIT" ]
1
2022-01-07T23:18:47.000Z
2022-01-07T23:18:47.000Z
# Generated by Django 3.1.7 on 2021-04-02 15:03 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Users', fields=[ ('id', models.IntegerField...
31.692308
110
0.592233
795b4457c4a38a72b861388318e4d2e856dc23b2
46
py
Python
tests/unit/nifcloud_test.py
tnaoto/nifcloud-sdk-python
67d7383b8b486efb0394a7453893b0233ca7be6a
[ "Apache-2.0" ]
17
2018-04-03T03:34:04.000Z
2020-07-10T11:14:52.000Z
tests/unit/nifcloud_test.py
tnaoto/nifcloud-sdk-python
67d7383b8b486efb0394a7453893b0233ca7be6a
[ "Apache-2.0" ]
48
2018-04-05T02:00:09.000Z
2022-01-27T06:38:00.000Z
tests/unit/nifcloud_test.py
tnaoto/nifcloud-sdk-python
67d7383b8b486efb0394a7453893b0233ca7be6a
[ "Apache-2.0" ]
9
2018-04-03T04:37:38.000Z
2020-06-12T07:31:34.000Z
def test_nifcloud(): assert(True is True)
15.333333
24
0.695652
795b44836270754248b5e1e9080bd38a053ee332
4,699
py
Python
corehq/ex-submodules/casexml/apps/case/tests/test_domains.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
corehq/ex-submodules/casexml/apps/case/tests/test_domains.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
94
2020-12-11T06:57:31.000Z
2022-03-15T10:24:06.000Z
corehq/ex-submodules/casexml/apps/case/tests/test_domains.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from django.test.utils import override_settings from corehq.apps.receiverwrapper.util import submit_form_locally from corehq.form_processor.tests.utils import use_sql_backend, FormProcessorTestUtils ALICE_XML = """<?xml version='1.0' ?> <data xmlns:jrm="http://dev.commcarehq.org/jr/xf...
49.463158
184
0.69419
795b44c6669d334a115ea0c9ef1df96254091cd4
4,946
py
Python
pyscandl/modules/fetchers/frscan.py
Annwan/pyscandl
afec7b410699f1bb6289a8653fc7cfa5b0d03406
[ "BSD-3-Clause" ]
11
2019-09-16T14:34:35.000Z
2021-03-16T17:56:41.000Z
pyscandl/modules/fetchers/frscan.py
Annwan/pyscandl
afec7b410699f1bb6289a8653fc7cfa5b0d03406
[ "BSD-3-Clause" ]
15
2020-05-11T18:12:14.000Z
2021-04-19T12:08:40.000Z
pyscandl/modules/fetchers/frscan.py
Annwan/pyscandl
afec7b410699f1bb6289a8653fc7cfa5b0d03406
[ "BSD-3-Clause" ]
5
2019-09-16T14:33:46.000Z
2021-03-03T06:32:19.000Z
from bs4 import BeautifulSoup import cfscrape import re from pyscandl.modules.fetchers.fetcher import Fetcher from pyscandl.modules.excepts import MangaNotFound, DryNoSauceHere, DelayedRelease class FRScan(Fetcher): scrapper = cfscrape.create_scraper() def __init__(self, link: str = None, manga: str = None, ...
41.216667
187
0.590376
795b44e8a047a9b98c96fcf837f8e4962140810d
4,357
py
Python
python/tests/stacks_and_queues/test_stacks_and_queues.py
paul-leonard/data-structures-and-algorithms
783d2450d2cafcb507fefd79dc02c4819aebb312
[ "MIT" ]
1
2020-09-07T19:39:18.000Z
2020-09-07T19:39:18.000Z
python/tests/stacks_and_queues/test_stacks_and_queues.py
paul-leonard/data-structures-and-algorithms
783d2450d2cafcb507fefd79dc02c4819aebb312
[ "MIT" ]
1
2020-11-16T06:54:25.000Z
2020-11-16T06:54:25.000Z
python/tests/stacks_and_queues/test_stacks_and_queues.py
paul-leonard/data-structures-and-algorithms
783d2450d2cafcb507fefd79dc02c4819aebb312
[ "MIT" ]
null
null
null
''' Challenge 10 Required Testing Features: - [x] Can successfully push onto a stack - [x] Can successfully push multiple values onto a stack - [x] Can successfully pop off the stack - [x] Can successfully empty a stack after multiple pops - [x] Can successfully peek the next item on the stack - [x] Can successfully in...
20.947115
83
0.640119