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
1d5c8f42ee95500c55d5d255166933db8627452b
948
py
Python
src/onegov/wtfs/views/invoice.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/views/invoice.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/views/invoice.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from morepath.request import Response from onegov.wtfs import _ from onegov.wtfs import WtfsApp from onegov.wtfs.forms import CreateInvoicesForm from onegov.wtfs.layouts import InvoiceLayout from onegov.wtfs.models import Invoice from onegov.wtfs.security import ViewModel @WtfsApp.form( model=Invoice, templat...
25.621622
65
0.681435
897ede98a082f5e1c96d7c1f16193ccdd40a4f42
2,128
py
Python
V1/utils/buffer.py
marsXyr/GESRL
3d60dfd4ffa1e0ae24d64b09f431d8ee0a9b5c01
[ "Apache-2.0" ]
null
null
null
V1/utils/buffer.py
marsXyr/GESRL
3d60dfd4ffa1e0ae24d64b09f431d8ee0a9b5c01
[ "Apache-2.0" ]
null
null
null
V1/utils/buffer.py
marsXyr/GESRL
3d60dfd4ffa1e0ae24d64b09f431d8ee0a9b5c01
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch FloatTensor = torch.FloatTensor LongTensor = torch.LongTensor # Code based on https://github.com/openai/baselines/blob/master/baselines/deepq/replay_buffer.py # and https://github.com/jingweiz/pytorch-distributed/blob/master/core/memories/shared_memory.py class ReplayBuffer: de...
32.242424
96
0.653665
898b3a67fa35f70596c6f4a50134f5a2883b8179
153
py
Python
python/sys.stdin.read.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
python/sys.stdin.read.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
python/sys.stdin.read.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
from os.path import isfile from startup import newput file = 'sys.stdin' input = newput(file).readline if file is not None and isfile(file) else input
21.857143
77
0.764706
984d387508ae9656a965b2f42b0a00371443f282
126,991
py
Python
image_mapping.py
hansvurst-foss/website-build
e098e41ed02cbdd22f93fe72b64a028c9e3fe242
[ "MIT" ]
null
null
null
image_mapping.py
hansvurst-foss/website-build
e098e41ed02cbdd22f93fe72b64a028c9e3fe242
[ "MIT" ]
null
null
null
image_mapping.py
hansvurst-foss/website-build
e098e41ed02cbdd22f93fe72b64a028c9e3fe242
[ "MIT" ]
null
null
null
mapping = {'7749': '2014/06/IMG_4288.jpg', '9468': '2015/05/ring3.jpg', '751': '2013/02/IMG_67236.jpg', '5923': '2013/12/IMG_1812_edit.jpg', '735': '2012/12/IMG_67199.jpg', '736': '2012/12/IMG_67207.jpg', '737': '2012/12/IMG_67210.jpg', '738': '2012/12/IMG_67210_motorkohlen.jpg', '739': '2012/12/IMG_67215.jpg', '740': ...
36.200399
73
0.685151
7fb8bc5881a66bf81e7981bad93aea118d9a9522
610
py
Python
solution/string/17609/main.py
gkgg123/baekjoon
4ff8a1238a5809e4958258b5f2eeab7b22105ce9
[ "MIT" ]
2,236
2019-08-05T00:36:59.000Z
2022-03-31T16:03:53.000Z
solution/string/17609/main.py
juy4556/baekjoon
bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92
[ "MIT" ]
225
2020-12-17T10:20:45.000Z
2022-01-05T17:44:16.000Z
solution/string/17609/main.py
juy4556/baekjoon
bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92
[ "MIT" ]
602
2019-08-05T00:46:25.000Z
2022-03-31T13:38:23.000Z
# Authored by : chj3748 # Co-authored by : - # Link : http://boj.kr/35708a61bb1d4149952929e8154ba152 import sys def input(): return sys.stdin.readline().rstrip() def palin(start, end, del_cnt): if del_cnt == 2: return del_cnt while start <= end: if string[start] != string[end]: ...
24.4
55
0.559016
f6448a96fcbeadfb61a2f46302c4ca91af76ee31
2,457
py
Python
backend/api/btb/api/schema/mutations/updatedemand.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
4
2020-04-30T16:11:24.000Z
2020-06-02T10:08:07.000Z
backend/api/btb/api/schema/mutations/updatedemand.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
291
2020-04-20T13:11:13.000Z
2022-02-10T21:54:46.000Z
backend/api/btb/api/schema/mutations/updatedemand.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
2
2020-04-19T14:56:01.000Z
2020-04-19T18:09:34.000Z
import graphene from btb.api.schema.types import Demand from btb.api.models import db from btb.api.schema.resolvers import map_skills from sqlalchemy.dialects.postgresql import insert from sqlalchemy import text from flask import g, current_app from btb.api.constants import InputLengths from btb.api.schema.types.util i...
29.60241
137
0.672365
b499d49ec1cf41b6a348bab4821823bb65213819
2,755
py
Python
tests/test_either.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
tests/test_either.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
tests/test_either.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
from typing import Any from hypothesis import assume, given from pfun import Unary, compose, identity from pfun.either import Either, Left, Right, either, filter_, for_each, gather from pfun.hypothesis_strategies import anything, eithers, unaries from tests.monad_test import MonadTest from .utils import recursion_li...
32.034884
78
0.630127
25dcf37536bfba59f5fcd12969006430284b1ed5
6,218
py
Python
bot.py
wdr-data/1live-plays
68ed22a659ea1540550bc9f5e70fdb83f362fa06
[ "MIT" ]
3
2020-07-31T11:22:04.000Z
2020-07-31T19:59:18.000Z
bot.py
wdr-data/1live-plays
68ed22a659ea1540550bc9f5e70fdb83f362fa06
[ "MIT" ]
null
null
null
bot.py
wdr-data/1live-plays
68ed22a659ea1540550bc9f5e70fdb83f362fa06
[ "MIT" ]
null
null
null
from time import sleep from threading import Thread, RLock from queue import Queue from collections import defaultdict import logging from googleapiclient.discovery import build from googleapiclient.errors import HttpError from game_logic import COLUMN_COUNT from config import config class Event: def __init__(s...
31.246231
102
0.521068
d394c20ff95944d7145207f4aff3da2bb0a01198
1,879
py
Python
rev/serial_bomber/chall.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
6
2021-02-18T15:07:55.000Z
2022-02-04T01:38:10.000Z
rev/serial_bomber/chall.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
rev/serial_bomber/chall.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
import sys,time logo = """ \033[1;97m█████████ \033[1;97m█████████ \033[1;97m█████████ \033[1;97m█████████ \033[1;97m█▄█████▄█ \033[1;97m█▄█████▄█ \033[1;97m█▄█████▄█ \033[1;97m█▄█████▄█ \033[1;97m█\033[1;91m▼▼▼▼▼ \033[1;97m█\033[1;91m▼▼▼▼▼ \033[1;97m█\033[1;91m▼▼▼▼▼ \033[1;97m█\033[1;91m▼▼▼▼▼ \033[1;97...
48.179487
124
0.530601
6c91e36d682941796a1fb5eeac889179a2865adf
518
py
Python
capstone/clinic/tests.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
capstone/clinic/tests.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
capstone/clinic/tests.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from selenium import webdriver # Create your tests here. class IndexTestCase(TestCase): def setUp(self): pass def test_index(self): """ Check if its possible to access the index page """ # Setting up a client ...
20.72
54
0.604247
6cef4de8c8601245f4885e12c3316b155b259aa4
36
py
Python
py/jpy-integration/src/javaToPython/python/io/deephaven/jpy/integration/simple_object.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
55
2021-05-11T16:01:59.000Z
2022-03-30T14:30:33.000Z
py/jpy-integration/src/javaToPython/python/io/deephaven/jpy/integration/simple_object.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
943
2021-05-10T14:00:02.000Z
2022-03-31T21:28:15.000Z
py/jpy-integration/src/javaToPython/python/io/deephaven/jpy/integration/simple_object.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
29
2021-05-10T11:33:16.000Z
2022-03-30T21:01:54.000Z
class SimpleObject( object ): pass
18
29
0.75
9f3965564d9d4b6933f8ffa057f055ca7716959d
548
py
Python
Problems/Dynamic Programming/Easy/BuySellStock1/test_buy_sell_stock_1.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Dynamic Programming/Easy/BuySellStock1/test_buy_sell_stock_1.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Dynamic Programming/Easy/BuySellStock1/test_buy_sell_stock_1.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from unittest import TestCase from buy_sell_stock_1 import max_profit_1, max_profit_2 class Test(TestCase): def test_max_profit_1(self): self.assertTrue(max_profit_1([7, 1, 5, 3, 6, 4]) == 5) self.assertTrue(max_profit_1([7, 6, 4, 3, 1]) == 0) self.assertTrue(max_profit_1([7, 6, 4, 3, 1, 5]...
39.142857
62
0.614964
4c852d0f19ce5e29c74d853a590a202bf32bda7f
2,249
py
Python
crawlab/utils/log.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
1
2019-08-20T14:26:39.000Z
2019-08-20T14:26:39.000Z
crawlab/utils/log.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
9
2019-05-24T03:53:09.000Z
2022-02-26T10:53:48.000Z
crawlab/utils/log.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
1
2019-11-08T08:12:40.000Z
2019-11-08T08:12:40.000Z
# -*- coding: utf-8 -*- # @Time : 2019-01-28 15:37 # @Author : cxa # @File : log.py # @Software: PyCharm import os import logging import logging.config as log_conf import datetime import coloredlogs log_dir = os.path.dirname(os.path.dirname(__file__)) + '/logs' if not os.path.exists(log_dir): os.mkdir(log_dir) tod...
29.592105
117
0.516229
4ccd2d2ee0b2910dbbcc89bc8e19821d73d4d8e5
400
py
Python
exercises/ja/exc_04_10.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/exc_04_10.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/exc_04_10.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
TRAINING_DATA = [ ( "去年アスムテルダムに行った。運河がきれいだった。", {"entities": [(2, 9, "TOURIST_DESTINATION")]}, ), ( "人生で一度はパリに行くべきだけど、エッフェル塔はちょっとつまらないな。", {"entities": [(6, 8, "TOURIST_DESTINATION")]}, ), ("アーカンソーにもパリはあるw", {"entities": []}), ( "ベルリンは夏が最高!公園がたくさんあって、夜遊びが充...
25
54
0.53
e2f0ae5c20618edc45fa5422c8c1846e0134c7b8
136
py
Python
content/ko/examples/application/job/rabbitmq/worker.py
rendiputra/website
4b93c0608828e685881be1662e766d696f0b097b
[ "CC-BY-4.0" ]
3,157
2017-10-18T13:28:53.000Z
2022-03-31T06:41:57.000Z
content/ko/examples/application/job/rabbitmq/worker.py
rendiputra/website
4b93c0608828e685881be1662e766d696f0b097b
[ "CC-BY-4.0" ]
27,074
2017-10-18T09:53:11.000Z
2022-03-31T23:57:19.000Z
content/ko/examples/application/job/rabbitmq/worker.py
rendiputra/website
4b93c0608828e685881be1662e766d696f0b097b
[ "CC-BY-4.0" ]
11,539
2017-10-18T15:54:11.000Z
2022-03-31T12:51:54.000Z
#!/usr/bin/env python # 표준 출력만 출력하고 10초 동안 대기한다. import sys import time print("Processing " + sys.stdin.readlines()[0]) time.sleep(10)
17
47
0.705882
80bd586e9f616279a28bfa07b434525338bd562b
1,097
py
Python
python/en/archive/practice_python/practice_python-exercise02-Odd Or Even.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/practice_python/practice_python-exercise02-Odd Or Even.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/practice_python/practice_python-exercise02-Odd Or Even.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 2018-10-23 (Tue) PRACTICE PYTHON, https://www.practicepython.org/ Exercise 2. Odd or Even https://www.practicepython.org/exercise/2014/02/05/02-odd-or-even.html Ask the user for a number. Depending on whether the number is even or odd, print out an appropriate message to the user...
25.511628
81
0.680036
80bf3e6493da7ac1780b96e999b9bcbd14255af8
1,241
py
Python
src/test/tests/queries/IntegralCurveInfo.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/queries/IntegralCurveInfo.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/queries/IntegralCurveInfo.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: IntegralCurveInfo.py # # Tests: queries - IntegralCurveInfo # # Programmer: Dave Pugmire # Date: Nov 10, 2010 # # Modifications: # Kathleen Biagas, Thu Jul 14 10:44:55 PDT 2011 # ...
27.577778
99
0.590653
03ad3bbe19c525067931f5daf1d26099507f3331
2,729
py
Python
skripte_datensammlung/emoji_helper.py
TimSchmittmann/ML2-Project
7ad01366f2322018065efcae542ae75786b3c0ec
[ "MIT" ]
null
null
null
skripte_datensammlung/emoji_helper.py
TimSchmittmann/ML2-Project
7ad01366f2322018065efcae542ae75786b3c0ec
[ "MIT" ]
null
null
null
skripte_datensammlung/emoji_helper.py
TimSchmittmann/ML2-Project
7ad01366f2322018065efcae542ae75786b3c0ec
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' @author: Tim Schmittmann ''' import emoji import regex import csv import time def split_count(text): emoji_list = [] data = regex.findall(r'\X', text) for word in data: if any(char in emoji.UNICODE_EMOJI for char in word): emoji_list.append(word) return...
34.1125
100
0.576035
ff0b68122a8ebc860ceceae147883e9fe6c48b6b
4,749
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/62a1/heap/generic_heap.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/62a1/heap/generic_heap.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/62a1/heap/generic_heap.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
class Heap: def __init__(self, comparator=lambda a, b: a > b): self.storage = [] self.comparator = comparator # insert a node def insert(self, x): # get length of storage array length = len(self.storage) # add value to end of array self.storage.append(x) ...
36.251908
129
0.595915
205dea0ee83f92d4617965da963a32bbd72fd40c
2,095
py
Python
publishconf.py
jeffskinnerbox/jeffskinnerbox.github.io
d07feff062dc80da1fef339185a891d97d5c2806
[ "Unlicense", "MIT" ]
29
2015-09-12T08:08:12.000Z
2022-03-01T14:24:18.000Z
publishconf.py
jeffskinnerbox/jeffskinnerbox.github.io
d07feff062dc80da1fef339185a891d97d5c2806
[ "Unlicense", "MIT" ]
null
null
null
publishconf.py
jeffskinnerbox/jeffskinnerbox.github.io
d07feff062dc80da1fef339185a891d97d5c2806
[ "Unlicense", "MIT" ]
14
2015-09-12T08:08:13.000Z
2022-01-27T07:28:16.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This file is only used if you use `make publish` or # explicitly specify it as your config file. # No longer publishing to http://localhost:8000/ from __future__ import unicode_literals import os import sys sys.path.append(os.curdir) from pelicanconf import * ...
39.528302
119
0.689737
b34e52acbf713b40dd70d91f0fdd904047f4f6fb
171
py
Python
software/test/schleifen.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
null
null
null
software/test/schleifen.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
null
null
null
software/test/schleifen.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
1
2020-03-08T01:50:58.000Z
2020-03-08T01:50:58.000Z
print('Dini mueter') n = [2,2,3,4,5,6] for i in n: print(i) if i % 2 == 0: print(i) print('fuck') for i in range(10): print(i) print('easy')
13.153846
20
0.48538
ff7dfe3a90d50e052e3aa82798548c3f68d46371
86
py
Python
WD/Cwiczenia/Liczenie/PodzielPrzez9.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
1
2020-02-29T14:38:33.000Z
2020-02-29T14:38:33.000Z
WD/Cwiczenia/Liczenie/PodzielPrzez9.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
WD/Cwiczenia/Liczenie/PodzielPrzez9.py
galursa/UWM
b7ab4a275662764a91af6c5bc79da0d98177d0ac
[ "MIT" ]
null
null
null
def PodzielnePrzez9(ile): ciag=[i for i in range(9,9*ile+9,9)] return ciag
21.5
41
0.627907
ffa5ec9af8fb6253453294a8c25887552d2d51bb
18,104
py
Python
transonic/aheadoftime.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
transonic/aheadoftime.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
transonic/aheadoftime.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
"""User runtime API for the ahead-of-time compilation ===================================================== User API -------- .. autofunction:: boost .. autoclass:: Transonic :members: :private-members: Internal API ------------ .. autofunction:: _get_transonic_calling_module .. autoclass:: CheckCompiling ...
30.07309
95
0.590974
441bdfbc697dfacaa4eff5afc1bf104b5e772e2e
928
py
Python
zencad/examples/1.GeomPrim/2.prim2d/ellipse.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/examples/1.GeomPrim/2.prim2d/ellipse.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/examples/1.GeomPrim/2.prim2d/ellipse.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ ZenCad API example: ellipse """ from zencad import * el_r1 = 7 el_r2 = 5 el_a1 = deg(-45) el_a2 = deg(180) m0 = ellipse(r1=el_r1, r2=el_r2) m1 = ellipse(r1=el_r1, r2=el_r2, angle=(el_a1, el_a2)) m2 = ellipse(r1=el_r1, r2=el_r2, wire=True) m3 = ellipse(r1=el_r1, r2=el_r2, angle=(el_a1, el_...
25.777778
65
0.681034
4484d9da3547661ca2b958b6af2ef26f71a0270a
3,440
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/simulation/simulation.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/simulation/simulation.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/simulation/simulation.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
36.595745
100
0.615116
9225cd6a619338dc787dc6223b4d9fcebb38077d
979
py
Python
ucct/category.py
retnikt/ucct_backend
42b3630d7a6541a898c650f8aa1754208b71692e
[ "Apache-2.0" ]
null
null
null
ucct/category.py
retnikt/ucct_backend
42b3630d7a6541a898c650f8aa1754208b71692e
[ "Apache-2.0" ]
null
null
null
ucct/category.py
retnikt/ucct_backend
42b3630d7a6541a898c650f8aa1754208b71692e
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 retnikt Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribu...
27.194444
72
0.707865
a6805f93211a68adf0ddec6bd5155797048726e1
307
py
Python
Classes/Player_object.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-04-30T15:46:47.000Z
2018-04-30T15:46:47.000Z
Classes/Player_object.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-06-03T13:20:19.000Z
2018-06-03T20:19:25.000Z
Classes/Player_object.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-06-03T12:59:11.000Z
2018-06-03T12:59:11.000Z
import pygame class Player_object(object): x, y = '', '' desc = "player" def __init__(self, pos, id): self.x = pos[0] self.y = pos[1] self.rect = pygame.Rect(self.x, self.y, 50, 50) self.desc = "player " + id def get_player(self): return self
15.35
55
0.52443
a6cb5821a70e85bb5ab58a6fdea915d5dc6862b5
473
py
Python
python/coding_dojang/practice_regular_expression.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/coding_dojang/practice_regular_expression.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/coding_dojang/practice_regular_expression.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import re p = re.compile('^[a-zA-Z0-9-+_.]+@[a-zA-Z0-9-.]+\.[a-z]+$') emails = ['python@mail.example.com', 'python+kr@example.com', # 올바른 형식 'python-dojang@example.co.kr', 'python_10@example.info', # 올바른 형식 'python.dojang@e-xample.com', # 올바른 ...
43
83
0.5074
5bd54cccec8f3257621d36fdbe561c24ee1c0a74
507
py
Python
hello/hello_ui/hello_tk_scrollbar.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
hello/hello_ui/hello_tk_scrollbar.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
hello/hello_ui/hello_tk_scrollbar.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from tkinter import * if __name__ == '__main__': # 官方有ScrolledText的实现! from ScrolledText import ScrolledText # 官方没有Listbox的Scrollbar实现! master = Tk() scrollbar = Scrollbar(master) scrollbar.pack(side=RIGHT, fill=Y) listbox = Listbox(master, yscr...
23.045455
63
0.678501
cace767de337f383fa3e3428c27da57d5da7209e
317
py
Python
exercises/ja/test_01_03_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/ja/test_01_03_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/ja/test_01_03_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert doc.text == "私はツリーカンガルーとイッカクが好きです。", "テキストをちゃんと処理しましたか?" assert first_token == doc[0], "最初のトークンを選択しましたか?" assert "print(first_token.text)" in __solution__, "トークンのテキストをプリントしましたか?" assert 'spacy.blank("ja")' in __solution__, 'spacy.blankに指定する言語は合っていますか?' __msg__.good("よくできました!")
45.285714
77
0.712934
17081e9d59a6b410dbbc3a6b00c72c57310abc45
594
py
Python
Decorators/ClassDecorator.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
Decorators/ClassDecorator.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
Decorators/ClassDecorator.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
''' IMPLEMENTATION DATE: 23/06/2019 DEVELOPER NAME: M.BALAVIGNESH Scope Of Implementation: Understanding about classmethod decorator. ''' class ClassMethod: _names = ['Bala', 'Deva', 'Deepan'] @classmethod def getnames(cls): return cls._na...
21.214286
75
0.537037
6d33b032889a73acec27941f88507599482af6d0
4,576
py
Python
chapter6/dataprocess.py
yangzhijiang/GeektimeTensorflow
80479426a216d1d27fc78e53c581008ccec46cbe
[ "MIT" ]
1
2020-02-16T13:31:42.000Z
2020-02-16T13:31:42.000Z
chapter6/dataprocess.py
yangzhijiang/GeektimeTensorflow
80479426a216d1d27fc78e53c581008ccec46cbe
[ "MIT" ]
null
null
null
chapter6/dataprocess.py
yangzhijiang/GeektimeTensorflow
80479426a216d1d27fc78e53c581008ccec46cbe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2019/3/12 18:29 # @Author : LunaFire # @Email : gilgemesh2012@gmail.com # @File : dataprocess.py import glob import numpy as np import matplotlib.pyplot as plt from PIL import Image from keras import backend as K NUMBER = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] L...
33.647059
92
0.560533
eded9bd28861df8e0a19aface918f6eb2edb3066
315
py
Python
Curso-Em-Video-Python/2Exercicios/035-analisando-triangulo.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/035-analisando-triangulo.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/035-analisando-triangulo.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
lado1 = float(input('Digite o primeiro lado do triangulo: ')) lado2 = float(input('Digite o segundo lado do triangulo: ')) lado3 = float(input('Digite o terceiro lado do triangulo: ')) if lado1 < lado2 + lado3 and lado2 < lado1 + lado3 and lado3 < lado1 + lado2: print('Verdadeiro!!') else: print('Falso!!')
45
77
0.685714
1eaa50b744a5090167917e4f54849ad43afb3301
462
py
Python
src/compgen2/__init__.py
CorrelAid/compgen-ii-cgv
810a044d6bbe1ce058a359115e3e5fc71a358549
[ "MIT" ]
1
2022-02-02T12:41:06.000Z
2022-02-02T12:41:06.000Z
src/compgen2/__init__.py
CorrelAid/compgen-ii-cgv
810a044d6bbe1ce058a359115e3e5fc71a358549
[ "MIT" ]
null
null
null
src/compgen2/__init__.py
CorrelAid/compgen-ii-cgv
810a044d6bbe1ce058a359115e3e5fc71a358549
[ "MIT" ]
null
null
null
from .correction import (LocCorrection, Phonetic, Preprocessing) from .gov import Gov, Matcher from .testdata import (GovTestData, Manipulator, StringEnriched, Synthetic, get_accuracy, sample_test_set_from_gov) __all__ = [ "get_accuracy", "Gov", "GovTestData", "LocCorrection", ...
24.315789
75
0.666667
1eaaf81e291d231154185a7226ac1d2c4030f76f
11,293
py
Python
Packs/AzureStorage/Integrations/AzureStorage/AzureStorage_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/AzureStorage/Integrations/AzureStorage/AzureStorage_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/AzureStorage/Integrations/AzureStorage/AzureStorage_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import io import json import requests import pytest from AzureStorage import (ASClient, storage_account_list, storage_account_create_update, storage_blob_service_properties_get, storage_blob_service_properties_set, storage_blob_containers_create, storage_blob_contai...
41.215328
121
0.644559
bf961a09fd659a714441e349113514bcd6b5b789
130
py
Python
2-resources/Lambda-weeks/m7/71e1/cs-sprint-challenge-hash-tables-master/hashtables/ex1/ex1.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/Lambda-weeks/m7/71e1/cs-sprint-challenge-hash-tables-master/hashtables/ex1/ex1.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/Lambda-weeks/m7/71e1/cs-sprint-challenge-hash-tables-master/hashtables/ex1/ex1.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
def get_indices_of_item_weights(weights, length, limit): """ YOUR CODE HERE """ # Your code here return None
16.25
56
0.630769
bf9f104536212afc1e8d541ec34ccbed90ef1434
3,324
py
Python
Packs/Campaign/Scripts/GetCampaignIndicatorsByIncidentId/GetCampaignIndicatorsByIncidentId_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Campaign/Scripts/GetCampaignIndicatorsByIncidentId/GetCampaignIndicatorsByIncidentId_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Campaign/Scripts/GetCampaignIndicatorsByIncidentId/GetCampaignIndicatorsByIncidentId_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest from GetCampaignIndicatorsByIncidentId import * import demistomock as demisto INCIDENT_IDS = ['1', '2', '3'] INDICATORS = [ { "Contents": [ { "id": "23", "indicator_type": "URL", "investigationIDs": [ "1" ...
33.918367
103
0.55716
bdba3d74420efc10b1b8d93d9bc4ef66971fd6f7
4,445
py
Python
src/onegov/swissvotes/views/auth.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/views/auth.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/views/auth.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Personal from onegov.core.security import Public from onegov.core.templates import render_template from onegov.core.utils import relative_url from onegov.swissvotes import _ from onegov.swissvotes import log from onegov.swissvotes import SwissvotesApp from onegov.swissvotes.layouts impo...
29.052288
75
0.594601
e570437c9058c010fb7549d639252cf90b24e02f
3,970
py
Python
source/data/streaming/sparkStreaming.py
aaarl/Spotify-Auswertung-Big-Data-Plattform
47684db8eb3a8764568c1365dd02a8c2b3975dba
[ "Apache-2.0" ]
1
2021-12-29T20:06:54.000Z
2021-12-29T20:06:54.000Z
source/data/streaming/sparkStreaming.py
aaarl/Spotify-Auswertung-Big-Data-Plattform
47684db8eb3a8764568c1365dd02a8c2b3975dba
[ "Apache-2.0" ]
null
null
null
source/data/streaming/sparkStreaming.py
aaarl/Spotify-Auswertung-Big-Data-Plattform
47684db8eb3a8764568c1365dd02a8c2b3975dba
[ "Apache-2.0" ]
null
null
null
from pyspark.streaming import StreamingContext from pyspark.sql import Row, SparkSession from pyspark import SparkContext import socketserver import threading import time import random # Define server thread def startServerThread(): class MySocketHandler(socketserver.BaseRequestHandler): def handle(self)...
37.809524
395
0.659194
e5ff0ec3e1e19de94aaa05184f0ed7822ba15d38
1,133
py
Python
zengjingli/flask-tutorial/flaskr/lijing/lijing_index.py
lijianran/FlaskWeb
788f62d2bcdc374e03cc1623ee4bf21db697ace9
[ "Apache-2.0" ]
null
null
null
zengjingli/flask-tutorial/flaskr/lijing/lijing_index.py
lijianran/FlaskWeb
788f62d2bcdc374e03cc1623ee4bf21db697ace9
[ "Apache-2.0" ]
null
null
null
zengjingli/flask-tutorial/flaskr/lijing/lijing_index.py
lijianran/FlaskWeb
788f62d2bcdc374e03cc1623ee4bf21db697ace9
[ "Apache-2.0" ]
null
null
null
from flask import ( Blueprint, flash, g, redirect, render_template, request, url_for, jsonify, session, send_file, send_from_directory ) from flaskr.auth import login_required import os bp = Blueprint('lijing', __name__, url_prefix='/lijing') @bp.route('/') def index(): return render_template('lijing/login...
24.630435
118
0.692851
00f61ebc839dd550e6dc13c3f45c25074fd1ebb0
572
py
Python
PyHugeGraph/Response.py
WeiwenRen/PyHugeGraph
e09430da5a5b93fbafd1de02f8c4545bd1f0afd7
[ "Apache-2.0" ]
null
null
null
PyHugeGraph/Response.py
WeiwenRen/PyHugeGraph
e09430da5a5b93fbafd1de02f8c4545bd1f0afd7
[ "Apache-2.0" ]
null
null
null
PyHugeGraph/Response.py
WeiwenRen/PyHugeGraph
e09430da5a5b93fbafd1de02f8c4545bd1f0afd7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: Response.py Description : Author : tangjiawei date: 2018/08/23 ------------------------------------------------- Change Activity: 2018/08/23: v1 ---------------------------------...
19.724138
49
0.417832
97cf1f29e7356105004de8059e78ad8c23ba3a8e
6,141
py
Python
cs/lambda_cs/06_graphs/notes/graph_brian.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/06_graphs/notes/graph_brian.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/06_graphs/notes/graph_brian.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Simple graph implementation """ from util import Stack, Queue # These may come in handy class Graph: """Represent a graph as a dictionary of vertices mapping labels to edges.""" def __init__(self): self.vertices = {} # This is our adjacency list def add_vertex(self, vertex_id): ""...
28.299539
112
0.509363
68baa8b2597942ba6cea95bad6d8b8c5b1e3b75f
2,021
py
Python
reports/srp/code/first_model.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2020-04-17T12:27:06.000Z
2020-04-17T12:27:06.000Z
reports/srp/code/first_model.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2022-02-27T13:13:17.000Z
2022-02-27T13:13:17.000Z
reports/srp/code/first_model.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
null
null
null
from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.keras import layers from tensorflow.keras import models from tensorflow.keras.callbacks import TensorBoard from os.path import join class model: def __init__(self, dirs, image_size, dense_layers, optimizer, training_params): ...
38.865385
94
0.677882
6bad30d97f4b56a4c5a576a20e7f9b2b0456ea38
5,074
py
Python
graphs/graphs/Embed/Embedding_graph.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
graphs/graphs/Embed/Embedding_graph.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
graphs/graphs/Embed/Embedding_graph.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
""" Embedding_graph.py: Tensorflow Graph for the Deep Embedding Autoencoder """ __author__ = "Khalid M. Kahloot" __copyright__ = "Copyright 2019, Only for professionals" __paper__ = "https://xifengguo.github.io/papers/IJCAI17-IDEC.pdf" import tensorflow as tf import tensorflow.keras.backend as K import numpy...
49.745098
156
0.535672
6bcf5b8dbadc1ec653c37976c24c83e56ba47859
784
py
Python
BIZa/2014/DubsAlexandra/task_4_47.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BIZa/2014/DubsAlexandra/task_4_47.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BIZa/2014/DubsAlexandra/task_4_47.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 47 # Напишите программу, которая выводит имя, под которым скрывается Аврора Жюпен. Дополнительно необходимо вывести область интересов указанной личности, место рождения, годы рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти). Для хранения всех необходимых ...
56
432
0.760204
6bf4ec8a45f73cd98987533e7a94746acb4c2f16
8,110
py
Python
evaluation.py
ChristianKitte/Textextraktion-und-Einordnung-mit-Hilfe-neuronaler-Netze
53d3fc6b1c17f31146741cdebd743f4aa12a09e0
[ "MIT" ]
null
null
null
evaluation.py
ChristianKitte/Textextraktion-und-Einordnung-mit-Hilfe-neuronaler-Netze
53d3fc6b1c17f31146741cdebd743f4aa12a09e0
[ "MIT" ]
16
2020-01-28T23:04:13.000Z
2022-03-12T00:02:40.000Z
evaluation.py
ChristianKitte/Textextraktion-und-Einordnung-mit-Hilfe-neuronaler-Netze
53d3fc6b1c17f31146741cdebd743f4aa12a09e0
[ "MIT" ]
null
null
null
""" Function of evaluation.py The script makes it possible to quickly and easily perform all stored functions for testing the system. The results are stored in the defined directories. The functions can be executed immediately. All required images are stored. In addition, the script can be adapted for further ima...
46.342857
121
0.624784
2e02aba44976e6eda5761a2a994f94f8df6c009e
241
py
Python
split_join.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
split_join.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
split_join.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
def split_and_join(line): #print(*(line.split()), sep='-') separated = ("-".join(str(x) for x in line.split())) return separated if __name__ == '__main__': line = input() result = split_and_join(line) print(result)
21.909091
56
0.609959
cf4955534d81b8df6d619c8d3dd5ed1c3e989a58
5,107
py
Python
src/onegov/swissvotes/layouts/page.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/layouts/page.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/layouts/page.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from onegov.core.elements import Link from onegov.core.elements import LinkGroup from onegov.core.utils import Bunch from onegov.swissvotes import _ from onegov.swissvotes.collections import SwissVoteCollection from onegov.swissvotes.layouts.default import DefaultLayout from ...
28.853107
79
0.540826
5ae65f066094494108da2ad79ee015500e7f44a2
705
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v6_16/create_manufacturer_records.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v6_16/create_manufacturer_records.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_16/create_manufacturer_records.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import cstr def execute(): frappe.reload_doc("stock", "doctype", "manufacturer") frappe.reload_doctype("Item") for...
35.25
84
0.743262
5af054031c1f9369c81b7c24c74767811d6e619d
234
py
Python
UnityPython.FrontEnd/unitypython/JSON.py
franklin1dev/Traffy.UnityPython-main
b616e4c0043af05f5c34ebd245c09b21bfa79a10
[ "MIT" ]
29
2022-02-21T01:48:23.000Z
2022-03-31T11:01:14.000Z
UnityPython.FrontEnd/unitypython/JSON.py
franklin1dev/Traffy.UnityPython-main
b616e4c0043af05f5c34ebd245c09b21bfa79a10
[ "MIT" ]
25
2022-02-20T23:32:06.000Z
2022-03-31T05:04:01.000Z
UnityPython.FrontEnd/unitypython/JSON.py
thautwarm/Traffy.UnityPython
2133db6df44d70e766b51a32bbe949d3deb84dc1
[ "MIT" ]
null
null
null
try: import ujson def dump_json(x): return ujson.dumps(x, ensure_ascii=False, escape_forward_slashes=False) except ImportError: import json def dump_json(x): return json.dumps(x, ensure_ascii=False)
19.5
79
0.688034
89074177b67a4db5501decc6e0058a2595b6cf77
942
py
Python
checks/dns_resolution_test.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
19
2018-04-20T11:03:41.000Z
2022-01-12T20:58:56.000Z
checks/dns_resolution_test.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
160
2018-04-05T16:12:59.000Z
2022-03-01T13:01:27.000Z
checks/dns_resolution_test.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
8
2018-11-05T13:07:57.000Z
2021-06-11T11:46:43.000Z
import unittest import logging import sys from pprint import pprint from checks import dns_resolution from checks.config import Config class TestDNSResolution(unittest.TestCase): def runTest(self): """Resolves www.google.com""" url = 'https://www.google.com/' config = Config(urls=[url]) ...
31.4
76
0.690021
749379ab4ad9ffd9c62043831f7aafeca2da7cf2
41
py
Python
AdvancePython-master/chapter08/my_test.py
xuyifeiCoco/python
83af27b3baf1caf157b330c580f356a94095e44d
[ "MIT" ]
26
2019-09-17T12:48:36.000Z
2022-02-24T12:27:01.000Z
AdvancePython-master/chapter08/my_test.py
xuyifeiCoco/python
83af27b3baf1caf157b330c580f356a94095e44d
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
coding-200/chapter08/my_test.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
20
2019-05-31T14:21:00.000Z
2021-07-27T15:58:25.000Z
from chapter08.property_test import User
20.5
40
0.878049
77b58afc606cc2b7f074b4ec61f97756639cd120
534
py
Python
CareerTinderServer/CareerTinder/views.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
1
2016-09-18T16:40:27.000Z
2016-09-18T16:40:27.000Z
CareerTinderServer/CareerTinder/views.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
null
null
null
CareerTinderServer/CareerTinder/views.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse # Create your views here. def index(request): return render(request, 'CareerTinder/index.html' ) def about(request): return render(request, 'CareerTinder/about.html' ) def error404(request): template = loa...
22.25
86
0.694757
7afaf91a7702694ba11c113f0e2a34e3ae88daf2
3,700
py
Python
src/classifier/data_processing/annotate/annotate_sentences.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/classifier/data_processing/annotate/annotate_sentences.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/classifier/data_processing/annotate/annotate_sentences.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import os import numpy as np import pandas as pd import hydra from src.classifier.data_processing.annotate.metrics import ( fleiss_kappa, get_all_pairwise_kappas, ) def create_combined_df(data_dir): data_dir = hydra.utils.to_absolute_path(data_dir) annotations = pd.DataFrame() annotator_names = ...
30.578512
129
0.646486
7087697cd76b58e855312e0907298d726a551e72
78
py
Python
Python/Math/integers_come_in_all_sizes.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Math/integers_come_in_all_sizes.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Math/integers_come_in_all_sizes.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
print int(raw_input())**int(raw_input()) + int(raw_input())**int(raw_input())
78
78
0.679487
8ead3a40ceed9fa13b51a599a7a722cc971d938c
46,222
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/plugins/mapmatching/wxgui.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/plugins/mapmatching/wxgui.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/plugins/mapmatching/wxgui.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
41.269643
116
0.554238
79dd7c91f8fb61dcbb9e2212be91946b2664fff6
1,381
py
Python
jumeaux/notification_handlers/slack.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/notification_handlers/slack.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/notification_handlers/slack.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 -*- import os import requests from jumeaux.models import * from jumeaux.notification_handlers import NotificationHandler class SlackPayload(OwlMixin): text: str channel: str username: str icon_emoji: TOption[str] icon_url: TOption[str] link_names: i...
26.557692
91
0.588704
c6140994880ed492d9bc4048ea2a83ff14d3f7a8
390
py
Python
UAS/UAS 4.py
Archedar/UAS
3237d9304026340acc93c8f36b358578dc0ae66f
[ "BSD-Source-Code" ]
null
null
null
UAS/UAS 4.py
Archedar/UAS
3237d9304026340acc93c8f36b358578dc0ae66f
[ "BSD-Source-Code" ]
null
null
null
UAS/UAS 4.py
Archedar/UAS
3237d9304026340acc93c8f36b358578dc0ae66f
[ "BSD-Source-Code" ]
null
null
null
kota = ['surabaya', 'jombang', 'bandung', 'jakarta'] for i in range(len(kota)): print(f'{i + 1} {kota[i]}') asal = int(input('dari mana(masukan no kota): ')) if asal == 1: print('kota terdekat jombang') elif asal == 2: print('kota terdekat surabaya dan bandung') elif asal == 3: print('kota terdekat jom...
26
53
0.635897
c63b0939ae8ee80f7942d3258cf88a39cfc533f9
642
py
Python
Python/numpy/numpy_with_timeit.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/numpy/numpy_with_timeit.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/numpy/numpy_with_timeit.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
import numpy as np import random from timeit import Timer sz = 1_000_000 X = [random.randint(0, 200) for _ in range(sz)] Y = [random.randint(0, 200) for _ in range(sz)] np_X = np.array(X, np.int64) np_Y = np.array(Y, np.int64) def py_add(): res = [X[i] + Y[i] for i in range(sz)] return res def np_add(): ...
27.913043
79
0.688474
ba9dbc4d2a9bc55051885688257152aa4e08cd77
2,549
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/62b1/reverse/reverse.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/62b1/reverse/reverse.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/62b1/reverse/reverse.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# MVP: # Inside of the `reverse` directory, you'll find a basic implementation of a Singly Linked List. # Without making it a Doubly Linked List (adding a tail attribute), complete the `reverse_list()` function within `reverse/reverse.py`. # Reverse the contents of the list using recursion, *not a loop.* # Rubric: # ...
32.265823
239
0.63829
bab7e6070a416d2ab4daaa2f41941caec1dbfecb
172
py
Python
PySpider/main.py
RajeshJs/Learning
0e72bd8641d916d214f09dd68b5d11d837eacc00
[ "MIT" ]
1
2021-11-05T02:54:39.000Z
2021-11-05T02:54:39.000Z
PySpider/main.py
RajeshJs/Learning
0e72bd8641d916d214f09dd68b5d11d837eacc00
[ "MIT" ]
17
2020-07-16T23:44:52.000Z
2022-03-02T03:58:57.000Z
PySpider/main.py
RajeshJs/Learning
0e72bd8641d916d214f09dd68b5d11d837eacc00
[ "MIT" ]
1
2021-11-22T04:42:18.000Z
2021-11-22T04:42:18.000Z
from people import People from student import Student peo = People('raj', 1) stu = Student('tim', 2, '三年级') peo.speak() stu.speak() import requests requests.get('')
10.75
30
0.680233
ebf7f2b7e9ff7b6ac04ba3f0649e14084434cc00
1,439
py
Python
frappe-bench/apps/erpnext/erpnext/hotels/doctype/hotel_room_package/test_hotel_room_package.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/hotels/doctype/hotel_room_package/test_hotel_room_package.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hotels/doctype/hotel_room_package/test_hotel_room_package.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest test_records = [ dict(doctype='Item', item_code='Breakfast', item_group='Products', is_stock_item=0), dict(doctype='Item', item_code='...
28.78
69
0.703266
2333ed77b3363c84928822ed24aecb5d3a89f7c6
2,836
py
Python
20-hs-redez-sem/groups/05-decentGames/src/RPC.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-hs-redez-sem/groups/05-decentGames/src/RPC.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-hs-redez-sem/groups/05-decentGames/src/RPC.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import json import socket import xmlrpc.client from xmlrpc.server import SimpleXMLRPCServer import xmlrpc.client as rpc from AbsGame import MY_IP class RequestServer: def __init__(self): self.ip = MY_IP if self.ip == '127.0.0.1' or self.ip == '127.0.1.1' : self.ip = input( ...
31.865169
120
0.584979
aef4aae74d798a6840271e0e74dfa9637a3c64e3
11,497
py
Python
hashing/scripts/memory_consumption.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
hashing/scripts/memory_consumption.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
hashing/scripts/memory_consumption.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
import itertools as it import os from math import ceil from math import log10 import matplotlib import matplotlib.pyplot as plt import pylab from matplotlib.font_manager import FontProperties from matplotlib.ticker import MaxNLocator, LinearLocator, ScalarFormatter from matplotlib.ticker import PercentFormatter, LogL...
38.069536
142
0.544751
aef727fa51e4891211313787d53d87e2544dffad
344
py
Python
python/unittest/mock/realpython/my_calendar.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/unittest/mock/realpython/my_calendar.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/unittest/mock/realpython/my_calendar.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from datetime import datetime import requests def is_weekday(): today = datetime.today() # Python's datetime library treats Monday as 0 and Sunday as 6 return 0 <= today.weekday() < 5 def get_holidays(): r = requests.get("http://localhost/api/holidays") if r.status_code == 200: return r...
20.235294
66
0.665698
9d9a7d0c86c8c70d2e97735c42ab6390616906f9
1,488
py
Python
mobile/tools/python/imagetools/numpy2binary.py
jameswu2014/Paddle-Lite
827e349ac8eb769a873fe9b3aa961af8b8b20a96
[ "Apache-2.0" ]
3
2018-08-01T09:45:48.000Z
2021-01-06T14:55:10.000Z
mobile/tools/python/imagetools/numpy2binary.py
tao8687/Paddle-Lite
ebc0e39c7e8c09ad2d1b6a2923a420b2c1727635
[ "Apache-2.0" ]
null
null
null
mobile/tools/python/imagetools/numpy2binary.py
tao8687/Paddle-Lite
ebc0e39c7e8c09ad2d1b6a2923a420b2c1727635
[ "Apache-2.0" ]
5
2020-10-13T09:30:16.000Z
2021-06-08T02:46:17.000Z
#!/usr/bin/env bash # coding=utf-8 # This script convert numpy format to binary's import cv2 import numpy as np import imagetools as tools from array import array ''' image = cv2.imread(path) print image.shape print_rgb(image[0, 0]) # mage len may be for .just check it image.resize(shape_h_w) ''' if __name__ == "__...
24.393443
101
0.577957
9dc2c6dc0a1e32774eca85e1f712f3611f81a5ee
1,912
py
Python
disenn/models/decoders.py
AmanDaVinci/DiSENN
ca84a8d646ad8e5e3675ffd19165c20933b81ef7
[ "MIT" ]
1
2020-08-28T05:06:36.000Z
2020-08-28T05:06:36.000Z
disenn/models/decoders.py
AmanDaVinci/DiSENN
ca84a8d646ad8e5e3675ffd19165c20933b81ef7
[ "MIT" ]
null
null
null
disenn/models/decoders.py
AmanDaVinci/DiSENN
ca84a8d646ad8e5e3675ffd19165c20933b81ef7
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import numpy as np class ConvDecoder(nn.Module): """ Convolutional Decoder Architecture ------------ FC: Latent Dimension FC: 256 neurons FC: 256 neurons Transpose Conv: 32 channels, 4x4 Transpose Conv: 32 channels, 4x4 Transpose Conv: 32 channels...
29.415385
92
0.57636
c9a2607a9d864b6c466f72383cdc7be7178634d2
1,948
py
Python
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_04_Standarddatentypen/04_kapitel_04_repetitionsaufgabe_check_isbn.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_04_Standarddatentypen/04_kapitel_04_repetitionsaufgabe_check_isbn.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_04_Standarddatentypen/04_kapitel_04_repetitionsaufgabe_check_isbn.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ### # File: 03_kapitel_04_repetitionsaufgabe_check_isbn.py # Project: Kapitel_04_Standarddatentypen # Created Date: Saturday 23.02.2019, 12:45 # Author: Apop85 # ----- # Last Modified: Saturday 23.02.2019, 14:51 # ----- # Copyright (c) 2019 Apop85 # This software is publish...
30.4375
95
0.63347
11862fa587ff09964afd554a85ca842d3e623cde
694
py
Python
Chapter2_Basics/Solution3.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
2
2021-02-13T19:18:00.000Z
2021-11-10T09:54:49.000Z
Chapter2_Basics/Solution3.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
null
null
null
Chapter2_Basics/Solution3.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
null
null
null
"""Exercise 2: 1.) Write a function that takes a dictionary as an input. The function then iterates over all values of each key and counts how many Students are in the dictionary. (See d below) 2.) Write a function that iterates over all key, value pairs of the dictionary and prints the name of the student. """ def e...
23.133333
78
0.65562
f507ade0745a4769b49d08f8c11d1c465012194d
170
py
Python
banking/admin.py
deepur99/Pocket-Bank-
8d960a548cab992568c23086974031512611247f
[ "Apache-2.0" ]
null
null
null
banking/admin.py
deepur99/Pocket-Bank-
8d960a548cab992568c23086974031512611247f
[ "Apache-2.0" ]
null
null
null
banking/admin.py
deepur99/Pocket-Bank-
8d960a548cab992568c23086974031512611247f
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Balance) admin.site.register(After) admin.site.register(Payments)
24.285714
32
0.805882
01613ad302c9f375c330a81a41595f412388ad60
1,183
py
Python
src/ingestion/pipeline.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/ingestion/pipeline.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/ingestion/pipeline.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
from dataclasses import dataclass, field from typing import Any, Dict, List, Type from .destinations import Destination, DestinationFactory from .transformers import Transformer @dataclass class Pipeline(Destination): transformers: List[Type[Transformer]] destinations: List[Destination] @classmethod ...
33.8
117
0.737954
01837d3147b0aca31693dbdce9bae8b4d3a4e3f1
807
py
Python
03.BruteForce/NY/B1260.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
03.BruteForce/NY/B1260.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
03.BruteForce/NY/B1260.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
#백준 1260 - DFS, BFS # 왜 자꾸... check를 못 찾는다고 하는 거지..? from collections import deque N, M, V = map(int, input().split()) check = [False for _ in range(N+1)] G = [[0 for _ in range(N+1)] for _ in range(N+1)] for _ in range (M) : x, y = list(map(int, input().split())) G[x][y] = G[y][x] = 1 def DFS (v) : ...
18.767442
49
0.472119
6d70b096242c7a0b74b1bd094fb064812ba88fdf
88
py
Python
pandemie/tester/__main__.py
marvinsxtr/informaticup-2020-pandemie
0d37d5236eadfe7bb3cbd7cbfd0e1b7afca74c89
[ "MIT" ]
null
null
null
pandemie/tester/__main__.py
marvinsxtr/informaticup-2020-pandemie
0d37d5236eadfe7bb3cbd7cbfd0e1b7afca74c89
[ "MIT" ]
null
null
null
pandemie/tester/__main__.py
marvinsxtr/informaticup-2020-pandemie
0d37d5236eadfe7bb3cbd7cbfd0e1b7afca74c89
[ "MIT" ]
1
2020-03-28T00:02:41.000Z
2020-03-28T00:02:41.000Z
import os from pandemie.tester.tester import main os.chdir("./pandemie/tester") main()
14.666667
39
0.761364
09fb3985b42bcb31658196304d66a613bda93466
1,744
py
Python
handler/Reminder.py
wchming1987/Tumbler
e309771779c8eb44e685adbb691a428d29009e05
[ "Apache-2.0" ]
null
null
null
handler/Reminder.py
wchming1987/Tumbler
e309771779c8eb44e685adbb691a428d29009e05
[ "Apache-2.0" ]
null
null
null
handler/Reminder.py
wchming1987/Tumbler
e309771779c8eb44e685adbb691a428d29009e05
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding=utf-8 -*- import json from bson import json_util from tornado_swagger import swagger from handler.GenericApiHandler import GenericApiHandler class RemindersHandler(GenericApiHandler): @swagger.operation(nickname='list') def get(self): """ @rtype: L{Reminder...
29.559322
94
0.588876
feff41eeb5e2fdebf6e17abb27937e5b97aff328
922
py
Python
.arch/arch/build.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
.arch/arch/build.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
.arch/arch/build.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ Wrapper for mkdocs build, with set environment variables, possibly referenced in mkdocs.yml """ from plugins import _tools as tools from devapp.app import app import os, sys, json # ------------------------------------------------------------------------------ config class Flags(tools.Dfl...
21.952381
91
0.566161
6e0ef42f06480b42a12c29526b639ba9cd9fbaa1
5,881
py
Python
script/pyscripts/check_frontmatter.py
agarrharr/fronzbot.github.io
702f5a9d5ab15046f0dad539e57766a24f583d1d
[ "MIT" ]
3
2020-04-08T03:01:05.000Z
2021-11-04T11:10:52.000Z
script/pyscripts/check_frontmatter.py
agarrharr/fronzbot.github.io
702f5a9d5ab15046f0dad539e57766a24f583d1d
[ "MIT" ]
20
2017-07-28T02:54:39.000Z
2022-02-26T03:34:48.000Z
script/pyscripts/check_frontmatter.py
agarrharr/fronzbot.github.io
702f5a9d5ab15046f0dad539e57766a24f583d1d
[ "MIT" ]
4
2019-03-04T19:56:13.000Z
2020-04-09T00:31:09.000Z
#!/usr/bin/env python """ check_frontmatter.py Author: Kevin Fronczak Date: July 25, 2017 Usage: python3 check_frontmatter.py [tests] Implemented tests: --skip=item1,item2 : Sets files to be skipped - tags : Checks for valid tags in each post_vars - feature-key : Checks that 'feature_image' key ...
33.225989
141
0.585955
95f9c541366ffed26a4631a7a96d53cbcffec1f6
2,378
py
Python
twitoff/twitter.py
ScottLightfoot/TwitOff
476e484b58707b579df3ace30ae18bfb0e6ce35a
[ "MIT" ]
null
null
null
twitoff/twitter.py
ScottLightfoot/TwitOff
476e484b58707b579df3ace30ae18bfb0e6ce35a
[ "MIT" ]
4
2021-06-08T20:53:43.000Z
2022-03-12T00:15:00.000Z
twitoff/twitter.py
ScottLightfoot/TwitOff
476e484b58707b579df3ace30ae18bfb0e6ce35a
[ "MIT" ]
null
null
null
import basilica import tweepy from decouple import config from .models import DB, Tweets, User TWITTER_USERS = ['elonmusk', 'nasa', 'neiltyson', 'pattonoswalt'] AUTH = tweepy.OAuthHandler(config('TWITTER_CONSUMER_API_KEY'), config('TWITTER_CONSUMER_API_SECRET')) AUTH.set_access_token(config...
35.492537
72
0.577796
c287b6dbc6c0188d28b693f35c576d94f03a21b6
366
py
Python
frontend/deploy/deployClient.py
jim-hill-r/BlueSteel
fa3ac479096679146b99bf5b12792fad25d9d0f1
[ "MIT" ]
2
2020-04-03T12:19:00.000Z
2020-04-03T13:32:11.000Z
frontend/deploy/deployClient.py
jim-hill-r/BlueSteel
fa3ac479096679146b99bf5b12792fad25d9d0f1
[ "MIT" ]
25
2020-04-23T23:17:20.000Z
2020-05-29T21:00:44.000Z
frontend/deploy/deployClient.py
jim-hill-r/BlueSteel
fa3ac479096679146b99bf5b12792fad25d9d0f1
[ "MIT" ]
null
null
null
from datetime import datetime from common import uploadDirectoryToS3 def deploy(): release = datetime.utcnow().isoformat() print ('Deploying configure release... ' + release) uploadDirectoryToS3('../src/client/dist/pwa','eel3-app','client/' + release,'us-east-2') print (release + ' successfully deploye...
30.5
92
0.696721
dd2880c5e5064ea20ac3b0fbaf10f3bc5f84e347
509
py
Python
ch01_text_encoding/reading_bindata.py
aisolab/17Techs
91351921c9ac85672d29dab895d4d7df8b310a6b
[ "MIT" ]
1
2021-01-10T14:32:41.000Z
2021-01-10T14:32:41.000Z
ch01_text_encoding/reading_bindata.py
aisolab/17Techs
91351921c9ac85672d29dab895d4d7df8b310a6b
[ "MIT" ]
null
null
null
ch01_text_encoding/reading_bindata.py
aisolab/17Techs
91351921c9ac85672d29dab895d4d7df8b310a6b
[ "MIT" ]
1
2021-08-14T11:23:55.000Z
2021-08-14T11:23:55.000Z
""" 1.1 문자열 인코딩이란? 문자 집합 (charset) - 문자 집합은 사용할 수 있는 문자들의 집합을 의미하며 유니코드, ISO-8859, ASCII 등이 해당한다. 문자열 인코딩 (character encoding) 또는 문자 인코딩 - 2진법을 사용하는 컴퓨터가 인간의 언어를 일정한 규칙에 따라 2진수로 변환하는 방식이며, 아스키 코드, EUC-KR, UTF-8, UTF-16, UTF-32 등이 해당 된다. - "유니코드라는 문자집합을 표현하는 문자열 인코딩은 UTF-8, UTF-16, UTF-32가 있다."...
28.277778
104
0.654224
dd29ab579079b9210c4d51053ff1f3a38e79b4da
1,762
py
Python
python/pyqt/threading_basics_tutorial/basic_gui_code.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pyqt/threading_basics_tutorial/basic_gui_code.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pyqt/threading_basics_tutorial/basic_gui_code.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import sys import time import json import requests from PyQt5 import QtGui from PyQt5 import QtWidgets from PyQt5.QtCore import QThread import design class ThreadingTutorial(QtWidgets.QMainWindow, design.Ui_MainWindow): def __init__(self): super().__init__() self.setupUi(self) self.btn...
30.912281
78
0.638479
06be52c426553993d2f6c938987bb7df91c83dad
2,191
py
Python
Chapter10_RNN/imdbData2.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter10_RNN/imdbData2.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter10_RNN/imdbData2.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
import numpy as np from tensorflow.keras.datasets import imdb from tensorflow.keras.preprocessing import sequence from tensorflow.keras.utils import to_categorical class IMDBData: def __init__( self, num_words: int, skip_top: int, maxlen: int ) -> None: # D...
37.135593
115
0.626654
06d649db55059896b8454b4b96b2f07d25d2114e
2,103
py
Python
recognizer.py
ChristianKitte/Textextraktion-und-Einordnung-mit-Hilfe-neuronaler-Netze
53d3fc6b1c17f31146741cdebd743f4aa12a09e0
[ "MIT" ]
null
null
null
recognizer.py
ChristianKitte/Textextraktion-und-Einordnung-mit-Hilfe-neuronaler-Netze
53d3fc6b1c17f31146741cdebd743f4aa12a09e0
[ "MIT" ]
16
2020-01-28T23:04:13.000Z
2022-03-12T00:02:40.000Z
recognizer.py
ChristianKitte/Textextraktion-und-Einordnung-mit-Hilfe-neuronaler-Netze
53d3fc6b1c17f31146741cdebd743f4aa12a09e0
[ "MIT" ]
null
null
null
import json class Recognizer: """Represents an abstract recognizer. Provides functionality to recognize text in images (as np array). The module and the class name of a bridge are transferred to a real model. The bridge class must have a parameterless constructor and a method named scan. The scan me...
38.944444
110
0.61436
6604d96e8a381137035f70344dc2b06cd04a10ac
1,483
py
Python
research/cv/tgcn/src/model/graph_conv.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/tgcn/src/model/graph_conv.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/tgcn/src/model/graph_conv.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...
36.170732
97
0.698584
b0e48429cfe50feb231e52ee7a8d9dfbe01d6125
5,654
py
Python
pyScript_NodeManager/ui_node_manager_mainwindow.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript_NodeManager/ui_node_manager_mainwindow.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript_NodeManager/ui_node_manager_mainwindow.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'node_manager_mainwindow.ui', # licensing of 'node_manager_mainwindow.ui' applies. # # Created: Sun Jan 12 15:51:03 2020 # by: pyside2-uic running on PySide2 5.13.0 # # WARNING! All changes made in this file will be lost! from PySide2 ...
60.148936
118
0.758224
36fdf52e62f847a22998fd5beeca31c4325c8585
4,415
py
Python
parser/MultiParser.py
weidler/tyrex
76a3d2c36405b1213f230a7a414c2741237933f8
[ "MIT" ]
1
2015-12-08T15:11:15.000Z
2015-12-08T15:11:15.000Z
parser/MultiParser.py
weidler/tyrex
76a3d2c36405b1213f230a7a414c2741237933f8
[ "MIT" ]
null
null
null
parser/MultiParser.py
weidler/tyrex
76a3d2c36405b1213f230a7a414c2741237933f8
[ "MIT" ]
null
null
null
import sys import re #import codecs from pathlib import Path from html2text import html2text import Parser class MultiParser(Parser.Parser): """ SubClass of Parser that works with multiple files and writes results in new files into given directory @parameters source_dir string path to directory that contains u...
28.668831
109
0.722763
59396989b39e05414987d5ec810f6e60f24f9e09
709
py
Python
exercises/es/test_01_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/es/test_01_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/es/test_01_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert ( "if token.like_num" in __solution__ ), "¿Estás revisando el atributo del token like_num?" assert ( 'next_token.text == "%"' in __solution__ ), "¿Estás revisando si el texto del siguiente token es un símbolo de porcentaje?" assert ( next_token.text == "%" ...
37.315789
86
0.641749
594258dc92eb4ac27def4b97f04c17705f719217
1,419
py
Python
spider/get_summit.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
spider/get_summit.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
2
2021-03-31T18:54:16.000Z
2021-12-13T19:49:08.000Z
spider/get_summit.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # '会晤'事件获取 import pymongo from pymongo import InsertOne from pymongo.errors import BulkWriteError import random from pprint import pprint from tqdm import tqdm client = pymongo.MongoClient('54.161.160.206:27017') # 与服务器上的MongoDB数据库建立连接 db = client.summit def get_events(): # 事件较少,不使用解析网页方法,直接...
24.894737
143
0.534179
ddb9767d8ac195cd0775df85ca60299df77e798f
448
py
Python
usc-20211-csci-170-30111/hw01/04a.py
Floozutter/coursework
244548f415553f058098cae84ccdd4ce3f58c245
[ "Unlicense" ]
null
null
null
usc-20211-csci-170-30111/hw01/04a.py
Floozutter/coursework
244548f415553f058098cae84ccdd4ce3f58c245
[ "Unlicense" ]
null
null
null
usc-20211-csci-170-30111/hw01/04a.py
Floozutter/coursework
244548f415553f058098cae84ccdd4ce3f58c245
[ "Unlicense" ]
null
null
null
from itertools import combinations, chain from typing import AbstractSet, FrozenSet, Iterator def powerset(s: AbstractSet[int]) -> Iterator[FrozenSet[int]]: return chain.from_iterable(map(frozenset, combinations(s, n)) for n in range(len(s) + 1)) def main() -> None: a = {1, 2, 3, 4, 5} b = {1, 2, 3} c ...
29.866667
93
0.627232
ddebd9907b36acbb7e43290a1f4d57bd3bb098e9
7,320
py
Python
hashing/scripts/profile_ysb_partition.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
hashing/scripts/profile_ysb_partition.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
hashing/scripts/profile_ysb_partition.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
import os import matplotlib import matplotlib.pyplot as plt import numpy as np import pylab from matplotlib import rc from matplotlib.font_manager import FontProperties from matplotlib.ticker import LinearLocator, ScalarFormatter OPT_FONT_NAME = 'Helvetica' TICK_FONT_SIZE = 26 LABEL_FONT_SIZE = 30 LEGEND_FONT_SIZE = ...
32.972973
133
0.596858
9b90b230c9403e46f4ad96f00e5d2cee2d7df45a
485
py
Python
benwaonline/schemas/base_schema.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
benwaonline/schemas/base_schema.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
benwaonline/schemas/base_schema.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
from marshmallow import pre_load, pre_dump from marshmallow_jsonapi import Schema class BaseSchema(Schema): @pre_load def id_str(self, data): try: data['id'] = str(data['id']) except KeyError: pass @pre_dump def clean(self, data): # Filter out keys with ...
25.526316
57
0.560825
bd25b96fb2c66497eb1289f0094ea54bb440d4f4
390
py
Python
Project Euler/Problem_14/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
26
2019-07-17T11:05:43.000Z
2022-02-06T08:31:40.000Z
Project Euler/Problem_14/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
7
2019-07-16T19:52:25.000Z
2022-01-08T08:03:44.000Z
Project Euler/Problem_14/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
19
2020-01-14T02:44:28.000Z
2021-12-27T17:31:59.000Z
def find(num): c=1 while num > 1: c = c+1 if num%2 < 1: num = num/2 else: num = (3*num) + 1 return c def main(): max_len = -1 res = -1 for i in range(1000000): cur_len = find(i) if cur_len > max_len: max_len = cur_len ...
17.727273
29
0.435897
95095b191fbf3d8e6ff036b59dc74f4e886f582d
964
py
Python
sample/rpz-ledsw/rpz_ledsw.py
yappy/RpzIrSensor
8ff11ad594e81380975ff84e2394ff0834d380cf
[ "MIT" ]
null
null
null
sample/rpz-ledsw/rpz_ledsw.py
yappy/RpzIrSensor
8ff11ad594e81380975ff84e2394ff0834d380cf
[ "MIT" ]
null
null
null
sample/rpz-ledsw/rpz_ledsw.py
yappy/RpzIrSensor
8ff11ad594e81380975ff84e2394ff0834d380cf
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time # GPIOの準備 GPIO.setmode(GPIO.BCM) # SW1, SW2ピン入力設定 GPIO.setup(5, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(6, GPIO.IN, pull_up_down=GPIO.PUD_UP) # LED1, 2, 3, 4ピン出力設定 GPIO.setup(17, GPIO.OUT) GPIO.setup(18, GPIO.OUT) GPIO.setup(22, GPIO.OUT) GPIO.setup(27, GPIO.OUT) try: ...
19.673469
48
0.573651
f1aa6d2ff7f4fc3bd13dfd9af7f2690d2aeb41fc
361
py
Python
evo_algorithm/ea_contrast/plot_contrast.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
3
2019-03-21T17:02:55.000Z
2019-04-04T18:16:10.000Z
evo_algorithm/ea_contrast/plot_contrast.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
11
2019-10-30T12:05:39.000Z
2022-03-11T23:43:54.000Z
evo_algorithm/ea_contrast/plot_contrast.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
1
2019-10-30T12:04:00.000Z
2019-10-30T12:04:00.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt def plot(): path = "results_contrast_color.csv" df = pd.read_csv(path) print(df) plt.title('Einfarbige Bilder') plt.xlabel('Konfidenz') plt.ylabel('Kontrast') plt.scatter(df["confidence"], df["contrast"]) plt.show()...
19
49
0.65651
740242c877a376feb5153d79fe88d1cf2dad65b5
501
py
Python
INBa/2015/ZORIN_D_I/task_3_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/ZORIN_D_I/task_3_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/ZORIN_D_I/task_3_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 3. Вариант 7. #Напишите программу, которая выводит имя "Мэри Анн Эванс", и запрашивает его псевдоним. Программа должна сцеплять две эти строки и выводить полученную строку, разделяя имя и псевдоним с помощью тире. # Krasnikov A. S. # 19.03.2016 print("Герой нашей сегоднящней программы - Мэри Анн Эванс") print(...
50.1
199
0.760479
b579fae58aba1ab755c3cc9b677c684b273f10e7
16,810
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/saga/scenarioFromOSM.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/saga/scenarioFromOSM.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/saga/scenarioFromOSM.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python3 """ Complete Scenario Generator from OSM. Author: Lara CODECA This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0. """ import argparse import cProfile import...
42.130326
100
0.624271
8d110967a90ce60b1b9e2e8584fb5945bb7b55d7
150
py
Python
python/DeepLearning/lesson1/week3/main.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
1
2019-05-22T07:12:34.000Z
2019-05-22T07:12:34.000Z
python/DeepLearning/lesson1/week3/main.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
3
2021-12-10T01:13:54.000Z
2021-12-14T21:18:42.000Z
python/DeepLearning/lesson1/week3/main.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
null
null
null
import numpy as np x = 10 ret = np.tanh(x) print("tanh({0}) = {1}".format(x, ret)) x = -10 ret = np.tanh(x) print("tanh({0}) = {1}".format(x, ret))
15
39
0.553333
9399287bcdc20b2e9b29bb62bcc7039cca21192a
9,890
py
Python
source/pkgsrc/devel/py-sysctl/patches/patch-test.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/py-sysctl/patches/patch-test.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/py-sysctl/patches/patch-test.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-test.py,v 1.1 2019/09/09 07:09:47 maya Exp $ Port to python 3. --- test.py.orig 2010-04-10 17:41:18.000000000 +0000 +++ test.py @@ -9,111 +9,111 @@ import sysctl # Invalid node try: - print "Testing invalid node: sysctl.read(\"unknown\")" + print("Testing invalid node: sysctl.read(\"unknown\"...
32.42623
92
0.592214
f5a8ccfa284a3a9fdb32c7cf326a3bd61e5afa49
631
py
Python
012 Pong.py
Gravitar64/KESS
174bf9ee853f7bfb0c2e652b83150045197b6425
[ "MIT" ]
null
null
null
012 Pong.py
Gravitar64/KESS
174bf9ee853f7bfb0c2e652b83150045197b6425
[ "MIT" ]
null
null
null
012 Pong.py
Gravitar64/KESS
174bf9ee853f7bfb0c2e652b83150045197b6425
[ "MIT" ]
null
null
null
import pygame as pg fenster = pg.display.set_mode((800,600)) x,y = 400,300 rx,ry = 16,16 s1x,s1y = 780,200 s2x,s2y = 0,200 weitermachen = True clock = pg.time.Clock() while weitermachen: fenster.fill((0,0,0)) clock.tick(40) for ereignis in pg.event.get(): if ereignis.type == pg.QUIT: weitermachen = ...
21.758621
52
0.611727
192a457dc7d2fd56af953c2a1eec512991900bbc
281
py
Python
getm/monitor/urls.py
jrite09/getm
4f087f7ba0905539dc593acf53e5d4490acae326
[ "MIT" ]
1
2020-01-15T14:49:54.000Z
2020-01-15T14:49:54.000Z
getm/monitor/urls.py
jrite09/getm
4f087f7ba0905539dc593acf53e5d4490acae326
[ "MIT" ]
null
null
null
getm/monitor/urls.py
jrite09/getm
4f087f7ba0905539dc593acf53e5d4490acae326
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path("", views.index, name="index"), path("searching", views.searching, name="searching"), path("register", views.register, name="register"), path("registered", views.registered, name="registered") ]
31.222222
59
0.686833
19ae23471c42f003a838e69c154118e15a1852df
403
py
Python
BITs/2014/Budashov_A_E/task_2_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Budashov_A_E/task_2_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Budashov_A_E/task_2_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача N1. Вариант 8 #Напишите программу, которая будет выводить на экран наиболее понравившееся #вам высказывание, автором которого является Стендаль. Не забудьте о том, что #автор должен быть упомянут на отдельной строке. #Будашов Андрей #03.03.2016 print("Корабль жизни поддается всем ветрам и бурям, если не имеет...
40.3
117
0.779156