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
6e3002e2c6415e156acd817a02e76371be3fa3fd
26,887
py
Python
gluon/reserved_sql_keywords.py
ww9rivers/web2py
a2a269279405b8832f6e7fafdded81a9a134f43e
[ "BSD-3-Clause" ]
97
2015-01-17T09:41:57.000Z
2022-03-15T11:39:03.000Z
gluon/reserved_sql_keywords.py
mohit3011/Quiz-Mate
17988a623abde439aef2b43fc8dc3162b5cae15e
[ "BSD-3-Clause" ]
26
2015-01-02T13:35:48.000Z
2015-06-10T14:39:07.000Z
gluon/reserved_sql_keywords.py
mohit3011/Quiz-Mate
17988a623abde439aef2b43fc8dc3162b5cae15e
[ "BSD-3-Clause" ]
35
2015-01-25T04:48:37.000Z
2021-01-29T20:32:26.000Z
# encoding utf-8 __author__ = "Thadeus Burgess <thadeusb@thadeusb.com>" # we classify as "non-reserved" those key words that are explicitly known # to the parser but are allowed as column or table names. Some key words # that are otherwise non-reserved cannot be used as function or data type n # ames and ...
15.631977
78
0.481943
6762c110722ff0c008dc412cabca4b5c9fae38f7
882
py
Python
src/src/toy/main.py
ychnlgy/LipoWithGradients
4fe5228a3dae8bf5d457eef6191ba29314421f6b
[ "MIT" ]
null
null
null
src/src/toy/main.py
ychnlgy/LipoWithGradients
4fe5228a3dae8bf5d457eef6191ba29314421f6b
[ "MIT" ]
null
null
null
src/src/toy/main.py
ychnlgy/LipoWithGradients
4fe5228a3dae8bf5d457eef6191ba29314421f6b
[ "MIT" ]
null
null
null
from . import datasets, train, visual, layers import src def get_type(model_type, tier): node = getattr(layers, model_type) return getattr(node, "Tier_%s" % tier) def main( dataname, results_savepath, model_type, optimize_zero, tier, D, E_main, E_zero, miles_main, miles...
25.2
123
0.659864
13167bac8e3fd184e172513c30df9359a0d12155
402
py
Python
tests/fakeapi/example_method_view.py
athenianco/especifico
af8b97868390ba23a2c5e3e8506bd5215ee0084a
[ "Apache-2.0" ]
null
null
null
tests/fakeapi/example_method_view.py
athenianco/especifico
af8b97868390ba23a2c5e3e8506bd5215ee0084a
[ "Apache-2.0" ]
null
null
null
tests/fakeapi/example_method_view.py
athenianco/especifico
af8b97868390ba23a2c5e3e8506bd5215ee0084a
[ "Apache-2.0" ]
null
null
null
from flask.views import MethodView class ExampleMethodView(MethodView): mycontent = "demonstrate return from MethodView class" def get(self): return self.mycontent def search(self): return self.mycontent def api_list(self): return self.mycontent def post_greeting(self):...
19.142857
58
0.674129
a5a1be798dbd40da136d0d0f2efb9d9c9ca1e2fe
10,503
py
Python
pyunicorn/climate/rainfall.py
jkroenke/pyunicorn
0d0de845587879e303d738b62e7831058e28e596
[ "BSD-3-Clause" ]
168
2015-04-16T20:29:58.000Z
2022-03-30T14:30:24.000Z
pyunicorn/climate/rainfall.py
jkroenke/pyunicorn
0d0de845587879e303d738b62e7831058e28e596
[ "BSD-3-Clause" ]
110
2015-04-21T08:15:58.000Z
2022-03-26T12:03:58.000Z
pyunicorn/climate/rainfall.py
jkroenke/pyunicorn
0d0de845587879e303d738b62e7831058e28e596
[ "BSD-3-Clause" ]
74
2015-05-18T15:24:36.000Z
2022-03-11T14:20:24.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # This file is part of pyunicorn. # Copyright (C) 2008--2019 Jonathan F. Donges and pyunicorn authors # URL: <http://www.pik-potsdam.de/members/donges/software> # License: BSD (3-clause) # # Please acknowledge and cite the use of this software and its authors # when results a...
36.723776
79
0.630487
39287cf81e78490bf1d40928b085995aad863a8f
520,699
py
Python
src/TWL06/twl.py
tim19683/py-cipher
c26ea9fe47dd5496855217835b42c89cea924836
[ "MIT" ]
null
null
null
src/TWL06/twl.py
tim19683/py-cipher
c26ea9fe47dd5496855217835b42c89cea924836
[ "MIT" ]
1
2017-10-01T20:57:34.000Z
2017-10-15T13:32:38.000Z
src/TWL06/twl.py
tim-clifford/py-cipher
c26ea9fe47dd5496855217835b42c89cea924836
[ "MIT" ]
null
null
null
''' A convenient, self-contained, 515 KB Scrabble dictionary module, ideal for use in word games. Functionality: - Check if a word is in the dictionary. - Enumerate all words in the dictionary. - Determine what letters may appear after a given prefix. - Determine what words can be formed by anagramming a set of lette...
75.093597
98
0.865942
cb3cec1719c2f502d23d8a04a7dc4305488c0439
9,866
py
Python
lstm_teach_iter.py
pawelleckii/Rhyming-Neural-Net
170dc6d1268e15ae563c630b53b4da1399097f10
[ "MIT" ]
1
2019-10-22T07:12:42.000Z
2019-10-22T07:12:42.000Z
lstm_teach_iter.py
pawelleckii/Rhyming-Neural-Net
170dc6d1268e15ae563c630b53b4da1399097f10
[ "MIT" ]
null
null
null
lstm_teach_iter.py
pawelleckii/Rhyming-Neural-Net
170dc6d1268e15ae563c630b53b4da1399097f10
[ "MIT" ]
null
null
null
from __future__ import print_function import keras from keras.models import Model from keras.layers import Input, LSTM, Dense from seq_param import max_seq_length, input_token_index, target_token_index from keras.callbacks import History import random import numpy as np import matplotlib.pyplot as plt def generate_s...
40.937759
173
0.632374
17c00ae6d21e7e9690ac9b2fcc8cd4e07eaea7eb
2,388
py
Python
samples/columbus.py
ukrukarg/datastore-ndb-python
4a43b7744397d40834619a96ff94e0a80e4aad18
[ "Apache-2.0" ]
119
2015-08-30T00:20:35.000Z
2021-12-18T21:30:53.000Z
samples/columbus.py
DalavanCloud/datastore-ndb-python
cf4cab3f1f69cd04e1a9229871be466b53729f3f
[ "Apache-2.0" ]
53
2015-08-05T03:56:07.000Z
2020-01-29T00:46:19.000Z
samples/columbus.py
DalavanCloud/datastore-ndb-python
cf4cab3f1f69cd04e1a9229871be466b53729f3f
[ "Apache-2.0" ]
53
2015-10-27T19:52:25.000Z
2021-10-09T16:32:34.000Z
# # Copyright 2008 The ndb Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
28.428571
74
0.739112
2c72b4b329c450d24589ccc263b8bb7d7878902c
3,057
py
Python
asr_kaldi/src/_config.py
shivdeep-singh/conversational-ai-chatbot
b67802a96b3fe3d64457931a8cbf8bf03442fd0d
[ "BSD-3-Clause" ]
null
null
null
asr_kaldi/src/_config.py
shivdeep-singh/conversational-ai-chatbot
b67802a96b3fe3d64457931a8cbf8bf03442fd0d
[ "BSD-3-Clause" ]
null
null
null
asr_kaldi/src/_config.py
shivdeep-singh/conversational-ai-chatbot
b67802a96b3fe3d64457931a8cbf8bf03442fd0d
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (C) 2021 Intel Corporation SPDX-License-Identifier: BSD-3-Clause """ from envparse import Env from zmq_integration_lib import get_inpad, get_outpad def _validate_env_addr_variable(INPUT_ADDR, OUTPUT_ADDR, AUTHZ_SERVER_ADDR): for variable in [INPUT_ADDR, OUTPUT_ADDR, AUTHZ_SERVER_ADDR]: i...
26.815789
85
0.666667
de91d591925a08e779c95a80548055efef2210d1
143
py
Python
assignment1/mapper.py
IITDU-BSSE06/ads-demystifying-the-logs-nazmul0637
cf8ee43bee7ce7ad93573f76adb416fa810adcc9
[ "MIT" ]
null
null
null
assignment1/mapper.py
IITDU-BSSE06/ads-demystifying-the-logs-nazmul0637
cf8ee43bee7ce7ad93573f76adb416fa810adcc9
[ "MIT" ]
null
null
null
assignment1/mapper.py
IITDU-BSSE06/ads-demystifying-the-logs-nazmul0637
cf8ee43bee7ce7ad93573f76adb416fa810adcc9
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys for line in sys.stdin: data = line.strip().split(" ") if len(data) == 10: print data[0]
15.888889
35
0.538462
b783c1ebf42a0019ee8e85d83f3cdd03d11c5062
5,304
py
Python
lib/data/CrowdHuman.py
erwulff/CrowdDet
41d2d55b501e046d4e5cdba6aa5d3834fe026f19
[ "MIT" ]
389
2020-04-02T17:31:14.000Z
2022-03-29T21:12:21.000Z
lib/data/CrowdHuman.py
erwulff/CrowdDet
41d2d55b501e046d4e5cdba6aa5d3834fe026f19
[ "MIT" ]
76
2020-04-16T05:52:47.000Z
2022-03-12T10:58:02.000Z
lib/data/CrowdHuman.py
erwulff/CrowdDet
41d2d55b501e046d4e5cdba6aa5d3834fe026f19
[ "MIT" ]
87
2020-04-22T15:44:36.000Z
2022-03-22T09:03:21.000Z
import os import cv2 import torch import numpy as np from utils import misc_utils class CrowdHuman(torch.utils.data.Dataset): def __init__(self, config, if_train): if if_train: self.training = True source = config.train_source self.short_size = config.train_image_short_...
39.288889
98
0.597285
49a5e3fc1bd3a704acb7834424f81fb5cd516a34
5,238
py
Python
final/180401104.py
yigitcanustek/blm2010
2e86dab3fc225a7679b6c660fb01902423476a94
[ "Unlicense" ]
2
2020-05-20T19:25:37.000Z
2021-04-01T21:26:54.000Z
final/180401104.py
yigitcanustek/blm2010
2e86dab3fc225a7679b6c660fb01902423476a94
[ "Unlicense" ]
15
2020-05-18T14:53:18.000Z
2020-06-26T09:20:50.000Z
final/180401104.py
yigitcanustek/blm2010
2e86dab3fc225a7679b6c660fb01902423476a94
[ "Unlicense" ]
155
2020-04-28T16:14:38.000Z
2020-06-26T09:46:59.000Z
# Mert BAYGIN 180401104 # nxm matris hespalama def nnMatris(matrisHesapla): list = matrisHesapla.copy() satir = len(matrisHesapla) sutun = len(matrisHesapla[0]) #Sol üçgensel matris for k in range(satir-1): for i in range(satir-1-k): ...
30.453488
141
0.58572
0c3a63ea7e9979e726dc574f02908ec8ea154025
176
py
Python
dnskeeper-runner.py
liftedkilt/dnskeeper-cloudflare
59bf48ec2fe30d7da58f1259631d805ddfb1e1b6
[ "BSD-2-Clause" ]
null
null
null
dnskeeper-runner.py
liftedkilt/dnskeeper-cloudflare
59bf48ec2fe30d7da58f1259631d805ddfb1e1b6
[ "BSD-2-Clause" ]
null
null
null
dnskeeper-runner.py
liftedkilt/dnskeeper-cloudflare
59bf48ec2fe30d7da58f1259631d805ddfb1e1b6
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Convenience wrapper for running dnskeeper directly from source tree. # from dnskeeper.dnskeeper import main if __name__ == '__main__': main()
16
70
0.732955
09ca70a90319b29e1382199a4d5ed5b13c37b2f4
1,203
py
Python
day015-day058/day016/money_machine.py
sysarghir/100-days-of-python
8edc7ce102429333d4abd80ac3f4067e4028c66d
[ "MIT" ]
8
2021-01-25T09:14:41.000Z
2021-11-24T12:29:26.000Z
day015-day058/day016/money_machine.py
sysarghir/100-days-of-python
8edc7ce102429333d4abd80ac3f4067e4028c66d
[ "MIT" ]
12
2021-06-14T13:40:18.000Z
2021-09-10T12:32:03.000Z
day015-day058/day016/money_machine.py
sysarghir/100-days-of-python
8edc7ce102429333d4abd80ac3f4067e4028c66d
[ "MIT" ]
2
2022-02-07T20:49:36.000Z
2022-02-19T21:22:15.000Z
class MoneyMachine: CURRENCY = "$" COIN_VALUES = { "quarters": 0.25, "dimes": 0.10, "nickles": 0.05, "pennies": 0.01 } def __init__(self): self.profit = 0 self.money_received = 0 def report(self): """Prints the current profit""" pri...
30.075
93
0.56941
2cf38cd6e419643e9ac3bfe1a98607f5297923ac
4,098
py
Python
chris_backend/config/settings/common.py
laris678/ChRIS_ultron_backEnd
3ee492dfa699b6394b19a6458fd511bda2824e09
[ "MIT" ]
null
null
null
chris_backend/config/settings/common.py
laris678/ChRIS_ultron_backEnd
3ee492dfa699b6394b19a6458fd511bda2824e09
[ "MIT" ]
null
null
null
chris_backend/config/settings/common.py
laris678/ChRIS_ultron_backEnd
3ee492dfa699b6394b19a6458fd511bda2824e09
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Django settings for chris_backend project. Generated by 'django-admin startproject' using Django 2.2.12. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/...
27.32
91
0.690093
c387fe225288dc1495d8a43dbbea66dc6a3efaf0
2,361
py
Python
Prediction.py
block98k/TAIl_CAMP_week_2
02750dfb7d026ede53c9f10c4af2bee546390796
[ "MIT" ]
null
null
null
Prediction.py
block98k/TAIl_CAMP_week_2
02750dfb7d026ede53c9f10c4af2bee546390796
[ "MIT" ]
null
null
null
Prediction.py
block98k/TAIl_CAMP_week_2
02750dfb7d026ede53c9f10c4af2bee546390796
[ "MIT" ]
null
null
null
import cv2 import itertools, os, time import numpy as np from Model import get_Model from parameter import letters import argparse from keras import backend as K K.set_learning_phase(0) def decode_label(out): # out : (1, 32, 42) out_best = list(np.argmax(out[0, 2:], axis=1)) # get max index -> len = 32 ...
26.829545
91
0.63956
6dae31c343000bf733524f76d38e9f66a3c6673c
1,809
py
Python
pystocklib/news.py
mohabmes/pystocklib
0424ee8f0e85b28c26c19d9925c9101722bd316d
[ "MIT" ]
31
2018-05-03T13:26:43.000Z
2022-01-11T14:17:26.000Z
pystocklib/news.py
urantialife/pystocklib
0424ee8f0e85b28c26c19d9925c9101722bd316d
[ "MIT" ]
1
2018-04-01T17:09:20.000Z
2018-12-28T02:12:11.000Z
pystocklib/news.py
urantialife/pystocklib
0424ee8f0e85b28c26c19d9925c9101722bd316d
[ "MIT" ]
6
2018-04-24T21:41:38.000Z
2020-07-23T16:03:52.000Z
import requests from bs4 import BeautifulSoup from tld import get_tld from textblob import TextBlob class News: all_news = [] topic = '' bs = '' sentiment = 0 result = {} path = "" def __init__(self, topic, path=None): self.topic = topic self.path = path self.get_markup() self.extract_news() self.c...
20.1
77
0.650083
c5c35e95706ee35218f5b216e260248fc2b87cba
5,654
py
Python
sdmetrics/single_table/multi_column_pairs.py
ZhuofanXie/SDMetrics
a89fa4177b9ff2aa1ee6dfaef0b908581109fe55
[ "MIT" ]
1
2021-03-12T06:13:11.000Z
2021-03-12T06:13:11.000Z
sdmetrics/single_table/multi_column_pairs.py
ZhuofanXie/SDMetrics
a89fa4177b9ff2aa1ee6dfaef0b908581109fe55
[ "MIT" ]
null
null
null
sdmetrics/single_table/multi_column_pairs.py
ZhuofanXie/SDMetrics
a89fa4177b9ff2aa1ee6dfaef0b908581109fe55
[ "MIT" ]
null
null
null
"""SingleTable metrics based on applying a ColumnPairsMetrics on all the possible column pairs.""" from itertools import combinations import numpy as np from sdmetrics import column_pairs from sdmetrics.single_table.base import SingleTableMetric from sdmetrics.utils import NestedAttrsMeta class MultiColumnPairsMet...
38.726027
98
0.665723
01d364532d2416641dae85e093a154e097c241ca
6,591
py
Python
pyscf/pbc/eph/eph_fd.py
zc62/pyscf
4ed05044d44d49c3ffd4d2e098e9031478fb39e7
[ "Apache-2.0" ]
null
null
null
pyscf/pbc/eph/eph_fd.py
zc62/pyscf
4ed05044d44d49c3ffd4d2e098e9031478fb39e7
[ "Apache-2.0" ]
null
null
null
pyscf/pbc/eph/eph_fd.py
zc62/pyscf
4ed05044d44d49c3ffd4d2e098e9031478fb39e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2014-2021 The PySCF Developers. 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 # # U...
36.214286
112
0.611592
149b2665d712c0a2200698d9b778ae66ea7a0c22
888
py
Python
edhoc/messages/error.py
geonnave/py-edhoc
c656fba49e939bbf86372844125790fa2d5fcb9f
[ "BSD-3-Clause" ]
2
2022-01-20T11:35:39.000Z
2022-03-11T15:49:36.000Z
edhoc/messages/error.py
TimothyClaeys/EDHOC-PYTHON
cd7a66ab407b4c4302e9937f5569b9de73d734b7
[ "BSD-3-Clause" ]
18
2021-03-02T15:10:11.000Z
2022-02-10T11:46:25.000Z
edhoc/messages/error.py
TimothyClaeys/EDHOC-PYTHON
cd7a66ab407b4c4302e9937f5569b9de73d734b7
[ "BSD-3-Clause" ]
3
2021-02-05T11:52:17.000Z
2021-12-08T20:49:49.000Z
from typing import List, Union, Optional from edhoc.definitions import CipherSuite from edhoc.messages.base import EdhocMessage class MessageError(EdhocMessage): def decode(self, received: bytes): _ = super(MessageError, self).decode(received) def __init__(self, err_msg: str, ...
30.62069
83
0.585586
8e6b0a20cff580142c330f173741ac9a51914944
5,838
py
Python
tests/test_hierarchy_inference.py
GeorgFerdinandSchneider/Brick
b15f3b9199a34ea3728c1d073c2f22ea8c28550e
[ "BSD-3-Clause" ]
null
null
null
tests/test_hierarchy_inference.py
GeorgFerdinandSchneider/Brick
b15f3b9199a34ea3728c1d073c2f22ea8c28550e
[ "BSD-3-Clause" ]
null
null
null
tests/test_hierarchy_inference.py
GeorgFerdinandSchneider/Brick
b15f3b9199a34ea3728c1d073c2f22ea8c28550e
[ "BSD-3-Clause" ]
null
null
null
import json from collections import defaultdict import time import brickschema from tqdm import tqdm from rdflib import URIRef, Graph from .util import make_readable import sys sys.path.append("..") from bricksrc.version import BRICK_VERSION # noqa: E402 from bricksrc.namespaces import BRICK # noqa: E402 """ This s...
34.140351
146
0.62864
ed79cd7ad26dda5adf208b2f9401ade6b5c5d4f3
1,235
py
Python
configs/selfsup/mae/imagenet100/vit_small_dec6_dim512_8xb64_accu8_cos_ep400.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
10
2021-12-30T10:22:27.000Z
2022-03-30T02:31:38.000Z
configs/selfsup/mae/imagenet100/vit_small_dec6_dim512_8xb64_accu8_cos_ep400.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
3
2022-01-20T21:02:48.000Z
2022-03-19T13:49:45.000Z
configs/selfsup/mae/imagenet100/vit_small_dec6_dim512_8xb64_accu8_cos_ep400.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../../_base_/models/mae/vit_small.py', '../../_base_/datasets/imagenet100/mae_sz224_bs64.py', '../../_base_/default_runtime.py', ] # interval for accumulate gradient update_interval = 8 # total: 8 x bs64 x 8 accumulates = bs4096 # optimizer optimizer = dict( type='AdamW', lr=1.5e-4 * ...
30.875
91
0.674494
b94d3134629fdd4bb3b2bba9a7ea6ccbfa10b2a5
2,662
py
Python
D6F_PH0505.py
emguse/pico_logger_o
b6e20d8a8ff450715b06a2028dbe9fd847187cc3
[ "MIT" ]
null
null
null
D6F_PH0505.py
emguse/pico_logger_o
b6e20d8a8ff450715b06a2028dbe9fd847187cc3
[ "MIT" ]
null
null
null
D6F_PH0505.py
emguse/pico_logger_o
b6e20d8a8ff450715b06a2028dbe9fd847187cc3
[ "MIT" ]
null
null
null
import board import busio import time from adafruit_bus_device.i2c_device import I2CDevice ''' - 2021/12/14 ver.1.00 - Author : emguse - License: MIT License ''' RANGE_100 = 100 # ±50Pa(D6F-PH0505) RANGE_1000 = 1000 # ±500Pa(D6F-PH5050) RANGE_250 = 250 # 0-250Pa(D6F-PH0025) I2C_ADDRES = 0x6C # i2c addres CRC_ENA...
31.690476
77
0.548835
03ddcb0c5bbe6f46919068b26f54719426251f77
9,553
py
Python
sdk/python/pulumi_azure/network/express_route_gateway.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/network/express_route_gateway.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/network/express_route_gateway.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...
48.492386
233
0.666702
fd781d6d2fb39962c4e9feca8228391b8c13fdd4
13,944
py
Python
nikola/plugins/task/sitemap/__init__.py
agustinhenze/nikola.debian
b67294f76809a681ff73f209ed691a3e3f00563d
[ "MIT" ]
null
null
null
nikola/plugins/task/sitemap/__init__.py
agustinhenze/nikola.debian
b67294f76809a681ff73f209ed691a3e3f00563d
[ "MIT" ]
null
null
null
nikola/plugins/task/sitemap/__init__.py
agustinhenze/nikola.debian
b67294f76809a681ff73f209ed691a3e3f00563d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright © 2012-2015 Roberto Alsina and others. # 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 t...
43.439252
178
0.553643
bfa01773101c29fc8e4ef36387437303c0ad11f7
834
py
Python
problem/01000~09999/02468/2468.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-19T16:37:44.000Z
2019-04-19T16:37:44.000Z
problem/01000~09999/02468/2468.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-20T11:42:44.000Z
2019-04-20T11:42:44.000Z
problem/01000~09999/02468/2468.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
3
2019-04-19T16:37:47.000Z
2021-10-25T00:45:00.000Z
from collections import deque def BFS(si,sj,pivot): global N,X,visit Q=deque() Q.append((si,sj)) visit[si][sj]=True while Q: i,j=Q.popleft() if i>0 and X[i-1][j]>pivot and not visit[i-1][j]: Q.append((i-1,j)) visit[i-1][j]=True if i<N-1 and X[i+1][j]>pivot and not visit[i+1][j]: Q.append((i+1,j)) ...
22.540541
56
0.585132
8023666ef61684347199b5f1bad9a9cd666db23c
10,486
py
Python
intersight/model/capability_switching_mode_capability_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/capability_switching_mode_capability_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/capability_switching_mode_capability_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
54.331606
1,678
0.648961
0036743097d959d18c1763dc4c63b3c93aa97f07
1,126
py
Python
62.py
renato-felix/PythonCursoEmVideo
267b862c7afdde6d5f7e630e0a203fe923ca74a8
[ "MIT" ]
null
null
null
62.py
renato-felix/PythonCursoEmVideo
267b862c7afdde6d5f7e630e0a203fe923ca74a8
[ "MIT" ]
null
null
null
62.py
renato-felix/PythonCursoEmVideo
267b862c7afdde6d5f7e630e0a203fe923ca74a8
[ "MIT" ]
null
null
null
escolha = int(input('Deseja verificar uma P.A.? \n[1] - SIM \n[0] - NÃO \n')) while escolha != 0: if escolha == 1: a1 = int(input('Digite o primeiro termo da P.A.: ')) r = int(input('Digite qual vai ser a razão dessa P.A.: ')) n = int(input('Digite até qual termo você quer ver: ')) a...
46.916667
114
0.529307
f38c32e1d026ba4d4646f6deff9570e560c75a74
180
py
Python
src/tests/system/uwsgi/hw.py
alligatormon/alligator
1b9c9982b0a152099510caa3b232a6af38deeed0
[ "Apache-2.0" ]
54
2019-02-22T15:32:36.000Z
2022-02-03T22:52:21.000Z
src/tests/system/uwsgi/hw.py
alligatormon/alligator
1b9c9982b0a152099510caa3b232a6af38deeed0
[ "Apache-2.0" ]
null
null
null
src/tests/system/uwsgi/hw.py
alligatormon/alligator
1b9c9982b0a152099510caa3b232a6af38deeed0
[ "Apache-2.0" ]
3
2019-07-01T09:29:44.000Z
2019-11-12T09:20:26.000Z
import os def application(env, start_response): start_response('200 OK', [('Content-Type','text/plain')]) response = "hello, world!" return [response.encode('utf-8')]
25.714286
61
0.666667
810b72d4696bde062b67c06a78989c0c9fdfa89e
291
py
Python
template/service-name/app/util/logging/logger.py
endRuz/fastapi_build_template
76a4a6924ccb1aa3c0454b3bde74e9ea8ef49114
[ "MIT" ]
1
2022-01-04T03:37:03.000Z
2022-01-04T03:37:03.000Z
template/service-name/app/util/logging/logger.py
endRuz/fastapi_build_template
76a4a6924ccb1aa3c0454b3bde74e9ea8ef49114
[ "MIT" ]
null
null
null
template/service-name/app/util/logging/logger.py
endRuz/fastapi_build_template
76a4a6924ccb1aa3c0454b3bde74e9ea8ef49114
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding:utf-8 import logging from app.config import log_cfg from app.util.singleton import singleton @singleton class Logger: def __new__(cls): logging.config.dictConfig(log_cfg) cls.logger = logging.getLogger("root") return cls.logger
18.1875
46
0.707904
84b7efe07608a93adbce24c76d1ad0f667ad5445
636
py
Python
cpo/commands/ibmcloud/oc/__init__.py
IBM/data-gate-cli
fc0cb1a560a0156c71eb63a550e198d0cd36e1df
[ "Apache-2.0" ]
9
2020-08-21T08:46:34.000Z
2021-09-02T15:47:41.000Z
cpo/commands/ibmcloud/oc/__init__.py
IBM/data-gate-cli
fc0cb1a560a0156c71eb63a550e198d0cd36e1df
[ "Apache-2.0" ]
10
2020-11-26T15:31:43.000Z
2021-11-08T15:00:01.000Z
cpo/commands/ibmcloud/oc/__init__.py
IBM/data-gate-cli
fc0cb1a560a0156c71eb63a550e198d0cd36e1df
[ "Apache-2.0" ]
1
2022-03-10T07:14:49.000Z
2022-03-10T07:14:49.000Z
# Copyright 2021 IBM Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
39.75
75
0.756289
ede5eb728aab65c6662eed84a7926e94b416e482
1,285
py
Python
source/download_data.py
gus0k/LEMsim
a008a2d25d1de9d5d07706ebeaaaa402bee97bef
[ "Apache-2.0" ]
null
null
null
source/download_data.py
gus0k/LEMsim
a008a2d25d1de9d5d07706ebeaaaa402bee97bef
[ "Apache-2.0" ]
null
null
null
source/download_data.py
gus0k/LEMsim
a008a2d25d1de9d5d07706ebeaaaa402bee97bef
[ "Apache-2.0" ]
null
null
null
from zipfile import ZipFile import io import datetime import time import requests import pandas as pd from constants import TMPDIR URL = ('https://www.ausgrid.com.au/-/media/Documents/Data-to-share/' 'Solar-home-electricity-data/Solar-home-half-hour-data---1-July-2012-to-30-June-2013.zip') start = time.time() r = r...
29.204545
90
0.674708
f1ab64e23ec2c4087f79d7d96cf073f8c7cdbb2a
49,088
py
Python
processing/TaskProcessor.py
ioi-israel/task-utils
d2ff69d179fc1136201d1de29b7725713b363290
[ "MIT" ]
null
null
null
processing/TaskProcessor.py
ioi-israel/task-utils
d2ff69d179fc1136201d1de29b7725713b363290
[ "MIT" ]
null
null
null
processing/TaskProcessor.py
ioi-israel/task-utils
d2ff69d179fc1136201d1de29b7725713b363290
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 """ A TaskProcessor is in charge of parsing a task's parameters, validating them, and generating the task's files (like testcases). A TaskProcessor can be given the task parameters as a Python module, or a YAML file. The former is "unsafe", and should run locally or in a sandbox on the server; ...
37.673062
79
0.583259
39508bd45cbe6ecbf89610c35065ab145e28cb2a
1,897
py
Python
bin/command/test_testinfra_command.py
oobeya-space/Dockerfile
40b58cc9c1b21bb4b67d22b474b2d82ec56591eb
[ "MIT" ]
1,405
2015-10-29T08:41:40.000Z
2022-03-31T12:43:24.000Z
bin/command/test_testinfra_command.py
oobeya-space/Dockerfile
40b58cc9c1b21bb4b67d22b474b2d82ec56591eb
[ "MIT" ]
372
2015-10-27T09:29:31.000Z
2022-03-28T15:10:19.000Z
bin/command/test_testinfra_command.py
n3wborn/Dockerfile
714961e074e905db392f5b75fffac1519f695b2e
[ "MIT" ]
506
2015-12-02T11:53:05.000Z
2022-03-28T06:37:17.000Z
#!/usr/bin/env/python # -*- coding: utf-8 -*- # # (c) 2016 WebDevOps.io # # This file is part of Dockerfile Repository. # # 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, in...
44.116279
120
0.715867
42e7a4d5c49bf2b2d8c8403d0cf6ef66c9112526
2,194
py
Python
src/python/interop/interop/_insecure_interop_test.py
mzhaom/grpc
c7439042b147e0a47023c1b709900daee70860cf
[ "BSD-3-Clause" ]
1
2021-04-24T08:18:15.000Z
2021-04-24T08:18:15.000Z
src/python/interop/interop/_insecure_interop_test.py
mzhaom/grpc
c7439042b147e0a47023c1b709900daee70860cf
[ "BSD-3-Clause" ]
3
2020-12-31T09:08:34.000Z
2021-09-28T05:42:02.000Z
third_party/grpc/src/python/interop/interop/_insecure_interop_test.py
acidburn0zzz/kythe
6cd4e9c81a1158de43ec783607a4d7edd9b7e4a0
[ "Apache-2.0" ]
null
null
null
# Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
37.827586
72
0.768915
c8c9ee0ead240265e81111c4984518cdcac754b6
16,268
py
Python
game/panda/panda_path/panda_path.py
CospanDesign/python
9f911509aae7abd9237c14a4635294c7719c9129
[ "MIT" ]
5
2015-12-12T20:16:45.000Z
2020-02-21T19:50:31.000Z
game/panda/panda_path/panda_path.py
CospanDesign/python
9f911509aae7abd9237c14a4635294c7719c9129
[ "MIT" ]
null
null
null
game/panda/panda_path/panda_path.py
CospanDesign/python
9f911509aae7abd9237c14a4635294c7719c9129
[ "MIT" ]
2
2020-06-01T06:27:06.000Z
2022-03-10T13:21:03.000Z
#! /usr/bin/env python # Copyright (c) 2015 Dave McCoy (dave.mccoy@cospandesign.com) # # Game 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 3 of the License, or # any later version. # # Game ...
37.056948
123
0.616548
03f1fe913cacbfff59c287496ce9ac91c073571c
2,184
py
Python
Example/Level_2/SuperdenseCoding/Superdense.py
baidu/QCompute
04e9fd62e10b1e8bb2be4ec6cff4ea4f3a7d4025
[ "Apache-2.0" ]
52
2020-09-14T02:25:25.000Z
2022-02-17T07:43:01.000Z
Example/Level_2/SuperdenseCoding/Superdense.py
baidu/QCompute
04e9fd62e10b1e8bb2be4ec6cff4ea4f3a7d4025
[ "Apache-2.0" ]
null
null
null
Example/Level_2/SuperdenseCoding/Superdense.py
baidu/QCompute
04e9fd62e10b1e8bb2be4ec6cff4ea4f3a7d4025
[ "Apache-2.0" ]
10
2020-09-15T06:10:24.000Z
2021-09-15T07:26:27.000Z
#!/usr/bin/python3 # -*- coding: utf8 -*- # Copyright (c) 2020 Baidu, 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...
26.962963
74
0.655678
8ad45203ac2ea46c363e8c62bea10381087d877d
1,576
py
Python
tests/user_examples/2d_boulder_on_slop/src/load_to_paraview.py
konmenel/SPHinXsys
6be5430767c6a3a38aec39ffcc6620e66f71f16c
[ "Apache-2.0" ]
null
null
null
tests/user_examples/2d_boulder_on_slop/src/load_to_paraview.py
konmenel/SPHinXsys
6be5430767c6a3a38aec39ffcc6620e66f71f16c
[ "Apache-2.0" ]
null
null
null
tests/user_examples/2d_boulder_on_slop/src/load_to_paraview.py
konmenel/SPHinXsys
6be5430767c6a3a38aec39ffcc6620e66f71f16c
[ "Apache-2.0" ]
null
null
null
import os import sys import re from pathlib import Path from paraview.simple import * PATH = Path(os.getenv('HOME')) / "SPHinXsys-build"/"tests"/"user_examples"/"2d_boulder_on_slop" if sys.platform.startswith('linux'): PATH = str(PATH) + "/bin/output/" else: PATH = str(PATH) + "\\src\\output\\" ...
26.266667
96
0.652284
03fe4c8407cca4dbccbc441e0b0d4f59d3ce59d5
13,914
py
Python
demisto_sdk/commands/format/update_playbook.py
lesleyxyz/demisto-sdk
188199bda6fd56f611f204e4e487d1c912f323aa
[ "MIT" ]
null
null
null
demisto_sdk/commands/format/update_playbook.py
lesleyxyz/demisto-sdk
188199bda6fd56f611f204e4e487d1c912f323aa
[ "MIT" ]
null
null
null
demisto_sdk/commands/format/update_playbook.py
lesleyxyz/demisto-sdk
188199bda6fd56f611f204e4e487d1c912f323aa
[ "MIT" ]
null
null
null
import os import re import uuid from distutils.version import LooseVersion from typing import Tuple import click from git import InvalidGitRepositoryError from demisto_sdk.commands.common.constants import ( DEFAULT_CONTENT_ITEM_FROM_VERSION, PLAYBOOK, FileType) from demisto_sdk.commands.common.git_util import Git...
47.97931
118
0.594294
6bcb66d5388ec371057f9acd607dd4d7d32cbc2e
99,015
py
Python
airflow/www/views.py
diggzhang/airflow-dingit
41482b83130d5815b772840681fb36eb9bfa69b9
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2019-05-09T08:59:41.000Z
2019-05-09T08:59:41.000Z
airflow/www/views.py
diggzhang/airflow-dingit
41482b83130d5815b772840681fb36eb9bfa69b9
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/www/views.py
diggzhang/airflow-dingit
41482b83130d5815b772840681fb36eb9bfa69b9
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2019-10-30T22:55:18.000Z
2019-10-30T22:55:18.000Z
# -*- coding: utf-8 -*- # # 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, software ...
34.950582
163
0.569247
1e2a405d3fb541ba299a7ea5efdfe2f0ad0b0b45
790
py
Python
app/translate.py
PoweredByPeople/blog-public
ce8300482cced6c22ca472fde3957c6bad96639f
[ "Apache-2.0" ]
1
2018-08-18T21:16:20.000Z
2018-08-18T21:16:20.000Z
app/translate.py
PoweredByPeople/blog-public
ce8300482cced6c22ca472fde3957c6bad96639f
[ "Apache-2.0" ]
null
null
null
app/translate.py
PoweredByPeople/blog-public
ce8300482cced6c22ca472fde3957c6bad96639f
[ "Apache-2.0" ]
null
null
null
import json import requests from flask import current_app from flask_babel import _ def translate(text, source_language, dest_language): if 'MS_TRANSLATOR_KEY' not in current_app.config or \ not current_app.config['MS_TRANSLATOR_KEY']: return _('Error: the translation service is not configure...
39.5
77
0.651899
dc615aeaff882d4fdcff1d3c47d1f5c1ec76a01c
6,733
py
Python
ambari-server/src/test/python/stacks/2.1/STORM/test_storm_base.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
25
2019-12-04T03:09:55.000Z
2022-03-08T10:52:06.000Z
ambari-server/src/test/python/stacks/2.1/STORM/test_storm_base.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
29
2019-12-04T03:00:39.000Z
2022-03-02T06:25:44.000Z
ambari-server/src/test/python/stacks/2.1/STORM/test_storm_base.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
33
2019-12-04T02:51:30.000Z
2022-03-24T02:47:38.000Z
#!/usr/bin/env python ''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License")...
38.255682
188
0.597802
a76c145436d534d86a528857907ac17dacf659a9
11,626
py
Python
demisto_sdk/commands/update_release_notes/update_rn_manager.py
sturmianseq/demisto-sdk
67ce7ee70ccd557d661e03a60469301c5cbcb9c0
[ "MIT" ]
null
null
null
demisto_sdk/commands/update_release_notes/update_rn_manager.py
sturmianseq/demisto-sdk
67ce7ee70ccd557d661e03a60469301c5cbcb9c0
[ "MIT" ]
null
null
null
demisto_sdk/commands/update_release_notes/update_rn_manager.py
sturmianseq/demisto-sdk
67ce7ee70ccd557d661e03a60469301c5cbcb9c0
[ "MIT" ]
null
null
null
import os from typing import Optional, Tuple import git from demisto_sdk.commands.common.constants import ( API_MODULES_PACK, SKIP_RELEASE_NOTES_FOR_TYPES) from demisto_sdk.commands.common.tools import (LOG_COLORS, filter_files_by_type, ...
56.164251
119
0.638827
bbc055383c1800f812616fa8ee8b37e3002a48e9
3,245
py
Python
revisify/views/settings/settings.py
PavSidhu/Revisify
e86e5b613bea9c6ad3145df8f3a39f344a5784e1
[ "Apache-2.0" ]
2
2019-07-27T20:45:32.000Z
2020-11-11T05:56:57.000Z
revisify/views/settings/settings.py
PavSidhu/Revisify
e86e5b613bea9c6ad3145df8f3a39f344a5784e1
[ "Apache-2.0" ]
null
null
null
revisify/views/settings/settings.py
PavSidhu/Revisify
e86e5b613bea9c6ad3145df8f3a39f344a5784e1
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 by Revisify. All Rights Reserved. from flask import Blueprint, render_template, redirect, session from flask.ext.login import login_required, current_user from flask.ext.bcrypt import Bcrypt from sqlalchemy import or_ from revisify.utils import * from revisify.models import * from revisify.forms i...
28.217391
107
0.749153
53d60b45df7659786103026f7c592f32392317b5
1,138
py
Python
indico/modules/users/models/favorites.py
aiforrural/Digital-Events-Example
628aaa8727b259b9367ac0ae1c5ba8e9e95eca82
[ "MIT" ]
1
2021-02-08T09:34:27.000Z
2021-02-08T09:34:27.000Z
indico/modules/users/models/favorites.py
pamirk/indico
c3b4e06b11cc21ad497f74d0b2ca901bc1b2a768
[ "MIT" ]
null
null
null
indico/modules/users/models/favorites.py
pamirk/indico
c3b4e06b11cc21ad497f74d0b2ca901bc1b2a768
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from indico.core.db import db favorite_user_table = db.Table( 'favorite_users', db.metadata, ...
21.074074
57
0.584359
03fe78cddb6d92abded376d14e1b878256fb6773
917
py
Python
rozipparser/tests/test_large_locality_parsing.py
macostea/CoduriPostaleDataParser
d0aa3fe507ed6886d5494a91bb91247027f87af7
[ "MIT" ]
null
null
null
rozipparser/tests/test_large_locality_parsing.py
macostea/CoduriPostaleDataParser
d0aa3fe507ed6886d5494a91bb91247027f87af7
[ "MIT" ]
null
null
null
rozipparser/tests/test_large_locality_parsing.py
macostea/CoduriPostaleDataParser
d0aa3fe507ed6886d5494a91bb91247027f87af7
[ "MIT" ]
null
null
null
# coding=utf-8 import unittest from rozipparser.codeparser import CodeParser class TestLargeLocalityParsing(unittest.TestCase): def test_number_of_codes(self): parser = CodeParser("rozipparser/tests/inputs/large_locality_input.xlsx") codes = parser.get_codes() self.assertEqual(len(codes...
33.962963
81
0.709924
e39e621cc9cbc83a6aacc6229a675309b62d6642
401
py
Python
config.example.py
anlutro/qdb
cdac9b7c6dfbecec944dfb151ef7dcd119f56215
[ "MIT" ]
1
2018-11-22T21:43:45.000Z
2018-11-22T21:43:45.000Z
config.example.py
anlutro/qdb
cdac9b7c6dfbecec944dfb151ef7dcd119f56215
[ "MIT" ]
9
2015-08-18T14:09:27.000Z
2021-06-14T20:21:54.000Z
config.example.py
anlutro/qdb
cdac9b7c6dfbecec944dfb151ef7dcd119f56215
[ "MIT" ]
6
2015-09-03T09:37:07.000Z
2020-08-05T08:04:56.000Z
# enable or disable debug mode DEBUG = True # secret key used for session stuff SECRET_KEY = "IAMTOTALLYNOTSECRET!" # the moderator password PASSWORD = "examplepass" # the sqlite database string # http://docs.sqlalchemy.org/en/latest/core/engines.html#database-urls import os.path DB = "sqlite:////{}/tmp/test.db".fo...
25.0625
70
0.745636
0faf7e4ddb54815e9e619a31c9ed7376886d59f3
5,938
py
Python
gloria/builder.py
jbdel/gloria
8ae01f8cd646dd97c62d0fc10150fb3d509af039
[ "Apache-2.0" ]
22
2021-10-13T00:12:25.000Z
2022-03-24T11:26:20.000Z
gloria/builder.py
jbdel/gloria
8ae01f8cd646dd97c62d0fc10150fb3d509af039
[ "Apache-2.0" ]
3
2022-01-03T13:35:49.000Z
2022-03-10T02:51:13.000Z
gloria/builder.py
jbdel/gloria
8ae01f8cd646dd97c62d0fc10150fb3d509af039
[ "Apache-2.0" ]
6
2021-11-08T02:18:35.000Z
2022-03-29T20:43:46.000Z
import torch import torch.nn as nn import torchvision.transforms as transforms from . import models from . import lightning from . import datasets from . import loss def build_data_module(cfg): if cfg.phase.lower() == "pretrain": data_module = datasets.DATA_MODULES["pretrain"] else: data_modu...
31.585106
88
0.636241
0da2e3b7bd98defe947d0103dfa95b553af4fc89
1,672
py
Python
bibxml/test_e2e.py
stefanomunarini/bibxml-service
4c3f6922f8a5c84cf63755e687f61862da0f4ad4
[ "BSD-3-Clause" ]
null
null
null
bibxml/test_e2e.py
stefanomunarini/bibxml-service
4c3f6922f8a5c84cf63755e687f61862da0f4ad4
[ "BSD-3-Clause" ]
null
null
null
bibxml/test_e2e.py
stefanomunarini/bibxml-service
4c3f6922f8a5c84cf63755e687f61862da0f4ad4
[ "BSD-3-Clause" ]
null
null
null
import os from urllib.parse import quote_plus from django.contrib.staticfiles.testing import StaticLiveServerTestCase from playwright.sync_api import sync_playwright # https://github.com/microsoft/playwright-python/issues/439 os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true" class MyViewTests(StaticLiveServerTestCa...
31.54717
94
0.663876
8ad47ae8ce534ab014c02a99ef1fe75e6b06132d
1,596
py
Python
series-1/quest-1.py
apaldiwal/stellar-quest
14f12dd38d837008c4181e61295c19ab6d1bfd96
[ "MIT" ]
1
2021-07-19T17:55:41.000Z
2021-07-19T17:55:41.000Z
series-1/quest-1.py
apaldiwal/stellar-quest
14f12dd38d837008c4181e61295c19ab6d1bfd96
[ "MIT" ]
null
null
null
series-1/quest-1.py
apaldiwal/stellar-quest
14f12dd38d837008c4181e61295c19ab6d1bfd96
[ "MIT" ]
null
null
null
""" Quest Description: Create and fund a Stellar account. In this challenge your task is to create and fund a brand new Stellar account with 1000 XLM on the testnet. """ # 1. Import Libraries print("Importing Libraries...") import requests from stellar_sdk import Server, Keypair, TransactionBuilder, Network # 2. Loa...
28
75
0.746867
a745e7a117a795b211ed67171ae6b9bd5e3766df
95
py
Python
shipyard2/rules/third-party/numpy/build.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
3
2016-01-04T06:28:52.000Z
2020-09-20T13:18:40.000Z
shipyard2/rules/third-party/numpy/build.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
shipyard2/rules/third-party/numpy/build.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
import shipyard2.rules.pythons shipyard2.rules.pythons.define_pypi_package('numpy', '1.21.2')
23.75
62
0.8
4b05bfd5a7e08b6b8c8a3623d865e5e70687c697
515
py
Python
umpnet/version.py
harryzhangOG/umpnet
25dabcfbd36ff59a6a2c8c77f52ce6bd307d705e
[ "MIT" ]
39
2021-07-29T05:59:20.000Z
2022-03-25T06:32:51.000Z
umpnet/version.py
harryzhangOG/umpnet
25dabcfbd36ff59a6a2c8c77f52ce6bd307d705e
[ "MIT" ]
27
2021-08-04T03:37:03.000Z
2022-03-08T06:18:25.000Z
umpnet/version.py
harryzhangOG/umpnet
25dabcfbd36ff59a6a2c8c77f52ce6bd307d705e
[ "MIT" ]
5
2021-08-24T14:21:06.000Z
2022-02-21T04:31:01.000Z
__version__ = '1.0.0' def parse_version_info(version_str): version_info = [] for x in version_str.split('.'): if x.isdigit(): version_info.append(int(x)) elif x.find('rc') != -1: patch_version = x.split('rc') version_info.append(int(patch_version[0])) ...
28.611111
63
0.634951
824e1c288947d2e96b146adff9aed116b65b77a8
4,066
py
Python
BaseTools/Source/Python/UPT/InventoryWs.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
151
2018-06-01T20:14:34.000Z
2022-03-13T08:34:07.000Z
BaseTools/Source/Python/UPT/InventoryWs.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
179
2018-06-21T18:07:54.000Z
2022-03-30T16:06:39.000Z
BaseTools/Source/Python/UPT/InventoryWs.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
58
2018-06-07T21:59:15.000Z
2022-03-16T23:26:38.000Z
## @file # Inventory workspace's distribution package information. # # Copyright (c) 2014, Intel Corporation. All rights reserved.<BR> # # This program and the accompanying materials are licensed and made available # under the terms and conditions of the BSD License which accompanies this # distribution. The f...
34.752137
94
0.623463
26fec38b1a404f739b09c7b748e328b7c53a4d06
466
py
Python
app/user/models.py
michaelscales88/flask_photo
bf3d2622cadd010dc8eb522610a5130bf4b9be98
[ "MIT" ]
null
null
null
app/user/models.py
michaelscales88/flask_photo
bf3d2622cadd010dc8eb522610a5130bf4b9be98
[ "MIT" ]
null
null
null
app/user/models.py
michaelscales88/flask_photo
bf3d2622cadd010dc8eb522610a5130bf4b9be98
[ "MIT" ]
null
null
null
# user/models.py from flask_login import UserMixin from app import db class User(UserMixin, db.Model): __tablename__ = 'user' __repr_attrs__ = ['id'] id = db.Column(db.Integer, primary_key=True) nickname = db.Column(db.String) email = db.Column(db.Text, unique=True) password = db.Column(db.S...
21.181818
48
0.630901
4053ba309a5f56aaf0307ac3f3dace819386d08c
2,955
py
Python
problem/bench/instance_types_report.py
jhanley634/testing-tools
3f3f8a34df53015347e1e1cc37d20c8d03652cad
[ "MIT" ]
null
null
null
problem/bench/instance_types_report.py
jhanley634/testing-tools
3f3f8a34df53015347e1e1cc37d20c8d03652cad
[ "MIT" ]
3
2020-09-07T17:24:36.000Z
2020-09-08T17:37:33.000Z
problem/bench/instance_types_report.py
jhanley634/testing-tools
3f3f8a34df53015347e1e1cc37d20c8d03652cad
[ "MIT" ]
null
null
null
#! /usr/bin/env python # Copyright 2019 John Hanley. # # 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...
34.764706
76
0.647716
d6a075b19ed9812cba0746e5bec8e47bb897a7b2
3,254
py
Python
rate/models.py
rmautia/project-api
25ca36faaac095aeb832e08b3c4d633d789fda13
[ "MIT" ]
null
null
null
rate/models.py
rmautia/project-api
25ca36faaac095aeb832e08b3c4d633d789fda13
[ "MIT" ]
4
2021-06-10T23:00:17.000Z
2022-03-12T00:33:42.000Z
rate/models.py
rmautia/project-api
25ca36faaac095aeb832e08b3c4d633d789fda13
[ "MIT" ]
null
null
null
from django.db import models import datetime as dt from django.contrib.auth.models import User from tinymce.models import HTMLField from django.core.validators import MaxValueValidator, MinValueValidator class Profile(models.Model): main_user = models.ForeignKey(User, on_delete = models.CASCADE) bio = models....
35.758242
98
0.69791
297aa11172579b49b24878bcbdfc3bb2b892ebde
15,997
py
Python
tensorboard/plugins/interactive_inference/witwidget/notebook/base.py
av8ramit/tensorboard
4cee95397dc440f8cdac8d02de9cad965af40f6f
[ "Apache-2.0" ]
null
null
null
tensorboard/plugins/interactive_inference/witwidget/notebook/base.py
av8ramit/tensorboard
4cee95397dc440f8cdac8d02de9cad965af40f6f
[ "Apache-2.0" ]
null
null
null
tensorboard/plugins/interactive_inference/witwidget/notebook/base.py
av8ramit/tensorboard
4cee95397dc440f8cdac8d02de9cad965af40f6f
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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...
42.097368
80
0.702882
ead93f099589b0cf058870f3eabe16fe0e9dd384
953
py
Python
autodc/components/hpo_optimizer/base_optimizer.py
dingdian110/AutoDC
f5ccca6bea993bcff3e804fb859e8b25ae020b5c
[ "MIT" ]
null
null
null
autodc/components/hpo_optimizer/base_optimizer.py
dingdian110/AutoDC
f5ccca6bea993bcff3e804fb859e8b25ae020b5c
[ "MIT" ]
null
null
null
autodc/components/hpo_optimizer/base_optimizer.py
dingdian110/AutoDC
f5ccca6bea993bcff3e804fb859e8b25ae020b5c
[ "MIT" ]
null
null
null
import abc import time import numpy as np from autodc.utils.constant import MAX_INT from autodc.utils.logging_utils import get_logger from autodc.components.evaluators.base_evaluator import _BaseEvaluator class BaseHPOptimizer(object): def __init__(self, evaluator: _BaseEvaluator, config_space, seed=None): ...
28.029412
81
0.694648
3fbd7783a65d9f4195a0cdd5b69733d99e57c1f2
1,156
py
Python
src/utee/selector.py
Jan21/PeerNets-pytorch
41c99cef035023ea45fe29876440255876ea4b0e
[ "MIT" ]
12
2019-01-15T11:58:34.000Z
2021-02-10T11:46:59.000Z
src/utee/selector.py
Jan21/PeerNets-pytorch
41c99cef035023ea45fe29876440255876ea4b0e
[ "MIT" ]
1
2019-01-08T16:56:04.000Z
2019-01-08T16:56:04.000Z
src/utee/selector.py
Jan21/PeerNets-pytorch
41c99cef035023ea45fe29876440255876ea4b0e
[ "MIT" ]
2
2019-04-11T09:09:36.000Z
2020-10-15T07:33:21.000Z
import os from utee import misc print = misc.logger.info known_models = [ 'mnist', # 28x28 'cifar10', 'cifar100', # 32x32 ] def mnist(cuda=True, model_root=None): print("Building and initializing mnist parameters") from mnist import model, dataset m = model.mnist(pretrained=os.path.join(model_ro...
29.641026
75
0.687716
b500e1d9cb094288591fb5076e2daf872c96eb5b
4,781
py
Python
rastervision/command/bundle_command_config.py
ValRat/raster-vision
90f4c5d99869466c65fa972fa8f08f68c1102820
[ "Apache-2.0" ]
4
2019-03-11T12:38:15.000Z
2021-04-06T14:57:52.000Z
rastervision/command/bundle_command_config.py
ValRat/raster-vision
90f4c5d99869466c65fa972fa8f08f68c1102820
[ "Apache-2.0" ]
null
null
null
rastervision/command/bundle_command_config.py
ValRat/raster-vision
90f4c5d99869466c65fa972fa8f08f68c1102820
[ "Apache-2.0" ]
1
2021-02-25T18:23:27.000Z
2021-02-25T18:23:27.000Z
from copy import deepcopy import rastervision as rv from rastervision.command import (CommandConfig, CommandConfigBuilder, BundleCommand) from rastervision.protos.command_pb2 \ import CommandConfig as CommandConfigMsg from rastervision.rv_config import RVConfig from rastervision.d...
32.304054
78
0.610751
3842fdf75fbe186df5873db876903a0b8268f5a1
6,743
py
Python
tests/tensor/test_opt_uncanonicalize.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
tests/tensor/test_opt_uncanonicalize.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
tests/tensor/test_opt_uncanonicalize.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import aesara import aesara.tensor as tensor from aesara import config, function, scalar from aesara.gof import FunctionGraph from aesara.gof.opt import out2in # from aesara.tensor import matrix,max_and_argmax,MaaxAndArgmax,neg from aesara.tensor.elemwise import CAReduce, DimShuffle, Elemwise from ...
31.362791
80
0.598695
362d5de57d786ff5adaae8ebd2590f34824eda17
23,559
py
Python
nova/virt/driver.py
armaan/nova
22859fccb95502efcb73ecf2bd827c45c0886bd3
[ "Apache-2.0" ]
null
null
null
nova/virt/driver.py
armaan/nova
22859fccb95502efcb73ecf2bd827c45c0886bd3
[ "Apache-2.0" ]
null
null
null
nova/virt/driver.py
armaan/nova
22859fccb95502efcb73ecf2bd827c45c0886bd3
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Justin Santa Barbara # 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.apach...
40.479381
79
0.675411
1987643c6da2da68b977b07aa2b7d0742a3b651c
412
py
Python
Exercicios/Exerc_classe/ex13.py
Werberty/Exercicios-Resolvidos-Python
7df0a430a2cedfad9108aa6f7c4db2eac639ded0
[ "MIT" ]
1
2022-03-06T11:37:48.000Z
2022-03-06T11:37:48.000Z
Exercicios/Exerc_classe/ex13.py
Werberty/Exercicios-Resolvidos-Python
7df0a430a2cedfad9108aa6f7c4db2eac639ded0
[ "MIT" ]
null
null
null
Exercicios/Exerc_classe/ex13.py
Werberty/Exercicios-Resolvidos-Python
7df0a430a2cedfad9108aa6f7c4db2eac639ded0
[ "MIT" ]
null
null
null
class Funcionario: def __init__(self, nome, salario) -> None: self.nome = nome self.salario = salario def show(self): print(f'Nome: {self.nome}\nSalário: R${self.salario:.2f}') def aumento_de_salario(self, percentual): aumento = (percentual/100)*self.salario sel...
24.235294
66
0.635922
518fe40e47d02d5ae4746f60c7d033afa77c0c6b
60
py
Python
src/view/components/MainWindow/__init__.py
JulienGrv/puremvc-python-demo-PySide-employeeadmin
b076493ac34254e665b485259b0a7122fa9cfde4
[ "BSD-3-Clause" ]
4
2017-08-26T10:18:10.000Z
2020-07-28T19:50:54.000Z
src/view/components/MainWindow/__init__.py
JulienGrv/puremvc-python-demo-PySide-employeeadmin
b076493ac34254e665b485259b0a7122fa9cfde4
[ "BSD-3-Clause" ]
null
null
null
src/view/components/MainWindow/__init__.py
JulienGrv/puremvc-python-demo-PySide-employeeadmin
b076493ac34254e665b485259b0a7122fa9cfde4
[ "BSD-3-Clause" ]
3
2020-09-22T12:17:14.000Z
2021-07-16T12:28:18.000Z
# -*- coding: utf-8 -*- from .MainWindow import MainWindow
15
34
0.666667
65b70a8463f44b2b5337a79ec3c2c3f14c1640b1
14,442
py
Python
homeassistant/components/homekit/config_flow.py
fanta759/core
fcdb54d8780900fb85e6c20d5382cfd13b69a0b3
[ "Apache-2.0" ]
2
2021-05-19T19:05:08.000Z
2021-06-06T06:51:05.000Z
homeassistant/components/homekit/config_flow.py
jrhubott/core
89fe232643134f283c041537e9f6841f47dc1c5e
[ "Apache-2.0" ]
56
2020-08-03T07:30:54.000Z
2022-03-31T06:02:04.000Z
homeassistant/components/homekit/config_flow.py
jrhubott/core
89fe232643134f283c041537e9f6841f47dc1c5e
[ "Apache-2.0" ]
2
2021-07-14T20:22:04.000Z
2021-09-22T08:56:16.000Z
"""Config flow for HomeKit integration.""" import random import string import voluptuous as vol from homeassistant import config_entries from homeassistant.config_entries import SOURCE_IMPORT from homeassistant.const import CONF_DOMAINS, CONF_ENTITIES, CONF_NAME, CONF_PORT from homeassistant.core import callback, spl...
34.385714
88
0.619097
0cede2bb9042fe9312b8b0ec9d691e26a756b239
2,794
py
Python
datasets/pit2015.py
karkaroff/castor
881673f3dadb4f757fdfdf5d2ab9031e08512406
[ "Apache-2.0" ]
132
2017-04-02T12:31:55.000Z
2019-03-09T07:53:29.000Z
datasets/pit2015.py
sudipta90/castor
fa2f59535c71a0fb4586afbe543b81ba812c8630
[ "Apache-2.0" ]
111
2017-04-01T23:00:24.000Z
2019-03-10T08:29:20.000Z
datasets/pit2015.py
karkaroff/Castor
881673f3dadb4f757fdfdf5d2ab9031e08512406
[ "Apache-2.0" ]
53
2017-04-06T01:17:18.000Z
2019-02-27T03:10:35.000Z
import os import torch from torchtext.data.field import Field, RawField from torchtext.data.iterator import BucketIterator from torchtext.vocab import Vectors from datasets.castor_dataset import CastorPairDataset class PIT2015(CastorPairDataset): NAME = 'pit2015' NUM_CLASSES = 2 ID_FIELD = Field(sequent...
42.333333
146
0.693629
2e712c38aec3bec2e961bc7f5c97194317e810d9
876
py
Python
hackerrank/014_cut_the_sticks.py
caoxudong/code_practice
cb960cf69d67ae57b35f0691d35e15c11989e6d2
[ "MIT" ]
1
2020-06-19T11:23:46.000Z
2020-06-19T11:23:46.000Z
hackerrank/014_cut_the_sticks.py
caoxudong/code_practice
cb960cf69d67ae57b35f0691d35e15c11989e6d2
[ "MIT" ]
null
null
null
hackerrank/014_cut_the_sticks.py
caoxudong/code_practice
cb960cf69d67ae57b35f0691d35e15c11989e6d2
[ "MIT" ]
null
null
null
#!/bin/python3 """ https://www.hackerrank.com/challenges/cut-the-sticks?h_r=next-challenge&h_v=zen 给你N根长度不相等的木棍。有一种切割操作:把所有的木棍都切成最短的高度,并记录下切下来的宽度(木棍数),扔掉切下的部分。重复这种切割操作,直到所有的木棍都被扔掉。 你需要输出每次切割下记录的宽度(木棍数)。 输入格式 第一行包含N, 下一行包含个空格分隔的数 Ai。 输出格式 输出每次操作切下的木棍宽度。 约束条件 1 <= N <= 1000 1 <= Ai <= 1000 输...
15.103448
150
0.616438
7aae21dfdc6ee1a2636ad395d091aeb2ce166f70
2,523
py
Python
server-api/migrations/versions/e44fb78f0c23_.py
khoaDLuu/plantinum
6c371bc2fe5a2e85eeb9a755cde84daff1dde1e3
[ "MIT" ]
null
null
null
server-api/migrations/versions/e44fb78f0c23_.py
khoaDLuu/plantinum
6c371bc2fe5a2e85eeb9a755cde84daff1dde1e3
[ "MIT" ]
15
2020-06-17T08:24:10.000Z
2022-02-13T16:11:12.000Z
server-api/migrations/versions/e44fb78f0c23_.py
khoaDLuu/plantinum
6c371bc2fe5a2e85eeb9a755cde84daff1dde1e3
[ "MIT" ]
null
null
null
"""empty message Revision ID: e44fb78f0c23 Revises: Create Date: 2020-06-27 22:34:05.699049 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e44fb78f0c23' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
37.102941
107
0.672216
fc9d8b78b76be74df56d7f5d3b2ab68b9f2c738a
9,663
py
Python
vits_train/__main__.py
mbarnig/vits-train
cfb8a0fc91daad868fe3d062ebf85d62edbd7506
[ "MIT" ]
1
2021-11-21T21:27:33.000Z
2021-11-21T21:27:33.000Z
vits_train/__main__.py
mbarnig/vits-train
cfb8a0fc91daad868fe3d062ebf85d62edbd7506
[ "MIT" ]
1
2022-02-18T11:13:45.000Z
2022-02-21T06:21:00.000Z
vits_train/__main__.py
mbarnig/vits-train
cfb8a0fc91daad868fe3d062ebf85d62edbd7506
[ "MIT" ]
3
2021-11-21T21:27:35.000Z
2021-12-30T03:23:13.000Z
#!/usr/bin/env python3 import argparse import logging import os import random import typing from pathlib import Path import torch import torch.multiprocessing from phonemes2ids import load_phoneme_ids from torch.nn.parallel import DistributedDataParallel from torch.utils.data import DataLoader from torch.utils.data.di...
31.681967
87
0.62848
16978522e715f263db9241ae9cc26caa67a6f0bc
6,961
py
Python
train.py
ifsheldon/giraffe
c44a742d71bb8def13252ab575045c4822d97270
[ "MIT" ]
null
null
null
train.py
ifsheldon/giraffe
c44a742d71bb8def13252ab575045c4822d97270
[ "MIT" ]
null
null
null
train.py
ifsheldon/giraffe
c44a742d71bb8def13252ab575045c4822d97270
[ "MIT" ]
null
null
null
import torch import torch.optim as optim from torch.utils.tensorboard import SummaryWriter import numpy as np import os import argparse import time from im2scene import config from im2scene.checkpoints import CheckpointIO import logging logger_py = logging.getLogger(__name__) np.random.seed(0) torch.manual_seed(0) # ...
38.038251
109
0.659675
75372c82d4891b2141cd34261e2562b183a23670
45,064
py
Python
simsg/data/clevr_gen/render_clevr.py
DaShi-Git/simsg
31df608cd04facb2b8b546cc6f53d84716117bdf
[ "Apache-2.0" ]
58
2020-05-29T09:26:32.000Z
2022-02-28T02:26:04.000Z
simsg/data/clevr_gen/render_clevr.py
DaShi-Git/simsg
31df608cd04facb2b8b546cc6f53d84716117bdf
[ "Apache-2.0" ]
12
2020-06-05T11:24:55.000Z
2022-01-07T23:45:30.000Z
simsg/data/clevr_gen/render_clevr.py
DaShi-Git/simsg
31df608cd04facb2b8b546cc6f53d84716117bdf
[ "Apache-2.0" ]
14
2020-06-02T16:04:20.000Z
2022-01-03T21:00:01.000Z
# Copyright 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. # # Modification copyright 20...
37.584654
129
0.684249
52fd082cb9a7942054f208889819843fdeda3c4a
6,069
py
Python
parts/part5/try2.py
ultimus11/Driverless-Need-For-Speed-MW
b5181fb8727ab73f6c3c1c8460437f74de7c90fd
[ "MIT" ]
3
2021-01-06T17:19:11.000Z
2021-04-06T14:29:39.000Z
parts/part5/try2.py
ultimus11/Driverless-Need-For-Speed-MW
b5181fb8727ab73f6c3c1c8460437f74de7c90fd
[ "MIT" ]
null
null
null
parts/part5/try2.py
ultimus11/Driverless-Need-For-Speed-MW
b5181fb8727ab73f6c3c1c8460437f74de7c90fd
[ "MIT" ]
null
null
null
import cv2 import numpy as np import time from grabScreen import grab_screen from statistics import mean from numpy import ones,vstack from numpy.linalg import lstsq from direct_key_inputs import PressKey, ReleaseKey, W, A, S, D import t lane_color_r=0 lane_color_g=0 lane_color_b=0 fisrst_time=0 last_pos="...
30.651515
130
0.646729
9295f2f8192bb97f1c85ceff29fe0f29d92eda3f
38,475
py
Python
InnerEye/ML/dataset/scalar_dataset.py
mkoivi-ms/InnerEye-DeepLearning
5879efe407ed411eb8393d6bd30757d0d775b863
[ "MIT" ]
2
2021-02-19T03:16:19.000Z
2022-02-08T01:40:09.000Z
InnerEye/ML/dataset/scalar_dataset.py
mkoivi-ms/InnerEye-DeepLearning
5879efe407ed411eb8393d6bd30757d0d775b863
[ "MIT" ]
null
null
null
InnerEye/ML/dataset/scalar_dataset.py
mkoivi-ms/InnerEye-DeepLearning
5879efe407ed411eb8393d6bd30757d0d775b863
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
50.359948
120
0.674542
913c7779e88f4c98e1285df8a8954de659fdd858
13,563
py
Python
bot/cogs/music.py
Sengolda/PeaceBot
7453bbf67a26dac31129a342815f5a9ff9d8f425
[ "MIT" ]
null
null
null
bot/cogs/music.py
Sengolda/PeaceBot
7453bbf67a26dac31129a342815f5a9ff9d8f425
[ "MIT" ]
null
null
null
bot/cogs/music.py
Sengolda/PeaceBot
7453bbf67a26dac31129a342815f5a9ff9d8f425
[ "MIT" ]
null
null
null
import asyncio import itertools import sys import traceback from functools import partial import discord from async_timeout import timeout from discord.ext import commands from youtube_dl import YoutubeDL from bot.utils.mixins.better_cog import BetterCog ytdlopts = { "format": "bestaudio/best", "outtmpl": "d...
31.615385
110
0.573693
55689eeac72d904a16527bcc510690d58dce91a9
153
py
Python
trans_ms/transport_management/doctype/expense/test_expense.py
mohsinalimat/transport
3d32bd27f505f64b948f48d0bfc5c7ccaf61c4a2
[ "MIT" ]
4
2021-09-24T12:30:32.000Z
2022-03-19T14:55:34.000Z
trans_ms/transport_management/doctype/expense/test_expense.py
mohsinalimat/transport
3d32bd27f505f64b948f48d0bfc5c7ccaf61c4a2
[ "MIT" ]
null
null
null
trans_ms/transport_management/doctype/expense/test_expense.py
mohsinalimat/transport
3d32bd27f505f64b948f48d0bfc5c7ccaf61c4a2
[ "MIT" ]
7
2021-09-24T12:30:33.000Z
2022-03-21T11:34:02.000Z
# Copyright (c) 2021, Aakvatech Limited and Contributors # See license.txt # import frappe import unittest class TestExpense(unittest.TestCase): pass
17
56
0.784314
4d483d31123f1a9d59964896c5f7c0fb7ef881fe
288
py
Python
leetcode/python/1006_clumsy_factorial.py
VVKot/leetcode-solutions
7d6e599b223d89a7861929190be715d3b3604fa4
[ "MIT" ]
4
2019-04-22T11:57:36.000Z
2019-10-29T09:12:56.000Z
leetcode/python/1006_clumsy_factorial.py
VVKot/coding-competitions
7d6e599b223d89a7861929190be715d3b3604fa4
[ "MIT" ]
null
null
null
leetcode/python/1006_clumsy_factorial.py
VVKot/coding-competitions
7d6e599b223d89a7861929190be715d3b3604fa4
[ "MIT" ]
null
null
null
class Solution: def clumsy(self, N: int) -> int: if N <= 2: return N if N <= 4: return N + 3 if (N - 4) % 4 == 0: return N + 1 elif (N - 4) % 4 <= 2: return N + 2 else: return N - 1
19.2
36
0.340278
e409f3fb7732494fbcf015a3731c8bfe3742e42a
3,809
py
Python
cued_sf2_lab/bitword.py
VarunBabbar/Image_Compressor
254d8d411f7cd16f3ce242275532c9fca537269c
[ "MIT" ]
null
null
null
cued_sf2_lab/bitword.py
VarunBabbar/Image_Compressor
254d8d411f7cd16f3ce242275532c9fca537269c
[ "MIT" ]
null
null
null
cued_sf2_lab/bitword.py
VarunBabbar/Image_Compressor
254d8d411f7cd16f3ce242275532c9fca537269c
[ "MIT" ]
null
null
null
""" This file contains an experimental attempt at providing a custom numpy dtype for storing variable-length words. The main advantages of using `bitword` over a two-column array are: * Better printing, codewords are shown in binary. * Marginally improved spelling; ``vlc[i].val`` instead of ``vlc[i,0]``. * Built-in che...
38.09
84
0.656603
00d41604ca234b1cd2c440bae34a7cf1b0abb463
131,083
py
Python
test/orm/test_relationships.py
everilae/sqlalchemy
4856493efc1f6b7fdecf36e020a95636f600a626
[ "MIT" ]
1
2018-03-31T09:34:25.000Z
2018-03-31T09:34:25.000Z
test/orm/test_relationships.py
everilae/sqlalchemy
4856493efc1f6b7fdecf36e020a95636f600a626
[ "MIT" ]
null
null
null
test/orm/test_relationships.py
everilae/sqlalchemy
4856493efc1f6b7fdecf36e020a95636f600a626
[ "MIT" ]
null
null
null
from sqlalchemy.testing import assert_raises, assert_raises_message import datetime import sqlalchemy as sa from sqlalchemy import testing from sqlalchemy import Integer, String, ForeignKey, MetaData, and_ from sqlalchemy.testing.schema import Table, Column from sqlalchemy.orm import mapper, relationship, relation, \ ...
32.861118
83
0.509753
be1bcf394021d027a8d9a8b965c9943c904e75ff
13,255
py
Python
retina_utils/box_utils.py
plutasnyy/Pytorch_Retinaface
f95bafb38a5dfcfa98679227f3ec5ef0b5f7d229
[ "MIT" ]
null
null
null
retina_utils/box_utils.py
plutasnyy/Pytorch_Retinaface
f95bafb38a5dfcfa98679227f3ec5ef0b5f7d229
[ "MIT" ]
null
null
null
retina_utils/box_utils.py
plutasnyy/Pytorch_Retinaface
f95bafb38a5dfcfa98679227f3ec5ef0b5f7d229
[ "MIT" ]
null
null
null
import torch import numpy as np def point_form(boxes): """ Convert prior_boxes to (xmin, ymin, xmax, ymax) representation for comparison to point form ground truth retina_data. Args: boxes: (tensor) center-size default boxes from priorbox retina_layers. Return: boxes: (tensor) Converte...
40.045317
98
0.60762
907ced0828b9c3d85688c3836d468dde62f6826e
9,637
py
Python
nemo/collections/nlp/models/duplex_text_normalization/duplex_tn.py
Qiliang/NeMo
7051487c7e27b6526174b5feb28a516226eb5ad6
[ "Apache-2.0" ]
null
null
null
nemo/collections/nlp/models/duplex_text_normalization/duplex_tn.py
Qiliang/NeMo
7051487c7e27b6526174b5feb28a516226eb5ad6
[ "Apache-2.0" ]
null
null
null
nemo/collections/nlp/models/duplex_text_normalization/duplex_tn.py
Qiliang/NeMo
7051487c7e27b6526174b5feb28a516226eb5ad6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
45.890476
165
0.619902
c75b20acc81fc450ed00a896400b82ab6cb8b5a8
493
py
Python
terrarium/sentinel.py
dredington/terrarium
691d4c4eca24df6ead69bd76badce30161a43050
[ "MIT" ]
null
null
null
terrarium/sentinel.py
dredington/terrarium
691d4c4eca24df6ead69bd76badce30161a43050
[ "MIT" ]
null
null
null
terrarium/sentinel.py
dredington/terrarium
691d4c4eca24df6ead69bd76badce30161a43050
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import abc class DataSource(abc.ABC): @abc.abstractmethod def report(self): pass class DataAdapter(abc.ABC): @abc.abstractmethod def publish(self, data): pass class Sentinel: def __init__(self, dataSource, adapters): self.dataSource = dataSource self.adapters = adapt...
18.259259
43
0.69574
8da76c092fd893dba4ff85524f3b48772e125117
999
py
Python
hard_work_but_no_use.py
sergeimoiseev/othodi
eefbafed4ea2be37118979c951e6e8b916b25c44
[ "MIT" ]
null
null
null
hard_work_but_no_use.py
sergeimoiseev/othodi
eefbafed4ea2be37118979c951e6e8b916b25c44
[ "MIT" ]
null
null
null
hard_work_but_no_use.py
sergeimoiseev/othodi
eefbafed4ea2be37118979c951e6e8b916b25c44
[ "MIT" ]
null
null
null
import numpy def min_and_idxs(np_arr): upper_tri = np.triu(np_arr) m_a = np.ma.masked_equal(upper_tri, 0.0, copy=False) idxs_min_T = np.where(m_a == m_a.min()) idxs_min = np.asarray(idxs_min_T).T idxs_min_tuples = [tuple(idx_pair) for idx_pair in idxs_min] # print(idxs_min_tuples) # ...
43.434783
80
0.656657
6c5ca6c90d6b0a3534b1401cf6d247351d650b10
118,731
py
Python
pyinjective/proto/injective/exchange/v1beta1/query_pb2.py
CtheSky/sdk-python
c1b1ae931f4970832466a004eb193027bdc1dea5
[ "Apache-2.0" ]
null
null
null
pyinjective/proto/injective/exchange/v1beta1/query_pb2.py
CtheSky/sdk-python
c1b1ae931f4970832466a004eb193027bdc1dea5
[ "Apache-2.0" ]
null
null
null
pyinjective/proto/injective/exchange/v1beta1/query_pb2.py
CtheSky/sdk-python
c1b1ae931f4970832466a004eb193027bdc1dea5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: injective/exchange/v1beta1/query.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _refle...
45.859791
13,552
0.7959
9e7c2a9f0cc51e81396cc68d75522442e1bece7b
67
py
Python
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}_api/api/resources/__init__.py
frank2411/cookiecutter_flasktemplate
fc80827f0f7e7b87679790c8c1d9094518576b5b
[ "Apache-2.0" ]
null
null
null
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}_api/api/resources/__init__.py
frank2411/cookiecutter_flasktemplate
fc80827f0f7e7b87679790c8c1d9094518576b5b
[ "Apache-2.0" ]
null
null
null
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}_api/api/resources/__init__.py
frank2411/cookiecutter_flasktemplate
fc80827f0f7e7b87679790c8c1d9094518576b5b
[ "Apache-2.0" ]
null
null
null
from .swagger import SwaggerView __all__ = [ "SwaggerView", ]
11.166667
32
0.686567
d07d6947272065ef07e826263bf8d19ccb290319
3,725
py
Python
homeassistant/components/tuya/button.py
EuleMitKeule/core
3af54d96c7dcc3f7087d1196e6ab0db029301ee7
[ "Apache-2.0" ]
3
2022-02-18T14:03:39.000Z
2022-03-26T20:26:55.000Z
homeassistant/components/tuya/button.py
EuleMitKeule/core
3af54d96c7dcc3f7087d1196e6ab0db029301ee7
[ "Apache-2.0" ]
56
2021-01-22T07:18:17.000Z
2022-03-31T06:09:05.000Z
homeassistant/components/tuya/button.py
EuleMitKeule/core
3af54d96c7dcc3f7087d1196e6ab0db029301ee7
[ "Apache-2.0" ]
2
2020-06-06T21:55:32.000Z
2022-03-06T04:18:21.000Z
"""Support for Tuya buttons.""" from __future__ import annotations from typing import Any from tuya_iot import TuyaDevice, TuyaDeviceManager from homeassistant.components.button import ButtonEntity, ButtonEntityDescription from homeassistant.config_entries import ConfigEntry from homeassistant.const import ENTITY_CA...
35.141509
84
0.656913
8bd9b4a85407f022720e563659f007d3be5e4174
5,814
py
Python
backend/tracker/db/schema.py
dmitriyvek/Tracker
b2903d0e980c8480e9c9cbecbfa3987997c7f04e
[ "MIT" ]
null
null
null
backend/tracker/db/schema.py
dmitriyvek/Tracker
b2903d0e980c8480e9c9cbecbfa3987997c7f04e
[ "MIT" ]
null
null
null
backend/tracker/db/schema.py
dmitriyvek/Tracker
b2903d0e980c8480e9c9cbecbfa3987997c7f04e
[ "MIT" ]
null
null
null
from enum import Enum, unique import sqlalchemy as sa convention = { 'all_column_names': lambda constraint, table: '_'.join([ column.name for column in constraint.columns.values() ]), 'ix': 'ix__%(table_name)s__%(all_column_names)s', 'uq': 'uq__%(table_name)s__%(all_column_names)s', 'ck':...
32.3
79
0.669935
4e027044e9b5ef06a0824aa5d16b3cce57fe84e8
2,897
py
Python
dlhammer/argparser.py
klauscc/dl-hammer
5bd8d2e75f6a2b6051e99ad9b0e1384c8c43de26
[ "Apache-2.0" ]
null
null
null
dlhammer/argparser.py
klauscc/dl-hammer
5bd8d2e75f6a2b6051e99ad9b0e1384c8c43de26
[ "Apache-2.0" ]
null
null
null
dlhammer/argparser.py
klauscc/dl-hammer
5bd8d2e75f6a2b6051e99ad9b0e1384c8c43de26
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ================================================================ # Don't go gently into that good night. # # author: klaus # description: # # ================================================================ import os import argparse import datetime from functools import partial import y...
26.824074
97
0.652054
8dc92304755b31dbefc6fe407c45cc7ddba9fb76
67,100
py
Python
sep_conv_rnn.py
Zedd1558/violence-detection-in-videos
1bf309389127b51d8ca3a2cd6457327403560ea1
[ "MIT" ]
9
2021-05-04T06:12:23.000Z
2021-08-06T08:14:52.000Z
sep_conv_rnn.py
Zedd1558/violence-detection-in-videos
1bf309389127b51d8ca3a2cd6457327403560ea1
[ "MIT" ]
8
2021-09-08T03:14:18.000Z
2022-03-02T14:58:35.000Z
sep_conv_rnn.py
Zedd1558/violence-detection-in-videos
1bf309389127b51d8ca3a2cd6457327403560ea1
[ "MIT" ]
3
2021-06-18T09:36:38.000Z
2021-08-02T06:49:48.000Z
# contains SepConvLSTM Implementation import numpy as np import tensorflow as tf from tensorflow.python.keras import activations from tensorflow.python.keras import backend as K from tensorflow.python.keras import constraints from tensorflow.python.keras import initializers from tensorflow.python.keras import regulari...
42.549144
113
0.631416
a1f08d17b43a29b2ba01aaa0c1ec841acc62a545
309
py
Python
core/discover.py
madflojo/automon
59a70506258c8b2354ebbe2bc91934c69800e17b
[ "Apache-2.0" ]
414
2016-07-27T12:53:56.000Z
2022-02-16T14:56:51.000Z
core/discover.py
SelecaoGlobocom/automatron
5a3ccfe65f42800fbd7ee02987a290d578a3d45b
[ "Apache-2.0" ]
121
2016-06-04T05:30:56.000Z
2018-09-13T17:38:05.000Z
core/discover.py
SelecaoGlobocom/automatron
5a3ccfe65f42800fbd7ee02987a290d578a3d45b
[ "Apache-2.0" ]
72
2016-06-12T21:37:21.000Z
2021-09-08T22:07:04.000Z
''' Base Discovery Class ''' class BaseDiscover(object): ''' Base Class ''' def __init__(self, config=None, dbc=None): ''' Initialize the database class ''' self.config = config self.dbc = dbc def start(self): ''' Start Discovery process ''' return True
22.071429
46
0.572816
a03d56567c284bce6528cd860699fc5f33203726
112,728
py
Python
tests/acceptance/cli_test.py
Inconnu08/compose
5478c966f18bd5c025b2974a29ff4f914b3e18da
[ "Apache-2.0" ]
2
2019-11-09T22:42:02.000Z
2019-11-14T10:22:37.000Z
tests/acceptance/cli_test.py
Inconnu08/compose
5478c966f18bd5c025b2974a29ff4f914b3e18da
[ "Apache-2.0" ]
null
null
null
tests/acceptance/cli_test.py
Inconnu08/compose
5478c966f18bd5c025b2974a29ff4f914b3e18da
[ "Apache-2.0" ]
1
2021-07-11T08:15:56.000Z
2021-07-11T08:15:56.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals import datetime import json import os.path import re import signal import subprocess import time from collections import Counter from collections import namedtuple from functools import reduce from operator import at...
39.291739
105
0.599957
78ede8802a7abc1bee812d3ed26c634d410cbdc3
527
py
Python
setup.py
mhbu50/pettycash
c5717a88f9ab25c220b522896d92f3c0685465a6
[ "MIT" ]
null
null
null
setup.py
mhbu50/pettycash
c5717a88f9ab25c220b522896d92f3c0685465a6
[ "MIT" ]
null
null
null
setup.py
mhbu50/pettycash
c5717a88f9ab25c220b522896d92f3c0685465a6
[ "MIT" ]
1
2020-06-08T09:58:27.000Z
2020-06-08T09:58:27.000Z
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('requirements.txt') as f: install_requires = f.read().strip().split('\n') # get version from __version__ variable in pettycash/__init__.py from pettycash import __version__ as version setup( name='pettycash', version=version, descripti...
25.095238
64
0.768501
1c8f37bea4fcc60f65f85ca389bc5e3d4a1c27c0
2,856
py
Python
blog/models.py
NarminSH/e-commerce-sellshop-project
a753038c8265473021e21f75b6b095bdc25f43d6
[ "MIT" ]
null
null
null
blog/models.py
NarminSH/e-commerce-sellshop-project
a753038c8265473021e21f75b6b095bdc25f43d6
[ "MIT" ]
null
null
null
blog/models.py
NarminSH/e-commerce-sellshop-project
a753038c8265473021e21f75b6b095bdc25f43d6
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth import get_user_model from django.db.models.deletion import CASCADE from django.urls import reverse from django.urls.base import reverse_lazy from PIL import Image from io import BytesIO from django.core.files.base import ContentFile from resizeimage import resizeim...
29.75
99
0.666667
5d345e30f8df6ca387eaa97ed1a82a84f2dc1dac
298
py
Python
tpljson/exceptions.py
OpenBigDataPlatform/tpljson
7c584a9006454e06be06fe7a8e5f12c6d187a103
[ "MIT" ]
null
null
null
tpljson/exceptions.py
OpenBigDataPlatform/tpljson
7c584a9006454e06be06fe7a8e5f12c6d187a103
[ "MIT" ]
2
2020-12-01T18:32:45.000Z
2020-12-01T18:33:27.000Z
tpljson/exceptions.py
OpenBigDataPlatform/tpljson
7c584a9006454e06be06fe7a8e5f12c6d187a103
[ "MIT" ]
null
null
null
class TplException(Exception): """ Base Exception for tpljson module """ pass class TplUnmatched(TplException): pass class TplOutOfOrder(TplException): pass class TplJsonException(TplException): """ Exception for when JSON error is encountered """ pass
14.9
48
0.674497
0642838284a7cd537786abd801372e6fe5df7f06
94
py
Python
weather/weather_app/urls.py
nijatmursali/WeatherAppUsingDjango
adf179726d9cd78d80e206e19ddec4250d76cd3f
[ "Apache-2.0" ]
null
null
null
weather/weather_app/urls.py
nijatmursali/WeatherAppUsingDjango
adf179726d9cd78d80e206e19ddec4250d76cd3f
[ "Apache-2.0" ]
null
null
null
weather/weather_app/urls.py
nijatmursali/WeatherAppUsingDjango
adf179726d9cd78d80e206e19ddec4250d76cd3f
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.index), ]
15.666667
28
0.680851
3dca2978a5de83922f36cc5717ed56ea6fb6cbc3
234
py
Python
Blog_System/common/utils.py
Irinkaaa/Blog_System_Django_Project
a9e51828aceeb0a9e1721f6c83579437cc47ed58
[ "MIT" ]
null
null
null
Blog_System/common/utils.py
Irinkaaa/Blog_System_Django_Project
a9e51828aceeb0a9e1721f6c83579437cc47ed58
[ "MIT" ]
null
null
null
Blog_System/common/utils.py
Irinkaaa/Blog_System_Django_Project
a9e51828aceeb0a9e1721f6c83579437cc47ed58
[ "MIT" ]
null
null
null
from Blog_System.common.models import BlogSystemSettings def can_user_create_blogs(user): settings = BlogSystemSettings.objects.first() return not user.is_authenticated or user.blog_set.count() < settings.max_blogs_per_user
33.428571
91
0.816239
4d019d637f1ff38c66b85e9928683259c3848bd3
2,037
py
Python
treepi.py
scripsi/treepi
459cb5dfdf309878c52abac5a3cdfb4803548821
[ "MIT" ]
null
null
null
treepi.py
scripsi/treepi
459cb5dfdf309878c52abac5a3cdfb4803548821
[ "MIT" ]
null
null
null
treepi.py
scripsi/treepi
459cb5dfdf309878c52abac5a3cdfb4803548821
[ "MIT" ]
null
null
null
from gpiozero import PWMLED,LEDBoard from gpiozero.tools import random_values, sin_values, scaled_half import time from signal import pause import random star = PWMLED(2) star.value = 1 # tree = LEDBoard(4,15,13,21,25,8,5,10,16,17,27,26,24,9,12,6,20,19,14,18,11,7,23,22,pwm=True) tree = LEDBoard(back=LEDBoard(15,21,8,5...
35.736842
122
0.713795
8492486c029a29a3ec43102ed0e3f7f39b21e7e1
1,529
py
Python
google/ads/googleads/v10/errors/types/date_error.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v10/errors/types/date_error.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v10/errors/types/date_error.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
32.531915
74
0.722695
8901cdeb9b233ee917779df4e33f600615cf5875
72,422
py
Python
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
JackyGao2016/OpenStack-ML2
fc0569e72c7cfdbf9464c95572b242bfdd4cd79c
[ "Apache-2.0" ]
1
2021-02-19T05:54:04.000Z
2021-02-19T05:54:04.000Z
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
JackyGao2016/OpenStack-ML2
fc0569e72c7cfdbf9464c95572b242bfdd4cd79c
[ "Apache-2.0" ]
null
null
null
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
JackyGao2016/OpenStack-ML2
fc0569e72c7cfdbf9464c95572b242bfdd4cd79c
[ "Apache-2.0" ]
2
2016-11-29T11:22:58.000Z
2016-11-29T11:54:41.000Z
#!/usr/bin/env python # Copyright 2011 VMware, 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 # # ...
46.693746
79
0.552318
9e2f92775946487e1bffd214f8d71afb8a742ebb
1,472
py
Python
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/DeleteSurveyRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/DeleteSurveyRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/DeleteSurveyRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.047619
71
0.762228
bbe01884ccb1bb278cbe2b14fb7e7afb01ab0607
1,474
py
Python
vendor/packages/translate-toolkit/translate/lang/test_vi.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
null
null
null
vendor/packages/translate-toolkit/translate/lang/test_vi.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
1
2021-12-13T20:55:07.000Z
2021-12-13T20:55:07.000Z
vendor/packages/translate-toolkit/translate/lang/test_vi.py
DESHRAJ/fjord
8899b6286b23347c9b024334e61c33fe133e836d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from translate.lang import factory def test_punctranslate(): """Tests that we can translate punctuation.""" language = factory.getlanguage('vi') assert language.punctranslate(u"") == u"" assert language.punctranslate(u"abc efg") == u"abc efg" assert l...
44.666667
87
0.679783
bdf0c1eb053903e0079db7f6fa08ef95c9789299
15,249
py
Python
engine/2.80/scripts/addons_contrib/np_station/np_point_move.py
byteinc/Phasor
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
[ "Unlicense" ]
2
2019-03-20T13:10:46.000Z
2019-05-15T20:00:31.000Z
engine/2.80/scripts/addons_contrib/np_station/np_point_move.py
byteinc/Phasor
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
[ "Unlicense" ]
null
null
null
engine/2.80/scripts/addons_contrib/np_station/np_point_move.py
byteinc/Phasor
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
[ "Unlicense" ]
null
null
null
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 version. # # This program is distri...
38.801527
666
0.685029