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
2a5c4c91fbed599e2c59da849e8215ea522c28fa
319
py
Python
exercises/pt/exc_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/exc_02_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/exc_02_02_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
from spacy.lang.en import English nlp = English() doc = nlp("David Bowie is a PERSON") # Consulte o código hash para a string com o marcador "PERSON" person_hash = ____.____.____[____] print(person_hash) # Consulte o person_hash para obter o texto novamente person_string = ____.____.____[____] print(person_string)
24.538462
62
0.768025
937192b664d2e1c548b65138b0da9b63730e8b01
60
py
Python
play/test2.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
play/test2.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
play/test2.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
import json f = open("test1.json", "r") d = json.load(f, )
12
27
0.583333
faaf68d196b1c223878cbf16478d975895588e78
327
py
Python
Online-Judges/CodingBat/Python/Logic-02/Logic_2-06-close_far.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodingBat/Python/Logic-02/Logic_2-06-close_far.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodingBat/Python/Logic-02/Logic_2-06-close_far.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def close_far(a, b, c): a_b = abs(a-b) b_c = abs(b-c) a_c = abs(a-c) condition1 = (a_b <= 1 and b_c >= 2 and a_c >= 2) condition2 = (a_b >= 2 and b_c <= 1 and a_c >= 2) condition3 = (a_b >= 2 and b_c >= 2 and a_c <= 1) if condition1 or condition2 or condition3: return True return...
29.727273
53
0.550459
35c69adefaefda2d6332db9e641e0275f2f504b2
15,204
py
Python
CS303/project/work/policy_value_net_tensorlayer.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
CS303/project/work/policy_value_net_tensorlayer.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
CS303/project/work/policy_value_net_tensorlayer.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
# -*- coding: utf-8 -*- """ Created on Sat Dec 8 13:02:14 2018 @author: initial-h """ import tensorflow as tf import tensorlayer as tl from tensorlayer.layers import * import os import numpy as np class PolicyValueNet(): def __init__(self, board_width, board_height, block, init_model=None, transfer_model=None,...
44.197674
120
0.545317
a4c5d524e38105811f4dec313eb7748f03ad9d04
1,967
py
Python
scripts/qt2/pyqt_sw12_QTimer.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
scripts/qt2/pyqt_sw12_QTimer.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
scripts/qt2/pyqt_sw12_QTimer.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ##pyqt_sw12_QTimer.py import sys from PyQt5.QtCore import (Qt, QTimer) from PyQt5.QtWidgets import (QWidget, QPushButton, QApplication, QLabel) from PyQt5.QtMultimedia import QSound # sudo apt-get install python-pyqt5.qtmultimedia import random class Ui(QWidget): def __in...
34.508772
80
0.567361
dc27edbd874baab7455ca489a5743e0818a4fd86
227
py
Python
459-repeated-substring-pattern/459-repeated-substring-pattern.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
459-repeated-substring-pattern/459-repeated-substring-pattern.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
459-repeated-substring-pattern/459-repeated-substring-pattern.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def repeatedSubstringPattern(self, s: str) -> bool: lens=len(s) for i in range(1, lens//2+1): if lens%i==0 and s[:i]*(lens//i)==s: return True return False
32.428571
55
0.519824
dc57c069435e8ef1a46943be5d2b51a6221517ca
10,981
py
Python
util/model_util.py
teastares/or_lab
c8fb5c22d31c1e2b93381397202be7b71a3fc796
[ "MIT" ]
1
2021-01-18T09:11:59.000Z
2021-01-18T09:11:59.000Z
util/model_util.py
teastares/or_lab
c8fb5c22d31c1e2b93381397202be7b71a3fc796
[ "MIT" ]
null
null
null
util/model_util.py
teastares/or_lab
c8fb5c22d31c1e2b93381397202be7b71a3fc796
[ "MIT" ]
null
null
null
""" This file defines the utilities. Last edited by Teast Ares, 20190130. """ from collections import defaultdict from constant import const import string import random def random_string(size=16, chars=string.ascii_lowercase + string.digits): """ generate a random string. paras: size: the length...
29.204787
119
0.595665
f4ae4e04afcc8a4f5dbcea78781296cb1003a9d7
5,234
py
Python
Project Euler Qusetions 11 - 20/Project Euler Question 11.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
1
2020-02-11T02:03:02.000Z
2020-02-11T02:03:02.000Z
Project Euler Qusetions 11 - 20/Project Euler Question 11.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
Project Euler Qusetions 11 - 20/Project Euler Question 11.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
#Project Euler Question 11 #In the 20×20 grid below, four numbers along a diagonal line have been marked in red. #08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 #49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 #81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65 #52 70 95 23 04 60 11 ...
34.662252
134
0.589797
f4f60b671c0d6649e04529cefde255f87d2b9b50
981
py
Python
ISTp/2013/IVANOV_S_E/task_7_6.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
ISTp/2013/IVANOV_S_E/task_7_6.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
ISTp/2013/IVANOV_S_E/task_7_6.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 7. Вариант 6. # Разработайте систему начисления очков для задачи 6, в соответствии с которой игрок получал бы большее количество баллов за меньшее количество попыток. # Ivanov S. E. # 21.09.2016 import random CITY_LIST = ("Москва", "Санкт-Петербург", "Нижний Новгород", "Новосибирск", "Самара"...
33.827586
152
0.698267
52995411b2b85bc096a253874618e424b33092c6
515
py
Python
py-basics/src/lectures/classes/smart_traffic_lights.py
NadimBhatti05/s4f
41d3525bc286ee0b6e727c601f036a96b3c2fb2c
[ "CC0-1.0" ]
null
null
null
py-basics/src/lectures/classes/smart_traffic_lights.py
NadimBhatti05/s4f
41d3525bc286ee0b6e727c601f036a96b3c2fb2c
[ "CC0-1.0" ]
null
null
null
py-basics/src/lectures/classes/smart_traffic_lights.py
NadimBhatti05/s4f
41d3525bc286ee0b6e727c601f036a96b3c2fb2c
[ "CC0-1.0" ]
4
2021-12-13T15:52:00.000Z
2022-03-28T13:54:53.000Z
# 6kyu | Smart Traffic Lights # https://www.codewars.com/kata/58587905ed1b4dad6e0000c6/python class SmartTrafficLight: def __init__(self, st1, st2): pass def turngreen(self): return def test(actual, expected): checkmark = '✔️' if expected == actual else '❌' print(f"{checkmark} expect...
24.52381
78
0.650485
bff25780fb1736ea20289542e7f9849915aab91a
609
py
Python
HackerP/Basic Data Types/Nested Lists.py
JKChang2015/hackerrank
5e5bd6892d2e4754e73f73eecfa8f4b9f266c3bd
[ "MIT" ]
null
null
null
HackerP/Basic Data Types/Nested Lists.py
JKChang2015/hackerrank
5e5bd6892d2e4754e73f73eecfa8f4b9f266c3bd
[ "MIT" ]
null
null
null
HackerP/Basic Data Types/Nested Lists.py
JKChang2015/hackerrank
5e5bd6892d2e4754e73f73eecfa8f4b9f266c3bd
[ "MIT" ]
null
null
null
# Nested Lists # Created by JKChang # 14/08/2018, 11:33 # Tag: # Description: https://www.hackerrank.com/challenges/nested-list/problem?h_r=next-challenge&h_v=zen # Given the names and grades for each student in a Physics class of students, store them in a nested list and print # the name(s) of any student(s) having ...
40.6
116
0.676519
5e4aa0409c69ca089d305af5b911c25aa022b729
1,230
py
Python
2019/finals/web-gphotos-finals/app/gallery/middleware.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2019/finals/web-gphotos-finals/app/gallery/middleware.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2019/finals/web-gphotos-finals/app/gallery/middleware.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
28.604651
74
0.725203
df7b86becd35d9ff618b972e5b054931b461a100
13,404
py
Python
src/onegov/agency/views/agencies.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/views/agencies.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/views/agencies.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import datetime from datetime import timedelta from morepath import redirect from morepath.request import Response from onegov.agency import _ from onegov.agency import AgencyApp from onegov.agency.collections import ExtendedAgencyCollection from onegov.agency.forms import AgencyMutationForm from onegov.a...
26.969819
77
0.634288
80382725d54d1699818d56f804ef3250283aa65b
624
py
Python
Packs/GoogleBigQuery/Integrations/GoogleBigQuery/GoogleBigQuery_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GoogleBigQuery/Integrations/GoogleBigQuery/GoogleBigQuery_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GoogleBigQuery/Integrations/GoogleBigQuery/GoogleBigQuery_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import datetime from GoogleBigQuery import convert_to_string_if_datetime def test_convert_to_string_if_datetime(): test_conversion_for_none = convert_to_string_if_datetime(None) assert test_conversion_for_none is None now = datetime.datetime.now() convert_to_string_if_datetime(now) test_conversio...
34.666667
72
0.809295
d5a423d72e8cf4dce74f0691b87a15b0d727c536
3,018
py
Python
src/visuanalytics/tests/analytics/transform/types/test_transform_remove_from_list.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_remove_from_list.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_remove_from_list.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
import unittest from visuanalytics.tests.analytics.transform.transform_test_helper import prepare_test class TestTransformRemoveFromList(unittest.TestCase): def setUp(self): self.data = { "test": ["Canada", "Argentina", "Cyprus", "Schweden", "Kacke", "Norway", "USA", "Germany", "United Kingdo...
35.928571
120
0.482107
8931cfde5d27d4ead23771f30a122c05d1ff4316
251
py
Python
app/api/v1/__init__.py
zucc-acm-devteam/zuccacm-sso
9c7d2f0b9cc069962f32b555152732a98bf2e94a
[ "Apache-2.0" ]
null
null
null
app/api/v1/__init__.py
zucc-acm-devteam/zuccacm-sso
9c7d2f0b9cc069962f32b555152732a98bf2e94a
[ "Apache-2.0" ]
null
null
null
app/api/v1/__init__.py
zucc-acm-devteam/zuccacm-sso
9c7d2f0b9cc069962f32b555152732a98bf2e94a
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint from app.api.v1 import session, user, ticket def create_blueprint_v1(): bp_v1 = Blueprint('v1', __name__) session.api.register(bp_v1) user.api.register(bp_v1) ticket.api.register(bp_v1) return bp_v1
19.307692
44
0.721116
895eaae123bfd9712fc74dc610072e4bfb532af0
822
py
Python
Tasteless/2020/papple/adjust_image.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Tasteless/2020/papple/adjust_image.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Tasteless/2020/papple/adjust_image.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
import os import mmap DEFAULT_FLAG = 'tstlss{XXXXXXXXXXXXXXXXXXXXXXXXXXXXX}' DEFAULT_IP = '133.133.133.133' ip = os.getenv('IP') flag = os.getenv('FLAG') if ip is None: print("Please specify an ip via the IP environment variable.") exit(-1) if len(ip) > len(DEFAULT_IP): print("Please specify an ip wit...
25.6875
66
0.684915
7f5b90daf7962e132ff2d85d13661e81de39fc3b
384
py
Python
PINp/2014/KOROTKOVA_D_S/task_1_39.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/KOROTKOVA_D_S/task_1_39.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/KOROTKOVA_D_S/task_1_39.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1. Вариант 39. # Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Игорь Васильевич Лотарев. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. # Korotkova D.S. # 26_02_2016 print("Игорь Васильевч Лотарев известен как , И...
42.666667
217
0.807292
618fc62106bc40c1ea0916f2032a603befa9f181
666
py
Python
platform/mcu/haas1000/prebuild/data/python-apps/ml/recognize-character/main.py
NEXTLEO/AliOS-Things
117ca103144a7bf6a394455bcc59698b7e1dd79d
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
platform/mcu/haas1000/prebuild/data/python-apps/ml/recognize-character/main.py
NEXTLEO/AliOS-Things
117ca103144a7bf6a394455bcc59698b7e1dd79d
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
components/py_engine/tests/haas/HaaSEdu/python-apps/ml/recognize-character/main.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
from minicv import ML print("-------------------Welcome HaasAI MicroPython--------------------") print("-----ml ucloud RecognizeCharacter demo start-----") OSS_ACCESS_KEY = "xxxx" OSS_ACCESS_SECRET = "xxxx" OSS_ENDPOINT = "xxxx" OSS_BUCKET = "xxxx" ml = ML() ml.open(ml.ML_ENGINE_CLOUD) ml.config(OSS_ACCESS_KEY, OSS_...
28.956522
78
0.720721
2124fbea930a1f5415ff6490a75fa632bef5e8dd
4,032
py
Python
databasemanager.py
Strange-Penguins/Stython
f4f96383681f311dd0ecceddf15417c78c974830
[ "MIT" ]
1
2021-03-13T21:50:12.000Z
2021-03-13T21:50:12.000Z
databasemanager.py
Strange-Penguins/Stython
f4f96383681f311dd0ecceddf15417c78c974830
[ "MIT" ]
4
2021-03-13T22:22:11.000Z
2021-03-14T22:17:49.000Z
databasemanager.py
Strange-Penguins/Stython
f4f96383681f311dd0ecceddf15417c78c974830
[ "MIT" ]
null
null
null
import sqlite3 as sq3 import os.path class DatabaseManager: def __init__(self): # This is the db path self.dbpath = "db" self.worlds = {} def connect_world(self, world): if world in self.worlds: return True if not os.path.isfile(f"db/world{world}.db"): ...
43.354839
131
0.582589
b4a142a235520a601b9840dbaa60acab4c66c9a7
3,425
py
Python
lib/table_manager.py
jyurkiw/EncounterRoller
42d036874f6b65bb276003fc9c166917464e4a3b
[ "MIT" ]
null
null
null
lib/table_manager.py
jyurkiw/EncounterRoller
42d036874f6b65bb276003fc9c166917464e4a3b
[ "MIT" ]
null
null
null
lib/table_manager.py
jyurkiw/EncounterRoller
42d036874f6b65bb276003fc9c166917464e4a3b
[ "MIT" ]
null
null
null
from EncounterRoller.lib.settings_manager import SettingsManager from EncounterRoller.lib.template_json import template_json import json import os import pathlib import shutil class TableManager(object): """Manage table files like Tizarus.json. This is not the monster data in the files. It's the files themselv...
38.483146
105
0.602628
b4cbd18160d2eeae0ec3eef7bcced8df7d8d561e
315
py
Python
8_CodeTesting/Debugging/test.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
1
2022-03-02T07:16:30.000Z
2022-03-02T07:16:30.000Z
8_CodeTesting/Debugging/test.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
8_CodeTesting/Debugging/test.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
# links Käfersymbol -> run and debug -> python file """Test code. """ from vector import Vector2D def main(): v1 = Vector2D(2, -2) print(v1) v2 = Vector2D(2, 3) # (2, 'hi') testen zum debuggen print(v2) v3 = v1 + v2 print(v3) print("Hello world") if __name__ == "__main__": main()
18.529412
55
0.584127
980e7b56a9f2bccd6fc8ccf63f888be41adde7a4
4,753
py
Python
kts/core/frame.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/core/frame.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/core/frame.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
from collections import defaultdict import pandas as pd from kts.util.hashing import hash_frame class KTSFrame(pd.DataFrame): """A wrapper over the standard DataFrame class. Complements it with .train and .state/._state attributes. This class is implemented to provide an indicator for functions whe...
27.795322
88
0.591206
e2ba16392c67a07f14ae4f44b09edff73d98027b
3,227
py
Python
tests/addons/reqs2reqs/test_add.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
tests/addons/reqs2reqs/test_add.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
tests/addons/reqs2reqs/test_add.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- from jumeaux.addons.reqs2reqs.add import Executor from jumeaux.models import Reqs2ReqsAddOnPayload class TestExec: def test(self): payload: Reqs2ReqsAddOnPayload = Reqs2ReqsAddOnPayload.from_dict( { "requests": [ ...
30.443396
100
0.340564
20183161efd5bd8c6b49a9e51c6f2a5483dfec4b
5,871
py
Python
src/onegov/fsi/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/fsi/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/fsi/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from uuid import UUID from onegov.fsi import FsiApp from onegov.fsi.collections.attendee import CourseAttendeeCollection from onegov.fsi.collections.audit import AuditCollection from onegov.fsi.collections.course import CourseCollection from onegov.fsi.collections.course_event import CourseEventCollection, \ PastC...
31.395722
79
0.705842
6468dbf01529966b37fb2f07e5529ad1f5827b22
3,511
py
Python
research/cv/retinaface/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/retinaface/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/retinaface/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...
39.449438
99
0.608943
b386ddda98657b59d385aafb2c76f59f133b27a2
1,391
py
Python
Versuch2/dead.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch2/dead.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch2/dead.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
1
2022-01-06T12:47:53.000Z
2022-01-06T12:47:53.000Z
import numpy as np import cv2 # -------- dead -------- # # Values for dark x & y cir1 = 1000 cir2 = 1000 # Values for light x & y cir3 = 0 cir4 = 0 # actual pixelvalue value = 0 # highscores high1 = 1000 high4 = 0 # Bild einlesen white1 = cv2.imread('data/white1.png', cv2.IMREAD_GRAYSCALE) image = cv2.imread("data/...
26.245283
70
0.620417
80c343c5a375b26e5a101847b7350e89e39d8810
2,782
py
Python
src/onegov/swissvotes/models/page.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/models/page.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/models/page.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.orm import Base from onegov.core.orm import translation_hybrid from onegov.core.orm.abstract import MoveDirection from onegov.core.orm.mixins import TimestampMixin from onegov.core.orm.types import HSTORE from onegov.file import AssociatedFiles from onegov.swissvotes.models.file import FileSubCollectio...
31.258427
77
0.67074
457408f0f75fb23b9e0e6c6fc18374d5fe550b4a
3,518
py
Python
SomeTest/peiqi.py
maplelearC/Unity3DTraining
3824d5f92c5fce5cbd8806feb1852e9a99e4a711
[ "MIT" ]
3,914
2017-01-20T04:55:53.000Z
2022-03-31T18:06:12.000Z
SomeTest/peiqi.py
maplelearC/Unity3DTraining
3824d5f92c5fce5cbd8806feb1852e9a99e4a711
[ "MIT" ]
5
2019-12-17T05:27:58.000Z
2022-01-20T11:55:33.000Z
SomeTest/peiqi.py
maplelearC/Unity3DTraining
3824d5f92c5fce5cbd8806feb1852e9a99e4a711
[ "MIT" ]
1,263
2017-01-15T09:54:44.000Z
2022-03-31T14:59:11.000Z
import turtle as t t.pensize(4) # 设置画笔的大小 t.colormode(255) # 设置GBK颜色范围为0-255 t.color((255,155,192),"pink") # 设置画笔颜色和填充颜色(pink) t.setup(840,500) # 设置主窗口的大小为840*500 t.speed(10) # 设置画笔速度为10 #鼻子 t.pu() # 提笔 t.goto(-100,100) # 画笔前往坐标(-100,100) t.pd() # 下笔 t.seth(-30) # 笔的角度为-30° t.begin_fill() # 外形填充的开始标志 a=0.4 for i in ra...
13.325758
49
0.605458
2fd519b2637a4d1cd02f61f39f909fa7e8e8ed03
975
py
Python
sort_algorithm/_quick_sort.py
Jeson1g/Dawson
b65f2347110cf56d13e9fcf8f08a3b38af53af77
[ "MIT" ]
2
2018-06-19T08:46:10.000Z
2018-11-05T02:15:34.000Z
sort_algorithm/_quick_sort.py
Jeson1g/Dawson
b65f2347110cf56d13e9fcf8f08a3b38af53af77
[ "MIT" ]
null
null
null
sort_algorithm/_quick_sort.py
Jeson1g/Dawson
b65f2347110cf56d13e9fcf8f08a3b38af53af77
[ "MIT" ]
null
null
null
def quick_sort(alist, start, end): """快速排序""" # 递归的退出条件 if start >= end: return # 设定起始元素为要寻找位置的基准元素 mid = alist[start] # low为序列左边的由左向右移动的游标 low = start # high为序列右边的由右向左移动的游标 high = end while low < high: # 如果low与high未重合,high指向的元素不比基准元素小,则high向左移动 while...
21.666667
55
0.588718
2fe40debf94b23db5a67edfcfe2d921b68d40eb8
22,344
py
Python
tests/onegov/form/test_parser.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/form/test_parser.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/form/test_parser.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import pytest from decimal import Decimal from onegov.form import Form, errors, find_field from onegov.form import parse_formcode, parse_form, flatten_fieldsets from onegov.form.fields import DateTimeLocalField from onegov.form.parser.grammar import field_help_identifier from onegov.pay import Price from textwrap impo...
26.536817
78
0.589868
4451241273f3b858b5676d7db46ea213b995ff3a
676
pyde
Python
sketches/julia/julia.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/julia/julia.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/julia/julia.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
left = -2.25 right = 0.75 bottom = -1.5 top = 1.5 maxlimit = 4.0 maxiter = 50 def setup(): size(400, 400) background("#ffffff") colorMode(HSB, 255, 100, 100) noLoop() def draw(): cr = 0.7269 ci = 0.1889 c = complex(cr, ci) for x in range(width): for y in range(height): ...
22.533333
58
0.412722
4484a9b91b3ce5bba1e6a67864716fe9ecad0ae5
438
py
Python
Python/B1-Herz/B1-Herz.py
frankyhub/Calliope
335f0ef5ca9bcf57e14166319501ec9086bc09bf
[ "MIT" ]
null
null
null
Python/B1-Herz/B1-Herz.py
frankyhub/Calliope
335f0ef5ca9bcf57e14166319501ec9086bc09bf
[ "MIT" ]
null
null
null
Python/B1-Herz/B1-Herz.py
frankyhub/Calliope
335f0ef5ca9bcf57e14166319501ec9086bc09bf
[ "MIT" ]
null
null
null
def on_button_pressed_a(): basic.show_leds(""" . # . # . # . # . # . # . # . . . # . . . . . . . """) input.on_button_pressed(Button.A, on_button_pressed_a) def on_button_pressed_b(): basic.show_leds(""" . . . . . . . . . . ....
21.9
55
0.383562
927e12288ced1aa4d6af661e60a9609bd8906225
3,476
py
Python
code/aufgabe-3.py
chrissiek/datenanalyse-ss18
5080a4f67748dbfad7fbe88402156c0f9665ac08
[ "CC-BY-4.0" ]
1
2018-05-11T11:26:52.000Z
2018-05-11T11:26:52.000Z
code/aufgabe-3.py
chrissiek/datenanalyse-ss18
5080a4f67748dbfad7fbe88402156c0f9665ac08
[ "CC-BY-4.0" ]
80
2018-05-08T13:58:23.000Z
2018-06-13T09:04:59.000Z
code/aufgabe-3.py
chrissiek/datenanalyse-ss18
5080a4f67748dbfad7fbe88402156c0f9665ac08
[ "CC-BY-4.0" ]
31
2018-05-15T19:42:08.000Z
2018-06-04T11:39:17.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt def import_data(filename, encoding): df = pd.read_csv(filename, sep=';', decimal=',', encoding=encoding) return df if __name__ == '__main__': df_nrw17 = import_data('../data/nrw17.csv', 'utf-8') df_nrw17['gkz'] = [int(gkz[1:]) ...
46.972973
119
0.64672
2bacc06505a8b41fb326a3b133abcacba7ec893c
1,286
py
Python
WeChatTools/Utils/ConfigParser.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
WeChatTools/Utils/ConfigParser.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
WeChatTools/Utils/ConfigParser.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- # python35 class ConfigParser(object): def __init__(self, config_file, list_split_format, tuple_split_format): self.config_file = config_file self.list_split_format = list_split_format self.tuple_split_format = tuple_split_format def get(self, attr_name): ...
41.483871
112
0.57776
2bbeba515dd5c6f5cd7223c390f9b003d832711f
821
py
Python
Algorithms/2_Implementation/51.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
1
2021-11-25T13:39:30.000Z
2021-11-25T13:39:30.000Z
Algorithms/2_Implementation/51.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
Algorithms/2_Implementation/51.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/halloween-sale/problem #!/bin/python3 import math import os import random import re import sys # # Complete the 'howManyGames' function below. # # The function is expected to return an INTEGER. # The function accepts following parameters: # 1. INTEGER p # 2. INTEGER d # 3. ...
19.093023
62
0.662607
a6416fdeac65009f2c3cb985e16f13ecdc518c1e
2,302
py
Python
v406/python/rechnungDoppel1.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
2
2019-12-10T10:25:11.000Z
2021-01-26T13:59:40.000Z
v406/python/rechnungDoppel1.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
null
null
null
v406/python/rechnungDoppel1.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
1
2020-12-06T21:24:58.000Z
2020-12-06T21:24:58.000Z
import numpy as np from uncertainties import ufloat from scipy import optimize import matplotlib.pyplot as plt print("-------------doppelspalt1--------------") doppel1, Int1 = np.genfromtxt('python/doppelspalt1.txt', unpack=True) dsg2 = 0.875 # abstand schirm gitter in meter g1 = 0.5e-3 # in meter λ = 635e-9 # in ...
29.896104
110
0.616421
5b50f69fe48b216c08ea87143c5957ac1306cef9
5,393
py
Python
wechat/settings.py
francisar/wechat
8932feb4aacc6df27a472e3278780fcdd41bc47c
[ "MIT" ]
null
null
null
wechat/settings.py
francisar/wechat
8932feb4aacc6df27a472e3278780fcdd41bc47c
[ "MIT" ]
null
null
null
wechat/settings.py
francisar/wechat
8932feb4aacc6df27a472e3278780fcdd41bc47c
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- """ Django settings for wechat project. Generated by 'django-admin startproject' using Django 1.8.3. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.co...
28.839572
148
0.618209
5bb2e54bc36ad466c43c42ae8459da31be991fa4
5,445
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/ftd/test_ftd_configuration.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/ftd/test_ftd_configuration.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/ftd/test_ftd_configuration.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# Copyright (c) 2018-2019 Cisco and/or its affiliates. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any la...
43.56
155
0.731313
34297e9fc37925bf4265bc985f8a7b3221024abf
953
py
Python
Website/LesenDerDatenbank.py
Jugendhackt/Halbautomatische_Hobbygaertnerhilfe
e277b1eb18b592db24755e6966f1e1738a3980cc
[ "MIT" ]
6
2019-07-25T12:43:10.000Z
2021-12-11T14:41:53.000Z
Website/LesenDerDatenbank.py
Jugendhackt/Halbautomatische_Hobbygaertnerhilfe
e277b1eb18b592db24755e6966f1e1738a3980cc
[ "MIT" ]
null
null
null
Website/LesenDerDatenbank.py
Jugendhackt/Halbautomatische_Hobbygaertnerhilfe
e277b1eb18b592db24755e6966f1e1738a3980cc
[ "MIT" ]
1
2021-09-09T19:50:32.000Z
2021-09-09T19:50:32.000Z
import time # temp, luftdr, luftfe, boden, helli while True: Temperatur = open("Temperatur.txt", "r") temp = Temperatur.readline() Temperatur.close() Luftdruck = open("Luftdruck.txt", "r") luftdr = Luftdruck.readline() Luftdruck.close() Luftfeuchtigkeit = open("Luftfeuchtigkeit.txt", "r")...
31.766667
58
0.634837
ca487bac8b99428aa1e0da84bb635753034ec2f5
3,991
py
Python
jsonconfig/jsonoptions.py
realasberg/pyMANGA
c253ebc52a9d71e35b778735a7375ffc9d37aa69
[ "MIT" ]
null
null
null
jsonconfig/jsonoptions.py
realasberg/pyMANGA
c253ebc52a9d71e35b778735a7375ffc9d37aa69
[ "MIT" ]
null
null
null
jsonconfig/jsonoptions.py
realasberg/pyMANGA
c253ebc52a9d71e35b778735a7375ffc9d37aa69
[ "MIT" ]
null
null
null
## Helper script for the pyManga.json notation. # def parse_jsontemplate: returns a python dictionary with the resolved # dependencies. # def buildXML(option): returns xml string for a option object. import json from xml.etree import ElementTree as ET from xml.dom import minidom import copy ## Goes recursively thr...
31.179688
78
0.634929
ca8c1e13e96fa1c6ef1a612b181da7e0e6264de7
703
py
Python
Packs/CommonScripts/Scripts/VerifyIPv6Indicator/VerifyIPv6Indicator.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/VerifyIPv6Indicator/VerifyIPv6Indicator.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/VerifyIPv6Indicator/VerifyIPv6Indicator.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * import ipaddress def is_valid_ipv6_address(address): try: ipaddress.IPv6Address(address) return True except ValueError: return False def main(): the_input = demisto.args().get('input') the_input = argToList(the_i...
20.085714
55
0.657183
b6475148bcba0172d4e5251a56ad3666c87b35ea
544
py
Python
perfect-squares/perfect-squares.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
perfect-squares/perfect-squares.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
perfect-squares/perfect-squares.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def numSquares(self, n: int) -> int: bases = [i**2 for i in range(1,101)] # [1,4,9,16,...] dp=[0,1,2,3,1] for i in range(5, n+1): # case 1. perfect squares if i in bases: dp.append(1) continue # case 2. not p...
32
61
0.430147
1e189adde931b12c34d22a33014e33ca04feadee
578
py
Python
day43/main.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day43/main.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day43/main.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
from bs4 import BeautifulSoup import requests URL = "https://www.filmempfehlung.com/die-top-100.html" response = requests.get(URL) response.raise_for_status() soup = BeautifulSoup(response.text, "html.parser") movie_rankings = [int(ranking.getText()) for ranking in soup.find_all(name="span", class_="platznr round...
32.111111
108
0.705882
1e823b15b305a2a6dcb68316da1fbd7eb44b05f4
284
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_3_List/45. remove zeroes from a list.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/45. remove zeroes from a list.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/45. remove zeroes from a list.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a Python function to remove zeroes from the below list. input_list = [1,2,0,9,7,0,2,6,0] """ def remove_zero(input_list): new_list = [] for i in input_list: if i == 0: pass else: new_list.append(i) return new_list
17.75
61
0.556338
94b3d9df38fe269c883ce74355ee7af000ab1136
71
py
Python
python/test/Test.py
StephanKoo/LED-AlarmClock
6936c201aa08037b130eafed7a5a71b73f8e1ac0
[ "Apache-2.0" ]
null
null
null
python/test/Test.py
StephanKoo/LED-AlarmClock
6936c201aa08037b130eafed7a5a71b73f8e1ac0
[ "Apache-2.0" ]
null
null
null
python/test/Test.py
StephanKoo/LED-AlarmClock
6936c201aa08037b130eafed7a5a71b73f8e1ac0
[ "Apache-2.0" ]
1
2021-08-13T20:38:50.000Z
2021-08-13T20:38:50.000Z
import Clock clock: Clock = Clock.DummyClock() clock.ShowText("gg") #
11.833333
33
0.71831
bf4d92950ec69afd4ae97a4f18b54ccbde186f7c
1,164
py
Python
app/__init__.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
app/__init__.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
app/__init__.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding=utf-8 -*- import os from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) '''优化前端返回中文数据进行正常显示,用于flask restful api接口开发使用''' app.config.update(RESTFUL_JSON=dict(ensure_ascii=False)) app.config['JSON_AS_ASCII'] = False app.secret_key = os.urandom(32) "...
21.962264
99
0.767182
bfc191b4c97dcc0d1f29abfeff0bbde9fc6ac713
814
py
Python
scenarios/continuous_uav_base/agents.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
2
2022-02-24T08:21:49.000Z
2022-03-10T08:57:35.000Z
scenarios/continuous_uav_base/agents.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
1
2022-02-24T08:40:21.000Z
2022-02-24T12:01:58.000Z
scenarios/continuous_uav_base/agents.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
null
null
null
import numpy as np class AgentGroup2D: def __init__(self, n_agent, pos=None, vel=None, mass=1): self.n_agent = n_agent if pos is not None: assert isinstance(pos, np.ndarray) assert pos.shape == (n_agent, 2) self.pos = pos else: self.pos = np.r...
23.941176
63
0.530713
449ca5a1b58703ecc5603467a97c142a3549be2c
1,089
py
Python
matplotlib/my_bar_chart/QtMpl.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
matplotlib/my_bar_chart/QtMpl.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
matplotlib/my_bar_chart/QtMpl.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
import PyQt5 import matplotlib import matplotlib.pyplot from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg class QtMpl(FigureCanvasQTAgg): ''' ''' def __init__(self, parent): #self.fig = matplotlib.figure.Figure() #self.axes = matplotlib.pyplot.gca() self.fig, sel...
27.923077
84
0.617998
44fd5f6f09897976bf907b93fe523c7d071353df
4,492
py
Python
transonic_cl/run_backend.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
transonic_cl/run_backend.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
transonic_cl/run_backend.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
"""Command line =============== Internal API ------------ .. autofunction:: main """ import subprocess import sys import logging from pathlib import Path import sysconfig from time import time, sleep from shutil import copyfile import os logger = logging.getLogger("transonic") logger.setLevel(logging.INFO) ext_su...
27.558282
84
0.565895
978dce5f4ec7b78e2cbc99654c8a10ab8adaa241
232
py
Python
solutions/mols_search/mols-search-webserver/src/service/theardpool.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2020-03-10T07:43:08.000Z
2020-03-10T07:43:08.000Z
solutions/mols_search/mols-search-webserver/src/service/theardpool.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/mols_search/mols-search-webserver/src/service/theardpool.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2020-04-03T05:24:47.000Z
2020-04-03T05:24:47.000Z
import threading from concurrent.futures import ThreadPoolExecutor from service.load import do_load def thread_runner(thread_num, func, *args): executor = ThreadPoolExecutor(thread_num) f = executor.submit(do_load, *args)
25.777778
49
0.793103
978f1f6e7d11425ae3c113059ee53358e66c20a0
2,177
py
Python
Interview Preparation Kits/Interview Preparation Kit/Search/Swap Nodes/swap_nodes.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Interview Preparation Kits/Interview Preparation Kit/Search/Swap Nodes/swap_nodes.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Interview Preparation Kits/Interview Preparation Kit/Search/Swap Nodes/swap_nodes.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import os import sys sys.setrecursionlimit(1500) from queue import Queue # # Complete the swapNodes function below. # class Node: def __init__(self, index, depth): self.index = index self.depth = depth self.left = None self.right = None def __str__(self): ...
21.135922
66
0.586587
97b980d9ae951ce224081a8adf19fc72ccb80916
1,108
py
Python
Beginner/03. Python/SelSort.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
1
2021-10-06T13:55:02.000Z
2021-10-06T13:55:02.000Z
Beginner/03. Python/SelSort.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
Beginner/03. Python/SelSort.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
#Selection Sort def selectionSort(arr): #the outer loop will traverse through all the element starting from the 0th index to n-1 for i in range(0, len(arr)-1): #minimum value is initialized to i that everytime checks for the minimum value in the unsorted list of 'i' min_elem = i #the inn...
46.166667
114
0.652527
c14b39fa8dba3890f04bc8b65eee3176aad8b147
5,667
py
Python
src/bo4e/com/preisposition.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/com/preisposition.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/com/preisposition.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Preisposition class and corresponding marshmallow schema for de-/serialization """ from decimal import Decimal from typing import List, Optional import attr from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] from bo4e.com.com import COM, COMSchema from bo4e.com.p...
48.435897
181
0.773954
c18b879fb9fb83650734748efb60bf3faf202914
200
py
Python
ds/practice/daily_practice/20-11/test_hex_convert_rec.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
ds/practice/daily_practice/20-11/test_hex_convert_rec.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
ds/practice/daily_practice/20-11/test_hex_convert_rec.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
"""Basic unit tests for recursive hex-decimal converter""" # %% import pytest from hex_convert_rec import * # %% hex_in = "#7D3545" def test_hex2dec(): assert hex2dec(hex_in) == False # %%
11.764706
58
0.665
c1a5e6bf468208537f4bf9aa74478c749f578e40
233
py
Python
mysite/app/urls.py
RadchenkoVlada/Social_Networt
5eb04ababd9f0cb3ff966f269e575fdda67588be
[ "MIT" ]
null
null
null
mysite/app/urls.py
RadchenkoVlada/Social_Networt
5eb04ababd9f0cb3ff966f269e575fdda67588be
[ "MIT" ]
null
null
null
mysite/app/urls.py
RadchenkoVlada/Social_Networt
5eb04ababd9f0cb3ff966f269e575fdda67588be
[ "MIT" ]
null
null
null
from django.urls import path from .views import PostView app_name = "app" # app_name will help us do a reverse look-up latter. urlpatterns = [ path('app/', PostView.as_view()), path('posts/<int:pk>', PostView.as_view()) ]
19.416667
52
0.686695
a9f1c21bbbda31c26272a64c9e5f015ea7ff4761
3,090
py
Python
sakf/app/auth/auth.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
sakf/app/auth/auth.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
sakf/app/auth/auth.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 登陆/登出 import time import json import logging from sakf.app.sakf import base from sakf.utils import md5_encryption from sakf.db.model import Auth class LoginHandler(base.BaseHandlers): def get_user_url(self, group_id): """ 获取用户的所有可访问的url :param username: :return: """ ...
35.930233
117
0.63301
99c73be2f4d3ac2b7ee567eaa9fb3ba292ecc577
7,047
py
Python
src/server/bo/Project.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/server/bo/Project.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/server/bo/Project.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
from server.bo.NamedBusinessObject import NamedBusinessObject from server.Automat import Automat from datetime import date class Project(Automat, NamedBusinessObject): """Realization of an examplary Project.""" def __init__(self): super().__init__() self._short_description = "" ...
35.235
117
0.665815
d891c667b70b121a2562575dc8fd1c1eb075a637
880
py
Python
torch/quantization/fx/utils.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
5
2018-04-24T13:41:12.000Z
2019-07-09T07:32:09.000Z
torch/quantization/fx/utils.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
14
2021-10-14T06:58:50.000Z
2021-12-17T11:51:07.000Z
torch/quantization/fx/utils.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
7
2020-08-31T22:49:59.000Z
2020-09-15T14:29:07.000Z
# flake8: noqa: F401 r""" This file is in the process of migration to `torch/ao/quantization`, and is kept here for compatibility while the migration process is ongoing. If you are adding a new entry/functionality, please, add it to the appropriate files under `torch/ao/quantization/fx/`, while adding an import stateme...
31.428571
85
0.786364
2b1f1eb74209a6d941554bcd1cd78173c0ba6865
1,081
py
Python
Python/Programação_em_Python_Essencial/4- Estruturas de Repetição/entendendo_ranges.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Programação_em_Python_Essencial/4- Estruturas de Repetição/entendendo_ranges.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Programação_em_Python_Essencial/4- Estruturas de Repetição/entendendo_ranges.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
""" Ranges - Precisamos conhecer o loop for para usar os ranges. - Precisamos conhecer o range para trabalhar melhor com o loop for. Ranges são utilizados para gerar sequências numéricas, não de forma aleatória, mas sim de maneira específicada. # Forma 1 range(valor_de_parada) OBS: valor_de_parada não inclusive (...
20.396226
104
0.751156
9994f0d5eff017409af987b59602729d1c106577
1,838
py
Python
python/en/archive/topics/temp/audio/audiosp/pcm2wav/src/main.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/temp/audio/audiosp/pcm2wav/src/main.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/temp/audio/audiosp/pcm2wav/src/main.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ test_pcm2wav An example Python script that converts .pcm files in directory 'audio/pcm' to .wav files in directory 'audio/wav'. audiosp module has class AudioSignalProcessing where pcm2wav is a member function. This script is designed to run by run_pcm2wav $ ./...
33.418182
86
0.646899
519b982bebf3f031ac0b4c5b9bb537e16cf99639
6,016
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/output/tripinfoByTAZ.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/output/tripinfoByTAZ.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/output/tripinfoByTAZ.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2012-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is avail...
44.562963
120
0.609874
741c711b611cfeea03da40bad7c1162b055f4a8a
5,823
py
Python
game.py
marvinferber/mazegame
9bf9d07914aa77989172b97199116ebd4c28a95c
[ "Apache-2.0" ]
null
null
null
game.py
marvinferber/mazegame
9bf9d07914aa77989172b97199116ebd4c28a95c
[ "Apache-2.0" ]
null
null
null
game.py
marvinferber/mazegame
9bf9d07914aa77989172b97199116ebd4c28a95c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import time import curses from sys import exit import threading SÜD = 2 NORD = 0 OST = 1 WEST = 3 KEY_RIGHT = 454 KEY_LEFT = 452 KEY_DOWN = 456 KEY_UP = 450 def error(msg): print(msg) exit(-1) def gamefieldToArray(thisfield): splitlines = thisfield.splitlines() arrfield = []...
32.35
86
0.508844
746013d0a32916778a5beae443f6978ca34f5fd6
621
py
Python
books/PythonAutomate/pdf_word_documents/overlaying_pages.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/pdf_word_documents/overlaying_pages.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/pdf_word_documents/overlaying_pages.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""overlaying_pages.py 워터마크 넣기 """ import PyPDF2 pdf_reader = PyPDF2.PdfFileReader(open("meetingminutes.pdf", "rb")) minutes_first_page = pdf_reader.getPage(0) pdf_watermark_reader = PyPDF2.PdfFileReader(open("watermark.pdf", "rb")) minutes_first_page.mergePage(pdf_watermark_reader.getPage(0)) # 페이지 겹치기 pdf_writer ...
28.227273
72
0.79066
74a4d9236926bfb1a80d9de9cec1b01441f4a688
423
py
Python
transonic/backends/test_typing.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
transonic/backends/test_typing.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
transonic/backends/test_typing.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
import numpy as np from transonic import Array from .typing import base_type_formatter def compare(dtype, ndim, mem_layout, result): A = Array[dtype, ndim, mem_layout] assert A.format_as_backend_type(base_type_formatter) == result def test_array(): compare(int, "2d", "C", "int[:, :] order(C)") com...
24.882353
66
0.64539
24ef9446f9137ca2adc3636747d82864efc69f66
9,562
py
Python
Packs/Sixgill-Darkfeed/Scripts/SixgillSearchIndicators/SixgillSearchIndicators_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Sixgill-Darkfeed/Scripts/SixgillSearchIndicators/SixgillSearchIndicators_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Sixgill-Darkfeed/Scripts/SixgillSearchIndicators/SixgillSearchIndicators_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import demistomock as demisto from SixgillSearchIndicators import search_indicators json_raw_data = '''[ { "Contents": [ { "CustomFields": { "actor": "random", "description": "Malware available for download from file-sharing ...
49.802083
120
0.47124
8e926a824d78f4b663dd374489a431ced6bf67ec
2,181
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/62a1/lru_cache/lru_cache.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/62a1/lru_cache/lru_cache.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/62a1/lru_cache/lru_cache.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
from doubly_linked_list import DoublyLinkedList class LRUCache: def __init__(self, limit=10): # Our LRUCache class keeps track of: # the max number of nodes it can hold self.max = limit # a doubly-linked list that holds the key-value entries in the correct order self.node_lis...
44.510204
175
0.6442
d93efe62e634344bc3f077c8943183f69fe89605
1,908
py
Python
jumeaux/domain/config/vo.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/domain/config/vo.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/domain/config/vo.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
# -*- coding: utf-8 -*- from owlmixin import OwlMixin, TOption, TDict, TList, OwlEnum from jumeaux.addons import Addons class NotifierType(OwlEnum): SLACK = "slack" class QueryCustomization(OwlMixin): overwrite: TOption[TDict[TList[str]]] remove: TOption[TList[str]] class PathReplace(OwlMixin): b...
22.186047
75
0.677673
30b1caeac8a2ca117b8d6059aa5964ef4836469d
106
py
Python
ryu/app/otherApp/topo/test.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/otherApp/topo/test.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/otherApp/topo/test.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 import time for i in range(100): print('log-{}'.format(i)) time.sleep(1)
17.666667
29
0.613208
ebbc5838873f02c0cd955590a931db81005eb282
522
py
Python
benwaonline/gateways/tag_gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
benwaonline/gateways/tag_gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
benwaonline/gateways/tag_gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
from benwaonline.gateways import EntityGateway, single from benwaonline.assemblers import make_entity class TagGateway(EntityGateway): _entity = 'tag' def get_by_name(self, name): tag = self.entity(name=name) r = self._filter(tag) e = make_entity(self.entity.type_, r.json(), many=True)...
27.473684
63
0.664751
baba6fd9942cf80d811573b3d889290b38ac0aa7
7,668
py
Python
Dinsel/ex5/ex5.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
11
2017-04-21T11:39:55.000Z
2022-02-11T20:25:18.000Z
Dinsel/ex5/ex5.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
69
2017-04-26T09:30:38.000Z
2017-08-01T11:31:21.000Z
Dinsel/ex5/ex5.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
53
2017-04-20T16:16:11.000Z
2017-07-19T12:53:01.000Z
#!/usr/bin/env python3 import sys import numpy as np import matplotlib.pyplot as plt from collections import defaultdict, deque, OrderedDict from random import shuffle, choice class Graph(): """This class provides the basic functionality for graph handling.""" def __init__(self): """Initialize the di...
30.428571
125
0.540428
babf320a9ef9ff2840a47777c569588fe70ed27b
2,354
py
Python
project/api/event_date_definition/schemas.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/api/event_date_definition/schemas.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/api/event_date_definition/schemas.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from dateutil.rrule import rrulestr from marshmallow import ValidationError, fields from project.api.fields import CustomDateTimeField from project.api.schemas import IdSchemaMixin, SQLAlchemyBaseSchema from project.models import EventDateDefinition class EventDateDefinitionModelSchema(SQLAlchemyBaseSchema): cla...
28.02381
165
0.725573
2403dd54c5ead196478b7e7b045fdd2f8232e8df
1,427
py
Python
BluePrint/apps/forms.py
CodeMath/jinrockets
6bb26e9ca66ba951ab2d34bf1ffe79b2c605963f
[ "MIT" ]
null
null
null
BluePrint/apps/forms.py
CodeMath/jinrockets
6bb26e9ca66ba951ab2d34bf1ffe79b2c605963f
[ "MIT" ]
null
null
null
BluePrint/apps/forms.py
CodeMath/jinrockets
6bb26e9ca66ba951ab2d34bf1ffe79b2c605963f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from flask.ext.wtf import Form from wtforms import StringField, PasswordField from wtforms import validators from wtforms.fields.html5 import EmailField class JoinForm(Form): email = EmailField( u'이메일', [validators.data_required(u'이메일을 입력하시기 바랍니다.'), validators.Email(u'이메일...
30.361702
92
0.629993
23807879037221f081b5807ddd15bffbc6f60603
3,507
py
Python
misc/angrbox/deploy/session.py
b01lers/circle-city-ctf-2021
5d6c341f8d9647487dc69df84a4bea5e61d7ca43
[ "MIT" ]
9
2021-06-13T19:33:53.000Z
2021-10-04T13:17:26.000Z
CircleCityCon/2021/misc/angrbox/session.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-06-13T23:20:05.000Z
2021-06-13T23:20:05.000Z
CircleCityCon/2021/misc/angrbox/session.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-06-14T02:09:46.000Z
2021-06-14T02:09:46.000Z
import os from pathlib import Path import subprocess import string from typing import Optional class MyException(Exception): pass def compile(basename: str, src: bytes) -> Path: with open(f"/opt/transfer/{basename}.c", "wb") as f: f.write(src) cmd = f"/opt/jailyard/compile.sh {basename}" po...
25.977778
79
0.583405
d1b92c52bde86a70804f8bd2b3d4e7a7b9ae81e4
49
py
Python
tests/context.py
ISalimzhanov/devops_lab1
ea9b271d5d6fed3f85b2c90f61f4a9dd13c5ece2
[ "PSF-2.0" ]
null
null
null
tests/context.py
ISalimzhanov/devops_lab1
ea9b271d5d6fed3f85b2c90f61f4a9dd13c5ece2
[ "PSF-2.0" ]
null
null
null
tests/context.py
ISalimzhanov/devops_lab1
ea9b271d5d6fed3f85b2c90f61f4a9dd13c5ece2
[ "PSF-2.0" ]
null
null
null
import web_app import web_app.helpers as helpers
16.333333
33
0.857143
ee07a569897090ab18a8dcfd1fe9affbe7615abb
382
py
Python
src/resources/clients/python_client/example.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/resources/clients/python_client/example.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/resources/clients/python_client/example.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import sys __system_bytecode_setting = sys.dont_write_bytecode sys.dont_write_bytecode = True import visitproxy host = "localhost" port = 9002 password = "bob" BUFSIZE = 4096 visType = "none" #create a VisIt Proxy vp = visitproxy.ViewerProxy() gmap = sys.modules["__main__"].__dict__ gmap["vp"] = vp #connect to exis...
17.363636
51
0.76178
c9d8fa41043a1072bb10ea3ffef7fe8f73e75822
363
py
Python
tests/test_factory.py
schmocker/pv-FHNW
5066e0bc7ce76be5d1a930b50034c746b232a9f8
[ "MIT" ]
1
2019-10-31T13:34:12.000Z
2019-10-31T13:34:12.000Z
tests/test_factory.py
schmocker/pv-FHNW
5066e0bc7ce76be5d1a930b50034c746b232a9f8
[ "MIT" ]
1
2019-05-27T13:03:25.000Z
2019-05-27T13:03:25.000Z
tests/test_factory.py
schmocker/pv-FHNW
5066e0bc7ce76be5d1a930b50034c746b232a9f8
[ "MIT" ]
null
null
null
from pvtool import create_app def test_links(client): """Testing the elements from nav bar""" assert client.get('/').status_code == 200 assert client.get('/upload').status_code == 200 assert client.get('/measurements').status_code == 200 assert client.get('/pv_modules').status_code == 200 asse...
30.25
57
0.688705
4e981e9315dd30c3e441f3177a49fdefea243d32
950
py
Python
models/hr_applicant.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_applicant.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_applicant.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
3
2017-09-11T08:02:11.000Z
2020-04-04T08:13:23.000Z
# -*- coding: utf-8 -*- from openerp import api, exceptions, fields, models, _ class HrApplicant(models.Model): _inherit = 'hr.applicant' qualification_ids = fields.One2many(string='Qualifications', comodel_name='hr.applicant.qualification', inverse_name='applicant_id') formation_ids = fields.One2many(st...
67.857143
149
0.781053
6d8636ccd019f7aaa1621ce2457fbd65519abab6
730
py
Python
Python/zzz_training_challenge/UdemyPythonPro/Chapter3_BasicFeatures/MemoryManagement/local_and_global_scope.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/UdemyPythonPro/Chapter3_BasicFeatures/MemoryManagement/local_and_global_scope.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/UdemyPythonPro/Chapter3_BasicFeatures/MemoryManagement/local_and_global_scope.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Konstanten am Anfang deklarieren und NICHT verändern # Globale Variablen POWER_OF = 2 # lokale Variable a (referenz), b (lokal) def my_function(a): b = a**POWER_OF print(a, b) # in diesem Punkt kann nicht auf my_int_value zugegriffen werden def main(): my_int_value = 3 my_function(my_int_value) ...
23.548387
79
0.706849
6dc0e1bc01b48178eddc3194cd29c624091a793c
2,885
py
Python
Python/Video Poker/placar.py
gianvstheworld/POO
f6b9d3d351d703d974a6ca031ee636aea7119367
[ "MIT" ]
null
null
null
Python/Video Poker/placar.py
gianvstheworld/POO
f6b9d3d351d703d974a6ca031ee636aea7119367
[ "MIT" ]
null
null
null
Python/Video Poker/placar.py
gianvstheworld/POO
f6b9d3d351d703d974a6ca031ee636aea7119367
[ "MIT" ]
null
null
null
from deck import * class Placar(object): # definindo a classe placar def __init__(self, cartas): if not len(cartas) == 5: # caso o jogador não tenha o número de cartas correto, retorna um erro return "Número de cartas distribuído errado!" # atribui as cartas self.cartas = cart...
39.520548
127
0.609012
6dc83d2847408c78e3245987f5d0a9511f527940
5,331
py
Python
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/selftest/cases/reproducible.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/selftest/cases/reproducible.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Inspur/openbmc/poky/meta/lib/oeqa/selftest/cases/reproducible.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# # SPDX-License-Identifier: MIT # # Copyright 2019 by Garmin Ltd. or its subsidiaries from oeqa.selftest.case import OESelftestTestCase from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars import functools import multiprocessing import textwrap import unittest MISSING = 'MISSING' DIFFERENT = 'DIF...
33.111801
133
0.610955
c2e5356f3c6452ad4d86e28f72d4ad59eb5cf3b0
2,367
py
Python
src/models/chen2017/chennet.py
kaphka/imi-master-thesis
2331a3534dc32e30a1333bb21c68c1e1b07ec9e4
[ "MIT" ]
2
2018-04-27T09:02:15.000Z
2019-04-19T19:12:13.000Z
src/models/chen2017/chennet.py
kaphka/imi-master-thesis
2331a3534dc32e30a1333bb21c68c1e1b07ec9e4
[ "MIT" ]
1
2019-04-19T19:13:08.000Z
2021-02-22T21:29:55.000Z
src/models/chen2017/chennet.py
kaphka/imi-master-thesis
2331a3534dc32e30a1333bb21c68c1e1b07ec9e4
[ "MIT" ]
null
null
null
import torch if torch.cuda.is_available(): import torch.cuda as t else: import torch as t from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torchvision import torchvision.transforms as transforms import experiment.info as info clas...
28.178571
106
0.597381
6c42b91214b095f1ea49cd346641c4cfe3056a61
2,544
py
Python
Unpublished/BayesianRegression/bayesian_regression.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
null
null
null
Unpublished/BayesianRegression/bayesian_regression.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-02-11T23:44:52.000Z
2021-02-11T23:44:52.000Z
Unpublished/BayesianRegression/bayesian_regression.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-12-16T01:02:23.000Z
2021-12-16T01:02:23.000Z
# %% [markdown] # # Transport for London Cycle Data Exploration # # ## Dataset # The data was provided from TFL and was retrieved from Kaggle: # https://www.kaggle.com/hmavrodiev/london-bike-sharing-dataset # The dataset counts the number of journeys made per hour in each day of 2015-2017. # There are 17414 rows. ...
25.188119
133
0.608491
b0cffaadf7b6b37e864a782a6fd9ee0b772d0983
4,166
py
Python
Lab_01/List.py
SadequrRahman/advance-SoC
35da93adfcdb1b4ec740cb44ffc54d9c8cc7adc4
[ "BSD-4-Clause-UC" ]
null
null
null
Lab_01/List.py
SadequrRahman/advance-SoC
35da93adfcdb1b4ec740cb44ffc54d9c8cc7adc4
[ "BSD-4-Clause-UC" ]
null
null
null
Lab_01/List.py
SadequrRahman/advance-SoC
35da93adfcdb1b4ec740cb44ffc54d9c8cc7adc4
[ "BSD-4-Clause-UC" ]
null
null
null
# Author: Mohammad Sadequr Rahman # File Name: List.py # # Description: List processing: insert, remove, sort, find # this python funtion implement list operations # ################################################################# # Helper functions to sort the list # Here qui...
32.546875
86
0.518963
af5e1c07403f2a2d1609e0f66c31ca9c72481ac9
1,299
py
Python
gestionProtocolos_y_Estudios/admin.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T01:20:45.000Z
2021-01-09T01:20:45.000Z
gestionProtocolos_y_Estudios/admin.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T00:53:55.000Z
2021-01-09T00:53:55.000Z
gestionProtocolos_y_Estudios/admin.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-07T23:57:28.000Z
2021-01-07T23:57:28.000Z
# GESTION PROTOCOLOS Y ESTUDIOS from django.contrib import admin from gestionProtocolos_y_Estudios.models import direccionProtocolo # Register your models here. class direccionProtocoloAdmin(admin.ModelAdmin): list_display=("protocoloEstudio", "clave_Protocolo", "tipoInvestigacion", "aceptadoDiseño_Metodológico", "...
86.6
324
0.82756
a58b1ed3b725440b354aaecba0f876876c44121b
1,240
py
Python
test_Extractor.py
JonasFovea/PyDocToLaTeX
81f90cb82f9d7b8a8bab632a845b8ced42e3e8fa
[ "MIT" ]
null
null
null
test_Extractor.py
JonasFovea/PyDocToLaTeX
81f90cb82f9d7b8a8bab632a845b8ced42e3e8fa
[ "MIT" ]
1
2020-09-23T21:03:00.000Z
2020-09-23T21:03:00.000Z
test_Extractor.py
JonasFovea/PyDocToLaTeX
81f90cb82f9d7b8a8bab632a845b8ced42e3e8fa
[ "MIT" ]
null
null
null
import unittest from extractor import * class MyTestCase(unittest.TestCase): def test_loadFileContent(self): fn = "examplecode.py" cont = loadFileContent(fn) f = open(fn) fileCont = f.read() f.close() self.assertEqual(cont, fileCont) self.assertRaises(FileNo...
37.575758
200
0.615323
759523308ae19c495be924440efb6b5eab7200ef
5,870
py
Python
core.py
python3lover/Unchiku
2cf95f6628c516d51e29dc9f83667c9a00947a81
[ "MIT" ]
1
2018-11-07T22:19:56.000Z
2018-11-07T22:19:56.000Z
core.py
python3lover/Unchiku
2cf95f6628c516d51e29dc9f83667c9a00947a81
[ "MIT" ]
null
null
null
core.py
python3lover/Unchiku
2cf95f6628c516d51e29dc9f83667c9a00947a81
[ "MIT" ]
null
null
null
# /core.py # Transpiler # うんちく 0.3.0 Stable Build 17 # By Ken Shibata # Last Edited Sep 24, 2018 # This software is licensed under the GNU GPL 3, the GNU LGPL 3, the CC BY 4.0, or the CC BY-SA 4.0. You should have received a copy of the GNU GPL 3 in Licenses/GNU/GPL/3, the GNU LGPL 3 in Licenses/GNU/LGPL/3, the CC BY ...
42.846715
337
0.496422
9b4622158ac2905ec95f154a8e82ddd1a861cd0e
4,036
py
Python
bin/ziplist.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
5
2017-04-18T20:21:06.000Z
2020-12-28T05:44:39.000Z
bin/ziplist.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
35
2016-09-21T18:04:51.000Z
2020-03-11T02:39:20.000Z
bin/ziplist.py
username4gh/dotfiles
6ab3e6a7eecb82f01fadfa40a961164df34af091
[ "Unlicense" ]
2
2018-12-17T03:16:35.000Z
2020-10-18T10:09:01.000Z
#! /usr/bin/env python3 # coding=UTF-8 # stolen from https://unix.stackexchange.com/questions/239898/listing-files-from-nested-zip-files-without-extracting from __future__ import print_function import zipfile import io import os import re import sys PY2 = sys.version_info[0] == 2 PY3 = sys.version_info[0] == 3 zip_...
26.906667
116
0.559465
c84e2ebd68d9b3d6653c6f58ac75bf16b4b2f2f3
4,983
py
Python
src/visuanalytics/tests/analytics/transform/types/test_transform_calculate.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_calculate.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_calculate.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
import unittest from visuanalytics.tests.analytics.transform.transform_test_helper import prepare_test class TestTransformCalculate(unittest.TestCase): def setUp(self): self.data = { "testvalue1": 5, "testvalue2": 3.7, "testarray1": [5, 4, 7, 1, 3, 6], "tes...
32.782895
110
0.389926
9e4cf13a033ea73ec9edd586b9a5f5c13b3124db
1,351
py
Python
src/server/app/endpoints/dashboard/controllers.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
src/server/app/endpoints/dashboard/controllers.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
src/server/app/endpoints/dashboard/controllers.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
from ...db.settings import db, oidc, socketio from flask import Flask, Blueprint, render_template, abort, g, request from oauth2client.client import OAuth2Credentials from flask_socketio import emit, join_room, leave_room, send from flask_jwt_extended import (create_access_token, create_refresh_token, jwt_required, jw...
27.02
176
0.772021
c86d4966c7865e1c90c690945c5071c355640f51
1,140
py
Python
IVTp/2014/Shcherbakov_R_A/task_09_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Shcherbakov_R_A/task_09_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Shcherbakov_R_A/task_09_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 9. Вариант 22. # Создайте игру, в которой компьютер выбирает какое-либо слово, а игрок должен # его отгадать. Компьютер сообщает игроку, сколько букв в слове, и дает пять попыток # узнать, есть ли какая-либо буква в слове, причем программа может отвечать только # "Да" и "Нет". Вслед за тем игрок должен попробо...
31.666667
85
0.67807
c8cc5ac40ed099e77e579b3337a16903623046ef
369
py
Python
getm/monitor/views.py
jrite09/getm
4f087f7ba0905539dc593acf53e5d4490acae326
[ "MIT" ]
1
2020-01-15T14:49:54.000Z
2020-01-15T14:49:54.000Z
getm/monitor/views.py
jrite09/getm
4f087f7ba0905539dc593acf53e5d4490acae326
[ "MIT" ]
null
null
null
getm/monitor/views.py
jrite09/getm
4f087f7ba0905539dc593acf53e5d4490acae326
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse # Create your views here. def index (request): return render(request, "monitor/index.html") def register (request): return render(request, "monitor/register.html") def registered (request): return HttpResponse("TBD") def searching ...
24.6
51
0.747967
939007a0848a6fc6e55f27e9acb203a191bd0db7
704
py
Python
tools/httpServer.py
mgr-lhm/UnicodeEingabeKiwi2
5b577d662f3eb5987fa17c68ea5c9eb4f94badbe
[ "MIT" ]
null
null
null
tools/httpServer.py
mgr-lhm/UnicodeEingabeKiwi2
5b577d662f3eb5987fa17c68ea5c9eb4f94badbe
[ "MIT" ]
1
2022-03-29T09:55:30.000Z
2022-03-29T09:55:30.000Z
tools/httpServer.py
mgr-lhm/UnicodeEingabeKiwi2
5b577d662f3eb5987fa17c68ea5c9eb4f94badbe
[ "MIT" ]
1
2021-12-17T09:23:53.000Z
2021-12-17T09:23:53.000Z
#!/usr/bin/python3 from http.server import HTTPServer, SimpleHTTPRequestHandler import sys class CORSRequestHandler(SimpleHTTPRequestHandler): def end_headers(self): self.send_header('Access-Control-Allow-Origin', '*') self.send_header('Access-Control-Allow-Methods', 'GET') self.send_head...
39.111111
90
0.721591
9e02583ee18c6b3fed4046fa4daafc0814406c65
1,315
py
Python
kts/ui/highlighting.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/ui/highlighting.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/ui/highlighting.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
from pygments import token as pt, highlight from pygments.formatters import HtmlFormatter from pygments.lexers import get_lexer_by_name from pygments.style import Style class KTSStyle(Style): default_style = "bg: #000000" styles = { pt.Comment: 'italic #408080', pt.Keyword: 'bold #4caf50', ...
27.978723
90
0.63346
5ff4e3974e1f4ddea0c1b4f10648454d9233e899
4,749
py
Python
marsyas-vamp/marsyas/scripts/chord-detection/scripts/evaluateChords.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/chord-detection/scripts/evaluateChords.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/chord-detection/scripts/evaluateChords.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import argparse, re ################################################################################ # Parse Command-line Arguments # parser = argparse.ArgumentParser(description='Evaluate chord annotations.') parser.add_argument('chordfile', metavar='chordfile', type=str, nargs=1, ...
39.575
124
0.468099
47603c6bae289820e84b9b79c60c7e9d050d2de4
677
bzl
Python
kythe/go/test/tools/empty_corpus_checker/empty_corpus_test.bzl
wcalandro/kythe
64969a853711c228b4e3cfc3ce91b84b5bb853d7
[ "Apache-2.0" ]
1,168
2015-01-27T10:19:25.000Z
2018-10-30T15:07:11.000Z
kythe/go/test/tools/empty_corpus_checker/empty_corpus_test.bzl
wcalandro/kythe
64969a853711c228b4e3cfc3ce91b84b5bb853d7
[ "Apache-2.0" ]
2,811
2015-01-29T16:19:04.000Z
2018-11-01T19:48:06.000Z
kythe/go/test/tools/empty_corpus_checker/empty_corpus_test.bzl
wcalandro/kythe
64969a853711c228b4e3cfc3ce91b84b5bb853d7
[ "Apache-2.0" ]
165
2015-01-27T19:06:27.000Z
2018-10-30T17:31:10.000Z
def empty_corpus_test(name, entries, allowed_corpora = []): """Instantiates a test that ensures all vnames in `entries` have a non-empty corpus.""" args = ["$(location %s)" % entries] if len(allowed_corpora) > 0: args.append("--allowed_corpora=" + ",".join(allowed_corpora)) native.sh_test( ...
33.85
93
0.587888
ef6ed88a2b4fcbd4fc3304dd3859700c5b3f2e74
153
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.12-list-index.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.12-list-index.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.12-list-index.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
def test_fnc(li): li[0] = 10 my_list = [1, 2, 3, 4] print("before function call", my_list) test_fnc(my_list) print("after function call", my_list)
17
38
0.673203
4be317d38594925f311808e88a540fcaaba50aba
791
py
Python
partner_ngos/fund_management/doctype/project_proposal/project_proposal.py
AkramMutaher/partner_ngos
4a345fb6989ff5a21db7fca07aa4e5174dca8f59
[ "MIT" ]
1
2021-06-03T17:14:08.000Z
2021-06-03T17:14:08.000Z
partner_ngos/fund_management/doctype/project_proposal/project_proposal.py
AkramMutaher/partner_ngos
4a345fb6989ff5a21db7fca07aa4e5174dca8f59
[ "MIT" ]
null
null
null
partner_ngos/fund_management/doctype/project_proposal/project_proposal.py
AkramMutaher/partner_ngos
4a345fb6989ff5a21db7fca07aa4e5174dca8f59
[ "MIT" ]
1
2021-10-09T16:20:09.000Z
2021-10-09T16:20:09.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, Akram Mutaher and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document from frappe.utils import (flt) from frappe.contacts.address_and_contact im...
30.423077
100
0.762326
19cede39874c1742c8fb7b2a0b3920e2f730db72
3,250
py
Python
src/test/visit_test_ctest.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/visit_test_ctest.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/visit_test_ctest.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. # ---------------------------------------------------------------------------- # Method: ctestRepo...
38.235294
114
0.657538
c2078156a8a20d644b7e67dfaa40928a87960ed7
1,556
py
Python
InterviewBit_problems/Sorting/Max NonNegative SubArray/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
InterviewBit_problems/Sorting/Max NonNegative SubArray/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
InterviewBit_problems/Sorting/Max NonNegative SubArray/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
''' - Here we are taking a List A - maxset() function will take the List A and find out the maximum non-negative subarray - Firstly we are traversing the List A and storing the subarrays of positive numbers in subarr - After that we are finding the sum of elements of first subarray and storing in mx - After finding the...
35.363636
104
0.607969