blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
⌀
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
8ef68e045cb9966c1f8c9c63f0d3a635ce045aa3
350ecc8259bcad075bd376423335bb41cc8a533e
/markup.py
11902a3756bc6297a79f8add6ddbe21a5ca2ae1e
[]
no_license
CodedQuen/python_begin
39da66ecc4a77b94a5afbbf0900727c8156b85e1
1433c319b5d85520c50aee00dd4b6f21a7e6366a
refs/heads/master
2022-06-10T10:30:28.807874
2020-04-25T03:34:03
2020-04-25T03:34:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,624
py
import sys, re from handlers import * from util import * from rules import * class Parser: """ A Parser reads a text file, applying rules and controlling a handler. """ def __init__(self, handler): self.handler = handler self.rules = [] self.filters = [] de...
[ "noreply@github.com" ]
CodedQuen.noreply@github.com
ad5875d2b4aea6257ea80f01a23ab7bb247cc265
70b24331dbffaf739df182254ad3e1071811110b
/example.py
9decbb64858520d1a21bebc4fa7d0383fdd9a0c3
[]
no_license
AWAlexWeber/grav-dungeon-gen
b973f11894b2d35467e129131bfdb8388cc08dfd
4b8cd21a8394493ef4316eca8914991592ceb4df
refs/heads/main
2022-12-30T13:06:21.478528
2020-10-15T06:25:54
2020-10-15T06:25:54
303,842,144
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
from main import * dg = DungeonGenerator("seed", Dimension2D(0,0,10,10)) rooms = dg.generateDungeon([RoomTemplate(10,10),RoomTemplate(20,20)], 50) dg.render(rooms)
[ "awalexweber99@gmail.com" ]
awalexweber99@gmail.com
671bb3060ea1e86a051996fea2f16cf9fb33b77e
cd3f1eb377e9c865fbda636f6ca2b393b4ddc9a3
/scrapy/contrib/pipeline/fileexport.py
d20b83c2a02a756dc824235f8f853976de30c178
[ "BSD-3-Clause" ]
permissive
serkanh/scrapy
210375f0a81be495865e6a6a5e57c41b368ded4b
bbef0fe870e1249a108ea1187f793de39c2e5bbd
refs/heads/master
2020-12-25T10:23:55.258768
2010-02-20T13:12:37
2010-02-20T13:12:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,996
py
""" File Export Pipeline See documentation in docs/topics/item-pipeline.rst """ from scrapy.xlib.pydispatch import dispatcher from scrapy.core import signals from scrapy.core.exceptions import NotConfigured from scrapy.contrib import exporter from scrapy.conf import settings class FileExportPipeline(object): de...
[ "pablo@pablohoffman.com" ]
pablo@pablohoffman.com
c910adee07817f041e3af6f76840dc9b7244316b
77311ad9622a7d8b88707d7cee3f44de7c8860cb
/res/scripts/client/tutorial/control/offbattle/triggers.py
20fd19f8419ac6e595f9307298f6204c1f3d0318
[]
no_license
webiumsk/WOT-0.9.14-CT
9b193191505a4560df4e872e022eebf59308057e
cfe0b03e511d02c36ce185f308eb48f13ecc05ca
refs/heads/master
2021-01-10T02:14:10.830715
2016-02-14T11:59:59
2016-02-14T11:59:59
51,606,676
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
3,810
py
# 2016.02.14 12:43:23 Střední Evropa (běžný čas) # Embedded file name: scripts/client/tutorial/control/offbattle/triggers.py from constants import QUEUE_TYPE from gui.ClientUpdateManager import g_clientUpdateManager from gui.prb_control.prb_helpers import GlobalListener from tutorial import LOG_ERROR from tutorial.cont...
[ "info@webium.sk" ]
info@webium.sk
b8045e309efe434e34d12953022448e550c268ae
0c65eead5b7076e042c1c4800ece7e61e99f2ba7
/python/project/test/Test2.py
3e09dda46054b724a4cb1a035f44d8278f72c026
[]
no_license
LeeSM0518/TIL
3826a432b73945ebea302eef6429a93b6baa1f4f
463d7e056b0083047f3e33d705d77f014947f982
refs/heads/master
2021-06-28T07:26:20.215835
2020-09-25T14:16:00
2020-09-25T14:16:00
149,553,733
3
3
null
2019-02-14T13:16:25
2018-09-20T05:00:06
Java
UTF-8
Python
false
false
315
py
from urllib.request import urlopen from bs4 import BeautifulSoup import ssl context = ssl._create_unverified_context() result = urlopen("https://www.hanbat.ac.kr/html/kr/cyber/cyber_02_01.html", context=context) bsObj = BeautifulSoup(result.read(), "html.parser") for tag in bsObj.findAll("tbody"): print(tag)
[ "nalsm98@naver.com" ]
nalsm98@naver.com
d2fb253c63d6c3936958d1edbd9d1ab80e6c9e31
c39e19e8fada4df5bf8999f93a470fc5db0b8ea7
/tensorflow/python/keras/layers/recurrent_v2_test.py
2d45e64e382befdbc3cb714f3c496f47266bd924
[ "Apache-2.0" ]
permissive
ivomarb/tensorflow
6bb05bc6dbaa8e59b43d00a8216bb0b8cb766080
df2fbb89588065fca2c6e5fcfba7d8c2b4378591
refs/heads/master
2020-06-26T05:03:06.321649
2019-07-29T20:30:03
2019-07-29T21:40:30
199,530,704
1
0
Apache-2.0
2019-07-29T21:45:39
2019-07-29T21:45:38
null
UTF-8
Python
false
false
4,210
py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
9df9b4a5830a946c98bd721deb14ca0ed4129a3a
19cec240505e27546cb9b10104ecb16cc2454702
/linux/app/web/python/wikicode/poke/poke/views.py
5338d0d36180860a749f487361bf373f58aa8b10
[]
no_license
imosts/flume
1a9b746c5f080c826c1f316a8008d8ea1b145a89
a17b987c5adaa13befb0fd74ac400c8edbe62ef5
refs/heads/master
2021-01-10T09:43:03.931167
2016-03-09T12:09:53
2016-03-09T12:09:53
53,101,798
0
0
null
null
null
null
UTF-8
Python
false
false
2,851
py
import flume, datetime, sys import flume.flmos as flmo from wikicode import get_uid, cond_exec, PYTHON, request_uri from wikicode.prepare import is_prepare, prepare_stags from wikicode.db.user import User as W5User from django.shortcuts import render_to_response from django.http import HttpResponse, HttpResponseRedirec...
[ "imosts" ]
imosts
007b3c1a43ecc9a9117a25d64756b96a5b37b278
a95923cf8f52646eccf5ff8f496053dcacdfad7d
/OOP concepts/OOP.vector.py
a407355dd33d485f4e3671d54d0b052cdece34d6
[]
no_license
jaindhairyahere/Python_DSA
1ffa1a2496e3c5e6b95487060fd08c435991d0b1
daadddfa998ccefb44eee65e0eb1e9297c543b61
refs/heads/master
2020-06-12T20:18:52.680726
2019-07-12T23:03:28
2019-07-12T23:03:28
194,413,573
0
0
null
null
null
null
UTF-8
Python
false
false
1,882
py
class Vector: def __init__(self,d): self._coords=[] if type(self._coords)==type(d): ''' to pass Vector(sequence)''' self._coords=d elif type(d)==type(1): ''' to pass Vector(length)''' self._coords = [0]*d def __len__(self): '''to use len(V)''' return len(self._coords) def __getitem__(self,j): ...
[ "jaindhairya2001@gmail.com" ]
jaindhairya2001@gmail.com
2a3d36e2297e6d20e7b9352e954a396672b4c01a
c8140d1124174e771aa2344ddcf7a163ed02e859
/app/blog/urls.py
0b0410599281fa6dbe94dc070a78b24e777d7d1b
[]
no_license
Ryanden/Django-girs
0918e3298d198daf1c34f35f12cbf81ea08a7014
6dcc567ce5e4b2882d93355f3474452d38e1f4e8
refs/heads/master
2021-11-16T11:00:33.047165
2020-07-22T07:34:33
2020-07-22T07:34:33
135,655,221
0
0
null
2021-09-22T17:45:34
2018-06-01T01:59:52
Python
UTF-8
Python
false
false
679
py
from django.conf.urls import url from .views import post_list, post_detail, post_create, post_delete # Browser -> request -> Django -> config.urls -> blog.urls -> r'^$'에 매칭 -> # df post_list -> return 값을 다시 Browser urlpatterns = [ # url 의 첫번째 인자 URL 정규표현식 # url 의 두번째 인자 view function # view_function ...
[ "lockstom@gmail.com" ]
lockstom@gmail.com
b38d7f4074d4910e7fe06215dd82526720dc5ee1
33b38f9a3622a9e848804ed76b775fca5cbdfa18
/quantizedVDT/datasets/cremi.py
b57349512f64fad538f90191012e5dabfdede25b
[]
no_license
abailoni/quantized_vector_DT
1fd0735bdcd43778ed267623baa7ecfb6774ea2e
eb67a3aafebd1a9c290e9288013e2153f04b9705
refs/heads/master
2020-04-27T01:08:55.690574
2019-09-17T11:06:34
2019-09-17T11:06:34
173,956,981
0
1
null
null
null
null
UTF-8
Python
false
false
7,609
py
from copy import deepcopy from inferno.io.core import ZipReject, Concatenate from inferno.io.transform import Compose from inferno.io.transform.generic import AsTorchBatch from inferno.io.transform.volume import RandomFlip3D, VolumeAsymmetricCrop from inferno.io.transform.image import RandomRotate, ElasticTransform fr...
[ "bailoni.alberto@gmail.com" ]
bailoni.alberto@gmail.com
6f08c865586067eebfd2ef6047ebcb9cb3689490
fe19d2fac4580d463132e61509bd6e3cc2cf958d
/toontown/uberdog/DistributedDeliveryManager.py
3948447ef05ee56a0b4b36f6a4bf6e5e619ec520
[]
no_license
t00nt0wn1dk/c0d3
3e6db6dd42c3aa36ad77709cf9016176a3f3a44f
7de105d7f3de0f8704b020e32fd063ee2fad8d0d
refs/heads/master
2021-01-01T16:00:15.367822
2015-03-21T21:25:52
2015-03-21T21:25:55
32,647,654
3
5
null
null
null
null
UTF-8
Python
false
false
1,072
py
# 2013.08.22 22:26:55 Pacific Daylight Time # Embedded file name: toontown.uberdog.DistributedDeliveryManager from pandac.PandaModules import * from direct.distributed.DistributedObject import DistributedObject from toontown.catalog import CatalogItemList from toontown.catalog import CatalogItem class DistributedDeliv...
[ "anonymoustoontown@gmail.com" ]
anonymoustoontown@gmail.com
351da12135cfd9e174c5da96dc0c7a8515b84d85
91cb0a7bac16f470d38eba6b7fa8942e6ee2ea32
/utf-decode.py
64b43462e311968adbdd37fdf40f6841a41535fe
[]
no_license
MarkHofstetter/python-20180423
90fe771716d7a5bb3711487d242309bedcce681f
b31c9c2074b8ce0d2e157665fd6f7c8cb2d8cf04
refs/heads/master
2020-03-12T15:09:54.151313
2018-04-27T13:44:34
2018-04-27T13:44:34
130,684,310
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
from pprint import pprint text = 'öö€€€' print(type(text)) text2 = bytes(text, 'utf-8') bla = bytearray(text2) pprint(bla) print(len(text), len(text2)) print(type(text2)) print(text)
[ "mark@hofstetter.at" ]
mark@hofstetter.at
4f10eacdfed9058cb35de93f237b642dbae75896
d61810cde2db7a75cb2c9e129090d9d348da0b56
/core/urls.py
c30cd99626b13e1d04ee9a543d4e8ced6f4530ae
[]
no_license
Gcunhaa/upbot-ips
5a4db31bca026780f9ecf5fdcf5e211ae656c4aa
ebf59a419b97dafa02bb004e37f8f60a511e6e2f
refs/heads/master
2023-01-14T01:00:48.375358
2020-11-13T14:32:31
2020-11-13T14:32:31
306,718,025
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
from enum import Enum """ Classe que carrega os principais links utilizados no serviço. """ class Urls(Enum): global_url = 'https://gamersboard.com.br' login = f'{global_url}/login/'
[ "gsalomaoc@gmail.com" ]
gsalomaoc@gmail.com
d9ca7186d29e441edd0b8ae8ed7f1fbd31be94fb
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/46/usersdata/88/18088/submittedfiles/funcoes1.py
3d158588859917766e6a1e7b8a6d10fdf4869a4c
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
759
py
# -*- coding: utf-8 -*- from __future__ import division def crescente (lista): cont=0 for i in range(0,len(lista),1): if a[i]>a[i-1]: cont=cont+1 if cont>0: return True else: return False #escreva as demais funções #escreva o programa principal n=input('Digote a ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
0b84d89174c4b2afba861af79288bacdf50a11a8
4580dcd5eeb99b88716721625e243f888ddbca08
/src/Ch04/print_default_param.py
b2ee6600af133ab2531326d7fcfa6899e385f4c0
[]
no_license
dongupak/Prime-Python
c9c7a211e61f06fe518719b499b01eeb34c1e827
767cc9cb9f47fda5efa78776c1d1aa68b43dc6c4
refs/heads/master
2022-02-08T13:10:06.797737
2022-01-18T02:01:29
2022-01-18T02:01:29
224,655,276
23
23
null
2020-07-30T05:06:33
2019-11-28T13:05:28
Jupyter Notebook
UTF-8
Python
false
false
299
py
# 코드 4-19 : 디폴트 값을 가지는 print_star() 함수 ## "으뜸 파이썬", p. 221 def print_star(n = 1): # 매개변수 n은 디폴트 값 1을 가짐 for _ in range(n): print('************************') print_star() # 인자가 없더라도 에러없이 수행됨
[ "dongupak@gmail.com" ]
dongupak@gmail.com
72c0f6c61f8b537bdf868b3fdf09041d85229801
412b699e0f497ac03d6618fe349f4469646c6f2d
/env/lib/python3.8/site-packages/web3/_utils/decorators.py
63e14d9506ce9e38fdbd2d65d4d9c8cab70d52e2
[ "MIT" ]
permissive
EtienneBrJ/Portfolio
7c70573f02a5779f9070d6d9df58d460828176e3
6b8d8cf9622eadef47bd10690c1bf1e7fd892bfd
refs/heads/main
2023-09-03T15:03:43.698518
2021-11-04T01:02:33
2021-11-04T01:02:33
411,076,325
1
0
MIT
2021-10-31T13:43:09
2021-09-27T23:48:59
HTML
UTF-8
Python
false
false
1,723
py
import functools import threading from typing import ( Any, Callable, TypeVar, cast, ) import warnings TFunc = TypeVar("TFunc", bound=Callable[..., Any]) def reject_recursive_repeats(to_wrap: Callable[..., Any]) -> Callable[..., Any]: """ Prevent simple cycles by returning None when called re...
[ "etiennebrxv@gmail.com" ]
etiennebrxv@gmail.com
b783ee7dc1078e755bb299698a5998fe9847f892
181af10fcf40b824fe92d3b8f72fd15d6d1490c2
/Contests/301-400/week 330/2551. Put Marbles in Bags/Put Marbles in Bags.py
7446fa4c8fcca147b177ac4777b6957d2ef893d1
[]
no_license
wangyendt/LeetCode
402c59a0b7b7f5b3a672231ea5dad8056ade36af
4a3ba15284c45b2d8bf38306c8c8526ae174615c
refs/heads/master
2023-08-10T06:27:54.995152
2023-08-10T02:22:27
2023-08-10T02:22:27
176,651,399
6
0
null
null
null
null
UTF-8
Python
false
false
655
py
""" @author: wangye(Wayne) @license: Apache Licence @file: Put Marbles in Bags.py @time: 20230131 @contact: wang121ye@hotmail.com @site: wangyendt@github.com @software: PyCharm # code is far away from bugs. """ from typing import * class Solution: def putMarbles(self, weights: List[int], k: int) -> int: ...
[ "905317742@qq.com" ]
905317742@qq.com
1444d86536370ab7618f6439081039d4af11214e
dae2da1b80124ba6923cb1674033208af01e031f
/problems/202004/boj-7568-dungchi.py
2ac026cf13756569d50fcd1bc1644f5665405ebe
[]
no_license
MaxKim-J/Algo
ad09fa19da3e764ba7af18d015bbaa186643f7fb
34771c45361db4aade4c364179e13708c5004b3a
refs/heads/master
2023-01-08T00:49:11.479545
2022-12-26T15:45:35
2022-12-26T15:48:52
237,583,281
4
3
null
null
null
null
UTF-8
Python
false
false
888
py
# 백준 7568번 덩치 # https://www.acmicpc.net/problem/7568 # 시간 : 26분 # 경과 : 맞았습니다(60ms) data_num = int(input()) result = [] fig_arr = [] for i in range(data_num): figure = tuple(map(int, input().split())) fig_arr.append(figure) for fig in fig_arr: count = 1 new_arr = list(filter(lambda x: x != fig, fig_...
[ "hwaseen@gmail.com" ]
hwaseen@gmail.com
cea6b2f9e586459a99c8601534186872e4069664
559e336386e02c0e5ebc7316424c3b4a41380d99
/datamining/machine_learning_py_scripts/classifiers_ipynb2py/Image_Classification_with_Keras.ipynb.py
c30b90fcbccf0fafe44f27d9d35e3ba9367e91e3
[]
no_license
maranemil/howto
edf1e294544ef6980894dcd345d73160d8aa9620
f6270ed0affcdbd899dd8a2ff9b0b98625e63a5a
refs/heads/master
2023-09-05T03:02:18.526914
2023-09-04T11:27:52
2023-09-04T11:27:52
22,177,757
48
26
null
2022-10-17T19:43:31
2014-07-23T21:04:50
Python
UTF-8
Python
false
false
4,103
py
# coding: utf-8 # # Image Classification with Keras # We will take a pre-trained deep neural network classifier, set to classify 1,000 images and experiment with feeding it a few images of our own. # # The main package used here is Keras with a tensorflow backend. # # Tensorflow is an extremely popular open sour...
[ "maran.emil@gmail.com" ]
maran.emil@gmail.com
53cedbed869bb45959288331b6bf5d589d56ff62
6c9aaa9b55f83f82c264bbf0b5bc7faacd1dd3ba
/elbow/models/neural.py
e030d4299cdeefb571e92cab0a9ba6e85fbc517d
[ "BSD-3-Clause" ]
permissive
aporia3517/elbow
343b384d0320d5121871ff1945af2f9cce0acf90
bceebadabe3b2beed60b789825b6ebfc5271f3f7
refs/heads/master
2021-01-11T06:52:22.057894
2016-10-03T07:45:00
2016-10-03T07:45:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,002
py
import numpy as np import tensorflow as tf import elbow.util as util from elbow.structure import unpackRV from elbow.conditional_dist import ConditionalDistribution from elbow.elementary import Gaussian,BernoulliMatrix def layer(inp, w, b): if len(inp.get_shape()) == 2: return tf.matmul(inp, w) + b ...
[ "dmoore@cs.berkeley.edu" ]
dmoore@cs.berkeley.edu
3dab5c8a1794744e33067d53f25624491926546e
93fe57c69c7f283decfee506f30d2a68d257ee1b
/oatomobile/torch/networks/mlp.py
4790b6bee56ed0ae79ef1d1290bce7958f244dcc
[ "Apache-2.0" ]
permissive
OATML/oatomobile
a87071fc62a53bdaa1bb3682861e8d9245facaa4
1680aee77a53228412f9bab34068f0a9576c58e3
refs/heads/alpha
2023-07-25T18:26:49.924987
2021-06-04T14:03:08
2021-06-04T14:03:08
272,983,534
177
40
Apache-2.0
2023-07-06T22:00:12
2020-06-17T13:37:40
Python
UTF-8
Python
false
false
2,513
py
# Copyright 2020 The OATomobile Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "filos.angel@gmail.com" ]
filos.angel@gmail.com
d7518ffd225c8ae8d3af6c00a452a52f99db94b0
8051c8863119bc2b5e5b3107ce9c47ab12616e63
/Python/SWEA/SWEA_3378.py
9e3e59682108b33fcc92a6ec02b074cefcde2a2e
[]
no_license
Sunghwan-DS/TIL
c01f6f4c84f3e2d85e16893bbe95c7f1b6270c77
6d29f6451f9b17bc0acc67de0e520f912dd0fa74
refs/heads/master
2021-07-11T16:23:58.077011
2021-03-12T02:28:26
2021-03-12T02:28:26
234,990,431
0
0
null
null
null
null
UTF-8
Python
false
false
1,616
py
def check(c): global s, m, b if c == '(': s += 1 elif c == ')': s -= 1 elif c == '{': m += 1 elif c == '}': m -= 1 elif c == '[': b += 1 elif c == ']': b -= 1 for tc in range(1, int(input()) + 1): p, q = map(int,input().split()) s, m,...
[ "jeonsung02@gmail.com" ]
jeonsung02@gmail.com
99b25ed9e16c4b6dd3e137bf3e1db8e5ebf62dfa
783a045daffd4a8ae83bef818495b184094e8483
/fancy_tests/tests/settings.py
20520e12ede116125f511975420e3460573e6092
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
skorokithakis/django-fancy-cache
41f1794b7071010277104006c1b8e8965d46fdf7
a31d0c743cb9a8f3fc24b45cd0a0b61c13bdd970
refs/heads/master
2020-12-25T00:20:16.601885
2015-08-11T10:14:25
2015-08-11T10:14:25
39,799,845
0
0
null
2015-07-27T21:56:00
2015-07-27T21:55:59
Python
UTF-8
Python
false
false
1,054
py
import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) SECRET_KEY = 'anything' ALLOWED_HOSTS = () DATABASES = { 'default': { 'NAME': ':memory:', 'ENGINE': 'django.db.backends.sqlite3', } } CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'...
[ "mail@peterbe.com" ]
mail@peterbe.com
e5e265b8595886c505499f53890530c77d1a77ab
0ea91e3c52c2f93eef8b916dea273567987fa738
/tests/views/test_main_short.py
e2794b4d9a1ada0585b433ec561d67060bd4beb5
[ "MIT" ]
permissive
spookey/shorter
df30671bf3eb1229780d1fb4016ad77d693e55cc
f190c3a33896fa654b368d375b27aad4075340dd
refs/heads/main
2023-08-20T09:05:06.426027
2023-05-20T11:30:42
2023-05-20T11:30:42
183,830,765
1
0
MIT
2023-05-20T11:40:10
2019-04-27T23:26:27
Python
UTF-8
Python
false
false
1,741
py
from random import choice from flask import url_for from pytest import fixture, mark from shorter.models.short import Short from shorter.start.environment import SYM_MINI, SYM_POOL ENDPOINT = "main.short" @fixture( params=[ "applebot", "baiduspider", "bingbot", "duckduckbot", ...
[ "frieder.griesshammer@der-beweis.de" ]
frieder.griesshammer@der-beweis.de
0cea87dc73e86af10780f1a5f70d07f46fbc2617
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2361/58586/245416.py
4b38dfa275a0df06751233faf9288396f8d618df
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
788
py
arr=list(map(int,input().split(","))) temp=[] res=[0] used=[] def is_valid(num1,num2): temp=pow(num1+num2,0.5) return temp==int(temp) def dfs(arr,pre,temp,res,used): if len(arr)==len(temp): res[0]+=1 return for i in range(0,len(arr)): if len(temp)>0: if not is_valid(p...
[ "1069583789@qq.com" ]
1069583789@qq.com
6c260ebb698e31301a90927dddb5466799476bdd
b3214ea6bd32b6a36d0b820f6651141716eaa244
/p45.py
e55d24bde0d1ab1988b6efc8833e028e40d1dd4d
[]
no_license
vishalagrawalit/project_euler
dd52886c29ab59a35cbf623d9db152fcaec62b7c
10c56d2ab059698ec846e8850faee3d589db7472
refs/heads/master
2022-01-05T13:01:04.624407
2018-08-29T07:27:16
2018-08-29T07:27:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
first = [1, 210, 40755, 7906276, 1533776805, 297544793910, 57722156241751] second = [1, 40755, 1533776805, 57722156241751] arr = list(map(int, input().split())) if arr[1]==3: count = 0 for i in first: if i < arr[0]: count+=1 for i in range(count): print(first[i]) else: coun...
[ "vishvishu14@gmail.com" ]
vishvishu14@gmail.com
aeca2ae6b52a7c0b81d52bc75001f0380daa4148
f1cb02057956e12c352a8df4ad935d56cb2426d5
/LeetCode/546. Remove Boxes/Solution.py
118d80dd1d133c281047dd04dabae733f12d4d68
[]
no_license
nhatsmrt/AlgorithmPractice
191a6d816d98342d723e2ab740e9a7ac7beac4ac
f27ba208b97ed2d92b4c059848cc60f6b90ce75e
refs/heads/master
2023-06-10T18:28:45.876046
2023-05-26T07:46:42
2023-05-26T07:47:10
147,932,664
15
2
null
null
null
null
UTF-8
Python
false
false
1,655
py
class Solution: def removeBoxes(self, boxes: List[int]) -> int: # Time Complexity: O(N^4) # Space Complexity: O(N^3) condensed_boxes = [] start = 0 for i, col in enumerate(boxes): if col != boxes[start]: condensed_boxes.append((boxes[start], i - ...
[ "nphamcs@gmail.com" ]
nphamcs@gmail.com
3790c12ea9abd69f463d5de5842a228fcff66683
b2f9f6878c6b3ed4e7a333438efd4583cb37d391
/amplify/ext/phpfpm/managers/pool.py
ecf93be6dc732e3d5624d0b240cc96cd9c4639e5
[ "BSD-2-Clause" ]
permissive
centminmod/nginx-amplify-agent
1cdec9cccea87575b60dbfb18ac52dcb798f498b
e91fb449deff162388f65502a36118ada57b99be
refs/heads/master
2020-06-28T01:35:14.562083
2017-06-13T21:10:54
2017-06-13T21:10:54
94,257,979
0
0
null
2017-06-13T21:07:20
2017-06-13T21:07:20
null
UTF-8
Python
false
false
3,239
py
# -*- coding: utf-8 -*- import psutil from amplify.agent.common.context import context from amplify.agent.managers.abstract import ObjectManager from amplify.agent.data.eventd import INFO from amplify.ext.phpfpm.objects.pool import PHPFPMPoolObject from amplify.ext.phpfpm import AMPLIFY_EXT_KEY __author__ = "Grant...
[ "dedm@nginx.com" ]
dedm@nginx.com
e0013c2b5604b00c8b98ff87f0ba085c848f9d91
0f89005310a10cb55913bb87336d8b28192f5576
/nekidaem/wsgi.py
d9fe8a74589bf5b5cf3483689694629033014039
[]
no_license
DmitriyBul/blog_with_subscribers
0134952d8bc691fb16c16d0a69cdb1601940014e
cdadd007e9db41d5795cf36b6e5df0471b7c5008
refs/heads/main
2023-06-23T17:30:52.458404
2021-07-22T11:20:48
2021-07-22T11:20:48
387,114,664
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" WSGI config for nekidaem project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
[ "128dmitriy128@gmail.com" ]
128dmitriy128@gmail.com
1e7fea820de6e906b948a4ed4639f8f198b585bf
d5f53599338a30a9d6c7de7d5c574db59545ed3d
/Gse/generated/Ref/commands/PARAMETER3_PRM_SET.py
aac79228f2d169bb2fb265986c2e643d9428fe15
[ "Apache-2.0" ]
permissive
dstockhouse/eaglesat-fprime
c39a01cc5648dcd8b351f47684923fe481c720be
e640b3faea0000e1ca8acab4d6ff66150196c32b
refs/heads/master
2020-05-07T15:31:09.289797
2019-11-20T00:33:15
2019-11-20T00:33:15
180,639,007
0
0
null
null
null
null
UTF-8
Python
false
false
1,551
py
''' Created on Wednesday, 10 April 2019 @author: David THIS FILE IS AUTOMATICALLY GENERATED - DO NOT EDIT!!! XML Source: /cygdrive/c/Users/David/Documents/eaglesat/eaglesat-fprime/Ref/SendBuffApp/SendBuffComponentAi.xml ''' # Import the types this way so they do not need prefixing for execution. from models.serializ...
[ "dstockhouse@gmail.com" ]
dstockhouse@gmail.com
eb487cc46ad2df066c548da45e4c89be25ff2254
b69feb4c78dea0573d72eff237f15c8692ad610a
/Scripts1/Script05.py
4a5ea3fc83e0fd8409afcb50463d8352d0b5b276
[ "MIT" ]
permissive
jonfisik/ScriptsPython
deca1989647b8f9af24400488268d81b69d013be
1d15221b3a41a06a189e3e04a5241fa63df9cf3f
refs/heads/master
2023-04-16T22:07:50.902614
2021-04-24T13:19:03
2021-04-24T13:19:03
256,513,935
1
0
null
null
null
null
UTF-8
Python
false
false
912
py
'''Autor: Jonatan Paschoal, 22/04/2020. Operadores com o função: pow(x,y)=x**y''' print('--------------------------------------------') print('Resolva a seguinte expressão numérica.') print('a {[ b + c ( d x e )] f + (g - h)}') a = int(input('Digite o valor de a: ')) b = int(input('Digite o valor de b: ')) c = int(inpu...
[ "development.wj@outlook.com" ]
development.wj@outlook.com
0a812ffc644005951007ae5c83d951c1483e56e8
0af2dd9a7ba560d0b782e7834d862f89fe546bbb
/lui_testing/PyQt4_toys/process_pop_tst_04.py
09c137a32644470b3d5b8b69035c1543c1cff148
[]
no_license
luisodls/dui_prototyping
8b017eb3589f6fa80792b6f54b702061d30deda9
184d7fed891fae67bd8b662e4a287942753caadd
refs/heads/master
2023-09-04T01:51:14.455210
2023-08-29T20:56:21
2023-08-29T20:56:21
162,447,933
0
0
null
null
null
null
UTF-8
Python
false
false
2,423
py
#gpl = ''' from PyQt4.QtGui import * from PyQt4.QtCore import * print "wprks with PyQt4" #''' py_side = ''' from PySide.QtGui import * from PySide.QtCore import * print "works with PySide" #''' import subprocess import sys class MyDialog(QDialog): def __init__(self, parent = None): super(MyDialog, self).__i...
[ "luis.fuentes-montero@diamond.ac.uk" ]
luis.fuentes-montero@diamond.ac.uk
b590e80f7ce10d837fb1c7d3642d582c6a2d926b
8b3ca44ee3d990233e74655b7131d616094f70c2
/experiments/cross_validation/methylation_pm/gaussian_laplace_inversegaussian.py
efb1dd1a5e51cbbf54bde8b1e5dd1ef0ef5fa13d
[]
no_license
zshwuhan/BMF_Priors
8b8c54271285a72d2085a56a9475c0756f375e67
6a600da1c41f1ccde2f2ba99298b40e68fb9910a
refs/heads/master
2021-05-13T19:10:07.203215
2017-12-01T13:30:21
2017-12-01T13:30:21
116,883,181
1
0
null
2018-01-09T23:36:13
2018-01-09T23:36:13
null
UTF-8
Python
false
false
1,627
py
''' Run nested cross-validation experiment on the methylation PM dataset, with the Gaussian + Laplace + IG model. ''' project_location = "/Users/thomasbrouwer/Documents/Projects/libraries/" import sys sys.path.append(project_location) from BMF_Priors.code.models.bmf_gaussian_laplace_inversegaussian import BMF_Gaussi...
[ "tab43@cam.ac.uk" ]
tab43@cam.ac.uk
d84b56af1aa48b8af21b611d9fc7db945518cbd1
06d46994d64fd437e3f97a54a55afa284b84a30b
/tests/list_tables/config.py
e505ad67e38366736bc7d554f3919a6e9bb7a82e
[]
no_license
chjwang/magnetodb-test-bench
8a61b1dadd174e9f8af5c2f84b6328556f43ec0d
3fb793bed0ba50f0170803795b2a462cbf968fb6
refs/heads/master
2020-12-25T02:39:38.904795
2014-11-19T15:05:59
2014-11-19T15:05:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
509
py
SLAVE_COUNT = 2 LOCUST_COUNT = 10 HATCH_RATE = 10 MIN_WAIT = 0 MAX_WAIT = 0 TABLES_CREATED_3_FIELDS_NO_LSI = 10 TABLES_CREATED_3_FIELDS_1_LSI = 10 TABLES_CREATED_10_FIELDS_5_LSI = 10 TABLE_NAME = "item_metadata" LIMIT = 10 TOKEN_PROJECT = "/tmp/token_project.txt" TABLE_LIST='/tmp/table_list.txt' ITEM_KEY_LIST = '/tmp/i...
[ "charles_wang@symantec.com" ]
charles_wang@symantec.com
de08b8754becb5cef8ed9b353fea393c3db215fd
7a62c196a326e898b1751e6355a5284c85e337ca
/southernfirst/items.py
4d667d87404e1e81ace7b7b42e8e48a44535ea6a
[]
no_license
hristo-grudev/southernfirst
b5c31bed7994566619475c9349cbf2ce2ca77315
fa16005d39a7fe097bf9316eb9dd732befb78834
refs/heads/main
2023-04-05T07:12:32.400587
2021-04-01T11:56:53
2021-04-01T11:56:53
353,684,102
0
0
null
null
null
null
UTF-8
Python
false
false
140
py
import scrapy class SouthernfirstItem(scrapy.Item): title = scrapy.Field() description = scrapy.Field() date = scrapy.Field()
[ "hr.grudev@gmail.com" ]
hr.grudev@gmail.com
1231a0d11368a3a64e196f0d62ddba53bd220fbb
3284e336509aa58fb8b720b4506f8aa111601d64
/5-case-study/4_finding_possible_errors_with_groupby().py
a8ee7888e57265844db421ed84ba78014deb3aa4
[]
no_license
OCulzac/manipulating-dataframes-with-pandas
61d8bc918051d3629a066864d48860a75d9e5533
0cab0d9410d8f3b484d9dd03c78d54f1cc1a5e6c
refs/heads/master
2020-05-20T09:39:05.260419
2019-05-08T01:38:33
2019-05-08T01:38:33
185,506,228
0
0
null
null
null
null
UTF-8
Python
false
false
848
py
""" Finding possible errors with .groupby() You will now use .groupby() to continue your exploration. Your job is to group by 'Event_gender' and 'Gender' and count the rows. You will see that there is only one suspicious row: This is likely a data error. The DataFrame is available to you as medals. Instructions 100 ...
[ "oronculzac@gmail.com" ]
oronculzac@gmail.com
51944484dc1bccb6b0acf4180790af6b9964d958
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/9b4h6mK9CBMLwyGiY_10.py
1da5cb2756fac479fed11baf55210a882cae523d
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,181
py
""" In this challenge, you have to find the distance between two points placed on a Cartesian plane. Knowing the coordinates of both the points, you have to apply the **Pythagorean theorem** to find the distance between them. ![Two points on a Cartesian plane](https://edabit- challenges.s3.amazonaws.com/coordinatep...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
d524e3b9b977579b22cc8333e1d28afcf01cb4c8
8f1137592d670ce134821106f736e231b03ead87
/configs/autoassign/autoassign_r50_fpn_8x2_1x_coco.py
d804a88418344b734013f9c89dec33f788de3ab1
[ "MIT" ]
permissive
mousecpn/DMC-Domain-Generalization-for-Underwater-Object-Detection
fa426c834fa2a5cd2fe98c50dd4dfeda64fcdc79
133797cfb7553557fb81a37e3c99c88154a13765
refs/heads/master
2023-05-23T16:49:34.795363
2023-02-13T02:23:31
2023-02-13T02:23:31
501,597,077
16
0
null
null
null
null
UTF-8
Python
false
false
2,677
py
# We follow the original implementation which # adopts the Caffe pre-trained backbone. _base_ = [ '../_base_/datasets/utdac_detection_coco.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] model = dict( type='AutoAssign', backbone=dict( type='ResNet', depth=50, ...
[ "609731730@qq.com" ]
609731730@qq.com
9ecd18bbb9e689cfc6ea6a085470067bb01b844e
90f7253957e25105950c2a0305033c14302237bb
/defining_classes/defining_classes_lab/03_music.py
a8a8f9425f569eb514c2f42d1a4e5869fb84a4dc
[]
no_license
DeanDupalov/Softuni-Python-OOP
a4f010a7a218d4cdd466e2158dcea2e861304627
72fb3f00991419ef55f6c53101edba7fbb84746b
refs/heads/master
2023-04-01T01:59:50.441918
2021-04-12T18:47:56
2021-04-12T18:47:56
340,356,051
1
1
null
null
null
null
UTF-8
Python
false
false
281
py
class Music: def __init__(self, title, artist, lyrics): self.title = title self.artist = artist self.lyrics = lyrics def print_info(self): return f'This is "{self.title}" from "{self.artist}"' def play(self): return self.lyrics
[ "75751527+DeanDupalov@users.noreply.github.com" ]
75751527+DeanDupalov@users.noreply.github.com
2cf5cb0ca361b728bc589693051179785fa378d2
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_189/ch30_2019_08_26_19_13_59_491877.py
3348b2372b19710810586e3dbd4059f5e5f93bf6
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
def distancia(ang,vel): import math dist=((vel**2)*math.sin(2*ang))/9.8 if 98<=dist<=102: return("Acertou!") elif dist>102: return("Muito longe") else: return("Muito perto") ang=float(input("insira o angulo de lançamento: ")) vel=float(input("insira a velocidade inicial do la...
[ "you@example.com" ]
you@example.com
0cd945254c9354a8ea1425dfcfe44c659d16f2e6
700c7801958dd4789caf94785b5dc8c5e3daa4fd
/ttp/src/glue_enum_jobs_src.py
4bcc3b78fc036489ba389207fd332ec800bab946
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
blackbotsecurity/AWS-Attack
24d4cd6ebda067e9672f4f963d414a7b176e3551
ad4668ab60173aabce3c6b9c7685160be5e3f14d
refs/heads/master
2023-03-14T00:05:54.965341
2021-03-05T12:44:27
2021-03-05T12:44:27
331,603,794
14
1
null
null
null
null
UTF-8
Python
false
false
2,092
py
#!/usr/bin/env python3 import datetime import argparse from copy import deepcopy from botocore.exceptions import ClientError def fetch_glue_data(client, func, key, print, **kwargs): caller = getattr(client, func) try: response = caller(**kwargs) data = response[key] while 'NextToken' ...
[ "github.nk@blackbot.io" ]
github.nk@blackbot.io
20919b5d822a8ce8c08562f49a3c9a68dd5c1604
3bdff0b728d8754a9a424c5eae79f1bc417d8728
/pi_server/cache/ServerCoreCache.py
edf6faf35aed8d8b6ed14d3f085b675d3c7319e4
[]
no_license
wangshiyu/pi
92e8ac753f8de878d080a7dd0eecd8aa2a276d18
e6c42f2c24407e5857bde4ba777ef78e88cb9263
refs/heads/master
2023-02-12T12:05:27.525452
2021-01-12T13:57:30
2021-01-12T13:57:30
291,059,595
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
# encoding: utf-8 # !/usr/bin/python3 from pi_common.config.Config import Config,ConfigValueEnum, ConfigEnum from pi_server.core.external_handle.ServerTriggerTaskCommandHandle import ServerTriggerTaskCommandHandle from pi_drive.cache.DriveCache import * if Config.eq(ConfigEnum.RUN_TYPE,ConfigValueEnum.server): set...
[ "wsywsywsy541@qq.com" ]
wsywsywsy541@qq.com
77296fa957cc96a1486ba73e7f0bc1714d942a02
88dfb9a6ce6a094e5b61deeed3d05ee043067a27
/Accounts/migrations/0011_auto_20160401_2034.py
47b25b15efa2a901bfbd74a670a3f822b3d3c985
[]
no_license
jsyx1994/pinu
9aebcf4dbc454b3bf19a4b0d6fb355e02409edc3
ac79d1fcecb13b260dfa3570240a0a86380b2161
refs/heads/master
2021-01-10T09:26:52.436373
2019-07-23T02:22:32
2019-07-23T02:22:32
55,506,885
1
1
null
null
null
null
UTF-8
Python
false
false
608
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-04-01 12:34 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Accounts', '0010_auto_20160327_1841'), ] operations = [ migrations.AddField(...
[ "526593251@qq.com" ]
526593251@qq.com
a0cad114bd10a3a73f933de174efbcec09154044
e41651d8f9b5d260b800136672c70cb85c3b80ff
/Notification_System/temboo/Library/GitHub/GistsAPI/Gists/GetGist.py
35dd22be6648b7277bc866382fac7e42e39d38ff
[]
no_license
shriswissfed/GPS-tracking-system
43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c
1c5e90a483386bd2e5c5f48f7c5b306cd5f17965
refs/heads/master
2020-05-23T03:06:46.484473
2018-10-03T08:50:00
2018-10-03T08:50:00
55,578,217
1
0
null
null
null
null
UTF-8
Python
false
false
3,711
py
# -*- coding: utf-8 -*- ############################################################################### # # GetGist # Returns an individual gist with a given id. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this ...
[ "shriswissfed@gmail.com" ]
shriswissfed@gmail.com
1dc2bf42e11407ccbe6aaf84da52930177aa0f9f
19333aed645a4721108a67ba4d90292d2383314e
/246isStrobogrammatic.py
c641de42f4030dd319cf68a2c386312d6df36668
[]
no_license
qinzhouhit/leetcode
f39f8720a19259310293c1eb2975ce459f7cf702
502e121cc25fcd81afe3d029145aeee56db794f0
refs/heads/master
2023-06-24T09:18:25.715450
2021-07-21T07:21:42
2021-07-21T07:21:42
189,679,632
0
0
null
null
null
null
UTF-8
Python
false
false
1,353
py
''' keys: Solutions: Similar: T: S: ''' class Solution: # S and T: O(N) # reverse and flip upside down, if equal then true def isStrobogrammatic(self, num: str) -> bool: string_builder = [] for c in reversed(num): if c in {'0', '1', '8'}: string_builder.append(c) ...
[ "qinzhouhit@gmail.com" ]
qinzhouhit@gmail.com
c8077a9221fc0ead4d87798cce5c581c5bd19ed7
0911846a1bd88a3ac631d79213cea6af94d66252
/pywikibot/plural.py
d6dbf35e071fe8a548fea565a1acc6bb1d37e1bb
[]
no_license
lnls-fac/tools
9617e100926f99cfdde1c7db411800c9fa52b329
e611185c0bcbff803481ee09d986370a67e37636
refs/heads/master
2019-01-19T06:40:25.390756
2018-05-24T20:51:18
2018-05-24T20:51:18
33,892,414
3
0
null
null
null
null
UTF-8
Python
false
false
6,226
py
# -*- coding: utf-8 -*- # # (C) xqt, 2011 # (C) Pywikibot team, 2011 # # Distributed under the terms of the MIT license. # __version__ = '$Id: 2b0204628cee8e59b09ba951802fa85f5720d241 $' # plural_rules = { '_default': {'nplurals': 2, 'plural': lambda n: (n != 1)}, 'ach': {'nplurals': 2, 'plural': lambda n: (n...
[ "xresende@gmail.com" ]
xresende@gmail.com
3de7efeb2e17aad9d4ffb5c6c86012494819fedc
6250be4dcf519d0f0b152b10a641b2d12a35c53f
/jump_to_python/chapter04/Practice.py
7bc597ffb250013551f22a2bfb52c680ce17b6ea
[]
no_license
heechul90/study-python-basic-2
babd01f6a7c2b1fbed4aa31030bb40128960a989
94780478e59dfc998baa6e3069ab2473c5df74db
refs/heads/master
2022-10-27T14:44:00.688509
2022-10-24T10:55:33
2022-10-24T10:55:33
196,142,410
0
0
null
null
null
null
UTF-8
Python
false
false
2,622
py
### 04장. 프로그램의 입력과 출력은 어떻게 해야 할까? ## 연습문제 ## Q1 ## 주어진 자연수가 홀수인지 짝수인지 판별해 주는 함수(is_odd)를 작성해 보자. def is_odd(number): if number % 2 == 1: # 2로 나우었을 때 나머지가 1이면 홀수이다. return True else: return False print(is_odd(3)) print(is_odd(4)) ## Q2 ## 입력으로 들어오는 모든 수의 평균 값을 계산해 주는 함수를 작성해 보자. def avg...
[ "heechul4296@gmail.com" ]
heechul4296@gmail.com
c06da8f80bbd03b09bd1e5ed8d8ccfecc1dad6ee
841ad26ec31cd4339792c46513109d76c58161e9
/aula 04/exercicio 6.py
fa5d7ac9d3014e639dd9baa9de7d0dfe334edb5f
[]
no_license
Elvis-Lopes/Ci-ncias-de-Dados-Uni9
ab5537bfc0f570d639e9763bb80b9654838e76d2
2939216c6adef7c64c8a7045b99c117753baaae8
refs/heads/master
2021-02-11T12:54:56.248564
2020-03-30T23:24:03
2020-03-30T23:24:03
244,492,799
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
num = float(input('Insira o número: ')) res = 0 soma = 0 while soma < num: res += 1 soma = soma + res if soma == num: print('Numero triangular') else: print('Não triangular')
[ "elvislopes1996@hotmail.com" ]
elvislopes1996@hotmail.com
b7ab702fb8c4a173ccc360e85cb90f0690ac242d
8b82cde7593acb7371285dd210a1101e3c04d4d9
/docs/conf.py
fc281bf4bc597e83c9c5dd43cc9e05e601117dc2
[ "MIT" ]
permissive
vijeycreative/cartesian-explorer
a914f4ca994bd8a7427f9a04cccf743d4f011c87
fa7b9b3a3a7d6da3caf55f9c311e6069b27c70d8
refs/heads/master
2023-03-21T22:23:52.762581
2021-03-17T02:13:19
2021-03-17T02:13:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,911
py
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
[ "lkv97dn@gmail.com" ]
lkv97dn@gmail.com
4c79abab1b34a7651893d88ac36235c7fd211045
d69acff1c03a593a87956122b8eb518cf87f7507
/Python_Basic_Fastcampus/section13_1.py
ab3571a162427273303d378174e4144484091940
[]
no_license
jbro321/Python_Basic_Fastcampus
f81e926c9f22309b2e8a11281e75f481ddca687d
3bd7d071aedd3f62afd87371b781cb412d6e08a7
refs/heads/main
2023-05-14T02:00:44.277906
2021-06-07T13:06:38
2021-06-07T13:06:38
374,655,189
0
0
null
null
null
null
UTF-8
Python
false
false
1,273
py
# section13_1 # 업그레이드 타이핑 게임 제작 # 타이핑 게임 제작 및 기본 완성 import random import time words = [] # 영어 단어 리스트(1000개 로드) n = 1 # 게임 시도 횟수 cor_cnt = 0 # 정답 개수 with open('C:/Workspace/Python/Python/Fastcampus_Python/Fastcampus_Python_Basic/resource/word.txt', 'r') as f: for c in f: words.append(c.strip()) # strip()...
[ "jaehyung0321@gmail.com" ]
jaehyung0321@gmail.com
dd7f0fdae1950e549f6a53ebb6a704e841392a0e
07e8eaeaa6f3493546ba6b499be1593252f3c773
/opytimizer/optimizers/science/wdo.py
c09781e9fdd1b3efd008734e7a36ce48c1e1db4d
[ "Apache-2.0" ]
permissive
himanshuRepo/opytimizer
91dd848fffbe85736d8074169d515e46a8b54d74
09e5485b9e30eca622ad404e85c22de0c42c8abd
refs/heads/master
2023-07-20T18:16:00.565759
2021-09-02T19:40:43
2021-09-02T19:40:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,034
py
"""Wind Driven Optimization. """ import numpy as np import opytimizer.math.random as r import opytimizer.utils.exception as e import opytimizer.utils.logging as l from opytimizer.core import Optimizer logger = l.get_logger(__name__) class WDO(Optimizer): """A WDO class, inherited from Optimizer. This is t...
[ "gth.rosa@uol.com.br" ]
gth.rosa@uol.com.br
de5ee58593f93e09b973f006d4d194b61938bad4
4e9855ab1f1ce0e3e6aa23dca1dd716e2e027e3b
/6-Image_Processing/4-flipping.py
f86748cd03140a7673581904ffecd8384b73cd9d
[]
no_license
Md-Hiccup/python-opencv
f913649cdb4ceb9f29ad1c423a5839b39f09e193
759fc344f59e1888acc91909a0f7f2f725cb0f8f
refs/heads/master
2020-04-04T09:41:54.710374
2018-12-11T09:18:54
2018-12-11T09:18:54
155,828,315
0
0
null
2020-01-03T07:18:25
2018-11-02T07:15:02
Python
UTF-8
Python
false
false
706
py
import argparse import cv2 ap = argparse.ArgumentParser() ap.add_argument("-i", "--image", required=True, help="Path to the image") args = vars(ap.parse_args()) image = cv2.imread(args["image"]) cv2.imshow("Original Image", image) # cv2.flip(image, flip_code(1, 0, -1)) # 1 = flip the image horizontally around th...
[ "ask2md@gmail.com" ]
ask2md@gmail.com
c2e976ecf7575598ad016eb6047bae8696bf9527
551e1190a7b1da5694ecb812eecf0ed44a4025ee
/con0to10.py
ff25bea8c0b4d730541202f0e37ec1ff593a3c13
[]
no_license
Destroyer4114/Python
5dc3d85a31c7d1867e71f050bdc84209d08a945c
82fbdc75f367cecb16166b2e03a0e6fc38da2c62
refs/heads/main
2023-08-11T19:01:09.588798
2021-10-09T11:13:12
2021-10-09T11:13:12
351,766,636
0
0
null
null
null
null
UTF-8
Python
false
false
241
py
t= int(input()) n= int(input()) for i in range(t): s=0 m= int(input()) if n!=32: i=0 while m>0: s=s+ (m%10)*((n)**i) m= int(m/10) i=i+1 print(s)
[ "mehul.20204114@mnnit.ac.in" ]
mehul.20204114@mnnit.ac.in
11ba398240c0d61cf8a400421179686e9edd31b1
17e813f4f20a6ce2d82619be9fac517b5176a74b
/Graphs/smallestMultipleWith01.py
8d26870a72ed8c9baf1e578f825e4e3f9c28476a
[]
no_license
AryanGanotra07/DSALGO
0ee86bbca4b345d21f5d6eb60d96c7aff6f1fc93
8cbac991ceec43522a57c65d68f00b54ccb6ea3f
refs/heads/master
2022-12-08T22:33:14.031636
2020-09-13T14:05:41
2020-09-13T14:05:41
283,800,432
0
0
null
null
null
null
UTF-8
Python
false
false
441
py
class Solution: # @param A : integer # @return a strings def multiple(self, A): if A == 1: return "1" from collections import deque visited = set() q = deque() q.append("1") while len(q): t = q.popleft() if int(t)%A==0: ...
[ "aryanganotra7@gmail.com" ]
aryanganotra7@gmail.com
573490df6a72775df60471ded30db08da158b1bc
795435350d2e4fe415acd1fb846abb1c0cf94911
/socket/monitor/code/Python3实现TCP端口扫描器/tutorial/test2.py
d51f46cb365d0e3b02fbc9eedf1cb43984e4673f
[]
no_license
gaoxinge/network
c3575c7f0d95f7458a4ec74880ca5b8a0bff773e
68d307ec0756abff60914225fd38d69fa4b2a37c
refs/heads/master
2021-06-06T05:49:36.521243
2021-06-02T15:42:39
2021-06-02T15:42:39
84,033,128
0
0
null
null
null
null
UTF-8
Python
false
false
912
py
from time import * from socket import * import threading import argparse lock = threading.Lock() threads = [] def portScanner(host, port): try: s = socket(AF_INET, SOCK_STREAM) s.connect((host, port)) lock.acquire() a = localtime() print '[%d:%d:%d]port %d open' % (a[3], a[...
[ "gaoxx5@gmail.com" ]
gaoxx5@gmail.com
134f9eba1e80c90c90a60a36550d29b5177c1121
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03326/s284430841.py
8a061a5302bda2aa56e46e77f58fbecf34682793
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
476
py
N, M = map(int, input().split()) a = [] maxn = 0 for i in range(N): a.append([int(i) for i in input().split()]) maxn = 0 for i in range(8): A = [] tm = [1, 1, 1] for j in range(N): for k in range(3): # x, y, zの符号決定 if i & (1 << k): tm[k] = a[j][k] else: ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
667b23922ac79ddc090e942d23ddfa58519e1eea
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/N5JhvabK6DTD5t6gS_21.py
cba656da1519b118162065315bdbecc6d5f4652b
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,415
py
""" In Edabit, you can surround text with asterisks, double asterisks, underscores and tildes to add _formatting_ to certain words. Complete the function `markdown()` so it takes a symbol as input, and returns a **function** which applies _that formatting_ to a _given word_ in a _given sentence_. ### Examples ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
8885ac5a0449137291622c71c82659086bd13344
5868e652af3850e042855ea1f316ebbb511fcd69
/OverlapSeg/chromosome_dataset.py
2e15222723529b22267e2eee7bd48ac8d2ce3be3
[ "MIT" ]
permissive
PingjunChen/ChromosomeSeg
f80c4e2dd32df5fd32c126ef2c6b960cb051eb52
4b5e576696e9998558478fd4ec6b74809ceea49c
refs/heads/master
2022-01-08T07:29:16.687790
2019-07-10T02:42:49
2019-07-10T02:42:49
192,790,622
2
0
null
null
null
null
UTF-8
Python
false
false
1,189
py
# -*- coding: utf-8 -*- import os import numpy as np from torch.utils.data import Dataset from skimage import io, transform class ChromosomeDataset(Dataset): def __init__(self, data_dir, transform=None): self.data_dir = data_dir self.img_list = [ele for ele in os.listdir(self.data_dir) if "img" i...
[ "chenpingjun@gmx.com" ]
chenpingjun@gmx.com
db48978e41fb3b536d39e8c5f478a1991db742d9
07607a38ba6ffd20054d0af26e46b1cd9ccf661b
/software/python/basic_led_strip/examples/run_tests.py
834a7258bc675f8a7a509a2016ce44ac4e58f915
[ "MIT" ]
permissive
willdickson/basic_led_strip
55bfe6cb36a48e8e30f22ced28cc5d1cc3cb7545
5194d1027fa89bb4ff640a4c7578cd06fdc7a915
refs/heads/master
2020-04-18T16:20:04.350104
2019-01-26T00:25:55
2019-01-26T00:25:55
167,631,636
0
0
null
null
null
null
UTF-8
Python
false
false
1,336
py
from __future__ import print_function import time import random from basic_led_strip import BasicLedStrip led_strip = BasicLedStrip('/dev/ttyUSB0') num_led = led_strip.number_of_leds() led_strip.off() # Test set all for c in ('r', 'g', 'b'): for i in range(0,100): if c == 'r': rgb = i, 0, 0...
[ "wbd@caltech.edu" ]
wbd@caltech.edu
6c084c85c76fcfe37de930994bb1b5208eaad847
d17bf19c4285c07938c95a578c58b0b9a72a79e9
/calculate_age1.py
067ee8ace1dff7544432aaa4f628de699df04f1d
[]
no_license
hasnatosman/calculate_age
5e317f1c908db4b27d7bc678097c059e5e29b5d2
178ff421f2dcfa062a46ee8f904ee05598be6129
refs/heads/main
2023-01-28T19:28:16.834543
2020-12-07T10:10:52
2020-12-07T10:10:52
319,275,543
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
from datetime import date def calculateAge(birthDate): today = date.today() age = today.year - birthDate.year - ((today.month, today.day) < (birthDate.month, birthDate.day)) return age print(calculateAge(date(1995, 12, 3)), 'years')
[ "noreply@github.com" ]
hasnatosman.noreply@github.com
cca52f5b7e6a194477e1d1671a6c4ccbe3d1cc6d
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_155/1406.py
e9cb7bfc703b1b5d3ae0481e35d658c9f33329c7
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
#!/usr/bin/env python #coding=utf8 tests = input() for test in range(0, tests): line = raw_input() sall = line.split()[1] friend = 0 audience = 0 for s, c in enumerate(sall): if int(c)>0 and int(s) > audience + friend: friend += int(s) - audience - friend audience += int(c) print "Case #" + str(test+1) +...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
478723a155d9f0d80f1aa69519436fcddfc5de53
bedae10cbaf676d8f309fa593028558d9a6e9c6b
/Algorithm/Easy/1-500/13ImplementstrStr().py
2cf013010350be1fd9856f94eb3a4d56d51e4d83
[ "MIT" ]
permissive
MartinYan623/Lint-Code
5800d61a54f87306c25ff2e3d535145312b42c66
57d2fa441d6496234615736e3f55d0b71aaa51dc
refs/heads/master
2021-06-06T13:51:19.587424
2021-04-21T12:23:19
2021-04-21T12:23:19
139,412,536
0
0
null
2020-08-08T10:28:52
2018-07-02T08:18:11
Python
UTF-8
Python
false
false
1,282
py
class Solution: """ @param: source: source string to be scanned. @param: target: target string containing the sequence of characters to match @return: a index to the first occurrence of target in source, or -1 if target is not part of source. """ def strStr(self, source, target): # wri...
[ "Maitong_y@163.com" ]
Maitong_y@163.com
9b44f457c89c74f98cbc0e4ad3412c474b14bcdc
779c62bc48e0d53c88ed7b090846fbd554a2f115
/lightreid/losses/label_smooth_cross_entropy_loss.py
fab7f8670c96881f4a4d1afe5f4bae2c5cd08166
[]
no_license
fightseed/light-reid
b366e7780700bec8a1099bcf3aec77ec0da56e0b
f69dbf03cbacb3776468ffc5508d4ed4c22272be
refs/heads/master
2023-02-11T07:27:06.008606
2021-01-05T07:31:28
2021-01-05T07:31:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,241
py
""" @author: Guan'an Wang @contact: guan.wang0706@gmail.com """ import torch import torch.nn as nn from .build import LOSSes_REGISTRY @LOSSes_REGISTRY.register() class CrossEntropyLabelSmooth(nn.Module): """Cross entropy loss with label smoothing regularizer. Reference: Szegedy et al. Rethinking the Incepti...
[ "guan.wang0706@gmail.com" ]
guan.wang0706@gmail.com
5f92f2f0ba5edf1769c4806478b31e3750e27357
80d50ea48e10674b1b7d3f583a1c4b7d0b01200f
/src/datadog_api_client/v1/model/run_workflow_widget_definition.py
455346b52c006a4c163a39a611da9c57dd71f52b
[ "Apache-2.0", "BSD-3-Clause", "MIT", "MPL-2.0" ]
permissive
DataDog/datadog-api-client-python
3e01fa630278ad0b5c7005f08b7f61d07aa87345
392de360e7de659ee25e4a6753706820ca7c6a92
refs/heads/master
2023-09-01T20:32:37.718187
2023-09-01T14:42:04
2023-09-01T14:42:04
193,793,657
82
36
Apache-2.0
2023-09-14T18:22:39
2019-06-25T22:52:04
Python
UTF-8
Python
false
false
4,037
py
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import annotations from typing import List, Union, TYPE_CHECKING from ...
[ "noreply@github.com" ]
DataDog.noreply@github.com
b4c0d91a277148e74347757fa60fd9e7a28af954
99dcb18a9e3ea367272f740b8cbf3c34285a0c08
/samples/generated_samples/aiplatform_generated_aiplatform_v1_metadata_service_add_context_artifacts_and_executions_sync.py
9d5d58249739171bce778068629f2ebff76154fe
[ "Apache-2.0" ]
permissive
googleapis/python-aiplatform
926a4873f35dbea15b2fd86c0e16b5e6556d803e
76b95b92c1d3b87c72d754d8c02b1bca652b9a27
refs/heads/main
2023-08-19T23:49:02.180075
2023-08-19T13:25:59
2023-08-19T13:27:27
298,017,988
418
240
Apache-2.0
2023-09-14T21:08:33
2020-09-23T15:43:39
Python
UTF-8
Python
false
false
1,612
py
# -*- coding: utf-8 -*- # Copyright 2020 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 applicable law or...
[ "noreply@github.com" ]
googleapis.noreply@github.com
21dc043d2032660dec665d25980c8cf35bde76ff
c8dc80a0082b2d59de0e1df24b25483f55510c57
/0x0A-python-inheritance/2-is_same_class.py
2a3b15032d397bace1d9b48cb44988e2d4d8b220
[]
no_license
Daransoto/holbertonschool-higher_level_programming
51d81fac1dc3a6bd0799283332a3bcf5e2480330
4fa5f95b462f0e22b1e87189d162f0cb8c5625b6
refs/heads/master
2020-07-22T23:03:01.184032
2020-02-13T21:36:18
2020-02-13T21:36:18
207,358,507
0
4
null
null
null
null
UTF-8
Python
false
false
260
py
#!/usr/bin/python3 """ This module contains the class is_same_class. """ def is_same_class(obj, a_class): """ Function that tells if the obj is exactly an instance of a_class. """ if type(obj) is a_class: return True return False
[ "901@holbertonschool.com" ]
901@holbertonschool.com
d4a61a6dc348df2e0f0aa40dd0bb334114522159
163808746e51d378f69a966645b8bb8a855b4625
/MyMain0906/MyMain0906/MyMain0906.py
31a815bff79aa96ebb40ffbfd3b9d944a76ae3b9
[]
no_license
0024thiroshi/comm5.0_fall_semester
02b26b506b759dd7b18b963295a8908cb4a78245
db350599b7085e56fbf2c316e74cd7a5b48f02b8
refs/heads/main
2023-02-12T13:07:34.080809
2021-01-13T06:03:04
2021-01-13T06:03:04
329,202,576
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
import MyModules import mislHrf import matplotlib.pyplot as plt import numpy as np df1=MyModules.getDF("nirs.xlsx","Sheet1") df1=MyModules.extractDF(df1,400,901) s1=MyModules.getS(df1,2) x=np.arange(0,len(s1)*0.1,0.1) plt.plot(x,s1) plt.show() s1.to_excel("data0906.xlsx",index=False)
[ "“0024thiroshi@gmail.com”" ]
“0024thiroshi@gmail.com”
09b544b163cf717293ed87bbbc1b6e21f88dc586
32c09619aeb058c3642d279952f3f2069eff400f
/.venv/Scripts/rst2html5.py
33a6325788ea90e155ac1e84539930f7fb351397
[ "MIT" ]
permissive
LuckJMG/RealFractions
8aa01e6474e42a3f34dd6b10899ebbcf7b0aea04
8393d7643db06db7630ae708fb3f40d242ac6b53
refs/heads/main
2023-03-01T08:55:46.492319
2021-02-02T03:05:11
2021-02-02T03:05:11
235,677,039
1
0
null
null
null
null
UTF-8
Python
false
false
1,190
py
#!C:\Users\Luck\Projects\Scripts\RealFractions\.venv\Scripts\python.exe # -*- coding: utf8 -*- # :Copyright: © 2015 Günter Milde. # :License: Released under the terms of the `2-Clause BSD license`_, in short: # # Copying and distribution of this file, with or without modification, # are permitted in any medium wi...
[ "lucas.mosquera13@gmail.com" ]
lucas.mosquera13@gmail.com
78f712ae065439bd09ce0609b073edc4763b2b1e
e174e13114fe96ad2a4eeb596a3d1c564ae212a8
/Python for Finance Analyze Big Financial Data by Y. Hilpisch/Code of Python For Finance/4375OS_09_Code/4375_09_11_bs_call_with_dividend.py
63e6815f6e7b50fc519b544b5e5725a399d6fc02
[]
no_license
Kevinqian0501/python_books
c1a7632d66dceb46db439f7cbed86d85370aab42
0691e4685af03a296aafb02447e3585db55ce461
refs/heads/master
2021-08-30T19:27:03.985464
2017-12-19T05:56:31
2017-12-19T05:56:31
104,145,012
1
0
null
null
null
null
UTF-8
Python
false
false
849
py
""" Name : 4375OS_09_11_bs_call_with_dividend.py Book : Python for Finance Publisher: Packt Publishing Ltd. Author : Yuxing Yan Date : 12/26/2013 email : yany@canisius.edu paulyxy@hotmail.com """ from scipy import log,exp,sqrt,stats def bs_call_div(S0,X,T,r,sigma,d...
[ "kevin@Qians-MacBook-Pro.local" ]
kevin@Qians-MacBook-Pro.local
7014e8ebecfa2a9a43093a781882268645c14805
c5b062551f2131b4d9d68de44d0eceebb57403d9
/tests/test_relay.py
9f582562c9ae391ee6364a0375d795eec506ac44
[ "MIT" ]
permissive
PedroBern/django-graphql-jwt
e78437257e6d948ba48c32107596742c4e9753b9
6e816445b72e7582d0595fda9e7e5d0486026045
refs/heads/master
2020-12-05T10:12:20.893450
2019-12-05T15:28:42
2019-12-05T15:28:42
232,077,280
1
0
MIT
2020-01-06T10:28:28
2020-01-06T10:28:28
null
UTF-8
Python
false
false
1,098
py
import graphene import graphql_jwt from . import mixins from .testcases import RelaySchemaTestCase class TokenAuthTests(mixins.TokenAuthMixin, RelaySchemaTestCase): query = ''' mutation TokenAuth($input: ObtainJSONWebTokenInput!) { tokenAuth(input: $input) { token clientMutationId ...
[ "domake.io@gmail.com" ]
domake.io@gmail.com
520e8abcce60819a17350b89de8dad5d68edc0f5
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03720/s533845039.py
d08b27efd13c837e376a25f69a807ea676984d50
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
n, m = map(int, input().split()) l = [] for i in range(m): l.extend(map(int, input().split())) for i in range(n): print(l.count(i+1))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
58e53bfd4341d0b1856d7af8205bbc6dca7727b5
2da6b95fe4237cc00014f80c45d268ab62fc90cd
/OSR/DFP_cosine/distance_ploter.py
d8966314a10b2492b77ca591485d7fe2e14fe9e3
[]
no_license
lvzongyao/Open-Set-Recognition-1
7e26cd1d97f67b6c075f4e64296ce7a82d479168
26a8a1cca199f4e23df98abca6893e3eef3307da
refs/heads/master
2023-08-19T09:15:16.119377
2021-09-13T04:21:18
2021-09-13T04:21:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,217
py
from __future__ import print_function import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import matplotlib from tqdm import tqdm matplotlib.use('Agg') import matplotlib.pyplot as plt import torchvision import numpy as np import torchvis...
[ "xuma@my.unt.edu" ]
xuma@my.unt.edu
3f8f64191f2e8b9b865f6fbdf73442e03f410b64
6ccf65d1411e1274eaacf3a1055db3cf6b3cd91a
/libs/networkx/algorithms/shortest_paths/dense.py
27a651e06d99ec7f6a38c2c0ab19502953cf44e9
[]
no_license
Xukum/pycdb
2b7be32b04fcdb2251e846f2b14129e2408846d5
34e41c2a5f7e861b7ef358deff938adcff8c02ea
refs/heads/master
2020-12-03T09:18:00.898750
2014-04-21T07:13:27
2014-04-21T07:13:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,001
py
# -*- coding: utf-8 -*- """Floyd-Warshall algorithm for shortest paths. """ # Copyright (C) 2004-2012 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. import networkx as nx __author__ = """Aric Hagberg <aric.h...
[ "alexmak@hare.(none)" ]
alexmak@hare.(none)
70dbc63ff133b8706d187bc032592c71a6acdff6
c9fe7a29cceffeed3823609b5f4b2dfe401c2e19
/Line/line_markline.py
005731eb35bbd9da441230bc59688b787a9fa67d
[ "MIT" ]
permissive
pyecharts/pyecharts-gallery
79ece0cc4fb037ceb36346a8e4558a8522265e3a
2ced79907ec2c16af50b18457ba615898e65e126
refs/heads/master
2023-04-15T05:21:14.544668
2023-04-07T08:09:52
2023-04-07T08:09:52
183,432,412
1,042
627
MIT
2021-03-22T09:57:50
2019-04-25T12:43:50
HTML
UTF-8
Python
false
false
555
py
import pyecharts.options as opts from pyecharts.charts import Line from pyecharts.faker import Faker c = ( Line() .add_xaxis(Faker.choose()) .add_yaxis( "商家A", Faker.values(), markline_opts=opts.MarkLineOpts(data=[opts.MarkLineItem(type_="average")]), ) .add_yaxis( "...
[ "379978424@qq.com" ]
379978424@qq.com
e92fac3e6816f38fd542b5fb8607f19d62e272a5
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_179/ch25_2020_03_23_14_31_38_627938.py
dc86e06f9be85e0b93e0c9c8f04145ec6ae6d0ee
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
import math def calcula_distancia (velocidade, angulo): g = 9.8 distancia = ((velocidade**2) * math.sin(2*angulo))/g if distancia < 98: return 'Muito perto' elif distancia > 102: return 'Muito longe' else: return 'Acertou!'
[ "you@example.com" ]
you@example.com
46b824904c2c3f3012a3c613abdd80bf7a63d6cc
ddd2b44eecfcdc3d221ac3ccea552eae69e037d8
/test/test_xadc.py
fc13cfb41d63c9bd88dee9c44ae5ca8dc86da559
[]
no_license
mithro/arty-soc
4ca9b8e423d8a8ea95d52c0239c4a2a69a8c2fbf
592f77ede21a7049e1b00badeacc34c15b4098d8
refs/heads/master
2021-01-22T22:04:05.822695
2017-03-19T20:18:47
2017-03-19T21:18:43
85,505,513
2
0
null
2017-03-19T20:13:51
2017-03-19T20:13:51
null
UTF-8
Python
false
false
393
py
#!/usr/bin/env python3 from litex.soc.tools.remote import RemoteClient wb = RemoteClient() wb.open() regs = wb.regs # # # print("temperature: %f°C" %(regs.xadc_temperature.read()*503.975/4096 - 273.15)) print("vccint: %fV" %(regs.xadc_vccint.read()/4096*3)) print("vccaux: %fV" %(regs.xadc_vccaux.read()/4096*3)) prin...
[ "florent@enjoy-digital.fr" ]
florent@enjoy-digital.fr
933095c00737b9ce87f03c065b14e0f1107e0825
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/400/usersdata/299/81380/submittedfiles/av1_programa1.py
8a017b1cb18abb4c8e9dbb88b5b86436f1ab9304
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
434
py
# -*- coding: utf-8 -*- x=input('NUM:') if x=='1': print('JAN') elif x=='2': print('FEV') elif x=='3': print('MAR') elif x=='4': print('ABR') elif x=='5': print('MAI') elif x=='6': print('JUN') elif x=='7': print('JUL') elif x=='8': print('AGO') elif x=='9': print('SET') elif x=...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
e19f4bc6f2b5f127c1d252aae9f939e7e07effaf
a45d90bfb891daba2e13a703e1dc667a1bc42143
/Course_1/W3/5_maximum_number_of_prizes/different_summands.py
e9785fa731eced5e72a6277b5b2d3d6c7039aa6e
[]
no_license
piecesofreg09/DSA
9c89f597dbfad973f7e701fe11b722cf0232c7d5
8e33712026513625b86b05dd917aa5bf91a6bb61
refs/heads/master
2020-04-09T11:10:35.517086
2019-01-14T22:43:56
2019-01-14T22:43:56
160,298,589
0
0
null
null
null
null
UTF-8
Python
false
false
537
py
# Uses python3 import sys def optimal_summands(n): summands = [] last = 1 while n > 0: if (n - last) <= last: last = n n -= last summands.append(last) else: n -= last summands.append(last) last += 1 ...
[ "noreply@github.com" ]
piecesofreg09.noreply@github.com
86639188ef74050b776a8003c82f471cc523d4d5
76ec0fdf7eecb60be750fb2793335c1d072ad1a1
/tests/test_integer_field.py
57dd199c4384c24d52c8ee709f667c32c4e19de4
[ "MIT" ]
permissive
GabLeRoux/django-localized-fields
2096915b4c45ab2935dbd2fd55e825f0dcaba0bd
f0ac0f7f2503317fde5d75ba8481e34db83512bd
refs/heads/master
2020-05-16T12:15:57.805928
2019-02-21T10:54:04
2019-02-21T10:54:04
183,041,193
0
0
MIT
2019-04-23T15:12:15
2019-04-23T15:12:15
null
UTF-8
Python
false
false
5,950
py
from django.test import TestCase from django.db.utils import IntegrityError from django.conf import settings from django.db import connection from django.utils import translation from localized_fields.fields import LocalizedIntegerField from .fake_model import get_fake_model class LocalizedIntegerFieldTestCase(Test...
[ "swen@sectorlabs.ro" ]
swen@sectorlabs.ro
e98441ddc51a59063ecb801cb9324f4747de0c01
f3b233e5053e28fa95c549017bd75a30456eb50c
/jnk1_input/34/34-37_MD_NVT_rerun/set_6.py
d3590a0c8e3ea32b5709e03b153ca1dee2517c13
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
import os dir = '/mnt/scratch/songlin3/run/jnkl/L634/MD_NVT_rerun/ti_one-step/34_37/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_6.in' temp_pbs = filesdir + 'temp_6.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in la...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
dd6ec4d37126ef3dc6363335fdf4f2bfd46d756a
cca5ceb42b09e567d79fcb46f298757c1ff04447
/Advanced/decorators/4_memo.py
c533ecaa987c85ac8774239b32c6cf6ea56f5116
[]
no_license
NishantGhanate/PythonScripts
92933237720e624a0f672729743a98557bea79d6
60b92984d21394002c0d3920bc448c698e0402ca
refs/heads/master
2022-12-13T11:56:14.442286
2022-11-18T14:26:33
2022-11-18T14:26:33
132,910,530
25
15
null
2022-12-09T09:03:58
2018-05-10T14:18:33
Python
UTF-8
Python
false
false
796
py
import time def memo(wrapped_func): cached = {} def inner(n1, n2): nonlocal cached params = '{}{}'.format(n1, n2) if params not in cached: value = wrapped_func(n1, n2) cached[params] = value return value return cached[params] return inne...
[ "nishant7.ng@gmail.com" ]
nishant7.ng@gmail.com
8caf97de56066b00f82d00a8a907a2cd7534e13e
f7481417df5f79c804c3d596012defa7e637ad3f
/musichans/musichans/wsgi.py
7ba96d3c41576e8b0dd95a919aaf95fd11b846ce
[]
no_license
helder-a-reis/musichans
aea4c193158da7a1526ba4131b5ca3e096c83ddf
12b673f5eda3fe2ffb42c28a9e5bc15cd578b7f4
refs/heads/master
2022-12-25T21:49:36.242264
2022-12-17T10:16:26
2022-12-17T10:16:26
136,511,657
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" WSGI config for musichans project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SET...
[ "helderreis78@gmail.com" ]
helderreis78@gmail.com
dd52972a361556352ecc1bd6a6bde3c131b4c2fe
9af204535dfc39d5c9a2dc4e2daf538cb2454caf
/src/glimpse.py
7a4eac40d11ec3cd8dff53b63b157105a777a3af
[]
no_license
kevinyu/reimagined-robot
c94f51e1b025dc3636a40b06cf8d914238596f9e
970e451a70b43d1cd7ac7f8f3700ea8e9eb88aa3
refs/heads/master
2021-01-20T15:57:41.095221
2017-05-24T01:40:25
2017-05-24T01:40:51
90,803,707
0
0
null
null
null
null
UTF-8
Python
false
false
5,831
py
import numpy as np import theano import config from utils.complex import ComplexTuple def accumulate_glimpses(S_0, glimpse_vectors, glimpse_positions): """Accumulate information into scene representation S over multiple glimpses Will build up and return intermediate states of the scene representation af...
[ "thekevinyu@gmail.com" ]
thekevinyu@gmail.com
ba80899e88de84851bbbe7e4c9e15f668fa7c433
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/redis/azure-mgmt-redis/generated_samples/redis_cache_firewall_rule_create.py
d43334714a7f568799052cbd0e7a7bdde075d930
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,645
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
839b86311845b289db77f3b897ac4b0023dc7e0a
32823c634a1b22907198374df86610255a25aa78
/arbittaryparam.py
9d3b66d79586b577a32a5f9b2a3d90b7190f6e5a
[]
no_license
prabhatpal77/Complete-core-python-
7dc5747773e985a9d8af425de349bdb1c3e32e8f
b5076231367a67edc54c8e8d7017cec8fa54f300
refs/heads/master
2020-07-27T21:07:23.375701
2019-09-18T04:39:32
2019-09-18T04:39:32
209,216,484
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
# any parameter which is preceeded by * or ****.....* is known as a arbittary parameter. # single * arbittary parameter type will be taken as a tuple. # At the time of calling the function we can pass 0 or mare values to the single star arbittary parameter.. def add(*a): print(a) print(type(a)) print(len(a)...
[ "noreply@github.com" ]
prabhatpal77.noreply@github.com
4af531bf96cd338debe7249d0f6263955d9f870b
7b4e9342d42be2b55af5dc23a8abedd672d68e99
/MobileApps/libs/flows/android/morelangs/morelangs.py
404e02849f1022218eda7a0109fe56e81237d71b
[]
no_license
Amal548/QAMA
af5bb335c92a90b461f1ee9a3870435d83d46802
b5230c51d3bc7bb04b3448d1a1fe5a076d8898d5
refs/heads/master
2023-07-12T09:17:04.624677
2021-08-06T08:01:11
2021-08-06T08:01:11
389,595,655
0
0
null
null
null
null
UTF-8
Python
false
false
2,055
py
from MobileApps.libs.flows.android.android_flow import AndroidFlow from MobileApps.resources.const.android.const import * from selenium.common.exceptions import NoSuchElementException, TimeoutException import logging """ Prerequisite: - App must have installed MoreLangs (manually) - Execute "adb shell pm grant...
[ "amal.muthiah@hp.com" ]
amal.muthiah@hp.com
c4633c028ff2167f988435a837cf702dab9aa6c7
bbebd95ce007baf3be20ca14fc8fe696c4c7dd96
/L8 Python Scripts/LaunchMod_b994/ConfigurableButtonElement.py
a653bdbda130bf0f97c60ef0b0c9e8b466b8238c
[]
no_license
spiralune/monomodular
70eeabcb5a9921b7bab30d8c5fd45ca237cde9c3
862bb02067c2fbc9816795904b2537a9b5e1c7b6
refs/heads/master
2020-12-11T04:06:25.390424
2014-07-09T19:45:41
2014-07-09T19:45:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,258
py
# emacs-mode: -*- python-*- import Live from _Framework.ButtonElement import * class ConfigurableButtonElement(ButtonElement): __module__ = __name__ __doc__ = ' Special button class that can be configured with custom on- and off-values ' def __init__(self, is_momentary, msg_type, channel, identifier): But...
[ "aumhaa@gmail.com" ]
aumhaa@gmail.com
a586c2b1340660b9b3f2a06e2ab3e6d018050bf1
e247d9261676f257752c0c6beac161954137a81c
/src/0003.longest-substring-without-repeating-characters/longest-substring-without-repeating-characters.py
7cfcb7fe2c370cd03dce930928aa982d06823974
[ "MIT" ]
permissive
henrymorgen/Just-Code
8fbbd8288b485372a44e10b0078b5edb8af61a3b
fa03ebb89edd8f2292de7c0644dbab88dc1d924c
refs/heads/master
2022-10-19T05:59:53.134092
2020-06-10T02:26:43
2020-06-10T02:26:43
273,656,532
1
2
MIT
2020-06-20T07:02:38
2020-06-20T07:02:38
null
UTF-8
Python
false
false
360
py
class Solution: def lengthOfLongestSubstring(self, s: str) -> int: used = {} start = maxlength = 0 for i, v in enumerate(s): if v in used and start <= used[v]: start = used[v] + 1 else: maxlength = max(maxlength, i - start + 1) ...
[ "yaxe522@163.com" ]
yaxe522@163.com
859db736190db222180195c85e465a19b9e45106
d7faf47825b6f8e5abf9a9587f1e7248c0eed1e2
/python/ray/serve/tests/test_http_routes.py
d532dd8e4eed1d8cef417aa0fa5a12fff2fdc6a2
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
ggdupont/ray
7d7c7f39a8f99a09199fab60897da9e48b8e2645
15391026c19f1cbbb8d412e46b01f7998e42f2b9
refs/heads/master
2023-03-12T06:30:11.428319
2021-12-07T05:34:27
2021-12-07T05:34:27
165,058,028
0
0
Apache-2.0
2023-03-04T08:56:50
2019-01-10T12:41:09
Python
UTF-8
Python
false
false
6,387
py
import time import pytest import requests from fastapi import FastAPI, Request from starlette.responses import RedirectResponse import ray from ray import serve def test_path_validation(serve_instance): # Path prefix must start with /. with pytest.raises(ValueError): @serve.deployment(route_prefix=...
[ "noreply@github.com" ]
ggdupont.noreply@github.com
8db0ef4f1510611b28f62ba72ff6453dac304c18
872f24199d847f05ddb4d8f7ac69eaed9336a0d5
/gcwrap/python/scripts/regressions/tests/ngc5921redux.py
3c0bf90df01258492590c067b85ddae965d6302a
[]
no_license
schiebel/casa
8004f7d63ca037b4579af8a8bbfb4fa08e87ced4
e2ced7349036d8fc13d0a65aad9a77b76bfe55d1
refs/heads/master
2016-09-05T16:20:59.022063
2015-08-26T18:46:26
2015-08-26T18:46:26
41,441,084
1
1
null
null
null
null
UTF-8
Python
false
false
883
py
import sys import os import string from locatescript import locatescript import inspect a=inspect.stack() stacklevel=0 for k in range(len(a)): if (string.find(a[k][1], 'ipython console') > 0): stacklevel=k break gl=sys._getframe(stacklevel).f_globals def description(): return "NGC 5921, VLA D-...
[ "darrell@schiebel.us" ]
darrell@schiebel.us
a69e40ec67ca7ddaa45f7f648383b255ddfc79e9
a5599f90f1b278916fac6bdb31035403f32314d5
/0x0B-python-input_output/10-class_to_json.py
97b403bcc2e404b11e7159d127671371f5390e4c
[]
no_license
veromejia/holbertonschool-higher_level_programming
46294a47a91771c9b36e8221d070d60516132539
aab2ea538a45ae72e006e52730886fd45b85fe78
refs/heads/master
2020-07-23T02:14:40.652029
2020-02-14T05:50:57
2020-02-14T05:50:57
207,412,376
2
0
null
null
null
null
UTF-8
Python
false
false
299
py
#!/usr/bin/python3 """returns the dictionary description with simple data structure""" def class_to_json(obj): """Returns the dictionary description with simple data structure (list, dictionary, string, integer, boolean) for JSON serialization of an object """ return obj.__dict__
[ "veromejia.q@gmail.com" ]
veromejia.q@gmail.com
1677e5670281a59e271296af911cf0e53db40f24
eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429
/data/input/avelino/bottle-admin/bottle_admin/helpers.py
00162fe0a63dee7249d77ca510f2fe37779d8fb9
[]
no_license
bopopescu/pythonanalyzer
db839453bde13bf9157b76e54735f11c2262593a
8390a0139137574ab237b3ff5fe8ea61e8a0b76b
refs/heads/master
2022-11-22T02:13:52.949119
2019-05-07T18:42:52
2019-05-07T18:42:52
282,079,884
0
0
null
2020-07-23T23:46:09
2020-07-23T23:46:08
null
UTF-8
Python
false
false
463
py
# coding: utf-8 def get_object_as_list(model, obj): """Get the SQLAlchemy query result as a list of tuples""" list_display = model.get_list_display() result = [('id', obj.id)] result += [(col, getattr(obj, col)) for col in list_display] print(result) return result def get_objects_as_list(mo...
[ "rares.begu@gmail.com" ]
rares.begu@gmail.com
ca3a19add72587d281a0a1c9c40a0cb9d143d62d
603519e0d087967caac72cce854dc7f1dfaa5262
/algorithmic heights/PAR3.py
e1635f86c63db3b55145ed44f0beb2169ce4a0ca
[]
no_license
Morpheus2112/Rosalind-exercise
e591570521a12905864cb7e7f72b66816da7ae3a
e1047a5f6725e07c8cbf17594bfe4969cbc5d708
refs/heads/master
2022-07-25T00:07:17.316099
2020-02-16T07:18:21
2020-02-16T07:18:21
240,848,262
1
0
null
null
null
null
UTF-8
Python
false
false
1,286
py
# -*- coding: utf-8 -*- """ Created on Sun Dec 31 01:06:44 2017 @author: Memphis """ def par(): with open("rosalind_par3.txt") as f: n = int(f.readline().strip()) A = map(int, f.readline().split()) B = [A[0],] C = [] D = [] for i in range(1,len(A)): if A[i] > A[0]: ...
[ "palandswd@gmail.com" ]
palandswd@gmail.com
0aa316e88079c3a3a585ec4e79e087db0469fedf
4936c1d20aef7a93ad2ded2f5731b102631ad8b2
/Tablas/tablas/Ruido30/maxVotos/IPF/menu_6.py
fd22e2343ccb0c6f9f6d834a769ac6c613ba533e
[ "LicenseRef-scancode-other-permissive" ]
permissive
jcarlosorte/pyMIL-BNF
530f60081607deecfee7c72264000c0ba34984fe
36e282e35242815bf57310db98707da70d69b183
refs/heads/master
2022-11-12T20:58:49.058513
2020-07-06T15:35:01
2020-07-06T15:35:01
182,646,512
0
0
null
null
null
null
UTF-8
Python
false
false
1,221
py
# -*- coding: utf-8 -*- """ Created on Fri May 10 10:11:00 2019 @author: Usuario """ import sys,os,warnings os.chdir('../../../../MILpy') sys.path.append(os.path.realpath('..')) warnings.filterwarnings('ignore') #from funciones import fvc from filters import EF from filters import CVCF from filters import IPF folds...
[ "jcarlosorte@ugr.es" ]
jcarlosorte@ugr.es
394d4bd97c0d16c256078993b41c03fd14417945
6df0d7a677129e9b325d4fdb4bbf72d512dd08b2
/PycharmProjects/my_practice/python_practice/prac_70.py
8067d6861878bafc551fad7235efce522fbcbc5b
[]
no_license
yingxingtianxia/python
01265a37136f2ad73fdd142f72d70f7c962e0241
3e1a7617a4b6552bce4a7e15a182f30e1bae221e
refs/heads/master
2021-06-14T15:48:00.939472
2019-12-13T05:57:36
2019-12-13T05:57:36
152,200,507
0
0
null
2021-06-10T20:54:26
2018-10-09T06:40:10
Python
UTF-8
Python
false
false
185
py
#!/usr/bin/env python #--coding: utf8-- def count(strings): return len(strings) if __name__ == '__main__': strings = raw_input('请输入字符串:') print count(strings)
[ "root@room8pc205.tedu.cn" ]
root@room8pc205.tedu.cn
ec97b4be619572e56f2870379d7112a274d8c4fa
ffa58fe72c842607033a8d82fd60081275eef593
/반복/반복(4).py
6bfdb4625e92a8205bec2865e400629a820fed68
[]
no_license
wjdwls0630/Khlug-Python
744a89cdac6a259ae976a4f615c175895058c98b
352dbe4effb905148618958f35e255e7dd8a6929
refs/heads/master
2020-03-21T05:05:30.386635
2018-06-21T08:44:14
2018-06-21T08:44:14
138,143,743
0
0
null
null
null
null
UTF-8
Python
false
false
1,644
py
#while문 도전과제 1 print("="*60) number1=int(input("정수 입력 : ")) a=0 while a<number1 : print(a, end=" ") a=a+1 print("\n"+"="*60) #while문 도전과제 2 number2=int(input("정수 입력 : ")) b=0 sum=0 while b<=number2 : sum=sum+b b = b + 1 print("합계 :",sum) print("="*60) #whil문 도전과제 3 number3=int(input("정수를 입력하세요 : "...
[ "wjdwls0630@gmail.com" ]
wjdwls0630@gmail.com
c29c69b75318eb424f337cdc565ca09f95b4e9f1
4685d390be9e64ed39549332093aa3265e4f5c5c
/solutions/number-of-students-doing-homework-at-a-given-time.py
9f16b8f7e2c2b821e7f05d3e50f6e2fedbc7e6ec
[]
no_license
rushirg/LeetCode-Problems
dee8e82940e082460c03243044c9024b726a64e4
073d01c88efd58a6b8d463407a4b25b6ee3c278d
refs/heads/master
2023-06-08T08:28:30.350526
2023-05-25T05:34:21
2023-05-25T05:34:21
215,902,531
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
""" 1450. Number of Students Doing Homework at a Given Time https://leetcode.com/problems/number-of-students-doing-homework-at-a-given-time/ """ class Solution: def busyStudent(self, startTime: List[int], endTime: List[int], queryTime: int) -> int: count = 0 for i in range(len(startTime)): ...
[ "gaidhani.rushikesh@gmail.com" ]
gaidhani.rushikesh@gmail.com
4c9ba09164cc5b61ec4c15cfd1130d439a1fc7c8
673e829dda9583c8dd2ac8d958ba1dc304bffeaf
/data/multilingual/Laoo.LAO/Sun-ExtA_8/pdf_to_json_test_Laoo.LAO_Sun-ExtA_8.py
6a89c059fd4c4afa3349150af1fe720557244603
[ "BSD-3-Clause" ]
permissive
antoinecarme/pdf_to_json_tests
58bab9f6ba263531e69f793233ddc4d33b783b7e
d57a024fde862e698d916a1178f285883d7a3b2f
refs/heads/master
2021-01-26T08:41:47.327804
2020-02-27T15:54:48
2020-02-27T15:54:48
243,359,934
2
1
null
null
null
null
UTF-8
Python
false
false
309
py
import pdf_to_json as p2j import json url = "file:data/multilingual/Laoo.LAO/Sun-ExtA_8/udhr_Laoo.LAO_Sun-ExtA_8.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
f1d8da4b9e77fc366884db5a1cd841073f61718f
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/recollect_waste/calendar.py
c439f647da5414e91a3bbc1945595c92ea2e44a4
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
3,128
py
"""Support for ReCollect Waste calendars.""" from __future__ import annotations import datetime from aiorecollect.client import PickupEvent from homeassistant.components.calendar import CalendarEntity, CalendarEvent from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, ca...
[ "noreply@github.com" ]
home-assistant.noreply@github.com
6dc1fb741febd2827cefcb84ec6f09b30206104e
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/formatter/alignInParenthesizedExpression.py
ea97ade4ee9239b30cb17f95c88bc8ade85d4221
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
134
py
print(1 + (1 + (1 + x .calc()) + x. calc() ))
[ "dmitry.trofimov@jetbrains.com" ]
dmitry.trofimov@jetbrains.com