hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
bc2d44d55708c01f71e60c199094cfb461c606ed
1,905
py
Python
hummingbot/client/settings.py
autonomoussoftware/hummingbot
03aaa8d2000c48f988d94a873d7e65b4714a65b9
[ "Apache-2.0" ]
null
null
null
hummingbot/client/settings.py
autonomoussoftware/hummingbot
03aaa8d2000c48f988d94a873d7e65b4714a65b9
[ "Apache-2.0" ]
null
null
null
hummingbot/client/settings.py
autonomoussoftware/hummingbot
03aaa8d2000c48f988d94a873d7e65b4714a65b9
[ "Apache-2.0" ]
null
null
null
from os.path import ( realpath, join, ) from typing import List from hummingbot import get_strategy_list from hummingbot.core.utils.trading_pair_fetcher import TradingPairFetcher # Global variables required_exchanges: List[str] = [] trading_pair_fetcher = TradingPairFetcher.get_instance() # Global static val...
22.678571
95
0.662992
3fa621dc5c6830d0f12e27bdb25933ca6fea8be3
15,019
py
Python
tests/test_wdl_aid.py
biowdl/wdl-aid
7e2e2dd46888af48482ebd23088731ac1a72810d
[ "MIT" ]
4
2019-07-30T16:36:44.000Z
2021-04-18T16:07:56.000Z
tests/test_wdl_aid.py
biowdl/wdl-aid
7e2e2dd46888af48482ebd23088731ac1a72810d
[ "MIT" ]
2
2019-10-28T12:04:48.000Z
2019-12-06T13:31:48.000Z
tests/test_wdl_aid.py
biowdl/wdl-aid
7e2e2dd46888af48482ebd23088731ac1a72810d
[ "MIT" ]
null
null
null
# Copyright (c) 2019 Leiden University Medical Center # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, me...
42.426554
362
0.59711
db6d7467d781cdb78c6c7d3c109952e33e905aee
2,702
py
Python
theonionbox/tob/geoip.py
rainlance/theonionbox
6a4f81ef37bef52065a5b8fe1291e0e1e1b06265
[ "MIT" ]
120
2015-12-30T09:41:56.000Z
2022-03-23T02:30:05.000Z
theonionbox/tob/geoip.py
rainlance/theonionbox
6a4f81ef37bef52065a5b8fe1291e0e1e1b06265
[ "MIT" ]
57
2015-12-29T21:55:14.000Z
2022-01-07T09:48:51.000Z
theonionbox/tob/geoip.py
rainlance/theonionbox
6a4f81ef37bef52065a5b8fe1291e0e1e1b06265
[ "MIT" ]
17
2018-02-05T08:57:46.000Z
2022-02-28T16:44:41.000Z
# Default class used if no geoip db present class GeoIPOO(object): def country(self, ip, default=None): return default def country_name(self, ip, default=None): return default def region_name(self, ip, default=None): return default def city_name(self, ip, default=None): ...
21.790323
54
0.534049
bec00cdac61755e56e0b82d59bc79e4301fc10e3
7,083
py
Python
projects/seg/region_net.py
ixhorse/gluon-cv
c89f9bfc1f5f4ac52ed593ff038af876c3e1dc93
[ "Apache-2.0" ]
null
null
null
projects/seg/region_net.py
ixhorse/gluon-cv
c89f9bfc1f5f4ac52ed593ff038af876c3e1dc93
[ "Apache-2.0" ]
null
null
null
projects/seg/region_net.py
ixhorse/gluon-cv
c89f9bfc1f5f4ac52ed593ff038af876c3e1dc93
[ "Apache-2.0" ]
null
null
null
# pylint: disable=unused-argument """Pyramid Scene Parsing Network""" from mxnet.gluon import nn from mxnet.context import cpu from mxnet.gluon.nn import HybridBlock from mxnet import gluon from gluoncv.model_zoo.segbase import SegBaseModel from gluoncv.model_zoo.fcn import _FCNHead # pylint: disable-all __all__ = ['R...
41.180233
100
0.629536
f711087fc49d8d2d1e4f621050569c812ce59cb7
123
py
Python
CursoIntensivoPython/curso-intensivo-python-master/capitulo_09/my_electric_car.py
SweydAbdul/estudos-python
b052708d0566a0afb9a1c04d035467d45f820879
[ "MIT" ]
null
null
null
CursoIntensivoPython/curso-intensivo-python-master/capitulo_09/my_electric_car.py
SweydAbdul/estudos-python
b052708d0566a0afb9a1c04d035467d45f820879
[ "MIT" ]
null
null
null
CursoIntensivoPython/curso-intensivo-python-master/capitulo_09/my_electric_car.py
SweydAbdul/estudos-python
b052708d0566a0afb9a1c04d035467d45f820879
[ "MIT" ]
null
null
null
import electric_car my_tesla = electric_car.ElectricCar('tesla', 'roadster', 2016) print(my_tesla.get_descriptive_name())
24.6
62
0.804878
42a251d21db809066dd950389905fb6f847b4b61
1,317
py
Python
SQLTemplatedPythonOperator/operator.py
asdfgeoff/airflow-operators
e013b276e10e39c2b675cd4532e2ae3e30717a3f
[ "MIT" ]
1
2021-09-06T14:47:21.000Z
2021-09-06T14:47:21.000Z
SQLTemplatedPythonOperator/operator.py
asdfgeoff/airflow-operators
e013b276e10e39c2b675cd4532e2ae3e30717a3f
[ "MIT" ]
null
null
null
SQLTemplatedPythonOperator/operator.py
asdfgeoff/airflow-operators
e013b276e10e39c2b675cd4532e2ae3e30717a3f
[ "MIT" ]
null
null
null
from airflow.operators.python_operator import PythonOperator from typing import Optional class SQLTemplatedPythonOperator(PythonOperator): """ Extend PythonOperator to receive a templated SQL query and also to display it in the "Rendered Template" tab in Airflow's UI. This is very helpful for troubleshooting...
36.583333
133
0.668185
c3ed851f9b62f8d6857f1f66f3f017ab320666f3
3,394
py
Python
src/oci/_vendor/requests/structures.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/_vendor/requests/structures.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/_vendor/requests/structures.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Modified Work: Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE...
30.576577
245
0.635533
beb967d90cab0c379f3c043c43d888005a62a442
6,271
py
Python
dacbench/wrappers/performance_tracking_wrapper.py
ndangtt/LeadingOnesDAC
953747d8702f179851d7973c65779a1f830e03a1
[ "Apache-2.0" ]
11
2020-11-09T10:50:31.000Z
2022-02-19T09:23:44.000Z
dacbench/wrappers/performance_tracking_wrapper.py
ndangtt/LeadingOnesDAC
953747d8702f179851d7973c65779a1f830e03a1
[ "Apache-2.0" ]
95
2020-11-18T09:37:30.000Z
2022-02-17T10:05:33.000Z
dacbench/wrappers/performance_tracking_wrapper.py
ndangtt/LeadingOnesDAC
953747d8702f179851d7973c65779a1f830e03a1
[ "Apache-2.0" ]
11
2020-11-15T15:24:27.000Z
2022-03-14T14:51:43.000Z
from collections import defaultdict from gym import Wrapper import matplotlib.pyplot as plt import numpy as np import seaborn as sb sb.set_style("darkgrid") current_palette = list(sb.color_palette()) class PerformanceTrackingWrapper(Wrapper): """ Wrapper to track episode performance. Includes interval m...
30.590244
103
0.571998
dee4bce4981f00960e3a1827b5554406c281c830
435
py
Python
setup.py
cpcloud/miniast
8677752f70a1bbfc9dee3c3a742ea99790b9659e
[ "Apache-2.0" ]
16
2018-02-24T00:07:44.000Z
2018-09-13T21:39:25.000Z
setup.py
cpcloud/miniast
8677752f70a1bbfc9dee3c3a742ea99790b9659e
[ "Apache-2.0" ]
null
null
null
setup.py
cpcloud/miniast
8677752f70a1bbfc9dee3c3a742ea99790b9659e
[ "Apache-2.0" ]
null
null
null
import versioneer from setuptools import setup, find_packages setup( name='miniast', url='https://github.com/cpcloud/miniast', packages=find_packages(), python_requires='>=3.5', version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), description='Lightweight macros for Pytho...
24.166667
48
0.708046
36efe6bfc83fb39fa8a5471a546e84283049b287
4,670
py
Python
src/local/butler/package.py
mi-ac/clusterfuzz
0b5c023eca9e3aac41faba17da8f341c0ca2ddc7
[ "Apache-2.0" ]
1
2021-12-20T14:48:42.000Z
2021-12-20T14:48:42.000Z
src/local/butler/package.py
mi-ac/clusterfuzz
0b5c023eca9e3aac41faba17da8f341c0ca2ddc7
[ "Apache-2.0" ]
2
2021-09-28T05:36:03.000Z
2021-12-13T20:48:34.000Z
src/local/butler/package.py
henryzz0/clusterfuzz
0427ed8328d6bd6e18540087793a41531bbaafea
[ "Apache-2.0" ]
1
2021-11-06T06:22:00.000Z
2021-11-06T06:22:00.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.133333
80
0.723555
3601aabec8f5b1522e104db897d7701cfad7c5e1
12,102
py
Python
src/tests/plugins/paypal/test_webhook.py
alainrk/pretix
867a8132aa1ed73dd9513efae5b3c46b5bbae140
[ "ECL-2.0", "Apache-2.0" ]
1
2021-08-31T13:16:55.000Z
2021-08-31T13:16:55.000Z
src/tests/plugins/paypal/test_webhook.py
alainrk/pretix
867a8132aa1ed73dd9513efae5b3c46b5bbae140
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/plugins/paypal/test_webhook.py
alainrk/pretix
867a8132aa1ed73dd9513efae5b3c46b5bbae140
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import json from datetime import timedelta from decimal import Decimal import pytest from django.utils.timezone import now from pretix.base.models import ( Event, EventPermission, Order, Organizer, RequiredAction, User, ) @pytest.fixture def env(): user = User.objects.create_user('dummy@dummy.dummy', 'dummy...
37.467492
118
0.472401
c82b82212eb1a47e62fbba37222cb3cd2609ee06
3,759
py
Python
tests/test_emu_cal/test_emu_passfunc.py
mosesyhc/surmise
3b32640031ce9b0d653d3bcb594b7d0275aa8237
[ "MIT" ]
10
2021-02-06T02:04:05.000Z
2022-02-20T05:48:55.000Z
tests/test_emu_cal/test_emu_passfunc.py
mosesyhc/surmise
3b32640031ce9b0d653d3bcb594b7d0275aa8237
[ "MIT" ]
13
2021-02-06T18:26:55.000Z
2021-12-21T14:28:38.000Z
tests/test_emu_cal/test_emu_passfunc.py
mosesyhc/surmise
3b32640031ce9b0d653d3bcb594b7d0275aa8237
[ "MIT" ]
4
2021-02-12T22:37:41.000Z
2022-03-16T19:32:11.000Z
import numpy as np import scipy.stats as sps import pytest from contextlib import contextmanager from surmise.emulation import emulator # example to illustrate the user inputted pass function def borehole_failmodel(x, theta): """Given x and theta, return matrix of [row x] times [row theta] of values.""" f...
28.263158
79
0.602554
3ab8d5d006b950260aef6f44f4a72e39120a0ef8
16,303
py
Python
tests/integration/test_merge_tree_s3/test.py
uniquechao/ClickHouse
1533f9b9aad3e8e6135179f11b4d8fdc99ce4be6
[ "Apache-2.0" ]
2
2020-06-11T11:48:42.000Z
2020-10-10T12:08:13.000Z
tests/integration/test_merge_tree_s3/test.py
uniquechao/ClickHouse
1533f9b9aad3e8e6135179f11b4d8fdc99ce4be6
[ "Apache-2.0" ]
13
2019-06-06T09:45:53.000Z
2020-05-15T12:03:45.000Z
tests/integration/test_merge_tree_s3/test.py
uniquechao/ClickHouse
1533f9b9aad3e8e6135179f11b4d8fdc99ce4be6
[ "Apache-2.0" ]
22
2019-06-14T10:31:51.000Z
2020-10-12T14:57:44.000Z
import logging import random import string import time import pytest from helpers.cluster import ClickHouseCluster logging.getLogger().setLevel(logging.INFO) logging.getLogger().addHandler(logging.StreamHandler()) @pytest.fixture(scope="module") def cluster(): try: cluster = ClickHouseCluster(__file__) ...
44.062162
126
0.691529
0c65afc9dacd136a8ff5a0e679dd3c0fe8ec2833
3,720
py
Python
RecoEgamma/ElectronIdentification/python/Identification/mvaElectronID_Spring16_GeneralPurpose_V1_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoEgamma/ElectronIdentification/python/Identification/mvaElectronID_Spring16_GeneralPurpose_V1_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoEgamma/ElectronIdentification/python/Identification/mvaElectronID_Spring16_GeneralPurpose_V1_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
from PhysicsTools.SelectorUtils.centralIDRegistry import central_id_registry from RecoEgamma.ElectronIdentification.Identification.mvaElectronID_tools import * import FWCore.ParameterSet.Config as cms # # In this file we define the locations of the MVA weights, cuts on the MVA values # for specific working points, and...
42.272727
136
0.756989
33b465b0688c0716fefeed6b857609f35dda1dbe
686
py
Python
scripts/prep-flooding_step-3_distances.py
avinashkalyani/flooding_brains
be4c6480efed906ded5d1219bcc905611f1ceaea
[ "MIT" ]
null
null
null
scripts/prep-flooding_step-3_distances.py
avinashkalyani/flooding_brains
be4c6480efed906ded5d1219bcc905611f1ceaea
[ "MIT" ]
null
null
null
scripts/prep-flooding_step-3_distances.py
avinashkalyani/flooding_brains
be4c6480efed906ded5d1219bcc905611f1ceaea
[ "MIT" ]
null
null
null
"""Find borders of a selected tissue in a segmentation file.""" import os import subprocess # Path to LayNii (folder where it is installed in your system) LAYNII_PATH = "/home/faruk/Git/LAYNII" FILE1 = "path/to/okapi_cerebrum_RH_v06_borders.nii.gz" FILE2 = "path/to/okapi_cerebrum_RH_v06_borders_points4.nii.gz" # Nu...
28.583333
79
0.661808
a98a034a4be40900ef31364b5bea7a3c76a9a536
17,949
py
Python
src/the_tale/the_tale/game/tests/test_logic.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/the_tale/the_tale/game/tests/test_logic.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/the_tale/the_tale/game/tests/test_logic.py
Alacrate/the-tale
43b211f3a99e93964e95abc20a8ed649a205ffcf
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
import smart_imports smart_imports.all() class LogicTests(utils_testcase.TestCase): def setUp(self): super(LogicTests, self).setUp() logic.create_test_map() self.account = self.accounts_factory.create_account(is_fast=True) def test_remove_game_data(self): self.assertEqua...
48.380054
165
0.646164
fc7f77f126c01e0e5a5ade5f8dbe3b4b3db5ef7f
657
py
Python
xu/compa/Parapluie/src/ActionWidget/PHolder.py
sonnts996/XuCompa-Request
f343e7bfd1b4263eb76438c96d347c549cc75ce3
[ "Apache-2.0" ]
null
null
null
xu/compa/Parapluie/src/ActionWidget/PHolder.py
sonnts996/XuCompa-Request
f343e7bfd1b4263eb76438c96d347c549cc75ce3
[ "Apache-2.0" ]
null
null
null
xu/compa/Parapluie/src/ActionWidget/PHolder.py
sonnts996/XuCompa-Request
f343e7bfd1b4263eb76438c96d347c549cc75ce3
[ "Apache-2.0" ]
null
null
null
from PyQt5 import QtGui from PyQt5.QtCore import pyqtSignal from PyQt5.QtGui import QPainter from PyQt5.QtWidgets import QWidget, QStyleOption, QStyle class PHolder(QWidget): resized = pyqtSignal() def __init__(self): super().__init__() def resizeEvent(self, a0: QtGui.QResizeEvent): supe...
26.28
72
0.677321
a9aed7fa2b7e532d973931c86aee71496ad14464
813
py
Python
util.py
litosly/Autonomous_Drone_Racing_Mapping_and_Racing_in_2D
de6bbe7854cf9d7dd2009ba3e674b052e1489e6a
[ "MIT" ]
null
null
null
util.py
litosly/Autonomous_Drone_Racing_Mapping_and_Racing_in_2D
de6bbe7854cf9d7dd2009ba3e674b052e1489e6a
[ "MIT" ]
null
null
null
util.py
litosly/Autonomous_Drone_Racing_Mapping_and_Racing_in_2D
de6bbe7854cf9d7dd2009ba3e674b052e1489e6a
[ "MIT" ]
null
null
null
import numpy as np def sector_mask(shape,centre,radius,angle_range): """ Return a boolean mask for a circular sector. The start/stop angles in "angle_range" should be given in clockwise order. Reference: http://hk.uwenku.com/question/p-cocpxpri-oa.html """ x,y = np.ogrid[:shape[0],:shape[...
26.225806
74
0.611316
d59edf2a2920c225d38429d11fef195607a21325
405
py
Python
petAppointment/wsgi.py
guillercp93/petsAppointment
3778312f878db138cf670fa6c5f105a515215164
[ "MIT" ]
null
null
null
petAppointment/wsgi.py
guillercp93/petsAppointment
3778312f878db138cf670fa6c5f105a515215164
[ "MIT" ]
null
null
null
petAppointment/wsgi.py
guillercp93/petsAppointment
3778312f878db138cf670fa6c5f105a515215164
[ "MIT" ]
null
null
null
""" WSGI config for petAppointment 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/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANG...
23.823529
78
0.792593
9030e5479a10d0d686eb79ba7f14acf474dd6027
1,799
py
Python
main_test.py
isrealconsulting/codepy27
a95e665f7b057b04f066f693ef350bebed97e86b
[ "Apache-2.0" ]
1
2016-01-11T16:41:42.000Z
2016-01-11T16:41:42.000Z
main_test.py
isrealconsulting/codepy27
a95e665f7b057b04f066f693ef350bebed97e86b
[ "Apache-2.0" ]
null
null
null
main_test.py
isrealconsulting/codepy27
a95e665f7b057b04f066f693ef350bebed97e86b
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.709091
75
0.642023
d5f16014ce89ef4f1ad97066993c1d81da31212b
7,491
py
Python
esp32/tools/fw_updater/pypic.py
pauldeng/pycom-micropython-sigfox
c82364561f6ae25ac250e408aa86523def9fe78d
[ "MIT" ]
198
2017-03-24T23:23:54.000Z
2022-01-07T07:14:00.000Z
esp32/tools/fw_updater/pypic.py
pauldeng/pycom-micropython-sigfox
c82364561f6ae25ac250e408aa86523def9fe78d
[ "MIT" ]
509
2017-03-28T19:37:18.000Z
2022-03-31T20:31:43.000Z
esp32/tools/fw_updater/pypic.py
pauldeng/pycom-micropython-sigfox
c82364561f6ae25ac250e408aa86523def9fe78d
[ "MIT" ]
187
2017-03-24T23:23:58.000Z
2022-02-25T01:48:45.000Z
#!/usr/bin/env python # Copyright (c) 2016-2021, Pycom Limited. # # This software is licensed under the GNU GPL version 3 or any # later version, with permitted additional terms. For more information # see the Pycom Licence v1.0 document supplied with this file, or # available at https://www.pycom.io/opensou...
29.492126
121
0.632492
25c94fdec15f0afb3f752c1bb6fd3d548024a4d4
1,605
py
Python
LinkedList/DelDuplicatSingleLL.py
csagar131/Data_Strucures_And_Algo
ac7e01e7ad9893a22aca9456278a8956f3ef2e95
[ "MIT" ]
1
2019-07-12T06:43:20.000Z
2019-07-12T06:43:20.000Z
LinkedList/DelDuplicatSingleLL.py
csagar131/Data_Strucures_And_Algo
ac7e01e7ad9893a22aca9456278a8956f3ef2e95
[ "MIT" ]
null
null
null
LinkedList/DelDuplicatSingleLL.py
csagar131/Data_Strucures_And_Algo
ac7e01e7ad9893a22aca9456278a8956f3ef2e95
[ "MIT" ]
null
null
null
class Node: def __init__(self,value): self.info = value self.link = None class SingleLinked: def __init__(self): self.start = None list = SingleLinked() def insertAtEnd(value): #insert element at end of linked list if list.start is None: list.start = Node(value) else...
23.602941
107
0.535826
8a58859277fa2b0300bb2f57cd8d36bc933ca39a
2,837
py
Python
cartopy_extra_tiles/cached_tiler.py
marceloandrioni/cartopy-extra-tiles
81f33bd708dbbe5f0ca0eb8c44b1a864e629e2f6
[ "MIT" ]
1
2020-06-05T01:03:37.000Z
2020-06-05T01:03:37.000Z
cartopy_extra_tiles/cached_tiler.py
marceloandrioni/cartopy-extra-tiles
81f33bd708dbbe5f0ca0eb8c44b1a864e629e2f6
[ "MIT" ]
1
2020-06-12T18:08:55.000Z
2020-06-13T22:00:09.000Z
cartopy_extra_tiles/cached_tiler.py
marceloandrioni/cartopy-extra-tiles
81f33bd708dbbe5f0ca0eb8c44b1a864e629e2f6
[ "MIT" ]
1
2020-06-17T19:44:52.000Z
2020-06-17T19:44:52.000Z
# ====================================================================== # # Brad T. Aagaard, U.S. Geological Survey # # ====================================================================== """ Adapted from CachedTiler posted by pelson on https://github.com/SciTools/cartopy/issues/732 Additional features: * Cache ...
31.175824
99
0.5816
fe4587ec030eb516e154a0a67e64f595f63e1073
454
py
Python
stock/news_vars.py
foolcatcora/tushare
44b51564942386658cab6b111929495c85ad25cc
[ "BSD-3-Clause" ]
2
2018-10-04T08:04:24.000Z
2021-01-21T06:58:30.000Z
stock/news_vars.py
foolcatcora/tushare
44b51564942386658cab6b111929495c85ad25cc
[ "BSD-3-Clause" ]
1
2020-04-21T02:42:32.000Z
2020-04-21T02:42:32.000Z
stock/news_vars.py
foolcatcora/tushare
44b51564942386658cab6b111929495c85ad25cc
[ "BSD-3-Clause" ]
1
2015-03-22T12:08:05.000Z
2015-03-22T12:08:05.000Z
# -*- coding:utf-8 -*- LATEST_URL = '%sroll.news.%s/interface/%s?col=43&spec=&type=&ch=03&k=&offset_page=0&offset_num=0&num=%s&asc=&page=1&r=0.%s' LATEST_COLS = ['classify','title','time','url'] LATEST_COLS_C = ['classify','title','time','url','content'] NOTICE_INFO_URL = '%s%s/corp/view/%s?stock_str=%s' NOTICE...
45.4
124
0.640969
82c580cde13bce779eacf34cef6c767fb7298bc6
1,659
py
Python
rotkehlchen/errors.py
georgerobescu/rotkehlchen
817c880b771b8daf5635b02642861dd9949689e2
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/errors.py
georgerobescu/rotkehlchen
817c880b771b8daf5635b02642861dd9949689e2
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/errors.py
georgerobescu/rotkehlchen
817c880b771b8daf5635b02642861dd9949689e2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python class PoloniexError(Exception): def __init__(self, err): self.err = err def __str__(self): return self.err class RecoverableRequestError(Exception): def __init__(self, exchange, err): self.exchange = exchange self.err = err def __str__(self): ...
20.481481
90
0.687764
ac7cabf8ae2c5e76cea379462e9decec98f9eb91
2,759
py
Python
Diena_12_Faili/d12_a17_u1.py
MarisKuz/Python-RTU
12261d06dc81fa0d98190ca0eb5133d43d517070
[ "MIT" ]
8
2020-08-31T16:10:54.000Z
2021-11-24T06:37:37.000Z
Diena_12_Faili/d12_a17_u1.py
MarisKuz/Python-RTU
12261d06dc81fa0d98190ca0eb5133d43d517070
[ "MIT" ]
8
2021-06-08T22:30:29.000Z
2022-03-12T00:48:55.000Z
Diena_12_Faili/d12_a17_u1.py
MarisKuz/Python-RTU
12261d06dc81fa0d98190ca0eb5133d43d517070
[ "MIT" ]
12
2020-09-28T17:06:52.000Z
2022-02-17T12:12:46.000Z
from pathlib import Path import string # 1a def file_line_len(fpath): line_len = 0 filepath = Path(fpath) if filepath.is_file(): with open(filepath, encoding="utf-8") as f: # line_len = len(f.readlines()) # downside loads into memory for a moment, so not good for huge files l...
37.794521
133
0.663646
d2ce6b29c10aeaa07f13bcb44bb4d10534b19b38
9,100
py
Python
samples/client/petstore/python-experimental/petstore_api/models/cat.py
ximyro/openapi-generator
30ee3f343eb681514ce5b33438de3b8f4fb1f50b
[ "Apache-2.0" ]
1
2020-07-11T11:20:56.000Z
2020-07-11T11:20:56.000Z
samples/client/petstore/python-experimental/petstore_api/models/cat.py
ximyro/openapi-generator
30ee3f343eb681514ce5b33438de3b8f4fb1f50b
[ "Apache-2.0" ]
3
2021-04-30T14:46:08.000Z
2022-02-27T20:57:15.000Z
samples/client/petstore/python-experimental/petstore_api/models/cat.py
ximyro/openapi-generator
30ee3f343eb681514ce5b33438de3b8f4fb1f50b
[ "Apache-2.0" ]
1
2021-09-03T09:04:09.000Z
2021-09-03T09:04:09.000Z
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
38.559322
174
0.604835
21d0e7dd1fb96c0407c439a8531a4c92833ef064
3,954
py
Python
nlptasks/task_interpretability_attentionpooling.py
allenwind/tf2bert
9820223559543529d4dcc703e2742ab8fd14d58e
[ "Apache-2.0" ]
4
2021-06-16T02:26:18.000Z
2021-09-24T11:06:51.000Z
nlptasks/task_interpretability_attentionpooling.py
allenwind/tf2bert
9820223559543529d4dcc703e2742ab8fd14d58e
[ "Apache-2.0" ]
null
null
null
nlptasks/task_interpretability_attentionpooling.py
allenwind/tf2bert
9820223559543529d4dcc703e2742ab8fd14d58e
[ "Apache-2.0" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow.keras.models import Model from tensorflow.keras.layers import * from tensorflow.keras.preprocessing import sequence from tf2bert.layers import AttentionPooling1D from tf2bert.text.tokenizers import CharTokenizer from tf2bert.text.rendering import print_color_te...
28.861314
81
0.666667
9026ccce09852942df2d24ec1a6a1e0e55ab58ae
599
py
Python
01-DesenvolvimentoDeSistemas/02-LinguagensDeProgramacao/01-Python/01-ListaDeExercicios/02-Aluno/Roberto/exc0022.py
moacirsouza/nadas
ad98d73b4281d1581fd2b2a9d29001acb426ee56
[ "MIT" ]
1
2020-07-03T13:54:18.000Z
2020-07-03T13:54:18.000Z
01-DesenvolvimentoDeSistemas/02-LinguagensDeProgramacao/01-Python/01-ListaDeExercicios/02-Aluno/Roberto/exc0022.py
moacirsouza/nadas
ad98d73b4281d1581fd2b2a9d29001acb426ee56
[ "MIT" ]
null
null
null
01-DesenvolvimentoDeSistemas/02-LinguagensDeProgramacao/01-Python/01-ListaDeExercicios/02-Aluno/Roberto/exc0022.py
moacirsouza/nadas
ad98d73b4281d1581fd2b2a9d29001acb426ee56
[ "MIT" ]
null
null
null
print('[-- Crie um programa que leia o nome completo de uma pessoa e mostre: a) O nome com todas as letras maiúsculas; b) O nome com todas as letras minúsculas; c) Quantas letras ao todo (sem considerar espaços); d) Quantas letras tem o primeiro nome --]\n') nome = input('Digite o nome completo: ') print('O nome com t...
85.571429
258
0.702838
84a19b06b3eb8c23e5e316c7a54bdf2fb09424a1
2,101
py
Python
script/testing/oltpbench/run_oltpbench.py
shaqsnake/terrier
d1b5c318c86e89bccc684f02565bee5c818ff8cd
[ "MIT" ]
1
2021-06-02T02:52:26.000Z
2021-06-02T02:52:26.000Z
script/testing/oltpbench/run_oltpbench.py
shaqsnake/terrier
d1b5c318c86e89bccc684f02565bee5c818ff8cd
[ "MIT" ]
null
null
null
script/testing/oltpbench/run_oltpbench.py
shaqsnake/terrier
d1b5c318c86e89bccc684f02565bee5c818ff8cd
[ "MIT" ]
3
2020-11-10T11:06:20.000Z
2022-03-26T15:30:55.000Z
#!/usr/bin/python3 import os import sys import argparse import traceback base_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.insert(0, base_path) from oltpbench.test_oltpbench import TestOLTPBench if __name__ == "__main__": aparser = argparse.ArgumentParser(description="Timeseries"...
42.02
99
0.612565
bddfdbf56310230be8fd31db5cad0e42e2526a97
7,532
py
Python
wu-python-project-5/AdvRoom.py
roboticforest/school-work-graveyard
083f91ee6436dc1041ea449b3c3718a60dd3c18f
[ "BSD-Source-Code", "FSFAP" ]
null
null
null
wu-python-project-5/AdvRoom.py
roboticforest/school-work-graveyard
083f91ee6436dc1041ea449b3c3718a60dd3c18f
[ "BSD-Source-Code", "FSFAP" ]
null
null
null
wu-python-project-5/AdvRoom.py
roboticforest/school-work-graveyard
083f91ee6436dc1041ea449b3c3718a60dd3c18f
[ "BSD-Source-Code", "FSFAP" ]
null
null
null
# File: AdvRoom.py # REFERENCES: # I googled "python file type hint" and got: # https://stackoverflow.com/questions/38569401/type-hint-for-a-file-or-file-like-object # which linked to: # https://docs.python.org/3/library/typing.html#typing.IO """ This module is responsible for modeling a single room in Adventure. """...
39.025907
123
0.615242
3ef0bec1fb0a3a39f92d8f1885bea9aab1572a9f
16,605
py
Python
DEEP LEARNING/Object detection/YOLO Object Localization Keras/yad2k/models/keras_yolo.py
Diyago/ML-DL-scripts
40718a9d4318d6d6531bcea5998c0a18afcd9cb3
[ "Apache-2.0" ]
142
2018-09-02T08:59:45.000Z
2022-03-30T17:08:24.000Z
DEEP LEARNING/Object detection/YOLO Object Localization Keras/yad2k/models/keras_yolo.py
jerinka/ML-DL-scripts
eeb5c3c7c5841eb4cdb272690e14d6718f3685b2
[ "Apache-2.0" ]
4
2019-09-08T07:27:11.000Z
2021-10-19T05:50:24.000Z
DEEP LEARNING/Object detection/YOLO Object Localization Keras/yad2k/models/keras_yolo.py
jerinka/ML-DL-scripts
eeb5c3c7c5841eb4cdb272690e14d6718f3685b2
[ "Apache-2.0" ]
75
2018-10-04T17:08:40.000Z
2022-03-08T18:50:52.000Z
"""YOLO_v2 Model Defined in Keras.""" import sys import numpy as np import tensorflow as tf from keras import backend as K from keras.layers import Lambda from keras.layers.merge import concatenate from keras.models import Model from ..utils import compose from .keras_darknet19 import DarknetConv2D, DarknetConv2D_BN_...
35.941558
88
0.663957
14667506894ff77eb54ceba7c87f97e241be9abd
36,023
py
Python
fairseq/models/transformer.py
yingwaner/C-MNMT
3a87f75302efc859139af72483f480a1cac86f25
[ "MIT" ]
null
null
null
fairseq/models/transformer.py
yingwaner/C-MNMT
3a87f75302efc859139af72483f480a1cac86f25
[ "MIT" ]
null
null
null
fairseq/models/transformer.py
yingwaner/C-MNMT
3a87f75302efc859139af72483f480a1cac86f25
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math import torch import torch.nn as nn import torch.nn.functional as F from fairseq import options, utils from fairseq.models import...
44.145833
144
0.652111
8e2bfedb89388e1455a2efac691312159a6e6fcc
4,659
py
Python
cogs/text.py
best4281/cherng-bot
6f3daace95e905f48b4395dbfe55b62d04cc4556
[ "BSD-2-Clause" ]
null
null
null
cogs/text.py
best4281/cherng-bot
6f3daace95e905f48b4395dbfe55b62d04cc4556
[ "BSD-2-Clause" ]
null
null
null
cogs/text.py
best4281/cherng-bot
6f3daace95e905f48b4395dbfe55b62d04cc4556
[ "BSD-2-Clause" ]
null
null
null
import asyncio.exceptions from datetime import datetime import discord from discord.ext import commands from configs import * async def confirm_clear(bot, ctx, msgCount:int, msgList:list, check_func=None): confirm = await ctx.send(f":bangbang: {ctx.author.mention} You are about to delete {msgCount} messages in {ct...
43.95283
202
0.59326
c2366b4f6a59de2c5219fcc4a2e456e44d649367
13,761
py
Python
vega/algorithms/compression/quant_ea/utils/tensorflow/quant_conv.py
Lzc06/vega
852d2f57e21caed11473ddc96397124561eacf8a
[ "MIT" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
vega/algorithms/compression/quant_ea/utils/tensorflow/quant_conv.py
Lzc06/vega
852d2f57e21caed11473ddc96397124561eacf8a
[ "MIT" ]
3
2021-03-31T20:15:40.000Z
2022-02-09T23:50:46.000Z
built-in/TensorFlow/Research/cv/image_classification/Darts_for_TensorFlow/automl/vega/algorithms/compression/quant_ea/utils/tensorflow/quant_conv.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the...
33
115
0.59407
dfb75cf54e6dd8d9fe36f6916f39a8cc5e940fac
4,615
py
Python
tests/test_documentmanifest.py
glichtner/fhir.resources
94896d8f8a0b7dd69253762aab968f4fd6eb69a0
[ "BSD-3-Clause" ]
null
null
null
tests/test_documentmanifest.py
glichtner/fhir.resources
94896d8f8a0b7dd69253762aab968f4fd6eb69a0
[ "BSD-3-Clause" ]
null
null
null
tests/test_documentmanifest.py
glichtner/fhir.resources
94896d8f8a0b7dd69253762aab968f4fd6eb69a0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/DocumentManifest Release: R5 Version: 4.5.0 Build ID: 0d95498 Last updated: 2021-04-03T00:34:11.075+00:00 """ from pydantic.validators import bytes_validator # noqa: F401 from fhir.resources import fhirtypes # noqa: F401 from fhir.resources ...
40.130435
88
0.697725
869a89ebadb7de0c661befd8e7a90c198eb43c73
7,834
py
Python
pong.py
timolegros/Pong
1804d1fcd869592b6501ccd5d5e79c65000db9e1
[ "MIT" ]
null
null
null
pong.py
timolegros/Pong
1804d1fcd869592b6501ccd5d5e79c65000db9e1
[ "MIT" ]
null
null
null
pong.py
timolegros/Pong
1804d1fcd869592b6501ccd5d5e79c65000db9e1
[ "MIT" ]
null
null
null
# Pong V2 has all attributes of the full version except the paddles do not move. import pygame def main(): # initialize all pygame modules (some need initialization) pygame.init() # create a pygame display window pygame.display.set_mode((500, 400)) # set the title of the display window pygame....
36.437209
107
0.61399
196fe5659936586cac6c1379d7f238d21d84340b
4,240
py
Python
pybamm/models/submodels/oxygen_diffusion/full_oxygen_diffusion.py
gyouhoc/PyBaMM
6852e0e518157e6802ce83a2549562e7d0ed4b9f
[ "BSD-3-Clause" ]
null
null
null
pybamm/models/submodels/oxygen_diffusion/full_oxygen_diffusion.py
gyouhoc/PyBaMM
6852e0e518157e6802ce83a2549562e7d0ed4b9f
[ "BSD-3-Clause" ]
null
null
null
pybamm/models/submodels/oxygen_diffusion/full_oxygen_diffusion.py
gyouhoc/PyBaMM
6852e0e518157e6802ce83a2549562e7d0ed4b9f
[ "BSD-3-Clause" ]
null
null
null
# # Class for oxygen diffusion # import pybamm from .base_oxygen_diffusion import BaseModel def separator_and_positive_only(variable): """Return only the separator and positive electrode children Parameters ---------- variable : :class:`pybamm.Concatenation` Concatenation of variables in neg...
33.385827
87
0.653774
a369e492cd5e10af3861594198323c0539332e06
1,793
py
Python
browser/processrendering.py
gocept/alphaflow
4b797cb12fb52254b1884159fd9a8b899c739f7c
[ "ZPL-2.1", "ZPL-2.0" ]
null
null
null
browser/processrendering.py
gocept/alphaflow
4b797cb12fb52254b1884159fd9a8b899c739f7c
[ "ZPL-2.1", "ZPL-2.0" ]
null
null
null
browser/processrendering.py
gocept/alphaflow
4b797cb12fb52254b1884159fd9a8b899c739f7c
[ "ZPL-2.1", "ZPL-2.0" ]
1
2021-11-01T07:58:18.000Z
2021-11-01T07:58:18.000Z
# Copyright (c) 2005-2006 gocept gmbh & co. kg # See also LICENSE.txt # $Id$ import Products.Five import Products.AlphaFlow.interfaces class ProcessGraph(Products.Five.BrowserView): @property def graphing(self): g = Products.AlphaFlow.interfaces.IWorkflowGraph(self.context) g.zoom = self.re...
34.480769
78
0.640825
3929dffcf5900964524fca7584b169cfe353700a
10,342
py
Python
Python/gan_keras/dcgan.py
fyumoto/GAN_Keras
0cc7f3cc8726300969959420d506726ea6b1adc2
[ "Apache-2.0" ]
1
2019-01-19T08:17:04.000Z
2019-01-19T08:17:04.000Z
Python/gan_keras/dcgan.py
fyumoto/GAN_Keras
0cc7f3cc8726300969959420d506726ea6b1adc2
[ "Apache-2.0" ]
null
null
null
Python/gan_keras/dcgan.py
fyumoto/GAN_Keras
0cc7f3cc8726300969959420d506726ea6b1adc2
[ "Apache-2.0" ]
null
null
null
# License # Copyright 2018 Hamaad Musharaf Shah # 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 writ...
40.556863
307
0.593696
a009dac46d593971361c1dce912b4d85ae2b5603
3,616
py
Python
memory.py
AliengirlLiv/dreamer-pytorch-1
33979d7c61d0406d27ea46b9dcbbd823f765a518
[ "MIT" ]
null
null
null
memory.py
AliengirlLiv/dreamer-pytorch-1
33979d7c61d0406d27ea46b9dcbbd823f765a518
[ "MIT" ]
null
null
null
memory.py
AliengirlLiv/dreamer-pytorch-1
33979d7c61d0406d27ea46b9dcbbd823f765a518
[ "MIT" ]
null
null
null
import numpy as np import torch from env import postprocess_observation, preprocess_observation_ class ExperienceReplay(): def __init__(self, size, symbolic_env, observation_size, state_size, action_size, bit_depth, device): self.device = device self.symbolic_env = symbolic_env self.size = size self...
52.405797
201
0.6651
000d13a013a8a71f5b436d8c03939f20e8c24de3
5,048
py
Python
wat_bridge/signals.py
fabi321/wat-bridge
c376d0ffa46841efcf7ddf66517a412c373a2f94
[ "MIT" ]
2
2020-11-23T17:38:34.000Z
2021-01-14T13:23:25.000Z
wat_bridge/signals.py
fabi321/WhatsApp-Telegram-Bridge
c376d0ffa46841efcf7ddf66517a412c373a2f94
[ "MIT" ]
null
null
null
wat_bridge/signals.py
fabi321/WhatsApp-Telegram-Bridge
c376d0ffa46841efcf7ddf66517a412c373a2f94
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # wat-bridge # https://github.com/rmed/wat-bridge # # The MIT License (MIT) # # Copyright (c) 2016 Rafael Medina García <rafamedgar@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software")...
34.108108
111
0.658082
159b5699028189a92b5c7799fe50732180ae4238
16,249
py
Python
lace/test_topology.py
bodylabs/lace
a6ae80787c8c6ba197bd9bad9254b503f4e05c73
[ "BSD-2-Clause" ]
2
2020-05-30T10:28:34.000Z
2021-02-17T13:47:23.000Z
lace/test_topology.py
lace/lace
a6ae80787c8c6ba197bd9bad9254b503f4e05c73
[ "BSD-2-Clause" ]
11
2019-08-29T16:53:29.000Z
2021-07-01T06:24:37.000Z
lace/test_topology.py
bodylabs/lace
a6ae80787c8c6ba197bd9bad9254b503f4e05c73
[ "BSD-2-Clause" ]
5
2017-05-09T16:18:16.000Z
2018-05-08T16:16:09.000Z
# pylint: disable=len-as-condition import unittest from unittest import mock import numpy as np import scipy.sparse as sp from bltest import attr from lace.mesh import Mesh from lace.serialization import obj from lace.cache import vc class TestTopologyMixin(unittest.TestCase): def test_quads_to_tris(self): ...
44.517808
283
0.631793
6e78764ed1bb892bf0f0f7c3afa1afa238dd5c40
979
py
Python
School/urls.py
anish1997bendarkar/pytest
de7bf758e75b7c4f921e89b2695aca14bf48ee05
[ "MIT" ]
16
2020-02-26T09:52:43.000Z
2021-12-21T07:03:10.000Z
School/urls.py
anish1997bendarkar/pytest
de7bf758e75b7c4f921e89b2695aca14bf48ee05
[ "MIT" ]
4
2021-03-18T23:31:32.000Z
2021-06-10T18:25:30.000Z
School/urls.py
anish1997bendarkar/pytest
de7bf758e75b7c4f921e89b2695aca14bf48ee05
[ "MIT" ]
11
2020-06-05T00:06:11.000Z
2022-02-14T07:50:31.000Z
"""School URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
34.964286
77
0.708887
2add75c4ca1ea49f2d5ea8f827bec3b3e75c0933
724
py
Python
main.py
davihonorato/Jogo_da_Velha
acf8d1ce9b906d2e267732426f362aa6a818436b
[ "MIT" ]
null
null
null
main.py
davihonorato/Jogo_da_Velha
acf8d1ce9b906d2e267732426f362aa6a818436b
[ "MIT" ]
null
null
null
main.py
davihonorato/Jogo_da_Velha
acf8d1ce9b906d2e267732426f362aa6a818436b
[ "MIT" ]
null
null
null
from functions import * inicio() while True: win = False count = 0 tabela = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] interface(tabela) while win is False: while True: if count % 2 == 0: user = 'X' resp = leiaNum('...
24.133333
52
0.399171
8497a5120d043788aacc46633c04541748dc5ad2
177
py
Python
Quiz6.py
JackieG19/pythonPractice
6296e785a5a4698c38bcf414fdb9dbbccc73400f
[ "MIT" ]
null
null
null
Quiz6.py
JackieG19/pythonPractice
6296e785a5a4698c38bcf414fdb9dbbccc73400f
[ "MIT" ]
null
null
null
Quiz6.py
JackieG19/pythonPractice
6296e785a5a4698c38bcf414fdb9dbbccc73400f
[ "MIT" ]
null
null
null
# Write Python code that prints out Udacity (with a capital U), given the definition of s below. s = 'audacity' print "U" + s[2] + s[3] + s[4] + s[5] + s[6] + s[7] # Udacity
22.125
96
0.610169
a77e83133be6f13fbf499e5299f37e641a2920d2
8,873
py
Python
msticpy/sectools/tiproviders/open_page_rank.py
kubajir/msticpy
7b319b71b191b5f75dcf9afd87492523a74b5ad7
[ "MIT" ]
820
2019-05-16T07:24:34.000Z
2022-03-31T09:18:10.000Z
msticpy/sectools/tiproviders/open_page_rank.py
kubajir/msticpy
7b319b71b191b5f75dcf9afd87492523a74b5ad7
[ "MIT" ]
205
2019-06-24T19:24:19.000Z
2022-03-30T23:13:46.000Z
msticpy/sectools/tiproviders/open_page_rank.py
kubajir/msticpy
7b319b71b191b5f75dcf9afd87492523a74b5ad7
[ "MIT" ]
171
2019-06-23T13:53:12.000Z
2022-03-29T18:22:46.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """ Open P...
36.665289
88
0.580412
52a9c2048ff779b13955e249da17f62b7bb9c46b
96
py
Python
apis_core/apis_entities/apps.py
sviatoplok/apis-core
c23718af2a51598e32684b9b954b594ceef1f0f7
[ "MIT" ]
1
2019-09-02T09:14:06.000Z
2019-09-02T09:14:06.000Z
apis_core/apis_entities/apps.py
sviatoplok/apis-core
c23718af2a51598e32684b9b954b594ceef1f0f7
[ "MIT" ]
null
null
null
apis_core/apis_entities/apps.py
sviatoplok/apis-core
c23718af2a51598e32684b9b954b594ceef1f0f7
[ "MIT" ]
null
null
null
from django.apps import AppConfig class EntitiesConfig(AppConfig): name = 'apis_entities'
16
33
0.770833
fc6615cdf6f62a7ff0c7af14acd8f67bab782dc6
520
py
Python
Online-Judges/DimikOJ/Python/10-run-rate-1.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/DimikOJ/Python/10-run-rate-1.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/DimikOJ/Python/10-run-rate-1.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
for i in range(int(input())): r1, r2, b = map(int, input().split()) #print(r1 ,r2, b) if b != 0: crr = r2 / ((300-b) / 6) print(format(crr, ".2f"), end = " ") if r1 < r2: rrr = 0.0 else: rrr = ((r1 - r2) + 1) / (b / 6) print(format(rrr, "....
24.761905
44
0.369231
1c07ef9250b321c31f06b5098b6889bc6eb4b834
2,456
py
Python
converters/download_rgsummary.py
bbockelm/topology
16404a6751b81597ab2117f0e983ac063085ff34
[ "Apache-2.0" ]
null
null
null
converters/download_rgsummary.py
bbockelm/topology
16404a6751b81597ab2117f0e983ac063085ff34
[ "Apache-2.0" ]
null
null
null
converters/download_rgsummary.py
bbockelm/topology
16404a6751b81597ab2117f0e983ac063085ff34
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from subprocess import Popen, PIPE from argparse import ArgumentParser import os import sys import urllib.parse import urllib.request YES, NO, ONLY = "yes", "no", "only" params = { "all_resources": "on", "summary_attrs_showservice": "1", # "summary_attrs_showrsvstatus": "1", # ...
30.7
121
0.684446
057d89b9b90fbb4dbd5909b25da6b5493c22b1be
4,870
py
Python
tests/test_protocol.py
sapid/deepstreampy_twisted
1c6af4ea5e3751b026745f03bc2fc91340f1417d
[ "MIT" ]
2
2018-02-03T02:37:04.000Z
2019-05-29T13:27:09.000Z
tests/test_protocol.py
sapid/deepstreampy_twisted
1c6af4ea5e3751b026745f03bc2fc91340f1417d
[ "MIT" ]
8
2018-02-12T21:32:45.000Z
2020-03-18T08:15:41.000Z
tests/test_protocol.py
sapid/deepstreampy_twisted
1c6af4ea5e3751b026745f03bc2fc91340f1417d
[ "MIT" ]
2
2017-12-15T09:15:14.000Z
2018-02-06T09:15:07.000Z
from deepstreampy_twisted import protocol from deepstreampy import constants from twisted.trial import unittest from twisted.test import proto_helpers import sys from twisted.internet import task if sys.version_info[0] < 3: import mock else: from unittest import mock import twisted twisted.internet.base.Dela...
37.751938
113
0.659959
ec2afdb4005acaf3ca675355c1e24075b8906a2c
22,635
py
Python
arviz/tests/helpers.py
StanczakDominik/arviz
ec33b4cc7d4a6d5ba95a87a43ef226a49c2cb287
[ "Apache-2.0" ]
1
2020-08-09T00:16:00.000Z
2020-08-09T00:16:00.000Z
arviz/tests/helpers.py
StanczakDominik/arviz
ec33b4cc7d4a6d5ba95a87a43ef226a49c2cb287
[ "Apache-2.0" ]
null
null
null
arviz/tests/helpers.py
StanczakDominik/arviz
ec33b4cc7d4a6d5ba95a87a43ef226a49c2cb287
[ "Apache-2.0" ]
null
null
null
# pylint: disable=redefined-outer-name, comparison-with-callable """Test helper functions.""" import gzip import importlib import logging import os import pickle import sys from typing import Any, Dict, List, Optional, Tuple, Union import numpy as np import pytest from _pytest.outcomes import Skipped from...
34.876733
101
0.609013
24b4406153e161fe768baf63487c0df2ae810f35
1,527
py
Python
vigenre.py
rawalshree/classical-ciphers
fce82af1e01901447c4d5f4b54b047c69b681f8e
[ "MIT" ]
null
null
null
vigenre.py
rawalshree/classical-ciphers
fce82af1e01901447c4d5f4b54b047c69b681f8e
[ "MIT" ]
null
null
null
vigenre.py
rawalshree/classical-ciphers
fce82af1e01901447c4d5f4b54b047c69b681f8e
[ "MIT" ]
null
null
null
''' Owner - Rawal Shree Email - rawalshreepal000@gmail.com Github - https://github.com/rawalshree ''' global plain global cipher global Success Success = False plain = "" cipher = "" class Vigenre: # A - Z ==> 65 - 90 # a - z ==> 97 - 122 def setKey(self, key): global Success self.key =...
25.032787
99
0.483301
c269873f5b90b54afec8267feca0fdda3e1fc1dc
3,726
py
Python
Python/Python_Requests_Beautifulsoup/sdk_example.py
scraperapi/scraperapi-code-examples
3f7b5d3945fb8a97579fd62a8c0062c15e658193
[ "MIT" ]
4
2021-06-11T15:40:31.000Z
2022-01-09T19:07:10.000Z
Python/Python_Requests_Beautifulsoup/sdk_example.py
scraperapi/scraperapi-code-examples
3f7b5d3945fb8a97579fd62a8c0062c15e658193
[ "MIT" ]
1
2021-06-02T22:09:17.000Z
2021-06-02T22:09:17.000Z
Python/Python_Requests_Beautifulsoup/sdk_example.py
scraperapi/scraperapi-code-examples
3f7b5d3945fb8a97579fd62a8c0062c15e658193
[ "MIT" ]
8
2021-08-19T22:56:36.000Z
2022-03-23T10:35:57.000Z
from bs4 import BeautifulSoup import concurrent.futures import csv import urllib.parse from scraper_api import ScraperAPIClient """ SCRAPER SETTINGS You need to define the following values below: - API_KEY --> Find this on your dashboard, or signup here to create a free account here https://dashboa...
36.891089
107
0.655931
35a810a316549f8e3003e7028962700112d57427
10,289
py
Python
app/tornado_handlers/browse.py
didouard/flight_review
3cc9bad113bd93254c710aa800f8ebe6e233bf99
[ "BSD-3-Clause" ]
null
null
null
app/tornado_handlers/browse.py
didouard/flight_review
3cc9bad113bd93254c710aa800f8ebe6e233bf99
[ "BSD-3-Clause" ]
null
null
null
app/tornado_handlers/browse.py
didouard/flight_review
3cc9bad113bd93254c710aa800f8ebe6e233bf99
[ "BSD-3-Clause" ]
null
null
null
""" Tornado handler for the browse page """ from __future__ import print_function import collections import sys import os from datetime import datetime import json import sqlite3 import tornado.web from plot_app.db_entry import DBVehicleData # this is needed for the following imports sys.path.append( os.path.join...
37.010791
89
0.558558
55c3278fdf9127deb0a1f5cd725832d70a7bd411
282
py
Python
rnbgrader/tests/test_answers.py
matthew-brett/rnbgrader
f07494f59dd0d1cb97c094ac2ea9e9d1243f0f70
[ "BSD-2-Clause" ]
null
null
null
rnbgrader/tests/test_answers.py
matthew-brett/rnbgrader
f07494f59dd0d1cb97c094ac2ea9e9d1243f0f70
[ "BSD-2-Clause" ]
null
null
null
rnbgrader/tests/test_answers.py
matthew-brett/rnbgrader
f07494f59dd0d1cb97c094ac2ea9e9d1243f0f70
[ "BSD-2-Clause" ]
null
null
null
""" Test answers module """ import re from rnbgrader.answers import raw2regex def test_raw2regex(): raw = r""" Min. 1st Qu. Median Mean 3rd Qu. Max. NA's 4.00 23.00 40.00 41.73 48.00 190.00 960 """ assert re.search(raw2regex(raw), raw)
18.8
68
0.588652
9daf7b39f127b5558a92d9ade503c8cd00b26c14
1,197
py
Python
src/python/qepsi4/_psi4_test.py
wugaxp/qe-psi4
1e73186efeb731cce3f0220a31fc4356e2b148d5
[ "Apache-2.0" ]
null
null
null
src/python/qepsi4/_psi4_test.py
wugaxp/qe-psi4
1e73186efeb731cce3f0220a31fc4356e2b148d5
[ "Apache-2.0" ]
null
null
null
src/python/qepsi4/_psi4_test.py
wugaxp/qe-psi4
1e73186efeb731cce3f0220a31fc4356e2b148d5
[ "Apache-2.0" ]
null
null
null
import unittest from qepsi4 import run_psi4 from openfermion import (jordan_wigner, jw_get_ground_state_at_particle_number, qubit_operator_sparse) class TestChem(unittest.TestCase): def test_run_psi4(self): geometry = {"sites": [ {'species': 'H', 'x': 0, 'y': 0, 'z': ...
38.612903
81
0.650794
dbfdbb557c713d06baac2e90e48ab8402e4c244b
3,027
py
Python
app/patch/validator.py
YYJeffrey/flask-tea
a1adc75c862bc0b1b3b1614d0c10484ee4dc3fd4
[ "MIT" ]
null
null
null
app/patch/validator.py
YYJeffrey/flask-tea
a1adc75c862bc0b1b3b1614d0c10484ee4dc3fd4
[ "MIT" ]
null
null
null
app/patch/validator.py
YYJeffrey/flask-tea
a1adc75c862bc0b1b3b1614d0c10484ee4dc3fd4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ :copyright: (c) 2021 by Jeffrey. :license: MIT, see LICENSE for more details. """ from collections import namedtuple from flask import request from wtforms import Form as _Form, SelectField as _SelectField from wtforms.compat import string_types from wtforms.validators import StopVa...
28.828571
103
0.577469
72e6fbd5472e200b0c37d752daac101c1da83eaf
191
py
Python
fuzz.py
ess-dmsc/fuzzing_python_example
47bb661dc2126152addf97b8b58d3a39602704e6
[ "BSD-2-Clause" ]
null
null
null
fuzz.py
ess-dmsc/fuzzing_python_example
47bb661dc2126152addf97b8b58d3a39602704e6
[ "BSD-2-Clause" ]
null
null
null
fuzz.py
ess-dmsc/fuzzing_python_example
47bb661dc2126152addf97b8b58d3a39602704e6
[ "BSD-2-Clause" ]
null
null
null
import os import sys from example import csv_addition # Recommended to import AFL last import afl afl.init() csv_addition(sys.stdin.read()) # Recommended as speeds up exiting os._exit(0)
13.642857
34
0.774869
ef66ec33da702a48e6c75904737028b946439b0c
895
py
Python
settings_manager.py
oleg79/android_emulator_helper
f9edf1bdae10d2ad7ed29dfe3276369f50dcfc17
[ "MIT" ]
1
2022-03-02T15:43:22.000Z
2022-03-02T15:43:22.000Z
settings_manager.py
oleg79/android_emulator_helper
f9edf1bdae10d2ad7ed29dfe3276369f50dcfc17
[ "MIT" ]
null
null
null
settings_manager.py
oleg79/android_emulator_helper
f9edf1bdae10d2ad7ed29dfe3276369f50dcfc17
[ "MIT" ]
null
null
null
import os import json def set_device_status(device_name, key): """ Saves device status to data.json. """ with open('data.json', 'r') as datafile: data = json.load(datafile) with open('data.json', 'w+') as datafile: data[key] = device_name json.dump(data, datafile) def get_...
24.861111
76
0.62905
1b272c61ff9f8a5a4a450a42e13aefb5f8da36ef
2,629
py
Python
Help.py
404-Program-not-found/Discord-AntiScamBot
9df2b8c7a1d59109c4e9c9b18512cffa8e763a42
[ "Unlicense" ]
1
2021-12-11T15:41:38.000Z
2021-12-11T15:41:38.000Z
Help.py
404-Program-not-found/Discord-AntiScamBot
9df2b8c7a1d59109c4e9c9b18512cffa8e763a42
[ "Unlicense" ]
null
null
null
Help.py
404-Program-not-found/Discord-AntiScamBot
9df2b8c7a1d59109c4e9c9b18512cffa8e763a42
[ "Unlicense" ]
null
null
null
import discord from discord.ext import commands class help(commands.Cog): def __init__(self, bot): bot.help_command = HelpClass() bot.help_command.cog = self class HelpClass(commands.HelpCommand): def __init__(self): attrs = { "aliases": ["helpme", "halp"], "...
37.028169
114
0.628376
e2a919e40b10d1902ac4c16d99266f4a07935611
606
py
Python
Crash Course on Python/Week 3/programming_excercises/loop_factorial.py
garynth41/Google-IT-Automation-with-Python-Professional-Certificate
6a800b5b995c05f74c824545260207d19877baf7
[ "MIT" ]
2
2020-01-18T16:01:24.000Z
2020-02-29T19:27:17.000Z
Crash Course on Python/Week 3/programming_excercises/loop_factorial.py
garynth41/Google-IT-Automation-with-Python-Professional-Certificate
6a800b5b995c05f74c824545260207d19877baf7
[ "MIT" ]
null
null
null
Crash Course on Python/Week 3/programming_excercises/loop_factorial.py
garynth41/Google-IT-Automation-with-Python-Professional-Certificate
6a800b5b995c05f74c824545260207d19877baf7
[ "MIT" ]
4
2020-08-17T16:49:06.000Z
2022-02-14T06:45:29.000Z
''' In math, the factorial of a number is defined as the product of an integer and all the integers below it. For example, the factorial of four (4!) is equal to 1*2*3*4=24. Fill in the blanks to make the factorial function return the right number. ''' def factorial(n): result = 1 for i in range(1, ...
28.857143
141
0.676568
2b5adc69dcd99e939a70c3ada31e33b82079b34b
2,879
py
Python
enaml/qt/qt_label.py
jwiggins/enaml
1c8793ba5390c52e119423684753fc3b1b893ae2
[ "BSD-3-Clause-Clear" ]
26
2016-04-01T18:49:31.000Z
2020-07-21T22:19:46.000Z
enaml/qt/qt_label.py
jwiggins/enaml
1c8793ba5390c52e119423684753fc3b1b893ae2
[ "BSD-3-Clause-Clear" ]
29
2016-02-22T17:40:55.000Z
2018-08-21T18:18:36.000Z
enaml/qt/qt_label.py
jwiggins/enaml
1c8793ba5390c52e119423684753fc3b1b893ae2
[ "BSD-3-Clause-Clear" ]
4
2016-08-29T13:07:19.000Z
2018-11-04T01:31:46.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2013, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #-------------------------------------------------...
29.377551
79
0.499132
9e4ce30e2b80d49da6894c6010b25c816bb05c5c
142
py
Python
Pythonexercicios/ex.021.py
FabioLeonel/Python
c71bd2451f15cc33153044a8c5a79d2d4cea48ce
[ "MIT" ]
null
null
null
Pythonexercicios/ex.021.py
FabioLeonel/Python
c71bd2451f15cc33153044a8c5a79d2d4cea48ce
[ "MIT" ]
1
2020-09-16T16:20:09.000Z
2020-09-16T16:20:09.000Z
Pythonexercicios/ex.021.py
FabioLeonel/Python
c71bd2451f15cc33153044a8c5a79d2d4cea48ce
[ "MIT" ]
null
null
null
# 21 import pygame pygame.mixer.init() pygame.init() pygame.mixer.music.load('musicateste.mp3') pygame.mixer.music.play() pygame.event.wait()
17.75
42
0.760563
46721e903b924f9ea0d465acc84524807d0a062c
2,906
py
Python
labs/Python/lab1.py
SzymonZos/Python-And-R-Introduction
ac9be6489fb7970f0a57cebb39bf69dacae8b7fb
[ "MIT" ]
1
2020-06-11T19:47:43.000Z
2020-06-11T19:47:43.000Z
labs/Python/lab1.py
SzymonZos/Python-And-R-Introduction
ac9be6489fb7970f0a57cebb39bf69dacae8b7fb
[ "MIT" ]
1
2020-07-30T08:39:30.000Z
2020-07-30T08:39:30.000Z
labs/Python/lab1.py
SzymonZos/Python-And-R-Introduction
ac9be6489fb7970f0a57cebb39bf69dacae8b7fb
[ "MIT" ]
null
null
null
# Task 1 def find_position(string: str, key: str) -> list: return [position for position, char in enumerate(string) if char == key] def find_positions(string: str, *keys) -> dict: positions = {} for key in keys: position = find_position(string, key) if position: positions[key] ...
25.716814
78
0.628699
8246ed3bb0d0e6f457c5b92b483f2b421874fe2e
9,969
py
Python
hplip-3.20.3/base/services.py
Deril-Pana/wikiBlackcoinNL
9633307f0b485c27feae5da242944adf450e8963
[ "MIT" ]
null
null
null
hplip-3.20.3/base/services.py
Deril-Pana/wikiBlackcoinNL
9633307f0b485c27feae5da242944adf450e8963
[ "MIT" ]
1
2021-11-20T16:33:39.000Z
2021-11-20T16:33:39.000Z
hplip-3.20.3/base/services.py
Deril-Pana/wikiBlackcoinNL
9633307f0b485c27feae5da242944adf450e8963
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # (c) Copyright 2015 HP Development Company, L.P. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later ver...
35.476868
168
0.624135
8d0326de7c4b4c0be83304f13fa7f5be560875b3
4,006
py
Python
sdk/python/pulumi_azure/config/vars.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/config/vars.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/config/vars.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
30.120301
143
0.762107
dc9cf9e53808d85a338e57bf175986ce5368f5d7
1,881
py
Python
apps/hie/decorators.py
thebureaugroup/sharemyhealth
de93793d7065d50af53f260e3347b8ed30d8c864
[ "Apache-2.0" ]
null
null
null
apps/hie/decorators.py
thebureaugroup/sharemyhealth
de93793d7065d50af53f260e3347b8ed30d8c864
[ "Apache-2.0" ]
4
2021-06-05T00:09:17.000Z
2021-12-13T20:52:41.000Z
apps/hie/decorators.py
thebureaugroup/sharemyhealth
de93793d7065d50af53f260e3347b8ed30d8c864
[ "Apache-2.0" ]
null
null
null
from functools import update_wrapper from django.http import HttpResponseForbidden import logging from django.utils.translation import ugettext_lazy as _ from jwkest.jwt import JWT logger = logging.getLogger('sharemyhealth_.%s' % __name__) _author_ = "Alan Viars" def check_ial_before_allowing_authorize(func): ...
35.490566
110
0.58639
56b1ab541f72d2bb2c630a2622afb80086bee50e
5,159
py
Python
haystack/tracer.py
ExpediaDotCom/haystack-client-python
e32141f9759282a1a25fc03231a64e47b81e7f3a
[ "Apache-2.0" ]
5
2018-09-24T09:05:41.000Z
2019-04-04T10:31:09.000Z
haystack/tracer.py
ExpediaDotCom/haystack-client-python
e32141f9759282a1a25fc03231a64e47b81e7f3a
[ "Apache-2.0" ]
6
2019-04-17T19:04:42.000Z
2021-01-26T04:23:19.000Z
haystack/tracer.py
ExpediaDotCom/haystack-client-python
e32141f9759282a1a25fc03231a64e47b81e7f3a
[ "Apache-2.0" ]
2
2018-09-18T14:31:01.000Z
2019-02-25T14:33:43.000Z
import time import uuid from opentracing import Format, Tracer, UnsupportedFormatException from opentracing.scope_managers import ThreadLocalScopeManager from .text_propagator import TextPropagator from .span import Span, SpanContext class HaystackTracer(Tracer): def __init__(self, service_name,...
37.656934
79
0.598566
d216f003b200228d651288e0716e93e92bab7c0b
378
py
Python
fec/data/jinja2.py
cnlucas/fec-cms
aa67a0d4c19a350420d2f8c4b4e6f93acb808639
[ "CC0-1.0" ]
39
2018-03-09T21:56:17.000Z
2022-01-20T02:31:38.000Z
fec/data/jinja2.py
rbtrsv/fec-cms
3136d1cf300ce1505d7035de38038e1c045937e6
[ "CC0-1.0" ]
3,183
2018-03-09T20:30:55.000Z
2022-03-30T21:27:49.000Z
fec/data/jinja2.py
rbtrsv/fec-cms
3136d1cf300ce1505d7035de38038e1c045937e6
[ "CC0-1.0" ]
19
2018-03-09T20:47:31.000Z
2022-03-10T02:54:33.000Z
import jinja2 from compressor.contrib.jinja2ext import CompressorExtension def environment(**options): """Create a jinja2 environment with the CompressorExtension added in""" options['extensions'] += [CompressorExtension] options['autoescape'] = True # This was already True but we want to set it explicit...
34.363636
90
0.746032
11c38efa994a130d9671826e38658c753e88df4e
11,798
py
Python
Bio/PDB/PDBIO.py
ajmaurais/biopython
f110e06e740d81ff0d762a5da34099bfdca269c3
[ "BSD-3-Clause" ]
1
2020-01-21T02:04:08.000Z
2020-01-21T02:04:08.000Z
Bio/PDB/PDBIO.py
ajmaurais/biopython
f110e06e740d81ff0d762a5da34099bfdca269c3
[ "BSD-3-Clause" ]
null
null
null
Bio/PDB/PDBIO.py
ajmaurais/biopython
f110e06e740d81ff0d762a5da34099bfdca269c3
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk) # 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. """Output of PDB files.""" # To allow saving of chains, residues, etc.. from Bio.PDB.Str...
33.047619
108
0.476013
e618a1e8b9eea370c49f25befbc89624bfe488c8
6,386
py
Python
callAdaptiveSampler.py
CSMMLab/neuralEntropyClosures
5efc5961f2fac36921a749d35f3636c61d1cc873
[ "MIT" ]
4
2021-09-23T07:21:23.000Z
2021-12-24T11:35:39.000Z
callAdaptiveSampler.py
ScSteffen/neuralEntropyClosures
5efc5961f2fac36921a749d35f3636c61d1cc873
[ "MIT" ]
null
null
null
callAdaptiveSampler.py
ScSteffen/neuralEntropyClosures
5efc5961f2fac36921a749d35f3636c61d1cc873
[ "MIT" ]
null
null
null
""" brief: driver for adaptive samples author: Steffen Schotthöfer """ import os import numpy as np from multiprocessing import Pool from functools import partial import csv import tensorflow as tf import matplotlib.pyplot as plt from src.utils import load_data, scatter_plot_2d from src.sampler.adaptiveSampler import...
34.706522
117
0.599123
dff17e5dd1dec23bf1965152bd0bfd8274cdb1bf
1,522
py
Python
sns_imagenet.py
ByungKwanLee/Causal-Adversarial-Instruments
68993508a6beeaae2936aaf0c44da360bb82a597
[ "MIT" ]
18
2022-02-16T05:57:45.000Z
2022-03-13T07:31:30.000Z
sns_imagenet.py
ByungKwanLee/Causal-Adversarial-Instruments
68993508a6beeaae2936aaf0c44da360bb82a597
[ "MIT" ]
null
null
null
sns_imagenet.py
ByungKwanLee/Causal-Adversarial-Instruments
68993508a6beeaae2936aaf0c44da360bb82a597
[ "MIT" ]
1
2022-02-16T10:22:58.000Z
2022-02-16T10:22:58.000Z
import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import seaborn as sns import pandas as pd import numpy as np content = np.array(['FGSM', 'PGD', 'CW ']) imgn_adv = np.array([[0.3894, 0.378, 0.4251]]) imgn_inst = np.array([[0.3603, 0.3517, 0.1487]]) imgn_causal = np.array([[0.5363, 0.5445, 0.533...
31.708333
105
0.684625
0d0b1c6e6e594bbf421cb198978e2c566c549f4c
1,204
py
Python
ESRGAN/tflite_inference.py
shareeff/ESRGAN_TF2
27a8d9a1ec8094f5bc9d024cead0b8c8f4f2d149
[ "MIT" ]
2
2021-09-14T07:24:16.000Z
2021-12-31T05:44:32.000Z
ESRGAN/tflite_inference.py
shareeff/ESRGAN_TF2
27a8d9a1ec8094f5bc9d024cead0b8c8f4f2d149
[ "MIT" ]
null
null
null
ESRGAN/tflite_inference.py
shareeff/ESRGAN_TF2
27a8d9a1ec8094f5bc9d024cead0b8c8f4f2d149
[ "MIT" ]
3
2021-09-14T07:13:22.000Z
2022-01-25T18:50:14.000Z
from PIL import Image import numpy as np import tensorflow as tf from modules.utils import read_image, scale_image_0_1_range INPUT_SHAPE= [512, 512] TFLITE_MODEL_PATH = './saved/models/esrgan.tflite' IMG_PATH = "./images/input_hr/0855.png" SAVE_IMG_PATH = "./images/results/tflite_0855.png" def main(): interprete...
25.617021
91
0.742525
196b8bc01dd1acd9c970040807edd0ab089da619
32,607
py
Python
trax/rl/ppo_trainer.py
Tenoke/trax
bbabf6cc8a0682218927080bce33a4f90591aa0b
[ "Apache-2.0" ]
2
2020-03-27T17:26:58.000Z
2020-03-27T18:45:47.000Z
trax/rl/ppo_trainer.py
Tenoke/trax
bbabf6cc8a0682218927080bce33a4f90591aa0b
[ "Apache-2.0" ]
null
null
null
trax/rl/ppo_trainer.py
Tenoke/trax
bbabf6cc8a0682218927080bce33a4f90591aa0b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax 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 a...
38.864124
86
0.673659
30adabcebb9a2be7be7bc89be8aaebbd9903928e
2,256
py
Python
python_modules/libraries/dagster-aws/dagster_aws/emr/solids.py
hspak/dagster
94cff048d5d757d0fe1d83abe236252a1c86bd41
[ "Apache-2.0" ]
3
2020-09-09T04:10:23.000Z
2021-11-08T02:10:42.000Z
python_modules/libraries/dagster-aws/dagster_aws/emr/solids.py
hspak/dagster
94cff048d5d757d0fe1d83abe236252a1c86bd41
[ "Apache-2.0" ]
2
2021-05-11T13:36:27.000Z
2021-09-03T01:53:11.000Z
python_modules/libraries/dagster-aws/dagster_aws/emr/solids.py
hspak/dagster
94cff048d5d757d0fe1d83abe236252a1c86bd41
[ "Apache-2.0" ]
1
2021-02-21T12:16:47.000Z
2021-02-21T12:16:47.000Z
import math import time from dagster import ( Field, InputDefinition, Nothing, Output, OutputDefinition, SolidDefinition, String, check, ) from .configs import define_emr_run_job_flow_config from .emr import EmrJobRunner from .types import EMR_CLUSTER_DONE_STATES, EmrClusterState _STA...
31.774648
99
0.630319
7144ab9f7a0fe68a3f517a8f1b7cb8a7a06c4ec4
18,067
py
Python
baseline_gslstm_modelf.py
aurtg/nary-relation-extraction-decomposed
0217238af3e36af0884767c0e0ed4beda4ed2368
[ "MIT" ]
6
2019-12-17T02:49:05.000Z
2021-11-27T04:30:35.000Z
baseline_gslstm_modelf.py
aurtg/nary-relation-extraction-decomposed
0217238af3e36af0884767c0e0ed4beda4ed2368
[ "MIT" ]
null
null
null
baseline_gslstm_modelf.py
aurtg/nary-relation-extraction-decomposed
0217238af3e36af0884767c0e0ed4beda4ed2368
[ "MIT" ]
2
2020-06-05T02:26:44.000Z
2020-07-25T10:19:38.000Z
import sys from argparse import Namespace, ArgumentParser from collections import defaultdict from logging import getLogger, FileHandler, INFO import datetime from functools import reduce from copy import deepcopy import _pickle as pic import time import numpy as np from sklearn.utils import shuffle im...
34.347909
113
0.593845
e2da04ac2a1448ba1572ac3cd8a2dc42a2556711
1,076
py
Python
src/python/T0/WMBS/Oracle/SMNotification/InsertOfflineFileStatus.py
silviodonato/T0
a093729d08b31175ed35cd20e889bd7094ce152a
[ "Apache-2.0" ]
6
2016-03-09T14:36:19.000Z
2021-07-27T01:28:00.000Z
src/python/T0/WMBS/Oracle/SMNotification/InsertOfflineFileStatus.py
silviodonato/T0
a093729d08b31175ed35cd20e889bd7094ce152a
[ "Apache-2.0" ]
193
2015-01-07T21:03:43.000Z
2022-03-31T12:22:18.000Z
src/python/T0/WMBS/Oracle/SMNotification/InsertOfflineFileStatus.py
silviodonato/T0
a093729d08b31175ed35cd20e889bd7094ce152a
[ "Apache-2.0" ]
36
2015-01-28T19:01:54.000Z
2021-12-15T17:18:20.000Z
""" _InsertOfflineFileStatus_ Oracle implementation of InsertOfflineFileStatus """ from WMCore.Database.DBFormatter import DBFormatter class InsertOfflineFileStatus(DBFormatter): def execute(self, binds, conn = None, transaction = False): sql = """DECLARE cnt NUMBER(1); ...
28.315789
77
0.494424
544898a7453d38bc1d42eb97bab569c519b90790
88
py
Python
cars_ke/apps.py
ahmed14-cell/cars
d9ec9784b416f945eb137d4dbf2875eee9db294d
[ "MIT" ]
null
null
null
cars_ke/apps.py
ahmed14-cell/cars
d9ec9784b416f945eb137d4dbf2875eee9db294d
[ "MIT" ]
5
2021-03-20T04:21:13.000Z
2021-03-20T04:22:01.000Z
cars_ke/apps.py
ahmed-gaal/cars
d9ec9784b416f945eb137d4dbf2875eee9db294d
[ "MIT" ]
1
2020-09-01T12:33:41.000Z
2020-09-01T12:33:41.000Z
from django.apps import AppConfig class CarsKeConfig(AppConfig): name = 'cars_ke'
14.666667
33
0.75
95e690ad17aa75b004b178cba82d2ab0ad70ecc9
1,888
py
Python
SharedCode/blob_helper.py
office-for-students/beta-data-pipelines
36b90c7720e0be0f807d93a31cf7346522b6e1f0
[ "MIT" ]
2
2019-06-04T14:15:16.000Z
2019-08-04T15:26:16.000Z
SharedCode/blob_helper.py
office-for-students/beta-data-pipelines
36b90c7720e0be0f807d93a31cf7346522b6e1f0
[ "MIT" ]
3
2019-06-24T12:21:10.000Z
2019-07-22T11:15:27.000Z
SharedCode/blob_helper.py
office-for-students/beta-data-pipelines
36b90c7720e0be0f807d93a31cf7346522b6e1f0
[ "MIT" ]
1
2019-09-26T19:29:15.000Z
2019-09-26T19:29:15.000Z
import gzip import io import os from datetime import datetime from azure.storage.blob import BlockBlobService class BlobHelper: def __init__(self, blob=None): account_name = os.environ["AzureStorageAccountName"] account_key = os.environ["AzureStorageAccountKey"] self.blob_service = BlockB...
29.968254
89
0.67214
d70108d4fd05d5dde7fa005f7450167095063a9b
1,974
py
Python
tests/trb_italian.py
friendly-traceback/friendly-traceback
4f6785f14c271a4d6412ef19c140f9d380cdbcbf
[ "MIT" ]
45
2021-07-06T03:30:20.000Z
2022-03-16T17:30:58.000Z
tests/trb_italian.py
friendly-traceback/friendly-traceback
4f6785f14c271a4d6412ef19c140f9d380cdbcbf
[ "MIT" ]
110
2021-06-28T11:48:46.000Z
2022-03-25T20:41:25.000Z
tests/trb_italian.py
friendly-traceback/friendly-traceback
4f6785f14c271a4d6412ef19c140f9d380cdbcbf
[ "MIT" ]
4
2021-07-05T20:56:39.000Z
2021-11-11T20:24:34.000Z
"""Creates a version of traceback_es.rst to insert in the documentation. """ # When creating a new translation, you need to: # 1. Make a copy of this file # 2. Change the value of LANG as well as 'intro_text' so that they reflect the # appropriate language # 3. Change the first line of this file so that the name of...
27.802817
78
0.731003
b5633ce8738b8357e977c4cdd145125c8973c18c
273
py
Python
hydra/markets/viabtc_bch_cny.py
louis-cai/yourquant
6aeb0cbc825fb2b89c8c5d0c81c319b32701edd0
[ "Unlicense" ]
null
null
null
hydra/markets/viabtc_bch_cny.py
louis-cai/yourquant
6aeb0cbc825fb2b89c8c5d0c81c319b32701edd0
[ "Unlicense" ]
null
null
null
hydra/markets/viabtc_bch_cny.py
louis-cai/yourquant
6aeb0cbc825fb2b89c8c5d0c81c319b32701edd0
[ "Unlicense" ]
null
null
null
# Copyright (C) 2017, Philsong <songbohr@gmail.com> from ._viabtc import Viabtc class Viabtc_BCH_CNY(Viabtc): def __init__(self): super().__init__("CNY", "BCH", "bcccny") if __name__ == "__main__": market = Viabtc_BCH_CNY() print(market.get_ticker())
24.818182
51
0.677656
493a058b071e10afea610c82bdc7052880e29d3e
489
py
Python
coggers/register.py
restinya/Barkeep
9d6a7f47bc8e2bc3cda1ba2992a02a85d06efa7e
[ "MIT" ]
null
null
null
coggers/register.py
restinya/Barkeep
9d6a7f47bc8e2bc3cda1ba2992a02a85d06efa7e
[ "MIT" ]
null
null
null
coggers/register.py
restinya/Barkeep
9d6a7f47bc8e2bc3cda1ba2992a02a85d06efa7e
[ "MIT" ]
null
null
null
import discord import asyncio import requests import re from discord.utils import get from discord.ext import commands from math import floor from configs.settings import command_prefix from utils import accessDB, point_buy, alpha_emojis, db, VerboseMDStringifier, traceBack, checkForChar class Register(comm...
24.45
102
0.744376
f88582fadcdc00fe8eb804c3fd0431a3c0a46a68
410
py
Python
exercicios/exercicio022.py
Helton-Rubens/Python-3
eb6d5ee71bcb2a2a80de4eaea942bd0c41d846b7
[ "MIT" ]
null
null
null
exercicios/exercicio022.py
Helton-Rubens/Python-3
eb6d5ee71bcb2a2a80de4eaea942bd0c41d846b7
[ "MIT" ]
null
null
null
exercicios/exercicio022.py
Helton-Rubens/Python-3
eb6d5ee71bcb2a2a80de4eaea942bd0c41d846b7
[ "MIT" ]
null
null
null
nome = str(input('Seu nome: ')).strip() print('Analisando seu nome...') print('Seu nome com letras maiúsculas: {}'.format(nome.upper())) print('Seu nome com letras minúsculas: {}'.format(nome.lower())) print('{} letras ao todo no seu nome.'.format(len(nome) - nome.count(' '))) #essa de baixo pode ser feita com ".format...
58.571429
75
0.670732
0c09c5f6837e64665a4ad88cc6e78b09e4242987
1,127
py
Python
jasmin/routing/content.py
balsagoth/jasmin
53d55f6af8c0d5faca51849e5953452a0dd93452
[ "Apache-2.0" ]
null
null
null
jasmin/routing/content.py
balsagoth/jasmin
53d55f6af8c0d5faca51849e5953452a0dd93452
[ "Apache-2.0" ]
null
null
null
jasmin/routing/content.py
balsagoth/jasmin
53d55f6af8c0d5faca51849e5953452a0dd93452
[ "Apache-2.0" ]
null
null
null
import cPickle as pickle from txamqp.content import Content class PDU(Content): pickleProtocol = pickle.HIGHEST_PROTOCOL def pickle(self, data): return pickle.dumps(data, self.pickleProtocol) def __init__(self, body="", children=None, properties=None, pickleProtocol=2): self.pickleProto...
31.305556
104
0.645963
3cce0b538ae2d5377b9554b8a8ad16de300b3f20
1,310
py
Python
write_embeddings_summary.py
sungjae-cho/arithmetic-jordan-net
3eeb9cfa0fdcae9d8655aaa5d6112a91e201ec5f
[ "MIT" ]
1
2019-03-05T14:07:03.000Z
2019-03-05T14:07:03.000Z
write_embeddings_summary.py
sungjae-cho/arithmetic-jordan-net
3eeb9cfa0fdcae9d8655aaa5d6112a91e201ec5f
[ "MIT" ]
null
null
null
write_embeddings_summary.py
sungjae-cho/arithmetic-jordan-net
3eeb9cfa0fdcae9d8655aaa5d6112a91e201ec5f
[ "MIT" ]
1
2019-09-07T16:35:41.000Z
2019-09-07T16:35:41.000Z
''' This file is to archive deprecated code. ''' def write_embeddings_summary(sess, h1): # Reference: https://stackoverflow.com/questions/40849116/how-to-use-tensorboard-embedding-projector dir_logs = os.path.join(config.dir_saved_models(), experiment_name) metadata = os.path.join(dir_logs, 'metadat...
39.69697
105
0.685496
a5eb23ac820077da6b9a687d04fe74c62ef25613
244
py
Python
networkapi/api_task/urls.py
vinicius-marinho/GloboNetworkAPI
94651d3b4dd180769bc40ec966814f3427ccfb5b
[ "Apache-2.0" ]
73
2015-04-13T17:56:11.000Z
2022-03-24T06:13:07.000Z
networkapi/api_task/urls.py
leopoldomauricio/GloboNetworkAPI
3b5b2e336d9eb53b2c113977bfe466b23a50aa29
[ "Apache-2.0" ]
99
2015-04-03T01:04:46.000Z
2021-10-03T23:24:48.000Z
networkapi/api_task/urls.py
shildenbrand/GloboNetworkAPI
515d5e961456cee657c08c275faa1b69b7452719
[ "Apache-2.0" ]
64
2015-08-05T21:26:29.000Z
2022-03-22T01:06:28.000Z
# -*- coding: utf-8 -*- from django.conf.urls import patterns from django.conf.urls import url from networkapi.api_task import views urlpatterns = patterns( '', url(r'^v3/task/(?P<task_id>[\w\d\-\.]+)/$', views.TaskView.as_view()), )
22.181818
74
0.659836
9a4d61b4c436761ff6069be2e39ac836e18b0130
1,540
py
Python
tests/regressions/python/942_lazy_fmap.py
NanmiaoWu/phylanx
295b5f82cc39925a0d53e77ba3b6d02a65204535
[ "BSL-1.0" ]
83
2017-08-27T15:09:13.000Z
2022-01-18T17:03:41.000Z
tests/regressions/python/942_lazy_fmap.py
NanmiaoWu/phylanx
295b5f82cc39925a0d53e77ba3b6d02a65204535
[ "BSL-1.0" ]
808
2017-08-27T15:35:01.000Z
2021-12-14T17:30:50.000Z
tests/regressions/python/942_lazy_fmap.py
NanmiaoWu/phylanx
295b5f82cc39925a0d53e77ba3b6d02a65204535
[ "BSL-1.0" ]
55
2017-08-27T15:09:22.000Z
2022-03-25T12:07:34.000Z
# Copyright (c) 2019 Bita Hasheminezhad # # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) # #942: `fold_left`, `fold_right` and `fmap` do not work with a lazy function import numpy as np from phylanx import Phyl...
24.0625
79
0.670779
de89865ffb2bbf14bedf2bdafbd7d598037f497d
49,966
py
Python
tests/fixtures.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
tests/fixtures.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
tests/fixtures.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
from django.conf import settings # pylint:disable=line-too-long start_experiment_value = { 'master': {'pod': {'api_version': 'v1', 'kind': 'Pod', 'metadata': {'annotations': None, 'cluster_name': None, 'deletion_grace_period_seconds': None, ...
69.882517
2,613
0.433895
5b692fbd72261856cf8ea1fa34eba7eb5287fc7d
1,132
py
Python
discordbot.py
tsu164/emptybot
edbfcd329a2ad0b15f50efdbcaf654bef6cb27c7
[ "MIT" ]
null
null
null
discordbot.py
tsu164/emptybot
edbfcd329a2ad0b15f50efdbcaf654bef6cb27c7
[ "MIT" ]
null
null
null
discordbot.py
tsu164/emptybot
edbfcd329a2ad0b15f50efdbcaf654bef6cb27c7
[ "MIT" ]
1
2020-10-13T04:35:33.000Z
2020-10-13T04:35:33.000Z
from discord.ext import commands import os import traceback bot = commands.Bot(command_prefix='$') token = os.environ['DISCORD_BOT_TOKEN'] @bot.event async def on_command_error(ctx, error): orig_error = getattr(error, "original", error) error_msg = ''.join(traceback.TracebackException.from_exception(orig_erro...
26.952381
89
0.696113
b4e48b22d35e13a54d2e59bdbe3ec37a9d38417a
7,309
py
Python
src/openai_ros/src/openai_ros/robot_envs/wamv_env.py
a4aleem/GymROS-drones
043eab8212d2670e543735294508462a1636256e
[ "MIT" ]
2
2019-09-03T10:16:01.000Z
2020-01-16T06:01:16.000Z
src/openai_ros/src/openai_ros/robot_envs/wamv_env.py
a4aleem/GymROS-drones
043eab8212d2670e543735294508462a1636256e
[ "MIT" ]
null
null
null
src/openai_ros/src/openai_ros/robot_envs/wamv_env.py
a4aleem/GymROS-drones
043eab8212d2670e543735294508462a1636256e
[ "MIT" ]
null
null
null
import numpy import rospy import time from openai_ros import robot_gazebo_env from nav_msgs.msg import Odometry from robotx_gazebo.msg import UsvDrive from openai_ros.openai_ros_common import ROSLauncher class WamvEnv(robot_gazebo_env.RobotGazeboEnv): """Superclass for all WamvEnv environments. """ def _...
34.804762
107
0.621289
102cdf7295ed4b5346110771731a58b1c5c465cc
436
py
Python
deps/PicklingTools170Release/Xm/ptools170/host/tabinpytester.py
dcanelhas/sdf_tracker-LS
2685ce41fc1c8ae12d270c5e2b88afc987af9f45
[ "BSD-3-Clause" ]
13
2017-07-06T12:38:39.000Z
2021-08-10T08:06:18.000Z
deps/PicklingTools170Release/Xm/ptools170/host/tabinpytester.py
dcanelhas/sdf_tracker-LS
2685ce41fc1c8ae12d270c5e2b88afc987af9f45
[ "BSD-3-Clause" ]
2
2016-01-29T22:57:15.000Z
2021-08-29T19:07:09.000Z
Xm/ptools161/host/tabinpytester.py
RichIsMyName/PicklingToolsRepo
a53f64263bc82cef2f50fa02db90fb643c7e0fe0
[ "BSD-3-Clause" ]
4
2017-07-24T01:50:42.000Z
2021-08-10T08:06:20.000Z
#! /usr/bin/xmpy """ Simple example showing how a Python X-Midas primitive can read T4000 files into dictionaries easily. """ from XMinter import * from primitive import * from t4val import recvT4Tab hin = m_open(m_pick(1), 'r') m_sync() while not mcbreak() : dictionary = recvT4Tab(hin) # DON'T HAVE TO ...
21.8
66
0.697248
075d26e45fc5ce116fe12cdc7b958296d24e0f17
8,020
py
Python
PaddleNLP/unarchived/machine_reading_comprehension/utils/preprocess.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
3
2019-04-29T09:12:21.000Z
2021-04-30T02:39:02.000Z
PaddleNLP/unarchived/machine_reading_comprehension/utils/preprocess.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
2
2019-06-26T03:21:49.000Z
2019-09-19T09:43:42.000Z
PaddleNLP/unarchived/machine_reading_comprehension/utils/preprocess.py
FrancisLiang/models-1
e14d5bc1ab36d0dd11977f27cff54605bf99c945
[ "Apache-2.0" ]
2
2018-06-14T13:59:36.000Z
2018-11-14T12:34:47.000Z
############################################################################### # ============================================================================== # Copyright 2017 Baidu.com, Inc. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in ...
36.454545
100
0.623815
003519994ae88149d6bf772e3bf3f44f979594ab
14,891
py
Python
software/contrib/consequencer.py
Bridgee/EuroPi
8c755fa6cf26e0e4715421324898a6b3c8eeb412
[ "CC0-1.0" ]
null
null
null
software/contrib/consequencer.py
Bridgee/EuroPi
8c755fa6cf26e0e4715421324898a6b3c8eeb412
[ "CC0-1.0" ]
null
null
null
software/contrib/consequencer.py
Bridgee/EuroPi
8c755fa6cf26e0e4715421324898a6b3c8eeb412
[ "CC0-1.0" ]
null
null
null
from europi import * import machine from time import ticks_diff, ticks_ms from random import randint, uniform from europi_script import EuroPiScript ''' Consequencer author: Nik Ansell (github.com/gamecat69) date: 2022-02-05 labels: sequencer, triggers, drums, randomness A gate and CV sequencer inspired by Grids from...
31.88651
253
0.636358
2aee1e57202b837a0e91e1fbffb628e84b589ee9
3,516
py
Python
unittests/test_app.py
martinmartinchan/cookbook
361d2470971d3700118542de28726117ed5b175e
[ "MIT" ]
null
null
null
unittests/test_app.py
martinmartinchan/cookbook
361d2470971d3700118542de28726117ed5b175e
[ "MIT" ]
null
null
null
unittests/test_app.py
martinmartinchan/cookbook
361d2470971d3700118542de28726117ed5b175e
[ "MIT" ]
null
null
null
def test_get_recipes_with_empty_database(client): result = client.get("/recipes") assert not result.json['success'] assert result.json['code'] == 404 def test_add_correct_recipe(client): result = client.post('/addrecipe', json={ 'password': 'Troglodon5986', 'name': 'testrecipe', 'servings': 2, 'description...
25.114286
68
0.648464
cc629b9acfaa20c7bbd81de7e6bd1f2efdf3cf59
2,497
py
Python
src/spaceone/inventory/model/network_policy_model.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/model/network_policy_model.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/model/network_policy_model.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
from mongoengine import * from spaceone.core.model.mongo_model import MongoModel from spaceone.inventory.model.zone_model import Zone from spaceone.inventory.model.region_model import Region from spaceone.inventory.model.collection_info_model import CollectionInfo from spaceone.inventory.model.reference_resource_model...
30.45122
86
0.579495
379b77aac81f70a1608ca74430ecd78d172d1a55
5,155
py
Python
huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_instance_users_entity.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_instance_users_entity.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_instance_users_entity.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ShowInstanceUsersEntity: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): Th...
26.30102
87
0.572454
bacce1ae8e0aeded30095ab6e872f5d2c7bdecd9
6,353
py
Python
frameworks/kafka/tests/test_tls.py
vibhujain/dcos-commons
dad8ebdf5c9a21988dad054a77e775e55e499bd1
[ "Apache-2.0" ]
null
null
null
frameworks/kafka/tests/test_tls.py
vibhujain/dcos-commons
dad8ebdf5c9a21988dad054a77e775e55e499bd1
[ "Apache-2.0" ]
null
null
null
frameworks/kafka/tests/test_tls.py
vibhujain/dcos-commons
dad8ebdf5c9a21988dad054a77e775e55e499bd1
[ "Apache-2.0" ]
null
null
null
import json import logging import pytest import sdk_cmd import sdk_install import sdk_networks import sdk_recovery import sdk_security import sdk_utils from security import transport_encryption, cipher_suites from tests import config pytestmark = [ sdk_utils.dcos_ee_only, pytest.mark.skipif( sdk_uti...
32.579487
100
0.701401
a602e1089f9a59400ab88cd97ca60d57693c4001
1,506
py
Python
model/quantization_head.py
chrisbyd/ContrastiveVehicleQuant
bf471988868cf0cb9713002dd1d6726272ecce7f
[ "MIT" ]
null
null
null
model/quantization_head.py
chrisbyd/ContrastiveVehicleQuant
bf471988868cf0cb9713002dd1d6726272ecce7f
[ "MIT" ]
1
2022-03-07T09:06:06.000Z
2022-03-07T09:06:06.000Z
model/quantization_head.py
chrisbyd/ContrastiveVehicleQuant
bf471988868cf0cb9713002dd1d6726272ecce7f
[ "MIT" ]
null
null
null
import torch.nn as nn import torch class GPQSoftMaxNet(nn.Module): def __init__(self, training, intn_word=16, len_code=12, n_book=12): super(GPQSoftMaxNet, self).__init__() self.word = intn_word self.len_code = len_code self.n_book = n_book self.training = training...
35.023256
105
0.600266
cc6e9bd519fd837138ba427f91cd59b73fcb37b7
24,251
py
Python
pytorchrl/agent/algorithms/sac.py
PyTorchRL/pytorchrl
055843ab58a06ba1f77da73082be6f23cf453ddd
[ "MIT" ]
20
2021-01-12T16:31:34.000Z
2022-03-18T00:31:29.000Z
pytorchrl/agent/algorithms/sac.py
PyTorchRL/pytorchrl
055843ab58a06ba1f77da73082be6f23cf453ddd
[ "MIT" ]
4
2021-01-19T09:29:58.000Z
2021-09-29T12:21:08.000Z
pytorchrl/agent/algorithms/sac.py
PyTorchRL/pytorchrl
055843ab58a06ba1f77da73082be6f23cf453ddd
[ "MIT" ]
2
2021-01-12T16:07:37.000Z
2021-02-01T21:09:14.000Z
import itertools import numpy as np from copy import deepcopy import torch import torch.nn as nn import torch.optim as optim import pytorchrl as prl from pytorchrl.agent.algorithms.base import Algorithm from pytorchrl.agent.algorithms.utils import get_gradients, set_gradients from pytorchrl.agent.algorithms.policy_lo...
36.087798
111
0.584718