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
8c12b37df68928cfc6fff1623121faced82763e3
1,625
py
Python
src/sft/client.py
huykingsofm/FileTransmitter
f0f8cd0d6f941903bb8c42291a81b711055fcb1a
[ "MIT" ]
1
2020-08-28T19:06:13.000Z
2020-08-28T19:06:13.000Z
src/sft/client.py
huykingsofm/sft
f0f8cd0d6f941903bb8c42291a81b711055fcb1a
[ "MIT" ]
null
null
null
src/sft/client.py
huykingsofm/sft
f0f8cd0d6f941903bb8c42291a81b711055fcb1a
[ "MIT" ]
null
null
null
from hks_pylib.logger import Display from hks_pylib.logger import LoggerGenerator from hks_pylib.logger.standard import StdUsers from hks_pylib.logger import InvisibleLoggerGenerator from hks_pylib.cryptography.ciphers.hkscipher import HKSCipher from csbuilder.client import ClientResponser from sft.protocol.sender im...
34.574468
79
0.637538
8c3b16079cadc2110b9a1b9615326af1f0093dc7
2,182
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex01_towers_of_hanoi.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex01_towers_of_hanoi.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex01_towers_of_hanoi.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden from ch07_recursion_advanced.solutions.ex01_tower import Tower def solve_tower_of_hanoi(n): print("Tower Of Hanoi", n) move_tower(n, 'A', 'B', 'C') def move_tower(n, source, helper, destination): if n == 1: ...
27.974359
76
0.641155
4fba6105ff8e20028a2d4db261277a7427827d15
2,390
py
Python
src/test/tests/simulation/interleave.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/simulation/interleave.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/simulation/interleave.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: interleave.py # # Tests: libsim - connecting to simulation and retrieving data from it. # # Programmer: Kathleen Biagas # Date: June 17, 2014 # # Modifications: # # ------------------------...
27.790698
78
0.581172
8c9a9950f17a3a2068794eac3783ba02e496b843
2,001
py
Python
NeuralNet/Oli/trainCNN.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
6
2017-04-12T14:05:19.000Z
2021-01-29T11:23:50.000Z
NeuralNet/Oli/trainCNN.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
NeuralNet/Oli/trainCNN.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
from keras.layers import Dense, Dropout, Conv2D, MaxPooling2D, Flatten from keras.models import Sequential from keras.utils import plot_model from NeuralNet.Oli.libs.ProcessingPipeline import ProcessingPipeline from NeuralNet.Oli.libs.Preprocessor import * # __________Configuration__________# # Path to folder which c...
40.02
110
0.769615
50e8001e2c7d6b686d6f89b47b79df08ed0a0bd9
25
py
Python
FakeRobot/__init__.py
SConaway/py-FakeRobot
c27a9da922ab8402a46d1718047c9d36025bbbe5
[ "MIT" ]
1
2021-04-21T17:13:49.000Z
2021-04-21T17:13:49.000Z
FakeRobot/__init__.py
SConaway/py-FakeRobot
c27a9da922ab8402a46d1718047c9d36025bbbe5
[ "MIT" ]
null
null
null
FakeRobot/__init__.py
SConaway/py-FakeRobot
c27a9da922ab8402a46d1718047c9d36025bbbe5
[ "MIT" ]
null
null
null
from .FakeRobot import *
12.5
24
0.76
d73c642f41aab283f2917fcb040211719bb8629c
13,927
py
Python
research/cv/LightCNN/eval_blufr.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/LightCNN/eval_blufr.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/LightCNN/eval_blufr.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.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...
34.134804
106
0.640554
ad1c0ed5e4cca3b28e72968d11abb79f6e2965b5
581
py
Python
Packs/FeedTalos/Integrations/FeedTalos/FeedTalos_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/FeedTalos/Integrations/FeedTalos/FeedTalos_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/FeedTalos/Integrations/FeedTalos/FeedTalos_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from FeedTalos import Client URL = "https://talosintelligence.com/documents/ip-blacklist" def test_build_iterator(requests_mock): with open('test_data/FeedTalos_mock.txt', 'r') as file: response = file.read() requests_mock.get(URL, text=response) expected_ipv4 = '91.212.135.158' client = Cli...
29.05
99
0.688468
d15b19357e7ce645097fe6603d43e47f3decd9c2
555
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_3_List/61. return a list containing all the numbers within the start and end ranges.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_3_List/61. return a list containing all the numbers within the start and end ranges.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_3_List/61. return a list containing all the numbers within the start and end ranges.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a function that accepts two arguments - start_of_range and end_of_range , and returns a list containing all the numbers inclusive to that range. Examples: inclusive_list(1, 5) - [1,2,3,4,5] inclusive_list(10,5) - [10,9,8,7,6,5] """ def inclusive_list(start, end): lst1 = [] lst2 = [] if start ...
21.346154
80
0.567568
0f110df4eb2e24d21faf8a0dd4c07393ac18f77b
1,474
py
Python
MB_value_calcutator.py
ShubhamD32/pythonListMemoryCalculator
8f3cd2e812ec517baaf37b1bc744ed52dcc57cd4
[ "Apache-2.0" ]
1
2021-02-06T08:10:29.000Z
2021-02-06T08:10:29.000Z
MB_value_calcutator.py
ShubhamD32/pythonListMemoryCalculator
8f3cd2e812ec517baaf37b1bc744ed52dcc57cd4
[ "Apache-2.0" ]
null
null
null
MB_value_calcutator.py
ShubhamD32/pythonListMemoryCalculator
8f3cd2e812ec517baaf37b1bc744ed52dcc57cd4
[ "Apache-2.0" ]
null
null
null
#Conversion factor -> 1024 MB = 1 GB import re def get_first_nbr_from_str(input_str): ''' This function was sourced from StackOverflow. ''' if not input_str and not isinstance(input_str, str): return 0 out_number = '' for ele in input_str: if (ele == '.' and '.' not in out_num...
20.472222
67
0.640434
0f2b083a98701da338113afb8cca84a32a9889e1
606
py
Python
___Python/Thomas/pycurs_180625/p01_kennenlernen/my_pycurse_utilities.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Thomas/pycurs_180625/p01_kennenlernen/my_pycurse_utilities.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Thomas/pycurs_180625/p01_kennenlernen/my_pycurse_utilities.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
from datetime import date # Funktion alter mit einem Parameter geburtsdatum def alter(geburtsdatum): heute = date.today() jahre = heute.year-geburtsdatum.year # Pos 0 Pos 1 Pos 2 Pos 3 if (geburtsdatum.month, geburtsdatum.day) >= (heute.month, heute.day): ...
35.647059
140
0.643564
7e47326f036d91b9b3c3f496d211730a7e6f6739
444
py
Python
INBa/2015/SHEMYAKIN_A_V/task_2_31.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/SHEMYAKIN_A_V/task_2_31.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/SHEMYAKIN_A_V/task_2_31.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 2. Вариант 31. # Напишите программу, которая будет выводить на экран наиболее понравившееся вам высказывание, автором которого является Иоанн Златоуст. Не забудьте о том, что автор должен быть упомянут на отдельной строке. # Shemyakin A. V. # 14.03.2016 print ("Лучше хлеб с солью в покое и без печали, чем множ...
55.5
207
0.740991
0e7bb587dd4d419b93f9e6c329f0cfe758f77c5f
4,806
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/radical.utils-0.7.7-py2.7.egg/radical/utils/misc.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/radical.utils-0.7.7-py2.7.egg/radical/utils/misc.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/radical.utils-0.7.7-py2.7.egg/radical/utils/misc.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import os import regex import pymongo import url as ruu # ------------------------------------------------------------------------------ # def split_dburl (dburl, default_dburl=None) : """ we split the url into the base mongodb URL, and the path element, whose first element is the database name, and the...
27.780347
86
0.542863
70ec21f9801cd759d0cd84f49928d0b8f0fb6d33
841
py
Python
stock/SinaStock.py
mamenglong/StockFund
e80d8a185c37023c3e7849a1b7b03d81a165af6f
[ "Apache-2.0" ]
null
null
null
stock/SinaStock.py
mamenglong/StockFund
e80d8a185c37023c3e7849a1b7b03d81a165af6f
[ "Apache-2.0" ]
null
null
null
stock/SinaStock.py
mamenglong/StockFund
e80d8a185c37023c3e7849a1b7b03d81a165af6f
[ "Apache-2.0" ]
null
null
null
from stock.StockInterface import StockInterface class SinaStock(StockInterface): def getBaseUrl(self): return "http://hq.sinajs.cn/list={}" def formatResultData(self, result): ##http://hq.sinajs.cn/list=sh601006 ##var hq_str_sh601006="大秦铁路,7.020,7.010,6.950,7.030,6.920,6.950,6.960,23...
44.263158
255
0.611177
1db36bf50eb39278a5aa61f6d757eb09fa730e3f
235
py
Python
autojail/utils/intervall_arithmetic.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/utils/intervall_arithmetic.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/utils/intervall_arithmetic.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
from typing import Any, Tuple def get_overlap(a: Tuple[Any, Any], b: Tuple[Any, Any]) -> int: """Calculate the overlab between the two open intervalls [a0, a1[ and [b0, b1[""" return max(0, min(a[1], b[1]) - max(a[0], b[0]))
33.571429
85
0.621277
1db588a666dbcca42a28fcfff7fffd12553a824d
10,882
py
Python
Channelpedia/ChannelpediaToNeuroML2.py
OpenSourceBrain/BlueBrainProjectShowcase
2cd8aa77342576c1a871f5d500d791f927444913
[ "MIT" ]
26
2015-08-17T19:30:52.000Z
2021-03-12T20:39:19.000Z
Channelpedia/ChannelpediaToNeuroML2.py
OpenSourceBrain/BlueBrainProjectShowcase
2cd8aa77342576c1a871f5d500d791f927444913
[ "MIT" ]
9
2015-01-15T20:16:08.000Z
2017-05-18T20:53:52.000Z
Channelpedia/ChannelpediaToNeuroML2.py
OpenSourceBrain/BlueBrainProjectShowcase
2cd8aa77342576c1a871f5d500d791f927444913
[ "MIT" ]
18
2015-08-17T19:30:56.000Z
2022-03-04T06:01:30.000Z
import neuroml import neuroml.writers as writers import lems.api as lems import xml.etree.ElementTree as ET # This is available at https://github.com/OpenSourceBrain/OSB_API import osb.metadata import osb.resources import sys def channelpedia_xml_to_neuroml2(cpd_xml, nml2_file_name, unknowns=""): in...
43.354582
162
0.550358
381923e453025c35951693521cd2d021828cb6bc
4,570
py
Python
assets/udk/python/samples/oomerge.py
brnnnfx/openoffice-org
8b1023c59fd9c7a58d108bb0b01dd1f8884c9163
[ "Apache-2.0" ]
5
2019-10-14T23:00:48.000Z
2021-11-06T22:21:06.000Z
assets/udk/python/samples/oomerge.py
brnnnfx/openoffice-org
8b1023c59fd9c7a58d108bb0b01dd1f8884c9163
[ "Apache-2.0" ]
31
2020-11-14T09:27:16.000Z
2022-03-08T17:09:15.000Z
assets/udk/python/samples/oomerge.py
brnnnfx/openoffice-org
8b1023c59fd9c7a58d108bb0b01dd1f8884c9163
[ "Apache-2.0" ]
15
2020-11-10T17:04:25.000Z
2022-01-31T12:12:48.000Z
import getopt, sys import uno import os from os.path import isfile, join from os import getcwd from unohelper import systemPathToFileUrl, absolutize from com.sun.star.beans import PropertyValue from com.sun.star.style.BreakType import PAGE_BEFORE, PAGE_AFTER from com.sun.star.uno import Exception as UnoException, Run...
41.171171
99
0.580088
382a9e79ff5f84df7c45a974ca513497450807db
93
py
Python
stphohapp/apps.py
itechtian/stphoh
5a778deece3a690e0ec92c799b0b87ba26f1892c
[ "MIT" ]
null
null
null
stphohapp/apps.py
itechtian/stphoh
5a778deece3a690e0ec92c799b0b87ba26f1892c
[ "MIT" ]
null
null
null
stphohapp/apps.py
itechtian/stphoh
5a778deece3a690e0ec92c799b0b87ba26f1892c
[ "MIT" ]
null
null
null
from django.apps import AppConfig class StphohappConfig(AppConfig): name = 'stphohapp'
15.5
33
0.763441
69abf9015fd90ba715e8533bb08ee37135da29cb
4,793
py
Python
src/transformers/tokenization_pegasus_fast.py
suliuzh/transformers
f34372a9ff99f6bc8619ac83dc07f7afe6b92141
[ "Apache-2.0" ]
12
2021-06-05T03:51:23.000Z
2022-03-05T05:09:41.000Z
src/transformers/tokenization_pegasus_fast.py
suliuzh/transformers
f34372a9ff99f6bc8619ac83dc07f7afe6b92141
[ "Apache-2.0" ]
1
2021-10-20T02:25:36.000Z
2021-10-20T02:25:36.000Z
src/transformers/tokenization_pegasus_fast.py
suliuzh/transformers
f34372a9ff99f6bc8619ac83dc07f7afe6b92141
[ "Apache-2.0" ]
2
2021-03-27T16:46:26.000Z
2021-12-24T00:33:28.000Z
# coding=utf-8 # Copyright 2020 Google and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
40.277311
117
0.685792
69cd04dc1ff98263d0f1da7df4a3920b4463564d
4,937
py
Python
test/test_npu/test_network_ops/test_masked_fill_range.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_masked_fill_range.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_masked_fill_range.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...
48.401961
102
0.508608
2a25f060bcab6dca91f7283acd42c74a7cb71032
2,549
py
Python
tests/api/test_user.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/api/test_user.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/api/test_user.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
def test_organization_invitation_list(client, seeder, utils): _, admin_unit_id = seeder.setup_base(log_in=False) invitation_id = seeder.create_admin_unit_invitation(admin_unit_id) seeder.create_user("invited@test.de") utils.login("invited@test.de") url = utils.get_url("api_v1_user_organization_inv...
38.621212
83
0.74696
2a7baf8b41321e13a7da25f21576073e2597df6e
205
py
Python
Problems/Dynamic Programming/Easy/BytelandianGoldCoins/byte_gold_coins.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Dynamic Programming/Easy/BytelandianGoldCoins/byte_gold_coins.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Dynamic Programming/Easy/BytelandianGoldCoins/byte_gold_coins.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
def byte_gold_coins(byte_coin: int) -> int: dp = [i for i in range(byte_coin + 1)] for i in range(byte_coin + 1): dp[i] = max(dp[i], dp[i // 2] + dp[i // 3] + dp[i // 4]) return dp[-1]
34.166667
64
0.526829
2a8baafc8dd77198d32a8c8cd52bfca3f6c00f0f
576
py
Python
exercises/de/solution_03_10_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/solution_03_10_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/solution_03_10_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
from spacy.lang.de import German from spacy.tokens import Doc nlp = German() # Definiere die Getter-Funktion def get_has_number(doc): # Gebe zurück, ob einer der Tokens im Doc True für token.like_num zurückgibt return any(token.like_num for token in doc) # Registriere die Doc-Erweiterung "has_number" mit Ge...
32
81
0.779514
e21378a3a68ffeb003d048f9c12f10b3759e9ab5
967
py
Python
template/python-application/pa/python_application.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
null
null
null
template/python-application/pa/python_application.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
1
2022-03-02T10:43:58.000Z
2022-03-02T10:43:58.000Z
template/python-application/pa/python_application.py
gbesancon/projects
7a9da629dddcf21fbe5c043d86b00036f80cbe14
[ "MIT" ]
null
null
null
""" Python application """ import argparse class PythonApplication: """ Python application """ def __init__(self): """ Initialize """ print("Python application") # pylint: disable=R0201 def __parse_args(self, args): """ Parse CLI argument ...
21.021739
60
0.550155
17e0c13d8652526c41fe33af41eeeb64f09cac88
4,143
py
Python
Wp_Adning_Advertising_Shell_Upload-main/adning.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Wp_Adning_Advertising_Shell_Upload-main/adning.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Wp_Adning_Advertising_Shell_Upload-main/adning.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# -*- coding: utf-8 -* #!/usr/bin/python ##################################### import requests, re, urllib2, os, sys, codecs, random from multiprocessing.dummy import Pool from time import time as timer import time import json from zlib import compress, decompress from platfo...
37.324324
625
0.550084
353a4e5fe327fa56c2fd00222abf056ee4e33379
639
py
Python
exercises/es/solution_04_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/solution_04_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/solution_04_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import json from spacy.matcher import Matcher from spacy.lang.es import Spanish with open("exercises/es/adidas.json", encoding="utf8") as f: TEXTS = json.loads(f.read()) nlp = Spanish() matcher = Matcher(nlp.vocab) # Dos tokens que en minúsculas encuentran "adidas" y "zx" pattern1 = [{"LOWER": "adidas"}, {"LOWER...
30.428571
68
0.704225
101ce02523687cd8d26fdd15cf7df0731c7d6708
2,582
py
Python
source/lib/ptp/src/logger.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2018-04-07T14:56:12.000Z
2020-03-26T12:06:51.000Z
source/lib/ptp/src/logger.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2018-04-07T14:55:31.000Z
2018-04-25T07:43:29.000Z
source/lib/ptp/src/logger.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2019-09-06T22:31:43.000Z
2020-03-26T12:06:51.000Z
import datetime from pathlib import Path class Logger: def __init__(self): self.development = False self.__logging = False self.__logFile = '' def activate(self, path, name, overwrite_sensitive=True): """ Activate the action log. Required are a path and a name for the ...
33.532468
120
0.524787
10aaf4cd7ac6e62aff87c2160646073bd7239023
1,978
py
Python
main.py
DevAdamErnold/DashboardErnold
cec824467119e41ce40f9e8839c0c7567f351168
[ "MIT" ]
null
null
null
main.py
DevAdamErnold/DashboardErnold
cec824467119e41ce40f9e8839c0c7567f351168
[ "MIT" ]
1
2022-02-04T13:26:05.000Z
2022-02-04T13:26:05.000Z
main.py
DevAdamErnold/DashboardErnold
cec824467119e41ce40f9e8839c0c7567f351168
[ "MIT" ]
null
null
null
from quart import Quart, redirect, url_for, render_template from quart_discord import DiscordOAuth2Session, requires_authorization, Unauthorized app = Quart(__name__) app.secret_key = b"ttt" app.config["DISCORD_CLIENT_ID"] = 929799004672376902 # Discord client ID. app.config["DISCORD_CLIENT_SECRET"] = "ddx...
30.430769
151
0.574823
d804319a2482ef8a21969a6958dfbb86740b226d
3,938
py
Python
Apps/Model Evaluation/evaluate.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
1
2021-04-13T10:00:46.000Z
2021-04-13T10:00:46.000Z
Apps/Model Evaluation/evaluate.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
null
null
null
Apps/Model Evaluation/evaluate.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
null
null
null
import nltk import pickle import json from nltk import Tree from nltk import ChunkScore import pprint from pprint import pprint as pp from nltk.chunk.api import ChunkParserI from os import listdir from os.path import isfile, join import maxent_chunker import numpy as np from sklearn.model_selection import KFold import ...
29.38806
115
0.58583
d8285b275127473d5d3558c7e9874357ada35fbd
10,030
py
Python
octree.py
VanessaMMH/EDA-B
c15630ed2e1efd8cece65e6e649bbffd8a88eb74
[ "BSD-3-Clause" ]
null
null
null
octree.py
VanessaMMH/EDA-B
c15630ed2e1efd8cece65e6e649bbffd8a88eb74
[ "BSD-3-Clause" ]
null
null
null
octree.py
VanessaMMH/EDA-B
c15630ed2e1efd8cece65e6e649bbffd8a88eb74
[ "BSD-3-Clause" ]
null
null
null
import vtk import random import time colors = vtk.vtkNamedColors() def findAndDraw(): found = [] qt.query(busqueda,found) for i in range(len(found)): sphereSource = vtk.vtkSphereSource() xs = found[i].x ys = found[i].y zs = found[i].z sphereSource.SetCenter(xs, ys, ...
32.885246
118
0.575474
f4fea1ca9766512539589ceae265a01ac57fa023
1,605
py
Python
CodeChef_problems/XYSTR/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
CodeChef_problems/XYSTR/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
CodeChef_problems/XYSTR/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
#Python solution to Codechef problem XYSTR for i in range(int(input())): #for loop to output answer for each of the T test cases(given as first line of input) l=list(input()) #list to store string x=0 #initialised value of max. no. of pairs while(l!=[]): ...
72.954545
134
0.522741
872ebe30edd4699fafc889e2390ddcec703fef61
314
py
Python
1436-destination-city/1436-destination-city.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1436-destination-city/1436-destination-city.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1436-destination-city/1436-destination-city.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
from itertools import chain class Solution: def destCity(self, paths: List[List[str]]) -> str: dest_candidates = [path[1] for path in paths] all_cities = list(chain.from_iterable(paths)) for dest in dest_candidates: if all_cities.count(dest)==1: return dest
34.888889
54
0.630573
872ff168466ee6bf246b84c093ee3090e84890d4
472
py
Python
___Python/Torsten/Python-Kurs/p02_datenstrukturen/m03_anwendungwoerterbuecher.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Torsten/Python-Kurs/p02_datenstrukturen/m03_anwendungwoerterbuecher.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Torsten/Python-Kurs/p02_datenstrukturen/m03_anwendungwoerterbuecher.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
satz = "Unsere Seminare sind anerkannt als Arbeitnehmerweiterbildung (Bildungsurlaub) nach dem AWbG für NRW. Angestellte und Arbeiter/Innen in NRW haben nach dem AWbG Anspruch auf fünf Tage Bildungsurlaub im Jahr." # Häufigkeit von Buchstaben d = {} for zeichen in satz: if zeichen in d: d[zeichen] +=...
33.714286
215
0.694915
873bf1cc8352dcc1fc26957e28629b72271c9923
330
py
Python
Sorting/src/searching/notes/searching_brian.py
tobias-fyi/02_algorithms
ab1a8a07c3560ad66712992e3af906e8fd316fe2
[ "MIT" ]
null
null
null
Sorting/src/searching/notes/searching_brian.py
tobias-fyi/02_algorithms
ab1a8a07c3560ad66712992e3af906e8fd316fe2
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/02_algorithms/Sorting/src/searching/notes/searching_brian.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Algorithms :: Search """ def binary_search(arr, val): left = 0 middle = len(arr) // 2 right = len(arr) - 1 while left < right: if arr[middle] == val: return True elif val < arr[middle]: right = middle - 1 else: left = middle + 1 ret...
16.5
31
0.484848
5ea95062304fcc7a513ceb6d39b9b3c11f184d17
293
py
Python
Python/Courses/Python-Tutorials.Telusko/01.Object-Oriented-Programming/16.03-Method-Overloading.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/01.Object-Oriented-Programming/16.03-Method-Overloading.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/01.Object-Oriented-Programming/16.03-Method-Overloading.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
def sm(a=None, b=None, c=None): if a is not None and a is not None and c is not None: return a + b + c if a is not None and b is not None: return a + b if a is not None: return a return None print(sm()) print(sm(5)) print(sm(5, 6)) print(sm(5, 6, 7))
19.533333
57
0.556314
0da66132ebdcc04f0aad5efb163440c358f29436
202
py
Python
bindings/python/test_add.py
Ozon-test/example-adder
a2033bf1b8da6fa9d8fec3d6164246f530ffc8a9
[ "BSD-2-Clause" ]
null
null
null
bindings/python/test_add.py
Ozon-test/example-adder
a2033bf1b8da6fa9d8fec3d6164246f530ffc8a9
[ "BSD-2-Clause" ]
null
null
null
bindings/python/test_add.py
Ozon-test/example-adder
a2033bf1b8da6fa9d8fec3d6164246f530ffc8a9
[ "BSD-2-Clause" ]
null
null
null
import unittest from libexample_adder import add class TestAdder(unittest.TestCase): def test_adder(self): self.assertEqual(add(4, 3), 7) if __name__ == '__main__': unittest.main()
15.538462
38
0.69802
0de111097b231114d9f53cb920c217afab477ae1
36,963
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/demand/turnflows.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/demand/turnflows.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/demand/turnflows.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
43.181075
157
0.543571
21ad4316156fc7ba7b877f08674db10771e961c5
5,273
py
Python
marsyas-vamp/marsyas/src/marsyas_python/windowing.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/windowing.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/windowing.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # An example of the effect of windowing on spectrum # of two input sine waves. marsyas_util.py contain # helper functions for the compact syntax # for specifying Marsyas networks. This # example also illustrate how Marsyas and matplotlib # can interact from pylab import * import sys from m...
38.772059
119
0.725014
21e598ace7e6f7f5e230adcdc44b1f87800837ff
306
py
Python
exercises/fr/exc_03_14_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/exc_03_14_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/exc_03_14_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import json import spacy nlp = spacy.load("fr_core_news_sm") with open("exercises/fr/tweets.json", encoding="utf8") as f: TEXTS = json.loads(f.read()) # Traite les textes et affiche les adjectifs for text in TEXTS: doc = nlp(text) print([token.text for token in doc if token.pos_ == "ADJ"])
23.538462
63
0.69281
33fdc1922301044a8994a05c30eb92be300ff38e
8,714
py
Python
features/tetris.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
1
2019-04-27T07:28:52.000Z
2019-04-27T07:28:52.000Z
features/tetris.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
null
null
null
features/tetris.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
null
null
null
import threading import time from copy import deepcopy import pygame import game_sound from Score import Score from block import TetrisBlock from features.feature import Feature from field import Field from painter import RGB_Field_Painter, Led_Matrix_Painter from highscorelist import * lock = threading.Lock() tetris_...
37.560345
126
0.632201
d50df44b104c553386fc55d87a36755f929c2dc3
1,118
py
Python
Blatt7/src/script.py
lewis206/Computational_Physics
06ad6126685eaf65f5834bfe70ebd91b33314395
[ "MIT" ]
null
null
null
Blatt7/src/script.py
lewis206/Computational_Physics
06ad6126685eaf65f5834bfe70ebd91b33314395
[ "MIT" ]
null
null
null
Blatt7/src/script.py
lewis206/Computational_Physics
06ad6126685eaf65f5834bfe70ebd91b33314395
[ "MIT" ]
null
null
null
import matplotlib import matplotlib.pyplot as plt import numpy as np from scipy.optimize import curve_fit # Set fontsize larger for plots matplotlib.rcParams.update({"font.size": 20}) a_x, a_y = np.genfromtxt("output/output_a.txt", unpack=True) b_x, b_y = np.genfromtxt("output/output_b.txt", unpack=True) c_x, c_y = n...
29.421053
69
0.687835
1d82e70792a14e76c6c0a9cb8aca6df54306068b
2,874
py
Python
SleekSecurity/layers/plugins/brute/backupdir.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/brute/backupdir.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/brute/backupdir.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # @name: Wascan - Web Application Scanner # @repo: https://github.com/m4ll0k/Wascan # @author: Momo Outaadi (M4ll0k) # @license: See the file 'LICENSE.txt' from os import path from Queue import Queue from threading import Thread from lib.utils.check import * from l...
30.903226
73
0.494433
1d83a591687d85d54d3634a6b46c7e474f8c1510
4,186
py
Python
gym_movie/envs/movie_env.py
hakeemta/gym-movie
cba05190cf08f1ce6698ca9e51fa50a52ddaed84
[ "MIT" ]
null
null
null
gym_movie/envs/movie_env.py
hakeemta/gym-movie
cba05190cf08f1ce6698ca9e51fa50a52ddaed84
[ "MIT" ]
null
null
null
gym_movie/envs/movie_env.py
hakeemta/gym-movie
cba05190cf08f1ce6698ca9e51fa50a52ddaed84
[ "MIT" ]
null
null
null
import gym from gym import error, spaces, utils from gym.utils import seeding import pandas as pd import numpy as np class MovieEnv(gym.Env): metadata = {'render.modes': ['human']} def __init__(self): self.info = {} self._data_dir = 'data' self._fn_movies = f'{self._data_dir ...
32.96063
121
0.616101
d54a034f97932a61758c6db34b27c0c0923dccea
4,680
py
Python
src/onegov/fsi/views/course_event.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/fsi/views/course_event.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/fsi/views/course_event.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Personal, Secret from onegov.core.templates import render_macro from onegov.fsi import FsiApp from onegov.fsi.collections.course_event import CourseEventCollection, \ PastCourseEventCollection from onegov.fsi.forms.course_event import CourseEventForm from onegov.fsi import _ from on...
24.893617
75
0.67265
d56140c42ed28b4d6658bebe341c51a772828ab3
619
py
Python
responder/formats.py
5hirish/responder
1c3ea53e63ede6bd31d76493577250a6105814c4
[ "Apache-2.0" ]
null
null
null
responder/formats.py
5hirish/responder
1c3ea53e63ede6bd31d76493577250a6105814c4
[ "Apache-2.0" ]
null
null
null
responder/formats.py
5hirish/responder
1c3ea53e63ede6bd31d76493577250a6105814c4
[ "Apache-2.0" ]
null
null
null
import yaml import json async def format_form(r, encode=False): if not encode: return await r._starlette.form() def format_yaml(r, encode=False): if encode: r.headers.update({"Content-Type": "application/x-yaml"}) return yaml.dump(r.media) else: return yaml.safe_load(r.co...
22.107143
74
0.647819
634b13c382e27add4c3000a0218546e37761e32d
7,268
py
Python
python_experiments/paper_figures/tkde/tkde_draw_varying_num_threads.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/paper_figures/tkde/tkde_draw_varying_num_threads.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/paper_figures/tkde/tkde_draw_varying_num_threads.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
import matplotlib.pyplot as plt from data_analysis.parallel_statistics.generate_parallel_speedup_md import * relative_data_root_dir_path = '../..' vldbj_mcap_tag = 'MCAP' def get_name_dict(): with open('data_names.json') as ifs: return eval(''.join(ifs.readlines())) def draw_figures(): data_set_ls...
44.864198
120
0.598789
896e9ed2691d107cc1985cf2311d3c4431b87cf9
9,682
py
Python
research/cv/SRGAN/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/SRGAN/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/SRGAN/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.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...
43.223214
104
0.644392
7fb9759f1fd34a1989029fefdb7f0b2d404a7628
3,123
py
Python
test/test_npu/test_network_ops/test_fill_diagonal.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_fill_diagonal.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_fill_diagonal.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...
37.178571
76
0.665706
f6fb5313c2d71d862b3a9be84a03265c51e11de4
3,154
py
Python
WiSe-2122/Sonderaufgaben/pizzaparty.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
WiSe-2122/Sonderaufgaben/pizzaparty.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
WiSe-2122/Sonderaufgaben/pizzaparty.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# # # # Sonderaufgabe # # # # # Entscheiden Sie sich unter ökonomischen Gesichtspunkten: # Kaufen Sie 3 Pizzen mit einem 26er Durchmesser # oder lieber 2 Pizzen mit einem 34er Durchmesser? # Gehen Sie bei der Betrachtung davon aus, dass beide Angebote # insgesamt 20.49€ kosten. Pi = 3.14159 # Globale Variable Pi zur...
58.407407
129
0.776791
63f7a570d4b98418a3ff73f516632d78e63e82a2
1,848
py
Python
model/generator.py
isadrtdinov/StarGAN
bdb33310817854802ebc6356b28303616f23060a
[ "MIT" ]
null
null
null
model/generator.py
isadrtdinov/StarGAN
bdb33310817854802ebc6356b28303616f23060a
[ "MIT" ]
null
null
null
model/generator.py
isadrtdinov/StarGAN
bdb33310817854802ebc6356b28303616f23060a
[ "MIT" ]
null
null
null
import math import torch from torch import nn from model.layers import DownsampleBlock, UpsampleBlock class Generator(nn.Module): """ U-Net like generator network """ def __init__(self, img_channels=3, cond_channels=5, conv_channels=32, num_blocks=2, kernel=5, neg_slope=0.1): ...
34.867925
91
0.608225
d62925e7cab8ea6516a5b98fc1766ae5ec5dc103
23,665
py
Python
Packs/AzureSQLManagement/Integrations/AzureSQLManagement/AzureSQLManagement.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
Packs/AzureSQLManagement/Integrations/AzureSQLManagement/AzureSQLManagement.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
Packs/AzureSQLManagement/Integrations/AzureSQLManagement/AzureSQLManagement.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * import urllib3 import copy # Disable insecure warnings urllib3.disable_warnings() ''' CONSTANTS ''' DATE_FORMAT = '%Y-%m-%dT%H:%M:%SZ' API_VERSION = '2019-06-01-preview' ''' CLIENT CLASS ''' class Client: """Cl...
46.676529
130
0.624297
7f03f86f9778b6531bc1c83e8008c84bd51ef0c4
821
py
Python
library/TestApp.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
1
2017-08-09T23:15:15.000Z
2017-08-09T23:15:15.000Z
library/TestApp.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
null
null
null
library/TestApp.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
null
null
null
from AppCore import * import unittest from PySide.QtGui import * _instance = None print __file__ class BaseTestCase(unittest.TestCase): def setUp(self): super(BaseTestCase, self).setUp() global _instance if _instance is None: _instance = QApplication([]) self.app = _ins...
26.483871
72
0.63581
14144947c9eddf8dd9ed6c729c12563c381596b1
176
py
Python
packages/watchmen-inquiry-surface/src/watchmen_inquiry_surface/main.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-inquiry-surface/src/watchmen_inquiry_surface/main.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-inquiry-surface/src/watchmen_inquiry_surface/main.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import List from fastapi import APIRouter from .data import data_router def get_inquiry_surface_routers() -> List[APIRouter]: return [ data_router.router ]
14.666667
53
0.778409
0d19a99cc1930967ab9ed91b7216a99ef458fc9d
777
py
Python
elements/python/6/13/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/6/13/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/6/13/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import random def naive(a, pi): b = [None]*len(a) for i, j in enumerate(pi): b[j] = a[i] return b def permute(a, pi): n = len(a) for i in xrange(n): t = a[i] j = pi[i] while j > i: a[j], t = t, a[j] pi[j], j = i, pi[j] a[i] = t de...
16.891304
56
0.472329
b4d88e1cc0d6df0f6abd25724fffa81b90d15b6d
470
py
Python
source/pkgsrc/devel/py-test-fixture-config/patches/patch-common_setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/py-test-fixture-config/patches/patch-common_setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/py-test-fixture-config/patches/patch-common_setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-common_setup.py,v 1.1 2018/03/24 07:14:59 adam Exp $ Do not depend on setuptools-git. --- common_setup.py.orig 2018-03-24 07:08:04.000000000 +0000 +++ common_setup.py @@ -72,6 +72,5 @@ def common_setup(src_dir): license='MIT license', platforms=['unix', 'linux'], ...
33.571429
67
0.597872
25a6da8092f173f30ffe726d836119893058b032
62
py
Python
src/aijack/defense/setoria/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:44.000Z
2022-03-17T21:17:44.000Z
src/aijack/defense/setoria/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
null
null
null
src/aijack/defense/setoria/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:46.000Z
2022-03-17T21:17:46.000Z
from .setoria_client import SetoriaFedAvgClient # noqa: F401
31
61
0.822581
e2195dd6ce4158d9e0fc9602a783de29c2b8ecfc
42
py
Python
python/coding_dojang/practice_package.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/coding_dojang/practice_package.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/coding_dojang/practice_package.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from database import * connect(':memory')
14
22
0.738095
e219791774b2ac285666f2b8bf5ce7bf5d4ed40f
1,402
py
Python
day50/main.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day50/main.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day50/main.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
import pandas as pd pd.options.display.float_format = '{:,.2f}'.format df = pd.read_csv("day50/salaries_by_college_major.csv") clean_df = df.dropna() print(clean_df.columns) max_starting_sal = clean_df["Starting Median Salary"].max() max_starting_sal_id = clean_df["Starting Median Salary"].idxmax() max_starting_...
31.155556
118
0.783167
2c971452eed4c4401195e3241b38ba619768f596
1,305
py
Python
tests/SystemMeterTest.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
tests/SystemMeterTest.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
tests/SystemMeterTest.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
import unittest import time from measure.system.CpuSystemMeter import CpuSystemMeter from measure.system.TimeSystemMeter import TimeSystemMeter from measure.system.MemorySystemMeter import MemorySystemMeter class SystemMeterTest(unittest.TestCase): def __init__(self, *args, **kwargs): super(SystemMeterTe...
26.1
62
0.613793
2cb041d4dec85d424474640a8d53fdef28e9c481
536
py
Python
Google_Trends_Keyword-main/trends.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Google_Trends_Keyword-main/trends.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Google_Trends_Keyword-main/trends.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#Google Trends Keyword # Official Blog : https://www.blog-gan.org ############################## import requests from time import time as timer import time from re import findall as reg year = time.strftime("%d/%m/%y") print('\033[31mGoogle Trends Keyword' + ' ' + year) test = requests.get('https://trends.google.c...
31.529412
90
0.652985
392efc82961adf2b2dc6a6d93a5feb842d8b09b3
181
py
Python
exercises/de/exc_01_02_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/de/exc_01_02_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/de/exc_01_02_03.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
# Importiere spaCy import ____ # Erstelle ein spanisches nlp-Objekt nlp = ____ # Verarbeite einen Text doc = nlp("¿Cómo estás?") # Drucke den Text des Dokuments print(____.text)
15.083333
36
0.740331
1a79eca8f92e3ddbc6f64a1b7b1c98554ee91048
65
py
Python
Visual Studio Product Team/Official Visual Studio 2010 Samples for C# 4.0/[C#]-Official Visual Studio 2010 Samples for C# 4.0/Visual C# 2010 - IronPython Sample ReadMe/C#/helloworld.py
zzgchina888/msdn-code-gallery-microsoft
21cb9b6bc0da3b234c5854ecac449cb3bd261f29
[ "MIT" ]
2
2022-01-21T01:40:58.000Z
2022-01-21T01:41:10.000Z
Visual Studio Product Team/Official Visual Studio 2010 Samples for C# 4.0/[C#]-Official Visual Studio 2010 Samples for C# 4.0/Visual C# 2010 - IronPython Sample ReadMe/C#/helloworld.py
zzgchina888/msdn-code-gallery-microsoft
21cb9b6bc0da3b234c5854ecac449cb3bd261f29
[ "MIT" ]
1
2022-03-15T04:21:41.000Z
2022-03-15T04:21:41.000Z
Visual Studio Product Team/Official Visual Studio 2010 Samples for C# 4.0/[C#]-Official Visual Studio 2010 Samples for C# 4.0/Visual C# 2010 - IronPython Sample ReadMe/C#/helloworld.py
zzgchina888/msdn-code-gallery-microsoft
21cb9b6bc0da3b234c5854ecac449cb3bd261f29
[ "MIT" ]
null
null
null
def welcome(name): return "Hello '" + name + "' from IronPython"
32.5
46
0.661538
1abb4fcb4907e9d094058219f0455113adfc4216
627
py
Python
api/utils/push_utils.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
2
2021-03-23T20:32:38.000Z
2021-04-21T11:20:12.000Z
api/utils/push_utils.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
4
2021-04-19T11:00:55.000Z
2021-04-20T08:21:48.000Z
api/utils/push_utils.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Corona-Info-App # Update Measures from NINA-App # © 2020 Tobias Höpp from main import db def push(district_id, reasons): DevicesRequest = "SELECT dv.token FROM devices dv WHERE dv.provider = :provider AND dv.id IN (SELECT dhd.device_id FROM deviceHasDistrict dhd WHERE dhd.district_id = :...
34.833333
184
0.695375
b3bacc91f001712f2d1e9e43d66738865f295d11
1,177
py
Python
saku/auction/models.py
Mehdi-MosTafavi/Saku-Backend
348a1a676ffc8ddd9077f8c94733c5f6dce98fbd
[ "MIT" ]
null
null
null
saku/auction/models.py
Mehdi-MosTafavi/Saku-Backend
348a1a676ffc8ddd9077f8c94733c5f6dce98fbd
[ "MIT" ]
null
null
null
saku/auction/models.py
Mehdi-MosTafavi/Saku-Backend
348a1a676ffc8ddd9077f8c94733c5f6dce98fbd
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models class Category(models.Model): class Meta: db_table = "saku_category" name = models.CharField(max_length=20) def __str__(self): return self.name class Tags(models.Model): class Meta: db_table = "saku_Ta...
25.586957
77
0.697536
b3bd4195bbb659daff64889ee67af84bbc37e4b1
275
py
Python
05.Greedy/HG/B14916.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
05.Greedy/HG/B14916.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
05.Greedy/HG/B14916.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
n = int(input()) def sol(price): cnt = 0 while price > 0: if price % 5 == 0: print(price // 5 + cnt) return cnt+=1 price -= 2 if price == 0: print(cnt) else: print(-1) return sol(n)
16.176471
35
0.4
ff1db39766b4e93b4116e60dcc1618e333dd5e12
440
py
Python
comments/api/urls.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
comments/api/urls.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
comments/api/urls.py
alien3211/lom-web
c7971238b0dd043854c911a0b9126b84d7deed4a
[ "MIT" ]
null
null
null
from django.conf.urls import url from .views import ( CommentListAPIView, CommentDetailAPIView, CommentCreateAPIVIew, ) urlpatterns = [ url(r'^$', CommentListAPIView.as_view(), name='list'), url(r'^create/$', CommentCreateAPIVIew.as_view(), name='create'), url(r'^(?P<pk>\d+)/$', CommentDetailA...
29.333333
83
0.661364
2fb93a9e78f6e5b8f8caa9fa11682ac6fb4a3e8c
2,938
py
Python
servers/docker-python/test/spider_test.py
veaba/ncov
6019f6b90761fd39363f8a7182ffcee22b9cb7ed
[ "MIT" ]
288
2020-01-21T06:12:03.000Z
2022-01-16T08:03:13.000Z
servers/docker-python/test/spider_test.py
kayan12/ncov
90f828208d1eea7cc20e933da41638f328e0411d
[ "MIT" ]
26
2020-01-20T05:07:31.000Z
2022-03-12T00:24:56.000Z
servers/docker-python/test/spider_test.py
kayan12/ncov
90f828208d1eea7cc20e933da41638f328e0411d
[ "MIT" ]
48
2020-01-22T09:05:59.000Z
2022-01-16T08:03:11.000Z
# todo爬取关于疫情的微博 # todo 权威媒体:央视微博、人民日报、环球网、澎湃新闻 # todo 省市级 建委: import re import math import time from selenium import webdriver from config import CCTV_WEB_URL, KAFKA_NEWS_TOPIC from producer import kafka_producer # from multiprocessing.pool import ThreadPool # 不要线程了 # 爬取央视网全部页面 # todo 如果入参是setInterval=2,则每x 分钟爬取前两页 d...
33.011236
85
0.624234
2fc0acb283e0a058ad3115608bdb1a6bee6fd0d6
2,245
py
Python
examples/language_model/t5/convert.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/language_model/t5/convert.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/language_model/t5/convert.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.014706
80
0.65167
ffb6c1d7db889084078ef09d8d67b05a182ef6ad
83
py
Python
apps/node/apps.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
18
2020-10-09T15:43:26.000Z
2022-03-15T08:12:47.000Z
apps/node/apps.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
139
2020-02-11T17:17:59.000Z
2021-06-09T17:40:54.000Z
back-end/vp/node/apps.py
matthew-t-smith/visual-programming
8e8c6edafd98c42ad24967b8e0f1ee97be81819b
[ "MIT" ]
5
2021-02-03T04:59:26.000Z
2022-03-15T08:12:49.000Z
from django.apps import AppConfig class NodeConfig(AppConfig): name = 'node'
13.833333
33
0.73494
4497f19f522222407eaa4ade2b8d1d7e6aad8bea
486
py
Python
pacman-arch/test/pacman/tests/upgrade013.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/upgrade013.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/upgrade013.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Install two packages with a conflicting file" p1 = pmpkg("dummy") p1.files = ["bin/dummy", "usr/man/man1/dummy.1", "usr/common"] p2 = pmpkg("foobar") p2.files = ["bin/foobar", "usr/man/man1/foobar.1", "usr/common"] for p in p1, p2: self.addpkg(p) ...
23.142857
65
0.598765
a66540e3b395a92171d3e3c61ac509a444033718
88
py
Python
REWORK/src/py/update.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
9
2021-06-22T14:01:24.000Z
2022-03-11T08:59:38.000Z
REWORK/src/py/update.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
6
2021-01-15T09:12:11.000Z
2021-05-25T08:12:10.000Z
REWORK/src/py/update.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
1
2021-12-27T18:58:53.000Z
2021-12-27T18:58:53.000Z
class Update: def checkUpdate(): newUpdate = False print(newUpdate)
17.6
25
0.602273
47301d02ac6bcae3da1d2b565105f18747dfbbd6
9,115
py
Python
python/tutlibs/feature.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
1
2021-11-22T10:32:49.000Z
2021-11-22T10:32:49.000Z
python/tutlibs/feature.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
1
2021-12-09T14:39:51.000Z
2021-12-09T14:39:51.000Z
python/tutlibs/feature.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
null
null
null
import numpy as np import itertools from .nns import radius_nearest_neighbors, k_nearest_neighbors from .operator import gather, dot, cross, normalize, angle, square_distance def pair_feature(xyz:np.ndarray, normals:np.ndarray, pair_idxs:np.ndarray): """Compute pair features. Args: xyz: xyz coords (M...
39.458874
154
0.574438
754551f995d427c9ecbbf1a6a1c67bd90ade0375
308
py
Python
pyind/util.py
chankane/pyind
742bc671d3552d778024662867b64e32ae9bca9d
[ "MIT" ]
null
null
null
pyind/util.py
chankane/pyind
742bc671d3552d778024662867b64e32ae9bca9d
[ "MIT" ]
null
null
null
pyind/util.py
chankane/pyind
742bc671d3552d778024662867b64e32ae9bca9d
[ "MIT" ]
null
null
null
def get_args(func, exclusion=()): args = list( func.__code__.co_varnames[:func.__code__.co_argcount] ) for e in exclusion: args.remove(e) return tuple(args) def cre_args(func, conf, exclusion=()): return tuple([ conf[e] for e in get_args(func, exclusion) ])
22
61
0.616883
3434e0ad15fbf0705facba873830b15392b737fd
5,836
py
Python
f5-bigip/2020_5902_f5_hsqldb_rce.py
hex0wn/learn-java-bug
bf191905ba4c284d90e8eb51ec2806ce5b9139dd
[ "MIT" ]
61
2020-07-02T04:30:23.000Z
2022-03-23T10:11:17.000Z
f5-bigip/2020_5902_f5_hsqldb_rce.py
hex0wn/learn-java-bug
bf191905ba4c284d90e8eb51ec2806ce5b9139dd
[ "MIT" ]
18
2020-07-30T08:00:06.000Z
2022-02-01T01:06:54.000Z
f5-bigip/2020_5902_f5_hsqldb_rce.py
hex0wn/learn-java-bug
bf191905ba4c284d90e8eb51ec2806ce5b9139dd
[ "MIT" ]
10
2020-07-03T09:12:55.000Z
2022-03-09T11:13:56.000Z
#!/usr/bin/env python3 # coding: utf-8 from pocsuite3.api import Output, POCBase, register_poc, requests from urllib.parse import urljoin, urlparse import socket import ssl import binascii class HsqldbPOC(POCBase): vulID = '' # ssvid version = '1.0' author = ['anonymous'] vulDate = '' createDate =...
62.085106
2,570
0.773818
940fc77a00d0d850d39cb39a708ba1dababe7da8
2,076
py
Python
deprecated/benchmark/reader/jpeg2seqfile.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
deprecated/benchmark/reader/jpeg2seqfile.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
deprecated/benchmark/reader/jpeg2seqfile.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
""" Convert jpeg images into sequence file. Organize your directory in the following format: ImageNet | -- train | -- dir1 | -- 1.jpeg | -- ... | -- dir2 | -- 10.jpeg ...
31.938462
109
0.521676
04d3051a443103e55fc7f017d156dd2f8ae03559
2,679
py
Python
src/predictor/cnnsc.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
6
2018-12-20T06:50:52.000Z
2021-12-16T13:08:38.000Z
src/predictor/cnnsc.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
1
2020-06-29T07:00:51.000Z
2020-06-29T07:00:51.000Z
src/predictor/cnnsc.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
1
2022-03-04T07:29:55.000Z
2022-03-04T07:29:55.000Z
import tensorflow as tf EMB_SIZE = 10 def gen_conv(batch_input, out_channels, kernel_size, a): # [batch, in_width, in_channels] => [batch, out_width, out_channels] initializer = tf.random_normal_initializer(0, 0.02) return tf.layers.conv1d(batch_input, out_channels, kernel_size=kernel_size, strides=1, pa...
39.985075
158
0.648003
8e46c8f89d04d459acdcd8d46f1c38e0b42bbcfa
471
py
Python
apps/grolsch/forms.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
1
2017-01-08T13:21:43.000Z
2017-01-08T13:21:43.000Z
apps/grolsch/forms.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
17
2018-12-03T14:22:14.000Z
2021-07-14T15:15:12.000Z
apps/grolsch/forms.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
2
2018-12-03T14:58:49.000Z
2019-12-01T13:24:42.000Z
from django import forms class CreateProductFromUrlForm(forms.Form): url = forms.URLField() track_price = forms.BooleanField() class PriceChangeResolveForm(forms.Form): CHOICE_NEW_PRICE = 'NEW' CHOICE_DISCOUNT_PRICE = 'DISCOUNT' CHOICES = [ (CHOICE_NEW_PRICE, "This is the new price of t...
24.789474
70
0.713376
6d3184ebaa08752003b87a5e63c4d69b919a78dd
2,256
py
Python
Apps/Auswertung/questionnaire_evaluation.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
1
2021-04-13T10:00:46.000Z
2021-04-13T10:00:46.000Z
Apps/Auswertung/questionnaire_evaluation.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
null
null
null
Apps/Auswertung/questionnaire_evaluation.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # import python libs import re import json import argparse import json from os import listdir from os.path import isfile, join from pprint import pprint as pp from operator import itemgetter # import project libs # - # defining globals & constants SUBJECTS_TABEL_JSON ...
30.486486
111
0.701684
b6679d9a3aa93cd22d72330ba0a36de350b8c8d7
967
py
Python
mainTrainer.py
PianoBin/EarTrainer
4a0533cd329a9ddf9e1c5142c5da8e12c79f3b7b
[ "MIT" ]
null
null
null
mainTrainer.py
PianoBin/EarTrainer
4a0533cd329a9ddf9e1c5142c5da8e12c79f3b7b
[ "MIT" ]
null
null
null
mainTrainer.py
PianoBin/EarTrainer
4a0533cd329a9ddf9e1c5142c5da8e12c79f3b7b
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import ttk from pydub import AudioSegment def unpackSounds(sounds): #open wav files soundList = sounds fileStem = "39148__jobro__piano-ff-0" fileEnd = ".wav" fileName = "" for i in range(1, 88): if i < 10: fileName = fileStem + "0" + i + fileEn...
26.861111
66
0.670114
b67c02e28b5e3deb3ddafcf069f469a4f5dcb69f
2,045
py
Python
src/pfun/clock.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
src/pfun/clock.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
src/pfun/clock.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
import asyncio import datetime from typing_extensions import Protocol from . import effect from .immutable import Immutable class Clock(Immutable): """ Module providing clock capabilities. """ def sleep(self, seconds: float) -> effect.Success[None]: """ Create an `Effect` that Suspen...
26.217949
66
0.621516
1e977b5291f541a2b572f154f1f14ad335310fb7
9,699
py
Python
src/onegov/feriennet/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.activity import ActivityFilter from onegov.activity import Attendee, AttendeeCollection from onegov.activity import Booking, BookingCollection from onegov.activity import InvoiceCollection, InvoiceItem from onegov.activity import Occasion, OccasionCollection, OccasionNeed from onegov.activity import Period,...
29.302115
78
0.725436
44fa3a14cafb8630d6f6b48321229db4cc265c63
328
py
Python
nz_django/day2/db_demo1/book/migrations/0003_auto_20200219_1736.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day2/db_demo1/book/migrations/0003_auto_20200219_1736.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day2/db_demo1/book/migrations/0003_auto_20200219_1736.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
# Generated by Django 2.0 on 2020-02-19 09:36 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('book', '0002_student'), ] operations = [ migrations.AlterModelOptions( name='student', options={'ordering': ['id']}, )...
18.222222
45
0.570122
ec9240f833bb0f5f7f8fda87b81b3c9bb0de33a4
3,378
py
Python
DataProcess/augmentation/generating.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
3
2021-12-24T04:52:03.000Z
2021-12-27T02:14:49.000Z
DataProcess/augmentation/generating.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
null
null
null
DataProcess/augmentation/generating.py
ZhangQiHang-98/RFID_Scirpt
0f74087add4cf16e2d201ad4f31cc1abd287db7e
[ "MIT" ]
null
null
null
# this contains the data generation methods of icdm 2017 # "Generating synthetic time series to augment sparse datasets" import numpy as np import utils.constants from dba import calculate_dist_matrix from dba import dba def my_generating(x_train): pass # 数据增强的入口 def augment_train_set(x_train, y_train, classes...
40.214286
89
0.645648
bdf9cd248749c518d8b3056760846f2559cd9720
2,181
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex09_nqueens_alternative.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex09_nqueens_alternative.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex09_nqueens_alternative.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden def solve_n_queens(size): board = [] solved = __solve_n_queens_helper(board, 0, size) return solved, board # (solved, board) def __solve_n_queens_helper(board, row, size): # rekursiver Abbruch if row >= size...
21.81
72
0.599266
da72c2539013fcbe2ad8b11fe5d1b28d17a6a04f
774
py
Python
agspiel/api/index.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
1
2021-03-09T21:37:41.000Z
2021-03-09T21:37:41.000Z
agspiel/api/index.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
4
2020-11-13T19:34:58.000Z
2021-07-24T16:25:27.000Z
agspiel/api/index.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
1
2020-08-24T14:38:18.000Z
2020-08-24T14:38:18.000Z
# Copyright (c) 2021 | KingKevin23 (@kingkevin023) from datetime import datetime class Index: def __init__(self, nummer: int, name: str, highscore: int, punkte: int, gruendung_datum: datetime): self._id: int = nummer self._name: str = name self._highscore: int = highscore self._p...
24.1875
103
0.634367
e52bf6058f6737d49198ba4a6be010e4a5421d5c
1,485
py
Python
sketches/ghosts/disk.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/ghosts/disk.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/ghosts/disk.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
from random import randint MIN_R = 10 MAX_R = 25 class Disk(): def __init__(self, _x, _y, _ax, _ay, _r, _clr): self.pos = PVector(_x, _y) self.dir = PVector(_ax, _ay) self.radius = _r self.clr = _clr def update(self): self.pos.add(self.dir) if (self.po...
32.282609
83
0.513131
c18b42a3d9fae5126b4fe2fda9a91d468a334022
3,805
py
Python
Codeforces/644-3/H1.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
6
2018-10-15T18:45:05.000Z
2022-03-29T04:30:10.000Z
Codeforces/644-3/H1.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
null
null
null
Codeforces/644-3/H1.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
4
2018-01-07T06:20:07.000Z
2019-08-21T15:45:59.000Z
""" Python 3 compatibility tools. """ from __future__ import division, print_function import itertools import sys import os from io import BytesIO, IOBase if sys.version_info[0] < 3: input = raw_input range = xrange filter = itertools.ifilter map = itertools.imap zip = itertools.izip def is_it_local...
20.79235
73
0.572142
99dd9953257b1d13983c64990b3fc1bcb7397021
909
py
Python
PINp/2015/GOLOVIN_A_I/task_4_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/GOLOVIN_A_I/task_4_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/GOLOVIN_A_I/task_4_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 7. # Напишите программу, которая выводит имя, под которым скрывается Мария Луиза Чеччарелли. # Дополнительно необходимо вывести область интересов указанной личности, место рождения, годы # рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти). # Для хранения ...
47.842105
451
0.756876
99fa1db49e487662c24c6af5ae784609d4b2f97e
267
py
Python
Online-Judges/CodingBat/Python/List-02/List_2-05-sum67.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodingBat/Python/List-02/List_2-05-sum67.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodingBat/Python/List-02/List_2-05-sum67.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def sum67(nums): totall = 0 found6 = False for i in range(len(nums)): if nums[i] == 6: found6 = True if not found6: totall += nums[i] if nums[i] == 7 and found6: found6 = False return totall
22.25
35
0.479401
82174f8767520f75b43c85dc58b7a41608ef8c07
4,033
py
Python
2-resources/_Past-Projects/LambdaSQL-master/LambdaSQL-master/module1/rpg_db.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_Past-Projects/LambdaSQL-master/LambdaSQL-master/module1/rpg_db.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_Past-Projects/LambdaSQL-master/LambdaSQL-master/module1/rpg_db.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
""" Unit 3 Sprint 2 SQL Module 1 Part 1 Querying a Database """ import statistics import sqlite3 as sql from collections import defaultdict # Connect to local database connection = sql.connect("rpg_db.sqlite3").cursor() # connection.row_factory = sql.Row # How many total Characters are there? total_characters = conn...
32.264
90
0.737168
6bc3e6167e0f39177fa83891bc479c9d19ad046a
2,629
py
Python
docker/api/api/models/cron.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
2
2021-03-23T20:32:38.000Z
2021-04-21T11:20:12.000Z
docker/api/api/models/cron.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
4
2021-04-19T11:00:55.000Z
2021-04-20T08:21:48.000Z
docker/api/api/models/cron.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Corona-Info-App # Cron-Jobs # © 2020 Tobias Höpp und Johannes Kreutz. # Include dependencies from main import db import enum from datetime import datetime import difflib from bs4 import BeautifulSoup from utils.cron_utils import runJob from models.association_tables import districtHasCron # ...
34.142857
209
0.661088
2e0b104cfc6935fd346af8f8258751c548275e6b
4,277
py
Python
tests/ingestion/transformers/monosi/test_zscores.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
tests/ingestion/transformers/monosi/test_zscores.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
tests/ingestion/transformers/monosi/test_zscores.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
import pytest import ingestion.transformers.monosi.zscores as zscores @pytest.fixture def zscore(): return { 'metric_id': "1", 'expected_range_start': 0.0, 'expected_range_end': 1.0, 'error': False, 'zscore': 0.5, } @pytest.fixture def zscore_error(): return { ...
29.095238
94
0.708207
2e283a24f38611a1a2e331a984a2901f2b5bba1b
15,576
py
Python
make.py
MyWay404/WordMaker
3c850fbcc585838d281ef8d20f627f0c2c3f087b
[ "MIT" ]
null
null
null
make.py
MyWay404/WordMaker
3c850fbcc585838d281ef8d20f627f0c2c3f087b
[ "MIT" ]
null
null
null
make.py
MyWay404/WordMaker
3c850fbcc585838d281ef8d20f627f0c2c3f087b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Import Modules try: import os,sys,time,random,threading,platform,readline,configparser,functools except Exception as F: exit("\x1b[1;31m [!] \x1b[0;32m%s"%(F)+"\x1b[0;39m") # Color A = "\x1b[1;32m" B = "\x1b[1;31m" C = "\x1b[1;33m" D = "\x1b[1;36m" E = "\x1b[0;39m" rand = (A,B,C,D) W = ra...
36.909953
116
0.549499
d86242466e2ed586da86b21acb2dd1e7601eeb80
728
py
Python
Backend/migrations/alembic/versions/347eb1c14bd2_create_email_subs_counties_table.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/migrations/alembic/versions/347eb1c14bd2_create_email_subs_counties_table.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/migrations/alembic/versions/347eb1c14bd2_create_email_subs_counties_table.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
"""create email_subs_counties table Revision ID: 347eb1c14bd2 Revises: 50cd32ec9ca7 Create Date: 2020-11-25 21:24:32.394944 """ from alembic import op # revision identifiers, used by Alembic. revision = '347eb1c14bd2' down_revision = '50cd32ec9ca7' branch_labels = None depends_on = None def upgrade(): op.get_b...
20.8
55
0.714286
992aefb272d45d9df2d35c3a9957788bc06fa9b8
669
py
Python
DataStructures/LinkedList/SpecificInsert.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/LinkedList/SpecificInsert.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/LinkedList/SpecificInsert.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 def InsertNth_stupid(head, data, position): if head: if position == 0: return Node(data, head) node = head position -= 1 while position: node = node.next position -= 1 node.next = Node(data, node.next) else: head ...
21.580645
45
0.530643
9937efcd52a6abf2f4b79abff306e55e12106702
69
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/pg-6.5-sum-fifty-1.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/pg-6.5-sum-fifty-1.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/pg-6.5-sum-fifty-1.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
result = 0 for i in range(50): result = result + 1 print(result)
13.8
23
0.637681
8ffc2e64f0b3ead5f24c5d61b1aa7df69a5a3582
794
py
Python
bot/utils/bot_prefix.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
bot/utils/bot_prefix.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
bot/utils/bot_prefix.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
from discord.ext import commands from bot import constants from bot.database.models import Guild class BotPrefixHandler: """ handles bot prefixes across servers """ # firebase_admin.initialize_app(Client.firebase_creds) @staticmethod async def get_prefix(bot, message): prefix = None...
28.357143
83
0.63602
8f76c503f4484f2cdf072630a07d7627fbd0dcc0
12,854
py
Python
marsyas-vamp/marsyas/scripts/large-evaluators/compare_tempi.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/compare_tempi.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/compare_tempi.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import glob import os import sys import subprocess import scipy.stats import numpy #DEBUG_MCNEMAR = True DEBUG_MCNEMAR = False ground_truth_dirname = os.path.expanduser("~/src/audio-research/") #ground_truth_dirname = os.path.expanduser("~/src/audio-research/not-now") results_subdir = "mfs/" ...
31.895782
98
0.513303
56f74737b6c7efc4dde48db0aaf1e073160b4394
1,387
py
Python
THC/2021/crypto/Babysign/server.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
THC/2021/crypto/Babysign/server.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
THC/2021/crypto/Babysign/server.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
from Crypto.Util.number import getPrime, GCD, inverse, bytes_to_long import os class SecureSigner(): def __init__(self): p = getPrime(512) q = getPrime(512) e = 0x10001 phi = (p-1)*(q-1) while GCD(e,phi) != 1: p = getPrime(512) q = getPrime(512) phi = (p-1)*(q-1) self.d = inverse(e,phi) self.n...
18.743243
102
0.598414
a49e52326bf10edae55d9d6ad8b1ebadd2b70575
951
py
Python
Webpage/web/forms.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/web/forms.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/web/forms.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
from django import forms from django.forms import ModelForm from django.core.exceptions import ValidationError from django.forms import fields from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User from phonenumber_field.formfields import PhoneNumberField from web.models im...
31.7
117
0.679285
2d213d18e8c65dec1fa24d2de2dd1229ae7730d9
6,304
py
Python
third_party/cobs-c-0.5.0/tests-python/test_cobs.py
th-sabik/trice
ca2a1f5243e0c755540586ce2217158812c0df16
[ "MIT" ]
223
2020-02-11T16:16:16.000Z
2022-03-24T08:15:30.000Z
third_party/cobs-c-0.5.0/tests-python/test_cobs.py
mfkiwl/trice
abfcd14611d3ccb1a06f0a227a029abc3df8166f
[ "MIT" ]
212
2020-02-12T12:54:25.000Z
2022-03-29T13:37:36.000Z
third_party/cobs-c-0.5.0/tests-python/test_cobs.py
mfkiwl/trice
abfcd14611d3ccb1a06f0a227a029abc3df8166f
[ "MIT" ]
25
2017-11-19T10:06:45.000Z
2022-02-16T11:06:58.000Z
""" Consistent Overhead Byte Stuffing (COBS) Unit Tests This version is for Python 2.x. """ from array import array import random import unittest #from cobs import cobs #from cobs.cobs import _cobs_py as cobs import cobs_wrapper as cobs def infinite_non_zero_generator(): while True: for i in xrange(1,...
43.777778
141
0.533788