hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
78a3c249081829ff15e4f72762973488c3073d35
53,787
py
Python
ares/static/SpectralSynthesis.py
eklem1/ares
df39056065f0493e3c922fb50ced2dc6d1bc79a2
[ "MIT" ]
null
null
null
ares/static/SpectralSynthesis.py
eklem1/ares
df39056065f0493e3c922fb50ced2dc6d1bc79a2
[ "MIT" ]
null
null
null
ares/static/SpectralSynthesis.py
eklem1/ares
df39056065f0493e3c922fb50ced2dc6d1bc79a2
[ "MIT" ]
null
null
null
""" SpectralSynthesis.py Author: Jordan Mirocha Affiliation: McGill Created on: Sat 25 May 2019 09:58:14 EDT Description: """ import time import numpy as np from ..util import Survey from ..util import ProgressBar from ..phenom import Madau1995 from ..util import ParameterFile from scipy.optimize import curve_fit...
37.665966
119
0.445981
d31b2a6933989c70fda77231552e1edb2868a85c
12,212
py
Python
payments/mtn_old.py
naamara/blink
326c035b2f0ef0feae4cd7aa2d4e73fa4a40171a
[ "Unlicense", "MIT" ]
null
null
null
payments/mtn_old.py
naamara/blink
326c035b2f0ef0feae4cd7aa2d4e73fa4a40171a
[ "Unlicense", "MIT" ]
10
2019-12-26T17:31:31.000Z
2022-03-21T22:17:33.000Z
payments/mtn_old.py
naamara/blink
326c035b2f0ef0feae4cd7aa2d4e73fa4a40171a
[ "Unlicense", "MIT" ]
null
null
null
'''mtn sdb''' import remit.settings as settings from datetime import datetime import requests, base64 from BeautifulSoup import BeautifulSoup from remit.tasks import send_sms, send_email from remit.utils import debug, mailer from xml.sax.saxutils import escape from xml.sax.saxutils import quoteattr import json import x...
29.355769
186
0.676384
688d526bce5f41220174e84f529dd979bf50ddb6
7,466
py
Python
pysnmp-with-texts/JUNIPER-JS-IPSEC-VPN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/JUNIPER-JS-IPSEC-VPN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/JUNIPER-JS-IPSEC-VPN-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module JUNIPER-JS-IPSEC-VPN-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/JUNIPER-JS-IPSEC-VPN-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:59:36 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7....
135.745455
628
0.79199
7103a533118d685e45bf20536aaa6183d73d3d11
10,719
py
Python
src/feature_engineering/temporal_features.py
PacktPublishing/Modern-Time-Series-Forecasting-with-Python-
391ae9c8c8c5b2fba20a8ada8e48e68eb46f118a
[ "MIT" ]
10
2021-08-09T11:06:28.000Z
2022-03-07T14:47:36.000Z
src/feature_engineering/temporal_features.py
PacktPublishing/Modern-Time-Series-Forecasting-with-Python-
391ae9c8c8c5b2fba20a8ada8e48e68eb46f118a
[ "MIT" ]
null
null
null
src/feature_engineering/temporal_features.py
PacktPublishing/Modern-Time-Series-Forecasting-with-Python-
391ae9c8c8c5b2fba20a8ada8e48e68eb46f118a
[ "MIT" ]
null
null
null
import re import warnings from typing import List, Optional, Tuple import numpy as np import pandas as pd from pandas.api.types import is_numeric_dtype from pandas.tseries import offsets from pandas.tseries.frequencies import to_offset # adapted from gluonts def time_features_from_frequency_str(freq_str: str) -> Lis...
36.090909
126
0.613397
295a6963171895c3ea340fe04913499c33c32bc3
8,939
py
Python
torchmin/trustregion/base.py
macio232/pytorch-minimize
5724f8540b14c4a4427ea978075bfe5e78838602
[ "MIT" ]
null
null
null
torchmin/trustregion/base.py
macio232/pytorch-minimize
5724f8540b14c4a4427ea978075bfe5e78838602
[ "MIT" ]
null
null
null
torchmin/trustregion/base.py
macio232/pytorch-minimize
5724f8540b14c4a4427ea978075bfe5e78838602
[ "MIT" ]
null
null
null
""" Trust-region optimization. Code ported from SciPy to PyTorch Copyright (c) 2001-2002 Enthought, Inc. 2003-2019, SciPy Developers. All rights reserved. """ from abc import ABC, abstractmethod import torch from torch.linalg import norm from scipy.optimize.optimize import OptimizeResult, _status_message from ..fun...
33.732075
83
0.601633
db49114d078cd832c4195978f43613f9d10a79be
5,369
py
Python
6. Mitosis Simulation/mitosis_sim.py
soumitradev/codingtrain-challenges-python
7487f69405f106629a64b71e255a61d98623c65d
[ "MIT" ]
1
2021-09-06T05:18:15.000Z
2021-09-06T05:18:15.000Z
6. Mitosis Simulation/mitosis_sim.py
PseudoCodeNerd/codingtrain-challenges-python
7487f69405f106629a64b71e255a61d98623c65d
[ "MIT" ]
null
null
null
6. Mitosis Simulation/mitosis_sim.py
PseudoCodeNerd/codingtrain-challenges-python
7487f69405f106629a64b71e255a61d98623c65d
[ "MIT" ]
1
2020-08-04T13:19:22.000Z
2020-08-04T13:19:22.000Z
# desc: In this coding challenge (originally done at The Coding Train), I attempt to code a mitosis simulation in pygame. # A part of Coding Train's Challenges implementation in Python series. # @author: PseudoCodeNerd # Importing libraries import pygame, sys, random, math from pygame import gfxdraw # Setting screen ...
31.769231
121
0.597132
cc6dcce50d5065d04d0ebe7738b0e20d7de30b35
6,809
py
Python
httprunner/report.py
wishchen/HttpRunnerManager
1e72baa8a84ca70124af908ac683bf88b869d48a
[ "MIT" ]
null
null
null
httprunner/report.py
wishchen/HttpRunnerManager
1e72baa8a84ca70124af908ac683bf88b869d48a
[ "MIT" ]
null
null
null
httprunner/report.py
wishchen/HttpRunnerManager
1e72baa8a84ca70124af908ac683bf88b869d48a
[ "MIT" ]
null
null
null
# encoding: utf-8 import io import os import platform import time import unittest from base64 import b64encode from collections import Iterable, OrderedDict from datetime import datetime from httprunner import logger from httprunner.__about__ import __version__ from httprunner.compat import basestring, bytes, json, n...
34.388889
92
0.639595
8d31826c059a76cdf550207a0652939350a22f2f
35,279
py
Python
x690/types.py
exhuma/x690
42c1c62b15ba9883204af96bfa7d8f88da469dd1
[ "MIT" ]
null
null
null
x690/types.py
exhuma/x690
42c1c62b15ba9883204af96bfa7d8f88da469dd1
[ "MIT" ]
null
null
null
x690/types.py
exhuma/x690
42c1c62b15ba9883204af96bfa7d8f88da469dd1
[ "MIT" ]
2
2021-07-09T10:11:28.000Z
2021-07-15T06:40:49.000Z
# Type-Hinting is done in a stub file """ Overview ======== This module contains the encoding/decoding logic for data types as defined in :term:`X.690`. Each type is made available via a registry dictionary on :py:class:`~.X690Type` and can be retrieved via :py:meth:`~.X690Type.get`. Additionally, given a :py:class:...
30.465458
83
0.600074
6d97037a4ee3c679a9cb47bae08b341225f14d6b
4,302
py
Python
homeassistant/components/whois/sensor.py
mikan-megane/core
837220cce40890e296920d33a623adbc11bd15a6
[ "Apache-2.0" ]
4
2020-08-10T20:02:24.000Z
2022-01-31T02:14:22.000Z
homeassistant/components/whois/sensor.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
79
2020-07-23T07:13:37.000Z
2022-03-22T06:02:37.000Z
homeassistant/components/whois/sensor.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
4
2017-01-10T04:17:33.000Z
2021-09-02T16:37:24.000Z
"""Get WHOIS information for a given host.""" from datetime import timedelta import logging import voluptuous as vol import whois from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity from homeassistant.const import CONF_DOMAIN, CONF_NAME, TIME_DAYS import homeassistant.helpers.config_validation a...
30.510638
85
0.612041
0bddcb791c2c5dd9c7684be215f3a15b2b20d0b2
3,459
py
Python
Scripts/JudgeSystem.py
MaowMan/pyjudge
ac3ab2d1da796326cec251feb3f4b558a3939c70
[ "MIT" ]
null
null
null
Scripts/JudgeSystem.py
MaowMan/pyjudge
ac3ab2d1da796326cec251feb3f4b558a3939c70
[ "MIT" ]
null
null
null
Scripts/JudgeSystem.py
MaowMan/pyjudge
ac3ab2d1da796326cec251feb3f4b558a3939c70
[ "MIT" ]
null
null
null
import json as json import csv as csv from Scripts.JudgeBase import JudgeObj,JudgeError from Scripts.JudgeMain import JudgeMain class JudgeSystem(JudgeObj): def __init__(self): super(JudgeSystem,self).__init__() self.SetupAsset() self.CheckFileExists() self.MainProcess() s...
39.306818
132
0.610581
9197dcce40c6ca3ebf0646b94e3479331fdbcde8
1,585
py
Python
anki/importing/anki1.py
bdunnette/omeka2anki
6280b4a17f83a930cc053273fb4f36f691c49b83
[ "MIT" ]
2
2015-03-21T16:26:07.000Z
2021-05-24T11:40:04.000Z
src/anki/importing/anki1.py
jlitven/vexer
bc3b836771795acbba64f492b5bfb731adf91674
[ "MIT" ]
null
null
null
src/anki/importing/anki1.py
jlitven/vexer
bc3b836771795acbba64f492b5bfb731adf91674
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright: Damien Elmes <anki@ichi2.net> # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import traceback, os, re from anki.lang import _ from anki.upgrade import Upgrader from anki.importing.anki2 import Anki2Importer class Anki1Importer(Anki2Importer): d...
32.346939
78
0.569716
64969bcfc56531b521e3a9d750a632a175b0583a
6,728
py
Python
nodechecker/nodechecker/lib/python/nodechecker/context.py
open-infinity/health-monitoring
47819485f9a7ffae1b326af09b23a159e4aeb190
[ "Apache-2.0" ]
null
null
null
nodechecker/nodechecker/lib/python/nodechecker/context.py
open-infinity/health-monitoring
47819485f9a7ffae1b326af09b23a159e4aeb190
[ "Apache-2.0" ]
null
null
null
nodechecker/nodechecker/lib/python/nodechecker/context.py
open-infinity/health-monitoring
47819485f9a7ffae1b326af09b23a159e4aeb190
[ "Apache-2.0" ]
null
null
null
import os import node import util import threading import filereader import logging import logging.handlers import notification.parser import notification.manager class Context(object): def __init__(self, options=None, conf=None, node_manager_obj=None): # ---------------- Default values ---------------...
38.666667
124
0.608799
5fe1198fcbf6e0f31ce863c3d1a20abba2fe6eb6
410
py
Python
exercicios/exercicio082.py
Helton-Rubens/Python-3
eb6d5ee71bcb2a2a80de4eaea942bd0c41d846b7
[ "MIT" ]
null
null
null
exercicios/exercicio082.py
Helton-Rubens/Python-3
eb6d5ee71bcb2a2a80de4eaea942bd0c41d846b7
[ "MIT" ]
null
null
null
exercicios/exercicio082.py
Helton-Rubens/Python-3
eb6d5ee71bcb2a2a80de4eaea942bd0c41d846b7
[ "MIT" ]
null
null
null
lista = [] par = [] impar = [] while True: lista.append(int(input('Digite um número: '))) dec = str(input('Quer continuar? ')).strip().lower() if dec[0] in 'Nn': break for i in lista: if i % 2 == 0: par.append(i) else: impar.append(i) print(f'''Você digitou os números: {lista...
24.117647
56
0.592683
a4122d5f707ff6099836f06d9a64b21452434659
902
py
Python
src/SocialNetwork_API/models/user_types.py
HoangNguyenHuy/SocialNetwork
495062d9b85cfdaa3df41002c2c4a88ab4b53446
[ "MIT" ]
null
null
null
src/SocialNetwork_API/models/user_types.py
HoangNguyenHuy/SocialNetwork
495062d9b85cfdaa3df41002c2c4a88ab4b53446
[ "MIT" ]
null
null
null
src/SocialNetwork_API/models/user_types.py
HoangNguyenHuy/SocialNetwork
495062d9b85cfdaa3df41002c2c4a88ab4b53446
[ "MIT" ]
null
null
null
from django.db import models class TinyIntegerField(models.SmallIntegerField): def db_type(self, connection): if connection.settings_dict['ENGINE'] == 'django.db.backends.mysql': return "tinyint" else: return super(TinyIntegerField, self).db_type(connection) cl...
34.692308
77
0.662971
ba19d773555568b2e4dd3c8d9d918a270e0a3efe
53,012
py
Python
tensorflow/contrib/layers/python/layers/feature_column.py
gameon67/tensorflow
cf831df71d4d2e0ac55bef4efdcda4962c456290
[ "Apache-2.0" ]
2
2020-06-30T05:52:37.000Z
2021-01-21T04:16:39.000Z
tensorflow/contrib/layers/python/layers/feature_column.py
Dinesh-3/tensorflow
be647ad9512f7d2b891494ef8abbbde46e2e0663
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/layers/python/layers/feature_column.py
Dinesh-3/tensorflow
be647ad9512f7d2b891494ef8abbbde46e2e0663
[ "Apache-2.0" ]
2
2020-06-24T11:07:08.000Z
2020-08-09T00:02:58.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.414126
80
0.664982
9f14f84fd6ba2ae57c89bbec0c01047a04b774f3
574
py
Python
scripts/india_nhm/districts/__init__.py
SenthamizhanV/data
9ba7b94ba4163a7dc2a7c31ba4ac7a9e69908ee0
[ "Apache-2.0" ]
23
2017-04-12T13:45:34.000Z
2020-04-30T22:41:37.000Z
scripts/india_nhm/districts/__init__.py
SenthamizhanV/data
9ba7b94ba4163a7dc2a7c31ba4ac7a9e69908ee0
[ "Apache-2.0" ]
1
2021-01-11T18:19:37.000Z
2021-01-11T19:27:25.000Z
scripts/india_nhm/districts/__init__.py
SenthamizhanV/data
9ba7b94ba4163a7dc2a7c31ba4ac7a9e69908ee0
[ "Apache-2.0" ]
7
2020-11-21T20:45:06.000Z
2021-05-28T12:29:52.000Z
# Copyright 2020 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
44.153846
74
0.764808
0c55b6cf996bbba1aac370287cdc09446420c4a4
1,037
py
Python
app/user_content.py
mpalaiokostas/dash-app-template
f149f9968f2d6fdbf65f8842232fb04423bbe3a4
[ "MIT" ]
null
null
null
app/user_content.py
mpalaiokostas/dash-app-template
f149f9968f2d6fdbf65f8842232fb04423bbe3a4
[ "MIT" ]
null
null
null
app/user_content.py
mpalaiokostas/dash-app-template
f149f9968f2d6fdbf65f8842232fb04423bbe3a4
[ "MIT" ]
null
null
null
from app.view_components import Tab from app.pages import page_about, page_example_static, page_example_dynamic class UserContent: def get_user_settings(self): return { "app_title": "example title", "app_subtitle": "example subtitle", "contact_email": "dev@dev.com", ...
30.5
75
0.527483
2e7f8a4aaae9a74fedaf20a9e461503952cb5c20
1,612
py
Python
djangoxpay/models.py
ajharry69/django-xpay
ebfe09ffa615293dbea6b6d8e1ffd65f8d283d15
[ "Apache-2.0" ]
null
null
null
djangoxpay/models.py
ajharry69/django-xpay
ebfe09ffa615293dbea6b6d8e1ffd65f8d283d15
[ "Apache-2.0" ]
5
2021-03-30T14:04:24.000Z
2021-09-22T19:21:25.000Z
djangoxpay/models.py
ajharry69/django-xpay
ebfe09ffa615293dbea6b6d8e1ffd65f8d283d15
[ "Apache-2.0" ]
1
2020-11-30T04:46:48.000Z
2020-11-30T04:46:48.000Z
import json class BaseModel: def __str__(self): return json.dumps(self.json) def __repr__(self): return self.__str__() @property def json(self): return self.__dict__ class Money(BaseModel): DEFAULT_CURRENCY = 'usd' CURRENCIES = list(map(lambda c: c.upper(), [ ...
48.848485
119
0.483871
cdf99fd140140f1ab17dba2d46f39753a325c761
23,689
py
Python
synapse/event_auth.py
LouisMT/synapse
1241156c82644d5609f45659607a356af5d8fe08
[ "Apache-2.0" ]
null
null
null
synapse/event_auth.py
LouisMT/synapse
1241156c82644d5609f45659607a356af5d8fe08
[ "Apache-2.0" ]
null
null
null
synapse/event_auth.py
LouisMT/synapse
1241156c82644d5609f45659607a356af5d8fe08
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014 - 2016 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
33.506365
85
0.621428
3d909e30f9a6eb605e50a4baffed001cbb473cf3
6,813
py
Python
bin/dynatrace_dcrum_cas.py
Dynatrace/DCRUM-Splunk-Application
ae6f5f766750bfc56d2c31d75256320341b50f35
[ "BSD-3-Clause" ]
2
2016-06-20T02:02:34.000Z
2021-12-15T12:07:51.000Z
bin/dynatrace_dcrum_cas.py
Dynatrace/DCRUM-Splunk-Application
ae6f5f766750bfc56d2c31d75256320341b50f35
[ "BSD-3-Clause" ]
null
null
null
bin/dynatrace_dcrum_cas.py
Dynatrace/DCRUM-Splunk-Application
ae6f5f766750bfc56d2c31d75256320341b50f35
[ "BSD-3-Clause" ]
2
2020-01-20T04:36:55.000Z
2021-03-24T08:00:11.000Z
#!/usr/bin/env python # # Copyright 2013 Splunk, 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 law ...
38.710227
104
0.678702
371cc22025ebd61e5209d2547aa8d0bfc4d1a488
910
py
Python
packages/std/nodes/std___Button0/widgets/std___Button0___main_widget___METACODE.py
lidong1266/Ryven-Switch
68d1f71e81d6564196f44ca49d5903f06db6a4d9
[ "MIT" ]
18
2021-01-18T09:52:41.000Z
2022-03-22T10:48:44.000Z
packages/std/nodes/std___Button0/widgets/std___Button0___main_widget___METACODE.py
xamofb-xsk/Ryven
8c3dcc613098863ae9fb747e62c0bb9d9eb4cef1
[ "MIT" ]
null
null
null
packages/std/nodes/std___Button0/widgets/std___Button0___main_widget___METACODE.py
xamofb-xsk/Ryven
8c3dcc613098863ae9fb747e62c0bb9d9eb4cef1
[ "MIT" ]
3
2021-01-18T09:49:42.000Z
2022-03-22T10:48:47.000Z
from NIWENV import * # from PySide2.QtWidgets import ... # from PySide2.QtCore import ... # from PySide2.QtGui import ... from PySide2.QtWidgets import QPushButton class %CLASS%(QPushButton, MWB): def __init__(self, params): MWB.__init__(self, params) QPushButton.__init__(self) ...
22.195122
73
0.571429
84ca4ba9ef3eb1880cc9368c0b3eebf69485c7c5
4,552
py
Python
spammsand/water_to_duals/plot_z_15_water.py
FreeON/spammpack
fdb1cd8be99078e75dc627b00247f7c017c9579c
[ "BSD-3-Clause" ]
2
2021-07-14T20:27:25.000Z
2021-09-29T03:03:00.000Z
spammsand/water_to_duals/plot_z_15_water.py
FreeON/spammpack
fdb1cd8be99078e75dc627b00247f7c017c9579c
[ "BSD-3-Clause" ]
1
2015-07-27T04:37:16.000Z
2015-07-27T15:11:04.000Z
spammsand/water_to_duals/plot_z_15_water.py
FreeON/spammpack
fdb1cd8be99078e75dc627b00247f7c017c9579c
[ "BSD-3-Clause" ]
3
2015-08-19T22:52:57.000Z
2021-09-29T03:02:59.000Z
# Recorded script from Mayavi2 from numpy import array try: engine = mayavi.engine except NameError: from mayavi.api import Engine engine = Engine() engine.start() if len(engine.scenes) == 0: engine.new_scene() # ------------------------------------------- from mayavi.modules.iso_surface import Is...
37.933333
127
0.773506
0adde8d08724793173dcbdcb409fa1b0e0393bde
2,312
py
Python
uno_ai/cards.py
unixpickle/uno-ai
3124afc8fa6b0cbcced95ef03ed9672cdb4f35a7
[ "BSD-2-Clause" ]
21
2019-02-08T06:30:43.000Z
2021-05-02T18:57:15.000Z
uno_ai/cards.py
unixpickle/uno-ai
3124afc8fa6b0cbcced95ef03ed9672cdb4f35a7
[ "BSD-2-Clause" ]
1
2019-02-24T10:53:27.000Z
2019-08-06T15:27:58.000Z
uno_ai/cards.py
unixpickle/uno-ai
3124afc8fa6b0cbcced95ef03ed9672cdb4f35a7
[ "BSD-2-Clause" ]
3
2019-02-08T01:47:48.000Z
2019-08-08T22:00:15.000Z
from enum import Enum CARD_VEC_SIZE = 10 + 6 + 4 def full_deck(): """ Create a complete Uno deck. """ deck = [] for color in [Color.RED, Color.ORANGE, Color.GREEN, Color.BLUE]: for _ in range(2): for number in range(1, 10): deck.append(Card(CardType.NUMERAL, c...
25.688889
82
0.552336
89bfe13a04d4cb952a34b12e7f84e6616bfa60b6
2,425
py
Python
scripts/md_table_generator.py
hackjustu/Project-Markdown-Table-Generator
db82430eca7bb0fe892e2325fea708b992d4db65
[ "MIT" ]
1
2017-01-17T04:00:21.000Z
2017-01-17T04:00:21.000Z
scripts/md_table_generator.py
hackjustu/Project-Markdown-Table-Generator
db82430eca7bb0fe892e2325fea708b992d4db65
[ "MIT" ]
null
null
null
scripts/md_table_generator.py
hackjustu/Project-Markdown-Table-Generator
db82430eca7bb0fe892e2325fea708b992d4db65
[ "MIT" ]
1
2016-11-14T11:26:13.000Z
2016-11-14T11:26:13.000Z
#!/usr/bin/python import os import re import sys import json current_dir = os.path.dirname(os.path.realpath(__file__)) sys.path.append(current_dir + "/lib") import markdown2 # Compose a markdown inline-style link def compose_markdown_link( name, url ): return "[" + name + "]" + "(" + url + ")" # Compose a group...
28.197674
85
0.613196
f45e7125488d3d377dab69d1efbd3971dcd0c4ad
1,018
py
Python
paper_util_scripts/segmentation.py
ehsanasgari/dimotif
6a969edc5324a48eee359d8137ec0e410bf78dd7
[ "Apache-2.0" ]
16
2018-08-13T11:15:11.000Z
2022-01-01T13:11:44.000Z
paper_util_scripts/segmentation.py
ehsanasgari/dimotif
6a969edc5324a48eee359d8137ec0e410bf78dd7
[ "Apache-2.0" ]
1
2018-11-02T15:39:29.000Z
2018-11-16T10:59:31.000Z
paper_util_scripts/segmentation.py
ehsanasgari/dimotif
6a969edc5324a48eee359d8137ec0e410bf78dd7
[ "Apache-2.0" ]
4
2019-04-13T07:44:30.000Z
2021-03-16T01:53:36.000Z
import sys sys.path.append('../') from utility.file_utility import FileUtility import collections import pandas as pd import tqdm import itertools import numpy as np from make_representations.cpe_efficient import train_cpe from multiprocessing import Pool ############################################################# #...
30.848485
104
0.670923
0473deb0fb6fa7eef6656e107d8b215a6363d73b
7,281
py
Python
boss/api/deployment/preset/node.py
cham11ng/boss
71e67cf2c4411787d319e2bd842fd93402aeaef3
[ "MIT" ]
25
2017-10-23T09:22:06.000Z
2021-09-15T11:04:51.000Z
boss/api/deployment/preset/node.py
cham11ng/boss
71e67cf2c4411787d319e2bd842fd93402aeaef3
[ "MIT" ]
37
2017-10-18T15:40:18.000Z
2021-12-19T12:59:29.000Z
boss/api/deployment/preset/node.py
cham11ng/boss
71e67cf2c4411787d319e2bd842fd93402aeaef3
[ "MIT" ]
17
2017-10-19T08:39:09.000Z
2021-11-01T09:35:05.000Z
# -*- coding: utf-8 -*- ''' Node Application Deployment preset. This would be useful for deploying node js projects to the remote server. Here the source is built locally and uploaded to the server, then the application service is started on restarted on the remote server. ''' from datetime import datetime from fabri...
28.892857
89
0.687406
8095b07a541d997e0bfd625379d33eb2a72bbe57
5,156
py
Python
IRIS_data_download/IRIS_download_support/obspy/io/gse2/paz.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-03-05T01:03:01.000Z
2020-12-17T05:04:07.000Z
IRIS_data_download/IRIS_download_support/obspy/io/gse2/paz.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
4
2021-03-31T19:25:55.000Z
2021-12-13T20:32:46.000Z
IRIS_data_download/IRIS_download_support/obspy/io/gse2/paz.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-09-08T19:33:40.000Z
2021-04-05T09:47:50.000Z
#!/usr/bin/env python # ------------------------------------------------------------------ # Filename: paz.py # Purpose: Python routines for reading GSE poles and zero files # Author: Moritz Beyreuther # Email: moritz.beyreuther@geophysik.uni-muenchen.de # # Copyright (C) 2008-2012 Moritz Beyreuther # -----------...
32.024845
79
0.592126
232cb9ff9444dfdc468f4a21bd1f91cb5a8d8d0e
3,353
py
Python
stix_shifter/stix_transmission/stix_transmission.py
dalebowie/stix-shifter
6f35d491ec41ae147d571367fe06e2bfd3d6c418
[ "Apache-2.0" ]
null
null
null
stix_shifter/stix_transmission/stix_transmission.py
dalebowie/stix-shifter
6f35d491ec41ae147d571367fe06e2bfd3d6c418
[ "Apache-2.0" ]
2
2021-02-01T13:43:54.000Z
2021-02-02T20:51:06.000Z
stix_shifter/stix_transmission/stix_transmission.py
dalebowie/stix-shifter
6f35d491ec41ae147d571367fe06e2bfd3d6c418
[ "Apache-2.0" ]
1
2021-12-29T09:31:49.000Z
2021-12-29T09:31:49.000Z
import importlib from stix_shifter_utils.utils.error_response import ErrorResponder RESULTS = 'results' QUERY = 'query' DELETE = 'delete' STATUS = 'status' PING = 'ping' IS_ASYNC = 'is_async' class StixTransmission: init_error = None def __init__(self, module, connection, configuration): module = ...
36.445652
112
0.631077
bc114bddb14dc32178659de2bd8d0feb056e737c
10,398
py
Python
codes/models/classifiers/cifar_resnet_branched.py
neonbjb/DL-Art-School
a6f0f854b987ac724e258af8b042ea4459a571bc
[ "Apache-2.0" ]
12
2020-12-13T12:45:03.000Z
2022-03-29T09:58:15.000Z
codes/models/classifiers/cifar_resnet_branched.py
neonbjb/DL-Art-School
a6f0f854b987ac724e258af8b042ea4459a571bc
[ "Apache-2.0" ]
1
2020-12-31T01:12:45.000Z
2021-03-31T11:43:52.000Z
codes/models/classifiers/cifar_resnet_branched.py
neonbjb/DL-Art-School
a6f0f854b987ac724e258af8b042ea4459a571bc
[ "Apache-2.0" ]
3
2020-12-14T06:04:04.000Z
2020-12-26T19:11:41.000Z
"""resnet in pytorch [1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun. Deep Residual Learning for Image Recognition https://arxiv.org/abs/1512.03385v1 """ import torch import torch.nn as nn import torch.distributed as dist from models.switched_conv.switched_conv_hard_routing import SwitchNorm, RouteT...
37.003559
118
0.635026
08558f3d08b639588a600822dbd7f26554c54c86
4,876
py
Python
g2d_pyg.py
Kekko01/My-Hitori
3d34bb4035b1a8ac31d8e8f30faef09bb2de0acb
[ "MIT" ]
1
2021-12-03T13:27:43.000Z
2021-12-03T13:27:43.000Z
g2d_pyg.py
Kekko01/My-Hitori
3d34bb4035b1a8ac31d8e8f30faef09bb2de0acb
[ "MIT" ]
null
null
null
g2d_pyg.py
Kekko01/My-Hitori
3d34bb4035b1a8ac31d8e8f30faef09bb2de0acb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' @author Michele Tomaiuolo - http://www.ce.unipr.it/people/tomamic @license This software is free - http://www.gnu.org/licenses/gpl.html ''' from tkinter import Tk, messagebox, simpledialog import subprocess, sys try: import pygame except: subprocess.call([sys.executable, "-m", "pip"...
30.098765
105
0.613823
ab31318c000be6a2a7a0ee7b78d929997061b300
9,525
py
Python
stackinawsgi/wsgi/app.py
BenjamenMeyer/stackInAWSGI
8ac6be173bb08addc09214ba7dc9f91727d0221a
[ "Apache-2.0" ]
2
2016-08-12T19:11:13.000Z
2017-11-19T20:52:47.000Z
stackinawsgi/wsgi/app.py
BenjamenMeyer/stackInAWSGI
8ac6be173bb08addc09214ba7dc9f91727d0221a
[ "Apache-2.0" ]
16
2016-05-22T05:11:12.000Z
2016-07-14T00:57:07.000Z
stackinawsgi/wsgi/app.py
BenjamenMeyer/stackInAWSGI
8ac6be173bb08addc09214ba7dc9f91727d0221a
[ "Apache-2.0" ]
1
2016-05-15T19:01:35.000Z
2016-05-15T19:01:35.000Z
""" Stack-In-A-WSGI Application """ from __future__ import absolute_import import logging from collections import Iterable from .request import Request from .response import Response from stackinawsgi.session.service import StackInAWsgiSessionManager from stackinawsgi.admin.admin import StackInAWsgiAdmin from stack...
32.070707
78
0.586667
dacddbf78233076710e85402b717f7264adbcce0
479
py
Python
libraries/botbuilder-ai/botbuilder/ai/about.py
victor-kironde/botbuilder-python
e893d9b036d7cf33cf9c9afd1405450c354cdbcd
[ "MIT" ]
1
2020-09-05T11:05:53.000Z
2020-09-05T11:05:53.000Z
libraries/botbuilder-ai/botbuilder/ai/about.py
victor-kironde/botbuilder-python
e893d9b036d7cf33cf9c9afd1405450c354cdbcd
[ "MIT" ]
13
2020-09-05T11:06:05.000Z
2020-10-29T05:01:19.000Z
libraries/botbuilder-ai/botbuilder/ai/about.py
admdev8/botbuilder-python
13190c4e3c0f3586515a079ed5b9e92771b04261
[ "MIT" ]
1
2020-10-01T07:34:07.000Z
2020-10-01T07:34:07.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import os __title__ = "botbuilder-ai" __version__ = ( os.environ["packageVersion"] if "packageVersion" in os.environ else "4.10.0" ) __uri__ = "https://www.github.com/Microsoft/botbuilder-python" __author__ = "...
31.933333
81
0.736952
8b345fd7ca7eb452c913cf4bca6e626a6cfeaa9e
4,652
py
Python
samples/python/wip/python_django/13.core-bot/dialogs/booking_dialog.py
Aliacf21/BotBuilder-Samples
be48548edafd4efdc074f5a59ef2bb3af735ad9a
[ "MIT" ]
1,998
2019-05-07T06:33:22.000Z
2022-03-31T12:59:15.000Z
samples/python/wip/python_django/13.core-bot/dialogs/booking_dialog.py
Aliacf21/BotBuilder-Samples
be48548edafd4efdc074f5a59ef2bb3af735ad9a
[ "MIT" ]
1,526
2020-09-05T18:57:14.000Z
2020-12-03T01:45:40.000Z
samples/python/wip/python_django/13.core-bot/dialogs/booking_dialog.py
stevkan/BotBuilder-Samples
75a21b412d8873906bed3460f7c5f0940a067d58
[ "MIT" ]
2,820
2016-09-21T03:47:43.000Z
2019-05-03T15:12:46.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """Flight booking dialog.""" from botbuilder.dialogs import WaterfallDialog, WaterfallStepContext, DialogTurnResult from botbuilder.dialogs.prompts import ConfirmPrompt, TextPrompt, PromptOptions from botbuilder.core import M...
38.766667
88
0.655202
15e8bbd2852cae98927c7aff9d6c450d857e8291
1,229
py
Python
migrations/versions/5488bd12618c_article_migration.py
Washikokevv27/Blog-post
1f908d837a36ba26918dfcba04139f180f036305
[ "MIT" ]
1
2021-05-19T12:59:09.000Z
2021-05-19T12:59:09.000Z
migrations/versions/5488bd12618c_article_migration.py
HASSAN1A/Blog
383badf16baf8acdfa819de5237f10b9c572872e
[ "MIT" ]
null
null
null
migrations/versions/5488bd12618c_article_migration.py
HASSAN1A/Blog
383badf16baf8acdfa819de5237f10b9c572872e
[ "MIT" ]
null
null
null
"""Article Migration Revision ID: 5488bd12618c Revises: d30e7ee7a8d0 Create Date: 2020-10-30 18:14:15.115744 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5488bd12618c' down_revision = 'd30e7ee7a8d0' branch_labels = None depends_on = None def upgrade(): ...
29.97561
65
0.681041
9997ab526d789da4691eed9ed1543279b2f3c803
74,817
py
Python
zimsoap/client.py
emillion/zimsoap
d1ea2eb4d50f263c9a16e5549af03f1eff3e295e
[ "Apache-2.0" ]
11
2015-02-15T23:52:56.000Z
2021-05-06T18:05:24.000Z
zimsoap/client.py
emillion/zimsoap
d1ea2eb4d50f263c9a16e5549af03f1eff3e295e
[ "Apache-2.0" ]
25
2015-01-14T11:27:51.000Z
2016-09-07T14:06:52.000Z
zimsoap/client.py
emillion/zimsoap
d1ea2eb4d50f263c9a16e5549af03f1eff3e295e
[ "Apache-2.0" ]
10
2015-08-12T14:45:17.000Z
2021-12-08T23:40:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals """ Zimbra SOAP client pythonic abstraction core classes for SOAP clients, there are also REST clients here, but used only for pre-authentification. """ import datetime try: from urllib2 import HTTPCookieProcessor, build_opener...
35.026685
110
0.562132
b2926af38f31b85a065bca603ac64f3c5007da22
10,152
py
Python
utils/_plot.py
Giyn/DP-Star
5c2e85f3f1def528679f52eeec17ea88f25cc705
[ "MIT" ]
2
2021-04-20T06:16:17.000Z
2021-04-20T07:38:08.000Z
utils/_plot.py
Giyn/DP-Star
5c2e85f3f1def528679f52eeec17ea88f25cc705
[ "MIT" ]
null
null
null
utils/_plot.py
Giyn/DP-Star
5c2e85f3f1def528679f52eeec17ea88f25cc705
[ "MIT" ]
5
2021-04-20T06:15:52.000Z
2021-05-26T14:52:48.000Z
""" ------------------------------------- # -*- coding: utf-8 -*- # @Author : nomalocaris # @File : _plot.py # @Software: PyCharm ------------------------------------- """ import os import matplotlib.pyplot as plt import numpy as np from matplotlib.ticker import FormatStrFormatter from tqdm import tqdm from conf...
30.95122
109
0.547872
fdbf28b8d6a01d39e569050de2b13998024b4181
1,309
py
Python
app/ch16_mongodb/final/pypi_org/infrastructure/cookie_auth.py
tbensonwest/data-driven-web-apps-with-flask
be025c1c0190419019924f7516f49b3b8452cdf8
[ "MIT" ]
2
2020-04-29T15:45:19.000Z
2020-11-02T18:18:24.000Z
app/ch16_mongodb/final/pypi_org/infrastructure/cookie_auth.py
tbensonwest/data-driven-web-apps-with-flask
be025c1c0190419019924f7516f49b3b8452cdf8
[ "MIT" ]
null
null
null
app/ch16_mongodb/final/pypi_org/infrastructure/cookie_auth.py
tbensonwest/data-driven-web-apps-with-flask
be025c1c0190419019924f7516f49b3b8452cdf8
[ "MIT" ]
null
null
null
import hashlib from datetime import timedelta from typing import Optional import bson from flask import Request from flask import Response from pypi_org.bin.load_data import try_int auth_cookie_name = 'pypi_demo_user' def set_auth(response: Response, user_id: int): hash_val = __hash_text(str(user_id)) val ...
24.698113
77
0.705882
3073a1d9016100f3b50d7f04a2d06214ed2cbe66
451
py
Python
common/common.py
selcukusta/sentiment-analysis-for-comments
d1262f57dba900f59f2e0d100350c0f0f5902ce1
[ "MIT" ]
7
2020-07-21T11:51:08.000Z
2022-01-06T21:52:04.000Z
common/common.py
selcukusta/sentiment-analysis-for-comments
d1262f57dba900f59f2e0d100350c0f0f5902ce1
[ "MIT" ]
null
null
null
common/common.py
selcukusta/sentiment-analysis-for-comments
d1262f57dba900f59f2e0d100350c0f0f5902ce1
[ "MIT" ]
2
2021-03-20T19:19:56.000Z
2021-04-22T20:52:33.000Z
class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLINE = '\033[4m' def colored_print(print_type: bcolors, text: str): print(f"{print_type}{text}{bcolors.ENDC}") if __name__ == ...
23.736842
72
0.618625
95f88ad38083e73415b66601edcc50020146c5b9
109
py
Python
F_Machine_learning/1_Unsupervised-Learning/solutions/ex3_1.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
7
2019-07-03T07:41:55.000Z
2022-02-06T20:25:37.000Z
F_Machine_learning/1_Unsupervised-Learning/solutions/ex3_1.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
9
2019-03-14T15:15:09.000Z
2019-08-01T14:18:21.000Z
F_Machine_learning/1_Unsupervised-Learning/solutions/ex3_1.py
oercompbiomed/CBM101
20010dcb99fbf218c4789eb5918dcff8ceb94898
[ "MIT" ]
11
2019-03-12T10:43:11.000Z
2021-10-05T12:15:00.000Z
# resize according to smallest image sz = imgs[smallest_index].size im1 = im1.resize(sz) im2 = im2.resize(sz)
27.25
36
0.752294
d88a56cebfac19b7a8b12b470628cf318884529e
2,144
py
Python
model/cv_score.py
phykn/xai_tree
66f5cb4ea77686364478b1f16f937678b2e544a8
[ "Apache-2.0" ]
1
2022-02-06T17:49:26.000Z
2022-02-06T17:49:26.000Z
model/cv_score.py
phykn/xai_tree
66f5cb4ea77686364478b1f16f937678b2e544a8
[ "Apache-2.0" ]
null
null
null
model/cv_score.py
phykn/xai_tree
66f5cb4ea77686364478b1f16f937678b2e544a8
[ "Apache-2.0" ]
null
null
null
import numpy as np from typing import Dict, Any, Optional from .metric import * def cv_score( model_func, datasets, params={}, random_state: int=42, n_jobs: Optional[int]=None, ) -> Dict[str, Any]: ''' model: Tree Model Function datasets: List of dataset. dataset =...
27.844156
63
0.533116
24e687837adb5c95d64da007e81604a813cc3320
7,150
py
Python
scale_chart.py
cbaumgardner/guitar_mapper
f4a983e0fc8180bac5b7cfa410e977353135d59b
[ "MIT" ]
null
null
null
scale_chart.py
cbaumgardner/guitar_mapper
f4a983e0fc8180bac5b7cfa410e977353135d59b
[ "MIT" ]
1
2022-03-25T18:52:13.000Z
2022-03-25T18:52:13.000Z
scale_chart.py
cbaumgardner/guitar_mapper
f4a983e0fc8180bac5b7cfa410e977353135d59b
[ "MIT" ]
1
2022-03-04T22:14:02.000Z
2022-03-04T22:14:02.000Z
import math # These should probably go in a config file or something scale_types = [{"type": "Major (Ionian)", "scale_steps": [2, 2, 1, 2, 2, 2, 1]}, {"type": "Minor (Aeolian)", "scale_steps": [2, 1, 2, 2, 1, 2, 2]}, {"type": "Major Pentatonic", "scale_steps": [2, 2, 3, 2, 3]}, ...
36.85567
103
0.496224
a50e7a27226ac85dba68190d642d3db9877f5cda
16,183
py
Python
ci/autotest.py
ycheng-aa/gated_launch_backend
cbb9e7e530ab28d5914276e9607ebfcf84be6433
[ "MIT" ]
null
null
null
ci/autotest.py
ycheng-aa/gated_launch_backend
cbb9e7e530ab28d5914276e9607ebfcf84be6433
[ "MIT" ]
null
null
null
ci/autotest.py
ycheng-aa/gated_launch_backend
cbb9e7e530ab28d5914276e9607ebfcf84be6433
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*-coding:utf-8-*- import sys import requests import json sys.path.append("./") from gated_launch_backend.settings_test import ZHONGCE_SIT_URL, JIRA_SIT_URL def get_reponse_res(response): if response.status_code == 200: res = json.loads(response.text) else: res = "" ret...
34.802151
290
0.524748
32855b489fb49b74229d7c0202d0b31cc63c04fe
106
py
Python
sns-lambda-cdk/src/lambda/handler.py
enochtsai/serverless-patterns
c3b519304b8d4fdeff5ce6efb51239d35073fac3
[ "MIT-0" ]
883
2021-03-17T20:45:34.000Z
2022-03-30T03:21:48.000Z
sns-lambda-cdk/src/lambda/handler.py
enochtsai/serverless-patterns
c3b519304b8d4fdeff5ce6efb51239d35073fac3
[ "MIT-0" ]
318
2021-03-31T16:47:35.000Z
2022-03-31T12:55:12.000Z
sns-lambda-cdk/src/lambda/handler.py
enochtsai/serverless-patterns
c3b519304b8d4fdeff5ce6efb51239d35073fac3
[ "MIT-0" ]
218
2021-03-31T20:38:22.000Z
2022-03-31T08:56:28.000Z
import json def main(event, context): print("lambda invoked") print(json.dumps(event)) return
17.666667
28
0.679245
0a01e0705ad2074c11165d81c402732a9364d6b4
63
py
Python
magicclass/ext/pyvista/__init__.py
hanjinliu/magic-class
2a9d8af3d385ec3870ebcade9f2dbc03115bed22
[ "BSD-3-Clause" ]
15
2021-09-07T10:18:59.000Z
2022-03-23T14:55:45.000Z
magicclass/ext/pyvista/__init__.py
hanjinliu/magic-class
2a9d8af3d385ec3870ebcade9f2dbc03115bed22
[ "BSD-3-Clause" ]
12
2021-09-10T08:54:43.000Z
2022-03-31T02:43:50.000Z
magicclass/ext/pyvista/__init__.py
hanjinliu/magic-class
2a9d8af3d385ec3870ebcade9f2dbc03115bed22
[ "BSD-3-Clause" ]
1
2022-02-13T15:51:51.000Z
2022-02-13T15:51:51.000Z
from .widgets import PyVistaCanvas __all__ = ["PyVistaCanvas"]
21
34
0.793651
b58b189effa056ccfca53bd4aff6cf976a9dfa2d
1,488
py
Python
22_all_paranthesis.py
rahlk/LeetCode
92ea94a801d12e1cc350972b876d35a2b0f50996
[ "MIT" ]
1
2018-02-19T21:51:46.000Z
2018-02-19T21:51:46.000Z
22_all_paranthesis.py
rahlk/LeetCode
92ea94a801d12e1cc350972b876d35a2b0f50996
[ "MIT" ]
null
null
null
22_all_paranthesis.py
rahlk/LeetCode
92ea94a801d12e1cc350972b876d35a2b0f50996
[ "MIT" ]
null
null
null
from pdb import set_trace class AllParanthesis: def solution_recur(self, n): """ A recursive solution :type n: int :rtype: List[str] """ def paranthesize(string, left, right, N, combinations): if left == N and right == N: combination...
28.075472
77
0.494624
d16cb772dc07bd35a639615b4c751bc456dea938
8,300
py
Python
点餐系统mysql/DataBase.py
yxg995995/yxg-code
7dd23f3dfb13d68ebc44bf7d5a344fb661c33136
[ "MIT" ]
1
2021-03-15T02:07:50.000Z
2021-03-15T02:07:50.000Z
点餐系统mysql/DataBase.py
yxg995995/yxg-code
7dd23f3dfb13d68ebc44bf7d5a344fb661c33136
[ "MIT" ]
null
null
null
点餐系统mysql/DataBase.py
yxg995995/yxg-code
7dd23f3dfb13d68ebc44bf7d5a344fb661c33136
[ "MIT" ]
1
2021-03-15T02:07:55.000Z
2021-03-15T02:07:55.000Z
from pymysql import * import datetime class DataBase: def __init__(self): self.db_name='xinxi' self.db=connect('localhost','yxg','yxg579521..',self.db_name) def insertUser(self,username,password,phone): c=self.db.cursor() c.execute('''INSERT into user values (%s,%s,%s)''...
29.020979
105
0.531446
c1f07d6225a87a1350dc6f552821658e8cadbc73
2,381
py
Python
azure-mgmt-keyvault/setup.py
Berryliao84/Python-Azure
a96ed6e8bbf4290372980a2919b31110da90b164
[ "MIT" ]
1
2017-10-29T15:14:35.000Z
2017-10-29T15:14:35.000Z
azure-mgmt-keyvault/setup.py
Berryliao84/Python-Azure
a96ed6e8bbf4290372980a2919b31110da90b164
[ "MIT" ]
null
null
null
azure-mgmt-keyvault/setup.py
Berryliao84/Python-Azure
a96ed6e8bbf4290372980a2919b31110da90b164
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
31.746667
94
0.582948
7971f8d3a1028115b28df8bdc3c0c23f12822107
1,656
py
Python
musmanim/text.py
mscuthbert/musmanim
3ce0502d44b715e08f6ddca375c3a84d0a4078cf
[ "BSD-3-Clause" ]
null
null
null
musmanim/text.py
mscuthbert/musmanim
3ce0502d44b715e08f6ddca375c3a84d0a4078cf
[ "BSD-3-Clause" ]
null
null
null
musmanim/text.py
mscuthbert/musmanim
3ce0502d44b715e08f6ddca375c3a84d0a4078cf
[ "BSD-3-Clause" ]
null
null
null
import manim as m MAXIMA = '' LONGA = '' BREVE = '' SEMIBREVE = '' MINIM = '' class Text(m.Text): def __init__(self, t, font='Adobe Garamond Pro', color=m.WHITE, **kwargs): super().__init__(t, font=font, **kwargs) self.set_color(color) class Bravura(Text): def __init__(self, t='', font...
32.470588
83
0.536232
fe3950fcbe073529860af34dadf5ef07e3051cb3
14,367
py
Python
cvpr_clvision_challenge-master/submissions_archive/20200323_EWS/submissions/multi-task-nc/code_snapshot/train_test.py
aobject/NYU-AI-Project-02
e25465345c85a774410b6dd7fccf53f93ad9318e
[ "CC-BY-4.0" ]
2
2020-11-10T10:01:47.000Z
2021-09-10T06:47:31.000Z
cvpr_clvision_challenge-master/submissions_archive/20200323_EWS/submissions/multi-task-nc/code_snapshot/train_test.py
aobject/NYU-AI-Project-02
e25465345c85a774410b6dd7fccf53f93ad9318e
[ "CC-BY-4.0" ]
null
null
null
cvpr_clvision_challenge-master/submissions_archive/20200323_EWS/submissions/multi-task-nc/code_snapshot/train_test.py
aobject/NYU-AI-Project-02
e25465345c85a774410b6dd7fccf53f93ad9318e
[ "CC-BY-4.0" ]
3
2020-09-10T22:44:35.000Z
2020-12-08T15:51:40.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################################ # Copyright (c) 2019. Vincenzo Lomonaco, Massimo Caccia, Pau Rodriguez, # # Lorenzo Pellegrini. All rights reserved. # # Copyrights licensed under th...
32.80137
186
0.54486
27b4a9b872f95dee2cb75bf9ba721769dd95803f
3,853
py
Python
seed/depends/auth/types.py
h4wldev/seed
2febcb39edb6086128022e40d8734b0e3f93ebb1
[ "MIT" ]
3
2020-12-24T12:01:13.000Z
2021-06-01T06:23:41.000Z
seed/depends/auth/types.py
h4wldev/seed
2febcb39edb6086128022e40d8734b0e3f93ebb1
[ "MIT" ]
null
null
null
seed/depends/auth/types.py
h4wldev/seed
2febcb39edb6086128022e40d8734b0e3f93ebb1
[ "MIT" ]
null
null
null
import arrow import jwt import uuid import orjson from typing import Any, Dict, Union, Optional from seed.depends.redis import RedisContextManager from seed.utils.convert import units_to_seconds from seed.utils.crypto import AESCipher from seed.setting import setting class JWTTokenType: ACCESS_TOKEN: str = 'ac...
29.189394
85
0.547885
eb9782511692dc93e5b2d0890f4a7897ee7564d6
2,608
py
Python
Wrapping/Python/Testing/Import_Hdf5_Dataset.py
mhitzem/SIMPL
cd8a58f8d955d232ea039121cc5286cc9545c7a6
[ "NRL" ]
3
2018-01-18T18:27:02.000Z
2021-06-13T06:10:52.000Z
Wrapping/Python/Testing/Import_Hdf5_Dataset.py
mhitzem/SIMPL
cd8a58f8d955d232ea039121cc5286cc9545c7a6
[ "NRL" ]
211
2016-07-27T12:18:16.000Z
2021-11-02T13:42:11.000Z
Wrapping/Python/Testing/Import_Hdf5_Dataset.py
mhitzem/SIMPL
cd8a58f8d955d232ea039121cc5286cc9545c7a6
[ "NRL" ]
23
2016-02-15T21:23:47.000Z
2021-08-11T15:35:24.000Z
# Pipeline: Import Hdf5 Data Array Test import simpl import simplpy import simpl_helpers as sh import simpl_test_dirs as sd def createInputFile(): # Create Data Container Array using simpl directly dca = simpl.DataContainerArray() # Create a Data Container using the pythonic version err = simplpy.cre...
41.396825
131
0.678681
d4b3889e30d98a731546d71a722440ee1d136207
1,409
py
Python
delta/utils/postprocess/postprocess_utils.py
hchang000/delta
89320bd538e360d939c50d9f303e81554f6ce7ac
[ "Apache-2.0" ]
1
2019-07-15T11:42:38.000Z
2019-07-15T11:42:38.000Z
delta/utils/postprocess/postprocess_utils.py
hchang000/delta
89320bd538e360d939c50d9f303e81554f6ce7ac
[ "Apache-2.0" ]
null
null
null
delta/utils/postprocess/postprocess_utils.py
hchang000/delta
89320bd538e360d939c50d9f303e81554f6ce7ac
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
33.547619
80
0.677786
cdfaed5bdf302c41e5a4d87390b51f62555fe7b2
1,864
py
Python
cool/checks.py
SmallCream/django-cool
63b136da7ce39135c9f900e8161288f8fc8893a4
[ "BSD-3-Clause" ]
11
2020-05-19T09:52:35.000Z
2022-02-25T10:39:56.000Z
cool/checks.py
SmallCream/django-cool
63b136da7ce39135c9f900e8161288f8fc8893a4
[ "BSD-3-Clause" ]
null
null
null
cool/checks.py
SmallCream/django-cool
63b136da7ce39135c9f900e8161288f8fc8893a4
[ "BSD-3-Clause" ]
1
2020-12-24T08:14:58.000Z
2020-12-24T08:14:58.000Z
# encoding: utf-8 from django.apps import apps from django.core.checks import Error, Tags, register from django.core.exceptions import FieldError from django.db.models import F from cool.core.utils import construct_search def register_checks(): register(Tags.models)(check_models) def check_models(app_configs,...
30.064516
113
0.630901
bfa09f73eda0ac4c013daff5ae107acb282633f3
322
py
Python
leetcode/0191_number_of_1_bits.py
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
3
2018-05-10T09:56:49.000Z
2020-11-07T18:09:42.000Z
leetcode/0191_number_of_1_bits.py
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
null
null
null
leetcode/0191_number_of_1_bits.py
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class Solution: def hammingWeight(self, n): result = 0 while n: n &= n - 1 result += 1 return result if __name__ == '__main__': solution = Solution() assert 3 == solution.hammingWeight(11) assert 1 == solution.hammingWeight(128...
17.888889
43
0.540373
84564bbefa9ef115d44514ada0cc997aedcaa414
6,834
py
Python
asnake/client/web_client.py
archivalGrysbok/ArchivesSnake
941298b91871a9aa2eb5abbe47b79be6d47518ef
[ "Apache-2.0" ]
58
2017-08-17T16:09:23.000Z
2022-03-18T00:00:43.000Z
asnake/client/web_client.py
archivalGrysbok/ArchivesSnake
941298b91871a9aa2eb5abbe47b79be6d47518ef
[ "Apache-2.0" ]
31
2018-02-20T05:40:40.000Z
2021-09-15T12:35:34.000Z
asnake/client/web_client.py
archivalGrysbok/ArchivesSnake
941298b91871a9aa2eb5abbe47b79be6d47518ef
[ "Apache-2.0" ]
14
2018-01-22T19:09:54.000Z
2020-11-02T16:46:40.000Z
from requests import Session from urllib.parse import quote from numbers import Number from collections.abc import Sequence, Mapping import json import asnake.configurator as conf import asnake.logging as logging log = None # initialized on first client init class ASnakeAuthError(Exception): pass class ASnakeWeirdRe...
44.090323
124
0.622769
000c8eb8c516d61dae92dd64b94fa008adee6c29
346
py
Python
zengo/migrations/0004_zendeskuser_alias.py
ableeck/django-zengo
33f3795215dac4ac2121d26fc702a24adb1748f2
[ "MIT" ]
10
2019-02-11T19:13:41.000Z
2021-12-10T21:23:51.000Z
zengo/migrations/0004_zendeskuser_alias.py
myles/django-zengo
d896b931139a65c497196b9669313f1dcfd560c9
[ "MIT" ]
4
2019-01-03T00:02:31.000Z
2020-11-11T01:31:06.000Z
zengo/migrations/0004_zendeskuser_alias.py
myles/django-zengo
d896b931139a65c497196b9669313f1dcfd560c9
[ "MIT" ]
3
2019-02-28T15:58:24.000Z
2020-06-09T02:45:42.000Z
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("zengo", "0003_relax_url_maxlength"), ] operations = [ migrations.AddField( model_name="zendeskuser", name="alias", field=models.TextField(blank=True, nul...
20.352941
58
0.586705
7e07c2a45defffb3508b42d0d49e96d296747109
89
py
Python
test.py
Anu1996rag/PythonLogging
3231c76c680a20df27182e99ffcc116f95b5f864
[ "MIT" ]
null
null
null
test.py
Anu1996rag/PythonLogging
3231c76c680a20df27182e99ffcc116f95b5f864
[ "MIT" ]
null
null
null
test.py
Anu1996rag/PythonLogging
3231c76c680a20df27182e99ffcc116f95b5f864
[ "MIT" ]
null
null
null
import logging import logger logger.loggingInfo('debug') logging.warning('test file')
12.714286
29
0.775281
907f17e20aafdb53463fec7550fe7cd7b2def3f4
700
py
Python
algo/implementation/easy/acm-icpc.py
rivergillis/hackerrank-practice
16b1d448c011f22b202b1ccadac09c71f646aa5e
[ "MIT" ]
null
null
null
algo/implementation/easy/acm-icpc.py
rivergillis/hackerrank-practice
16b1d448c011f22b202b1ccadac09c71f646aa5e
[ "MIT" ]
null
null
null
algo/implementation/easy/acm-icpc.py
rivergillis/hackerrank-practice
16b1d448c011f22b202b1ccadac09c71f646aa5e
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/acm-icpc-team import itertools n, m = input().strip().split(' ') n, m = [int(n), int(m)] topic = [] for topic_i in range(n): topic_t = str(input().strip()) topic.append(topic_t) topic_bin = [int(t, base=2) for t in topic] best_num = 0 num_groups = 0 for pair in itert...
21.212121
53
0.627143
6d20f51546746302a752a5ef55ca9495321502e1
568
py
Python
braXAI/sub_correction.py
MeetGandhi/MeetGandhi-Post-hoc-Explainability-of-Deep-Learning-Models-using-Conditional-Adversarial-Networks
089226dce6d318247111ea60c2cc15c247b430d2
[ "MIT" ]
null
null
null
braXAI/sub_correction.py
MeetGandhi/MeetGandhi-Post-hoc-Explainability-of-Deep-Learning-Models-using-Conditional-Adversarial-Networks
089226dce6d318247111ea60c2cc15c247b430d2
[ "MIT" ]
null
null
null
braXAI/sub_correction.py
MeetGandhi/MeetGandhi-Post-hoc-Explainability-of-Deep-Learning-Models-using-Conditional-Adversarial-Networks
089226dce6d318247111ea60c2cc15c247b430d2
[ "MIT" ]
null
null
null
import numpy as np import os import glob classes=["bogus", "real"] y=np.load("y_test.npy") pr=np.load("preds.npy") prob=np.load("preds_proba.npy") #index = {1:0, 2:1, 4:2, 5:3, 6:4, 8:5, 13:6} index = {0:0, 1:1} for clss in classes: #l=glob.glob("trainingdata\\saliency\\"+clss+"\\*.png") l=glob.glob("keras-v...
25.818182
59
0.551056
71da772a55c131ccce113a7aa24bfd1c8c608e2f
983
py
Python
fixture/application.py
sergeytsarev90/mantis_python
ca266ec64a67dfae400ccca438ba0b2c11998c2a
[ "Apache-2.0" ]
null
null
null
fixture/application.py
sergeytsarev90/mantis_python
ca266ec64a67dfae400ccca438ba0b2c11998c2a
[ "Apache-2.0" ]
null
null
null
fixture/application.py
sergeytsarev90/mantis_python
ca266ec64a67dfae400ccca438ba0b2c11998c2a
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver from fixture.session import SH from fixture.projects import PH from fixture.james import JS from fixture.mail import MH from fixture.signup import SGH from fixture.soap import SoapH class Applicaton: def __init__(self, browser, config): if browser == "chrome": se...
26.567568
65
0.600203
d784be5327df29c1ae4a024bf33983fd58db0ffc
984
py
Python
packages/watchmen-model/src/watchmen_model/admin/pipeline_action_read.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/admin/pipeline_action_read.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/admin/pipeline_action_read.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from watchmen_model.common import construct_parameter_joint from .pipeline_action import AggregateArithmeticHolder, FindBy, FromFactor, FromTopic, MemoryWriter, ReadTopicActionType class ReadTopicAction(FromTopic, MemoryWriter, FindBy): type: ReadTopicActionType def __setattr__(self, name, value): if name == 'by...
29.818182
120
0.831301
1631cd2b62929bfccacfe56ece80a75f7a05b12c
705
py
Python
src/area.py
JonasProg/Team15
c8067c0fb7a837af10fc415c0ada2e639a0192f2
[ "MIT" ]
1
2021-03-22T08:29:57.000Z
2021-03-22T08:29:57.000Z
src/area.py
JonasProg/Team15
c8067c0fb7a837af10fc415c0ada2e639a0192f2
[ "MIT" ]
1
2021-04-14T11:58:32.000Z
2021-04-14T11:58:32.000Z
src/area.py
JonasProg/Team15
c8067c0fb7a837af10fc415c0ada2e639a0192f2
[ "MIT" ]
null
null
null
from math import pi def area_circle(r): '''Area of circle. Calculate the area of a circle based on the radius. Args: r (float): radius of circle Returns: float: area of circle ''' if r < 0: raise ValueError("The radius must be >= 0.") return pi * r**2 def area_...
20.142857
66
0.6
7fd825434e7fdbe4051dc5bab35c9df54d7efd61
3,203
py
Python
Python/snake-game.py
pretam591/All_Program_helper
83f52bce53bdcd0b115753ecda610d21aa0ddd2a
[ "MIT" ]
16
2021-10-03T11:15:49.000Z
2021-10-31T04:40:24.000Z
Python/snake-game.py
pretam591/All_Program_helper
83f52bce53bdcd0b115753ecda610d21aa0ddd2a
[ "MIT" ]
232
2021-10-02T14:51:43.000Z
2021-11-14T08:23:27.000Z
Python/snake-game.py
pretam591/All_Program_helper
83f52bce53bdcd0b115753ecda610d21aa0ddd2a
[ "MIT" ]
166
2021-10-02T13:56:34.000Z
2021-10-31T17:56:34.000Z
import pygame as pg import random pg.init() white = (255,255,255) red = (255,0,0) black = (0,0,0) screenWidth = 900 screenHeight = 600 gameWindow = pg.display.set_mode((screenWidth,screenHeight)) pg.display.set_caption('Snake Game') pg.display.update() clock = pg.time.Clock() font = pg.font.SysFont(None,55) def te...
27.376068
96
0.519825
206219d7d63d892b4c50c520d70589ec4cf51b72
1,516
py
Python
ding/rl_utils/ppg.py
uuid0000/DI-engine
cc2713fa01e5288bae21cfeb595729d665e092d1
[ "Apache-2.0" ]
1
2021-07-13T02:56:34.000Z
2021-07-13T02:56:34.000Z
ding/rl_utils/ppg.py
uuid0000/DI-engine
cc2713fa01e5288bae21cfeb595729d665e092d1
[ "Apache-2.0" ]
null
null
null
ding/rl_utils/ppg.py
uuid0000/DI-engine
cc2713fa01e5288bae21cfeb595729d665e092d1
[ "Apache-2.0" ]
null
null
null
from collections import namedtuple from typing import Optional, Tuple import torch import torch.nn.functional as F from torch.distributions import Independent, Normal ppg_data = namedtuple('ppg_data', ['logit_new', 'logit_old', 'action', 'value_new', 'value_old', 'return_', 'weight']) ppg_joint_loss = namedtuple('ppg_...
37.9
118
0.709763
67eedabd3052f100c954eee175f24dbe682c8c33
1,185
py
Python
examples/batch_parse_file_list.py
JohannesLiu/Apollo-Cyber-Parser
ef7e99ea29b2586a72c4cf0b74c18370102be65c
[ "MIT" ]
2
2022-03-11T07:45:59.000Z
2022-03-31T17:38:04.000Z
examples/batch_parse_file_list.py
JohannesLiu/Apollo-Cyber-Parser
ef7e99ea29b2586a72c4cf0b74c18370102be65c
[ "MIT" ]
1
2022-03-20T12:22:49.000Z
2022-03-31T17:47:06.000Z
examples/batch_parse_file_list.py
JohannesLiu/Apollo-Cyber-Parser
ef7e99ea29b2586a72c4cf0b74c18370102be65c
[ "MIT" ]
null
null
null
import sys import os sys.path.append("/apollo/cyber") os.chdir("/apollo/cyber") from cyber_py import cyber from cyber_py import record from modules.control.proto import control_cmd_pb2 def file_name(file_dir): for root, dirs, files in os.walk(file_dir): for file in files: if os.path.splitext(fi...
27.55814
59
0.638819
315cc1f685e80511cd31d64e785a1cd4125bb5f8
590
py
Python
msgboard/migrations/0002_test_data.py
nemerna/beyond-tutorial
f9a2c0e14fa3f110f11d8b52a4f7fb2a3f480ac1
[ "MIT" ]
null
null
null
msgboard/migrations/0002_test_data.py
nemerna/beyond-tutorial
f9a2c0e14fa3f110f11d8b52a4f7fb2a3f480ac1
[ "MIT" ]
2
2022-02-01T01:41:28.000Z
2022-02-01T02:46:58.000Z
msgboard/migrations/0002_test_data.py
nemerna/beyond-tutorial
f9a2c0e14fa3f110f11d8b52a4f7fb2a3f480ac1
[ "MIT" ]
null
null
null
from django.db import migrations, transaction class Migration(migrations.Migration): dependencies = [ ('msgboard', '0001_initial'), ] def generate_data(apps, schema_editor): from msgboard.models import Message test_data = [ ('Test User1', 'A simple test message'), ...
31.052632
58
0.601695
0330cc959c5e5108c02381e1a459bb77c5cadf70
8,406
py
Python
pelion_systest_lib/cloud/libraries/enrollment.py
AnotherButler/e2e-edge-test-suite
05d01922bc74d9ea4564a7561342ea428977ebff
[ "Apache-2.0" ]
null
null
null
pelion_systest_lib/cloud/libraries/enrollment.py
AnotherButler/e2e-edge-test-suite
05d01922bc74d9ea4564a7561342ea428977ebff
[ "Apache-2.0" ]
1
2021-07-30T20:43:56.000Z
2021-08-06T19:40:24.000Z
pelion_systest_lib/cloud/libraries/enrollment.py
AnotherButler/e2e-edge-test-suite
05d01922bc74d9ea4564a7561342ea428977ebff
[ "Apache-2.0" ]
2
2021-07-29T15:47:25.000Z
2022-03-07T08:38:20.000Z
# ---------------------------------------------------------------------------- # Copyright (c) 2020-2021, Pelion and affiliates. # # SPDX-License-Identifier: Apache-2.0 # # 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...
44.242105
119
0.689745
b552733e393bda9b78ea87b63c4b6d83f9f8b889
108
py
Python
git_magic/grandmaster.py
StephanRempel/git_magic
e3feeccc18f195cd9b6f989148f64beefe38bd6c
[ "Apache-2.0" ]
null
null
null
git_magic/grandmaster.py
StephanRempel/git_magic
e3feeccc18f195cd9b6f989148f64beefe38bd6c
[ "Apache-2.0" ]
2
2021-05-20T23:19:19.000Z
2022-02-26T17:07:03.000Z
git_magic/grandmaster.py
StephanRempel/git_magic
e3feeccc18f195cd9b6f989148f64beefe38bd6c
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 07_grandmaster.ipynb (unless otherwise specified). __all__ = []
36
94
0.759259
c85dac5e330527716c2635f90141cb647ad5b352
2,304
py
Python
utils.py
leyiweb/Pytorch-LRP
c4808bff5e61c03a185d177bcbcd7850d1b33f97
[ "BSD-3-Clause" ]
null
null
null
utils.py
leyiweb/Pytorch-LRP
c4808bff5e61c03a185d177bcbcd7850d1b33f97
[ "BSD-3-Clause" ]
null
null
null
utils.py
leyiweb/Pytorch-LRP
c4808bff5e61c03a185d177bcbcd7850d1b33f97
[ "BSD-3-Clause" ]
null
null
null
import torch from scipy.ndimage import zoom from sklearn.model_selection import train_test_split import numpy as np def pprint(*args): out = [str(argument) + "\n" for argument in args] print(*out, "\n") class Flatten(torch.nn.Module): def __init__(self): super(Flatten, self).__init__() def ...
36
120
0.661024
3e8b8af002ab425f948a8e87f5f5af38bff8816e
646
py
Python
setup.py
giorgiovisani/lime_stability
dbee493b9d865d3f9fa36caeabbc4e82d4d13c2a
[ "BSD-2-Clause" ]
18
2020-02-21T11:18:34.000Z
2022-02-25T20:07:37.000Z
setup.py
giorgiovisani/lime_stability
dbee493b9d865d3f9fa36caeabbc4e82d4d13c2a
[ "BSD-2-Clause" ]
null
null
null
setup.py
giorgiovisani/lime_stability
dbee493b9d865d3f9fa36caeabbc4e82d4d13c2a
[ "BSD-2-Clause" ]
5
2020-02-17T07:32:37.000Z
2022-02-01T07:30:14.000Z
from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup( name='lime_stability', version='0.1.1', author="Giorgio Visani", author_email="giorgio.visani2@unibo.it", description="A package to evaluate Lime stability", long_description=long_descriptio...
25.84
62
0.650155
1c71c05bcaf00fc2bce8c94830ad89b90c5ddc81
7,562
py
Python
test/functional/wallet_dump.py
xcoin-project/xcoin
a709553b4e10d5592e1095e3ba63d1a995917c1a
[ "MIT" ]
null
null
null
test/functional/wallet_dump.py
xcoin-project/xcoin
a709553b4e10d5592e1095e3ba63d1a995917c1a
[ "MIT" ]
null
null
null
test/functional/wallet_dump.py
xcoin-project/xcoin
a709553b4e10d5592e1095e3ba63d1a995917c1a
[ "MIT" ]
1
2021-05-27T10:42:18.000Z
2021-05-27T10:42:18.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the dumpwallet RPC.""" import os from test_framework.test_framework import BitcoinTestFramework f...
43.710983
146
0.604866
8ec09292fbf0f676e9b98fbf78ac6f1d2e183365
7,252
py
Python
pyxrd/phases/controllers/edit_phase_controller.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
27
2018-06-15T15:28:18.000Z
2022-03-10T12:23:50.000Z
pyxrd/phases/controllers/edit_phase_controller.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
22
2018-06-14T08:29:16.000Z
2021-07-05T13:33:44.000Z
pyxrd/phases/controllers/edit_phase_controller.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
8
2019-04-13T13:03:51.000Z
2021-06-19T09:29:11.000Z
# coding=UTF-8 # ex:ts=4:sw=4:et=on # Copyright (c) 2013, Mathijs Dumon # All rights reserved. # Complete license can be found in the LICENSE file. import logging logger = logging.getLogger(__name__) from mvc import Controller from mvc.adapters.dummy_adapter import DummyAdapter from pyxrd.generic.views import Child...
41.919075
139
0.651682
843c2f9af2eb22d602b384d493c4608db9aac1e8
4,818
py
Python
account/views.py
johnnfujita/social_django
009ccc6d4c9480f1ed12b1095e8645ef73dca1f6
[ "MIT" ]
null
null
null
account/views.py
johnnfujita/social_django
009ccc6d4c9480f1ed12b1095e8645ef73dca1f6
[ "MIT" ]
null
null
null
account/views.py
johnnfujita/social_django
009ccc6d4c9480f1ed12b1095e8645ef73dca1f6
[ "MIT" ]
null
null
null
from django.contrib import messages from django.shortcuts import render from django.http import HttpResponse, JsonResponse from django.views.decorators.http import require_POST from common.decorators import ajax_required from django.contrib.auth import authenticate, login from .forms import LoginForm, UserRegistrationF...
36.5
93
0.600042
3dd10a015ff7b29247fef3aefa4e0c48b19e83f2
11,069
py
Python
plugins/trustedcoin/qt.py
opendime/electrum
b436042c89dc852790bc95287fae18bfe2158031
[ "MIT" ]
4
2016-10-13T16:11:23.000Z
2021-07-02T23:02:46.000Z
plugins/trustedcoin/qt.py
opendime/electrum
b436042c89dc852790bc95287fae18bfe2158031
[ "MIT" ]
null
null
null
plugins/trustedcoin/qt.py
opendime/electrum
b436042c89dc852790bc95287fae18bfe2158031
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum - Lightweight Bitcoin Client # Copyright (C) 2015 Thomas Voegtlin # # 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...
37.522034
254
0.624266
eae87542fcc95cbfdb8130b783f3843be562a8a0
3,476
py
Python
ig_clone_api/photos/migrations/0001_initial.py
whosgriffith/ig-clone-api
83b79ed62e21c654d0945decaaf6571e19c8c12a
[ "MIT" ]
null
null
null
ig_clone_api/photos/migrations/0001_initial.py
whosgriffith/ig-clone-api
83b79ed62e21c654d0945decaaf6571e19c8c12a
[ "MIT" ]
null
null
null
ig_clone_api/photos/migrations/0001_initial.py
whosgriffith/ig-clone-api
83b79ed62e21c654d0945decaaf6571e19c8c12a
[ "MIT" ]
null
null
null
# Generated by Django 3.1.13 on 2021-08-19 01:24 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] op...
51.880597
168
0.603567
74d88933ee816de5dafbd836b99627fe8ea0cf2f
25,592
py
Python
src/zeep/xsd/elements/indicators.py
steven-deprez/python-zeep
6acadb67cde018ef409d5a1d265920f774ed03cf
[ "MIT" ]
null
null
null
src/zeep/xsd/elements/indicators.py
steven-deprez/python-zeep
6acadb67cde018ef409d5a1d265920f774ed03cf
[ "MIT" ]
null
null
null
src/zeep/xsd/elements/indicators.py
steven-deprez/python-zeep
6acadb67cde018ef409d5a1d265920f774ed03cf
[ "MIT" ]
null
null
null
""" zeep.xsd.elements.indicators ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Indicators are a collection of elements. There are four available, these are All, Choice, Group and Sequence. Indicator -> OrderIndicator -> All -> Choice -> Sequence -> Grou...
33.71805
88
0.561113
3112b6b77370d70d21764e6c386f647e1befbbb9
499
py
Python
searching/linear_search.py
bharathikannann/Python-Data-Structures-and-Algorithms
61aca26940e486a00cd293fae36c1391b7ef3864
[ "MIT" ]
3
2021-08-23T21:40:01.000Z
2022-02-24T10:55:25.000Z
searching/linear_search.py
bharathikannann/Python-Data-Structures-and-Algorithms
61aca26940e486a00cd293fae36c1391b7ef3864
[ "MIT" ]
null
null
null
searching/linear_search.py
bharathikannann/Python-Data-Structures-and-Algorithms
61aca26940e486a00cd293fae36c1391b7ef3864
[ "MIT" ]
null
null
null
# Linear Search def linear_search(arr: list, target: int) -> int: # arr - Collection of items # target - element tobe found for i, item in enumerate(arr): if item == target: return i return -1 ''' Example >>>linear_search([1,2,3,4],1) 0 >>>linear_search([1,2,3,4],2) 1 >>>linear_sear...
19.192308
49
0.59519
6b54e8a2c02a8150e697eb5972decb9257f0fc63
82
py
Python
chronicle/__init__.py
nkashy1/chronicle
e1a3b18c2f295c86ad25ffc174eeb8816903ebfb
[ "MIT" ]
null
null
null
chronicle/__init__.py
nkashy1/chronicle
e1a3b18c2f295c86ad25ffc174eeb8816903ebfb
[ "MIT" ]
2
2015-02-09T03:45:12.000Z
2015-02-09T06:13:14.000Z
chronicle/__init__.py
nkashy1/chronicle
e1a3b18c2f295c86ad25ffc174eeb8816903ebfb
[ "MIT" ]
null
null
null
from messenger import Messenger from responder import Responder import responders
20.5
31
0.878049
bebe5ce0ecf7d903c4a6f9ac7ebd95c6e9f449ee
1,270
py
Python
beehave/display/camera.py
maximx1/beehave
6ffa3aa1bea56ce71927fb97b8c281d53cbc0b58
[ "MIT" ]
null
null
null
beehave/display/camera.py
maximx1/beehave
6ffa3aa1bea56ce71927fb97b8c281d53cbc0b58
[ "MIT" ]
null
null
null
beehave/display/camera.py
maximx1/beehave
6ffa3aa1bea56ce71927fb97b8c281d53cbc0b58
[ "MIT" ]
null
null
null
from pygame.rect import Rect class Camera(object): def __init__(self, screen_width, screen_height, width, height): self.camera_man = CameraMan(screen_width, screen_height) self.state = Rect(0, 0, width, height) def apply(self, target): return target.rect.move(self.state.topleft) d...
40.967742
94
0.603937
8860a01668aa027d28e2f3c6c2f67264b2e78f20
1,840
py
Python
azure/setup.py
CharaD7/azure-sdk-for-python
9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c
[ "MIT" ]
1
2017-10-29T15:14:35.000Z
2017-10-29T15:14:35.000Z
azure/setup.py
Berryliao84/Python-Azure
a96ed6e8bbf4290372980a2919b31110da90b164
[ "MIT" ]
null
null
null
azure/setup.py
Berryliao84/Python-Azure
a96ed6e8bbf4290372980a2919b31110da90b164
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
32.857143
75
0.570652
49d8374817c832cab34eec61db7000d0aa59b201
8,280
py
Python
cmdb-usage/biz/handlers/ri_usage_handler.py
zjj1002/aws-cloud-cmdb-system
47982007688e5db1272435891cb654ab11d0d60a
[ "Apache-2.0" ]
null
null
null
cmdb-usage/biz/handlers/ri_usage_handler.py
zjj1002/aws-cloud-cmdb-system
47982007688e5db1272435891cb654ab11d0d60a
[ "Apache-2.0" ]
1
2022-01-04T13:53:16.000Z
2022-01-04T13:53:16.000Z
cmdb-usage/biz/handlers/ri_usage_handler.py
zjj1002/aws-cloud-cmdb-system
47982007688e5db1272435891cb654ab11d0d60a
[ "Apache-2.0" ]
null
null
null
import csv import decimal from datetime import datetime, timedelta from websdk.consts import const from libs.base_handler import BaseHandler from libs.db_context import DBContext from models.db import AWSRiUsageReport, AwsTaskQueue, AWSRiDateDB from models.db import model_to_dict from tornado.web import RequestHandler ...
46.256983
123
0.577536
695def4b5e93f3e70a466eba8c6e6c61a37ebb9b
5,386
py
Python
socceraction/xpoints.py
maartensijmkens/socceraction
357efe00b50ce071703005bf2a7dfd5bf60d765f
[ "MIT" ]
null
null
null
socceraction/xpoints.py
maartensijmkens/socceraction
357efe00b50ce071703005bf2a7dfd5bf60d765f
[ "MIT" ]
null
null
null
socceraction/xpoints.py
maartensijmkens/socceraction
357efe00b50ce071703005bf2a7dfd5bf60d765f
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from tqdm import tqdm class ExpectedPoints: def __init__(self, D: int = 2, T = 8): self.D = D self.xwin = np.full((T, D + 1), np.nan) self.xdraw = np.full((T, D + 1), np.nan) def fit(self, actions: pd.DataFrame, games: pd.DataFrame): ...
34.748387
126
0.557
a60b3dcd5864f0f9704b45b335b1a1971037604e
2,079
py
Python
src/grc_minify_db.py
Belethors-General-Mods/grc-temp-repo
99f2e41e53ae2d2247446d2197950db4ecf7ed94
[ "MIT" ]
null
null
null
src/grc_minify_db.py
Belethors-General-Mods/grc-temp-repo
99f2e41e53ae2d2247446d2197950db4ecf7ed94
[ "MIT" ]
null
null
null
src/grc_minify_db.py
Belethors-General-Mods/grc-temp-repo
99f2e41e53ae2d2247446d2197950db4ecf7ed94
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Create a minified, stripped-down database copy.""" from argparse import ArgumentParser from typing import Any, Dict, List from grc_mod import Mod import yaml from zenlog import log WANTED_KEYS = [ 'deprecated', 'gems_category', 'modid', 'name', 'tags', # oldrim and...
26.316456
79
0.623377
13e427439cd4619ef576a19dba283399675477b8
374
py
Python
tests/test_utils.py
arrigonialberto86/mixture_nets
9965ac9c7f378eb7d7e6277e609574344602152b
[ "MIT" ]
null
null
null
tests/test_utils.py
arrigonialberto86/mixture_nets
9965ac9c7f378eb7d7e6277e609574344602152b
[ "MIT" ]
null
null
null
tests/test_utils.py
arrigonialberto86/mixture_nets
9965ac9c7f378eb7d7e6277e609574344602152b
[ "MIT" ]
null
null
null
import unittest from mixture_net.utils import slice_parameter_vectors import numpy as np class TestUtils(unittest.TestCase): def test_slice_fn(self): parameters = np.array([[1, 2, 3]]) components, no_parameters = 1, 3 alpha, mu, gamma = slice_parameter_vectors(parameters, components, no_pa...
31.166667
89
0.716578
415551877ea2112133af84216baa2237b1aca41e
1,476
py
Python
src/kgtests/src/cleaning/test_relation_vocabulary.py
HermannKroll/KGExtractionToolbox
c17a55dd1fa098f5033b7765ed0f80d3abb44cb7
[ "MIT" ]
6
2021-09-17T09:49:59.000Z
2021-12-06T10:07:01.000Z
src/kgtests/src/cleaning/test_relation_vocabulary.py
HermannKroll/KGExtractionToolbox
c17a55dd1fa098f5033b7765ed0f80d3abb44cb7
[ "MIT" ]
null
null
null
src/kgtests/src/cleaning/test_relation_vocabulary.py
HermannKroll/KGExtractionToolbox
c17a55dd1fa098f5033b7765ed0f80d3abb44cb7
[ "MIT" ]
1
2021-09-18T17:56:12.000Z
2021-09-18T17:56:12.000Z
import unittest from kgextractiontoolbox.cleaning.relation_vocabulary import RelationVocabulary from kgtests import util class RelationVocabularyTest(unittest.TestCase): def setUp(self) -> None: self.vocab = RelationVocabulary() self.vocab.load_from_json(util.get_test_resource_filepath('cleaning...
39.891892
113
0.70935
68c32c9c7cf6889e8e8720b72c7bf01d90ae4dce
8,772
py
Python
lingvodoc/utils/doc_parser.py
ankan2013/lingvodoc
08eb70906104e703f5465538067775e6b1cafd0e
[ "Apache-2.0" ]
5
2017-03-30T18:02:11.000Z
2021-07-20T16:02:34.000Z
lingvodoc/utils/doc_parser.py
ankan2013/lingvodoc
08eb70906104e703f5465538067775e6b1cafd0e
[ "Apache-2.0" ]
15
2016-02-24T13:16:59.000Z
2021-09-03T11:47:15.000Z
lingvodoc/utils/doc_parser.py
ankan2013/lingvodoc
08eb70906104e703f5465538067775e6b1cafd0e
[ "Apache-2.0" ]
22
2015-09-25T07:13:40.000Z
2021-08-04T18:08:26.000Z
import json import re from uniparser_erzya import ErzyaAnalyzer from uniparser_meadow_mari import MeadowMariAnalyzer from uniparser_udmurt import UdmurtAnalyzer from uniparser_moksha import MokshaAnalyzer from uniparser_komi_zyrian import KomiZyrianAnalyzer from nltk.tokenize import RegexpTokenizer import csv import o...
33.738462
163
0.582535
324feda40b79846cbdf9f9fee67aa79794e2a32c
1,484
py
Python
config/urls.py
halitcelik/usedtobeforest.com
fb529675a0f164bc9b81e6796fa02aca10cd7b8a
[ "MIT" ]
2
2021-08-02T20:57:31.000Z
2021-08-03T09:12:52.000Z
config/urls.py
halitcelik/usedtobeforest.com
fb529675a0f164bc9b81e6796fa02aca10cd7b8a
[ "MIT" ]
1
2022-03-31T07:20:09.000Z
2022-03-31T07:20:09.000Z
config/urls.py
halitcelik/usedtobeforest
fb529675a0f164bc9b81e6796fa02aca10cd7b8a
[ "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 urlpatterns = [ path("", include("usedtobeforest.main.urls")), # Django Admin, use {% url 'admin:index' %} pa...
34.511628
85
0.641509
7ffcdb2e32073688426a34bc699c2cfc3eb603a3
12,550
py
Python
trove-11.0.0/trove/guestagent/strategies/replication/experimental/postgresql_impl.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
1
2020-04-08T07:42:19.000Z
2020-04-08T07:42:19.000Z
trove/guestagent/strategies/replication/experimental/postgresql_impl.py
ttcong/trove
1db2dc63fdd5409eafccebe79ff2900d0535ed13
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
trove/guestagent/strategies/replication/experimental/postgresql_impl.py
ttcong/trove
1db2dc63fdd5409eafccebe79ff2900d0535ed13
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2014 Tesora, 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 app...
40.879479
79
0.630199
2f20084d8a5f01b674cfbcf6cd88ca1b7742b74e
760
py
Python
voice.py
akshay6820/DeepWay
1497473f246fb92c164d42d1112dbca860a7629a
[ "MIT" ]
140
2018-06-23T18:14:07.000Z
2022-02-21T16:56:03.000Z
voice.py
akshay6820/DeepWay
1497473f246fb92c164d42d1112dbca860a7629a
[ "MIT" ]
1
2022-03-18T13:40:36.000Z
2022-03-18T13:40:36.000Z
voice.py
akshay6820/DeepWay
1497473f246fb92c164d42d1112dbca860a7629a
[ "MIT" ]
42
2018-06-25T22:18:29.000Z
2021-12-11T08:05:10.000Z
from pygame import mixer class Voice: def right(self): mixer.init() mixer.music.load('right.mp3') mixer.music.play() def left(self): mixer.init() mixer.music.load('left.mp3') mixer.music.play() def stop_left(self): mixer.init() ...
22.352941
43
0.543421
08915f2075e2aea475135409f90dd601f370c186
614
py
Python
test_sample.py
chrislopez28/kebabs
15085141ca5764c6ee00bbca5f404383cfdf2f66
[ "MIT" ]
null
null
null
test_sample.py
chrislopez28/kebabs
15085141ca5764c6ee00bbca5f404383cfdf2f66
[ "MIT" ]
null
null
null
test_sample.py
chrislopez28/kebabs
15085141ca5764c6ee00bbca5f404383cfdf2f66
[ "MIT" ]
null
null
null
import pytest from .kebabs import kebab_case def test_camelcase(): assert kebab_case("camelCase") == "camel-case" def test_sentence(): assert kebab_case( "Why, sometimes I've believed as many as six impossible things before breakfast.") == "why-sometimes-ive-believed-as-many-as-six-impossible-things...
24.56
172
0.685668
b4718e14113ec0b70192ae9463fe34a7f1325e72
2,730
gyp
Python
node_modules/lmdb-store/binding.gyp
nfaltir/project-website
b2518eb8736501583c5f0210b6927eae317e7362
[ "MIT" ]
null
null
null
node_modules/lmdb-store/binding.gyp
nfaltir/project-website
b2518eb8736501583c5f0210b6927eae317e7362
[ "MIT" ]
null
null
null
node_modules/lmdb-store/binding.gyp
nfaltir/project-website
b2518eb8736501583c5f0210b6927eae317e7362
[ "MIT" ]
1
2021-11-01T00:57:56.000Z
2021-11-01T00:57:56.000Z
{ "variables": { "os_linux_compiler%": "gcc", "use_robust%": "false", "use_data_v1%": "false", "enable_fast_api_calls%": "false", "enable_pointer_compression%": "false", "target%": "", "build_v8_with_gn": "false" }, "targets": [ { "target_name": "lmd...
28.4375
87
0.4337
3788236965d12f541c7f365043039f574b4ca93c
14,346
py
Python
backend/venv/Lib/site-packages/git/diff.py
analurandis/Tur
b4b5d1230d70659be0c3f477f0baea68fc46ba39
[ "MIT" ]
null
null
null
backend/venv/Lib/site-packages/git/diff.py
analurandis/Tur
b4b5d1230d70659be0c3f477f0baea68fc46ba39
[ "MIT" ]
null
null
null
backend/venv/Lib/site-packages/git/diff.py
analurandis/Tur
b4b5d1230d70659be0c3f477f0baea68fc46ba39
[ "MIT" ]
null
null
null
# diff.py # Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php import re from gitdb.util import hex_to_bin from .objects.blob import Blob from .objects.util import m...
36.690537
107
0.560226
0152ef6939f87644703740c8d4248a52c7e4b643
15,023
py
Python
elmclient/_app.py
jjrevuel/ELM-Python-Client
3585a77b13cfb791988a1ae394bcf7d89beca749
[ "MIT" ]
null
null
null
elmclient/_app.py
jjrevuel/ELM-Python-Client
3585a77b13cfb791988a1ae394bcf7d89beca749
[ "MIT" ]
null
null
null
elmclient/_app.py
jjrevuel/ELM-Python-Client
3585a77b13cfb791988a1ae394bcf7d89beca749
[ "MIT" ]
null
null
null
## ## © Copyright 2021- IBM Inc. All rights reserved # SPDX-License-Identifier: MIT ## import logging import urllib import requests.exceptions from . import rdfxml from . import oslcqueryapi from . import utils from . import httpops logger = logging.getLogger(__name__) ###########################################...
46.082822
259
0.640485
ede33d12c4adae5a6651c12dc293ea5089c6ac4f
764
py
Python
algorithms/sorting/comb_sort.py
proudzhu/algorithms
636a4519832849dcb6516f2ef78428872b3bb81c
[ "BSD-3-Clause" ]
2,545
2015-01-01T17:11:49.000Z
2022-03-26T04:51:28.000Z
algorithms/sorting/comb_sort.py
proudzhu/algorithms
636a4519832849dcb6516f2ef78428872b3bb81c
[ "BSD-3-Clause" ]
90
2015-03-15T11:34:35.000Z
2018-10-27T13:47:53.000Z
algorithms/sorting/comb_sort.py
zhangbo2008/python_algorithm2
c53669703b957a079f100c12711f86f5fc2f9389
[ "BSD-3-Clause" ]
787
2015-01-01T19:24:44.000Z
2022-02-21T01:24:55.000Z
""" Comb Sort --------- Improves on bubble sort by using a gap sequence to remove turtles. Time Complexity: O(n**2) Space Complexity: O(1) Auxiliary Stable: Yes Psuedo code: http://en.wikipedia.org/wiki/Comb_sort """ def sort(seq): """ Takes a list of integers and sorts them i...
20.648649
75
0.548429
708ad55aaeb66ede7c5b8f680571f2d636c3d52b
3,899
py
Python
homeassistant/components/config/automation.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
1
2021-04-26T14:28:48.000Z
2021-04-26T14:28:48.000Z
homeassistant/components/config/automation.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
null
null
null
homeassistant/components/config/automation.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
null
null
null
"""Provide configuration end points for Automations.""" from collections import OrderedDict import uuid import voluptuous as vol from homeassistant.components import websocket_api from homeassistant.components.automation import ( get_debug_traces, get_debug_traces_for_automation, ) from homeassistant.componen...
32.491667
86
0.685817
feea42e5e3e727390a823a74cf65b747d68f74de
6,734
py
Python
tests/test_decoders.py
BigChief45/httpx
cee1fccaca1701c39901c2c9663fcaa081075b2d
[ "BSD-3-Clause" ]
null
null
null
tests/test_decoders.py
BigChief45/httpx
cee1fccaca1701c39901c2c9663fcaa081075b2d
[ "BSD-3-Clause" ]
null
null
null
tests/test_decoders.py
BigChief45/httpx
cee1fccaca1701c39901c2c9663fcaa081075b2d
[ "BSD-3-Clause" ]
null
null
null
import zlib import brotli import pytest import httpx from httpx.content_streams import AsyncIteratorStream from httpx.decoders import ( BrotliDecoder, DeflateDecoder, GZipDecoder, IdentityDecoder, LineDecoder, TextDecoder, ) def test_deflate(): body = b"test 123" compressor = zlib.co...
30.197309
88
0.643303
26cc95f54c50f26fee3dfca93bdef090447d46fd
10,032
py
Python
config/settings/base.py
majaeseong/votesystem
624fadca0251a81c0417f3a3a23f3d6c38b1cf33
[ "MIT" ]
null
null
null
config/settings/base.py
majaeseong/votesystem
624fadca0251a81c0417f3a3a23f3d6c38b1cf33
[ "MIT" ]
null
null
null
config/settings/base.py
majaeseong/votesystem
624fadca0251a81c0417f3a3a23f3d6c38b1cf33
[ "MIT" ]
null
null
null
""" Base settings to build other settings files upon. """ import environ ROOT_DIR = environ.Path(__file__) - 3 # (votesystem/config/settings/base.py - 3 = votesystem/) APPS_DIR = ROOT_DIR.path('votesystem') env = environ.Env() READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', default=False) if READ_DOT_ENV_...
39.652174
98
0.630981
666ec01090864090f3f94ece30526d30bf83343c
13,850
py
Python
ai_economist/foundation/scenarios/one_step_economy/one_step_economy.py
lucifer2288/ai-economist
444948f454babc3c7934cf503c1d4abfeae7f1f2
[ "BSD-3-Clause" ]
null
null
null
ai_economist/foundation/scenarios/one_step_economy/one_step_economy.py
lucifer2288/ai-economist
444948f454babc3c7934cf503c1d4abfeae7f1f2
[ "BSD-3-Clause" ]
null
null
null
ai_economist/foundation/scenarios/one_step_economy/one_step_economy.py
lucifer2288/ai-economist
444948f454babc3c7934cf503c1d4abfeae7f1f2
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2021 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root # or https://opensource.org/licenses/BSD-3-Clause import numpy as np from ai_economist.foundation.base.base_env import BaseEnvironment, scenario_regis...
43.829114
88
0.650758
56a953f724ccf18c0df8ed83e745cda93561ef9d
5,647
py
Python
sdk/aqualink_sdk/api/aggregate_api.py
aqualinkorg/aqualink-sdk
dad972d1dd5b74e8216bdc30521a8b76f7844733
[ "MIT" ]
1
2022-02-06T23:05:37.000Z
2022-02-06T23:05:37.000Z
sdk/aqualink_sdk/api/aggregate_api.py
aqualinkorg/aqualink-sdk
dad972d1dd5b74e8216bdc30521a8b76f7844733
[ "MIT" ]
3
2022-02-07T06:13:31.000Z
2022-03-11T12:43:39.000Z
sdk/aqualink_sdk/api/aggregate_api.py
aqualinkorg/aqualink-sdk
dad972d1dd5b74e8216bdc30521a8b76f7844733
[ "MIT" ]
null
null
null
""" Aqualink API documentation The Aqualink public API documentation # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ from pprint import pprint import pandas as pd from aqualink_sdk.api_client import ApiClient from aqualink_sdk.api import time_...
33.023392
91
0.613069
dbfb70d19a4f0ac906a6f145ad3108b6f08b7a18
415
py
Python
src/stac_fastapi/sqlalchemy/stac_fastapi/sqlalchemy/types/links.py
Dataforsyningen/skraafoto_stac_public
fa9cb7e3516cfacf730d24bb56ae50e2e0e5bae1
[ "MIT" ]
null
null
null
src/stac_fastapi/sqlalchemy/stac_fastapi/sqlalchemy/types/links.py
Dataforsyningen/skraafoto_stac_public
fa9cb7e3516cfacf730d24bb56ae50e2e0e5bae1
[ "MIT" ]
15
2022-01-12T08:52:22.000Z
2022-02-02T14:41:47.000Z
src/stac_fastapi/sqlalchemy/stac_fastapi/sqlalchemy/types/links.py
Dataforsyningen/skraafoto_stac_public
fa9cb7e3516cfacf730d24bb56ae50e2e0e5bae1
[ "MIT" ]
null
null
null
from typing import Dict import attr from stac_fastapi.types.links import BaseHrefBuilder @attr.s class ApiTokenHrefBuilder(BaseHrefBuilder): """Adds `token` param to all hrefs""" token: str = attr.ib() def build(self, path: str = None, query: Dict[str, str] = None): q = query or {} if s...
24.411765
68
0.638554