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
3fb4369a93bd9e030d9cd9b63b43cc86bfc44b1c
2,934
py
Python
python/transducers.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
python/transducers.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
python/transducers.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
import math def frespetowav(frequency, speed): return speed / frequency def wavdimtonrf(wavelength, diameter): return diameter**2 / 4 / wavelength def idxtopre(idx, args): precision, flat_active_area, radius_of_curvature, near_field = args distance = idx / precision if flat_active_area: ...
33.724138
123
0.670757
b7aac668afb0ae83b9ed3a686e30806093a29b64
561
py
Python
src/bo4e/enum/steuerkennzeichen.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/steuerkennzeichen.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/steuerkennzeichen.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint: disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class Steuerkennzeichen(StrEnum): """ Zur Kennzeichnung verschiedener Steuersätze und Verfahren. """ UST_0 = "UST_0" #: Keine Umsatzsteuer, bzw. nicht steuerbar. UST_19 = "UST_19" #: Umsatzsteuer 19% UST_7 = "U...
33
74
0.673797
c42bdd60d9b3171bc4f1f501b305c6c99d4b6b8b
331
py
Python
Curso-Em-Video-Python/2Exercicios/004_Dissecando_uma_Variavel.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/004_Dissecando_uma_Variavel.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/004_Dissecando_uma_Variavel.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
n = input('Digite algo: ').lower() print(type(n)) print('So tem espaços?', n.isspace()) print('É um numero?', n.isnumeric()) print('É alfabetico?', n.isalpha()) print('É alfanumerico?', n.isalnum()) print('Esta em maiuscula?', n.isupper()) print('Esta em minuscula?',n.islower()) print('Esta capitalizada?', n.istitle())...
27.583333
40
0.667674
97e34534d9d7d07b4de86143a006ffebf6a85220
5,250
py
Python
Python/Programação_em_Python_Essencial/5- Coleções/conjuntos.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Programação_em_Python_Essencial/5- Coleções/conjuntos.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Programação_em_Python_Essencial/5- Coleções/conjuntos.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
""" Conjuntos - Conjutos em qualquer linguagem de programação, estamos fazendo referência á Teoria dos Conjuntos da Matemática. - Aqui no Python, os conjuntos são chamados de Sets. Dito isto, da mesma forma que na matemática: - Sets (conjuntos) não possuem valores duplicados; - Sets (conjuntos) não possuem valores...
24.193548
106
0.724762
58f3da3db3af3320e8d20fa0bd173fa67ea25adf
1,960
py
Python
Liter_Server/command.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
Liter_Server/command.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
Liter_Server/command.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
import json import User import Topic import Massage AVAILABLE_COMMANDS = { '/login': 2, '/new_topic': 1, '/update': 1, '/sendto': 2, '/close': 0 } def analysis(cmd: str, uid=None, ip=None, need=None): args = cmd.split(' ') cmd = args[0] para = tuple(args[1:]) if need and not cmd ...
32.131148
82
0.482143
188b8a649c81c028113d37ecada07dc76c57e87e
652
py
Python
rasa/shared/nlu/training_data/formats/__init__.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
30
2020-11-30T12:55:45.000Z
2022-01-20T02:53:03.000Z
rasa/shared/nlu/training_data/formats/__init__.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
209
2020-03-18T18:28:12.000Z
2022-03-01T13:42:29.000Z
rasa/shared/nlu/training_data/formats/__init__.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
10
2021-01-11T02:08:43.000Z
2021-11-19T09:12:46.000Z
from rasa.shared.nlu.training_data.formats.rasa_yaml import RasaYAMLReader from rasa.shared.nlu.training_data.formats.dialogflow import DialogflowReader from rasa.shared.nlu.training_data.formats.luis import LuisReader from rasa.shared.nlu.training_data.formats.markdown import ( MarkdownReader, MarkdownWriter, ...
43.466667
77
0.840491
83255651bbccb6f2ed1e002720b11d368460e864
126
py
Python
268-missing-number/268-missing-number.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
268-missing-number/268-missing-number.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
268-missing-number/268-missing-number.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def missingNumber(self, nums: List[int]) -> int: return list(set(range(len(nums)+1))-set(nums))[0]
42
57
0.642857
3688d293d2de76f38008ec04ac74884303968ec5
3,788
py
Python
5_DeepLearning-Visualization/1-CNN_OcclusionMap.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
5_DeepLearning-Visualization/1-CNN_OcclusionMap.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
5_DeepLearning-Visualization/1-CNN_OcclusionMap.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
''' anzeigen der Prediction pro Pixel - wie sicher ist sich das Netz ''' import os import numpy as np from sklearn.model_selection import train_test_split import tensorflow as tf import tensorflow.keras.backend as K from tensorflow.keras.utils import to_categorical from tensorflow.keras.layers import * from tensorf...
27.057143
86
0.671331
a18df2f653c99a326e78ba6102347470865ffe21
1,951
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v5_0/update_item_description_and_image.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v5_0/update_item_description_and_image.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v5_0/update_item_description_and_image.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt import frappe from frappe.website.utils import find_first_image from frappe.utils import cstr import re def execute(): item_details = frappe._dict() for d in frappe.db.sql("select name, des...
36.12963
98
0.70733
a191183837e76a09ce97b888f17779a9deeb0a71
2,181
py
Python
Hackergame_2020/超精巧的数字论证器/multi.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
Hackergame_2020/超精巧的数字论证器/multi.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
Hackergame_2020/超精巧的数字论证器/multi.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
import json from multiprocessing import Process from pathlib import Path res = {} def raw_set(seg, exp, val): if val in res[seg]: if len(exp) >= len(res[seg][val]): return res[seg][val] = exp def set(seg, exp): val = int(eval(exp)) # print(exp, val) raw_set(seg, exp, val) ...
22.484536
78
0.428244
a1924168bc0723a275593a56432130342fdaa54d
1,783
py
Python
verto/processors/BlockquoteBlockProcessor.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/processors/BlockquoteBlockProcessor.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/processors/BlockquoteBlockProcessor.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
from verto.processors.GenericContainerBlockProcessor import GenericContainerBlockProcessor from verto.errors.BlockquoteMissingFooterError import BlockquoteMissingFooterError BLOCKQUOTE_FOOTER_PREFIX = "- " class BlockquoteBlockProcessor(GenericContainerBlockProcessor): def __init__(self, *args, **kwargs): ...
38.76087
110
0.64498
a1a7ac2036fd01630e7e2f01ff94e32c551ed92d
134
py
Python
python/data_sutram/scraper/pil_test_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/data_sutram/scraper/pil_test_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/data_sutram/scraper/pil_test_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from __future__ import print_function from PIL import Image im = Image.open("img_1.jpg") print(im.format, im.size, im.mode) im.show()
22.333333
37
0.761194
a1c6ef768d5484659a230e401df565190f8f74c7
143
py
Python
PYTHON/Regex_and_Parsing/validating_postal_codes.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Regex_and_Parsing/validating_postal_codes.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Regex_and_Parsing/validating_postal_codes.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re n = input() print(bool(re.search(r'^[1-9][0-9]{5}$', n)) and bool(len(re.findall(r'(?=(\d)\d\1)', n)) < 2))
20.428571
95
0.552448
a1e483b090db799c3ae71510436182a0eed459f0
29,078
py
Python
fhirclient/r4models/consent_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/consent_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/consent_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07. # 2019, SMART Health IT. import os import io import unittest import json from . import consent from .fhirdate import FHIRDate class ConsentTests(unittest.TestCase): def instantiate_from(self, ...
70.40678
147
0.687977
3defc05c0c46b68ba1de544a53bf83de86e882d8
6,892
py
Python
tests/onegov/town6/test_views_forms.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town6/test_views_forms.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town6/test_views_forms.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import textwrap from datetime import date from onegov.form import FormCollection from onegov.ticket import Ticket from onegov.user import UserCollection from tests.onegov.org.common import get_mail from tests.onegov.town6.common import step_class import transaction from freezegun import freeze_time def test_form_ste...
35.895833
80
0.679919
b1265216d8c45739fa5e7a09c7eafb7db0638e41
13,809
py
Python
apps/analysis/views.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/analysis/views.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/analysis/views.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
from django.shortcuts import render, HttpResponseRedirect from apps.calc.measurement import measurement_obj from django.contrib.auth.decorators import login_required from django.http import JsonResponse import json from .json import NumPyArangeEncoder from apps.projects.models import Experiment, Project, Datarow, Value...
50.214545
135
0.635165
7710a9b426328bfabd70551b5f51a7cc2227bec1
305
py
Python
src/net_http.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/net_http.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/net_http.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/python """ This file is part of ZTC and distributed under the same license. http://bitbucket.org/rvs/ztc/ Copyright (c) 2011 Wrike, Inc [http://www.wrike.com] Copyright (c) 2011 Vladimir Rusinov <vladimir@team.wrike.com> """ from ztc.net.http import HTTP h = HTTP() h.get('ping', h.args[1])
21.785714
64
0.704918
7755f3db38e1000177c40ac3cf01a55b2509308c
909
py
Python
GUI/fbsrc/save_load_map.py
DrBumm/Minibyte-Engine
833bf00ff86603419476c8755f551c0f6b4ac86b
[ "Unlicense" ]
4
2019-08-16T20:48:33.000Z
2021-05-23T20:10:08.000Z
GUI/fbsrc/save_load_map.py
DrBumm/Minibyte-Engine
833bf00ff86603419476c8755f551c0f6b4ac86b
[ "Unlicense" ]
16
2019-08-21T19:06:15.000Z
2020-06-02T11:31:32.000Z
GUI/fbsrc/save_load_map.py
DrBumm/Minibyte-Engine
833bf00ff86603419476c8755f551c0f6b4ac86b
[ "Unlicense" ]
null
null
null
import os #os.chdir("C:/users/paulh/Desktop/Minibyte-Engine-master/GUI/fbsrc/Maps") def load(buttons, map_name, self): map_ = open("Maps/" + map_name, "r").read().split(";") # reads the button properties for i in range(400): # Changes the new buttons properties with the old (the saved version) properties ...
50.5
111
0.565457
6573e38dd21c5400719befbd0db18192b3d24dfb
303
py
Python
nz_django/day7/context_professor_demo/front/context_processors.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day7/context_professor_demo/front/context_processors.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day7/context_professor_demo/front/context_processors.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from .models import User #登录成功以后获取登录用户的详细信息 def front_user(request): user_id = request.session.get('user_id') context = {} if user_id: try: user = User.objects.get(pk=user_id) context['front_user'] = user except: pass return context
21.642857
47
0.587459
65e2ec34c8ee2270af2ece81753a731ab72c4939
353
py
Python
exercises/zh/exc_01_04.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/exc_01_04.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/exc_01_04.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
from spacy.lang.zh import Chinese nlp = Chinese() # 处理文本 doc = nlp( "在1990年,一份豆腐脑可能只要¥0.5。" "现在一份豆腐脑可能要¥5左右了。" ) # 遍历doc中的词符 for token in doc: # 检测词符的文本是否是"¥" if token.____ == "¥": # 获取文档中的下一个词符 next_token = ____[____] # 检测下一个词符是否组成一个数字 if ____.____: print(...
17.65
50
0.580737
02da9e911bd1fa9ac67322926c02525f7bc9fe85
8,129
py
Python
zengjingli/flask-tutorial/flaskr/db.py
lijianran/FlaskWeb
788f62d2bcdc374e03cc1623ee4bf21db697ace9
[ "Apache-2.0" ]
null
null
null
zengjingli/flask-tutorial/flaskr/db.py
lijianran/FlaskWeb
788f62d2bcdc374e03cc1623ee4bf21db697ace9
[ "Apache-2.0" ]
null
null
null
zengjingli/flask-tutorial/flaskr/db.py
lijianran/FlaskWeb
788f62d2bcdc374e03cc1623ee4bf21db697ace9
[ "Apache-2.0" ]
null
null
null
import sqlite3 import click from flask import current_app, g from flask.cli import with_appcontext import os import json def get_db(): if 'db' not in g: g.db = sqlite3.connect( current_app.config['DATABASE'], detect_types=sqlite3.PARSE_DECLTYPES ) g.db.row_factory ...
29.241007
154
0.585681
f30c7e9e3ad0847063a23c92766ed7493942b723
131
py
Python
src/gtps.py
DrBumm/Minibyte-Engine
833bf00ff86603419476c8755f551c0f6b4ac86b
[ "Unlicense" ]
4
2019-08-16T20:48:33.000Z
2021-05-23T20:10:08.000Z
src/gtps.py
DrBumm/Minibyte-Engine
833bf00ff86603419476c8755f551c0f6b4ac86b
[ "Unlicense" ]
16
2019-08-21T19:06:15.000Z
2020-06-02T11:31:32.000Z
src/gtps.py
DrBumm/Minibyte-Engine
833bf00ff86603419476c8755f551c0f6b4ac86b
[ "Unlicense" ]
null
null
null
# Get player position def get_player_pos(lvl): for i in range(len(lvl)): if lvl[i] == 2: return i
16.375
30
0.519084
b2149b3ccb4f0d6e30513a458c3308cad707e012
369
py
Python
Python/Exercícios_Python/033_ano_bissexto.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/033_ano_bissexto.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/033_ano_bissexto.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """033 - Ano Bissexto Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1yOru2IzEOESsGpIYDdnT5jANtmbIv9tC """ ano = int(input('Digite o ano: ')) if (ano % 4) == 0: print('O ano {} é um ano Bissexto!'.format(ano)) else: pri...
26.357143
77
0.669377
b2473d3f6d2a23799e3b4019210e3e678544d8a0
1,829
py
Python
src/onegov/election_day/layouts/detail.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/layouts/detail.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/layouts/detail.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from onegov.election_day.layouts.default import DefaultLayout class HiddenTabsMixin: """ Mixing for a generic handling of hiding any kind of menu or submenu tab on election, election_compound and vote detail layouts in combination with the yaml file config. ...
25.760563
76
0.647895
b266d21a20f86180cf1cae264f4eaa210a599766
6,707
py
Python
main.py
Hnatekmar/NN_Experiment
c8a2c7973dff1df32591a7c2ceaefc0dd53adaae
[ "MIT" ]
null
null
null
main.py
Hnatekmar/NN_Experiment
c8a2c7973dff1df32591a7c2ceaefc0dd53adaae
[ "MIT" ]
null
null
null
main.py
Hnatekmar/NN_Experiment
c8a2c7973dff1df32591a7c2ceaefc0dd53adaae
[ "MIT" ]
null
null
null
import numpy as np from scipy.optimize import * from PIL import Image import os import random import matplotlib.pyplot as plt def sigmoid(x): x = np.clip(x, -500, 500) return 1 / (1 + np.exp(-x)) def sigmoid_derivation(x): return np.multiply(x, (1.0 - x)) class NeuralNetwork: """ Třívrstvý víc...
34.219388
112
0.566572
0c3f00266d9207bba19887b04020f09e066cb53c
278
py
Python
log-demo/basic_logger.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
log-demo/basic_logger.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
log-demo/basic_logger.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
import logging #logging.basicConfig(filename="example.log", level=logging.DEBUG) logging.basicConfig(level=logging.INFO, format="%(asctime)s %(message)s") logging.debug("this message should go to the log file") logging.warning("Watch out!") logging.info("I told you so")
19.857143
73
0.748201
a7bdcc2d9e830111bce6c074fe01b4e0742c8a9f
231
py
Python
web/SecureUploader/solve.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
web/SecureUploader/solve.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
web/SecureUploader/solve.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
#!/usr/bin/python3.8 import requests import sys if len(sys.argv) < 2: print("Usage: solve.py http://host:port/") exit() URL = sys.argv[1] r = requests.post(URL + "upload", files={"file": ("/flag", "aa")}) print(r.text)
16.5
66
0.61039
3be3dcf5bb898df1fe0e8fc75fcaa54ff1b3c0e1
4,935
py
Python
frappe-bench/apps/erpnext/erpnext/assets/doctype/asset_maintenance/test_asset_maintenance.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/assets/doctype/asset_maintenance/test_asset_maintenance.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/assets/doctype/asset_maintenance/test_asset_maintenance.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest from frappe.utils import nowdate, add_days from erpnext.assets.doctype.asset_maintenance.asset_maintenance import calculate_next_due_date ...
35
98
0.727052
0240553e5a1fbf272402715335e58f50e03f31c1
1,870
py
Python
kollektiv5gui/util/api.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
3
2019-03-21T17:02:55.000Z
2019-04-04T18:16:10.000Z
kollektiv5gui/util/api.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
11
2019-10-30T12:05:39.000Z
2022-03-11T23:43:54.000Z
kollektiv5gui/util/api.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
1
2019-10-30T12:04:00.000Z
2019-10-30T12:04:00.000Z
import io import requests import json import random import time import threading from PIL import Image from kollektiv5gui.util import config, logging from json.decoder import JSONDecodeError __lock = threading.Lock() def __sendToApi(data): """ Classify an image using the API. data needs to contain the by...
27.910448
75
0.558289
ce584df92f82999ae3f907d0689f1ba3a539bc8c
2,037
py
Python
research/cv/CGAN/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/CGAN/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/CGAN/postprocess.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...
38.433962
101
0.642121
ceaf8e57949dddba9feb2f41b63a79e007df8c23
2,440
py
Python
Packs/CyberChef/Integrations/CyberChef/CyberChef.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CyberChef/Integrations/CyberChef/CyberChef.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CyberChef/Integrations/CyberChef/CyberChef.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 # noqa: F401 from CommonServerPython import * # noqa: F401 def test_module(client): data = {'input': 'One, two, three, four.', 'recipe': 'to decimal'} result = client._http_request('POST', '/bake', json_data=data) if result: return 'ok' ...
32.105263
87
0.601639
0b5ff3dde375f5779ff63c4ceb3bf9edfc7bfc84
430
py
Python
excel-sheet-column-number/excel-sheet-column-number.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
excel-sheet-column-number/excel-sheet-column-number.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
excel-sheet-column-number/excel-sheet-column-number.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def titleToNumber(self, columnTitle: str) -> int: import string alphabet = dict((key, i+1) for i, key in enumerate(string.ascii_uppercase)) mul={0:1} for i in range(1,8): mul[i]=mul[i-1]*26 # Base 26 calculation output=0 f...
28.666667
83
0.555814
653bfd02d4ba47300dfea379f47ae3f7c11e158a
5,027
py
Python
tests/onegov/ballot/collections/test_votes.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/ballot/collections/test_votes.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/ballot/collections/test_votes.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import date from onegov.ballot import Vote from onegov.ballot import VoteCollection def test_votes_by_date(session): session.add(Vote( title="first", domain='federation', date=date(2015, 6, 14) )) session.add(Vote( title="last", domain='canton', ...
25.261307
72
0.594987
cc05d3e65ce0c65faff88679a0e6f87f42a31b84
1,321
py
Python
0-newbooks/deep-image-prior/utils/matcher.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
0-newbooks/deep-image-prior/utils/matcher.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
0-newbooks/deep-image-prior/utils/matcher.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-10-14T07:30:18.000Z
2019-10-14T07:30:18.000Z
import torch import torch.nn as nn from torch.autograd import Variable class Matcher: def __init__(self, how='gram_matrix', loss='mse'): self.mode = 'store' self.stored = {} self.losses = {} if how in all_features.keys(): self.get_statistics = all_features[how] ...
23.175439
86
0.576836
cc2fbf1668de8ddea5a97de5a3526a2ed4340909
470
py
Python
gameOfLife/test.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
gameOfLife/test.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
gameOfLife/test.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
for a in range(2): for b in range(2): for c in range(2): for d in range(2): for e in range(2): for f in range(2): for g in range(2): for h in range(2): print(f"{a}{b}{c}{d}{e}{...
31.333333
66
0.357447
04509b1eca16644ea34af710e7e020232fa03979
210
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 57/57.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 57/57.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 57/57.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#Get the file in the attachment and produce the printed output import json from pprint import pprint with open("company1.json","r") as file: d = json.load(file) #d = json.load("company1.json") pprint(d)
19.090909
62
0.719048
045eacd21575a017190a7ff00bfc9eef4d114e0f
2,708
py
Python
repo/script.module.urlresolver/lib/urlresolver/plugins/vshareeu.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/script.module.urlresolver/lib/urlresolver/plugins/vshareeu.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/script.module.urlresolver/lib/urlresolver/plugins/vshareeu.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
""" vshare.eu urlresolver plugin Copyright (C) 2017 jsergio This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is di...
34.278481
94
0.662112
acb75ef4fdb0f06a4ea06c81543816d39312506a
2,296
py
Python
qmk_firmware/lib/python/qmk/cli/kle2json.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
2
2021-04-16T23:29:01.000Z
2021-04-17T02:26:22.000Z
qmk_firmware/lib/python/qmk/cli/kle2json.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/cli/kle2json.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
"""Convert raw KLE to JSON """ import json import os from pathlib import Path from argcomplete.completers import FilesCompleter from milc import cli from kle2xy import KLE2xy from qmk.converter import kle2qmk from qmk.json_encoders import InfoJSONEncoder @cli.argument('filename', completer=FilesCompleter('.json'), ...
37.032258
126
0.659843
acc1d677d50c70d912c18dd2fcb601e4a3112ba3
5,528
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/showDepartsAndArrivalsPerEdge.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/showDepartsAndArrivalsPerEdge.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/showDepartsAndArrivalsPerEdge.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2008-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 available at # https://www.ec...
40.057971
112
0.642728
7676e33b7d91411379ae7951c2556d1e0157245e
4,254
py
Python
IdeaProjects/PandasProj/PandasCourse1.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
1
2018-12-30T14:07:42.000Z
2018-12-30T14:07:42.000Z
IdeaProjects/PandasProj/PandasCourse1.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
IdeaProjects/PandasProj/PandasCourse1.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import pandas as pd import numpy as np # 三、 一维数据 Series # # Series 是 Pandas 中最基本的 1 维数据形式。其可以储存整数、浮点数、字符串等形式的数据。Series 的新建方法如下: # # s = pandas.Series(data, index=index) # 其中,data 可以是字典、numpy 里的 ndarray 对象等。index 是数据索引,索引是 pandas 数据结构中的一大特性,它主要的功能是帮助我们更快速地定位数据,这一点后面会谈到。 # # 3.1 字典 -> Series # # 下面,...
22.62766
147
0.655148
4f812c04a8ac2b847f97ae2cd58b5da31ba96ff2
1,958
py
Python
segnet.py
SedanaYoga/unetmod
917921f0bb42fa62eec109021a515fd11bb0cffa
[ "MIT" ]
null
null
null
segnet.py
SedanaYoga/unetmod
917921f0bb42fa62eec109021a515fd11bb0cffa
[ "MIT" ]
null
null
null
segnet.py
SedanaYoga/unetmod
917921f0bb42fa62eec109021a515fd11bb0cffa
[ "MIT" ]
null
null
null
import numpy as np import os import skimage.io as io import skimage.transform as trans from keras.models import * from keras.layers import * from keras.optimizers import * from keras.callbacks import ModelCheckpoint, LearningRateScheduler from keras import backend as keras def segnet(pretrained_weights = None, inp...
30.123077
118
0.616445
4fcf075be438dd67f6ffbff2cce82a34859486f9
758
py
Python
synchroload/plugins/openload.py
rakennus/duraphilms.github.io
bdbecdfb55f4870b5ebf572cd2a7eb4e6770ea22
[ "MIT" ]
3
2020-07-08T08:58:46.000Z
2020-12-01T20:23:30.000Z
synchroload/plugins/openload.py
rakennus/duraphilms.github.io
bdbecdfb55f4870b5ebf572cd2a7eb4e6770ea22
[ "MIT" ]
1
2020-12-30T12:49:43.000Z
2021-01-04T11:05:48.000Z
synchroload/plugins/openload.py
rakennus/duraphilms.github.io
bdbecdfb55f4870b5ebf572cd2a7eb4e6770ea22
[ "MIT" ]
2
2018-06-21T17:45:11.000Z
2020-12-30T00:30:45.000Z
import requests import json HOSTER_NAME = "openload" HOSTER_HAS_DIRECT_LINKS = False HOSTER_KEEP_UNAVAILABLE_UPLOADS = False OPENLOAD_CO_UPLOAD_URL = "https://api.openload.co/1/file/ul" def linkFromId(id): return "https://openload.co/embed/" + id def upload(filename): print("[openload] Requesting upload slo...
23.6875
60
0.646438
4fe1d4672b3c0f6f241aaf896752e7b3f7dd4cb7
1,028
py
Python
Packs/SafeNet_Trusted_Access/Scripts/STAFetchListContent/STAFetchListContent.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/SafeNet_Trusted_Access/Scripts/STAFetchListContent/STAFetchListContent.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/SafeNet_Trusted_Access/Scripts/STAFetchListContent/STAFetchListContent.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 import traceback ''' STANDALONE FUNCTION ''' # Get Unusual Activity Group name from the list. def get_unusual_activity_group_sta(args: Dict[str, Any]) -> CommandResults: list_name = args.get('list_name') original_resu...
26.358974
87
0.682879
8ca087044b85c6fde4d3e41388afbdb3538032b9
2,652
py
Python
utils/testdata_util.py
wanglikang/zzuARTensorflow
7ac59bd8988888ca5c4d7406ffc8869c9dc4121f
[ "MIT" ]
1
2019-04-07T02:53:31.000Z
2019-04-07T02:53:31.000Z
utils/testdata_util.py
wanglikang/zzuARTensorflow
7ac59bd8988888ca5c4d7406ffc8869c9dc4121f
[ "MIT" ]
null
null
null
utils/testdata_util.py
wanglikang/zzuARTensorflow
7ac59bd8988888ca5c4d7406ffc8869c9dc4121f
[ "MIT" ]
null
null
null
import os import xml.etree.ElementTree as ET import numpy as np import cv2 import pickle import copy import yolo.myconfig as cfg from os import listdir,getcwd class data_util(): def __init__(self,data_path): self.data_path = data_path self.cursor = 0 self.eposh = 1 self.labels = [f...
34.441558
98
0.601433
50946f0e5b672c7a9f603d5f0eacdbe70600f2b4
1,929
py
Python
Aggregator/export.py
socialdistancingdashboard/virushack
6ef69d26c5719d0bf257f4594ed2488dd73cdc40
[ "Apache-2.0" ]
29
2020-03-21T00:47:51.000Z
2021-07-17T15:50:33.000Z
Aggregator/export.py
socialdistancingdashboard/virushack
6ef69d26c5719d0bf257f4594ed2488dd73cdc40
[ "Apache-2.0" ]
7
2020-03-21T14:04:26.000Z
2022-03-02T08:05:40.000Z
Aggregator/export.py
socialdistancingdashboard/virushack
6ef69d26c5719d0bf257f4594ed2488dd73cdc40
[ "Apache-2.0" ]
13
2020-03-21T01:08:08.000Z
2020-04-08T17:21:11.000Z
import requests import pandas as pd import datetime import json import numpy as np #Specify Timeframe min_date = datetime.datetime.now().date() - datetime.timedelta(days=2) max_date = datetime.datetime.now().date() params = {"min_date": str(min_date), "max_date": str(max_date), "data_sources":"0,1,2"} response = reque...
47.04878
207
0.734578
0fd53168d80766572eba5f233c16fed1ca5eaa3c
1,237
py
Python
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE/gui_money.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE/gui_money.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE/gui_money.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# interactive application to convert a float in dollars and cents import simplegui # define global value value = 3.12 # Handle single quantity def convert_units(val, name): result = str(val) + " " + name if val > 1: result = result + "s" return result # convert xx.yy to xx dollars and y...
21.701754
65
0.662086
0fefc122b8d6c28fd702094255f38ca3d663cde6
884
py
Python
misc/giftknapsack.py
Floozutter/coursework
244548f415553f058098cae84ccdd4ce3f58c245
[ "Unlicense" ]
null
null
null
misc/giftknapsack.py
Floozutter/coursework
244548f415553f058098cae84ccdd4ce3f58c245
[ "Unlicense" ]
null
null
null
misc/giftknapsack.py
Floozutter/coursework
244548f415553f058098cae84ccdd4ce3f58c245
[ "Unlicense" ]
null
null
null
""" A recursive solution to a 0-1 knapsack problem about gifts, for Ryan. """ from typing import Tuple Gift = Tuple[int, int] # weight, value def max_value(gifts: Tuple[Gift, ...], weightlimit: int) -> int: """Returns the value of a 0-1 knapsack solution for the gifts.""" if not gifts: return 0 ...
27.625
71
0.608597
d724eab50ad308746b90378c7962839f88e930ac
63
py
Python
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/10.02-Special-Variable__name__.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/10.02-Special-Variable__name__.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/10.02-Special-Variable__name__.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
import Calc var = Calc.add(23, 5) print(var) print(__name__)
9
21
0.698413
d77c7b4e8787e128937a26c3de18b34abb41f233
7,792
py
Python
hihope_neptune-oh_hid/00_src/v0.1/third_party/LVM2/daemons/lvmdbusd/manager.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.3/third_party/LVM2/daemons/lvmdbusd/manager.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.3/third_party/LVM2/daemons/lvmdbusd/manager.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2015-2016 Red Hat, Inc. All rights reserved. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions # of the GNU General Public License v.2. # # You should have received a copy of the GNU General Public License # a...
29.074627
73
0.718686
ad380e10ffcc10f46d7416f955d002020766c67b
4,703
py
Python
retro/cores/gba/src/platform/python/_builder.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
2,706
2018-04-05T18:28:50.000Z
2022-03-29T16:56:59.000Z
retro/cores/gba/src/platform/python/_builder.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
242
2018-04-05T22:30:42.000Z
2022-03-19T01:55:11.000Z
retro/cores/gba/src/platform/python/_builder.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
464
2018-04-05T19:10:34.000Z
2022-03-28T13:33:32.000Z
import cffi import os, os.path import shlex import subprocess import sys ffi = cffi.FFI() pydir = os.path.dirname(os.path.abspath(__file__)) srcdir = os.path.join(pydir, "..", "..") incdir = os.path.join(pydir, "..", "..", "..", "include") bindir = os.environ.get("BINDIR", os.path.join(os.getcwd(), "..")) cpp = shlex...
29.39375
141
0.618754
0e2b0cbb531cec75edd65b34272fcefc5a377d54
4,600
py
Python
Datastructures/SingleLinkedList.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
Datastructures/SingleLinkedList.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
Datastructures/SingleLinkedList.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
''' DEVELOPER NAME : BALAVIGNESH.M IMPLEMENTED DATE : 28/11/2018 SCOPE OF IMPLEMENTATION : To understanding the SingleLiked List by implementing with python ''' class Node: def __init__(self,datavalue): self.datavalue = datavalue se...
14.696486
103
0.521304
38da6009239b4f558327b0588c074498632346c0
81
py
Python
server_start.py
AndrVLDZ/Start_DAW
1825038a832ecd32496e4930d9c829a192fda752
[ "Apache-2.0" ]
null
null
null
server_start.py
AndrVLDZ/Start_DAW
1825038a832ecd32496e4930d9c829a192fda752
[ "Apache-2.0" ]
1
2020-07-31T16:37:23.000Z
2020-07-31T16:37:23.000Z
server_start.py
AndrVLDZ/Start_DAW
1825038a832ecd32496e4930d9c829a192fda752
[ "Apache-2.0" ]
null
null
null
from socket_bot.cli import start_server, print_logo print_logo() start_server()
16.2
51
0.82716
2a97b9ad1a190f5c4c2370366739e0d5dce1a85a
2,348
py
Python
convert_daily_reports_to_timeseries.py
wikipeter-de/COVID-19-NRW
f576d91a2d0a489b9d9dcb2196b440ba6de81e85
[ "Apache-2.0" ]
1
2020-03-21T19:53:26.000Z
2020-03-21T19:53:26.000Z
convert_daily_reports_to_timeseries.py
wikipeter-de/COVID-19-NRW
f576d91a2d0a489b9d9dcb2196b440ba6de81e85
[ "Apache-2.0" ]
5
2020-03-23T07:52:53.000Z
2020-04-16T07:05:46.000Z
convert_daily_reports_to_timeseries.py
wikipeter-de/COVID-19-NRW
f576d91a2d0a489b9d9dcb2196b440ba6de81e85
[ "Apache-2.0" ]
1
2020-03-25T21:43:26.000Z
2020-03-25T21:43:26.000Z
import pandas import glob daily_report_files = glob.glob('data/daily_reports/*.csv') all_data = pandas.DataFrame({'Kommune': [], 'Last Update Day': [], 'Last Update Time': [], 'Confirmed': [], 'Deaths': [],...
40.482759
106
0.648211
aa990d108eb9b5a29850ce6d8e6f1e31dc036bc7
2,476
py
Python
RDS/circle2_use_cases/port/src/lib/Exceptions/ServiceException.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle2_use_cases/port/src/lib/Exceptions/ServiceException.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle2_use_cases/port/src/lib/Exceptions/ServiceException.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
from RDS import LoginService, User, Token class ServiceNotFoundError(Exception): """ Represents an error, when a service was not found. """ def __init__(self, service: LoginService, msg=None): if msg is None: msg = f"{service} not found" super(ServiceNotFoundError, self)....
26.063158
113
0.632068
2ade63338d02ae5efad83174eb31e5cbc014bbc1
3,626
py
Python
src/text_generator/regard_text_generator_gpt3.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/text_generator/regard_text_generator_gpt3.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/text_generator/regard_text_generator_gpt3.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import os import sys import string from pprint import pprint import hydra.utils import openai from src.text_generator.prompt_generator import generate_prompt_list def gpt3(cfg, prompt): response = openai.Completion.create( prompt=prompt, engine=cfg.engine, max_tokens=cfg.response_length,...
31.807018
100
0.635687
2d5b466a74ca9c9330887aad3fcc0ffe2c472606
3,402
py
Python
autojail/utils/connection.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/utils/connection.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/utils/connection.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
import getpass import time from typing import TYPE_CHECKING, Any from fabric.connection import Connection from paramiko.ssh_exception import ( AuthenticationException, PasswordRequiredException, SSHException, ) if TYPE_CHECKING: from ..model import AutojailConfig global_context = None def connect( ...
32.09434
70
0.432687
930d5be8783c57f734cbc163437f0a22e18a04d1
2,018
py
Python
research/cv/AVA_cifar/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/AVA_cifar/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/AVA_cifar/postprocess.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...
40.36
79
0.671457
933de18ec207fd91f161d7577ee2ded233108d60
3,840
py
Python
AD/dataloader.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
null
null
null
AD/dataloader.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
null
null
null
AD/dataloader.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
1
2020-09-08T13:42:16.000Z
2020-09-08T13:42:16.000Z
# -*- coding: utf-8 -*- import json from random import shuffle from numpy.random import choice as nchoice def pad_sequence(sequences,padding_value=0): lens = [len(seq) for seq in sequences] results = [] ml = max(lens) for seq,l in zip(sequences,lens): results.append(seq+[paddi...
30.23622
68
0.490104
faf08135aacf0458f675b8523083582c7ee3f992
715
py
Python
cs/python/python_general/misc_functions/tax_estimation.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/python/python_general/misc_functions/tax_estimation.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/python/python_general/misc_functions/tax_estimation.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
"""Simple script to estimate self-employment taxes on a given amount of income.""" # %% def tax_calc(gross_income, business_expenses): net_income = gross_income - business_expenses # Self-employment tax calculation # self_emp_tax = (net_income * .9235) * .153 line_3 = net_income * 0.9235 line_4 = l...
32.5
82
0.706294
17f74c02ce6002dede66267209df9898b457626e
1,613
py
Python
Problems/Two Pointers/easy/ShortestDistanceToACharacter/shortest_distance_to_character.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Two Pointers/easy/ShortestDistanceToACharacter/shortest_distance_to_character.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Two Pointers/easy/ShortestDistanceToACharacter/shortest_distance_to_character.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import List def shortestToChar(s: str, c: str) -> List[int]: n, pos = len(s), -len(s) res = [n for _ in range(n)] for i in list(range(n)) + list(range(n)[::-1]): if s[i] == c: pos = i res[i] = min(res[i], abs(i - pos)) return res def shortestToChar(s: str, c: ...
32.26
93
0.560446
105d3db21a218967b45caa212931df4f03a1fec2
389
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-010/pg-10.5-1-comment-and-dot-with-color.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-010/pg-10.5-1-comment-and-dot-with-color.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-010/pg-10.5-1-comment-and-dot-with-color.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
import turtle import random # list of colors colors = ["red", "green", 'blue', 'yellow', "orange", "black", "purple"] turtle.penup() for i in range(50): x = random.randint(-100, 100) y = random.randint(-100, 100) # set a random position turtle.setposition(x, y) # set a random color i = rando...
19.45
72
0.627249
107567377525b5d896e2509a5c7536fbc239f936
1,241
py
Python
gemtown/advertisings/migrations/0001_initial.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
gemtown/advertisings/migrations/0001_initial.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
5
2020-09-04T20:13:39.000Z
2022-02-17T22:03:33.000Z
gemtown/advertisings/migrations/0001_initial.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
# Generated by Django 2.0.13 on 2019-05-23 05:29 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] op...
37.606061
203
0.604351
eade42ea8db75ad6fc58d927077ec3448455f241
5,268
py
Python
Simple Wave Analysis/CySmartLogMGMT.py
washingtonxr/OpenAlgorithm
e1898e36dead0c79b23e054587d92f378c5e8b10
[ "Apache-2.0" ]
null
null
null
Simple Wave Analysis/CySmartLogMGMT.py
washingtonxr/OpenAlgorithm
e1898e36dead0c79b23e054587d92f378c5e8b10
[ "Apache-2.0" ]
null
null
null
Simple Wave Analysis/CySmartLogMGMT.py
washingtonxr/OpenAlgorithm
e1898e36dead0c79b23e054587d92f378c5e8b10
[ "Apache-2.0" ]
null
null
null
import os import os.path from functools import reduce Datadir_path = "./data/" Target_dir_path = "CysmartLogData" Child_path = "Processed_data/" Datafile_path = Datadir_path + Target_dir_path + "/" data_package_eldID = 0 processed_file = "" def Save_log(argv, argv2, mode = 0): # print("Save_log = " + argv) gl...
41.480315
116
0.510061
f4bedb699967cca2b0c27981afb8a1e94be8a941
1,200
py
Python
tests/alarmmonitortest.py
stg93/blaulichtsms_einsatzmonitor
db595f535ece0f944ec70a9eac70af7b667f63ef
[ "MIT" ]
18
2017-07-24T18:08:04.000Z
2021-05-06T06:50:22.000Z
tests/alarmmonitortest.py
stg93/blaulichtsms_einsatzmonitor
db595f535ece0f944ec70a9eac70af7b667f63ef
[ "MIT" ]
19
2018-09-25T20:42:17.000Z
2021-11-23T21:26:18.000Z
tests/alarmmonitortest.py
stg93/blaulichtsms_einsatzmonitor
db595f535ece0f944ec70a9eac70af7b667f63ef
[ "MIT" ]
11
2018-05-05T04:49:41.000Z
2022-02-18T17:33:13.000Z
from alarmmonitor import AlarmMonitor class AlarmMonitorTest(AlarmMonitor): def __init__(self, polling_interval, blaulichtsms_controller, hdmi_cec_controller, browser_controller, alarm_requests_count): super().__init__(polling_interval, False, False, blaulichtsms_...
41.37931
106
0.7
f4df82abae71083bd8e0326a4d777f22b071627f
244
py
Python
Python/Aula10/ExerciciosPython/While/whileEstrutura.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/Aula10/ExerciciosPython/While/whileEstrutura.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/Aula10/ExerciciosPython/While/whileEstrutura.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
n = 1 par = impar = 0 while n!=0: n = int(input('Digite um valor: ')) if n !=0: if n % 2 ==0: par +=1 else: impar +=1 print('Você digitou {} números pares e {} números impares!'.format(par,impar))
24.4
78
0.491803
870d41545d5b5231b2caecc0b6d600635b9f8ca2
1,757
py
Python
08.Graph/bellman-ford.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
08.Graph/bellman-ford.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
08.Graph/bellman-ford.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
def bellman_ford(graph, start): distance, predecessor = dict(), dict() # 거리 값, 각 정점의 이전 정점을 저장할 딕셔너리 # 거리 값을 모두 무한대로 초기화 / 이전 정점은 None으로 초기화 for node in graph: distance[node], predecessor[node] = float('inf'), None distance[start] = 0 # 시작 정점 거리는 0 # 간선 개수(V-1)만큼 반복 for _ in range(l...
28.803279
81
0.511668
5e61af1989fbaab9beb815dd817e5d32663b7a96
2,605
py
Python
project/jinja_filters.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/jinja_filters.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/jinja_filters.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import os from urllib.parse import quote_plus from flask import url_for from project import app from project.utils import ( get_event_category_name, get_localized_enum_name, get_localized_scope, get_location_str, get_place_str, ) def env_override(value, key): return os.getenv(key, value) d...
28.626374
88
0.733205
5ea495e66d51720d553dcd37aa7e3b0f3106b8e7
366
py
Python
ProjectEuler_plus/euler_067.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_067.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_067.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys for _ in range(int(input().strip())): tri = [] N = int(input().strip()) for _ in range(N): tri.insert(0, list(map(int, input().strip().split()))) # reversed tri for i in range(0, N): for j in range(0, N - i - 1): tri[i + 1][j] += max(tri[i...
26.142857
78
0.5
0dd94f8fb50a4dd6837c99dd0fbf803af00c11ee
683
py
Python
config.py
plishing/Agena2
56f2f48a3bda4ff3d011d70e630cf6793995a239
[ "Beerware" ]
2
2016-03-17T09:39:34.000Z
2016-03-17T11:26:19.000Z
config.py
plishing/Agena2
56f2f48a3bda4ff3d011d70e630cf6793995a239
[ "Beerware" ]
null
null
null
config.py
plishing/Agena2
56f2f48a3bda4ff3d011d70e630cf6793995a239
[ "Beerware" ]
null
null
null
#CONFIG FILE dummy = 0 #Use dummy telem data (for testing) gdummy = 0 #Use dummy GPS data (for testing) CallSign = "$$AGENA2" #Probe callsign. Always include $$ if you want to comply to UK-HAS telemetry requirements modemsw = 1 #Is 3G modem on or off at system start? (0 = if no modem present) seq = 0 #Telem string se...
40.176471
111
0.740849
216d636aaba5f243b3b8ba2638f2006e237e42c7
2,549
py
Python
e3/bravo/E3_2021ss_bravo_test.py
hka-mmv/dscb-exercise
7a3081074b36ac3242282f89480eb03535ba40d3
[ "MIT" ]
5
2021-03-29T17:27:14.000Z
2022-03-15T08:53:12.000Z
e3/bravo/E3_2021ss_bravo_test.py
hka-mmv/dscb-exercise
7a3081074b36ac3242282f89480eb03535ba40d3
[ "MIT" ]
32
2021-04-28T21:02:16.000Z
2021-06-28T14:56:53.000Z
e3/bravo/E3_2021ss_bravo_test.py
hka-mmv/dscb-exercise
7a3081074b36ac3242282f89480eb03535ba40d3
[ "MIT" ]
3
2021-06-01T08:06:19.000Z
2021-06-07T14:28:09.000Z
import unittest import pandas as pd # TODO: Import your module with the logic (implementation) import requests class example(unittest.TestCase): # Fetch and read should return the same, so if the dataset of fetch # is equal to read, we've done everything right! def test_read(self): obj = examp...
35.901408
117
0.656728
df135115c26d6d893b8881c0e9963c06eab3f291
311
py
Python
pages/themes/beginners/OOP/examples/the_dir_builtin.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/OOP/examples/the_dir_builtin.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/OOP/examples/the_dir_builtin.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
class Person: def __init__(self, name, age): self.name = name self.__age = age maria = Person("Maria Popova", 25) # inspect object attributes dictionary: print( maria.__dict__ ) # inspect class attributes dictionary: print( Person.__dict__ ) print("maria has next attributes:") print( maria.__dir__() )
20.733333
39
0.729904
df920d133972e51800dc49b593b0e507dc08f251
1,258
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.04-dictionary/ph-38-exer-2-division-info.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.04-dictionary/ph-38-exer-2-division-info.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.04-dictionary/ph-38-exer-2-division-info.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
# acian value in bd_division_info dictionary bd_division_info = {} bd_division_info["Barisal"] = {"district": 6, "upazila": 39, "union": 333} bd_division_info["Chittagong"] = {"district": 11, "upazila": 97, "union": 336} bd_division_info["Dhaka"] = {"district": 13, "upazila": 93, "union": 1833} bd_division_info["Khul...
34.944444
78
0.689984
10d26c001ba2d8194b01fec9754a1a59e1fe8908
596
py
Python
SBTK_League_Helper/src/tools/strings.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/src/tools/strings.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/src/tools/strings.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
import sys # Available error handling: #'strict'(not recommended, raises an error), #'ignore'(not recommended, info loss), #'replace'(recommended only when string-size matters, f.ex. table borders), # No info loss: #'xmlcharrefreplace', #'backslashreplace'(preferred as it is shorter) def shrink_to_encoding(string, e...
37.25
79
0.75
10ec797c8f440deea4ef4fad9708ece2649d1b8e
12,624
py
Python
DatenbankEditFertigkeit.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
15
2017-11-09T12:49:52.000Z
2022-03-06T12:18:48.000Z
DatenbankEditFertigkeit.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
40
2018-02-01T21:32:01.000Z
2022-03-22T11:35:28.000Z
DatenbankEditFertigkeit.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
13
2018-03-12T17:50:42.000Z
2022-03-06T12:21:41.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'DatenbankEditFertigkeit.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 imp...
58.175115
336
0.720136
8031a516b64553ab141b660cf61bfd17b3b30d6c
1,842
py
Python
resources/mechanics_lib/Finger.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
7
2016-01-20T02:33:00.000Z
2021-02-04T04:06:57.000Z
resources/mechanics_lib/Finger.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
null
null
null
resources/mechanics_lib/Finger.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
3
2016-10-05T07:20:30.000Z
2017-11-20T10:36:50.000Z
from api.component import Component class Finger(Component): def defComponents(self): self.addSubcomponent("lbot","Beam") self.addSubcomponent("ltop","Beam") self.addSubcomponent("hinge","Hinge") #self.addSubcomponent("tetra","Tetrahedron") def defParameters(self): ...
32.315789
78
0.634636
8969915f7c30531b96c8ebd63eb4b50ca11b6fec
39
py
Python
app/mq/__init__.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
2
2019-06-24T08:34:39.000Z
2019-06-27T12:23:47.000Z
app/mq/__init__.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
app/mq/__init__.py
pushyzheng/docker-oj-web
119abae3763cd2e53c686a320af7f4f5af1f16ca
[ "MIT" ]
null
null
null
# encoding:utf-8 from . import judger
9.75
20
0.717949
986cff798b73372672f11c506077944d380c1bf2
2,036
py
Python
5_Closures_and_Decorators/decorator_examples.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
1
2022-03-02T07:16:30.000Z
2022-03-02T07:16:30.000Z
5_Closures_and_Decorators/decorator_examples.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
5_Closures_and_Decorators/decorator_examples.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
# Problem: The function name, its docstring, and parameter list of 'fn' are hidden by # the wrapper function. # Solution: The functools.wraps decorator, opies the lost metadata from the undecorated function # to the decorated closure. from functools import wraps # wraps(fn) -> dadurch gehen Metadaten wie Docu nicht...
23.136364
97
0.60609
125aaf93016c48d3bb73639e5998089a33fc5258
3,309
py
Python
python_experiments/data_analysis/reads_varying_parameters_statistics/varying_c_statistics_reads.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/data_analysis/reads_varying_parameters_statistics/varying_c_statistics_reads.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/data_analysis/reads_varying_parameters_statistics/varying_c_statistics_reads.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
import os, json, decimal reads_tag = 'reads-s' reads_d_tag = 'reads-d' reads_rq_tag = 'reads-rq' suffix_str = '-rand-bench.txt' c_lst = [0.1 * (i + 1) for i in range(8)] def format_str(float_num): return str(decimal.Decimal.from_float(float_num).quantize(decimal.Decimal('0.000'))) def get_file_path(c, algorit...
35.202128
105
0.66576
c3ec2c1e6e6c9fa366eb1abed8343da890902425
236
py
Python
Budd.metaL.py
ponyatov/ST
4aab2004608fe5f85366870c8387451f05451adc
[ "MIT" ]
null
null
null
Budd.metaL.py
ponyatov/ST
4aab2004608fe5f85366870c8387451f05451adc
[ "MIT" ]
null
null
null
Budd.metaL.py
ponyatov/ST
4aab2004608fe5f85366870c8387451f05451adc
[ "MIT" ]
null
null
null
## @file ## @brief meta: Smalltalk-like guest OS from metaL import * p = Project( title='''Smalltalk-like guest OS''', about=''' * inspired by A Little Smalltalk (c) Timothy Budd ''') \ | Python() \ | ST() p.sync()
14.75
40
0.580508
7f03dc9b5299e9b42893579575a76c1400195275
5,766
py
Python
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_01_bis_03/00_Kapitel_01_und_02_Repetitionsfragen.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_01_bis_03/00_Kapitel_01_und_02_Repetitionsfragen.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_01_bis_03/00_Kapitel_01_und_02_Repetitionsfragen.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ### # File: 00_Kapitel_01_bis_xx_Repetitionsfragen.py # Project: Buch_Python3_Das_umfassende_Praxisbuch # Created Date: Thursday 21.02.2019, 20:52 # Author: Apop85 # ----- # Last Modified: Friday 22.02.2019, 16:09 # ----- # Copyright (c) 2019 Apop85 # This software is publi...
58.242424
314
0.729448
7f04072757d56785b60c0444d1d78cf07c90de53
203
py
Python
Tutorials/10 Days of Statistics/Day 5/poisson_distribution2.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Tutorials/10 Days of Statistics/Day 5/poisson_distribution2.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Tutorials/10 Days of Statistics/Day 5/poisson_distribution2.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import sys arr = [float(arr_i) for arr_i in input().strip().split(' ')] mean1 = arr[0] mean2 = arr[1] print(round(160+40*(mean1+mean1**2), 3)) print(round(128+40*(mean2+mean2**2), 3))
16.916667
60
0.635468
f60ec1d4af63c5c9167f3dfe1e6b44179893dd48
2,297
py
Python
research/gnn/dgcn/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/gnn/dgcn/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/gnn/dgcn/postprocess.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...
37.048387
97
0.669134
dcdeeebc527e882e6b909d177306cdbf10b5e14c
1,219
py
Python
INBa/2015/KODZOKOV_M_M/task_8_9.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/KODZOKOV_M_M/task_8_9.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/KODZOKOV_M_M/task_8_9.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 8. Вариант 9. # Доработайте игру "Анаграммы" (см. М.Доусон Программируем на Python. Гл.4) так, чтобы к каждому слову полагалась подсказка. # Игрок должен получать право на подсказку в том случае, если у него нет никаких предположений. # Разработайте систему начисления очков, по которой бы игроки, отгадавшие ...
33.861111
139
0.71452
b4da01710b8c15edd0f1ee9d14db6291038c6628
4,077
py
Python
tools/notebook_utils.py
terben/Linux_Deutsch_Jupyter
1980dacc970fc2905380624c941b5ed31aaa9bad
[ "CC-BY-4.0" ]
1
2022-01-24T17:17:57.000Z
2022-01-24T17:17:57.000Z
tools/notebook_utils.py
terben/Linux_Deutsch_Jupyter
1980dacc970fc2905380624c941b5ed31aaa9bad
[ "CC-BY-4.0" ]
null
null
null
tools/notebook_utils.py
terben/Linux_Deutsch_Jupyter
1980dacc970fc2905380624c941b5ed31aaa9bad
[ "CC-BY-4.0" ]
1
2019-11-28T11:58:57.000Z
2019-11-28T11:58:57.000Z
import os import re import itertools import nbformat from nbformat.v4.nbbase import new_markdown_cell # module for utility functions used by add_navigation_to_lectures.py # and add_book_info.py # directory for the lexture and review-question notebooks: NOTEBOOK_DIR = os.path.join(os.path.dirname(__file__), '..') # r...
35.146552
344
0.694874
6ca1c4ff5a35df4ea1392c7d2ff704e5d6971dcd
176
py
Python
python/pathlib/origin/path_names.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pathlib/origin/path_names.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pathlib/origin/path_names.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from pathlib import Path path = Path('C:/Users/imdff/Downloads') print(path) # file:/// 으로 시작하는 표기방식으로 출력 print(path.as_uri()) # 디렉터리 구분이 \ 가 아닌 /으로 출력 print(path.as_posix())
19.555556
39
0.693182
6caf5550857c46e21ecc0b662a37bc3b10856e82
153
py
Python
ev3/sysroot/home/robot/roborinth/app/robo/JsonConfig.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
null
null
null
ev3/sysroot/home/robot/roborinth/app/robo/JsonConfig.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
null
null
null
ev3/sysroot/home/robot/roborinth/app/robo/JsonConfig.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
1
2019-10-22T07:47:51.000Z
2019-10-22T07:47:51.000Z
#!/usr/bin/env python3 import json def loadJsonFile(filePath): with open(filePath, 'r') as jsonFile: jsonData = json.load(jsonFile) return jsonData
19.125
38
0.745098
1a3320e83b434571b8fbb902209cbac03c51afe9
8,092
py
Python
top/clearlight/reptile/bilibili/bj_tech_mooc/wmz_spider_test.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/reptile/bilibili/bj_tech_mooc/wmz_spider_test.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/reptile/bilibili/bj_tech_mooc/wmz_spider_test.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
import requests import re from bs4 import BeautifulSoup import traceback import json def get_html_text(url): try: headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36', } r = requests.get(...
37.119266
144
0.442907
2022f201fe22c6c408dd67d93769b0103befe2ba
844
py
Python
1030A-in-search-of-an-easy-problem.py
spreusler/codeforces-loesungen
cc8ddcc8a3c5a25906dc92ad001f7e9570a62de3
[ "MIT" ]
null
null
null
1030A-in-search-of-an-easy-problem.py
spreusler/codeforces-loesungen
cc8ddcc8a3c5a25906dc92ad001f7e9570a62de3
[ "MIT" ]
null
null
null
1030A-in-search-of-an-easy-problem.py
spreusler/codeforces-loesungen
cc8ddcc8a3c5a25906dc92ad001f7e9570a62de3
[ "MIT" ]
null
null
null
# Name: 1030 A. In Search of an Easy Problem # URL: https://codeforces.com/problemset/problem/1030/A # Language: Python 3.x def main(): # Erste Zeile einlesen input() # Zweite Zeile einlesen # Info: input() gibt Liste zurück # # ['1' in input()] Überprüft, ob '1' ein Element in der Liste der i...
35.166667
105
0.667062
203826b74903fb15848cd66f413ca5893c887595
973
py
Python
dynamic.py
cyborg00222/kowalsky.at
090778863625b67bce942fe85716941c3bf75a4b
[ "MIT" ]
null
null
null
dynamic.py
cyborg00222/kowalsky.at
090778863625b67bce942fe85716941c3bf75a4b
[ "MIT" ]
null
null
null
dynamic.py
cyborg00222/kowalsky.at
090778863625b67bce942fe85716941c3bf75a4b
[ "MIT" ]
null
null
null
# Peter Kowalsky - 10.06.19 def html_head(title): head = "<html><head>" # Skeleton CSS head = head + '<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.css">' # Menu head = head + '<style>' + open("css/menu.css", "r").read() + '</style>' ...
38.92
133
0.558068
b6137800a8eedeb151cb08cedcf0115c6f664252
9,151
py
Python
Packs/MobileIronUEM/Integrations/MobileIronCLOUD/MobileIronCLOUD_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/MobileIronUEM/Integrations/MobileIronCLOUD/MobileIronCLOUD_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/MobileIronUEM/Integrations/MobileIronCLOUD/MobileIronCLOUD_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import io from pytest import raises, fixture from CommonServerPython import * MOCK_URL = 'https://eu1.mobileiron.com' MOCK_PARAMS = { 'partition_id': '12345' } @fixture def client(): from MobileIronCLOUD import MobileIronCloudClient return MobileIronCloudClient( base_url=MOCK_URL, veri...
35.886275
114
0.686155
80ccba7e7f56f238ab7527a37beb4496b9aaf115
145
py
Python
movie/api.py
StevenMedina/MovieAPI
805e79d396e197383bce6095febf0252231a1018
[ "MIT" ]
null
null
null
movie/api.py
StevenMedina/MovieAPI
805e79d396e197383bce6095febf0252231a1018
[ "MIT" ]
null
null
null
movie/api.py
StevenMedina/MovieAPI
805e79d396e197383bce6095febf0252231a1018
[ "MIT" ]
null
null
null
from rest_framework import routers from . import api_views router = routers.DefaultRouter() router.register(r'movies', api_views.MovieViewset)
20.714286
50
0.813793
038beb0048d5ef0fc18de081b1c70ae13cf4e8ee
5,308
py
Python
src/diagrams/icons/osa.py
kkaruso/niv
67ba82c93279db4dae503d4dceec7ba5e9931c0a
[ "MIT" ]
null
null
null
src/diagrams/icons/osa.py
kkaruso/niv
67ba82c93279db4dae503d4dceec7ba5e9931c0a
[ "MIT" ]
null
null
null
src/diagrams/icons/osa.py
kkaruso/niv
67ba82c93279db4dae503d4dceec7ba5e9931c0a
[ "MIT" ]
null
null
null
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _ICONS class _OSA(_ICONS): _type = "osa" _icon_dir = "../resources/icons/osa/svg" class OsaArrowGreenLeft(_OSA): _icon = "osa-arrow-green-left.svg" class OsaArrowYellowRight(_OSA): _icon = "osa-arrow-yellow-right.s...
16.639498
68
0.698568
2071386f1794f6422921d2e0dd7f4a2b46b0a172
16,005
py
Python
official/cv/dpn/modelarts/train_start.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
official/cv/dpn/modelarts/train_start.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/dpn/modelarts/train_start.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...
46.526163
119
0.618994
207dd57920eff3180462dd094369d0c92a10ce42
7,058
py
Python
sakf/app/auth/group.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
sakf/app/auth/group.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
sakf/app/auth/group.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Group import json import logging from sakf.utils.sql_page_query import limitQuery from sakf.db.model import Auth from sakf.app.sakf import base import tornado.web class GroupHandler(base.BaseHandlers): @base.auth_url @tornado.web.authenticated def get(self, suburl, *args, **kwargs): ...
32.081818
106
0.587419
20f111a548ad627868f25296f2d9db46cf04aac2
1,078
py
Python
Koordinatendarstellung_Ping.py
raswz/wifionice
67f1fa7a6b396afe7a447a4d10adbc64dcbcdd4f
[ "CC-BY-4.0" ]
null
null
null
Koordinatendarstellung_Ping.py
raswz/wifionice
67f1fa7a6b396afe7a447a4d10adbc64dcbcdd4f
[ "CC-BY-4.0" ]
null
null
null
Koordinatendarstellung_Ping.py
raswz/wifionice
67f1fa7a6b396afe7a447a4d10adbc64dcbcdd4f
[ "CC-BY-4.0" ]
null
null
null
import plotly.express as px import pandas as pd #data = pd.read_csv(r'c:\users\Ronja\Documents\20171212_wifionice\wifionice.csv', sep=';', low_memory=False) #Importiert die WifionIce.parquet-Datei data_raw = pd.read_parquet(r'c:\Users\Ronja\Documents\GitHub\wifionice\wifionice.parquet') #Importiert die WifionIce.parqu...
46.869565
158
0.713358
ff9c650cb6d4b2fde8e03059f6fad3ffd1898c52
2,243
py
Python
research/cv/glore_res200/src/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/glore_res200/src/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/glore_res200/src/loss.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...
41.537037
90
0.654481
440a45241721956781882ee82427154f711db347
1,666
py
Python
other/re-risky/split-version/task1/spoilers_and_source/src/bronze.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
other/re-risky/split-version/task1/spoilers_and_source/src/bronze.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
other/re-risky/split-version/task1/spoilers_and_source/src/bronze.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/python # -*- coding: utf8 -*- # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:#www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
26.870968
96
0.657263
44491d3e575be7153ab1f502129bec0265e49908
3,481
py
Python
hardware/chip/rtl872xd/release/auto_build_tool/ota_gen_md5_bin.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
hardware/chip/rtl872xd/release/auto_build_tool/ota_gen_md5_bin.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
hardware/chip/rtl872xd/release/auto_build_tool/ota_gen_md5_bin.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
#! /usr/bin/env python3 import os, sys, re, struct, platform, getopt, subprocess from sys import platform as _platform import array,hashlib,struct def update_crc16(crcin, byte): crc = crcin calculen = byte | 0x100 crc <<= 1 calculen <<= 1 if calculen & 0x100 > 0: crc += 1 if crc & 0x10...
27.195313
94
0.58374
a6a602bbf6ad9043c7e6b57730d3adfdf2c4571e
327
py
Python
python/test/building_good_tests/test_set_user.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/test/building_good_tests/test_set_user.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/test/building_good_tests/test_set_user.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import pytest @pytest.fixture def user(): return User(name="Chris", hair_color=Color("brown")) @pytest.fixture(autouse=True) def set_user(client, user): client.set_user(user) def test_set_user(client, user): # client.get_user() returns another User object assert client.get_user() ==...
19.235294
57
0.678899
f3c4c7e6d268c786f5693ae10aba401f85c34834
466
py
Python
etc code/video2video.py
gusghrlrl101/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
11
2019-06-17T02:59:01.000Z
2021-05-24T14:10:04.000Z
etc code/video2video.py
RabbitG29/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
null
null
null
etc code/video2video.py
RabbitG29/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
3
2019-06-17T02:59:32.000Z
2019-07-03T04:31:30.000Z
import cv2 cap = cv2.VideoCapture('model2.mp4') cap.set(cv2.CAP_PROP_FPS, 12) video_h = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) video_w = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) frame_cnt = int(cap.get(cv2.CAP_PROP_FRAME_COUNT)) fourcc = cv2.VideoWriter_fourcc(*'DIVX') out = cv2.VideoWriter('model2_out.avi', fo...
22.190476
73
0.712446