hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
⌀
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
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
⌀
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
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
c3d478982489f7a81a491bb2411947e6cb004dd0
593
py
Python
src/milk.py
xiaonanln/python-usaco
8f0fef19cb5f89232d985f79d955f0de5ef4e10d
[ "MIT" ]
null
null
null
src/milk.py
xiaonanln/python-usaco
8f0fef19cb5f89232d985f79d955f0de5ef4e10d
[ "MIT" ]
null
null
null
src/milk.py
xiaonanln/python-usaco
8f0fef19cb5f89232d985f79d955f0de5ef4e10d
[ "MIT" ]
null
null
null
""" ID: isaiahl1 LANG: PYTHON2 TASK: milk """ TASK = 'milk' import operator def readints(fin): return tuple(int(x) for x in fin.readline().split()) def main(fin, fout): N, M = map(int, fin.readline().strip().split()) print N, M farmers = [] for i in xrange(M): farmers.append( readints(fin) ) farmers.sort() ...
16.027027
53
0.618887
61bc3a8fab9dac39b14956341cefd41bd759ac33
1,758
py
Python
textmining/com/aaron/logging_wrapper.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
textmining/com/aaron/logging_wrapper.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
textmining/com/aaron/logging_wrapper.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
from functools import wraps, partial import logging def attach_wrapper(obj, func=None): # Helper function that attaches function as attribute of an object if func is None: return partial(attach_wrapper, obj) setattr(obj, func.__name__, func) return func def log(level, message): # Actual decora...
33.807692
103
0.67463
9cbdff4ad0f61b42bc4aa60470c8d5548723312b
722
py
Python
src/onegov/org/models/atoz.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/models/atoz.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/models/atoz.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from collections import OrderedDict from itertools import groupby from unidecode import unidecode class AtoZ(object): def __init__(self, request): self.request = request def sortkey(self, item): return unidecode(self.get_title(item)[0].upper()) def get_items_by_letter(self): ite...
24.896552
73
0.66482
14ab22035d35e11bb186e040248bc66bb4f3a04e
3,226
py
Python
02-MST/prim.py
explodingnuggets/Grafos-UFSCar
d149157a9f7ecfd2f519cc52e1bdfcb910c2ffad
[ "MIT" ]
2
2017-11-13T02:51:28.000Z
2017-11-15T02:42:23.000Z
02-MST/prim.py
explodingnuggets/Grafos-UFSCar
d149157a9f7ecfd2f519cc52e1bdfcb910c2ffad
[ "MIT" ]
null
null
null
02-MST/prim.py
explodingnuggets/Grafos-UFSCar
d149157a9f7ecfd2f519cc52e1bdfcb910c2ffad
[ "MIT" ]
1
2017-11-13T02:51:32.000Z
2017-11-13T02:51:32.000Z
import matplotlib.pyplot as plt import networkx as nx # Função que implementa o algoritmo de Prim. Recebe um nx.Graph e retorna um nx.DiGraph def prim(graph): # Inicializa as cores dos vértices como branco nx.set_node_attributes(graph, 'white', 'color') # Inicializa o pi(pai) dos vértices como None nx...
38.86747
101
0.600434
1ae9a10d036b77eb9cd4d0996190f2e37fc0d7a6
39,490
py
Python
NER/model.py
moasgh/BumbleBee
2b0aae7970ab316c7b8b12dd4032b41ee1772aad
[ "MIT" ]
7
2020-03-06T05:53:43.000Z
2022-01-30T17:31:18.000Z
NER/model.py
moasgh/BumbleBee
2b0aae7970ab316c7b8b12dd4032b41ee1772aad
[ "MIT" ]
null
null
null
NER/model.py
moasgh/BumbleBee
2b0aae7970ab316c7b8b12dd4032b41ee1772aad
[ "MIT" ]
null
null
null
from NER.utils import * from NER.embedding import embed import torch import matplotlib.pyplot as plt # single Task class rnn_single_crf(nn.Module): def __init__(self, cti_size, wti_size, num_tags , params): super().__init__() self.rnn = rnn(cti_size, wti_size, num_tags , params) self.crf =...
45.286697
155
0.564776
2c30193ed5e0299e6fe03aee66db9bd3e8365537
511
py
Python
ISTp/2014/korsakov_a_a/task_3_34.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
ISTp/2014/korsakov_a_a/task_3_34.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
ISTp/2014/korsakov_a_a/task_3_34.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 3. Вариант 34 # Напишите программу, которая выводит имя "Александр Михайлович Гликберг", # и запрашивает его псевдоним. Программа должна сцеплять две эти строки # и выводить полученную строку, разделяя имя и псевдоним с помощью тире. # Korsakov A.A. # 31.03.2016 print ('\n Сегодня мы поговорим об Алексан...
36.5
75
0.753425
4cc9efdc0f93224da2f566c1538a89240b81166c
2,484
py
Python
test/test_npu/test_network_ops/test_roi_align_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_roi_align_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_roi_align_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
55.2
93
0.53744
981581a7b91556c96bff11a281590dd9a9f00f10
1,637
py
Python
packages/watchmen-pipeline-surface/src/watchmen_pipeline_surface/settings.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-surface/src/watchmen_pipeline_surface/settings.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-surface/src/watchmen_pipeline_surface/settings.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from logging import getLogger from pydantic import BaseSettings from watchmen_utilities import is_blank from .connectors import KafkaSettings, RabbitmqSettings logger = getLogger(__name__) class PipelineSurfaceSettings(BaseSettings): RABBITMQ_CONNECTOR: bool = False RABBITMQ_HOST: str = '' RABBITMQ_PORT: str = ...
24.073529
61
0.780086
e2ed185b128f6f09999863f708a0ed39f11915a2
1,918
py
Python
tools/cfg/generate_cfg_head_dir_and_convert_src.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
tools/cfg/generate_cfg_head_dir_and_convert_src.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
tools/cfg/generate_cfg_head_dir_and_convert_src.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
import os import argparse parser = argparse.ArgumentParser() parser.add_argument( "-message_type", "--get_message_type", type=str, choices=[ "cfg_include_dir", "template_convert_python_script", "copy_pyproto_python_script", "pybind_registry_cc", "template_files",...
27.4
72
0.668926
1a6ab2e90c59ae384db8c8c588624393cdf67620
539
py
Python
Python-programming-1/nonDivisableSubset.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
null
null
null
Python-programming-1/nonDivisableSubset.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
null
null
null
Python-programming-1/nonDivisableSubset.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
1
2020-09-30T18:53:05.000Z
2020-09-30T18:53:05.000Z
from itertools import combinations def nonDivisibleSubset(k, s): # Write your code here res=[] for pair in list(combinations(s, 2)): if sum(pair)%k != 0: # print(res, pair) res+=list(pair) print(set(res)) return len(set(res)) if __name__ == '__main__': first_mu...
25.666667
51
0.61039
1a8009fb016fcd4d6efb3cfdc350c3d71c80f03a
94
py
Python
utils/os_utils.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
2
2022-02-24T08:21:49.000Z
2022-03-10T08:57:35.000Z
utils/os_utils.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
1
2022-02-24T08:40:21.000Z
2022-02-24T12:01:58.000Z
utils/os_utils.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
null
null
null
import os def remove_files(filename_lst): for fn in filename_lst: os.remove(fn)
13.428571
31
0.680851
46bdcd16533f44b84bb25d82c093b39239cf8409
2,752
py
Python
top/clearlight/base/liaoxuefeng/functional_programming/higher_function/Map_Reduce_HigherOrder_Function.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/base/liaoxuefeng/functional_programming/higher_function/Map_Reduce_HigherOrder_Function.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/base/liaoxuefeng/functional_programming/higher_function/Map_Reduce_HigherOrder_Function.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
from functools import reduce # 高阶函数: map/reduce # 变量可以指向函数 print(abs(-10)) print(abs) x = abs(-10) print(x) # 变量指向函数 x = abs print(x) # 变量指向abs函数本身. 直接调用abs()函数和调用变量x()完全相似 print(x(-19)) # 函数参数传入函数 def add(x, y, f): return f(x) + f(y) # 一个函数能够把其它函数作为参数使用,这个函数就是高阶函数。 print(add(-5, 6, abs)) # map/reduce #...
17.986928
99
0.551599
37bf581c0c4bff8881270d584b04574d2607a91c
225
py
Python
python/image_processing/translation_image.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/image_processing/translation_image.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/image_processing/translation_image.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import cv2 import numpy as np img = cv2.imread('city1.jpg',0) rows,cols = img.shape M = np.float32([[1,0,100],[0,1,50]]) dst = cv2.warpAffine(img,M,(cols,rows)) cv2.imshow('img',dst) cv2.waitKey(0) cv2.destroyAllWindows()
17.307692
39
0.684444
80a8302ec564d0f15c8ce8efb1b226f437d8ec2c
2,423
py
Python
micropython/sd/CSV_Util.py
webbhm/PiRock
2c8f328bf212d8bcac88061fd1ba23866746626a
[ "Apache-2.0" ]
null
null
null
micropython/sd/CSV_Util.py
webbhm/PiRock
2c8f328bf212d8bcac88061fd1ba23866746626a
[ "Apache-2.0" ]
null
null
null
micropython/sd/CSV_Util.py
webbhm/PiRock
2c8f328bf212d8bcac88061fd1ba23866746626a
[ "Apache-2.0" ]
null
null
null
''' Utility to take a sensor record and log to a CSV file Works for periodic appending of new data Author: Howard Webb Date: 12/14/2019 ''' import os, sys import pyb from utime import sleep env_header = ['type', 'source', 'timestamp', 'subject', 'attribute', 'value', 'units', 'status', 'status_qualifier', 'comment']...
27.850575
131
0.519191
2089f1861d9868c0e4954233d1d2f336e38e6a1f
2,862
py
Python
Packs/ExpanseV2/Scripts/ExpanseEvidenceDynamicSection/ExpanseEvidenceDynamicSection_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ExpanseV2/Scripts/ExpanseEvidenceDynamicSection/ExpanseEvidenceDynamicSection_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ExpanseV2/Scripts/ExpanseEvidenceDynamicSection/ExpanseEvidenceDynamicSection_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa import ExpanseEvidenceDynamicSection INCIDENT = { 'CustomFields': { 'expanselatestevidence': """ { "certificate": null, "cipherSuite": null, "configuration": { "_type": "NetBiosNameServerConfiguration", "nodeNames": [ { ...
24.461538
88
0.621244
4581097a8901abe555695274c6dfdcca8df1d4ca
2,665
py
Python
DataStructure/U5/U5_43.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
1
2019-10-29T08:21:41.000Z
2019-10-29T08:21:41.000Z
DataStructure/U5/U5_43.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
DataStructure/U5/U5_43.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
__author__ = "Qianli Wang and Nazar Sopiha" __copyright__ = "Copyright (c) 2019 qiaw99" # https://github.com/qiaw99/WS2019-20/blob/master/LICENSE from matplotlib import pyplot as plt def berechnen(g): # g = (a, value, b) # f(x) = g(x) * x + c ls = [] # Erste Konstant temp_k = g[1] # Der erste Punkt ist: (...
25.380952
118
0.547467
922f6ba6bfb059bc664df7980307d526144816d3
1,968
py
Python
3_DeepLearning-CNNs/02_Convolutional_Neural_Network-Basics/2-Max_Pooling_Layer.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
3_DeepLearning-CNNs/02_Convolutional_Neural_Network-Basics/2-Max_Pooling_Layer.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
3_DeepLearning-CNNs/02_Convolutional_Neural_Network-Basics/2-Max_Pooling_Layer.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
''' MaxPooling: minimiert die berechnete Matrix des Conv Layers (nimmt aus entsprechenden Raster nur die höchsten Werte) pool_size: Größe des Filters Bsp.:(2, 2) strides: Wert um wieviel der Filter immer verschoben werden soll Stride = (1,1) 1 nach rechts immer und 1 nach unten wenn Zeile zuende...
30.276923
91
0.725102
5b827c6623afc1342827c64b9a346decb0f1d407
2,696
py
Python
src/lecture1/preprocess.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
1
2020-08-17T07:09:09.000Z
2020-08-17T07:09:09.000Z
src/lecture1/preprocess.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
null
null
null
src/lecture1/preprocess.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
2
2020-07-26T07:27:57.000Z
2020-08-17T07:09:15.000Z
""" Created on July 25 01:15, 2020 @author: fassial """ import os import random import numpy as np from skimage import io # local dep import sys sys.path.append("./hog") from hog import hog TRUE = "true" FALSE = "false" PREFIX = os.path.join("..", "..", "data", "lecture1") DATASET = os.path.join(PRE...
29.304348
97
0.569362
3416922f28ede3fd2fada0a3d0047b31108409ee
23
py
Python
Txt.PPRPG/simu/main.py
okard/depot
ac10c2388799a76bfabf9ddf20b11cd2c516bcab
[ "MIT" ]
null
null
null
Txt.PPRPG/simu/main.py
okard/depot
ac10c2388799a76bfabf9ddf20b11cd2c516bcab
[ "MIT" ]
null
null
null
Txt.PPRPG/simu/main.py
okard/depot
ac10c2388799a76bfabf9ddf20b11cd2c516bcab
[ "MIT" ]
null
null
null
# create character
3.833333
18
0.652174
caa6b98a0563a781a22542265797b6d86a9544c0
480
py
Python
exercises/pt/test_02_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/test_02_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/test_02_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( person_hash == nlp.vocab.strings["PERSON"] ), "Você atribuiu o código hash corretamente?" assert ( 'nlp.vocab.strings["PERSON"]' in __solution__ ), "Você atribuiu o código hash corretamente?" assert person_string == "PERSON", "Você selecionou a string corretament...
34.285714
78
0.654167
1b6e843649786a96f73cd110b1c8eae9c11ac508
2,171
py
Python
notebooks/02-xente-transform.py
marcusinthesky/UmojaHack
ab25fd7e06bba2d2a5f7a0ce5b676f2e4bd989db
[ "MIT" ]
2
2020-04-02T02:08:57.000Z
2020-04-21T21:59:55.000Z
notebooks/02-xente-transform.py
marcusinthesky/Zindi-UmojaHack-Hackathon
ab25fd7e06bba2d2a5f7a0ce5b676f2e4bd989db
[ "MIT" ]
null
null
null
notebooks/02-xente-transform.py
marcusinthesky/Zindi-UmojaHack-Hackathon
ab25fd7e06bba2d2a5f7a0ce5b676f2e4bd989db
[ "MIT" ]
null
null
null
#%% import pandas as pd import numpy as np import holoviews as hv import hvplot.pandas from scipy.sparse.linalg import svds from scipy.stats import chisquare, chi2_contingency from sklearn.decomposition import TruncatedSVD from umoja.ca import CA hv.extension('bokeh') #%% X = context.io.load('xente_train') Y = contex...
28.946667
98
0.684938
84d8269265d3f6db1167af4a87c98271e2a32463
8,334
py
Python
models/frompredictor/from_predictor.py
inyukwo1/qgm_decoder
70e60afec140ec3e2ee04f980a384e1cf28d761c
[ "MIT" ]
null
null
null
models/frompredictor/from_predictor.py
inyukwo1/qgm_decoder
70e60afec140ec3e2ee04f980a384e1cf28d761c
[ "MIT" ]
null
null
null
models/frompredictor/from_predictor.py
inyukwo1/qgm_decoder
70e60afec140ec3e2ee04f980a384e1cf28d761c
[ "MIT" ]
null
null
null
import os import torch import numpy as np import torch.nn as nn import torch.nn.functional as F from commons.utils import run_lstm from commons.embeddings.graph_utils import * from commons.embeddings.bert_container import BertContainer from commons.embeddings.word_embedding import WordEmbedding class FromPredictor(nn....
41.054187
134
0.589633
04f6ac16ce1b22b993d4eb42929d72b772933ca2
647
py
Python
Weboffice/woa_contacts/__manifest__.py
whoedl61/webinaroctubre
a22048838062999753860995d21328cb9d53d652
[ "MIT" ]
null
null
null
Weboffice/woa_contacts/__manifest__.py
whoedl61/webinaroctubre
a22048838062999753860995d21328cb9d53d652
[ "MIT" ]
null
null
null
Weboffice/woa_contacts/__manifest__.py
whoedl61/webinaroctubre
a22048838062999753860995d21328cb9d53d652
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- { 'name' : 'WOA Contacts', 'version' : '', 'summary': 'Contacts', 'sequence': 15, 'description': """ """, 'category': '', 'website': 'https://www.weboffice.at', 'images' : [], 'depends' : ['base', 'sale'], 'data': [ # Security 'secu...
18.485714
47
0.517774
edd0c82fab842d3c9be92cd6ed173b2ec0a123ae
2,432
py
Python
gemtown/copyrights/migrations/0001_initial.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
gemtown/copyrights/migrations/0001_initial.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
5
2020-09-04T20:13:39.000Z
2022-02-17T22:03:33.000Z
gemtown/copyrights/migrations/0001_initial.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
# Generated by Django 2.0.13 on 2019-04-20 06:10 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='CopyrightId', fields=[ ('id', models.AutoF...
43.428571
196
0.561678
bfa7e22f24b47f70ca13b6a2fcf1a9b11a90e98c
5,941
py
Python
src/pfun/dict.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
src/pfun/dict.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
src/pfun/dict.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
from typing import Dict as Dict_ from typing import (ItemsView, Iterator, KeysView, Mapping, TypeVar, Union, ValuesView) from .immutable import Immutable from .maybe import Just, Maybe, Nothing K = TypeVar('K') V = TypeVar('V') class Dict(Immutable, Mapping[K, V], init=False): """ Immuta...
24.857741
75
0.482915
780580520e0cdbf3252a7ca38de357805ac9dc36
741
py
Python
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_07_Sequenzen_Mengen_und_Generatoren/10_chapter_07_repetition_task_03_right_angled_triangle.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_07_Sequenzen_Mengen_und_Generatoren/10_chapter_07_repetition_task_03_right_angled_triangle.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_07_Sequenzen_Mengen_und_Generatoren/10_chapter_07_repetition_task_03_right_angled_triangle.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ### # File: 10_chapter_07_repetition_task_03_right_angled_triangle.py # Project: Kapitel_07_Sequenzen_Mengen_und_Generatoren # Created Date: Wednesday 06.03.2019, 11:45 # Author: Apop85 # ----- # Last Modified: Wednesday 06.03.2019, 11:56 # ----- # Copyright (c) 2019 Apop85...
35.285714
121
0.723347
781cbb859b5f6232fe738c9774a569d5daf800fb
39,668
py
Python
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/pipeline_schema/compiled_action.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/pipeline_schema/compiled_action.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/pipeline_schema/compiled_action.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from abc import abstractmethod from copy import deepcopy from logging import getLogger from random import randrange from traceback import format_exc from typing import Any, Callable, Dict, List, Optional, Union from time import sleep from watchmen_auth import PrincipalService from watchmen_data_kernel.external_writer...
44.772009
120
0.780024
158e95ce233d85bf717885e9233cae0f7590b67d
5,180
py
Python
Extensions/Reaction-Event-Handler.py
Drageast/Die_Botin
b574166a37c0f92c34db99931c8c894390fbead9
[ "BSD-3-Clause" ]
null
null
null
Extensions/Reaction-Event-Handler.py
Drageast/Die_Botin
b574166a37c0f92c34db99931c8c894390fbead9
[ "BSD-3-Clause" ]
null
null
null
Extensions/Reaction-Event-Handler.py
Drageast/Die_Botin
b574166a37c0f92c34db99931c8c894390fbead9
[ "BSD-3-Clause" ]
null
null
null
# Import from discord.ext import commands import asyncio import discord # Utils import Utils # Cog Initialising class Reaction_EventHandler(commands.Cog): def __init__(self, client): self.client = client self.reaction = str(Utils.YamlContainerManagement.GET_yamlAttr("Variablen", "Universals",...
32.578616
148
0.617761
bdd48263b075246ac1f5f38ad7e7dfd41fc7b66d
209
py
Python
Online-Judges/DimikOJ/Python/37-arraged-char.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/DimikOJ/Python/37-arraged-char.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/DimikOJ/Python/37-arraged-char.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
# dimikoj - Problem 37 list_of_words = [] t = int(input()) for i in range(t): list_of_words.append(input()) print("") list_of_words = sorted(list_of_words) for j in range(t): print(list_of_words[j])
17.416667
37
0.679426
bdd6d88d0296dc41309298e2229905f334f90092
2,662
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex09_nqueens.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex09_nqueens.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex09_nqueens.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden from ch06_arrays.intro.intro import get_dimension def solve_n_queens(size): board = initialize_board(size) solved = solve_n_queens_helper(board, 0) return solved, board # (solved, board) def initialize_board(size)...
21.126984
64
0.613824
da5dd649e790fa3a1ce534970297a219a788bae3
838
py
Python
src/launch.py
Muxelmann/home-projects
85bd06873174b9c5c6276160988c19b460370db8
[ "MIT" ]
null
null
null
src/launch.py
Muxelmann/home-projects
85bd06873174b9c5c6276160988c19b460370db8
[ "MIT" ]
null
null
null
src/launch.py
Muxelmann/home-projects
85bd06873174b9c5c6276160988c19b460370db8
[ "MIT" ]
null
null
null
import sys, os # Determine the path to the current dir - should be `/etc/www/test_project` __dir__ = '/'.join(os.path.abspath(__file__).split('/')[0:-1]) sys.path.insert(0, __dir__) # Activate the virtual environment stored in `venv` activate_this = os.path.join(__dir__, 'venv', 'bin', 'activate_this.py') with open(a...
33.52
98
0.684964
e5f13946851ac1c26ed87a6b2a792831fa742097
255
py
Python
test/updatePip.py
WuNull/findmovie
29d3ef6fe2282f48be57780f5e8366de1d3479a6
[ "Apache-2.0" ]
1
2019-11-26T07:03:06.000Z
2019-11-26T07:03:06.000Z
test/updatePip.py
WuNull/findmovie
29d3ef6fe2282f48be57780f5e8366de1d3479a6
[ "Apache-2.0" ]
null
null
null
test/updatePip.py
WuNull/findmovie
29d3ef6fe2282f48be57780f5e8366de1d3479a6
[ "Apache-2.0" ]
null
null
null
import pip from subprocess import call from pip._internal.utils.misc import get_installed_distributions if __name__ == '__main__': for dist in get_installed_distributions(): call("pip install --upgrade " + dist.project_name, shell=True)
36.428571
70
0.74902
c1c34cba4f6ed785c4a86d7de6bbcfe3e8260329
1,916
py
Python
research/cv/ESRGAN/src/dataset/testdataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ESRGAN/src/dataset/testdataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ESRGAN/src/dataset/testdataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., 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 applicable law or agreed to...
33.034483
80
0.651357
99e743fd64e1efad681f8300c492982ff05cae8a
258
py
Python
Curso-Em-Video-Python/2Exercicios/023_separando_digitos_de_um_numero.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/023_separando_digitos_de_um_numero.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/023_separando_digitos_de_um_numero.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
numero = int(input('Digite um numero: ')) unidade = numero // 1 % 10 dezena = numero // 10 % 10 centena = numero // 100 % 10 minhar = numero // 1000 % 10 print(' Unidade: {}\n Dezena : {}\n Centena: {}\n Milhar : {}'.format(unidade, dezena, centena, minhar))
43
104
0.627907
41b1c4faf4b01a35ad875c3325d9214978ec1566
1,208
py
Python
Problems/Depth-First Search/medium/SmallestSubtreewithallDeepestNodes/smallest_subtree_with_all_deepest_nodes.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Depth-First Search/medium/SmallestSubtreewithallDeepestNodes/smallest_subtree_with_all_deepest_nodes.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/medium/SmallestSubtreewithallDeepestNodes/smallest_subtree_with_all_deepest_nodes.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
# Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right def subtreeWithAllDeepest(self, root: TreeNode) -> TreeNode: self.ans, self.max_depth = None, 0 def dfs(cur_node: TreeNode, dept...
26.844444
62
0.596026
ec07d124dcc0bb0e1e94573eb382b9545d9df90e
379
py
Python
003 Listen.py
Gravitar64/KESS
174bf9ee853f7bfb0c2e652b83150045197b6425
[ "MIT" ]
null
null
null
003 Listen.py
Gravitar64/KESS
174bf9ee853f7bfb0c2e652b83150045197b6425
[ "MIT" ]
null
null
null
003 Listen.py
Gravitar64/KESS
174bf9ee853f7bfb0c2e652b83150045197b6425
[ "MIT" ]
null
null
null
meine_lottozahlen = [1,12,15,19,23] print(meine_lottozahlen) for zahl in meine_lottozahlen: print(zahl) summe = 0 for zahl in meine_lottozahlen: print(zahl) summe = summe + zahl print(summe) print(sum(meine_lottozahlen)) print(max(meine_lottozahlen)) print(min(meine_lottozahlen)) meine_lottozahlen.append(13)...
18.047619
35
0.78628
d437aefdc6a6173417a8a521cba629c43081c48d
697
py
Python
python/pointer/metrics.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pointer/metrics.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pointer/metrics.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
class Metrics(object): def __init__(self): self._metrics = { "func_calls": 0, "cat_pictures_served": 0 } @property def func_calls(self): return self._metrics["func_calls"] @property def cat_pictures_served(self): return self._metrics["cat_pic...
22.483871
51
0.637016
d440bcd463801d3b475d76cf9eee4205b12365c5
382
py
Python
services/web/project/config.py
pawelkonior/flask_boilerplate
5be7d6a0e74d94c5e992b096e7e200a9c91d0666
[ "MIT" ]
null
null
null
services/web/project/config.py
pawelkonior/flask_boilerplate
5be7d6a0e74d94c5e992b096e7e200a9c91d0666
[ "MIT" ]
null
null
null
services/web/project/config.py
pawelkonior/flask_boilerplate
5be7d6a0e74d94c5e992b096e7e200a9c91d0666
[ "MIT" ]
null
null
null
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): SQLALCHEMY_DATABASE_URI = os.getenv("DATABASE_URL", "sqlite://") SQLALCHEMY_TRACK_MODIFICATIONS = False STATIC_FOLDER = f"{os.getenv('APP_FOLDER')}/app/static" MEDIA_FOLDER = f"{os.getenv('APP_FOLDER')}/app/media" ...
29.384615
68
0.717277
cf44805f0d2a0e9b307185d9aa6aa9c1bf636409
1,157
py
Python
chord_rec/harmalysis/common.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/harmalysis/common.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/harmalysis/common.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
''' harmalysis - a language for harmonic analysis and roman numerals Copyright (C) 2020 Nestor Napoles Lopez 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 3 of t...
30.447368
74
0.668971
d88a92927ab88abed86ffedd56e23be3bb008ef0
366
py
Python
DisplayActions.py
Az107/Quark
10c0c953143fb9fc3351dbad9418880aeb5d5a56
[ "MIT" ]
1
2020-11-22T22:22:59.000Z
2020-11-22T22:22:59.000Z
DisplayActions.py
Az107/Quark
10c0c953143fb9fc3351dbad9418880aeb5d5a56
[ "MIT" ]
null
null
null
DisplayActions.py
Az107/Quark
10c0c953143fb9fc3351dbad9418880aeb5d5a56
[ "MIT" ]
1
2020-11-22T22:24:19.000Z
2020-11-22T22:24:19.000Z
from ProtoActions import ActionsMaster, Input class Actions(ActionsMaster): username = Input() password = Input() def login(self): print(self.username.value()) if self.username.value() == "alb" and self.password.value() == "1234": self.fun("alert('loged!')") self.userna...
28.153846
78
0.606557
99223e4041abdb84f34c275496665397f972fa91
3,453
py
Python
vocabulary.py
lum4chi/chinltk
f129394984858e7789bec39a2900ebff6f9ae380
[ "Apache-2.0" ]
null
null
null
vocabulary.py
lum4chi/chinltk
f129394984858e7789bec39a2900ebff6f9ae380
[ "Apache-2.0" ]
null
null
null
vocabulary.py
lum4chi/chinltk
f129394984858e7789bec39a2900ebff6f9ae380
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2016 Francesco Lumachi <francesco.lumachi@gmail.com> import cPickle from itertools import izip_longest class Vocabulary: """ Provide a way to organize words and provide translation to a main dictionary of terms. """ def __ini...
35.234694
79
0.603533
99457978c9bf7b27e913de70786aea5b2f553632
9,460
py
Python
src/test/tests/databases/samrai.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/samrai.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/samrai.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: samrai.py # # Tests: presence of HDF5 # default plot # sil changing with time # nested ghosting # zbuffer contention # 2d ale data ...
22.905569
102
0.716068
512bca11e9f829a778693400bfd822166acde4fa
1,055
py
Python
contribute/init.py
shackspace/contribute
adf373eb2088ef44d99ec3e47553e25e194c3de2
[ "WTFPL" ]
1
2015-04-03T21:20:21.000Z
2015-04-03T21:20:21.000Z
contribute/init.py
shackspace/contribute
adf373eb2088ef44d99ec3e47553e25e194c3de2
[ "WTFPL" ]
null
null
null
contribute/init.py
shackspace/contribute
adf373eb2088ef44d99ec3e47553e25e194c3de2
[ "WTFPL" ]
null
null
null
from flask import Flask, render_template app = Flask(__name__) @app.route("/") def hello(): return render_template("index.html") @app.route("/vote", methods=['GET']) def show_vote(): return render_template("vote.html", project='fortune', proposal='this i...
22.934783
53
0.580095
5a8cbf825ebcffecdb35a6cb2c2689ac5df98324
12,899
py
Python
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/src/data/yolo_load/transform.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,045
2019-05-09T02:50:43.000Z
2022-03-31T06:22:11.000Z
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/src/data/yolo_load/transform.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,468
2019-05-16T00:48:18.000Z
2022-03-08T04:12:44.000Z
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/src/data/yolo_load/transform.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,077
2019-05-09T02:50:53.000Z
2022-03-27T11:05:32.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import copy import random import numpy as np import mxnet.image as mx_img from mxnet import autograd from mxnet import nd from . import image_process as timage from . import bbox as tbbox from .target import Pr...
35.731302
100
0.577254
7a7e1a8d6d6833c525c61f8f98b9292f637c19f9
1,526
py
Python
Skripte/Python/vars.py
tomg404/WSeminar19-21
6f1ebaf6222f0db892b568bf021b87717d461345
[ "MIT" ]
null
null
null
Skripte/Python/vars.py
tomg404/WSeminar19-21
6f1ebaf6222f0db892b568bf021b87717d461345
[ "MIT" ]
null
null
null
Skripte/Python/vars.py
tomg404/WSeminar19-21
6f1ebaf6222f0db892b568bf021b87717d461345
[ "MIT" ]
null
null
null
# (c) Tom Gaimann - 2020 from scipy.stats import linregress import matplotlib.pyplot as plt import scipy.signal from vars import * import numpy as np import csv import sys CSV_FOLDER = "Data/" PGF_OUTPUT = "PGFplots/" PNG_OUTPUT = "PNGplots/" print("+----------------------------------------------------------+") prin...
28.259259
74
0.550459
f108300a8979ffd5a4b6e5a4e835141ac8653abc
402
py
Python
src/onegov/org/translations.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/translations.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/translations.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Contains a list of manual translations. Those are usually messages that exist in external packages which provide no translations. """ from onegov.org import _ # messages defined in wtforms-components _("Not a valid color.") # messages not translated by wtforms _("Not a valid choice") # Roles in plural form are...
22.333333
75
0.756219
7469791a29bc2557f280ce6f729409b6a650255e
3,521
py
Python
superstructure/grundbegriffe.py
fossabot/superstructure
f4ab5cac269fb3dedfbd3a54c441af23edf3840b
[ "MIT" ]
null
null
null
superstructure/grundbegriffe.py
fossabot/superstructure
f4ab5cac269fb3dedfbd3a54c441af23edf3840b
[ "MIT" ]
null
null
null
superstructure/grundbegriffe.py
fossabot/superstructure
f4ab5cac269fb3dedfbd3a54c441af23edf3840b
[ "MIT" ]
null
null
null
from superstructure.logik import Begriff, Relation """ (Inneres / Ding-An-Sich, Äußeres) -> Ding """ class Identität(Relation): """Identität an sich""" def __init__(self): criterium = lambda a, b, geist: a == b super().__init__( nodes=2, criterium=criterium, is_directed=False,...
20.83432
80
0.583925
749e8dbbef2d4568f547105fd1f07038428f1931
2,697
py
Python
hdg_test/anistropic/hdg_test.py
BradHub/SL-SPH
7bc86253277d27cbb04a9b5935fd4fc056266371
[ "MIT" ]
1
2018-02-19T01:52:58.000Z
2018-02-19T01:52:58.000Z
hdg_test/anistropic/hdg_test.py
BradHub/SL-SPH
7bc86253277d27cbb04a9b5935fd4fc056266371
[ "MIT" ]
null
null
null
hdg_test/anistropic/hdg_test.py
BradHub/SL-SPH
7bc86253277d27cbb04a9b5935fd4fc056266371
[ "MIT" ]
null
null
null
import numpy as np import dolfin from dolfin import * from mpi4py import MPI as pyMPI from leopart import StokesStaticCondensation, FormsStokes import geopart.stokes.incompressible import dolfin_dg as dg comm = pyMPI.COMM_WORLD mpi_comm = MPI.comm_world #mark whole boundary, inflow and outflow will overwrite) clas...
29.637363
75
0.717835
bb4e8afc99891dd0b54d76b4bc6a652dbe8837c6
3,178
py
Python
aMLpy/fig_matchedfilt_burst.py
dirac-institute/SPSAS2019
34781162bb088b17c1b9afb69eee2284dce6bdec
[ "MIT" ]
15
2019-07-31T07:18:49.000Z
2021-06-03T23:41:59.000Z
aMLpy/fig_matchedfilt_burst.py
dirac-institute/SPSAS2019
34781162bb088b17c1b9afb69eee2284dce6bdec
[ "MIT" ]
null
null
null
aMLpy/fig_matchedfilt_burst.py
dirac-institute/SPSAS2019
34781162bb088b17c1b9afb69eee2284dce6bdec
[ "MIT" ]
6
2019-08-01T19:33:16.000Z
2020-08-27T13:01:15.000Z
""" Matched Filter Burst Search --------------------------- """ # Author: Jake VanderPlas <vanderplas@astro.washington.edu> # License: BSD # The figure produced by this code is published in the textbook # "Statistics, Data Mining, and Machine Learning in Astronomy" (2013) # For more information, see http://astroM...
27.634783
77
0.595658
707960df99d84f57698d83e78430585a74e6e240
374
py
Python
PYTHON/Python_Functionals/map_and_lambda_function.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Python_Functionals/map_and_lambda_function.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Python_Functionals/map_and_lambda_function.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 cube = lambda x: x**3 # complete the lambda function def fibonacci(n): if n == 0: return [] fib = [0] a, b = 0, 1 while len(fib) < n: fib.append(b) a, b = b, a+b return list(map(cube, fib)) # return a list of fibonacci numbers if __name__ == '__m...
18.7
52
0.542781
796680562402961ab2c7300ba281de8322578f3c
909
py
Python
python/contextlib/contextlib_exitstack_enter_context.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/contextlib/contextlib_exitstack_enter_context.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/contextlib/contextlib_exitstack_enter_context.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
""" An ExitStack instance maintains a stack data structure of cleanup callbacks. The callbacks are populated explicitly within the context, and any registered callbacks are called in the reverse order when control flow exits the context. The result is like having multiple nested `with` statements, except they are esta...
24.567568
78
0.718372
5c1fda8e6074b41ea11423f93d8fee8b30ef288b
2,730
py
Python
research/nlp/seq2seq/src/seq2seq_model/encoder.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/seq2seq/src/seq2seq_model/encoder.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/seq2seq/src/seq2seq_model/encoder.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., 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 applicable law or agreed to...
35
78
0.637363
ba68f2a4b59ffae2b47c9cfedcd19509e93dfcea
814
py
Python
src/freqpoly/freqpoly.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/freqpoly/freqpoly.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/freqpoly/freqpoly.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.cm as cmp import matplotlib.colors as cl import matplotlib.pyplot as plt import plotly.express as px import plotly.graph_objects as go # matplotlib fig, ax = plt.subplots(1, figsize=(24,15)) x = np.array(event_count_summer['Event']) ax.tick_params(axis='x', colo...
28.068966
108
0.701474
ba8a49a0b112fbd8d4d2530a07289ca330647213
121
py
Python
Algorithms/Implementation/extra_long_factorials.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/extra_long_factorials.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/extra_long_factorials.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys n = int(input().strip()) ret = 1 for i in range(n, 1, -1): ret *= i print(ret)
11
25
0.570248
79f77fb43c35952764cf6fff587586cb50ba4ae3
1,310
py
Python
plugins/tff_backend/bizz/email.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/bizz/email.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/bizz/email.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2018 GIG Technology NV # # 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...
36.388889
78
0.714504
ae11c8b5e787a22a6e6ddecbcf83f0f1dc689adb
103
py
Python
store/views.py
JanakiRaman-2002/Arre-yaar
c0b44ca1f8884a09116241dcd0bf7cfcee3b785d
[ "Apache-2.0" ]
null
null
null
store/views.py
JanakiRaman-2002/Arre-yaar
c0b44ca1f8884a09116241dcd0bf7cfcee3b785d
[ "Apache-2.0" ]
null
null
null
store/views.py
JanakiRaman-2002/Arre-yaar
c0b44ca1f8884a09116241dcd0bf7cfcee3b785d
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render def contact(request): return render(request,'Contact.html',{})
25.75
44
0.757282
c9a8a7ee67086abd2bde76cbbd329506ae5a3eae
2,976
py
Python
Scarky2/builder/migrations/0001_initial.py
kopringo/Scarky2
93c59cd31113749045caff68274f779a61360167
[ "MIT" ]
null
null
null
Scarky2/builder/migrations/0001_initial.py
kopringo/Scarky2
93c59cd31113749045caff68274f779a61360167
[ "MIT" ]
null
null
null
Scarky2/builder/migrations/0001_initial.py
kopringo/Scarky2
93c59cd31113749045caff68274f779a61360167
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
47.238095
189
0.56586
0963198a178900fd1827d01cca2e84e071076cd4
752
py
Python
venv/Lib/site-packages/pynance/data/__init__.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
35
2015-03-12T04:16:14.000Z
2020-12-17T18:10:15.000Z
venv/Lib/site-packages/pynance/data/__init__.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
31
2015-03-16T21:31:04.000Z
2021-01-26T00:12:34.000Z
venv/Lib/site-packages/pynance/data/__init__.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
18
2015-09-30T10:40:26.000Z
2021-01-25T21:20:44.000Z
""" .. Copyright (c) 2014 Marshall Farrier license http://opensource.org/licenses/MIT Data (:mod:`pynance.data`) =============================================== .. currentmodule:: pynance.data :mod:`pynance.data.combine` :mod:`pynance.data.compare` :mod:`pynance.data.feat` :mod:`pynance.data.lab` :mod:`pynanc...
18.8
67
0.672872
098c3f8a9c0ad7773e95b05147ba303808309c08
1,927
py
Python
year_3/databases_sem2/lab1/lab1/main.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/databases_sem2/lab1/lab1/main.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/databases_sem2/lab1/lab1/main.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
import os from scrapy import cmdline from lxml import etree def football_parse(): try: os.remove("results/football.xml") except OSError: print("results/football.xml not found") cmdline.execute("scrapy crawl football -o results/football.xml -t xml".split()) def football_analysis(): p...
25.693333
83
0.610275
09986f4498ca7e3ac7798324b479f1b4535bd7f0
854
py
Python
download.py
SDNixalo/ChechenULMFiT
4df21c48d47d11838991160dec0d8bc6c2209f05
[ "MIT" ]
null
null
null
download.py
SDNixalo/ChechenULMFiT
4df21c48d47d11838991160dec0d8bc6c2209f05
[ "MIT" ]
null
null
null
download.py
SDNixalo/ChechenULMFiT
4df21c48d47d11838991160dec0d8bc6c2209f05
[ "MIT" ]
1
2018-11-16T21:33:00.000Z
2018-11-16T21:33:00.000Z
from pathlib import Path from math import ceil import requests from fastprogress import force_console_behavior#master_bar, progress_bar master_bar,progress_bar = force_console_behavior() path = Path('data/') path.mkdir(exist_ok=True) wikidump_url = 'https://dumps.wikimedia.org/cewiki/20181101/cewiki-20181101-pages-m...
29.448276
103
0.742389
61db05d58f6ceef96bad6959cd3f14f8650f6482
2,384
py
Python
src/MainSMTPServer.py
sintrb/SinMail
f4166e58186ccc3b2466ffaaf85732445b89204a
[ "Apache-2.0" ]
1
2016-02-25T19:31:34.000Z
2016-02-25T19:31:34.000Z
src/MainSMTPServer.py
sintrb/SinMail
f4166e58186ccc3b2466ffaaf85732445b89204a
[ "Apache-2.0" ]
null
null
null
src/MainSMTPServer.py
sintrb/SinMail
f4166e58186ccc3b2466ffaaf85732445b89204a
[ "Apache-2.0" ]
null
null
null
import smtpd import asyncore import os import email def parsemail(mail, savename): prefix = savename mails = [] names = [] def parsesingle(mail): if mail.is_multipart(): for m in mail.get_payload(): parsesingle(m) return name = mail.get_param("name...
30.961039
82
0.534815
fedf2c65ba3bc0eb5c3104329fad0a843e042d8f
163
py
Python
python_gui_tkinter/KALU/GARBAGE1/ALLOUTDATED/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/GARBAGE1/ALLOUTDATED/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/GARBAGE1/ALLOUTDATED/test.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from AppOperations import AppOperations as ao ao.displayData() print("Total items : ",ao.countTotalItems()) from ScreenGUI import GUIfunctions GUIfunctions.show()
32.6
46
0.809816
3a6f18089875d69527a1ef5dddf237dba2a49258
889
py
Python
reports/migrations/0007_auto_20161201_1621.py
Daniel-Hoerauf/cs3240-f16-team11
0377bcb8ede9599c04daf7683b065abb2a47f893
[ "MIT" ]
null
null
null
reports/migrations/0007_auto_20161201_1621.py
Daniel-Hoerauf/cs3240-f16-team11
0377bcb8ede9599c04daf7683b065abb2a47f893
[ "MIT" ]
null
null
null
reports/migrations/0007_auto_20161201_1621.py
Daniel-Hoerauf/cs3240-f16-team11
0377bcb8ede9599c04daf7683b065abb2a47f893
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('web', '0002_auto_20161114_0341'), ...
26.939394
79
0.600675
a390a5c165171653bbf4b17eba9cd1244f0def8a
6,693
py
Python
pynanz/Portfolio.py
salemileandro/pynanz
5e22f4c4a0914714d1df668d3d0be54c90a8ff6d
[ "MIT" ]
null
null
null
pynanz/Portfolio.py
salemileandro/pynanz
5e22f4c4a0914714d1df668d3d0be54c90a8ff6d
[ "MIT" ]
null
null
null
pynanz/Portfolio.py
salemileandro/pynanz
5e22f4c4a0914714d1df668d3d0be54c90a8ff6d
[ "MIT" ]
null
null
null
import os import pynanz as pn import pandas as pd import numpy as np import datetime from typing import Union, List def id_generator(): x = 0 while True: yield x x += 1 class Portfolio: """ The Portfolio class is a class that contain all relevant information about a portfolio held by...
40.563636
118
0.605259
6e54562bcab0fac0050c7f7034bdb1546c5cb64a
526
py
Python
cmdFunc.py
kona3266/SocketServer
2bc9b271c909bba6b6457c709c98e95919f86198
[ "Apache-2.0" ]
null
null
null
cmdFunc.py
kona3266/SocketServer
2bc9b271c909bba6b6457c709c98e95919f86198
[ "Apache-2.0" ]
null
null
null
cmdFunc.py
kona3266/SocketServer
2bc9b271c909bba6b6457c709c98e95919f86198
[ "Apache-2.0" ]
null
null
null
import subprocess import sys def cmdExcute(cmd): cmd = cmd.split() os_type = sys.platform complete_process = subprocess.run(cmd,shell=True,capture_output=True) if 'win' in os_type: encoding = 'ansi' else: encoding = 'utf-8' stdout = complete_process.stdout.decode(encoding) st...
32.875
73
0.678707
6c81dc49178fabfd789ef5b9a1d9300f8839751a
1,417
py
Python
Python/zzz_training_challenge/Python_Challenge/chapter_02/grundrechenarten.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/chapter_02/grundrechenarten.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/chapter_02/grundrechenarten.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
def calc(m, n): mul = m * n div = mul // 2 return div % 7 def calc_sum_and_count_all_numbers_div_by_2_or_7(max_exclusive): div_2 = [] div_7 = [] count = 0 sum = 0 for i in range(1, max_exclusive): if i % 2 == 0 or i % 7 == 0: sum += i count += 1 ...
21.149254
64
0.436838
66714d59710fba8920eab17194e63b5137f0dd8b
759
py
Python
whitespace/encode.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
whitespace/encode.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
whitespace/encode.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
def num_to_ws(num, fmt=None, space=" ", tab="\t"): if fmt == None: fmt = "{0:08b}" return fmt.format(num).replace('0', space).replace('1', tab) def line_to_ws(line): s = '' for c in line: s += "S S S S " s += num_to_ws(ord(c), None, "S ", "T\t") s += "L" + chr(10) + "T\t...
30.36
83
0.549407
b0c403c32250e835fd6039e3e2148d2082b6d607
766
py
Python
Hackerrank_problems/Find_a_point/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/Find_a_point/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/Find_a_point/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
#!/bin/python3 import os import sys import math # # Complete the findPoint function below. # def findPoint(px, py, qx, qy): # calculate the distance between x axis and y axis dis_x = qx-px dis_y = qy-py # return it by adding the last/outer point (qx and qy) # with the distances in each axes re...
21.885714
58
0.583551
b0eee28fe2e5de2897783658babef220671a057d
2,545
py
Python
python/advanced_sw/test_ban.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/advanced_sw/test_ban.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/advanced_sw/test_ban.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import json a={ "?": "oP\"Yb. \n\"'.dP' \n 8P \n (8) ", "@": " dP\"\"Yb \ndP PY Yb \nYb boodP \n Ybooo ", "A": " db \n dPYb \n dP__Yb \ndP\"\"\"\"Yb ", "B": "88\"\"Yb \n88__dP \n88\"\"Yb \n88oodP ", "C": " dP\"\"b8 \ndP `\" \nYb \n YboodP ", "D": "8888b. \n 8I Yb \n 8...
25.969388
70
0.436935
af5e51bfa17886d10a47c349cc1a4d56e5104b72
431
py
Python
PYTHON/Collections/collections_deque.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Collections/collections_deque.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Collections/collections_deque.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from collections import deque if __name__ == '__main__': N = int(input()) d = deque() for _ in range(N): x = input().split() if x[0] == 'append': d.append(x[1]) elif x[0] == 'appendleft': d.appendleft(x[1]) elif x[0]...
21.55
34
0.461717
af6e8304d67d6c8ce69a758d13be8c7657e1e3dc
479
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v6_5/show_in_website_for_template_item.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v6_5/show_in_website_for_template_item.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_5/show_in_website_for_template_item.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import frappe import frappe.website.render def execute(): for item_code in frappe.db.sql_list("""select distinct variant_of from `tabItem` where variant_of is not null and variant_of !='' and show_in_website=1"""): item = frappe.get_doc("Item", item_code) item.db_set("sh...
29.9375
81
0.768267
bbb2566c10978da65d0c843b53f5cbf8dc0caa9c
47,786
py
Python
tensorflow/basic-rl/tutorial5/tests/dqn-deer-theano-cartpole.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
tensorflow/basic-rl/tutorial5/tests/dqn-deer-theano-cartpole.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
tensorflow/basic-rl/tutorial5/tests/dqn-deer-theano-cartpole.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:17:28.000Z
2019-05-10T09:17:28.000Z
''' Deep Q-learning approach to the cartpole problem using OpenAI's gym environment. As part of the basic series on reinforcement learning @ https://github.com/vmayoral/basic_reinforcement_learning Inspired by https://github.com/VinF/deer @author: Victor Mayoral Vilches <victor@erlerobotics.com> ''' import ...
36.928903
270
0.562194
b1b02f638977d28f1b8f93aad334d776a73626de
244
py
Python
lib/util/MazeBuilderUtil.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
5
2018-02-06T22:48:34.000Z
2020-01-07T20:19:05.000Z
lib/util/MazeBuilderUtil.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
11
2018-01-31T21:47:49.000Z
2018-04-21T16:42:52.000Z
lib/util/MazeBuilderUtil.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
2
2020-06-18T05:40:03.000Z
2022-02-02T03:46:30.000Z
def has_west_wall(value): return value in {2,3,6,10,7,14,15} def has_east_wall(value): return value in {4,5,6,7,12,14,15} def has_north_wall(number): return value % 2 == 1 def has_south_wall(number): return value in {8,9,10,11,12,14,5}
18.769231
36
0.70082
5924a13ede985050801c636cefe294f5ecfe7b33
1,293
py
Python
wtf/2021/crypto/H4ck3r_Vs_C0d3r/encr3pt.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
wtf/2021/crypto/H4ck3r_Vs_C0d3r/encr3pt.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
wtf/2021/crypto/H4ck3r_Vs_C0d3r/encr3pt.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
from PIL import Image, ImageDraw import os import sys from random import SystemRandom random = SystemRandom() xrange = range I3 = Image.open if len(sys.argv) != 2: exit() fl = str(sys.argv[1]) O1 = os.path.isfile O2 = os.path.splitext if not O1(fl): exit() i = I3(fl) f, e = O2(fl) O_A = f+"_A.png" O_B =...
19.892308
47
0.470224
593e0d93504d18f2a9650716b2209d545248c987
423
py
Python
backend_api/book/6_database/source_codes/config.py
mrtonnet/topics_in
94a174bd32ab89aaba0f58380b97dd90cfda8233
[ "MIT" ]
null
null
null
backend_api/book/6_database/source_codes/config.py
mrtonnet/topics_in
94a174bd32ab89aaba0f58380b97dd90cfda8233
[ "MIT" ]
null
null
null
backend_api/book/6_database/source_codes/config.py
mrtonnet/topics_in
94a174bd32ab89aaba0f58380b97dd90cfda8233
[ "MIT" ]
1
2020-06-06T08:48:25.000Z
2020-06-06T08:48:25.000Z
# config.py # * Draft: 2020-09-22 (Tue) # password must be identical to MySQL's root password. db = { 'user' : 'root', 'password' : 'test1234', 'host' : 'localhost', 'port' : 3306, 'database' : 'miniter' } # mysql+mysqlconnector://{username}:{password}@{host}:{port}/{database} DB_URL = f"mysql+m...
28.2
120
0.602837
a722ea9325e13d6a226833833025e8d9ae77054a
699
py
Python
___Python/Torsten/Python-Kurs/p07_file_io/m01_countfiles.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Torsten/Python-Kurs/p07_file_io/m01_countfiles.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Torsten/Python-Kurs/p07_file_io/m01_countfiles.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
from pathlib import Path def fak(n): if n == 0: return 1 else: return n * fak(n - 1) def count_dirs(path): try: subdirs = [subdir for subdir in path.iterdir() if subdir.is_dir()] # Bestimmte die direkten Unterordner des Ordners path count = 1 for subdir ...
22.548387
129
0.60372
55ba2d73fc29ea41ed8e105b5f0e39fe455dce3b
4,966
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/scripts/intersection_matrix.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/EGG-INFO/scripts/intersection_matrix.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/EGG-INFO/scripts/intersection_matrix.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
#!/usr/bin/python """ Create a matrix of many pairwise intersections; see \ :mod:`pybedtools.contrib.IntersectionMatrix` for more flexibility """ import collections import time import sys import os.path as op import argparse import pybedtools from pybedtools import BedTool, example_filename usage = """ Send in a...
32.246753
102
0.585985
f9ce5a6b8fc4701f96eb813b59bd63588836ef4d
467
py
Python
marsyas-vamp/marsyas/scripts/Python/batchPan.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/Python/batchPan.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/Python/batchPan.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
import os from glob import glob beginCommand = "peakClustering.exe -a -s 2 -c 3 -k 2 -i 0_300 -o c:\output\\bass -p 1_-1_0.05_-1 " for name in glob("..\..\..\jazz\*.wav"): command = beginCommand+name print command os.system(command) beginCommand = "peakClustering.exe -a -s 2 -c 3 -k 2 -i 250_2500 -...
25.944444
99
0.62955
551f1fcfe46beb1d174e8905864c41c5a3028c0a
2,106
py
Python
tensorforce/tests/test_ddpg_agent.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
null
null
null
tensorforce/tests/test_ddpg_agent.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
null
null
null
tensorforce/tests/test_ddpg_agent.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
1
2019-11-29T12:28:33.000Z
2019-11-29T12:28:33.000Z
# Copyright 2017 reinforce.io. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
27.710526
80
0.60114
1ffd98a336dbd343c82ee63998c879c52ce3ea0d
492
py
Python
Str0nger-master/keyloggerskill.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Str0nger-master/keyloggerskill.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Str0nger-master/keyloggerskill.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
from mail import mail_time from screenshoot import screenshootfunc import os import sys from sound import sound_go from keystroke import main class keylogger(): def screenshootgo(self): screenshootfunc() def system_name_go(self): return os.environ["USERNAME"] def sys_info(self): ...
25.894737
40
0.658537
1f82b1e67926e0c5497875da7ae5864c96c9305c
651
py
Python
Kapitel_5/Temperature/temperature.py
stephanhuewe/iotgadgets
a08204e87c864feee25ebc386974ebd6668945c9
[ "MIT" ]
null
null
null
Kapitel_5/Temperature/temperature.py
stephanhuewe/iotgadgets
a08204e87c864feee25ebc386974ebd6668945c9
[ "MIT" ]
null
null
null
Kapitel_5/Temperature/temperature.py
stephanhuewe/iotgadgets
a08204e87c864feee25ebc386974ebd6668945c9
[ "MIT" ]
null
null
null
from Hologram.HologramCloud import HologramCloud import Adafruit_DHT credentials = {'devicekey': 'top_secret'} hologram = HologramCloud(credentials, network='cellular') result = hologram.network.connect() if result == False: print ' Failed to connect to cell network' sensor = Adafruit_DHT.DHT11 pin = ...
34.263158
85
0.758833
2f960bbaae86564d8179a60371e79052d2aa4761
8,644
py
Python
scripts/UML_utils.py
jdehotin/IFC4.3.x-development
5652a25dac27242af8c60f1a33206d1697948ffa
[ "FSFAP" ]
1
2021-08-31T16:12:09.000Z
2021-08-31T16:12:09.000Z
scripts/UML_utils.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
null
null
null
scripts/UML_utils.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
null
null
null
import os import subprocess import json import sys class tex_ulm_object(): def __init__(self,texfilename): self.data = {} self.tex_file = open(texfilename+".tex", "x") self.tex_file_name = texfilename self.tex_content = r''' \documentclass{article} ...
32.253731
170
0.508098
c0f4098fa2c91e2b004cf73197cfbcc5d427a223
4,064
py
Python
programm/ball.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/ball.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/ball.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf8 import general def calculatemotorspeedsball(horact, actradius): # global leftspeedvalue # global rightspeedvalue # global speedvalue # global horact # global actradius steermultiplier = 0 # unter diesem Wert keine Beschleunigung minradius = 70 # ab diesem Wert ver...
26.562092
188
0.699803
f1eee83421e4ae34de5460200561bc395efe625a
173
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-003/ph-3.10-arithmetic.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-003/ph-3.10-arithmetic.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-003/ph-3.10-arithmetic.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
number1 = input("Please type an integer and press enter: ") number2 = input("Please type another integer and press enter: ") print("number1 + number2 =", number1 + number2)
43.25
64
0.728324
8d3c6166f5f11c22d4b481a298877fd8941f6aea
2,774
py
Python
tests/onegov/quill/test_widgets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/quill/test_widgets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/quill/test_widgets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.form import Form from onegov.quill.widgets import QuillInput from onegov.quill.fields import QuillField def test_widget_initalization(): input = QuillInput() assert input.formats == [ "'bold'", "'italic'", "'link'", "'header'", "'list'", "'blockquote'" ] assert input.toolbar == [ ...
32.635294
79
0.551911
8d5ee936f0bcf3c5ccf6493e418f2b4fc99084df
5,033
py
Python
Project6/lib.py
veronikadim99/Wissenschaftliches-Rechnen
3b7c86e9488bf434f3ad1d590f5b9bb9b4cdf218
[ "Apache-2.0" ]
null
null
null
Project6/lib.py
veronikadim99/Wissenschaftliches-Rechnen
3b7c86e9488bf434f3ad1d590f5b9bb9b4cdf218
[ "Apache-2.0" ]
null
null
null
Project6/lib.py
veronikadim99/Wissenschaftliches-Rechnen
3b7c86e9488bf434f3ad1d590f5b9bb9b4cdf218
[ "Apache-2.0" ]
null
null
null
import matplotlib import matplotlib.pyplot as plt from mpl_toolkits.mplot3d.axes3d import Axes3D import numpy as np ''' This package is to be used as a library. Please do not edit. ''' def fpoly(x: np.float) -> np.float: """ Simple polynomial of degree 5""" return 0.009 * (x ** 5) + 0.02 * (x ** 4) - 0.3...
28.596591
116
0.543413
5751f79639457c74685cecd92c0f2389129a5a1c
1,903
py
Python
.circleci/checklhe/vertex.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
3
2015-06-08T13:09:28.000Z
2020-09-04T19:59:36.000Z
.circleci/checklhe/vertex.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
64
2015-06-24T15:08:17.000Z
2022-01-25T04:59:32.000Z
.circleci/checklhe/vertex.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
19
2015-05-04T22:15:41.000Z
2021-07-06T10:04:40.000Z
import usefulstuff import momentum class Vertex(object): def __init__(self, in1, in2): self.__in = usefulstuff.printablefrozenset([in1, in2]) #If it's a decay (not a collision), in1 is the same as in2 so it's only entered in the set once self.__out = usefulstuff.printableset() def __hash__(s...
38.836735
161
0.616395
f580b1035ccb9b4fd24a0bb6077a9af347408dcc
11,563
py
Python
CategoryDialog.py
siej88/FuzzyACO
989a58049c8417cd023cfc312fb99d2649333ca7
[ "MIT" ]
null
null
null
CategoryDialog.py
siej88/FuzzyACO
989a58049c8417cd023cfc312fb99d2649333ca7
[ "MIT" ]
null
null
null
CategoryDialog.py
siej88/FuzzyACO
989a58049c8417cd023cfc312fb99d2649333ca7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ UNIVERSIDAD DE CONCEPCION Departamento de Ingenieria Informatica y Ciencias de la Computacion Memoria de Titulo Ingenieria Civil Informatica DETECCION DE BORDES EN IMAGENES DGGE USANDO UN SISTEMA HIBRIDO ACO CON LOGICA DIFUSA Autor: Sebastian Ignacio Espinoza Jimenez Patrocinant...
43.307116
117
0.610828
2755b75e144ba6091237a86ef12ad6c96cc3953c
103
py
Python
HackerRank/HackerRank-Python/Introduction/Loops.py
tareqmahmud/Competitive-Programming
ad5e53300d70280bccbd5046ca01278fb246f314
[ "MIT" ]
2
2020-11-19T19:03:28.000Z
2021-01-04T19:52:11.000Z
HackerRank-Python/Introduction/Loops.py
tareqmahmud/HackerRank
e1b9facab6582f86ea6cc63afcc640e66ba3f67e
[ "MIT" ]
null
null
null
HackerRank-Python/Introduction/Loops.py
tareqmahmud/HackerRank
e1b9facab6582f86ea6cc63afcc640e66ba3f67e
[ "MIT" ]
null
null
null
if __name__ == "__main__": number = int(input()) for i in range(number): print(i * i)
17.166667
27
0.543689
476cbc89560b46a3cfef939469a80d9bf598c905
442
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v5_8/add_credit_note_print_heading.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v5_8/add_credit_note_print_heading.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v5_8/add_credit_note_print_heading.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe import _ def execute(): for print_heading in (_("Credit Note"), _("Debit Note")): if not frappe.db.exists("Print Headin...
29.466667
71
0.728507
47cec297b3538f64d16a6c150816ca3cb942e830
4,446
py
Python
task_1/data_investigation/basic_data_analysis.py
strumswell/sentiment-apple-events
b6f4f7799374aba757874f5426b3a2c1bf7d29b5
[ "MIT" ]
1
2022-02-28T22:02:50.000Z
2022-02-28T22:02:50.000Z
task_1/data_investigation/basic_data_analysis.py
strumswell/sentiment-apple-events
b6f4f7799374aba757874f5426b3a2c1bf7d29b5
[ "MIT" ]
null
null
null
task_1/data_investigation/basic_data_analysis.py
strumswell/sentiment-apple-events
b6f4f7799374aba757874f5426b3a2c1bf7d29b5
[ "MIT" ]
null
null
null
# %% Imports import pandas as pd import matplotlib.pyplot as plt import numpy as np # %% Read Docs events = list(reversed(['2020_Nov_Post', '2020_Nov', '2020_Nov_Pre', '2020_Oct_Post', '2020_Oct', '2020_Oct_Pre', '2020_Sept_Post', '2020_Sept', '2020_Sept_Pre', '2020_Jun_Post', '2020_Jun', '2020_Jun_Pre', '2019_Sept_...
40.054054
479
0.712551
d01cda3387981dcd6f4860559a8d7d457f3c691f
307
py
Python
diversos/mapa.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
1
2021-12-18T15:29:24.000Z
2021-12-18T15:29:24.000Z
diversos/mapa.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
null
null
null
diversos/mapa.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
3
2021-08-23T22:45:20.000Z
2022-02-17T13:17:09.000Z
# -*- coding: utf-8 -*- print ("-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=") def dobro(x): return x * 2 valor = [ 2, 4, 8, 16 ,32, 64 ] dobrado = map ( dobro, valor ) for d in dobrado: print (d) print ("-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=") doisDobro = list(dobrado) print (doisDobro)
19.1875
54
0.403909
089e420eed4e44faef086952709dceeca3301614
1,798
py
Python
research/cv/advanced_east/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/advanced_east/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/advanced_east/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., 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 applicable law or agreed to...
35.254902
88
0.660734
dedfa23b385127d6f2eedf47e724ea9f77335701
1,562
py
Python
DataStructures/Heap/ADP.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/Heap/ADP.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/Heap/ADP.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 Q = int(raw_input()) import pdb #queries = [raw_input() for _ in xrange(Q)] heap = [-10 ** 9] #用set记录元素,实现惰性删除 item_lookup = set() #for s in queries: for _ in xrange(Q): s = raw_input() if s.startswith('1'): i = len(heap) heap.append(None) v = int(s.split()[-1]) ...
22.637681
43
0.373239
7201f99bafaf1f8563373de3b785bdd64c7551f4
732
py
Python
2021/RoundC/a.py
Akash671/KickStart
7cf7e572408203c881d56989fb37e6270bd696f0
[ "CC0-1.0" ]
1
2021-03-12T08:39:01.000Z
2021-03-12T08:39:01.000Z
2021/RoundC/a.py
Akash671/KickStart
7cf7e572408203c881d56989fb37e6270bd696f0
[ "CC0-1.0" ]
null
null
null
2021/RoundC/a.py
Akash671/KickStart
7cf7e572408203c881d56989fb37e6270bd696f0
[ "CC0-1.0" ]
1
2021-03-20T18:55:52.000Z
2021-03-20T18:55:52.000Z
""" author : Akash kumar kickstart username : Akash@1996 """ for t in range(1,int(input())+1): c=0 def printAllKLength(set, k,s): n = len(set) return printAllKLengthRec(set, "", n, k,s) def printAllKLengthRec(set, prefix, n, k,bb): if k == 0 : # bb='bc' pp=prefix[::-1] ...
24.4
63
0.556011
723e109645508938429d2e895ca2780a26245604
543
py
Python
cache/cache/settings.py
wectf/2021
333086b618aae8f95449265b6ec94eb6db4e57a9
[ "MIT" ]
26
2021-06-20T17:01:16.000Z
2022-02-22T03:13:18.000Z
WeCTF/2021/Cache/cache/settings.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
WeCTF/2021/Cache/cache/settings.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
4
2021-06-20T17:08:19.000Z
2021-07-04T08:36:56.000Z
from pathlib import Path BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = 'django-insecure-p*sk-&$*0qb^j3@_b07a38kzus7d^&)-elk6rmoh1&__6yv^bf' DEBUG = True ALLOWED_HOSTS = ["*"] INSTALLED_APPS = [] MIDDLEWARE = [ 'cache.cache_middleware.SimpleMiddleware', ] ROOT_URLCONF = 'cache.urls' TEMPLATES = [] W...
25.857143
81
0.740331
c212cbe28bc0fc8a67d3d84b21d8a23b83b66e05
56
py
Python
python/python_backup/PRAC_PYTHON/swap.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/swap.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/swap.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def info(a,b): t=a a=b b=t print a, print b,
8
15
0.482143
5f034b13d3db927a3ef15555bf4426c5a9972ac2
1,087
py
Python
projects/visualize/tests/py_backend_connection_test/send_data.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
projects/visualize/tests/py_backend_connection_test/send_data.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
projects/visualize/tests/py_backend_connection_test/send_data.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
import time import socketio import os print("backend alive") # standard Python sio = socketio.Client() # asyncio asio = socketio.AsyncClient() # Event handler @sio.on('*') def catch_all(event, sid, data): pass @sio.on('*') async def catch_all(event, sid, data): pass @sio.event def connect(): print("...
17.532258
77
0.628335
a0ae437aa4942d65f81abd8cae2d072a4672ccd0
1,453
py
Python
Python/Courses/Object-Oriented-Programming.Python-Engineer/02-Function-in-Classes.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Object-Oriented-Programming.Python-Engineer/02-Function-in-Classes.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Object-Oriented-Programming.Python-Engineer/02-Function-in-Classes.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
# class class SoftwareEngineer: # class attributes alias = "Keyboard Magician" def __init__(self, name, age, level, salary): # instance attributes self.name = name self.age = age self.level = level self.salary = salary # instance method def code(self): ...
23.063492
73
0.626979
263821bcaddc9f8495dbb477b4c91b5cf6f2d6eb
107
py
Python
src/onegov/swissvotes/theme/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/theme/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/theme/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.swissvotes.theme.swissvotes_theme import SwissvotesTheme __all__ = ( 'SwissvotesTheme', )
17.833333
68
0.785047